@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.
Files changed (264) hide show
  1. package/README.md +116 -0
  2. package/assets/alfa-BqdpLXjE.png +0 -0
  3. package/assets/doc-CA2MQk3m.webp +0 -0
  4. package/assets/document-approved-CkP0p152.webp +0 -0
  5. package/assets/document-sign-DtWnrhUb.webp +0 -0
  6. package/assets/documents-refresh-Ct8s1Pc3.webp +0 -0
  7. package/assets/download-D4NtsTXF.webp +0 -0
  8. package/assets/empty-box-ByMlwLaV.png +0 -0
  9. package/assets/headphones-b1FlU-5n.webp +0 -0
  10. package/assets/magnifying-glass-DnHnztsH.webp +0 -0
  11. package/assets/mandarin-O1JQvcin.png +0 -0
  12. package/assets/person-Dnyaeaax.webp +0 -0
  13. package/assets/plus-XlrU9iHE.webp +0 -0
  14. package/assets/pocket-DumMTe-y.webp +0 -0
  15. package/assets/status-error-CVSJeY0m.webp +0 -0
  16. package/assets/status-success-CQUzL9Lb.webp +0 -0
  17. package/assets/status-warning-qsHG0-rO.webp +0 -0
  18. package/assets/tbank-DHDEULnP.png +0 -0
  19. package/assets/torn-paper-Bxt8F9jg.webp +0 -0
  20. package/assets/user-add-BchFss_X.webp +0 -0
  21. package/assets/user-approved-BKiSeYH5.webp +0 -0
  22. package/assets/user-question-BrqYjUap.webp +0 -0
  23. package/assets/wallet-B1cH4oVg.webp +0 -0
  24. package/chunks/account-balance-icon-CKxx1j3X.js +17 -0
  25. package/chunks/add-circle-icon-D3XpY2oT.js +17 -0
  26. package/chunks/add-icon-CZXR66VL.js +17 -0
  27. package/chunks/android-icon-6SCGu50U.js +17 -0
  28. package/chunks/apple-icon-yya6O1xg.js +17 -0
  29. package/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
  30. package/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
  31. package/chunks/arrow-down-icon-DFvg75P7.js +17 -0
  32. package/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
  33. package/chunks/arrow-left-icon-8yWT42A8.js +17 -0
  34. package/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
  35. package/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
  36. package/chunks/attach-file-icon-OrT7tthI.js +17 -0
  37. package/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
  38. package/chunks/bell-icon-L-Ynt5XK.js +17 -0
  39. package/chunks/bill-error-icon-q8_KROAY.js +17 -0
  40. package/chunks/bill-icon-Cw2GE_VB.js +17 -0
  41. package/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
  42. package/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
  43. package/chunks/bills-error-icon-CcDGUJrx.js +17 -0
  44. package/chunks/bills-icon-BU_adAs0.js +17 -0
  45. package/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
  46. package/chunks/bills-warning-icon-CNgWvumi.js +17 -0
  47. package/chunks/block-icon-DGlp9c33.js +17 -0
  48. package/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
  49. package/chunks/bolt-icon-CJsvLlL-.js +17 -0
  50. package/chunks/book-icon-BdaCKIQB.js +17 -0
  51. package/chunks/business-center-icon-C5X-e-6I.js +17 -0
  52. package/chunks/calendar-icon-B1cogiSd.js +17 -0
  53. package/chunks/call-icon-DslHaQOP.js +17 -0
  54. package/chunks/cancel-fill-DPYenlCk.js +17 -0
  55. package/chunks/check-circle-fill-ne1MhahL.js +17 -0
  56. package/chunks/check-circle-icon-BWhJprgU.js +17 -0
  57. package/chunks/close-icon-CtbXesC0.js +17 -0
  58. package/chunks/cookie-DJ-U7h-A.js +17 -0
  59. package/chunks/copy-icon-BWyncDVB.js +17 -0
  60. package/chunks/credit-card-icon-DS1ckDU7.js +17 -0
  61. package/chunks/delete-icon-Bk1ZmhBo.js +17 -0
  62. package/chunks/document-icon-DcmQhRhY.js +17 -0
  63. package/chunks/done-icon-BZEAL7mI.js +17 -0
  64. package/chunks/dont-disturb-o1xt1TeU.js +17 -0
  65. package/chunks/download-icon-BvWPcT7W.js +17 -0
  66. package/chunks/edit-icon-_3venQRC.js +17 -0
  67. package/chunks/error-fill-icon--8j3Zcfq.js +17 -0
  68. package/chunks/error-icon-CgJ3zr06.js +17 -0
  69. package/chunks/file-error-icon-630wBy1K.js +17 -0
  70. package/chunks/file-success-icon-BTk5SYAM.js +17 -0
  71. package/chunks/filter-icon-D_3_SQsN.js +17 -0
  72. package/chunks/flag-icon-DmWEp4ya.js +17 -0
  73. package/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
  74. package/chunks/full-screen-icon-Dpl__xtk.js +17 -0
  75. package/chunks/group-icon-BfSRHuvp.js +17 -0
  76. package/chunks/help-icon-BMdlItds.js +17 -0
  77. package/chunks/home-icon-Mag5Wxqq.js +17 -0
  78. package/chunks/info-fill-icon-BzE09Xg8.js +17 -0
  79. package/chunks/info-icon-BcUNe5kE.js +17 -0
  80. package/chunks/inventory-icon-CFV8amBs.js +17 -0
  81. package/chunks/link-icon-BUAymb0P.js +17 -0
  82. package/chunks/list-icon-ChePCGxK.js +17 -0
  83. package/chunks/location-icon-Bf9Wbg65.js +17 -0
  84. package/chunks/logout-icon-DN86wp7N.js +17 -0
  85. package/chunks/mail-icon-DCZPsZFE.js +17 -0
  86. package/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
  87. package/chunks/max-icon-CTdBEAt8.js +17 -0
  88. package/chunks/menu-icon-DWObHD95.js +17 -0
  89. package/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
  90. package/chunks/more-vert-icon-NA1tYTse.js +17 -0
  91. package/chunks/north-east-icon-Dh7-1BBW.js +17 -0
  92. package/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
  93. package/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
  94. package/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
  95. package/chunks/page-info-icon-BiVNFu71.js +17 -0
  96. package/chunks/pause-circle-icon-Dpio-qM3.js +17 -0
  97. package/chunks/payment-icon-C-B7L4WP.js +17 -0
  98. package/chunks/person-add-C-3pZhgM.js +17 -0
  99. package/chunks/person-icon-Bo5NxPRQ.js +17 -0
  100. package/chunks/person-search-icon-CwVm_XAL.js +17 -0
  101. package/chunks/pincode-icon-BA-e4pBH.js +17 -0
  102. package/chunks/play-icon-Bnj3hsIf.js +17 -0
  103. package/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
  104. package/chunks/refresh-icon-ac1oOwX8.js +17 -0
  105. package/chunks/remove-icon-CTuoG0Vq.js +17 -0
  106. package/chunks/save-icon-DnF5revo.js +17 -0
  107. package/chunks/sberid-icon-DgQtjRjD.js +17 -0
  108. package/chunks/scenario-icon-BcnFsqUA.js +17 -0
  109. package/chunks/search-icon-CortrXrC.js +17 -0
  110. package/chunks/segment-icon-Bzm7cziF.js +17 -0
  111. package/chunks/send-icon-BTztERTu.js +17 -0
  112. package/chunks/settings-backup-restore-icon-DUrmFxtk.js +17 -0
  113. package/chunks/settings-icon-D_wgjUsM.js +17 -0
  114. package/chunks/shield-icon-BwpxkU5E.js +17 -0
  115. package/chunks/sms-icon-4p-ON5VX.js +17 -0
  116. package/chunks/statistic-icon-mhqUxTDv.js +17 -0
  117. package/chunks/support-icon-CBHKGKq8.js +17 -0
  118. package/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
  119. package/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
  120. package/chunks/time-icon-DsWMo47L.js +17 -0
  121. package/chunks/tinkoffid-icon-DN9XKuNA.js +17 -0
  122. package/chunks/trending-down-icon-DlHKI37F.js +17 -0
  123. package/chunks/trending-up-icon-IEwGHi9c.js +17 -0
  124. package/chunks/unfold-icon-S3J7xXHf.js +17 -0
  125. package/chunks/upload-icon-CwzthQEL.js +17 -0
  126. package/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
  127. package/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
  128. package/chunks/wallet-icon-D0r9bDRg.js +17 -0
  129. package/chunks/whats-app-icon-XbrqQF8U.js +17 -0
  130. package/chunks/work-icon-D7I-74Mk.js +17 -0
  131. package/chunks/zoom-in-icon-ZWEJANob.js +17 -0
  132. package/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
  133. package/lib/index-mini.js +2877 -0
  134. package/package.json +29 -0
  135. package/styles/fonts.css +30 -0
  136. package/styles/konsolpro-custom-ui.css +1 -0
  137. package/styles/variables.css +305 -0
  138. package/types/icon/icon.d.ts +10 -0
  139. package/types/icon/icons.d.ts +112 -0
  140. package/types/icon/index.d.ts +3 -0
  141. package/types/icon-banks/icon-banks.d.ts +7 -0
  142. package/types/icon-banks/icons-banks.d.ts +28 -0
  143. package/types/icon-banks/index.d.ts +3 -0
  144. package/types/icon-documents/icon-document.d.ts +9 -0
  145. package/types/icon-documents/icons-document.d.ts +13 -0
  146. package/types/icon-documents/index.d.ts +3 -0
  147. package/types/index-mini.d.ts +15 -0
  148. package/types/index.d.ts +55 -0
  149. package/types/ui/accordion.d.ts +13 -0
  150. package/types/ui/actions-menu.d.ts +40 -0
  151. package/types/ui/alert.d.ts +16 -0
  152. package/types/ui/autocomplete.d.ts +23 -0
  153. package/types/ui/avatar.d.ts +27 -0
  154. package/types/ui/banner.d.ts +12 -0
  155. package/types/ui/button.d.ts +38 -0
  156. package/types/ui/calendar.d.ts +4 -0
  157. package/types/ui/card.d.ts +38 -0
  158. package/types/ui/carousel.d.ts +11 -0
  159. package/types/ui/checkbox.d.ts +27 -0
  160. package/types/ui/combobox-base/combobox-base.d.ts +10 -0
  161. package/types/ui/combobox-base/index.d.ts +1 -0
  162. package/types/ui/combobox-multiselect/combobox-multiselect-context.d.ts +56 -0
  163. package/types/ui/combobox-multiselect/combobox-multiselect.d.ts +41 -0
  164. package/types/ui/combobox-multiselect/components/combobox-actions.d.ts +5 -0
  165. package/types/ui/combobox-multiselect/components/combobox-container.d.ts +5 -0
  166. package/types/ui/combobox-multiselect/components/combobox-input.d.ts +5 -0
  167. package/types/ui/combobox-multiselect/components/combobox-item-renderer.d.ts +10 -0
  168. package/types/ui/combobox-multiselect/components/combobox-menu.d.ts +6 -0
  169. package/types/ui/combobox-multiselect/components/index.d.ts +5 -0
  170. package/types/ui/combobox-multiselect/index.d.ts +1 -0
  171. package/types/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
  172. package/types/ui/combobox-primitive/components/Item.d.ts +3 -0
  173. package/types/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
  174. package/types/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
  175. package/types/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
  176. package/types/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
  177. package/types/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
  178. package/types/ui/combobox-primitive/components/index.d.ts +8 -0
  179. package/types/ui/combobox-primitive/components/item-view.d.ts +3 -0
  180. package/types/ui/combobox-primitive/components/list.d.ts +3 -0
  181. package/types/ui/combobox-primitive/constants.d.ts +47 -0
  182. package/types/ui/combobox-primitive/hooks.d.ts +8 -0
  183. package/types/ui/combobox-primitive/index.d.ts +3 -0
  184. package/types/ui/combobox-primitive/types.d.ts +74 -0
  185. package/types/ui/combobox-primitive/utils.d.ts +25 -0
  186. package/types/ui/combobox.d.ts +34 -0
  187. package/types/ui/command.d.ts +78 -0
  188. package/types/ui/customizable-carousel.d.ts +148 -0
  189. package/types/ui/date-picker.d.ts +37 -0
  190. package/types/ui/date-range-picker/constants.d.ts +22 -0
  191. package/types/ui/date-range-picker/locales.d.ts +3 -0
  192. package/types/ui/date-range-picker.d.ts +46 -0
  193. package/types/ui/dialog/dialog-base/dialog-base.d.ts +46 -0
  194. package/types/ui/dialog/dialog-base/index.d.ts +3 -0
  195. package/types/ui/dialog/dialog-base/use-base-dialog.d.ts +38 -0
  196. package/types/ui/dialog/dialog-primitive/dialog-primitive.d.ts +38 -0
  197. package/types/ui/dialog/dialog-primitive/index.d.ts +2 -0
  198. package/types/ui/dialog/index.d.ts +2 -0
  199. package/types/ui/dialog/utils.d.ts +6 -0
  200. package/types/ui/divider.d.ts +6 -0
  201. package/types/ui/dropdown.d.ts +55 -0
  202. package/types/ui/input-number/index.d.ts +2 -0
  203. package/types/ui/input-number/input-number.d.ts +43 -0
  204. package/types/ui/input.d.ts +58 -0
  205. package/types/ui/link.d.ts +28 -0
  206. package/types/ui/masked-input.d.ts +12 -0
  207. package/types/ui/modal.d.ts +26 -0
  208. package/types/ui/otp-input.d.ts +49 -0
  209. package/types/ui/pagination/index.d.ts +2 -0
  210. package/types/ui/pagination/pagination.d.ts +18 -0
  211. package/types/ui/phone-input/constants.d.ts +18 -0
  212. package/types/ui/phone-input/locales/ru.json.d.ts +252 -0
  213. package/types/ui/phone-input/locales/tg.json.d.ts +261 -0
  214. package/types/ui/phone-input/locales/uz.json.d.ts +261 -0
  215. package/types/ui/phone-input/phone-input-utils.d.ts +2 -0
  216. package/types/ui/phone-input/phone-input.d.ts +25 -0
  217. package/types/ui/phone-input/phone-mask.d.ts +233 -0
  218. package/types/ui/pointline.d.ts +20 -0
  219. package/types/ui/popover.d.ts +7 -0
  220. package/types/ui/progress.d.ts +4 -0
  221. package/types/ui/radio.d.ts +37 -0
  222. package/types/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
  223. package/types/ui/schedule-calendar/constants.d.ts +3 -0
  224. package/types/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
  225. package/types/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
  226. package/types/ui/schedule-calendar/index.d.ts +16 -0
  227. package/types/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
  228. package/types/ui/schedule-calendar/schedule-header.d.ts +26 -0
  229. package/types/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
  230. package/types/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
  231. package/types/ui/schedule-calendar/utils.d.ts +12 -0
  232. package/types/ui/scroll-area.d.ts +9 -0
  233. package/types/ui/segments.d.ts +44 -0
  234. package/types/ui/select.d.ts +95 -0
  235. package/types/ui/spinner.d.ts +12 -0
  236. package/types/ui/stepper.d.ts +11 -0
  237. package/types/ui/switch.d.ts +24 -0
  238. package/types/ui/table/index.d.ts +4 -0
  239. package/types/ui/table/table-align.d.ts +3 -0
  240. package/types/ui/table/table-body.d.ts +16 -0
  241. package/types/ui/table/table-cards-skeleton.d.ts +6 -0
  242. package/types/ui/table/table-cards.d.ts +16 -0
  243. package/types/ui/table/table-colgroup.d.ts +5 -0
  244. package/types/ui/table/table-columns.d.ts +4 -0
  245. package/types/ui/table/table-empty-state.d.ts +6 -0
  246. package/types/ui/table/table-header.d.ts +17 -0
  247. package/types/ui/table/table-internal-types.d.ts +28 -0
  248. package/types/ui/table/table-settings.d.ts +20 -0
  249. package/types/ui/table/table-skeleton.d.ts +11 -0
  250. package/types/ui/table/table-sticky.d.ts +10 -0
  251. package/types/ui/table/table-types.d.ts +135 -0
  252. package/types/ui/table/table.d.ts +12 -0
  253. package/types/ui/table/use-table-scroll-state.d.ts +3 -0
  254. package/types/ui/table/utils.d.ts +1 -0
  255. package/types/ui/tabs.d.ts +25 -0
  256. package/types/ui/tag.d.ts +28 -0
  257. package/types/ui/textarea.d.ts +17 -0
  258. package/types/ui/time-picker.d.ts +15 -0
  259. package/types/ui/time-range-picker.d.ts +26 -0
  260. package/types/ui/timeline.d.ts +18 -0
  261. package/types/ui/toaster.d.ts +45 -0
  262. package/types/ui/tooltip.d.ts +9 -0
  263. package/types/ui/typography.d.ts +25 -0
  264. 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 };