react-dropzone 14.4.1 → 16.0.0

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.
Files changed (47) hide show
  1. package/README.md +3 -3
  2. package/dist/index.cjs +1077 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.js +1046 -2
  5. package/dist/index.js.map +1 -0
  6. package/package.json +62 -161
  7. package/src/{index.js → index.jsx} +10 -7
  8. package/typings/tests/tsconfig.json +12 -11
  9. package/.babelrc.js +0 -28
  10. package/.codeclimate.yml +0 -15
  11. package/.editorconfig +0 -13
  12. package/.eslintignore +0 -3
  13. package/.eslintrc +0 -37
  14. package/.gitpod.yml +0 -6
  15. package/.husky/commit-msg +0 -5
  16. package/.husky/pre-commit +0 -5
  17. package/.nvmrc +0 -1
  18. package/.releaserc.json +0 -27
  19. package/CHANGELOG.md +0 -6
  20. package/commitlint.config.js +0 -1
  21. package/dist/es/index.js +0 -1048
  22. package/dist/es/package.json +0 -1
  23. package/dist/es/utils/index.js +0 -366
  24. package/examples/.eslintrc +0 -5
  25. package/examples/accept/README.md +0 -144
  26. package/examples/basic/README.md +0 -70
  27. package/examples/class-component/README.md +0 -45
  28. package/examples/drag-overlay/README.md +0 -132
  29. package/examples/events/README.md +0 -164
  30. package/examples/file-dialog/README.md +0 -90
  31. package/examples/forms/README.md +0 -69
  32. package/examples/maxFiles/README.md +0 -58
  33. package/examples/no-jsx/README.md +0 -32
  34. package/examples/pintura/README.md +0 -146
  35. package/examples/plugins/README.md +0 -55
  36. package/examples/previews/README.md +0 -86
  37. package/examples/styling/README.md +0 -126
  38. package/examples/theme.css +0 -37
  39. package/examples/validator/README.md +0 -68
  40. package/rollup.config.js +0 -33
  41. package/src/.eslintrc +0 -37
  42. package/src/__snapshots__/index.spec.js.snap +0 -3
  43. package/src/index.spec.js +0 -3777
  44. package/src/utils/index.spec.js +0 -625
  45. package/styleguide.config.js +0 -107
  46. package/testSetup.js +0 -8
  47. package/typings/.eslintrc +0 -28
package/README.md CHANGED
@@ -15,10 +15,10 @@ Documentation and examples at https://react-dropzone.js.org. Source code at http
15
15
 
16
16
 
17
17
  ## Installation
18
- Install it from npm and include it in your React build process (using [Webpack](http://webpack.github.io/), [Browserify](http://browserify.org/), etc).
18
+ Install it from npm. `react-dropzone` ships as ESM and CommonJS with TypeScript types included, and works with any modern bundler ([Vite](https://vite.dev/), [webpack](https://webpack.js.org/), [Rspack](https://rspack.rs/), etc.).
19
19
 
20
20
  ```bash
21
- npm install --save react-dropzone
21
+ npm install react-dropzone
22
22
  ```
23
23
  or:
24
24
  ```bash
@@ -276,7 +276,7 @@ function mockData(files) {
276
276
 
277
277
  **NOTE**: using [Enzyme](https://airbnb.io/enzyme) for testing is not supported at the moment, see [#2011](https://github.com/airbnb/enzyme/issues/2011).
278
278
 
279
- More examples for this can be found in `react-dropzone`'s own [test suites](https://github.com/react-dropzone/react-dropzone/blob/master/src/index.spec.js).
279
+ More examples for this can be found in `react-dropzone`'s own [test suites](https://github.com/react-dropzone/react-dropzone/blob/master/src/index.spec.jsx).
280
280
 
281
281
  ## Caveats
282
282
  ### Required React Version