siam-ui-utils 2.0.13 → 2.0.14

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "keywords": [
5
5
  "ampf-react",
6
6
  "ampf-utils",
@@ -14,7 +14,8 @@ export const DropzoneUploader = ({
14
14
  maxFiles = 3,
15
15
  accept = 'image/*, application/pdf',
16
16
  capture = null,
17
- nameFileLabel = 'Subir archivos',
17
+ nameFileLabel = 'Subir archivos',
18
+ className=""
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
- return (
124
- <Dropzone
125
- disableUpload={false}
126
- maxFiles={totalFilesDU < maxFiles ? maxFiles : 0}
127
- maxSize={maxSize} // en megas
128
- InputComponent={Input}
129
- PreviewComponent={CustomPreview}
130
- classNames={{ dropzone: 'dropzone-upload-frame' }}
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 ${className}`}}
131
132
  onChangeStatus={handleChangeStatus}
132
133
  getFilesFromEvent={getFilesFromEvent}
133
134
  accept={accept}