@react-magma/dropzone 0.1.5 → 1.0.0-next.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-magma/dropzone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-next.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@emotion/styled": "^10.0.27",
|
|
31
31
|
"react": "^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
32
32
|
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
33
|
-
"react-magma-dom": "^
|
|
33
|
+
"react-magma-dom": "^3.0.0-next.0",
|
|
34
34
|
"react-magma-icons": "^2.3.1"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@emotion/styled": "^10.0.27",
|
|
42
42
|
"react": "^16.10.0",
|
|
43
43
|
"react-dom": "^16.10.0",
|
|
44
|
-
"react-magma-dom": "^
|
|
44
|
+
"react-magma-dom": "^3.0.0-next.0",
|
|
45
45
|
"react-magma-icons": "^2.3.1"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -140,7 +140,7 @@ describe('File Uploader', () => {
|
|
|
140
140
|
fireDragEnter(dropzone, data);
|
|
141
141
|
await flushPromises(rerender, ui);
|
|
142
142
|
|
|
143
|
-
expect(dropzone).toHaveStyle('border: 2px dashed #
|
|
143
|
+
expect(dropzone).toHaveStyle('border: 2px dashed #178037');
|
|
144
144
|
});
|
|
145
145
|
|
|
146
146
|
it('border color changes for rejection', async () => {
|
|
@@ -155,7 +155,7 @@ describe('File Uploader', () => {
|
|
|
155
155
|
fireDragEnter(dropzone, data);
|
|
156
156
|
await flushPromises(rerender, ui);
|
|
157
157
|
|
|
158
|
-
expect(dropzone).toHaveStyle('border: 2px dashed #
|
|
158
|
+
expect(dropzone).toHaveStyle('border: 2px dashed #D32821');
|
|
159
159
|
});
|
|
160
160
|
|
|
161
161
|
it('calls onSendFiles for a single file added via the input', async () => {
|