@mantine-vue/dropzone 2.4.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.cjs +356 -290
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +353 -289
- package/esm/index.mjs.map +1 -1
- package/lib/components/Dropzone/Dropzone.types.d.ts +102 -0
- package/lib/components/Dropzone/Dropzone.vue.d.ts +32 -0
- package/lib/components/Dropzone/index.d.ts +19 -0
- package/lib/components/DropzoneFullScreen/DropzoneFullScreen.types.d.ts +30 -0
- package/lib/components/DropzoneFullScreen/DropzoneFullScreen.vue.d.ts +33 -0
- package/lib/components/DropzoneFullScreen/index.d.ts +11 -0
- package/lib/components/DropzoneStatus/DropzoneAccept.vue.d.ts +3 -0
- package/lib/components/DropzoneStatus/DropzoneIdle.vue.d.ts +3 -0
- package/lib/components/DropzoneStatus/DropzoneReject.vue.d.ts +3 -0
- package/lib/components/DropzoneStatus/DropzoneStatus.types.d.ts +8 -0
- package/lib/components/DropzoneStatus/DropzoneStatus.vue.d.ts +8 -0
- package/lib/components/DropzoneStatus/index.d.ts +4 -0
- package/lib/index.d.mts +6 -6
- package/lib/index.d.ts +6 -6
- package/package.json +3 -3
- package/lib/Dropzone.d.ts +0 -1240
- package/lib/DropzoneFullScreen.d.ts +0 -101
- package/lib/DropzoneStatus.d.ts +0 -58
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import { type DropzoneProps, type DropzoneStylesNames } from './Dropzone';
|
|
3
|
-
export type DropzoneFullScreenStylesNames = DropzoneStylesNames | 'fullScreen';
|
|
4
|
-
export interface DropzoneFullScreenProps extends Omit<DropzoneProps, 'variant' | 'classNames' | 'styles' | 'vars'> {
|
|
5
|
-
/** Determines whether user can drop files to browser window @default true */
|
|
6
|
-
active?: boolean;
|
|
7
|
-
/** Z-index value @default 9999 (theme "max" z-index) */
|
|
8
|
-
zIndex?: string | number;
|
|
9
|
-
/** Determines whether component should be rendered within `Portal` @default true */
|
|
10
|
-
withinPortal?: boolean;
|
|
11
|
-
/** Props to pass down to the portal when withinPortal is `true` */
|
|
12
|
-
portalProps?: Record<string, any>;
|
|
13
|
-
classNames?: any;
|
|
14
|
-
styles?: any;
|
|
15
|
-
}
|
|
16
|
-
export declare const DropzoneFullScreen: import("@mantine-vue/core").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
-
active: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: undefined;
|
|
20
|
-
};
|
|
21
|
-
onDrop: {
|
|
22
|
-
type: PropType<(files: any[]) => void>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
onReject: {
|
|
26
|
-
type: PropType<(fileRejections: any[]) => void>;
|
|
27
|
-
default: undefined;
|
|
28
|
-
};
|
|
29
|
-
zIndex: {
|
|
30
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
31
|
-
default: undefined;
|
|
32
|
-
};
|
|
33
|
-
withinPortal: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: undefined;
|
|
36
|
-
};
|
|
37
|
-
portalProps: {
|
|
38
|
-
type: PropType<Record<string, any>>;
|
|
39
|
-
default: undefined;
|
|
40
|
-
};
|
|
41
|
-
classNames: {
|
|
42
|
-
type: (ObjectConstructor | FunctionConstructor)[];
|
|
43
|
-
default: undefined;
|
|
44
|
-
};
|
|
45
|
-
styles: {
|
|
46
|
-
type: (ObjectConstructor | FunctionConstructor)[];
|
|
47
|
-
default: undefined;
|
|
48
|
-
};
|
|
49
|
-
unstyled: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
|
-
[key: string]: any;
|
|
55
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
-
active: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: undefined;
|
|
59
|
-
};
|
|
60
|
-
onDrop: {
|
|
61
|
-
type: PropType<(files: any[]) => void>;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
onReject: {
|
|
65
|
-
type: PropType<(fileRejections: any[]) => void>;
|
|
66
|
-
default: undefined;
|
|
67
|
-
};
|
|
68
|
-
zIndex: {
|
|
69
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
70
|
-
default: undefined;
|
|
71
|
-
};
|
|
72
|
-
withinPortal: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: undefined;
|
|
75
|
-
};
|
|
76
|
-
portalProps: {
|
|
77
|
-
type: PropType<Record<string, any>>;
|
|
78
|
-
default: undefined;
|
|
79
|
-
};
|
|
80
|
-
classNames: {
|
|
81
|
-
type: (ObjectConstructor | FunctionConstructor)[];
|
|
82
|
-
default: undefined;
|
|
83
|
-
};
|
|
84
|
-
styles: {
|
|
85
|
-
type: (ObjectConstructor | FunctionConstructor)[];
|
|
86
|
-
default: undefined;
|
|
87
|
-
};
|
|
88
|
-
unstyled: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
}>> & Readonly<{}>, {
|
|
93
|
-
classNames: Function | Record<string, any>;
|
|
94
|
-
styles: Function | Record<string, any>;
|
|
95
|
-
active: boolean;
|
|
96
|
-
zIndex: string | number;
|
|
97
|
-
unstyled: boolean;
|
|
98
|
-
withinPortal: boolean;
|
|
99
|
-
portalProps: Record<string, any>;
|
|
100
|
-
onReject: (fileRejections: any[]) => void;
|
|
101
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
package/lib/DropzoneStatus.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
-
export declare const DropzoneAccept: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
children: {
|
|
4
|
-
type: PropType<VNodeChild>;
|
|
5
|
-
default: undefined;
|
|
6
|
-
};
|
|
7
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
children: {
|
|
11
|
-
type: PropType<VNodeChild>;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
|
-
}>> & Readonly<{}>, {
|
|
15
|
-
children: VNodeChild;
|
|
16
|
-
}, SlotsType<{
|
|
17
|
-
default?: () => VNodeChild;
|
|
18
|
-
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
-
export declare const DropzoneReject: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
20
|
-
children: {
|
|
21
|
-
type: PropType<VNodeChild>;
|
|
22
|
-
default: undefined;
|
|
23
|
-
};
|
|
24
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
children: {
|
|
28
|
-
type: PropType<VNodeChild>;
|
|
29
|
-
default: undefined;
|
|
30
|
-
};
|
|
31
|
-
}>> & Readonly<{}>, {
|
|
32
|
-
children: VNodeChild;
|
|
33
|
-
}, SlotsType<{
|
|
34
|
-
default?: () => VNodeChild;
|
|
35
|
-
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
-
export declare const DropzoneIdle: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
37
|
-
children: {
|
|
38
|
-
type: PropType<VNodeChild>;
|
|
39
|
-
default: undefined;
|
|
40
|
-
};
|
|
41
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
-
children: {
|
|
45
|
-
type: PropType<VNodeChild>;
|
|
46
|
-
default: undefined;
|
|
47
|
-
};
|
|
48
|
-
}>> & Readonly<{}>, {
|
|
49
|
-
children: VNodeChild;
|
|
50
|
-
}, SlotsType<{
|
|
51
|
-
default?: () => VNodeChild;
|
|
52
|
-
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
-
export interface DropzoneStatusProps {
|
|
54
|
-
children?: VNodeChild;
|
|
55
|
-
}
|
|
56
|
-
export type DropzoneAcceptProps = DropzoneStatusProps;
|
|
57
|
-
export type DropzoneRejectProps = DropzoneStatusProps;
|
|
58
|
-
export type DropzoneIdleProps = DropzoneStatusProps;
|