react-dropzone 14.3.1 → 14.3.3
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/dist/es/index.js +10 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/__snapshots__/index.spec.js.snap +1 -1
- package/src/index.js +12 -1
package/package.json
CHANGED
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
},
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"attr-accept": "^2.2.4",
|
|
121
|
-
"file-selector": "^1.
|
|
121
|
+
"file-selector": "^2.1.0",
|
|
122
122
|
"prop-types": "^15.8.1"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"webpack-blocks": "^2.1.0"
|
|
191
191
|
},
|
|
192
192
|
"typings": "typings/react-dropzone.d.ts",
|
|
193
|
-
"version": "14.3.
|
|
193
|
+
"version": "14.3.3",
|
|
194
194
|
"engines": {
|
|
195
195
|
"node": ">= 10.13"
|
|
196
196
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`useDropzone() hook behavior renders the root and input nodes with the necessary props 1`] = `"<div role=\\"presentation\\" tabindex=\\"0\\"><input multiple=\\"\\" type=\\"file\\" style=\\"
|
|
3
|
+
exports[`useDropzone() hook behavior renders the root and input nodes with the necessary props 1`] = `"<div role=\\"presentation\\" tabindex=\\"0\\"><input multiple=\\"\\" type=\\"file\\" style=\\"border: 0px; clip: rect(0px, 0px, 0px, 0px); clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;\\" tabindex=\\"-1\\"></div>"`;
|
package/src/index.js
CHANGED
|
@@ -946,7 +946,18 @@ export function useDropzone(props = {}) {
|
|
|
946
946
|
accept: acceptAttr,
|
|
947
947
|
multiple,
|
|
948
948
|
type: "file",
|
|
949
|
-
style: {
|
|
949
|
+
style: {
|
|
950
|
+
border: 0,
|
|
951
|
+
clip: "rect(0, 0, 0, 0)",
|
|
952
|
+
clipPath: "inset(50%)",
|
|
953
|
+
height: "1px",
|
|
954
|
+
margin: "0 -1px -1px 0",
|
|
955
|
+
overflow: "hidden",
|
|
956
|
+
padding: 0,
|
|
957
|
+
position: "absolute",
|
|
958
|
+
width: "1px",
|
|
959
|
+
whiteSpace: "nowrap",
|
|
960
|
+
},
|
|
950
961
|
onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),
|
|
951
962
|
onClick: composeHandler(
|
|
952
963
|
composeEventHandlers(onClick, onInputElementClick)
|