@visns-studio/visns-components 3.5.5 → 3.5.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.
@@ -363,16 +363,30 @@ function GenericDetail({ extraUrlParam, setting, urlParam, userProfile }) {
363
363
  });
364
364
  }}
365
365
  >
366
- {({ getRootProps, getInputProps }) => (
366
+ {({
367
+ getRootProps,
368
+ getInputProps,
369
+ isDragActive,
370
+ }) => (
367
371
  <section className="dropzone__container">
368
372
  <div {...getRootProps()}>
369
373
  <input
370
374
  {...getInputProps()}
371
375
  />
372
376
  <p>
373
- Drag 'n' drop some files
374
- here, or click to select
375
- files
377
+ {isDragActive ? (
378
+ <p>
379
+ Drop the files
380
+ here ...
381
+ </p>
382
+ ) : (
383
+ <p>
384
+ Drag 'n' drop
385
+ some files here,
386
+ or click to
387
+ select files
388
+ </p>
389
+ )}
376
390
  </p>
377
391
  </div>
378
392
  <ul className="dropzone__files">
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "react-dom": "^17.0.1"
51
51
  },
52
52
  "name": "@visns-studio/visns-components",
53
- "version": "3.5.5",
53
+ "version": "3.5.6",
54
54
  "description": "Various packages to assist in the development of our Custom Applications.",
55
55
  "main": "index.js",
56
56
  "scripts": {