@ensi-platform/admin-ui 0.10.0 → 0.12.0
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/ai/skills/admin-ui/SKILL.md +1 -0
- package/dist/{Component-MSGhHMYk.js → Component-B1piMJHv.js} +2 -2
- package/dist/{Component-MSGhHMYk.js.map → Component-B1piMJHv.js.map} +1 -1
- package/dist/{Component-BMol_xnR.js → Component-BPAXqDXt.js} +3 -3
- package/dist/{Component-BMol_xnR.js.map → Component-BPAXqDXt.js.map} +1 -1
- package/dist/{Component-DSAL6avh.js → Component-BPN5FgKq.js} +2 -2
- package/dist/{Component-DSAL6avh.js.map → Component-BPN5FgKq.js.map} +1 -1
- package/dist/{Component-D9cY4WmP.js → Component-BuFsNZAH.js} +3 -3
- package/dist/{Component-D9cY4WmP.js.map → Component-BuFsNZAH.js.map} +1 -1
- package/dist/{Component-CD81ynoG.js → Component-CBnhxD86.js} +6 -6
- package/dist/{Component-CD81ynoG.js.map → Component-CBnhxD86.js.map} +1 -1
- package/dist/{Component-DxkpQKZ9.js → Component-CDURmZCP.js} +3 -3
- package/dist/{Component-DxkpQKZ9.js.map → Component-CDURmZCP.js.map} +1 -1
- package/dist/{Component-Dq7pvkWP.js → Component-CQyBQxAb.js} +2 -2
- package/dist/{Component-Dq7pvkWP.js.map → Component-CQyBQxAb.js.map} +1 -1
- package/dist/{Component-DGze6SVb.js → Component-D92F9hx-.js} +2 -2
- package/dist/{Component-DGze6SVb.js.map → Component-D92F9hx-.js.map} +1 -1
- package/dist/{Component-BO5LvfoO.js → Component-DWp04UBh.js} +4 -4
- package/dist/{Component-BO5LvfoO.js.map → Component-DWp04UBh.js.map} +1 -1
- package/dist/{Component-c2va6Tzq.js → Component-D_c3xBcb.js} +3 -3
- package/dist/{Component-c2va6Tzq.js.map → Component-D_c3xBcb.js.map} +1 -1
- package/dist/Component-DhE4a93B.js +138 -0
- package/dist/Component-DhE4a93B.js.map +1 -0
- package/dist/Component-DlBYWjUa.js +107 -0
- package/dist/Component-DlBYWjUa.js.map +1 -0
- package/dist/{Component-DcSDEfYC.js → Component-dmSX0Khf.js} +4 -4
- package/dist/{Component-DcSDEfYC.js.map → Component-dmSX0Khf.js.map} +1 -1
- package/dist/{Component-Cxk1CLsH.js → Component-eoUrqznD.js} +4 -4
- package/dist/{Component-Cxk1CLsH.js.map → Component-eoUrqznD.js.map} +1 -1
- package/dist/{Component-BjITARbg.js → Component-jzDbWkuj.js} +4 -4
- package/dist/{Component-BjITARbg.js.map → Component-jzDbWkuj.js.map} +1 -1
- package/dist/{Component-CzwTENBM.js → Component-uHkw3SDR.js} +2 -2
- package/dist/{Component-CzwTENBM.js.map → Component-uHkw3SDR.js.map} +1 -1
- package/dist/Upload-Bi4Xl-j5.js +120 -0
- package/dist/Upload-Bi4Xl-j5.js.map +1 -0
- package/dist/action-popup/index.js +3 -3
- package/dist/active-filters/index.js +4 -4
- package/dist/arrangement-settings/index.js +3 -3
- package/dist/assets/Component.css +1 -1
- package/dist/assets/Component10.css +1 -1
- package/dist/assets/Component11.css +1 -1
- package/dist/assets/Component12.css +1 -1
- package/dist/assets/Component13.css +1 -1
- package/dist/assets/Component14.css +1 -1
- package/dist/assets/Component15.css +1 -1
- package/dist/assets/Component16.css +1 -0
- package/dist/assets/Component2.css +1 -1
- package/dist/assets/Component3.css +1 -1
- package/dist/assets/Component4.css +1 -1
- package/dist/assets/Component5.css +1 -1
- package/dist/assets/Component6.css +1 -1
- package/dist/assets/Component7.css +1 -1
- package/dist/assets/Component8.css +1 -1
- package/dist/assets/Component9.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -0
- package/dist/assets/index33.css +1 -0
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/autocomplete/index.js +3 -3
- package/dist/autocomplete-async/index.js +3 -3
- package/dist/bottom-sheet/index.js +2 -2
- package/dist/button/Component.d.ts +1 -1
- package/dist/button/Component.d.ts.map +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button/types.d.ts +2 -0
- package/dist/button/types.d.ts.map +1 -1
- package/dist/cascade-menu/index.js +4 -4
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox-group/index.js +2 -2
- package/dist/color-field/Component.d.ts +5 -0
- package/dist/color-field/Component.d.ts.map +1 -0
- package/dist/color-field/FormColorField.d.ts +6 -0
- package/dist/color-field/FormColorField.d.ts.map +1 -0
- package/dist/color-field/index.d.ts +4 -0
- package/dist/color-field/index.d.ts.map +1 -0
- package/dist/color-field/index.js +284 -0
- package/dist/color-field/index.js.map +1 -0
- package/dist/color-field/theme.d.ts +6 -0
- package/dist/color-field/theme.d.ts.map +1 -0
- package/dist/color-field/types.d.ts +58 -0
- package/dist/color-field/types.d.ts.map +1 -0
- package/dist/color-field/utils.d.ts +14 -0
- package/dist/color-field/utils.d.ts.map +1 -0
- package/dist/color-picker/Component.d.ts +5 -0
- package/dist/color-picker/Component.d.ts.map +1 -0
- package/dist/color-picker/index.d.ts +4 -0
- package/dist/color-picker/index.d.ts.map +1 -0
- package/dist/color-picker/index.js +6 -0
- package/dist/color-picker/index.js.map +1 -0
- package/dist/color-picker/types.d.ts +37 -0
- package/dist/color-picker/types.d.ts.map +1 -0
- package/dist/color-picker/utils.d.ts +16 -0
- package/dist/color-picker/utils.d.ts.map +1 -0
- package/dist/combobox/index.js +4 -4
- package/dist/context-menu/index.js +1 -1
- package/dist/copy-button/index.js +2 -2
- package/dist/data-table/index.js +3 -3
- package/dist/date-picker/index.js +5 -5
- package/dist/date-range-picker/index.js +5 -5
- package/dist/drawer/index.js +1 -1
- package/dist/dropzone/Component.d.ts +14 -0
- package/dist/dropzone/Component.d.ts.map +1 -0
- package/dist/dropzone/FormDropzone.d.ts +6 -0
- package/dist/dropzone/FormDropzone.d.ts.map +1 -0
- package/dist/dropzone/__tests__/helpers.d.ts +37 -0
- package/dist/dropzone/__tests__/helpers.d.ts.map +1 -0
- package/dist/dropzone/components/Action/index.d.ts +14 -0
- package/dist/dropzone/components/Action/index.d.ts.map +1 -0
- package/dist/dropzone/components/ActionSlot/index.d.ts +10 -0
- package/dist/dropzone/components/ActionSlot/index.d.ts.map +1 -0
- package/dist/dropzone/components/FileCopy/index.d.ts +7 -0
- package/dist/dropzone/components/FileCopy/index.d.ts.map +1 -0
- package/dist/dropzone/components/FileListDrag/index.d.ts +11 -0
- package/dist/dropzone/components/FileListDrag/index.d.ts.map +1 -0
- package/dist/dropzone/components/FileRows/index.d.ts +9 -0
- package/dist/dropzone/components/FileRows/index.d.ts.map +1 -0
- package/dist/dropzone/components/FileSkeletons/index.d.ts +8 -0
- package/dist/dropzone/components/FileSkeletons/index.d.ts.map +1 -0
- package/dist/dropzone/components/GridItem/index.d.ts +7 -0
- package/dist/dropzone/components/GridItem/index.d.ts.map +1 -0
- package/dist/dropzone/components/GridList/index.d.ts +7 -0
- package/dist/dropzone/components/GridList/index.d.ts.map +1 -0
- package/dist/dropzone/components/Grip/index.d.ts +7 -0
- package/dist/dropzone/components/Grip/index.d.ts.map +1 -0
- package/dist/dropzone/components/Item/index.d.ts +7 -0
- package/dist/dropzone/components/Item/index.d.ts.map +1 -0
- package/dist/dropzone/components/ItemRoot/index.d.ts +8 -0
- package/dist/dropzone/components/ItemRoot/index.d.ts.map +1 -0
- package/dist/dropzone/components/List/index.d.ts +7 -0
- package/dist/dropzone/components/List/index.d.ts.map +1 -0
- package/dist/dropzone/components/Preview/index.d.ts +6 -0
- package/dist/dropzone/components/Preview/index.d.ts.map +1 -0
- package/dist/dropzone/components/Progress/index.d.ts +7 -0
- package/dist/dropzone/components/Progress/index.d.ts.map +1 -0
- package/dist/dropzone/components/Quota/index.d.ts +9 -0
- package/dist/dropzone/components/Quota/index.d.ts.map +1 -0
- package/dist/dropzone/components/SelectionMark/index.d.ts +5 -0
- package/dist/dropzone/components/SelectionMark/index.d.ts.map +1 -0
- package/dist/dropzone/components/TypeMark/index.d.ts +5 -0
- package/dist/dropzone/components/TypeMark/index.d.ts.map +1 -0
- package/dist/dropzone/components/Zone/index.d.ts +34 -0
- package/dist/dropzone/components/Zone/index.d.ts.map +1 -0
- package/dist/dropzone/components/ZoneSkeleton/index.d.ts +3 -0
- package/dist/dropzone/components/ZoneSkeleton/index.d.ts.map +1 -0
- package/dist/dropzone/hooks/useDropzoneFiles.d.ts +30 -0
- package/dist/dropzone/hooks/useDropzoneFiles.d.ts.map +1 -0
- package/dist/dropzone/hooks/useDropzoneFocus.d.ts +18 -0
- package/dist/dropzone/hooks/useDropzoneFocus.d.ts.map +1 -0
- package/dist/dropzone/hooks/useDropzoneSelection.d.ts +15 -0
- package/dist/dropzone/hooks/useDropzoneSelection.d.ts.map +1 -0
- package/dist/dropzone/hooks/useDropzoneUploads.d.ts +27 -0
- package/dist/dropzone/hooks/useDropzoneUploads.d.ts.map +1 -0
- package/dist/dropzone/hooks/useFileList/index.d.ts +23 -0
- package/dist/dropzone/hooks/useFileList/index.d.ts.map +1 -0
- package/dist/dropzone/index.d.ts +4 -0
- package/dist/dropzone/index.d.ts.map +1 -0
- package/dist/dropzone/index.js +1516 -0
- package/dist/dropzone/index.js.map +1 -0
- package/dist/dropzone/theme.d.ts +6 -0
- package/dist/dropzone/theme.d.ts.map +1 -0
- package/dist/dropzone/types.d.ts +240 -0
- package/dist/dropzone/types.d.ts.map +1 -0
- package/dist/dropzone/utils.d.ts +123 -0
- package/dist/dropzone/utils.d.ts.map +1 -0
- package/dist/field/index.js +1 -1
- package/dist/filters/index.js +1 -1
- package/dist/form/hooks/useFieldHook.d.ts +4 -2
- package/dist/form/hooks/useFieldHook.d.ts.map +1 -1
- package/dist/form/index.js +2 -2
- package/dist/grid-layout/index.js +1 -1
- package/dist/hooks-CekMiYbX.js +91 -0
- package/dist/hooks-CekMiYbX.js.map +1 -0
- package/dist/icons/File.d.ts +7 -0
- package/dist/icons/File.d.ts.map +1 -0
- package/dist/icons/ListChecks.d.ts +8 -0
- package/dist/icons/ListChecks.d.ts.map +1 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +83 -145
- package/dist/icons/index.js.map +1 -1
- package/dist/{index-BXlN61PG.js → index-BccXGF9t.js} +2 -2
- package/dist/{index-BXlN61PG.js.map → index-BccXGF9t.js.map} +1 -1
- package/dist/{index-CDCqZ3um.js → index-C_oo7Xm5.js} +3 -3
- package/dist/{index-CDCqZ3um.js.map → index-C_oo7Xm5.js.map} +1 -1
- package/dist/{index-CdAE-ZaU.js → index-DxsuVBkE.js} +4 -4
- package/dist/{index-CdAE-ZaU.js.map → index-DxsuVBkE.js.map} +1 -1
- package/dist/input/index.js +3 -3
- package/dist/link/index.js +1 -1
- package/dist/loader/index.js +2 -2
- package/dist/mask/Component.d.ts +5 -0
- package/dist/mask/Component.d.ts.map +1 -0
- package/dist/mask/FormMask.d.ts +6 -0
- package/dist/mask/FormMask.d.ts.map +1 -0
- package/dist/mask/index.d.ts +4 -0
- package/dist/mask/index.d.ts.map +1 -0
- package/dist/mask/index.js +104 -0
- package/dist/mask/index.js.map +1 -0
- package/dist/mask/types.d.ts +20 -0
- package/dist/mask/types.d.ts.map +1 -0
- package/dist/menu-list/index.js +1 -1
- package/dist/{metrics-B5YsELiI.js → metrics-Cv_jrA15.js} +2 -2
- package/dist/{metrics-B5YsELiI.js.map → metrics-Cv_jrA15.js.map} +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-autocomplete/index.js +3 -3
- package/dist/multi-autocomplete-async/index.js +3 -3
- package/dist/multi-select/index.js +5 -5
- package/dist/number-input/index.js +3 -3
- package/dist/number-range/index.js +3 -3
- package/dist/popover/index.js +1 -1
- package/dist/provider/context.d.ts.map +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/provider/types.d.ts +76 -0
- package/dist/provider/types.d.ts.map +1 -1
- package/dist/select/index.js +3 -3
- package/dist/slider/index.js +3 -3
- package/dist/suggest-checklist/index.js +3 -3
- package/dist/switch/index.js +2 -2
- package/dist/table/index.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/textarea/index.js +4 -4
- package/dist/time-field/index.js +3 -3
- package/dist/toast/index.js +2 -2
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/useFieldHook-o47pjrRg.js +56 -0
- package/dist/useFieldHook-o47pjrRg.js.map +1 -0
- package/dist/{utils-Dj_u-w0s.js → utils-DrTtzDsS.js} +3 -3
- package/dist/{utils-Dj_u-w0s.js.map → utils-DrTtzDsS.js.map} +1 -1
- package/dist/vertical-tabs/index.js +1 -1
- package/package.json +20 -1
- package/src/button/docs/Description.md +9 -8
- package/src/button/docs/cssVariables.ts +1 -0
- package/src/button/types.ts +2 -0
- package/src/color-field/docs/Description.md +46 -0
- package/src/color-field/docs/Example.md +5 -0
- package/src/color-field/docs/cssVariables.ts +34 -0
- package/src/color-field/types.ts +67 -0
- package/src/color-picker/docs/Description.md +26 -0
- package/src/color-picker/docs/Example.md +5 -0
- package/src/color-picker/docs/cssVariables.ts +12 -0
- package/src/color-picker/types.ts +39 -0
- package/src/dropzone/docs/Description.md +73 -0
- package/src/dropzone/docs/Example.md +17 -0
- package/src/dropzone/docs/cssVariables.ts +32 -0
- package/src/dropzone/types.ts +268 -0
- package/src/mask/docs/Description.md +48 -0
- package/src/mask/docs/Example.md +12 -0
- package/src/mask/types.ts +21 -0
- package/src/provider/types.ts +76 -0
- package/dist/Component-C24OpTxW.js +0 -92
- package/dist/Component-C24OpTxW.js.map +0 -1
- package/dist/hooks-BlX5Y4Zt.js +0 -53
- package/dist/hooks-BlX5Y4Zt.js.map +0 -1
- package/dist/useFieldHook-Bt9nST7g.js +0 -52
- package/dist/useFieldHook-Bt9nST7g.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/dropzone/Component.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAyTlE,eAAO,MAAM,QAAQ,uaAnQd,cAAc;;;;;;kBA/DgB,CAAC;gBAEV,CAAC;;;;CAkU3B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IFormDropzoneProps } from './types';
|
|
2
|
+
export declare const FormDropzone: {
|
|
3
|
+
({ name, label, hint, size, block, disabled, className, dataTestId, variant, ref, ...content }: IFormDropzoneProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=FormDropzone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormDropzone.d.ts","sourceRoot":"","sources":["../../../src/dropzone/FormDropzone.tsx"],"names":[],"mappings":"AAYA,OAAO,EAGH,KAAK,kBAAkB,EAE1B,MAAM,SAAS,CAAC;AA4BjB,eAAO,MAAM,YAAY;oGAYtB,kBAAkB;;CA8GpB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { RenderResult } from '@testing-library/react';
|
|
3
|
+
import { IDropzoneFile } from '../types';
|
|
4
|
+
import { default as userEvent } from '@testing-library/user-event';
|
|
5
|
+
export declare const prompt = "\u041D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C, \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B";
|
|
6
|
+
export declare const textFile: (name: string, contents?: string) => File;
|
|
7
|
+
export declare const imageFile: (name: string) => File;
|
|
8
|
+
export declare const upload: (user: ReturnType<typeof userEvent.setup>, file: File | File[]) => Promise<void>;
|
|
9
|
+
export declare const renderZone: (ui: ReactElement) => RenderResult;
|
|
10
|
+
export type TUploadFn = (file: File, options: {
|
|
11
|
+
onProgress: (percent: number) => void;
|
|
12
|
+
signal: AbortSignal;
|
|
13
|
+
}) => Promise<{
|
|
14
|
+
id: string;
|
|
15
|
+
url: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const makeFiles: (names: string[], size?: number) => IDropzoneFile[];
|
|
18
|
+
export declare const row: (name: string) => HTMLElement;
|
|
19
|
+
interface IHarnessProps {
|
|
20
|
+
initial: IDropzoneFile[];
|
|
21
|
+
onRemove?: (file: IDropzoneFile) => void;
|
|
22
|
+
disabled?: boolean | {
|
|
23
|
+
add?: boolean;
|
|
24
|
+
remove?: boolean;
|
|
25
|
+
reorder?: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare const Harness: ({ initial, onRemove, disabled }: IHarnessProps) => import("react").JSX.Element;
|
|
29
|
+
interface IReviewHarnessProps {
|
|
30
|
+
initial: IDropzoneFile[];
|
|
31
|
+
maxFiles?: number;
|
|
32
|
+
onRemove?: (file: IDropzoneFile) => void;
|
|
33
|
+
renderAction?: (file: IDropzoneFile) => ReactElement;
|
|
34
|
+
}
|
|
35
|
+
export declare const ReviewHarness: ({ initial, maxFiles, onRemove, renderAction }: IReviewHarnessProps) => import("react").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/dropzone/__tests__/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,wBAAwB,CAAC;AAK3E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAEzD,eAAO,MAAM,MAAM,gPAAkD,CAAC;AAEtE,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,iBAAkB,SAAuD,CAAC;AAEjH,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,SAAmD,CAAC;AAE1F,eAAO,MAAM,MAAM,GAAU,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,EAAE,kBAEzF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,IAAI,YAAY,KAAG,YAA+D,CAAC;AAE9G,MAAM,MAAM,SAAS,GAAG,CACpB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE;IAAE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,KACtE,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE1C,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,EAAE,EAAE,aAAQ,KAAG,aAAa,EACE,CAAC;AAEtE,eAAO,MAAM,GAAG,GAAI,MAAM,MAAM,gBAAsC,CAAC;AAEvE,UAAU,aAAa;IACnB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,GAAG;QAAE,GAAG,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC/E;AAED,eAAO,MAAM,OAAO,GAAI,iCAAiC,aAAa,gCAIrE,CAAC;AAEF,UAAU,mBAAmB;IACzB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,YAAY,CAAC;CACxD;AAED,eAAO,MAAM,aAAa,GAAI,+CAA+C,mBAAmB,gCAY/F,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { TSVGRIcon } from '../../../ds/common/index.js';
|
|
3
|
+
/** File-row button. `hidden` keeps only the icon; otherwise the label is visible. */
|
|
4
|
+
export declare const DropzoneAction: {
|
|
5
|
+
({ children, className, hidden, icon: Icon, ...props }: Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type"> & {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Hide the text. The accessible name stays the children. */
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
/** Icon shown beside the text, or alone when `hidden`. */
|
|
10
|
+
icon?: TSVGRIcon;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Action/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,qFAAqF;AACrF,eAAO,MAAM,cAAc;4DAMxB,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,GAAG;QACvD,QAAQ,EAAE,SAAS,CAAC;QACpB,6DAA6D;QAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,0DAA0D;QAC1D,IAAI,CAAC,EAAE,SAAS,CAAC;KACpB;;CAKA,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IRowAction } from '../../types';
|
|
2
|
+
export declare const stopRowPress: (event: {
|
|
3
|
+
stopPropagation: () => void;
|
|
4
|
+
}) => void;
|
|
5
|
+
/** Row buttons. `className` is the item's own placement, not the control look. */
|
|
6
|
+
export declare const ActionSlot: ({ actions, className }: {
|
|
7
|
+
actions: readonly IRowAction[];
|
|
8
|
+
className?: string;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/ActionSlot/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,eAAO,MAAM,YAAY,GAAI,OAAO;IAAE,eAAe,EAAE,MAAM,IAAI,CAAA;CAAE,SAElE,CAAC;AAIF,kFAAkF;AAClF,eAAO,MAAM,UAAU,GAAI,wBAAwB;IAAE,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAqBxG,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDropzoneItem } from '../../types';
|
|
2
|
+
/** Name, size or error, and the upload bar. */
|
|
3
|
+
export declare const FileCopy: ({ file, progress, failedLabel, replaceLabel, progressClassName, }: Pick<IDropzoneItem, "file" | "progress" | "failedLabel" | "replaceLabel"> & {
|
|
4
|
+
/** Pulls the bar out of the row padding. */
|
|
5
|
+
progressClassName?: string;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/FileCopy/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD,+CAA+C;AAC/C,eAAO,MAAM,QAAQ,GAAI,mEAMtB,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC,GAAG;IAC3E,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,gCAqBA,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DropTarget } from 'react-aria';
|
|
2
|
+
/** Keyboard drop slot. Stays in the DOM for arrows and does not paint a line. */
|
|
3
|
+
export declare const DropSlot: ({ target }: {
|
|
4
|
+
target: DropTarget;
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
|
+
/** Clone of the dragged row. */
|
|
7
|
+
export declare const DragPreview: ({ id, list }: {
|
|
8
|
+
id: string;
|
|
9
|
+
list: HTMLElement | null;
|
|
10
|
+
}) => import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/FileListDrag/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAK7C,iFAAiF;AACjF,eAAO,MAAM,QAAQ,GAAI,YAAY;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,gCAE1D,CAAC;AAEF,gCAAgC;AAChC,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,gCAyBjF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFileListProps, TDropzoneLayout } from '../../types';
|
|
2
|
+
/** Settled files and rows that are still uploading. */
|
|
3
|
+
export declare const FileRows: {
|
|
4
|
+
({ layout, ...props }: IFileListProps & {
|
|
5
|
+
layout: TDropzoneLayout;
|
|
6
|
+
}): import("react").JSX.Element | null;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/FileRows/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAKxE,uDAAuD;AACvD,eAAO,MAAM,QAAQ;2BAA0B,cAAc,GAAG;QAAE,MAAM,EAAE,eAAe,CAAA;KAAE;;CAsI1F,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TDropzoneLayout, TDropzoneSize } from '../../types';
|
|
2
|
+
/** Placeholder rows or cards while the file list is loading. */
|
|
3
|
+
export declare const FileSkeletons: ({ count, layout, size, }: {
|
|
4
|
+
count: number;
|
|
5
|
+
layout: TDropzoneLayout;
|
|
6
|
+
size: TDropzoneSize;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/FileSkeletons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAIvE,gEAAgE;AAChE,eAAO,MAAM,aAAa,GAAI,0BAI3B;IACC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,aAAa,CAAC;CACvB,gCAkBA,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDropzoneItem } from '../../types';
|
|
2
|
+
/** Grid file card. */
|
|
3
|
+
export declare const GridItem: {
|
|
4
|
+
({ element, elementProps, size, file, selected, gripLabel, actions, action, progress, failedLabel, replaceLabel, }: IDropzoneItem): import("react").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/GridItem/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,aAAa,CAAC;AAYlE,sBAAsB;AACtB,eAAO,MAAM,QAAQ;wHAYlB,aAAa;;CAgBf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/GridList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,0BAA0B;AAC1B,eAAO,MAAM,QAAQ;YAAW,cAAc;;CAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Grip/index.tsx"],"names":[],"mappings":"AAIA,kDAAkD;AAClD,eAAO,MAAM,IAAI,GAAI,sCAIlB;IACC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,gCAIA,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDropzoneItem } from '../../types';
|
|
2
|
+
/** File row. */
|
|
3
|
+
export declare const Item: {
|
|
4
|
+
({ element, elementProps, size, file, selected, gripLabel, actions, action, progress, failedLabel, replaceLabel, }: IDropzoneItem): import("react").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Item/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAUjD,gBAAgB;AAChB,eAAO,MAAM,IAAI;wHAYd,aAAa;;CAqBf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IDropzoneItem } from '../../types';
|
|
3
|
+
/** File root. `div` while uploading, a list row once the file is settled. */
|
|
4
|
+
export declare const ItemRoot: ({ element, elementProps, className, children, }: Pick<IDropzoneItem, "element" | "elementProps"> & {
|
|
5
|
+
className: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/ItemRoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,6EAA6E;AAC7E,eAAO,MAAM,QAAQ,GAAI,iDAKtB,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,cAAc,CAAC,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,gCAc9F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,2BAA2B;AAC3B,eAAO,MAAM,IAAI;YAAW,cAAc;;CAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Preview/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAcjD,0DAA0D;AAC1D,eAAO,MAAM,OAAO,GAAI,UAAU;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,gCA2BxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Progress/index.tsx"],"names":[],"mappings":"AAIA,+DAA+D;AAC/D,eAAO,MAAM,QAAQ,GAAI,4BAA4B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAW9G,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Count and byte meter above the file list. */
|
|
2
|
+
export declare const Quota: ({ text, ratio, now, max, full, }: {
|
|
3
|
+
text: string;
|
|
4
|
+
ratio: number;
|
|
5
|
+
now: number;
|
|
6
|
+
max: number;
|
|
7
|
+
full: boolean;
|
|
8
|
+
}) => import("react").JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Quota/index.tsx"],"names":[],"mappings":"AAEA,gDAAgD;AAChD,eAAO,MAAM,KAAK,GAAI,kCAMnB;IACC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;CACjB,uCAsBA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/SelectionMark/index.tsx"],"names":[],"mappings":"AAEA,2CAA2C;AAC3C,eAAO,MAAM,aAAa,GAAI,eAAe;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,gCAIjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/TypeMark/index.tsx"],"names":[],"mappings":"AAIA,gFAAgF;AAChF,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,gCAIlD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { DropzoneInputProps, DropzoneRootProps } from 'react-dropzone';
|
|
3
|
+
import { IDropzoneItem, IFileListProps, TDropzoneSize, TDropzoneVariant } from '../../types';
|
|
4
|
+
export interface IZoneProps {
|
|
5
|
+
size: TDropzoneSize;
|
|
6
|
+
variant: TDropzoneVariant;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
dropTarget?: boolean;
|
|
10
|
+
/** Full list: the zone stays, but it does not take files. */
|
|
11
|
+
blocked?: boolean;
|
|
12
|
+
/** Placeholder instead of the icon and the prompt. */
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
rootProps: DropzoneRootProps;
|
|
16
|
+
inputProps: DropzoneInputProps;
|
|
17
|
+
limits?: ReactNode;
|
|
18
|
+
/** File list implementation. */
|
|
19
|
+
list: ComponentType<IFileListProps>;
|
|
20
|
+
/** File element implementation. Passed into `list`. */
|
|
21
|
+
item: ComponentType<IDropzoneItem>;
|
|
22
|
+
/** Settled and pending files. Absent while the list is replaced by `placeholder`. */
|
|
23
|
+
fileList?: Omit<IFileListProps, 'item'>;
|
|
24
|
+
/** Quota and other nodes between the drop box and the files. */
|
|
25
|
+
between?: ReactNode;
|
|
26
|
+
/** Shown instead of the file list. */
|
|
27
|
+
placeholder?: ReactNode;
|
|
28
|
+
filesClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const Zone: {
|
|
31
|
+
({ size, variant, disabled, invalid, dropTarget, blocked, loading, label, rootProps, inputProps, limits, list: ListView, item: ItemView, fileList, between, placeholder, filesClassName, }: IZoneProps): import("react").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/Zone/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrF,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIjF,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKjH,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,gCAAgC;IAChC,IAAI,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACpC,uDAAuD;IACvD,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACnC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACxC,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sCAAsC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI;gMAkBd,UAAU;;CAkCZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/components/ZoneSkeleton/index.tsx"],"names":[],"mappings":"AAEA,8DAA8D;AAC9D,eAAO,MAAM,YAAY,mCAMxB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IDropzoneControlProps, IDropzoneFile } from '../types';
|
|
2
|
+
export interface IUseDropzoneFilesOptions extends Omit<IDropzoneControlProps, 'disabled'> {
|
|
3
|
+
/** Zone refuses new files. */
|
|
4
|
+
addDisabled?: boolean;
|
|
5
|
+
/** Rows cannot be reordered. */
|
|
6
|
+
reorderDisabled?: boolean;
|
|
7
|
+
/** Show a loader instead of the file list. */
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
onRejectionChange?: (message: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useDropzoneFiles: ({ value, defaultValue, onChange, onRemove, accept, maxSize, maxTotalSize, maxFiles, maxFileNameLength, paste, upload, validate, addDisabled, reorderDisabled, loading, onRejectionChange, onPendingChange, }: IUseDropzoneFilesOptions) => {
|
|
12
|
+
files: IDropzoneFile[];
|
|
13
|
+
pending: import('..').IPendingDropzoneFile[];
|
|
14
|
+
rejection: string;
|
|
15
|
+
hasRoom: boolean;
|
|
16
|
+
countFull: boolean;
|
|
17
|
+
isDragActive: boolean;
|
|
18
|
+
canReorder: boolean;
|
|
19
|
+
getRootProps: <T extends import('react-dropzone').DropzoneRootProps>(props?: T) => T;
|
|
20
|
+
getInputProps: <T extends import('react-dropzone').DropzoneInputProps>(props?: T) => T;
|
|
21
|
+
remove: (file: IDropzoneFile) => void;
|
|
22
|
+
removeMany: (ids: ReadonlySet<string>) => number;
|
|
23
|
+
retry: (id: string) => void;
|
|
24
|
+
cancel: (id: string) => void;
|
|
25
|
+
setFiles: (next: IDropzoneFile[]) => void;
|
|
26
|
+
count: number;
|
|
27
|
+
bytes: number;
|
|
28
|
+
uploading: boolean;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=useDropzoneFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneFiles.d.ts","sourceRoot":"","sources":["../../../../src/dropzone/hooks/useDropzoneFiles.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAe1E,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC;IACrF,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gCAAgC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AA0CD,eAAO,MAAM,gBAAgB,GAAI,8MAkB9B,wBAAwB;;;;;;;;;;mBAyNZ,aAAa;sBAUd,WAAW,CAAC,MAAM,CAAC;;;qBA5LK,aAAa,EAAE;;;;CAyOpD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDropzoneFile } from '../types';
|
|
2
|
+
export interface IUseDropzoneFocusOptions {
|
|
3
|
+
files: readonly IDropzoneFile[];
|
|
4
|
+
maxFiles?: number;
|
|
5
|
+
}
|
|
6
|
+
/** Focus after a removal, the replace flash, and the live announcement. */
|
|
7
|
+
export declare const useDropzoneFocus: ({ files, maxFiles }: IUseDropzoneFocusOptions) => {
|
|
8
|
+
announcement: {
|
|
9
|
+
text: string;
|
|
10
|
+
tick: number;
|
|
11
|
+
};
|
|
12
|
+
focusId: string | null;
|
|
13
|
+
setFocusId: import('react').Dispatch<import('react').SetStateAction<string | null>>;
|
|
14
|
+
flashId: string | null;
|
|
15
|
+
announce: (text: string) => void;
|
|
16
|
+
neighbourOf: (removedIds: ReadonlySet<string>) => IDropzoneFile;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useDropzoneFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneFocus.d.ts","sourceRoot":"","sources":["../../../../src/dropzone/hooks/useDropzoneFocus.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,GAAI,qBAAqB,wBAAwB;;;;;;;;qBAWtC,MAAM;8BAIG,WAAW,CAAC,MAAM,CAAC;CAwCnE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { IDropzoneFile } from '../types';
|
|
3
|
+
export interface IUseDropzoneSelectionOptions {
|
|
4
|
+
rootRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
files: readonly IDropzoneFile[];
|
|
6
|
+
selectable: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Multi-file selection, including Delete and a click outside the list. */
|
|
9
|
+
export declare const useDropzoneSelection: ({ rootRef, files, selectable }: IUseDropzoneSelectionOptions) => {
|
|
10
|
+
selected: Set<string>;
|
|
11
|
+
setSelected: import('react').Dispatch<import('react').SetStateAction<Set<string>>>;
|
|
12
|
+
selectedRef: RefObject<Set<string>>;
|
|
13
|
+
deleteRef: RefObject<() => void>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useDropzoneSelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneSelection.d.ts","sourceRoot":"","sources":["../../../../src/dropzone/hooks/useDropzoneSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAgD,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,4BAA4B;IACzC,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,GAAI,gCAAgC,4BAA4B;;;;+BAG9D,IAAI;CAwEtC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { IDropzoneControlProps, IDropzoneFile, IPendingDropzoneFile } from '../types';
|
|
3
|
+
import { IFileRefusal } from '../utils';
|
|
4
|
+
interface IUploadLimits {
|
|
5
|
+
maxFiles?: number;
|
|
6
|
+
maxTotalSize?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IUseDropzoneUploadsOptions {
|
|
9
|
+
commit: (next: IDropzoneFile[]) => void;
|
|
10
|
+
filesRef: MutableRefObject<IDropzoneFile[]>;
|
|
11
|
+
limitsRef: MutableRefObject<IUploadLimits>;
|
|
12
|
+
uploadRef: MutableRefObject<IDropzoneControlProps['upload']>;
|
|
13
|
+
onRemoveRef: MutableRefObject<((file: IDropzoneFile) => void) | undefined>;
|
|
14
|
+
setRejection: (message: string) => void;
|
|
15
|
+
sentence: (item: IFileRefusal) => string;
|
|
16
|
+
}
|
|
17
|
+
/** In-flight and failed uploads. Refs update in the same turn as state. */
|
|
18
|
+
export declare const useDropzoneUploads: ({ commit, filesRef, limitsRef, uploadRef, onRemoveRef, setRejection, sentence, }: IUseDropzoneUploadsOptions) => {
|
|
19
|
+
pending: IPendingDropzoneFile[];
|
|
20
|
+
pendingRef: import('react').RefObject<IPendingDropzoneFile[]>;
|
|
21
|
+
updatePending: (next: IPendingDropzoneFile[]) => void;
|
|
22
|
+
runUpload: (entry: IPendingDropzoneFile) => void;
|
|
23
|
+
cancel: (id: string) => void;
|
|
24
|
+
retry: (id: string) => void;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=useDropzoneUploads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneUploads.d.ts","sourceRoot":"","sources":["../../../../src/dropzone/hooks/useDropzoneUploads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAA4C,MAAM,OAAO,CAAC;AAExF,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAmB,KAAK,YAAY,EAA6B,MAAM,UAAU,CAAC;AAEzF,UAAU,aAAa;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5C,SAAS,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7D,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IAC3E,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAC;CAC5C;AAED,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,GAAI,kFAQhC,0BAA0B;;;0BAMgB,oBAAoB,EAAE;uBA+BnD,oBAAoB;iBAuEvB,MAAM;gBA+CN,MAAM;CAqClB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Selection } from 'react-aria-components';
|
|
2
|
+
import { IDropzoneFile, IFileListProps, IRowAction } from '../../types';
|
|
3
|
+
interface IShift {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
type TRowTarget = {
|
|
8
|
+
kind: 'file';
|
|
9
|
+
file: IDropzoneFile;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'pending';
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const useFileList: ({ files, pending, canReorder, removable, removeDisabled, selectable, selectedKeys, onSelectionChange: changeSelection, focusId, removeLabel, retryLabel, cancelLabel, onRemove, onRetry, onDismiss, onCancel, onReorder, }: IFileListProps) => {
|
|
15
|
+
listRef: import('react').RefObject<HTMLDivElement | null>;
|
|
16
|
+
dragAndDropHooks: import('react-aria-components').DragAndDropHooks<object>;
|
|
17
|
+
shifts: Record<string, IShift>;
|
|
18
|
+
flipping: boolean;
|
|
19
|
+
actionsFor: (target: TRowTarget) => IRowAction[];
|
|
20
|
+
onSelectionChange: ((keys: Selection) => void) | undefined;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dropzone/hooks/useFileList/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAQvF,UAAU,MAAM;IACZ,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,KAAK,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1F,eAAO,MAAM,WAAW,GAAI,4NAkBzB,cAAc;;;;;yBAsUe,UAAU,KAAG,UAAU,EAAE;+BAmCpB,SAAS;CAwB7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dropzone/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|