@elliemae/ds-uploader 2.3.0-alpha.8 → 2.3.0-alpha.9
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.
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { DSUploaderPropsT } from './index.d';
|
|
4
|
+
declare const DSUploader: {
|
|
5
|
+
({ containerProps, label, icon: UploadFileIcon, defaultActionLabel, dragActiveInstructionalText, dragActiveIcon: DragActiveIcon, altActionLabel, acceptedTypesText, disabledDefault, disabledAlt, onDefaultHandlerClick, onAltHandlerClick, actions, showAltAction, defaultActionTooltipText, altActionTooltipText, ...dropzoneProps }: DSUploaderPropsT): JSX.Element;
|
|
6
|
+
actions: {
|
|
7
|
+
defaultAction: string;
|
|
8
|
+
altAction: string;
|
|
9
|
+
};
|
|
10
|
+
propTypes: {
|
|
11
|
+
containerProps: {
|
|
12
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
|
+
};
|
|
17
|
+
validator: {
|
|
18
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
|
+
};
|
|
23
|
+
maxFiles: {
|
|
24
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
+
};
|
|
29
|
+
minSize: {
|
|
30
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
+
};
|
|
35
|
+
maxSize: {
|
|
36
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
40
|
+
};
|
|
41
|
+
onDropRejected: {
|
|
42
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
46
|
+
};
|
|
47
|
+
disabled: {
|
|
48
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
52
|
+
};
|
|
53
|
+
multiple: {
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
|
+
};
|
|
59
|
+
accept: {
|
|
60
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
61
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
62
|
+
};
|
|
63
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
64
|
+
};
|
|
65
|
+
label: {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
icon: {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
actions: {
|
|
72
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
defaultActionLabel: {
|
|
75
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
79
|
+
};
|
|
80
|
+
showAltAction: {
|
|
81
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
+
};
|
|
83
|
+
altActionLabel: {
|
|
84
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
dragActiveInstructionalText: {
|
|
87
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
89
|
+
dragActiveIcon: {
|
|
90
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
91
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
92
|
+
};
|
|
93
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
94
|
+
};
|
|
95
|
+
acceptedTypesText: {
|
|
96
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
98
|
+
disabledDefault: {
|
|
99
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
100
|
+
};
|
|
101
|
+
disabledAlt: {
|
|
102
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
103
|
+
};
|
|
104
|
+
onDefaultHandlerClick: {
|
|
105
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
106
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
107
|
+
};
|
|
108
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
109
|
+
};
|
|
110
|
+
onAltHandlerClick: {
|
|
111
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
112
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
113
|
+
};
|
|
114
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
115
|
+
};
|
|
116
|
+
defaultActionTooltipText: {
|
|
117
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
118
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
119
|
+
};
|
|
120
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
121
|
+
};
|
|
122
|
+
altActionTooltipText: {
|
|
123
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
124
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
125
|
+
};
|
|
126
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
declare const UploaderWithSchema: {
|
|
131
|
+
(props?: unknown): JSX.Element;
|
|
132
|
+
propTypes: unknown;
|
|
133
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
134
|
+
};
|
|
135
|
+
export { UploaderWithSchema };
|
|
136
|
+
export default DSUploader;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface DSUploaderPropsT {
|
|
3
|
+
containerProps?: Record<string, unknown>;
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: React.FC<{
|
|
6
|
+
size: string;
|
|
7
|
+
}>;
|
|
8
|
+
defaultActionLabel?: string;
|
|
9
|
+
dragActiveInstructionalText?: string;
|
|
10
|
+
dragActiveIcon?: React.FC;
|
|
11
|
+
altActionLabel?: string;
|
|
12
|
+
acceptedTypesText?: string;
|
|
13
|
+
disabledDefault?: boolean;
|
|
14
|
+
disabledAlt?: boolean;
|
|
15
|
+
onDefaultHandlerClick?: () => void | null;
|
|
16
|
+
onAltHandlerClick?: () => void | null;
|
|
17
|
+
actions?: Record<string, unknown>;
|
|
18
|
+
showAltAction?: boolean;
|
|
19
|
+
defaultActionTooltipText: string;
|
|
20
|
+
altActionTooltipText: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ActionButtonPropsT {
|
|
23
|
+
labelText: string;
|
|
24
|
+
variant: undefined | 'variant-disabled';
|
|
25
|
+
onClick: () => void | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, UploaderWithSchema } from './DSUploader';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */
|
|
3
|
+
export declare const propTypes: {
|
|
4
|
+
containerProps: {
|
|
5
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
9
|
+
};
|
|
10
|
+
validator: {
|
|
11
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
12
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
15
|
+
};
|
|
16
|
+
maxFiles: {
|
|
17
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
21
|
+
};
|
|
22
|
+
minSize: {
|
|
23
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
+
};
|
|
28
|
+
maxSize: {
|
|
29
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
|
+
};
|
|
34
|
+
onDropRejected: {
|
|
35
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
|
+
};
|
|
46
|
+
multiple: {
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
|
+
};
|
|
52
|
+
accept: {
|
|
53
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
54
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
56
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
57
|
+
};
|
|
58
|
+
label: {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
icon: {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
actions: {
|
|
65
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
66
|
+
};
|
|
67
|
+
defaultActionLabel: {
|
|
68
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
72
|
+
};
|
|
73
|
+
showAltAction: {
|
|
74
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
75
|
+
};
|
|
76
|
+
altActionLabel: {
|
|
77
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
79
|
+
dragActiveInstructionalText: {
|
|
80
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
82
|
+
dragActiveIcon: {
|
|
83
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
84
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
87
|
+
};
|
|
88
|
+
acceptedTypesText: {
|
|
89
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
91
|
+
disabledDefault: {
|
|
92
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
94
|
+
disabledAlt: {
|
|
95
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
|
+
};
|
|
97
|
+
onDefaultHandlerClick: {
|
|
98
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
99
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
100
|
+
};
|
|
101
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
102
|
+
};
|
|
103
|
+
onAltHandlerClick: {
|
|
104
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
105
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
106
|
+
};
|
|
107
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
108
|
+
};
|
|
109
|
+
defaultActionTooltipText: {
|
|
110
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
111
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
112
|
+
};
|
|
113
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
114
|
+
};
|
|
115
|
+
altActionTooltipText: {
|
|
116
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
117
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
118
|
+
};
|
|
119
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-uploader",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Uploader",
|
|
6
6
|
"files": [
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"author": "ICE MT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
41
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
42
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
43
|
-
"@elliemae/ds-tooltip": "2.3.0-alpha.
|
|
44
|
-
"@elliemae/ds-utilities": "2.3.0-alpha.
|
|
40
|
+
"@elliemae/ds-button": "2.3.0-alpha.9",
|
|
41
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.9",
|
|
42
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
43
|
+
"@elliemae/ds-tooltip": "2.3.0-alpha.9",
|
|
44
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.9",
|
|
45
45
|
"react-desc": "~4.1.3",
|
|
46
46
|
"react-dropzone": "~10.2.2"
|
|
47
47
|
},
|