siam-ui-utils 2.0.13 → 2.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/package.json
CHANGED
|
@@ -14,7 +14,8 @@ export const DropzoneUploader = ({
|
|
|
14
14
|
maxFiles = 3,
|
|
15
15
|
accept = 'image/*, application/pdf',
|
|
16
16
|
capture = null,
|
|
17
|
-
|
|
17
|
+
nameFileLabel = 'Subir archivos',
|
|
18
|
+
classNames=""
|
|
18
19
|
}) => {
|
|
19
20
|
const [files, setFiles] = useState([])
|
|
20
21
|
const [totalFilesDU, setTotalFilesDU] = useState(totalFiles)
|
|
@@ -120,14 +121,14 @@ export const DropzoneUploader = ({
|
|
|
120
121
|
setTotalFilesDU(totalFiles)
|
|
121
122
|
}, [totalFiles])
|
|
122
123
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
return (
|
|
125
|
+
<Dropzone
|
|
126
|
+
disableUpload={false}
|
|
127
|
+
maxFiles={totalFilesDU < maxFiles ? maxFiles : 0}
|
|
128
|
+
maxSize={maxSize} // en megas
|
|
129
|
+
InputComponent={Input}
|
|
130
|
+
PreviewComponent={CustomPreview}
|
|
131
|
+
classNames={{ dropzone: `dropzone-upload-frame ${classNames}`}}
|
|
131
132
|
onChangeStatus={handleChangeStatus}
|
|
132
133
|
getFilesFromEvent={getFilesFromEvent}
|
|
133
134
|
accept={accept}
|