@reportportal/ui-kit 0.0.1-alpha.251 → 0.0.1-alpha.252
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/{breadcrumbs-5730e318.js → breadcrumbs-0a228139.js} +87 -74
- package/dist/breadcrumbs.js +1 -1
- package/dist/fileDropArea.js +1 -1
- package/dist/{index-e0731146.js → index-8c921599.js} +72 -62
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/attachedFile.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as e, jsxs as S, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as S, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import { c as h } from "./bind-06a7ff84.js";
|
|
3
|
-
import { take as
|
|
4
|
-
import { createContext as
|
|
3
|
+
import { take as j, drop as E } from "es-toolkit";
|
|
4
|
+
import { createContext as P, useContext as I, useRef as H, useState as T, useEffect as R } from "react";
|
|
5
5
|
import { Popover as D } from "./popover.js";
|
|
6
|
-
import { S as
|
|
6
|
+
import { S as W, a as F } from "./tree-c3dd3d45.js";
|
|
7
7
|
import { i as B } from "./isEmpty-ccacb5ff.js";
|
|
8
|
-
const M =
|
|
9
|
-
const r =
|
|
8
|
+
const M = P(void 0), A = ({ children: r, LinkComponent: l }) => /* @__PURE__ */ e(M.Provider, { value: { LinkComponent: l }, children: r }), L = () => {
|
|
9
|
+
const r = I(M);
|
|
10
10
|
if (r === void 0)
|
|
11
11
|
throw new Error("useBreadcrumbsContext must be used within a BreadcrumbsProvider");
|
|
12
12
|
return r;
|
|
@@ -24,14 +24,14 @@ const M = O(void 0), A = ({ children: r, LinkComponent: l }) => /* @__PURE__ */
|
|
|
24
24
|
}) => _ ? l ? r ? /* @__PURE__ */ e(r, { className: v("link"), to: l, onClick: t, children: n }) : /* @__PURE__ */ e("a", { className: v("link"), href: typeof l == "string" ? l : "#", onClick: t, children: n }) : t ? /* @__PURE__ */ e("button", { type: "button", className: v("link"), onClick: t, children: n }) : n : n, m = ({
|
|
25
25
|
titleTailNumChars: r = 8,
|
|
26
26
|
descriptor: { title: l, link: t, onClick: _, className: n },
|
|
27
|
-
isClickable:
|
|
27
|
+
isClickable: p = !0,
|
|
28
28
|
variant: b = "default"
|
|
29
29
|
}) => {
|
|
30
|
-
const { LinkComponent: x } = L(), s =
|
|
31
|
-
|
|
30
|
+
const { LinkComponent: x } = L(), s = H(null), [z, d] = T(null);
|
|
31
|
+
R(() => {
|
|
32
32
|
if (s.current) {
|
|
33
|
-
const { offsetWidth:
|
|
34
|
-
if (
|
|
33
|
+
const { offsetWidth: w, scrollWidth: f, dataset: u } = s.current;
|
|
34
|
+
if (w < f) {
|
|
35
35
|
const c = typeof l == "string" ? l : "";
|
|
36
36
|
u.tail = c.slice(c.length - r), d(c);
|
|
37
37
|
}
|
|
@@ -42,49 +42,62 @@ const M = O(void 0), A = ({ children: r, LinkComponent: l }) => /* @__PURE__ */
|
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
className: v("breadcrumb", b),
|
|
45
|
-
title:
|
|
45
|
+
title: z || void 0,
|
|
46
46
|
"data-testid": "breadcrumb",
|
|
47
|
-
children: J({ LinkComponent: x, link: t, onClick: _, isClickable:
|
|
47
|
+
children: J({ LinkComponent: x, link: t, onClick: _, isClickable: p, breadcrumbContent: a })
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
|
-
}, K = {
|
|
51
|
-
"hidden-breadcrumbs-trigger": "_hidden-breadcrumbs-
|
|
52
|
-
|
|
53
|
-
"hidden-
|
|
54
|
-
"
|
|
55
|
-
"level-
|
|
56
|
-
"level-
|
|
57
|
-
"level-
|
|
58
|
-
"level-
|
|
59
|
-
"level-
|
|
60
|
-
"level-
|
|
61
|
-
"level-
|
|
62
|
-
"level-
|
|
63
|
-
"level-
|
|
64
|
-
"level-
|
|
65
|
-
"level-
|
|
66
|
-
"level-
|
|
67
|
-
"level-
|
|
68
|
-
"level-
|
|
69
|
-
"level-
|
|
70
|
-
"level-
|
|
71
|
-
"level-
|
|
72
|
-
"level-
|
|
73
|
-
"level-
|
|
74
|
-
"level-
|
|
75
|
-
"level-
|
|
76
|
-
"level-
|
|
77
|
-
"level-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
50
|
+
}, K = "_active_60pvi_7", Q = {
|
|
51
|
+
"hidden-breadcrumbs-trigger": "_hidden-breadcrumbs-trigger_60pvi_1",
|
|
52
|
+
active: K,
|
|
53
|
+
"hidden-breadcrumbs-content": "_hidden-breadcrumbs-content_60pvi_11",
|
|
54
|
+
"hidden-breadcrumb-item": "_hidden-breadcrumb-item_60pvi_17",
|
|
55
|
+
"level-2": "_level-2_60pvi_21",
|
|
56
|
+
"level-3": "_level-3_60pvi_34",
|
|
57
|
+
"level-4": "_level-4_60pvi_47",
|
|
58
|
+
"level-5": "_level-5_60pvi_60",
|
|
59
|
+
"level-6": "_level-6_60pvi_73",
|
|
60
|
+
"level-7": "_level-7_60pvi_86",
|
|
61
|
+
"level-8": "_level-8_60pvi_99",
|
|
62
|
+
"level-9": "_level-9_60pvi_112",
|
|
63
|
+
"level-10": "_level-10_60pvi_125",
|
|
64
|
+
"level-11": "_level-11_60pvi_138",
|
|
65
|
+
"level-12": "_level-12_60pvi_151",
|
|
66
|
+
"level-13": "_level-13_60pvi_164",
|
|
67
|
+
"level-14": "_level-14_60pvi_177",
|
|
68
|
+
"level-15": "_level-15_60pvi_190",
|
|
69
|
+
"level-16": "_level-16_60pvi_203",
|
|
70
|
+
"level-17": "_level-17_60pvi_216",
|
|
71
|
+
"level-18": "_level-18_60pvi_229",
|
|
72
|
+
"level-19": "_level-19_60pvi_242",
|
|
73
|
+
"level-20": "_level-20_60pvi_255",
|
|
74
|
+
"level-21": "_level-21_60pvi_268",
|
|
75
|
+
"level-22": "_level-22_60pvi_281",
|
|
76
|
+
"level-23": "_level-23_60pvi_294",
|
|
77
|
+
"level-24": "_level-24_60pvi_307",
|
|
78
|
+
"level-25": "_level-25_60pvi_320"
|
|
79
|
+
}, C = h.bind(Q), V = ({ descriptors: r }) => /* @__PURE__ */ e("div", { className: C("hidden-breadcrumbs-content"), "data-testid": "hidden-breadcrumbs-content", children: r.map((l, t) => /* @__PURE__ */ e("div", { className: C("hidden-breadcrumb-item", `level-${t + 1}`), children: /* @__PURE__ */ e(m, { descriptor: l }) }, t)) }), Y = ({ descriptors: r }) => {
|
|
80
|
+
const [l, t] = T(!1);
|
|
81
|
+
return /* @__PURE__ */ e(
|
|
82
|
+
D,
|
|
83
|
+
{
|
|
84
|
+
content: /* @__PURE__ */ e(V, { descriptors: r }),
|
|
85
|
+
placement: "bottom-start",
|
|
86
|
+
isOpened: l,
|
|
87
|
+
setIsOpened: t,
|
|
88
|
+
children: /* @__PURE__ */ e(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
className: C("hidden-breadcrumbs-trigger", { active: l }),
|
|
92
|
+
"data-testid": "hidden-breadcrumbs-trigger",
|
|
93
|
+
children: /* @__PURE__ */ e(W, {})
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}, Z = "_opened_zxn5r_1", ee = {
|
|
86
99
|
"tree-button": "_tree-button_zxn5r_1",
|
|
87
|
-
opened:
|
|
100
|
+
opened: Z,
|
|
88
101
|
"tree-menu-node": "_tree-menu-node_zxn5r_8",
|
|
89
102
|
"tree-menu-children": "_tree-menu-children_zxn5r_9",
|
|
90
103
|
"tree-menu-item": "_tree-menu-item_zxn5r_15",
|
|
@@ -112,49 +125,49 @@ const M = O(void 0), A = ({ children: r, LinkComponent: l }) => /* @__PURE__ */
|
|
|
112
125
|
"level-23": "_level-23_zxn5r_292",
|
|
113
126
|
"level-24": "_level-24_zxn5r_305",
|
|
114
127
|
"level-25": "_level-25_zxn5r_318"
|
|
115
|
-
}, o = h.bind(
|
|
116
|
-
/* @__PURE__ */ e(
|
|
117
|
-
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: o("tree-menu-children"), children:
|
|
118
|
-
] }, _)),
|
|
119
|
-
const [l, t] =
|
|
128
|
+
}, o = h.bind(ee), le = ({ descriptor: r, level: l }) => /* @__PURE__ */ e("div", { className: o("tree-menu-item", `level-${l}`), children: /* @__PURE__ */ e(m, { descriptor: r, variant: "dark" }) }), O = (r, l) => r.map((t, _) => /* @__PURE__ */ S("div", { className: o("tree-menu-node"), children: [
|
|
129
|
+
/* @__PURE__ */ e(le, { descriptor: t, level: l }),
|
|
130
|
+
t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: o("tree-menu-children"), children: O(t.children, l + 1) })
|
|
131
|
+
] }, _)), re = ({ tree: r }) => {
|
|
132
|
+
const [l, t] = T(!1);
|
|
120
133
|
return /* @__PURE__ */ e(
|
|
121
134
|
D,
|
|
122
135
|
{
|
|
123
|
-
content: /* @__PURE__ */ e("div", { className: o("tree-menu"), children:
|
|
136
|
+
content: /* @__PURE__ */ e("div", { className: o("tree-menu"), children: O(r, 1) }),
|
|
124
137
|
placement: "bottom-start",
|
|
125
138
|
isOpened: l,
|
|
126
139
|
setIsOpened: t,
|
|
127
|
-
children: /* @__PURE__ */ e("div", { className: o("tree-button", { opened: l }), children: /* @__PURE__ */ e(
|
|
140
|
+
children: /* @__PURE__ */ e("div", { className: o("tree-button", { opened: l }), children: /* @__PURE__ */ e(F, {}) })
|
|
128
141
|
}
|
|
129
142
|
);
|
|
130
|
-
},
|
|
143
|
+
}, te = "_breadcrumbs_1cb9j_1", ne = {
|
|
131
144
|
"breadcrumbs-container": "_breadcrumbs-container_1cb9j_1",
|
|
132
|
-
breadcrumbs:
|
|
145
|
+
breadcrumbs: te,
|
|
133
146
|
"breadcrumb-item": "_breadcrumb-item_1cb9j_15",
|
|
134
147
|
"hidden-breadcrumbs": "_hidden-breadcrumbs_1cb9j_23",
|
|
135
148
|
"back-button": "_back-button_1cb9j_43"
|
|
136
|
-
}, i = h.bind(
|
|
149
|
+
}, i = h.bind(ne), _e = 5, oe = ({
|
|
137
150
|
descriptors: r = [],
|
|
138
151
|
dataAutomationId: l,
|
|
139
152
|
LinkComponent: t,
|
|
140
153
|
tree: _,
|
|
141
154
|
isBackButton: n = !1,
|
|
142
|
-
isLastClickable:
|
|
155
|
+
isLastClickable: p = !1,
|
|
143
156
|
isSingleItemClickable: b = !1,
|
|
144
|
-
maxShownDescriptors: x =
|
|
157
|
+
maxShownDescriptors: x = _e,
|
|
145
158
|
titleTailNumChars: s,
|
|
146
|
-
className:
|
|
159
|
+
className: z
|
|
147
160
|
}) => {
|
|
148
|
-
const [d, ...a] = r,
|
|
161
|
+
const [d, ...a] = r, f = Math.max(1, Math.floor(x)) - 1, u = Math.max(0, a.length - f), c = ((g) => ({
|
|
149
162
|
1: 55,
|
|
150
163
|
2: 24,
|
|
151
164
|
3: 18,
|
|
152
165
|
4: 13
|
|
153
|
-
})[
|
|
166
|
+
})[g] ?? 12)(r.length), y = j(a, u), N = E(a, u);
|
|
154
167
|
return /* @__PURE__ */ e(A, { LinkComponent: t, children: /* @__PURE__ */ e(
|
|
155
168
|
"div",
|
|
156
169
|
{
|
|
157
|
-
className: i("breadcrumbs-container",
|
|
170
|
+
className: i("breadcrumbs-container", z),
|
|
158
171
|
"data-automation-id": l,
|
|
159
172
|
"data-testid": l,
|
|
160
173
|
children: n && d ? /* @__PURE__ */ e("div", { className: i("breadcrumbs"), children: /* @__PURE__ */ e("div", { className: i("breadcrumb-item", "back-button"), "data-testid": "back-breadcrumb", children: /* @__PURE__ */ e(
|
|
@@ -163,8 +176,8 @@ const M = O(void 0), A = ({ children: r, LinkComponent: l }) => /* @__PURE__ */
|
|
|
163
176
|
descriptor: d,
|
|
164
177
|
titleTailNumChars: s ?? c
|
|
165
178
|
}
|
|
166
|
-
) }) }) : /* @__PURE__ */ S(
|
|
167
|
-
_ && /* @__PURE__ */ e("div", { className: i("tree"), children: /* @__PURE__ */ e(
|
|
179
|
+
) }) }) : /* @__PURE__ */ S($, { children: [
|
|
180
|
+
_ && /* @__PURE__ */ e("div", { className: i("tree"), children: /* @__PURE__ */ e(re, { tree: _ }) }),
|
|
168
181
|
/* @__PURE__ */ S("div", { className: i("breadcrumbs"), children: [
|
|
169
182
|
d && /* @__PURE__ */ e("div", { className: i("breadcrumb-item"), children: /* @__PURE__ */ e(
|
|
170
183
|
m,
|
|
@@ -174,20 +187,20 @@ const M = O(void 0), A = ({ children: r, LinkComponent: l }) => /* @__PURE__ */
|
|
|
174
187
|
isClickable: b || !B(a)
|
|
175
188
|
}
|
|
176
189
|
) }),
|
|
177
|
-
!B(
|
|
178
|
-
!B(
|
|
190
|
+
!B(y) && /* @__PURE__ */ e("div", { className: i("breadcrumb-item", "hidden-breadcrumbs"), children: /* @__PURE__ */ e(Y, { descriptors: y }) }),
|
|
191
|
+
!B(N) && N.map((g, k) => /* @__PURE__ */ e("div", { className: i("breadcrumb-item"), children: /* @__PURE__ */ e(
|
|
179
192
|
m,
|
|
180
193
|
{
|
|
181
|
-
descriptor:
|
|
194
|
+
descriptor: g,
|
|
182
195
|
titleTailNumChars: s ?? c,
|
|
183
|
-
isClickable:
|
|
196
|
+
isClickable: p || k !== N.length - 1
|
|
184
197
|
}
|
|
185
|
-
) },
|
|
198
|
+
) }, k))
|
|
186
199
|
] })
|
|
187
200
|
] })
|
|
188
201
|
}
|
|
189
202
|
) });
|
|
190
203
|
};
|
|
191
204
|
export {
|
|
192
|
-
|
|
205
|
+
oe as B
|
|
193
206
|
};
|
package/dist/breadcrumbs.js
CHANGED
package/dist/fileDropArea.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _, jsxs as F } from "react/jsx-runtime";
|
|
2
2
|
import { c as h } from "./bind-06a7ff84.js";
|
|
3
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-
|
|
4
|
+
import { g as B, A as P } from "./index-8c921599.js";
|
|
5
5
|
import { i as v } from "./isEmpty-ccacb5ff.js";
|
|
6
6
|
import { B as S } from "./button-7ab874f3.js";
|
|
7
7
|
import Z from "react-dropzone";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { c as
|
|
4
|
-
import { S as
|
|
5
|
-
import { b as
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
},
|
|
1
|
+
import { jsxs as d, jsx as a, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as y, useCallback as m } from "react";
|
|
3
|
+
import { c as j } from "./bind-06a7ff84.js";
|
|
4
|
+
import { S as A } from "./close-4d480ef7.js";
|
|
5
|
+
import { b as F, g as M, a as B, S as P, d as K, e as O, c as n, f as v } from "./download-4950d639.js";
|
|
6
|
+
const J = (e) => {
|
|
7
|
+
var i;
|
|
8
|
+
const h = e.split(".");
|
|
9
|
+
return h.length > 1 && ((i = h.pop()) == null ? void 0 : i.toLowerCase()) || "";
|
|
10
|
+
}, T = (e) => e.length <= 15 ? e : e.slice(0, 4) + "..." + e.slice(-8), X = {
|
|
11
11
|
"attached-file": "_attached-file_1yz71_16",
|
|
12
12
|
"attached-file__file-name": "_attached-file__file-name_1yz71_29",
|
|
13
13
|
"attached-file__download-icon": "_attached-file__download-icon_1yz71_32",
|
|
@@ -27,78 +27,88 @@ const F = (e) => {
|
|
|
27
27
|
"attached-file__upload-progress-bar": "_attached-file__upload-progress-bar_1yz71_179",
|
|
28
28
|
"attached-file__remove-button": "_attached-file__remove-button_1yz71_183",
|
|
29
29
|
"attached-file__remove-button--disabled": "_attached-file__remove-button--disabled_1yz71_205"
|
|
30
|
-
}, t =
|
|
31
|
-
csv:
|
|
32
|
-
jar:
|
|
33
|
-
pdf:
|
|
34
|
-
jpg:
|
|
35
|
-
jpeg:
|
|
36
|
-
png:
|
|
37
|
-
gif:
|
|
38
|
-
svg:
|
|
39
|
-
webp:
|
|
40
|
-
xls:
|
|
41
|
-
xlsx:
|
|
42
|
-
},
|
|
30
|
+
}, t = j.bind(X), $ = {
|
|
31
|
+
csv: P,
|
|
32
|
+
jar: K,
|
|
33
|
+
pdf: O,
|
|
34
|
+
jpg: n,
|
|
35
|
+
jpeg: n,
|
|
36
|
+
png: n,
|
|
37
|
+
gif: n,
|
|
38
|
+
svg: n,
|
|
39
|
+
webp: n,
|
|
40
|
+
xls: v,
|
|
41
|
+
xlsx: v
|
|
42
|
+
}, q = (e) => $[e.toLowerCase()] ?? F, Y = ({
|
|
43
43
|
fileName: e,
|
|
44
|
-
size:
|
|
45
|
-
uploadingProgress:
|
|
46
|
-
isUploadFailed:
|
|
47
|
-
uploadFailedMessage:
|
|
44
|
+
size: h,
|
|
45
|
+
uploadingProgress: i = 0,
|
|
46
|
+
isUploadFailed: s = !1,
|
|
47
|
+
uploadFailedMessage: x,
|
|
48
48
|
isUploading: l = !1,
|
|
49
|
-
isFullWidth:
|
|
50
|
-
onDownload:
|
|
49
|
+
isFullWidth: z = !1,
|
|
50
|
+
onDownload: _,
|
|
51
51
|
onRemove: f,
|
|
52
|
-
withPreview:
|
|
53
|
-
textPosition:
|
|
54
|
-
imageSrc:
|
|
52
|
+
withPreview: C = !1,
|
|
53
|
+
textPosition: L = "right",
|
|
54
|
+
imageSrc: u
|
|
55
55
|
}) => {
|
|
56
|
-
const
|
|
57
|
-
(
|
|
58
|
-
|
|
56
|
+
const p = y(() => J(e), [e]), S = p.toUpperCase(), N = y(() => q(p), [p]), E = _ ? M : B, k = m(
|
|
57
|
+
(o) => {
|
|
58
|
+
o.stopPropagation(), l || f == null || f();
|
|
59
59
|
},
|
|
60
60
|
[l, f]
|
|
61
|
-
),
|
|
62
|
-
(
|
|
63
|
-
|
|
61
|
+
), c = L === "bottom", g = !c && !s && !l && !!_, r = m(() => {
|
|
62
|
+
g && (_ == null || _());
|
|
63
|
+
}, [g, _]), w = m(() => {
|
|
64
|
+
r();
|
|
65
|
+
}, [r]), I = m(
|
|
66
|
+
(o) => {
|
|
67
|
+
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), r());
|
|
64
68
|
},
|
|
65
|
-
[
|
|
66
|
-
)
|
|
67
|
-
return /* @__PURE__ */
|
|
69
|
+
[r]
|
|
70
|
+
);
|
|
71
|
+
return /* @__PURE__ */ d(
|
|
68
72
|
"div",
|
|
69
73
|
{
|
|
70
74
|
className: t("attached-file", {
|
|
71
|
-
"attached-file--failed":
|
|
75
|
+
"attached-file--failed": s,
|
|
72
76
|
"attached-file--uploading": l,
|
|
73
|
-
"attached-file--full-width":
|
|
74
|
-
"attached-file--bottom-placed":
|
|
77
|
+
"attached-file--full-width": z,
|
|
78
|
+
"attached-file--bottom-placed": c
|
|
75
79
|
}),
|
|
80
|
+
...g && {
|
|
81
|
+
role: "button",
|
|
82
|
+
tabIndex: 0,
|
|
83
|
+
onClick: w,
|
|
84
|
+
onKeyDown: I
|
|
85
|
+
},
|
|
76
86
|
children: [
|
|
77
|
-
/* @__PURE__ */ a("div", { className: t("attached-file__icon"), children:
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
!
|
|
87
|
+
/* @__PURE__ */ a("div", { className: t("attached-file__icon"), children: C && u ? /* @__PURE__ */ a("img", { className: t("attached-file__thumbnail"), src: u, alt: e }) : /* @__PURE__ */ a("div", { className: t("attached-file__file-icon"), children: /* @__PURE__ */ a(N, {}) }) }),
|
|
88
|
+
/* @__PURE__ */ d("div", { className: t("attached-file__info"), children: [
|
|
89
|
+
!c && _ ? /* @__PURE__ */ d("div", { className: t("attached-file__file-name"), children: [
|
|
80
90
|
/* @__PURE__ */ a("span", { className: t("attached-file__name-text"), children: e }),
|
|
81
|
-
!l && !
|
|
91
|
+
!l && !s && /* @__PURE__ */ a("span", { className: t("attached-file__download-icon"), children: /* @__PURE__ */ a(E, {}) })
|
|
82
92
|
] }) : /* @__PURE__ */ a(
|
|
83
93
|
"div",
|
|
84
94
|
{
|
|
85
95
|
className: t("attached-file__file-name", {
|
|
86
|
-
"attached-file__file-name--bottom-placed":
|
|
96
|
+
"attached-file__file-name--bottom-placed": c
|
|
87
97
|
}),
|
|
88
|
-
children: /* @__PURE__ */ a("span", { className: t("attached-file__name-text"), children:
|
|
98
|
+
children: /* @__PURE__ */ a("span", { className: t("attached-file__name-text"), children: c ? T(e) : e })
|
|
89
99
|
}
|
|
90
100
|
),
|
|
91
|
-
|
|
92
|
-
!
|
|
93
|
-
|
|
101
|
+
c ? null : /* @__PURE__ */ d(b, { children: [
|
|
102
|
+
!s && /* @__PURE__ */ d("div", { className: t("attached-file__file-details"), children: [
|
|
103
|
+
S,
|
|
94
104
|
", ",
|
|
95
|
-
|
|
105
|
+
h,
|
|
96
106
|
" MB"
|
|
97
107
|
] }),
|
|
98
|
-
|
|
108
|
+
s && /* @__PURE__ */ a("div", { className: t("attached-file__error-message"), children: x })
|
|
99
109
|
] })
|
|
100
110
|
] }),
|
|
101
|
-
|
|
111
|
+
c ? null : /* @__PURE__ */ d(b, { children: [
|
|
102
112
|
f && /* @__PURE__ */ a(
|
|
103
113
|
"button",
|
|
104
114
|
{
|
|
@@ -107,15 +117,15 @@ const F = (e) => {
|
|
|
107
117
|
"attached-file__remove-button--disabled": l
|
|
108
118
|
}),
|
|
109
119
|
disabled: l,
|
|
110
|
-
onClick:
|
|
111
|
-
children: /* @__PURE__ */ a(
|
|
120
|
+
onClick: k,
|
|
121
|
+
children: /* @__PURE__ */ a(A, {})
|
|
112
122
|
}
|
|
113
123
|
),
|
|
114
|
-
l &&
|
|
124
|
+
l && i > 0 && /* @__PURE__ */ a("div", { className: t("attached-file__upload-progress"), children: /* @__PURE__ */ a(
|
|
115
125
|
"div",
|
|
116
126
|
{
|
|
117
127
|
className: t("attached-file__upload-progress-bar"),
|
|
118
|
-
style: { width: `${
|
|
128
|
+
style: { width: `${i}%` }
|
|
119
129
|
}
|
|
120
130
|
) })
|
|
121
131
|
] })
|
|
@@ -124,6 +134,6 @@ const F = (e) => {
|
|
|
124
134
|
);
|
|
125
135
|
};
|
|
126
136
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
137
|
+
Y as A,
|
|
138
|
+
J as g
|
|
129
139
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AdaptiveTagList as B } from "./adaptiveTagList.js";
|
|
2
2
|
import { A as v, a as w } from "./actionMenu-f8a2f5bb.js";
|
|
3
3
|
import { ACTION_MENU_DIVIDER as E } from "./actionMenu.js";
|
|
4
|
-
import { A as k } from "./index-
|
|
4
|
+
import { A as k } from "./index-8c921599.js";
|
|
5
5
|
import { B as N } from "./baseIconButton-251479f7.js";
|
|
6
|
-
import { B as H } from "./breadcrumbs-
|
|
6
|
+
import { B as H } from "./breadcrumbs-0a228139.js";
|
|
7
7
|
import { B as G } from "./bubblesLoader-f3ffa240.js";
|
|
8
8
|
import { BulkPanel as V } from "./bulkPanel.js";
|
|
9
9
|
import { B as W } from "./button-7ab874f3.js";
|