@bbodek/hooks 0.0.14 → 0.0.16
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/index.d.ts +3 -2
- package/dist/hooks/index.d.ts.map +1 -1
- 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/index.d.ts +2 -0
- package/dist/hooks/useExecuteFunction/index.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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +171 -1
- package/dist/index.es.js.map +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/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"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,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":"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"}
|
|
@@ -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 | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
44
|
+
contextMenu?: string | undefined;
|
|
45
|
+
dir?: string | undefined;
|
|
46
|
+
draggable?: (boolean | "false" | "true") | 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 | "false" | "true") | undefined;
|
|
54
|
+
style: {
|
|
55
|
+
display: string;
|
|
56
|
+
} | import("react").CSSProperties;
|
|
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 | "false" | "true") | undefined;
|
|
94
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
95
|
+
"aria-braillelabel"?: string | undefined;
|
|
96
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
97
|
+
"aria-busy"?: (boolean | "false" | "true") | 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 | "false" | "true") | undefined;
|
|
109
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
110
|
+
"aria-errormessage"?: string | undefined;
|
|
111
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
112
|
+
"aria-flowto"?: string | undefined;
|
|
113
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
114
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
115
|
+
"aria-hidden"?: (boolean | "false" | "true") | 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 | "false" | "true") | undefined;
|
|
123
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
124
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | 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 | "false" | "true") | 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 | "false" | "true") | 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 | "false" | "true") | 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"}
|