siam-ui-utils 2.1.4 → 2.1.6

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/index.d.ts CHANGED
@@ -10,7 +10,7 @@ declare module "siam-ui-utils" {
10
10
  export function CustomSelectInput(props);
11
11
 
12
12
  //DROPZONEUploader
13
- export function DropzoneUploader(props);
13
+ // export function DropzoneUploader(props);
14
14
 
15
15
  //INTLMESSAGES
16
16
  export function IntlMessages(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siam-ui-utils",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "keywords": [
5
5
  "ampf-react",
6
6
  "ampf-utils",
@@ -135,16 +135,18 @@ export const DropzoneUploader = ({
135
135
  console.log('dropzone5 :>> ');
136
136
 
137
137
  return (
138
- <Dropzone
139
- disableUpload={false}
140
- maxFiles={totalFilesDU < maxFiles ? maxFiles : 0}
141
- maxSize={maxFileSize} // en megas
142
- InputComponent={Input}
143
- PreviewComponent={CustomPreview}
144
- classNames={{ dropzone: 'dropzone-upload-frame' }}
145
- onChangeStatus={handleChangeStatus}
146
- getFilesFromEvent={getFilesFromEvent}
147
- accept={accept}
148
- />
138
+ <>
139
+ <Dropzone
140
+ disableUpload={false}
141
+ maxFiles={totalFilesDU < maxFiles ? maxFiles : 0}
142
+ maxSize={maxFileSize} // en megas
143
+ InputComponent={Input}
144
+ PreviewComponent={CustomPreview}
145
+ classNames={{ dropzone: 'dropzone-upload-frame' }}
146
+ onChangeStatus={handleChangeStatus}
147
+ getFilesFromEvent={getFilesFromEvent}
148
+ accept={accept}
149
+ />
150
+ </>
149
151
  );
150
152
  };
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { DropzoneUploader } from './dropzone-uploader';
1
+ // export { DropzoneUploader } from './dropzone-uploader';
2
2
  export { withRouter } from './bridges';
3
3
  export { Colxx, Separator } from './CustomBootstrap';
4
4
  export { CustomSelectInput } from './CustomSelectInput';
package/tsconfig.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "skipLibCheck": true,
12
12
  "strict": true,
13
13
  "forceConsistentCasingInFileNames": true,
14
- "module": "esnext",
14
+ "module": "commonjs",
15
15
  "moduleResolution": "node",
16
16
  "noImplicitReturns": true,
17
17
  "resolveJsonModule": true,