@bbodek/hooks 0.0.14 → 0.0.15
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/dist/effects/index.d.ts +1 -2
- package/dist/effects/index.d.ts.map +1 -1
- package/dist/effects/useFirstRenderEffect/index.d.ts +2 -0
- package/dist/effects/useFirstRenderEffect/index.d.ts.map +1 -0
- package/dist/effects/useFirstRenderEffect/useFirstRenderEffect.d.ts +4 -0
- package/dist/effects/useFirstRenderEffect/useFirstRenderEffect.d.ts.map +1 -0
- package/dist/hooks/useComposeEventHandler/index.d.ts +2 -0
- package/dist/hooks/useComposeEventHandler/index.d.ts.map +1 -0
- package/dist/hooks/useComposeEventHandler/useComposeEventHandler.d.ts +7 -0
- package/dist/hooks/useComposeEventHandler/useComposeEventHandler.d.ts.map +1 -0
- package/dist/hooks/useDropzone/constants/index.d.ts +17 -0
- package/dist/hooks/useDropzone/constants/index.d.ts.map +1 -0
- package/dist/hooks/useDropzone/effects/index.d.ts +2 -0
- package/dist/hooks/useDropzone/effects/index.d.ts.map +1 -0
- package/dist/hooks/useDropzone/effects/useDropzoneFilesCleanupEffect.d.ts +4 -0
- package/dist/hooks/useDropzone/effects/useDropzoneFilesCleanupEffect.d.ts.map +1 -0
- package/dist/hooks/useDropzone/index.d.ts +4 -0
- package/dist/hooks/useDropzone/index.d.ts.map +1 -0
- package/dist/hooks/useDropzone/types/index.d.ts +66 -0
- package/dist/hooks/useDropzone/types/index.d.ts.map +1 -0
- package/dist/hooks/useDropzone/useDropzone.d.ts +4 -0
- package/dist/hooks/useDropzone/useDropzone.d.ts.map +1 -0
- package/dist/hooks/useDropzone/useDropzoneInput.d.ts +322 -0
- package/dist/hooks/useDropzone/useDropzoneInput.d.ts.map +1 -0
- package/dist/hooks/useDropzone/useDropzoneReducer.d.ts +4 -0
- package/dist/hooks/useDropzone/useDropzoneReducer.d.ts.map +1 -0
- package/dist/hooks/useDropzone/useDropzoneRoot.d.ts +289 -0
- package/dist/hooks/useDropzone/useDropzoneRoot.d.ts.map +1 -0
- package/dist/hooks/useDropzone/useDropzoneUpload.d.ts +4 -0
- package/dist/hooks/useDropzone/useDropzoneUpload.d.ts.map +1 -0
- package/dist/hooks/useDropzone/utils/acceptFiles.d.ts +6 -0
- package/dist/hooks/useDropzone/utils/acceptFiles.d.ts.map +1 -0
- package/dist/hooks/useDropzone/utils/index.d.ts +2 -0
- package/dist/hooks/useDropzone/utils/index.d.ts.map +1 -0
- package/dist/hooks/useDropzone/utils/revokeFile.d.ts +4 -0
- package/dist/hooks/useDropzone/utils/revokeFile.d.ts.map +1 -0
- package/dist/hooks/useExecuteFunction/useExecuteFunction.d.ts +6 -0
- package/dist/hooks/useExecuteFunction/useExecuteFunction.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -2
- package/dist/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/effects/useIsomorphicLayoutEffect/index.d.ts +0 -2
- package/dist/effects/useIsomorphicLayoutEffect/index.d.ts.map +0 -1
- package/dist/effects/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +0 -4
- package/dist/effects/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/dist/effects/useScrollLockEffect/index.d.ts +0 -3
- package/dist/effects/useScrollLockEffect/index.d.ts.map +0 -1
- package/dist/effects/useScrollLockEffect/types/index.d.ts +0 -5
- package/dist/effects/useScrollLockEffect/types/index.d.ts.map +0 -1
- package/dist/effects/useScrollLockEffect/useScrollLockEffect.d.ts +0 -4
- package/dist/effects/useScrollLockEffect/useScrollLockEffect.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useClickOutSide/index.d.ts +0 -4
- package/dist/hooks/useClickOutSide/index.d.ts.map +0 -1
- package/dist/hooks/useClickOutSide/types/index.d.ts +0 -9
- package/dist/hooks/useClickOutSide/types/index.d.ts.map +0 -1
- package/dist/hooks/useClickOutSide/useClickOutSide.d.ts +0 -6
- package/dist/hooks/useClickOutSide/useClickOutSide.d.ts.map +0 -1
- package/dist/hooks/useClickOutSide/useClickOutSideEffect.d.ts +0 -4
- package/dist/hooks/useClickOutSide/useClickOutSideEffect.d.ts.map +0 -1
- package/dist/hooks/useForm/index.d.ts +0 -3
- package/dist/hooks/useForm/index.d.ts.map +0 -1
- package/dist/hooks/useForm/types/index.d.ts +0 -20
- package/dist/hooks/useForm/types/index.d.ts.map +0 -1
- package/dist/hooks/useForm/useForm.d.ts +0 -4
- package/dist/hooks/useForm/useForm.d.ts.map +0 -1
package/dist/effects/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/effects/useFirstRenderEffect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFirstRenderEffect.d.ts","sourceRoot":"","sources":["../../../src/effects/useFirstRenderEffect/useFirstRenderEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAE1C,QAAA,MAAM,oBAAoB,EAAE,OAAO,SAUlC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComposeEventHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventHandler, SyntheticEvent } from 'react';
|
|
2
|
+
import { ComposeEventHandler } from '@bbodek/utils';
|
|
3
|
+
declare const useComposeEventHandler: () => {
|
|
4
|
+
compose: <T extends SyntheticEvent>(handler: ComposeEventHandler<T>) => EventHandler<T>;
|
|
5
|
+
};
|
|
6
|
+
export default useComposeEventHandler;
|
|
7
|
+
//# sourceMappingURL=useComposeEventHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useComposeEventHandler.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComposeEventHandler/useComposeEventHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAe,MAAM,OAAO,CAAC;AAElE,OAAO,EAAuB,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzE,QAAA,MAAM,sBAAsB;cAEvB,CAAC,SAAS,cAAc,WACd,mBAAmB,CAAC,CAAC,CAAC,KAC9B,YAAY,CAAC,CAAC,CAAC;CAKrB,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DropzoneRejectionCodes } from '../../../hooks/useDropzone/types';
|
|
2
|
+
export declare const DROPZONE_ACTION_MAPPER: {
|
|
3
|
+
readonly DRAG: "drag";
|
|
4
|
+
readonly HOVER: "hover";
|
|
5
|
+
readonly SET_FILES: "setFiles";
|
|
6
|
+
readonly SET_REJECT: "setReject";
|
|
7
|
+
readonly DELETE_FILE: "deleteFile";
|
|
8
|
+
readonly RESET_FILES: "resetFiles";
|
|
9
|
+
};
|
|
10
|
+
export declare const DROPZONE_REJECT_CODE_MAPPER: {
|
|
11
|
+
readonly SINGLE_FILE_ONLY: "SINGLE_FILE_ONLY";
|
|
12
|
+
readonly TOO_MANY_FILES: "TOO_MANY_FILES";
|
|
13
|
+
readonly NEED_ACTIVE_MULTIPLE_OPTION: "NEED_ACTIVE_MULTIPLE_OPTION";
|
|
14
|
+
readonly INVALID_FILE_FORMAT: "INVALID_FILE_FORMAT";
|
|
15
|
+
};
|
|
16
|
+
export declare const DROPZONE_REJECT_MESSAGE: Record<DropzoneRejectionCodes, string>;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;CAK9B,CAAC;AAEX,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAS1E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/effects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DropzoneState } from '../../../hooks/useDropzone/types';
|
|
2
|
+
declare const useDropzoneFilesCleanupEffect: ({ acceptedFiles, }: Pick<DropzoneState, "acceptedFiles">) => void;
|
|
3
|
+
export default useDropzoneFilesCleanupEffect;
|
|
4
|
+
//# sourceMappingURL=useDropzoneFilesCleanupEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneFilesCleanupEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/effects/useDropzoneFilesCleanupEffect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,QAAA,MAAM,6BAA6B,GAAI,oBAEpC,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,SAItC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropzone/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Dispatch, HTMLAttributes, RefObject } from 'react';
|
|
2
|
+
import { DROPZONE_ACTION_MAPPER, DROPZONE_REJECT_CODE_MAPPER } from '../../../hooks/useDropzone/constants';
|
|
3
|
+
export interface UseDropzoneReducerReturnType {
|
|
4
|
+
state: DropzoneState;
|
|
5
|
+
dispatch: Dispatch<DropzoneAction>;
|
|
6
|
+
}
|
|
7
|
+
export interface UseDropzoneUpload extends Omit<UseDropzone, 'disabled'>, UseDropzoneReducerReturnType {
|
|
8
|
+
uploadedFiles: DropzoneState['acceptedFiles'];
|
|
9
|
+
}
|
|
10
|
+
export interface UseDropzoneUploadReturnType {
|
|
11
|
+
handleUpload: ({ files }: HandleUpload) => void;
|
|
12
|
+
deleteFile: ({ id }: Pick<FileData, 'id'>) => void;
|
|
13
|
+
resetFiles: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface HandleUpload {
|
|
16
|
+
files: FileList;
|
|
17
|
+
}
|
|
18
|
+
export interface RejectUpload extends Pick<DropzoneState, 'acceptedFiles'> {
|
|
19
|
+
rejectCode: DropzoneRejectionCodes;
|
|
20
|
+
}
|
|
21
|
+
export interface OnDrop extends Pick<DropzoneState, 'acceptedFiles' | 'rejectedFiles'>, Partial<UseDropzoneReducerReturnType> {
|
|
22
|
+
}
|
|
23
|
+
export interface OnDropAccepted extends Pick<DropzoneState, 'acceptedFiles'>, Partial<UseDropzoneReducerReturnType> {
|
|
24
|
+
}
|
|
25
|
+
export interface OnDropRejected extends Required<Pick<DropzoneState, 'rejectedFiles'>>, Partial<UseDropzoneReducerReturnType> {
|
|
26
|
+
}
|
|
27
|
+
export interface UseDropzone {
|
|
28
|
+
multiple?: boolean;
|
|
29
|
+
onDrop?: ({ acceptedFiles, rejectedFiles, state, dispatch }: OnDrop) => void;
|
|
30
|
+
onDropAccepted?: ({ acceptedFiles, state, dispatch }: OnDropAccepted) => void;
|
|
31
|
+
onDropRejected?: ({ rejectedFiles, state, dispatch }: OnDropRejected) => void;
|
|
32
|
+
limit?: number;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
accept?: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface UseDropzoneReturn extends UseDropzoneReducerReturnType, Omit<UseDropzoneUploadReturnType, 'handleUpload'> {
|
|
37
|
+
rootProps: (params?: HTMLAttributes<HTMLDivElement>) => Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
38
|
+
inputProps: (params?: HTMLAttributes<HTMLInputElement>) => HTMLAttributes<HTMLInputElement>;
|
|
39
|
+
}
|
|
40
|
+
export interface UseDropzoneRoot extends Pick<UseDropzone, 'disabled'>, Pick<UseDropzoneReducerReturnType, 'dispatch'>, Pick<UseDropzoneUploadReturnType, 'handleUpload'> {
|
|
41
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
42
|
+
}
|
|
43
|
+
export interface UseDropzoneInput extends Pick<UseDropzone, 'disabled' | 'multiple' | 'accept'>, Pick<UseDropzoneUploadReturnType, 'handleUpload'> {
|
|
44
|
+
}
|
|
45
|
+
export interface FileData extends File {
|
|
46
|
+
id: string;
|
|
47
|
+
blob: string;
|
|
48
|
+
original: File;
|
|
49
|
+
}
|
|
50
|
+
export interface DropzoneState {
|
|
51
|
+
isDragActive: boolean;
|
|
52
|
+
isHover: boolean;
|
|
53
|
+
isActive: boolean;
|
|
54
|
+
acceptedFiles: FileData[];
|
|
55
|
+
rejectedFiles?: {
|
|
56
|
+
files: FileData[];
|
|
57
|
+
code: DropzoneRejectionCodes;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
type DropzoneActions = (typeof DROPZONE_ACTION_MAPPER)[keyof typeof DROPZONE_ACTION_MAPPER];
|
|
61
|
+
export type DropzoneRejectionCodes = (typeof DROPZONE_REJECT_CODE_MAPPER)[keyof typeof DROPZONE_REJECT_CODE_MAPPER];
|
|
62
|
+
export interface DropzoneAction extends Partial<DropzoneState>, Partial<Pick<FileData, 'id'>> {
|
|
63
|
+
type: DropzoneActions;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,EACnC,4BAA4B;IAC9B,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,2BAA2B;IAC1C,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC;IACnD,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;IACxE,UAAU,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,MACf,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,GAAG,eAAe,CAAC,EAC5D,OAAO,CAAC,4BAA4B,CAAC;CAAG;AAE5C,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,EAC1C,OAAO,CAAC,4BAA4B,CAAC;CAAG;AAE5C,MAAM,WAAW,cACf,SAAQ,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,EACpD,OAAO,CAAC,4BAA4B,CAAC;CAAG;AAE5C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,cAAc,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9E,cAAc,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBACf,SAAQ,4BAA4B,EAClC,IAAI,CAAC,2BAA2B,EAAE,cAAc,CAAC;IACnD,SAAS,EAAE,CACT,MAAM,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,KACpC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;IACnD,UAAU,EAAE,CACV,MAAM,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,KACtC,cAAc,CAAC,gBAAgB,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,EACnC,IAAI,CAAC,4BAA4B,EAAE,UAAU,CAAC,EAC9C,IAAI,CAAC,2BAA2B,EAAE,cAAc,CAAC;IACnD,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC,EAC3D,IAAI,CAAC,2BAA2B,EAAE,cAAc,CAAC;CAAG;AAExD,MAAM,WAAW,QAAS,SAAQ,IAAI;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,IAAI,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,QAAQ,EAAE,CAAC;QAClB,IAAI,EAAE,sBAAsB,CAAC;KAC9B,CAAC;CACH;AAED,KAAK,eAAe,GAClB,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAEjF,MAAM,WAAW,cACf,SAAQ,OAAO,CAAC,aAAa,CAAC,EAC5B,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzone.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropzone/useDropzone.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAM3E,QAAA,MAAM,WAAW,GAAI,OAAO,WAAW,KAAG,iBAsCzC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { UseDropzoneInput } from '../../hooks/useDropzone/types';
|
|
3
|
+
declare const useDropzoneInput: ({ multiple, accept, disabled, handleUpload, }: UseDropzoneInput) => {
|
|
4
|
+
inputProps: ({ onChange, ...rest }?: InputHTMLAttributes<HTMLInputElement>) => {
|
|
5
|
+
accept: string;
|
|
6
|
+
alt?: string | undefined;
|
|
7
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
8
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
9
|
+
checked?: boolean | undefined;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
form?: string | undefined;
|
|
12
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
13
|
+
formEncType?: string | undefined;
|
|
14
|
+
formMethod?: string | undefined;
|
|
15
|
+
formNoValidate?: boolean | undefined;
|
|
16
|
+
formTarget?: string | undefined;
|
|
17
|
+
height?: number | string | undefined;
|
|
18
|
+
list?: string | undefined;
|
|
19
|
+
max?: number | string | undefined;
|
|
20
|
+
maxLength?: number | undefined;
|
|
21
|
+
min?: number | string | undefined;
|
|
22
|
+
minLength?: number | undefined;
|
|
23
|
+
multiple: boolean;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
pattern?: string | undefined;
|
|
26
|
+
placeholder?: string | undefined;
|
|
27
|
+
readOnly?: boolean | undefined;
|
|
28
|
+
required?: boolean | undefined;
|
|
29
|
+
size?: number | undefined;
|
|
30
|
+
src?: string | undefined;
|
|
31
|
+
step?: number | string | undefined;
|
|
32
|
+
type: string;
|
|
33
|
+
value?: string | readonly string[] | number | undefined;
|
|
34
|
+
width?: number | string | undefined;
|
|
35
|
+
defaultChecked?: boolean | undefined;
|
|
36
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
37
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
38
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
39
|
+
accessKey?: string | undefined;
|
|
40
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
41
|
+
autoFocus?: boolean | undefined;
|
|
42
|
+
className?: string | undefined;
|
|
43
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
44
|
+
contextMenu?: string | undefined;
|
|
45
|
+
dir?: string | undefined;
|
|
46
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
47
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
48
|
+
hidden?: boolean | undefined;
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
lang?: string | undefined;
|
|
51
|
+
nonce?: string | undefined;
|
|
52
|
+
slot?: string | undefined;
|
|
53
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
54
|
+
style: import("react").CSSProperties | {
|
|
55
|
+
display: string;
|
|
56
|
+
};
|
|
57
|
+
tabIndex: number;
|
|
58
|
+
title?: string | undefined;
|
|
59
|
+
translate?: "yes" | "no" | undefined;
|
|
60
|
+
radioGroup?: string | undefined;
|
|
61
|
+
role?: import("react").AriaRole | undefined;
|
|
62
|
+
about?: string | undefined;
|
|
63
|
+
content?: string | undefined;
|
|
64
|
+
datatype?: string | undefined;
|
|
65
|
+
inlist?: any;
|
|
66
|
+
prefix?: string | undefined;
|
|
67
|
+
property?: string | undefined;
|
|
68
|
+
rel?: string | undefined;
|
|
69
|
+
resource?: string | undefined;
|
|
70
|
+
rev?: string | undefined;
|
|
71
|
+
typeof?: string | undefined;
|
|
72
|
+
vocab?: string | undefined;
|
|
73
|
+
autoCorrect?: string | undefined;
|
|
74
|
+
autoSave?: string | undefined;
|
|
75
|
+
color?: string | undefined;
|
|
76
|
+
itemProp?: string | undefined;
|
|
77
|
+
itemScope?: boolean | undefined;
|
|
78
|
+
itemType?: string | undefined;
|
|
79
|
+
itemID?: string | undefined;
|
|
80
|
+
itemRef?: string | undefined;
|
|
81
|
+
results?: number | undefined;
|
|
82
|
+
security?: string | undefined;
|
|
83
|
+
unselectable?: "on" | "off" | undefined;
|
|
84
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
85
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
86
|
+
popoverTarget?: string | undefined;
|
|
87
|
+
inert?: boolean | undefined;
|
|
88
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
89
|
+
is?: string | undefined;
|
|
90
|
+
exportparts?: string | undefined;
|
|
91
|
+
part?: string | undefined;
|
|
92
|
+
"aria-activedescendant"?: string | undefined;
|
|
93
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
95
|
+
"aria-braillelabel"?: string | undefined;
|
|
96
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
97
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
98
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
99
|
+
"aria-colcount"?: number | undefined;
|
|
100
|
+
"aria-colindex"?: number | undefined;
|
|
101
|
+
"aria-colindextext"?: string | undefined;
|
|
102
|
+
"aria-colspan"?: number | undefined;
|
|
103
|
+
"aria-controls"?: string | undefined;
|
|
104
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
105
|
+
"aria-describedby"?: string | undefined;
|
|
106
|
+
"aria-description"?: string | undefined;
|
|
107
|
+
"aria-details"?: string | undefined;
|
|
108
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
109
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
110
|
+
"aria-errormessage"?: string | undefined;
|
|
111
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
112
|
+
"aria-flowto"?: string | undefined;
|
|
113
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
114
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
115
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
116
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
117
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
118
|
+
"aria-label"?: string | undefined;
|
|
119
|
+
"aria-labelledby"?: string | undefined;
|
|
120
|
+
"aria-level"?: number | undefined;
|
|
121
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
122
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
124
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
125
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
126
|
+
"aria-owns"?: string | undefined;
|
|
127
|
+
"aria-placeholder"?: string | undefined;
|
|
128
|
+
"aria-posinset"?: number | undefined;
|
|
129
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
130
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
131
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
132
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
133
|
+
"aria-roledescription"?: string | undefined;
|
|
134
|
+
"aria-rowcount"?: number | undefined;
|
|
135
|
+
"aria-rowindex"?: number | undefined;
|
|
136
|
+
"aria-rowindextext"?: string | undefined;
|
|
137
|
+
"aria-rowspan"?: number | undefined;
|
|
138
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
139
|
+
"aria-setsize"?: number | undefined;
|
|
140
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
141
|
+
"aria-valuemax"?: number | undefined;
|
|
142
|
+
"aria-valuemin"?: number | undefined;
|
|
143
|
+
"aria-valuenow"?: number | undefined;
|
|
144
|
+
"aria-valuetext"?: string | undefined;
|
|
145
|
+
children?: import("react").ReactNode | undefined;
|
|
146
|
+
dangerouslySetInnerHTML?: {
|
|
147
|
+
__html: string | TrustedHTML;
|
|
148
|
+
} | undefined;
|
|
149
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
150
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
151
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
152
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
153
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
154
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
155
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
156
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
157
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
158
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
159
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
160
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
161
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
162
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
163
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
164
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
165
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
166
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
167
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
168
|
+
onInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onReset?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onResetCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onSubmit?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onInvalid?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
178
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
179
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
180
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
181
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
182
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
183
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
184
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
185
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
187
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
188
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
189
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
190
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
191
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
192
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
193
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
194
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
195
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
196
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
284
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
285
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
286
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
287
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
288
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
289
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
290
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
291
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
292
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
293
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
294
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
295
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
296
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
297
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
298
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
299
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
300
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
301
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
302
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
303
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
304
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
305
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
306
|
+
onToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
307
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
308
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
309
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
310
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
311
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
312
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
313
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
314
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
315
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
316
|
+
ref: import("react").RefObject<HTMLInputElement | null>;
|
|
317
|
+
onChange: import("react").EventHandler<ChangeEvent<HTMLInputElement>> | undefined;
|
|
318
|
+
};
|
|
319
|
+
inputRef: import("react").RefObject<HTMLInputElement | null>;
|
|
320
|
+
};
|
|
321
|
+
export default useDropzoneInput;
|
|
322
|
+
//# sourceMappingURL=useDropzoneInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropzone/useDropzoneInput.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,mBAAmB,EAIpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAI7D,QAAA,MAAM,gBAAgB,GAAI,+CAKvB,gBAAgB;yCAmBW,mBAAmB,CAAC,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgClE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneReducer.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropzone/useDropzoneReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,4BAA4B,EAC7B,MAAM,2BAA2B,CAAC;AA6DnC,QAAA,MAAM,kBAAkB,QAAO,4BAI9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { DragEvent, HTMLAttributes } from 'react';
|
|
2
|
+
import { UseDropzoneRoot } from '../../hooks/useDropzone/types';
|
|
3
|
+
declare const useDropzoneRoot: ({ inputRef, dispatch, disabled, handleUpload, }: UseDropzoneRoot) => {
|
|
4
|
+
rootProps: ({ onDrop, onClick, onDragEnter, onDragLeave, onDragOver, onMouseEnter, onMouseLeave, role, ...rest }?: HTMLAttributes<HTMLDivElement>) => {
|
|
5
|
+
defaultChecked?: boolean | undefined;
|
|
6
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
7
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
8
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
9
|
+
accessKey?: string | undefined;
|
|
10
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
11
|
+
autoFocus?: boolean | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
14
|
+
contextMenu?: string | undefined;
|
|
15
|
+
dir?: string | undefined;
|
|
16
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
17
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
lang?: string | undefined;
|
|
21
|
+
nonce?: string | undefined;
|
|
22
|
+
slot?: string | undefined;
|
|
23
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
24
|
+
style?: import("react").CSSProperties | undefined;
|
|
25
|
+
tabIndex?: number | undefined;
|
|
26
|
+
title?: string | undefined;
|
|
27
|
+
translate?: "yes" | "no" | undefined;
|
|
28
|
+
radioGroup?: string | undefined;
|
|
29
|
+
about?: string | undefined;
|
|
30
|
+
content?: string | undefined;
|
|
31
|
+
datatype?: string | undefined;
|
|
32
|
+
inlist?: any;
|
|
33
|
+
prefix?: string | undefined;
|
|
34
|
+
property?: string | undefined;
|
|
35
|
+
rel?: string | undefined;
|
|
36
|
+
resource?: string | undefined;
|
|
37
|
+
rev?: string | undefined;
|
|
38
|
+
typeof?: string | undefined;
|
|
39
|
+
vocab?: string | undefined;
|
|
40
|
+
autoCorrect?: string | undefined;
|
|
41
|
+
autoSave?: string | undefined;
|
|
42
|
+
color?: string | undefined;
|
|
43
|
+
itemProp?: string | undefined;
|
|
44
|
+
itemScope?: boolean | undefined;
|
|
45
|
+
itemType?: string | undefined;
|
|
46
|
+
itemID?: string | undefined;
|
|
47
|
+
itemRef?: string | undefined;
|
|
48
|
+
results?: number | undefined;
|
|
49
|
+
security?: string | undefined;
|
|
50
|
+
unselectable?: "on" | "off" | undefined;
|
|
51
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
52
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
53
|
+
popoverTarget?: string | undefined;
|
|
54
|
+
inert?: boolean | undefined;
|
|
55
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
56
|
+
is?: string | undefined;
|
|
57
|
+
exportparts?: string | undefined;
|
|
58
|
+
part?: string | undefined;
|
|
59
|
+
"aria-activedescendant"?: string | undefined;
|
|
60
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
62
|
+
"aria-braillelabel"?: string | undefined;
|
|
63
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
64
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
65
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
66
|
+
"aria-colcount"?: number | undefined;
|
|
67
|
+
"aria-colindex"?: number | undefined;
|
|
68
|
+
"aria-colindextext"?: string | undefined;
|
|
69
|
+
"aria-colspan"?: number | undefined;
|
|
70
|
+
"aria-controls"?: string | undefined;
|
|
71
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
72
|
+
"aria-describedby"?: string | undefined;
|
|
73
|
+
"aria-description"?: string | undefined;
|
|
74
|
+
"aria-details"?: string | undefined;
|
|
75
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
76
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
77
|
+
"aria-errormessage"?: string | undefined;
|
|
78
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
"aria-flowto"?: string | undefined;
|
|
80
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
81
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
82
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
83
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
84
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
85
|
+
"aria-label"?: string | undefined;
|
|
86
|
+
"aria-labelledby"?: string | undefined;
|
|
87
|
+
"aria-level"?: number | undefined;
|
|
88
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
89
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
90
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
92
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
93
|
+
"aria-owns"?: string | undefined;
|
|
94
|
+
"aria-placeholder"?: string | undefined;
|
|
95
|
+
"aria-posinset"?: number | undefined;
|
|
96
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
97
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
98
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
99
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
100
|
+
"aria-roledescription"?: string | undefined;
|
|
101
|
+
"aria-rowcount"?: number | undefined;
|
|
102
|
+
"aria-rowindex"?: number | undefined;
|
|
103
|
+
"aria-rowindextext"?: string | undefined;
|
|
104
|
+
"aria-rowspan"?: number | undefined;
|
|
105
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
"aria-setsize"?: number | undefined;
|
|
107
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
108
|
+
"aria-valuemax"?: number | undefined;
|
|
109
|
+
"aria-valuemin"?: number | undefined;
|
|
110
|
+
"aria-valuenow"?: number | undefined;
|
|
111
|
+
"aria-valuetext"?: string | undefined;
|
|
112
|
+
children?: import("react").ReactNode | undefined;
|
|
113
|
+
dangerouslySetInnerHTML?: {
|
|
114
|
+
__html: string | TrustedHTML;
|
|
115
|
+
} | undefined;
|
|
116
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
117
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
118
|
+
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
119
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
120
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
121
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
122
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
123
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
124
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
125
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
126
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
127
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
128
|
+
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
129
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
130
|
+
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
131
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
132
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
134
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
135
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
136
|
+
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
137
|
+
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
138
|
+
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
139
|
+
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
140
|
+
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
141
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
142
|
+
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
143
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
144
|
+
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
145
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
146
|
+
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
147
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
148
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
149
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
150
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
151
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
152
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
153
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
154
|
+
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
155
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
156
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
160
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
161
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
162
|
+
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
163
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
164
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
165
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
166
|
+
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
167
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
172
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
173
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
174
|
+
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
175
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
176
|
+
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
177
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
+
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
+
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
+
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
+
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
+
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
+
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
+
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
194
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
195
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
196
|
+
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
197
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
198
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
199
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
200
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
201
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
202
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
203
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
204
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
205
|
+
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
206
|
+
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
207
|
+
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
208
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
209
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
210
|
+
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
211
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
212
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
213
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
214
|
+
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
215
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
216
|
+
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
217
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
218
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
219
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
220
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
221
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
222
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
223
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
224
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
225
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
226
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
227
|
+
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
228
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
229
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
230
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
231
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
232
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
233
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
234
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
235
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
236
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
237
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
238
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
239
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
240
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
241
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
242
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
243
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
244
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
245
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
246
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
247
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
248
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
249
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
250
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
251
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
252
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
253
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
254
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
255
|
+
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
256
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
257
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
258
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
259
|
+
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
260
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
261
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
262
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
263
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
264
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
265
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
266
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
267
|
+
onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
|
|
268
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
|
|
269
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
270
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
271
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
272
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
273
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
274
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
275
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
276
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
277
|
+
onDrop: import("react").EventHandler<DragEvent<HTMLDivElement>> | undefined;
|
|
278
|
+
onClick: import("react").EventHandler<import("react").MouseEvent<HTMLDivElement, MouseEvent>> | undefined;
|
|
279
|
+
onDragEnter: import("react").EventHandler<DragEvent<HTMLDivElement>> | undefined;
|
|
280
|
+
onDragLeave: import("react").EventHandler<DragEvent<HTMLDivElement>> | undefined;
|
|
281
|
+
onDragOver: import("react").EventHandler<DragEvent<HTMLDivElement>> | undefined;
|
|
282
|
+
onMouseEnter: import("react").EventHandler<import("react").MouseEvent<HTMLDivElement, MouseEvent>> | undefined;
|
|
283
|
+
onMouseLeave: import("react").EventHandler<DragEvent<HTMLDivElement>> | undefined;
|
|
284
|
+
role: import("react").AriaRole;
|
|
285
|
+
ref: import("react").RefObject<HTMLDivElement | null>;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
export default useDropzoneRoot;
|
|
289
|
+
//# sourceMappingURL=useDropzoneRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneRoot.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropzone/useDropzoneRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAgC,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D,QAAA,MAAM,eAAe,GAAI,iDAKtB,eAAe;uHAmFT,cAAc,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EtC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseDropzoneUpload, UseDropzoneUploadReturnType } from '../../hooks/useDropzone/types';
|
|
2
|
+
declare const useDropzoneUpload: ({ uploadedFiles, state, dispatch, multiple, limit, onDrop, onDropAccepted, onDropRejected, accept, }: UseDropzoneUpload) => UseDropzoneUploadReturnType;
|
|
3
|
+
export default useDropzoneUpload;
|
|
4
|
+
//# sourceMappingURL=useDropzoneUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropzoneUpload.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropzone/useDropzoneUpload.ts"],"names":[],"mappings":"AAMA,OAAO,EAIL,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAGnC,QAAA,MAAM,iBAAiB,GAAI,sGAUxB,iBAAiB,KAAG,2BA0GtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseDropzoneInput } from '../../../hooks/useDropzone/types';
|
|
2
|
+
export declare const parseAcceptAttr: ({ accept, }: Pick<UseDropzoneInput, "accept">) => string;
|
|
3
|
+
export declare const parseAcceptFilesToString: (params?: {
|
|
4
|
+
accept: UseDropzoneInput["accept"];
|
|
5
|
+
}) => string;
|
|
6
|
+
//# sourceMappingURL=acceptFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acceptFiles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/utils/acceptFiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,eAAe,GAAI,aAE7B,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,WAAqB,CAAC;AAEzD,eAAO,MAAM,wBAAwB,GAAI,SAAS;IAChD,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;CACpC,WAIA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeFile.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropzone/utils/revokeFile.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,SAAS;IAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAAE,SAGhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExecuteFunction.d.ts","sourceRoot":"","sources":["../../../src/hooks/useExecuteFunction/useExecuteFunction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAmB,MAAM,eAAe,CAAC;AAEjE,QAAA,MAAM,kBAAkB;cAEnB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC;CAKjC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useEffect as e,useRef as n,useState as t,useLayoutEffect as o}from"react";const r=({ref:n,onClose:t,useClickOutsideEvent:o=!0})=>{e((()=>{const e=e=>{n.current&&!n.current.contains(e.target)&&t(e)};return o?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{o&&document.removeEventListener("mousedown",e)}}),[n.current,o])},s=({onClose:e,useClickOutsideEvent:t})=>{const o=n(null);return r({ref:o,onClose:e,useClickOutsideEvent:t}),{contentRef:o}},u=({initialValues:e,validate:n})=>{const[o,r]=t(e),[s,u]=t({});return{values:o,setValues:e=>{const t="function"==typeof e?e(o):e;if(r(t),n){const e=n(t);u(e)}},errors:s,handleChange:t=>{const{name:s,value:c}=t.target;if(s in e&&(r({...o,[s]:c}),n)){const e=n({...o,[s]:c});u(e)}},setErrors:u}},c="undefined"!=typeof window?o:e;export{r as useClickOutSideEffect,s as useClickOutside,u as useForm,c as useIsomorphicLayoutEffect};
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const useIsomorphicLayoutEffect: typeof
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
|
+
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
3
3
|
export default useIsomorphicLayoutEffect;
|
|
4
4
|
//# sourceMappingURL=useIsomorphicLayoutEffect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../src/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../src/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD,QAAA,MAAM,yBAAyB,wBAC8B,CAAC;AAE9D,eAAe,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbodek/hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"dev": "
|
|
16
|
+
"dev": "next dev",
|
|
17
17
|
"build": "rollup -c && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
18
18
|
"start": "next start",
|
|
19
19
|
"lint": "next lint"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@bbodek/utils": "^0.0.5",
|
|
22
23
|
"next": "^15.3.1",
|
|
23
24
|
"react": "^19.1.0",
|
|
24
25
|
"react-dom": "^19.1.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/effects/useIsomorphicLayoutEffect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsomorphicLayoutEffect.d.ts","sourceRoot":"","sources":["../../../src/effects/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD,QAAA,MAAM,yBAAyB,wBAC8B,CAAC;AAE9D,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/effects/useScrollLockEffect/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/effects/useScrollLockEffect/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollLockEffect.d.ts","sourceRoot":"","sources":["../../../src/effects/useScrollLockEffect/useScrollLockEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,QAAA,MAAM,mBAAmB,GAAI,uBAG1B,wBAAwB,SAgB1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickOutSide/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export interface UseClickOutsideProps {
|
|
3
|
-
onClose: (e: MouseEvent) => void;
|
|
4
|
-
useClickOutsideEvent?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface UseClickOutSideEffectProps<T extends HTMLElement> extends UseClickOutsideProps {
|
|
7
|
-
ref: RefObject<T | null>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useClickOutSide/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,SAAS,WAAW,CAC/D,SAAQ,oBAAoB;IAC5B,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;CAC1B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UseClickOutsideProps } from '../../hooks/useClickOutSide/types';
|
|
2
|
-
declare const useClickOutside: <T extends HTMLElement>({ onClose, useClickOutsideEvent, }: UseClickOutsideProps) => {
|
|
3
|
-
contentRef: import("react").RefObject<T | null>;
|
|
4
|
-
};
|
|
5
|
-
export default useClickOutside;
|
|
6
|
-
//# sourceMappingURL=useClickOutSide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutSide.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickOutSide/useClickOutSide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,oCAG7C,oBAAoB;;CAUtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { UseClickOutSideEffectProps } from '../../hooks/useClickOutSide/types';
|
|
2
|
-
declare const useClickOutSideEffect: <T extends HTMLElement>({ ref, onClose, useClickOutsideEvent, }: UseClickOutSideEffectProps<T>) => void;
|
|
3
|
-
export default useClickOutSideEffect;
|
|
4
|
-
//# sourceMappingURL=useClickOutSideEffect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useClickOutSideEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClickOutSide/useClickOutSideEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAE3E,QAAA,MAAM,qBAAqB,GAAI,CAAC,SAAS,WAAW,EAAE,yCAInD,0BAA0B,CAAC,CAAC,CAAC,SAoB/B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForm/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
export type ValueKey<T> = keyof T & string;
|
|
3
|
-
export type UseFormErrors = {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
6
|
-
export interface Props<T> {
|
|
7
|
-
initialValues: T;
|
|
8
|
-
validate?: (fields: T) => UseFormErrors;
|
|
9
|
-
}
|
|
10
|
-
export interface UseFormHandleChangeParams {
|
|
11
|
-
event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>;
|
|
12
|
-
}
|
|
13
|
-
export interface UseFormReturnType<T> {
|
|
14
|
-
values: T;
|
|
15
|
-
setValues: Dispatch<SetStateAction<T>>;
|
|
16
|
-
errors: UseFormErrors;
|
|
17
|
-
handleChange: (event: UseFormHandleChangeParams['event']) => void;
|
|
18
|
-
setErrors: Dispatch<SetStateAction<UseFormErrors>>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useForm/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEtD,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,aAAa,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,aAAa,CAAC;CACzC;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC;IACV,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,EAAE,CAAC,KAAK,EAAE,yBAAyB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAClE,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;CACpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForm/useForm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAiB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,QAAA,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,EAAE,8BAGhC,KAAK,CAAC,CAAC,CAAC,KAAG,iBAAiB,CAAC,CAAC,CA2ChC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|