@reportportal/ui-kit 0.0.1-alpha.106 → 0.0.1-alpha.108
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/attachedFile.js +1 -1
- package/dist/autocompletes.js +694 -0
- package/dist/components/autocompletes/common/autocompleteMenu/autocompleteMenu.d.ts +9 -0
- package/dist/components/autocompletes/common/autocompleteMenu/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOption/autocompleteOption.d.ts +13 -0
- package/dist/components/autocompletes/common/autocompleteOption/index.d.ts +1 -0
- package/dist/components/autocompletes/common/autocompleteOptions.d.ts +19 -0
- package/dist/components/autocompletes/common/autocompletePrompt/autocompletePrompt.d.ts +7 -0
- package/dist/components/autocompletes/common/autocompletePrompt/index.d.ts +1 -0
- package/dist/components/autocompletes/common/index.d.ts +19 -0
- package/dist/components/autocompletes/constants.d.ts +2 -0
- package/dist/components/autocompletes/index.d.ts +3 -0
- package/dist/components/autocompletes/multipleAutocomplete/index.d.ts +17 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleAutocomplete.d.ts +46 -0
- package/dist/components/autocompletes/multipleAutocomplete/multipleDownshift.d.ts +25 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/index.d.ts +1 -0
- package/dist/components/autocompletes/multipleAutocomplete/selectedItems/selectedItems.d.ts +35 -0
- package/dist/components/autocompletes/singleAutocomplete/index.d.ts +1 -0
- package/dist/components/autocompletes/singleAutocomplete/singleAutocomplete.d.ts +40 -0
- package/dist/components/autocompletes/types.d.ts +8 -0
- package/dist/components/autocompletes/utils.d.ts +5 -0
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/fieldText/fieldText.d.ts +2 -2
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +2 -1
- package/dist/components/fileDropArea/index.d.ts +3 -3
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/components/sidePanel/index.d.ts +2 -0
- package/dist/components/sidePanel/sidePanel.d.ts +17 -0
- package/dist/{fieldNumber-1fa248f5.js → fieldNumber-d1b5a7a1.js} +15 -14
- package/dist/fieldNumber.js +3 -2
- package/dist/fieldTextFlex-2f51c173.js +80 -0
- package/dist/fieldTextFlex.js +1 -1
- package/dist/fileDropArea.js +135 -168
- package/dist/icons.js +65 -60
- package/dist/{index-803576c3.js → index-1a874a8b.js} +1 -1
- package/dist/index.js +126 -116
- package/dist/isEmpty-ccacb5ff.js +38 -0
- package/dist/minus-2857540f.js +5 -0
- package/dist/plus-199fb2a8.js +5 -0
- package/dist/sidePanel.js +74 -0
- package/dist/style.css +1 -1
- package/package.json +13 -1
- package/dist/fieldTextFlex-8afaab31.js +0 -78
- package/dist/plus-0929dda4.js +0 -6
package/dist/fileDropArea.js
CHANGED
|
@@ -1,47 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { g as B, A as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { jsx as _, jsxs as F } from "react/jsx-runtime";
|
|
2
|
+
import { c as h } from "./bind-06a7ff84.js";
|
|
3
|
+
import { useState as I, useCallback as d, useRef as A, createContext as L, useMemo as M, useContext as j, useEffect as k } from "react";
|
|
4
|
+
import { g as B, A as P } from "./index-1a874a8b.js";
|
|
5
|
+
import { i as v } from "./isEmpty-ccacb5ff.js";
|
|
6
|
+
import { B as S } from "./button-97d9e587.js";
|
|
7
|
+
import Z from "react-dropzone";
|
|
7
8
|
import "./close-4d480ef7.js";
|
|
8
9
|
import "./xls-995781cc.js";
|
|
9
|
-
|
|
10
|
-
return Number.isSafeInteger(e) && e >= 0;
|
|
11
|
-
}
|
|
12
|
-
function U(e) {
|
|
13
|
-
return e != null && typeof e != "function" && Z(e.length);
|
|
14
|
-
}
|
|
15
|
-
function V(e) {
|
|
16
|
-
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
17
|
-
}
|
|
18
|
-
function $(e) {
|
|
19
|
-
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
20
|
-
}
|
|
21
|
-
function W(e) {
|
|
22
|
-
return e !== null && typeof e == "object" && V(e) === "[object Arguments]";
|
|
23
|
-
}
|
|
24
|
-
function X(e) {
|
|
25
|
-
const r = e == null ? void 0 : e.constructor, t = typeof r == "function" ? r.prototype : Object.prototype;
|
|
26
|
-
return e === t;
|
|
27
|
-
}
|
|
28
|
-
function q(e) {
|
|
29
|
-
return $(e);
|
|
30
|
-
}
|
|
31
|
-
function g(e) {
|
|
32
|
-
if (e == null)
|
|
33
|
-
return !0;
|
|
34
|
-
if (U(e))
|
|
35
|
-
return typeof e.splice != "function" && typeof e != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(e)) && !q(e) && !W(e) ? !1 : e.length === 0;
|
|
36
|
-
if (typeof e == "object") {
|
|
37
|
-
if (e instanceof Map || e instanceof Set)
|
|
38
|
-
return e.size === 0;
|
|
39
|
-
const r = Object.keys(e);
|
|
40
|
-
return X(e) ? r.filter((t) => t !== "constructor").length === 0 : r.length === 0;
|
|
41
|
-
}
|
|
42
|
-
return !0;
|
|
43
|
-
}
|
|
44
|
-
const ge = {
|
|
10
|
+
const pe = {
|
|
45
11
|
png: "image/png",
|
|
46
12
|
jpeg: "image/jpeg",
|
|
47
13
|
gif: "image/gif",
|
|
@@ -76,38 +42,38 @@ const ge = {
|
|
|
76
42
|
gtar: "application/x-gtar",
|
|
77
43
|
kml: "application/vnd.google-earth.kml+xml"
|
|
78
44
|
};
|
|
79
|
-
var
|
|
80
|
-
const
|
|
81
|
-
const { maxFileSize:
|
|
82
|
-
if (
|
|
45
|
+
var g = /* @__PURE__ */ ((e) => (e.INCORRECT_FILE_SIZE = "INCORRECT_FILE_SIZE", e.INCORRECT_FILE_FORMAT = "INCORRECT_FILE_FORMAT", e))(g || {});
|
|
46
|
+
const w = (e, a) => {
|
|
47
|
+
const { maxFileSize: r, acceptFileMimeTypes: o = [] } = a, n = [];
|
|
48
|
+
if (r && e.size > r && n.push(g.INCORRECT_FILE_SIZE), !v(o)) {
|
|
83
49
|
const s = B(e.name);
|
|
84
50
|
o.some(
|
|
85
51
|
(c) => c.startsWith(".") ? s === c.slice(1) : e.type === c
|
|
86
|
-
) ||
|
|
52
|
+
) || n.push(g.INCORRECT_FILE_FORMAT);
|
|
87
53
|
}
|
|
88
|
-
return
|
|
89
|
-
},
|
|
90
|
-
[
|
|
91
|
-
[
|
|
92
|
-
}[e[0]]),
|
|
93
|
-
maxFileSize: e =
|
|
94
|
-
acceptFileMimeTypes:
|
|
95
|
-
onFilesAdded:
|
|
54
|
+
return n;
|
|
55
|
+
}, R = (e, a, r) => r || (v(e) ? null : {
|
|
56
|
+
[g.INCORRECT_FILE_SIZE]: a.incorrectFileSize,
|
|
57
|
+
[g.INCORRECT_FILE_FORMAT]: a.incorrectFileFormat
|
|
58
|
+
}[e[0]]), U = 128, N = U * 1024 * 1024, V = ({
|
|
59
|
+
maxFileSize: e = N,
|
|
60
|
+
acceptFileMimeTypes: a = [],
|
|
61
|
+
onFilesAdded: r
|
|
96
62
|
}) => {
|
|
97
|
-
const [o,
|
|
63
|
+
const [o, n] = I(null), s = d(
|
|
98
64
|
(i) => {
|
|
99
|
-
|
|
100
|
-
const p = i.map((
|
|
101
|
-
file:
|
|
102
|
-
validationErrors:
|
|
65
|
+
n(null);
|
|
66
|
+
const p = i.map((f) => ({
|
|
67
|
+
file: f,
|
|
68
|
+
validationErrors: w(f, { maxFileSize: e, acceptFileMimeTypes: a })
|
|
103
69
|
}));
|
|
104
|
-
|
|
70
|
+
r(p);
|
|
105
71
|
const m = p.find(
|
|
106
|
-
({ validationErrors:
|
|
72
|
+
({ validationErrors: f }) => !v(f)
|
|
107
73
|
);
|
|
108
|
-
m &&
|
|
74
|
+
m && n(m.validationErrors[0]);
|
|
109
75
|
},
|
|
110
|
-
[e,
|
|
76
|
+
[e, a, r]
|
|
111
77
|
), l = d(
|
|
112
78
|
(i) => {
|
|
113
79
|
s(i);
|
|
@@ -119,24 +85,24 @@ const Y = (e, r) => {
|
|
|
119
85
|
p && s([...p]), i.currentTarget.value = "";
|
|
120
86
|
},
|
|
121
87
|
[s]
|
|
122
|
-
),
|
|
123
|
-
|
|
88
|
+
), t = d(() => {
|
|
89
|
+
n(null);
|
|
124
90
|
}, []);
|
|
125
91
|
return {
|
|
126
92
|
error: o,
|
|
127
93
|
handleFileInputChange: c,
|
|
128
|
-
clearError:
|
|
94
|
+
clearError: t,
|
|
129
95
|
onDrop: l
|
|
130
96
|
};
|
|
131
|
-
},
|
|
132
|
-
maxFileSize: e =
|
|
133
|
-
acceptFileMimeTypes:
|
|
134
|
-
onFilesAdded:
|
|
97
|
+
}, W = ({
|
|
98
|
+
maxFileSize: e = N,
|
|
99
|
+
acceptFileMimeTypes: a = [],
|
|
100
|
+
onFilesAdded: r
|
|
135
101
|
}) => {
|
|
136
|
-
const { onDrop: o, handleFileInputChange:
|
|
102
|
+
const { onDrop: o, handleFileInputChange: n, error: s, clearError: l } = V({
|
|
137
103
|
maxFileSize: e,
|
|
138
|
-
acceptFileMimeTypes:
|
|
139
|
-
onFilesAdded:
|
|
104
|
+
acceptFileMimeTypes: a,
|
|
105
|
+
onFilesAdded: r
|
|
140
106
|
}), c = d(() => {
|
|
141
107
|
l();
|
|
142
108
|
}, [l]);
|
|
@@ -144,67 +110,67 @@ const Y = (e, r) => {
|
|
|
144
110
|
error: s,
|
|
145
111
|
onDrop: o,
|
|
146
112
|
handleDropzoneClick: c,
|
|
147
|
-
handleFileInputChange:
|
|
113
|
+
handleFileInputChange: n,
|
|
148
114
|
clearError: l
|
|
149
115
|
};
|
|
150
|
-
},
|
|
151
|
-
const [
|
|
116
|
+
}, $ = ({ isOverlay: e = !1 }) => {
|
|
117
|
+
const [a, r] = I(!1), o = A(null), n = d((i) => {
|
|
152
118
|
var p;
|
|
153
|
-
i.preventDefault(), (p = i.dataTransfer) != null && p.types.includes("Files") &&
|
|
119
|
+
i.preventDefault(), (p = i.dataTransfer) != null && p.types.includes("Files") && r(!0);
|
|
154
120
|
}, []), s = d((i) => {
|
|
155
|
-
i.preventDefault(), o.current && !o.current.contains(i.relatedTarget) &&
|
|
121
|
+
i.preventDefault(), o.current && !o.current.contains(i.relatedTarget) && r(!1);
|
|
156
122
|
}, []), l = d((i) => {
|
|
157
123
|
i.preventDefault();
|
|
158
124
|
}, []), c = d((i) => {
|
|
159
|
-
i.preventDefault(),
|
|
125
|
+
i.preventDefault(), r(!1);
|
|
160
126
|
}, []);
|
|
161
127
|
return {
|
|
162
128
|
handlers: e ? {
|
|
163
129
|
ref: o,
|
|
164
|
-
onDragEnter:
|
|
130
|
+
onDragEnter: n,
|
|
165
131
|
onDragLeave: s,
|
|
166
132
|
onDragOver: l,
|
|
167
133
|
onDrop: c
|
|
168
134
|
} : {},
|
|
169
|
-
...e && { isDragActive:
|
|
135
|
+
...e && { isDragActive: a }
|
|
170
136
|
};
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
const
|
|
137
|
+
}, C = L(null);
|
|
138
|
+
C.displayName = "FileDropAreaContext";
|
|
139
|
+
const X = ({
|
|
174
140
|
children: e,
|
|
175
|
-
...
|
|
141
|
+
...a
|
|
176
142
|
}) => {
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
}, []),
|
|
180
|
-
|
|
181
|
-
}, [
|
|
182
|
-
() => ({ ...
|
|
183
|
-
[
|
|
143
|
+
const r = A(null), o = d((l) => {
|
|
144
|
+
r.current = l;
|
|
145
|
+
}, []), n = d(() => {
|
|
146
|
+
a.isDisabled || !r.current || (a.clearError(), r.current());
|
|
147
|
+
}, [a]), s = M(
|
|
148
|
+
() => ({ ...a, registerOpenFunction: o, openFileDialog: n }),
|
|
149
|
+
[a, o, n]
|
|
184
150
|
);
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
},
|
|
187
|
-
const e =
|
|
151
|
+
return /* @__PURE__ */ _(C.Provider, { value: s, children: e });
|
|
152
|
+
}, E = () => {
|
|
153
|
+
const e = j(C);
|
|
188
154
|
if (!e)
|
|
189
155
|
throw new Error("useFileDropAreaContext must be used within a FileDropAreaProvider");
|
|
190
156
|
return e;
|
|
191
|
-
},
|
|
157
|
+
}, q = ({
|
|
192
158
|
children: e,
|
|
193
|
-
className:
|
|
194
|
-
variant:
|
|
159
|
+
className: a,
|
|
160
|
+
variant: r = "text",
|
|
195
161
|
...o
|
|
196
162
|
}) => {
|
|
197
|
-
const { openFileDialog:
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
|
|
163
|
+
const { openFileDialog: n, isDisabled: s } = E();
|
|
164
|
+
return /* @__PURE__ */ _(
|
|
165
|
+
S,
|
|
200
166
|
{
|
|
201
167
|
...o,
|
|
202
|
-
variant:
|
|
168
|
+
variant: r,
|
|
203
169
|
adjustWidthOn: "content",
|
|
204
170
|
disabled: s,
|
|
205
|
-
className:
|
|
171
|
+
className: a,
|
|
206
172
|
onClick: (c) => {
|
|
207
|
-
c.stopPropagation(),
|
|
173
|
+
c.stopPropagation(), n();
|
|
208
174
|
},
|
|
209
175
|
children: e
|
|
210
176
|
}
|
|
@@ -224,135 +190,136 @@ const Q = ({
|
|
|
224
190
|
"file-drop-area__error-message": "_file-drop-area__error-message_1s34r_83",
|
|
225
191
|
"file-drop-area--overlay": "_file-drop-area--overlay_1s34r_89",
|
|
226
192
|
"file-drop-area--overlay-mode": "_file-drop-area--overlay-mode_1s34r_107"
|
|
227
|
-
},
|
|
228
|
-
const { error:
|
|
229
|
-
return
|
|
193
|
+
}, Y = h.bind(D), G = ({ className: e }) => {
|
|
194
|
+
const { error: a, messages: r } = E();
|
|
195
|
+
return a ? /* @__PURE__ */ _(
|
|
230
196
|
"div",
|
|
231
197
|
{
|
|
232
|
-
className:
|
|
198
|
+
className: Y("file-drop-area__error-message", e),
|
|
233
199
|
role: "alert",
|
|
234
200
|
"aria-live": "assertive",
|
|
235
201
|
"aria-atomic": "true",
|
|
236
|
-
children:
|
|
202
|
+
children: R([a], r) || a
|
|
237
203
|
}
|
|
238
204
|
) : null;
|
|
239
|
-
}, u =
|
|
205
|
+
}, u = h.bind(D), H = ({ icon: e, description: a, fileSizeMessage: r, className: o }) => {
|
|
240
206
|
const {
|
|
241
|
-
variant:
|
|
207
|
+
variant: n = "default",
|
|
242
208
|
error: s,
|
|
243
209
|
isDisabled: l,
|
|
244
210
|
isMultipleFiles: c,
|
|
245
|
-
overlayProps:
|
|
211
|
+
overlayProps: t,
|
|
246
212
|
onDrop: i,
|
|
247
213
|
handleDropzoneClick: p,
|
|
248
214
|
registerOpenFunction: m
|
|
249
|
-
} =
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
m(
|
|
252
|
-
const
|
|
215
|
+
} = E(), f = n === "overlay";
|
|
216
|
+
return /* @__PURE__ */ _(Z, { multiple: c, disabled: l, noClick: f, onDrop: i, children: ({ getRootProps: T, getInputProps: b, isDragActive: O, open: y }) => {
|
|
217
|
+
m(y);
|
|
218
|
+
const z = f ? !!(t != null && t.isDragActive) : O;
|
|
253
219
|
return /* @__PURE__ */ F(
|
|
254
220
|
"div",
|
|
255
221
|
{
|
|
256
|
-
...
|
|
222
|
+
...T({
|
|
257
223
|
className: u("file-drop-area", o, {
|
|
258
|
-
"file-drop-area--active":
|
|
224
|
+
"file-drop-area--active": z,
|
|
259
225
|
"file-drop-area--disabled": l,
|
|
260
226
|
"file-drop-area--error": !!s,
|
|
261
|
-
"file-drop-area--overlay-mode":
|
|
227
|
+
"file-drop-area--overlay-mode": f
|
|
262
228
|
}),
|
|
263
|
-
onClick:
|
|
229
|
+
onClick: f ? void 0 : p
|
|
264
230
|
}),
|
|
265
231
|
children: [
|
|
266
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ _("input", { ...b() }),
|
|
267
233
|
/* @__PURE__ */ F("div", { className: u("file-drop-area__content"), children: [
|
|
268
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ _("div", { className: u("file-drop-area__icon"), children: e }),
|
|
269
235
|
/* @__PURE__ */ F("div", { className: u("file-drop-area__text"), children: [
|
|
270
|
-
|
|
271
|
-
|
|
236
|
+
a && /* @__PURE__ */ _("div", { className: u("file-drop-area__description"), children: a }),
|
|
237
|
+
r && /* @__PURE__ */ _("div", { className: u("file-drop-area__file-size-info"), children: r })
|
|
272
238
|
] })
|
|
273
239
|
] })
|
|
274
240
|
]
|
|
275
241
|
}
|
|
276
242
|
);
|
|
277
243
|
} });
|
|
278
|
-
},
|
|
244
|
+
}, J = {
|
|
279
245
|
"attached-files-list": "_attached-files-list_14nn3_16"
|
|
280
|
-
},
|
|
246
|
+
}, K = h.bind(J), Q = ({
|
|
281
247
|
files: e,
|
|
282
|
-
className:
|
|
283
|
-
onRemoveFile:
|
|
248
|
+
className: a,
|
|
249
|
+
onRemoveFile: r,
|
|
284
250
|
onDownloadFile: o
|
|
285
251
|
}) => {
|
|
286
|
-
const { messages:
|
|
252
|
+
const { messages: n, clearError: s } = E();
|
|
287
253
|
k(() => {
|
|
288
|
-
e.some((i) => !
|
|
254
|
+
e.some((i) => !v(i.validationErrors)) && s();
|
|
289
255
|
}, [e, s]);
|
|
290
256
|
const l = d(
|
|
291
|
-
(
|
|
292
|
-
[
|
|
257
|
+
(t) => () => r(t.id),
|
|
258
|
+
[r]
|
|
293
259
|
), c = d(
|
|
294
|
-
(
|
|
260
|
+
(t) => () => o == null ? void 0 : o(t),
|
|
295
261
|
[o]
|
|
296
262
|
);
|
|
297
|
-
return
|
|
298
|
-
const i =
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
263
|
+
return v(e) ? null : /* @__PURE__ */ _("div", { className: K("attached-files-list", a), children: e.map((t) => {
|
|
264
|
+
const i = R(
|
|
265
|
+
t.validationErrors ?? [],
|
|
266
|
+
n,
|
|
267
|
+
t.customErrorMessage
|
|
302
268
|
);
|
|
303
|
-
return /* @__PURE__ */
|
|
304
|
-
|
|
269
|
+
return /* @__PURE__ */ _(
|
|
270
|
+
P,
|
|
305
271
|
{
|
|
306
|
-
fileName:
|
|
307
|
-
size:
|
|
308
|
-
uploadingProgress:
|
|
309
|
-
isUploadFailed:
|
|
310
|
-
isUploading:
|
|
311
|
-
onRemove: l(
|
|
272
|
+
fileName: t.fileName,
|
|
273
|
+
size: t.size,
|
|
274
|
+
uploadingProgress: t.uploadingProgress,
|
|
275
|
+
isUploadFailed: t.isUploadFailed || !!i,
|
|
276
|
+
isUploading: t.isUploading,
|
|
277
|
+
onRemove: l(t),
|
|
312
278
|
...i && { uploadFailedMessage: i },
|
|
313
|
-
...o && { onDownload: c(
|
|
279
|
+
...o && { onDownload: c(t) }
|
|
314
280
|
},
|
|
315
|
-
|
|
281
|
+
t.id
|
|
316
282
|
);
|
|
317
283
|
}) });
|
|
318
|
-
},
|
|
284
|
+
}, ee = h.bind(D), x = ({
|
|
319
285
|
maxFileSize: e,
|
|
320
|
-
acceptFileMimeTypes:
|
|
321
|
-
isMultipleFiles:
|
|
286
|
+
acceptFileMimeTypes: a,
|
|
287
|
+
isMultipleFiles: r,
|
|
322
288
|
isDisabled: o,
|
|
323
|
-
variant:
|
|
289
|
+
variant: n = "default",
|
|
324
290
|
children: s,
|
|
325
291
|
messages: l,
|
|
326
292
|
onFilesAdded: c
|
|
327
293
|
}) => {
|
|
328
|
-
const
|
|
294
|
+
const t = n === "overlay", i = W({
|
|
329
295
|
maxFileSize: e,
|
|
330
|
-
acceptFileMimeTypes:
|
|
296
|
+
acceptFileMimeTypes: a,
|
|
331
297
|
messages: l,
|
|
332
|
-
isMultipleFiles:
|
|
298
|
+
isMultipleFiles: r,
|
|
333
299
|
isDisabled: o,
|
|
334
300
|
onFilesAdded: c
|
|
335
|
-
}), p =
|
|
336
|
-
isOverlay:
|
|
301
|
+
}), p = $({
|
|
302
|
+
isOverlay: t
|
|
337
303
|
});
|
|
338
|
-
return /* @__PURE__ */
|
|
339
|
-
|
|
304
|
+
return /* @__PURE__ */ _(
|
|
305
|
+
X,
|
|
340
306
|
{
|
|
341
307
|
...i,
|
|
342
|
-
variant:
|
|
308
|
+
variant: n,
|
|
343
309
|
messages: l,
|
|
344
310
|
overlayProps: p,
|
|
345
311
|
isDisabled: o,
|
|
346
|
-
isMultipleFiles:
|
|
347
|
-
children: (() =>
|
|
312
|
+
isMultipleFiles: r,
|
|
313
|
+
children: (() => t ? /* @__PURE__ */ _("div", { className: ee("file-drop-area--overlay"), ...p.handlers, children: s }) : s)()
|
|
348
314
|
}
|
|
349
315
|
);
|
|
350
316
|
};
|
|
351
|
-
x.DropZone =
|
|
352
|
-
x.BrowseButton =
|
|
353
|
-
x.Error =
|
|
354
|
-
x.AttachedFilesList =
|
|
317
|
+
x.DropZone = H;
|
|
318
|
+
x.BrowseButton = q;
|
|
319
|
+
x.Error = G;
|
|
320
|
+
x.AttachedFilesList = Q;
|
|
355
321
|
export {
|
|
356
322
|
x as FileDropArea,
|
|
357
|
-
|
|
323
|
+
g as FileValidationError,
|
|
324
|
+
pe as MIME_TYPES
|
|
358
325
|
};
|