next-helios-fe 1.8.99 → 1.8.101
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/index.js +1 -1
- package/package.json +1 -1
- package/src/components/form/input/file.tsx +0 -21
package/package.json
CHANGED
@@ -151,8 +151,6 @@ export const File: React.FC<FileProps> = ({
|
|
151
151
|
}}
|
152
152
|
onDragEnter={(e) => {
|
153
153
|
if (!rest.disabled) {
|
154
|
-
e.preventDefault();
|
155
|
-
e.stopPropagation();
|
156
154
|
e.currentTarget.classList.add(
|
157
155
|
"border-primary",
|
158
156
|
"bg-primary-transparent"
|
@@ -162,37 +160,18 @@ export const File: React.FC<FileProps> = ({
|
|
162
160
|
}}
|
163
161
|
onDragLeave={(e) => {
|
164
162
|
if (!rest.disabled) {
|
165
|
-
e.preventDefault();
|
166
|
-
e.stopPropagation();
|
167
163
|
e.currentTarget.classList.remove(
|
168
164
|
"border-primary",
|
169
165
|
"bg-primary-transparent"
|
170
166
|
);
|
171
167
|
}
|
172
168
|
}}
|
173
|
-
onDragOver={(e) => {
|
174
|
-
if (!rest.disabled) {
|
175
|
-
e.preventDefault();
|
176
|
-
e.stopPropagation();
|
177
|
-
}
|
178
|
-
}}
|
179
169
|
onDrop={(e) => {
|
180
170
|
if (!rest.disabled) {
|
181
|
-
e.preventDefault();
|
182
|
-
e.stopPropagation();
|
183
171
|
e.currentTarget.classList.remove(
|
184
172
|
"border-primary",
|
185
173
|
"bg-primary-transparent"
|
186
174
|
);
|
187
|
-
if (rest.onChange) {
|
188
|
-
rest.onChange({
|
189
|
-
target: {
|
190
|
-
files: e.dataTransfer.files,
|
191
|
-
} as HTMLInputElement,
|
192
|
-
} as any);
|
193
|
-
} else {
|
194
|
-
setTempFile(e.dataTransfer.files);
|
195
|
-
}
|
196
175
|
}
|
197
176
|
}}
|
198
177
|
{...rest}
|