@reportportal/ui-kit 0.0.1-alpha.187 → 0.0.1-alpha.189

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.
@@ -1,4 +1,4 @@
1
- import { A as a } from "./index-1a874a8b.js";
1
+ import { A as a } from "./index-d6e02727.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
@@ -1,48 +1,48 @@
1
- import { jsx as e, jsxs as C, Fragment as $ } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as B, Fragment as j } from "react/jsx-runtime";
2
2
  import { c as h } from "./bind-06a7ff84.js";
3
- import { take as j, drop as E } from "es-toolkit";
4
- import { createContext as P, useContext as O, useRef as H, useState as w, useEffect as R } from "react";
5
- import { Popover as y } from "./popover.js";
6
- import { S as W } from "./meatballMenu-535635a9.js";
7
- import { S as F } from "./tree-e7a0ef42.js";
8
- import { i as g } from "./isEmpty-ccacb5ff.js";
9
- const D = P(void 0), I = ({ children: l, LinkComponent: r }) => /* @__PURE__ */ e(D.Provider, { value: { LinkComponent: r }, children: l }), L = () => {
10
- const l = O(D);
3
+ import { take as E, drop as P } from "es-toolkit";
4
+ import { createContext as O, useContext as H, useRef as R, useState as y, useEffect as W } from "react";
5
+ import { Popover as D } from "./popover.js";
6
+ import { S as F } from "./meatballMenu-535635a9.js";
7
+ import { S as I } from "./tree-e7a0ef42.js";
8
+ import { i as C } from "./isEmpty-ccacb5ff.js";
9
+ const M = O(void 0), L = ({ children: l, LinkComponent: r }) => /* @__PURE__ */ e(M.Provider, { value: { LinkComponent: r }, children: l }), A = () => {
10
+ const l = H(M);
11
11
  if (l === void 0)
12
12
  throw new Error("useBreadcrumbsContext must be used within a BreadcrumbsProvider");
13
13
  return l;
14
- }, A = "_breadcrumb_1cva8_1", U = "_link_1cva8_5", X = "_dark_1cva8_30", q = {
15
- breadcrumb: A,
16
- link: U,
14
+ }, U = "_breadcrumb_1cva8_1", X = "_link_1cva8_5", q = "_dark_1cva8_30", G = {
15
+ breadcrumb: U,
16
+ link: X,
17
17
  "breadcrumb-text": "_breadcrumb-text_1cva8_10",
18
- dark: X
19
- }, a = h.bind(q), v = ({
18
+ dark: q
19
+ }, v = h.bind(G), m = ({
20
20
  titleTailNumChars: l = 8,
21
21
  descriptor: { title: r, link: t, onClick: _ },
22
22
  isClickable: k = !0,
23
- variant: o = "default"
23
+ variant: b = "default"
24
24
  }) => {
25
- const { LinkComponent: b } = L(), d = H(null), [x, s] = w(null);
26
- R(() => {
27
- if (d.current) {
28
- const { offsetWidth: S, scrollWidth: p, dataset: u } = d.current;
29
- if (S < p) {
25
+ const { LinkComponent: u } = A(), s = R(null), [a, x] = y(null);
26
+ W(() => {
27
+ if (s.current) {
28
+ const { offsetWidth: d, scrollWidth: T, dataset: p } = s.current;
29
+ if (d < T) {
30
30
  const i = typeof r == "string" ? r : "";
31
- u.tail = i.slice(i.length - l), s(i);
31
+ p.tail = i.slice(i.length - l), x(i);
32
32
  }
33
33
  }
34
34
  }, [r, l]);
35
- const n = /* @__PURE__ */ e("div", { ref: d, className: a("breadcrumb-text", o), children: r });
35
+ const n = /* @__PURE__ */ e("div", { ref: s, className: v("breadcrumb-text", b), children: r });
36
36
  return /* @__PURE__ */ e(
37
37
  "div",
38
38
  {
39
- className: a("breadcrumb", o),
40
- title: x || void 0,
39
+ className: v("breadcrumb", b),
40
+ title: a || void 0,
41
41
  "data-testid": "breadcrumb",
42
- children: k ? b && t ? /* @__PURE__ */ e(b, { className: a("link"), to: t, onClick: _, children: n }) : t ? /* @__PURE__ */ e("a", { className: a("link"), href: typeof t == "string" ? t : "#", onClick: _, children: n }) : /* @__PURE__ */ e("button", { type: "button", className: a("link"), onClick: _, children: n }) : n
42
+ children: k ? u && t ? /* @__PURE__ */ e(u, { className: v("link"), to: t, onClick: _, children: n }) : t ? /* @__PURE__ */ e("a", { className: v("link"), href: typeof t == "string" ? t : "#", onClick: _, children: n }) : /* @__PURE__ */ e("button", { type: "button", className: v("link"), onClick: _, children: n }) : n
43
43
  }
44
44
  );
45
- }, G = {
45
+ }, J = {
46
46
  "hidden-breadcrumbs-trigger": "_hidden-breadcrumbs-trigger_14kki_1",
47
47
  "hidden-breadcrumbs-content": "_hidden-breadcrumbs-content_14kki_8",
48
48
  "hidden-breadcrumb-item": "_hidden-breadcrumb-item_14kki_14",
@@ -70,16 +70,16 @@ const D = P(void 0), I = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
70
70
  "level-23": "_level-23_14kki_291",
71
71
  "level-24": "_level-24_14kki_304",
72
72
  "level-25": "_level-25_14kki_317"
73
- }, B = h.bind(G), J = ({ descriptors: l }) => /* @__PURE__ */ e("div", { className: B("hidden-breadcrumbs-content"), "data-testid": "hidden-breadcrumbs-content", children: l.map((r, t) => /* @__PURE__ */ e("div", { className: B("hidden-breadcrumb-item", `level-${t + 1}`), children: /* @__PURE__ */ e(v, { descriptor: r }) }, t)) }), K = ({ descriptors: l }) => /* @__PURE__ */ e(
74
- y,
73
+ }, S = h.bind(J), K = ({ descriptors: l }) => /* @__PURE__ */ e("div", { className: S("hidden-breadcrumbs-content"), "data-testid": "hidden-breadcrumbs-content", children: l.map((r, t) => /* @__PURE__ */ e("div", { className: S("hidden-breadcrumb-item", `level-${t + 1}`), children: /* @__PURE__ */ e(m, { descriptor: r }) }, t)) }), Q = ({ descriptors: l }) => /* @__PURE__ */ e(
74
+ D,
75
75
  {
76
- content: /* @__PURE__ */ e(J, { descriptors: l }),
76
+ content: /* @__PURE__ */ e(K, { descriptors: l }),
77
77
  placement: "bottom-start",
78
- children: /* @__PURE__ */ e("div", { className: B("hidden-breadcrumbs-trigger"), "data-testid": "hidden-breadcrumbs-trigger", children: /* @__PURE__ */ e(W, {}) })
78
+ children: /* @__PURE__ */ e("div", { className: S("hidden-breadcrumbs-trigger"), "data-testid": "hidden-breadcrumbs-trigger", children: /* @__PURE__ */ e(F, {}) })
79
79
  }
80
- ), Q = "_opened_zxn5r_1", V = {
80
+ ), V = "_opened_zxn5r_1", Y = {
81
81
  "tree-button": "_tree-button_zxn5r_1",
82
- opened: Q,
82
+ opened: V,
83
83
  "tree-menu-node": "_tree-menu-node_zxn5r_8",
84
84
  "tree-menu-children": "_tree-menu-children_zxn5r_9",
85
85
  "tree-menu-item": "_tree-menu-item_zxn5r_15",
@@ -107,81 +107,82 @@ const D = P(void 0), I = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
107
107
  "level-23": "_level-23_zxn5r_292",
108
108
  "level-24": "_level-24_zxn5r_305",
109
109
  "level-25": "_level-25_zxn5r_318"
110
- }, m = h.bind(V), Y = ({ descriptor: l, level: r }) => /* @__PURE__ */ e("div", { className: m("tree-menu-item", `level-${r}`), children: /* @__PURE__ */ e(v, { descriptor: l, variant: "dark" }) }), M = (l, r) => l.map((t, _) => /* @__PURE__ */ C("div", { className: m("tree-menu-node"), children: [
111
- /* @__PURE__ */ e(Y, { descriptor: t, level: r }),
112
- t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: m("tree-menu-children"), children: M(t.children, r + 1) })
113
- ] }, _)), Z = ({ tree: l }) => {
114
- const [r, t] = w(!1);
110
+ }, o = h.bind(Y), Z = ({ descriptor: l, level: r }) => /* @__PURE__ */ e("div", { className: o("tree-menu-item", `level-${r}`), children: /* @__PURE__ */ e(m, { descriptor: l, variant: "dark" }) }), $ = (l, r) => l.map((t, _) => /* @__PURE__ */ B("div", { className: o("tree-menu-node"), children: [
111
+ /* @__PURE__ */ e(Z, { descriptor: t, level: r }),
112
+ t.children && t.children.length > 0 && /* @__PURE__ */ e("div", { className: o("tree-menu-children"), children: $(t.children, r + 1) })
113
+ ] }, _)), ee = ({ tree: l }) => {
114
+ const [r, t] = y(!1);
115
115
  return /* @__PURE__ */ e(
116
- y,
116
+ D,
117
117
  {
118
- content: /* @__PURE__ */ e("div", { className: m("tree-menu"), children: M(l, 1) }),
118
+ content: /* @__PURE__ */ e("div", { className: o("tree-menu"), children: $(l, 1) }),
119
119
  placement: "bottom-start",
120
120
  isOpened: r,
121
121
  setIsOpened: t,
122
- children: /* @__PURE__ */ e("div", { className: m("tree-button", { opened: r }), children: /* @__PURE__ */ e(F, {}) })
122
+ children: /* @__PURE__ */ e("div", { className: o("tree-button", { opened: r }), children: /* @__PURE__ */ e(I, {}) })
123
123
  }
124
124
  );
125
- }, ee = "_breadcrumbs_1cb9j_1", le = {
125
+ }, le = "_breadcrumbs_1cb9j_1", re = {
126
126
  "breadcrumbs-container": "_breadcrumbs-container_1cb9j_1",
127
- breadcrumbs: ee,
127
+ breadcrumbs: le,
128
128
  "breadcrumb-item": "_breadcrumb-item_1cb9j_15",
129
129
  "hidden-breadcrumbs": "_hidden-breadcrumbs_1cb9j_23",
130
130
  "back-button": "_back-button_1cb9j_43"
131
- }, c = h.bind(le), re = 5, ve = ({
131
+ }, c = h.bind(re), te = 5, me = ({
132
132
  descriptors: l = [],
133
133
  dataAutomationId: r,
134
134
  LinkComponent: t,
135
135
  tree: _,
136
136
  isBackButton: k = !1,
137
- isLastClickable: o = !1,
138
- maxShownDescriptors: b = re,
139
- titleTailNumChars: d,
137
+ isLastClickable: b = !1,
138
+ isSingleItemClickable: u = !1,
139
+ maxShownDescriptors: s = te,
140
+ titleTailNumChars: a,
140
141
  className: x
141
142
  }) => {
142
- const [s, ...n] = l, p = Math.max(1, Math.floor(b)) - 1, u = Math.max(0, n.length - p), i = ((f) => ({
143
+ const [n, ...d] = l, p = Math.max(1, Math.floor(s)) - 1, i = Math.max(0, d.length - p), z = ((N) => ({
143
144
  1: 55,
144
145
  2: 24,
145
146
  3: 18,
146
147
  4: 13
147
- })[f] ?? 12)(l.length), T = j(n, u), z = E(n, u);
148
- return /* @__PURE__ */ e(I, { LinkComponent: t, children: /* @__PURE__ */ e(
148
+ })[N] ?? 12)(l.length), w = E(d, i), f = P(d, i);
149
+ return /* @__PURE__ */ e(L, { LinkComponent: t, children: /* @__PURE__ */ e(
149
150
  "div",
150
151
  {
151
152
  className: c("breadcrumbs-container", x),
152
153
  "data-automation-id": r,
153
154
  "data-testid": r,
154
- children: k && s ? /* @__PURE__ */ e("div", { className: c("breadcrumbs"), children: /* @__PURE__ */ e("div", { className: c("breadcrumb-item", "back-button"), "data-testid": "back-breadcrumb", children: /* @__PURE__ */ e(
155
- v,
155
+ children: k && n ? /* @__PURE__ */ e("div", { className: c("breadcrumbs"), children: /* @__PURE__ */ e("div", { className: c("breadcrumb-item", "back-button"), "data-testid": "back-breadcrumb", children: /* @__PURE__ */ e(
156
+ m,
156
157
  {
157
- descriptor: s,
158
- titleTailNumChars: d ?? i
158
+ descriptor: n,
159
+ titleTailNumChars: a ?? z
159
160
  }
160
- ) }) }) : /* @__PURE__ */ C($, { children: [
161
- _ && /* @__PURE__ */ e("div", { className: c("tree"), children: /* @__PURE__ */ e(Z, { tree: _ }) }),
162
- /* @__PURE__ */ C("div", { className: c("breadcrumbs"), children: [
163
- s && /* @__PURE__ */ e("div", { className: c("breadcrumb-item"), children: /* @__PURE__ */ e(
164
- v,
161
+ ) }) }) : /* @__PURE__ */ B(j, { children: [
162
+ _ && /* @__PURE__ */ e("div", { className: c("tree"), children: /* @__PURE__ */ e(ee, { tree: _ }) }),
163
+ /* @__PURE__ */ B("div", { className: c("breadcrumbs"), children: [
164
+ n && /* @__PURE__ */ e("div", { className: c("breadcrumb-item"), children: /* @__PURE__ */ e(
165
+ m,
165
166
  {
166
- descriptor: s,
167
- titleTailNumChars: d ?? i,
168
- isClickable: !g(n)
167
+ descriptor: n,
168
+ titleTailNumChars: a ?? z,
169
+ isClickable: u || !C(d)
169
170
  }
170
171
  ) }),
171
- !g(T) && /* @__PURE__ */ e("div", { className: c("breadcrumb-item", "hidden-breadcrumbs"), children: /* @__PURE__ */ e(K, { descriptors: T }) }),
172
- !g(z) && z.map((f, N) => /* @__PURE__ */ e("div", { className: c("breadcrumb-item"), children: /* @__PURE__ */ e(
173
- v,
172
+ !C(w) && /* @__PURE__ */ e("div", { className: c("breadcrumb-item", "hidden-breadcrumbs"), children: /* @__PURE__ */ e(Q, { descriptors: w }) }),
173
+ !C(f) && f.map((N, g) => /* @__PURE__ */ e("div", { className: c("breadcrumb-item"), children: /* @__PURE__ */ e(
174
+ m,
174
175
  {
175
- descriptor: f,
176
- titleTailNumChars: d ?? i,
177
- isClickable: o || N !== z.length - 1
176
+ descriptor: N,
177
+ titleTailNumChars: a ?? z,
178
+ isClickable: b || g !== f.length - 1
178
179
  }
179
- ) }, N))
180
+ ) }, g))
180
181
  ] })
181
182
  ] })
182
183
  }
183
184
  ) });
184
185
  };
185
186
  export {
186
- ve as B
187
+ me as B
187
188
  };
@@ -1,4 +1,4 @@
1
- import { B as m } from "./breadcrumbs-1e887800.js";
1
+ import { B as m } from "./breadcrumbs-b9af3ee5.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "es-toolkit";
@@ -0,0 +1 @@
1
+ export declare const addMiddleEllipsis: (fileName: string) => string;
@@ -2,3 +2,4 @@ export { getFileExtension } from './getFileExtension';
2
2
  export { isString } from './isString';
3
3
  export { getAlignmentAxisOffset } from './floatingUi';
4
4
  export { splitHtmlAttributes } from './htmlAttributes';
5
+ export { addMiddleEllipsis } from './addMiddleEllipsis';
@@ -10,5 +10,8 @@ export interface AttachedFileProps {
10
10
  uploadFailedMessage?: string;
11
11
  onRemove?: VoidFn;
12
12
  onDownload?: VoidFn;
13
+ withPreview?: boolean;
14
+ textPosition?: 'bottom' | 'right';
15
+ imageSrc?: string;
13
16
  }
14
- export declare const AttachedFile: ({ fileName, size, uploadingProgress, isUploadFailed, uploadFailedMessage, isUploading, isFullWidth, onDownload, onRemove, }: AttachedFileProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const AttachedFile: ({ fileName, size, uploadingProgress, isUploadFailed, uploadFailedMessage, isUploading, isFullWidth, onDownload, onRemove, withPreview, textPosition, imageSrc, }: AttachedFileProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { BreadcrumbsProps } from './types';
2
2
 
3
- export declare const Breadcrumbs: ({ descriptors, dataAutomationId, LinkComponent, tree, isBackButton, isLastClickable, maxShownDescriptors, titleTailNumChars: customTitleTailNumChars, className, }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Breadcrumbs: ({ descriptors, dataAutomationId, LinkComponent, tree, isBackButton, isLastClickable, isSingleItemClickable, maxShownDescriptors, titleTailNumChars: customTitleTailNumChars, className, }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
@@ -22,6 +22,7 @@ export interface BreadcrumbsProps {
22
22
  dataAutomationId?: string;
23
23
  isBackButton?: boolean;
24
24
  isLastClickable?: boolean;
25
+ isSingleItemClickable?: boolean;
25
26
  maxShownDescriptors?: number;
26
27
  titleTailNumChars?: number;
27
28
  className?: string;
@@ -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-1a874a8b.js";
4
+ import { g as B, A as P } from "./index-d6e02727.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";
@@ -0,0 +1,129 @@
1
+ import { jsxs as d, jsx as a, Fragment as p } from "react/jsx-runtime";
2
+ import { useMemo as u, useCallback as b } from "react";
3
+ import { c as E } from "./bind-06a7ff84.js";
4
+ import { S as j } from "./close-4d480ef7.js";
5
+ import { a as y, b as I, S as k, d as M, e as P, c as s, f as g } from "./xls-995781cc.js";
6
+ const A = (e) => {
7
+ var _;
8
+ const f = e.split(".");
9
+ return f.length > 1 && ((_ = f.pop()) == null ? void 0 : _.toLowerCase()) || "";
10
+ }, B = (e) => e.length <= 15 ? e : e.slice(0, 4) + "..." + e.slice(-8), F = {
11
+ "attached-file": "_attached-file_zf2i5_16",
12
+ "attached-file__file-name": "_attached-file__file-name_zf2i5_29",
13
+ "attached-file--bottom-placed": "_attached-file--bottom-placed_zf2i5_32",
14
+ "attached-file__icon": "_attached-file__icon_zf2i5_42",
15
+ "attached-file__file-icon": "_attached-file__file-icon_zf2i5_49",
16
+ "attached-file--failed": "_attached-file--failed_zf2i5_52",
17
+ "attached-file__name-text": "_attached-file__name-text_zf2i5_56",
18
+ "attached-file--uploading": "_attached-file--uploading_zf2i5_65",
19
+ "attached-file--full-width": "_attached-file--full-width_zf2i5_77",
20
+ "attached-file__thumbnail": "_attached-file__thumbnail_zf2i5_98",
21
+ "attached-file__info": "_attached-file__info_zf2i5_105",
22
+ "attached-file__file-name--bottom-placed": "_attached-file__file-name--bottom-placed_zf2i5_126",
23
+ "attached-file__download-icon": "_attached-file__download-icon_zf2i5_141",
24
+ "attached-file__file-details": "_attached-file__file-details_zf2i5_150",
25
+ "attached-file__error-message": "_attached-file__error-message_zf2i5_155",
26
+ "attached-file__upload-progress": "_attached-file__upload-progress_zf2i5_160",
27
+ "attached-file__upload-progress-bar": "_attached-file__upload-progress-bar_zf2i5_170",
28
+ "attached-file__remove-button": "_attached-file__remove-button_zf2i5_174",
29
+ "attached-file__remove-button--disabled": "_attached-file__remove-button--disabled_zf2i5_196"
30
+ }, t = E.bind(F), O = {
31
+ csv: k,
32
+ jar: M,
33
+ pdf: P,
34
+ jpg: s,
35
+ jpeg: s,
36
+ png: s,
37
+ gif: s,
38
+ svg: s,
39
+ webp: s,
40
+ xls: g,
41
+ xlsx: g
42
+ }, J = (e) => O[e.toLowerCase()] ?? I, H = ({
43
+ fileName: e,
44
+ size: f,
45
+ uploadingProgress: _ = 0,
46
+ isUploadFailed: l = !1,
47
+ uploadFailedMessage: v,
48
+ isUploading: i = !1,
49
+ isFullWidth: x = !1,
50
+ onDownload: h,
51
+ onRemove: n,
52
+ withPreview: z = !1,
53
+ textPosition: C = "right",
54
+ imageSrc: m
55
+ }) => {
56
+ const o = u(() => A(e), [e]), L = o.toUpperCase(), N = u(() => J(o), [o]), S = b(
57
+ (r) => {
58
+ r.stopPropagation(), i || n == null || n();
59
+ },
60
+ [i, n]
61
+ ), w = b(
62
+ (r) => {
63
+ r.stopPropagation(), !l && !i && h && h();
64
+ },
65
+ [l, i, h]
66
+ ), c = C === "bottom";
67
+ return /* @__PURE__ */ d(
68
+ "div",
69
+ {
70
+ className: t("attached-file", {
71
+ "attached-file--failed": l,
72
+ "attached-file--uploading": i,
73
+ "attached-file--full-width": x,
74
+ "attached-file--bottom-placed": c
75
+ }),
76
+ children: [
77
+ /* @__PURE__ */ a("div", { className: t("attached-file__icon"), children: z && m ? /* @__PURE__ */ a("img", { className: t("attached-file__thumbnail"), src: m, alt: e }) : /* @__PURE__ */ a("div", { className: t("attached-file__file-icon"), children: /* @__PURE__ */ a(N, {}) }) }),
78
+ /* @__PURE__ */ d("div", { className: t("attached-file__info"), children: [
79
+ !c && h ? /* @__PURE__ */ d("button", { type: "button", className: t("attached-file__file-name"), onClick: w, children: [
80
+ /* @__PURE__ */ a("span", { className: t("attached-file__name-text"), children: e }),
81
+ !i && !l && /* @__PURE__ */ a("span", { className: t("attached-file__download-icon"), children: /* @__PURE__ */ a(y, {}) })
82
+ ] }) : /* @__PURE__ */ a(
83
+ "div",
84
+ {
85
+ className: t("attached-file__file-name", {
86
+ "attached-file__file-name--bottom-placed": c
87
+ }),
88
+ children: /* @__PURE__ */ a("span", { className: t("attached-file__name-text"), children: c ? B(e) : e })
89
+ }
90
+ ),
91
+ c ? null : /* @__PURE__ */ d(p, { children: [
92
+ !l && /* @__PURE__ */ d("div", { className: t("attached-file__file-details"), children: [
93
+ L,
94
+ ", ",
95
+ f,
96
+ " MB"
97
+ ] }),
98
+ l && /* @__PURE__ */ a("div", { className: t("attached-file__error-message"), children: v })
99
+ ] })
100
+ ] }),
101
+ c ? null : /* @__PURE__ */ d(p, { children: [
102
+ n && /* @__PURE__ */ a(
103
+ "button",
104
+ {
105
+ type: "button",
106
+ className: t("attached-file__remove-button", {
107
+ "attached-file__remove-button--disabled": i
108
+ }),
109
+ disabled: i,
110
+ onClick: S,
111
+ children: /* @__PURE__ */ a(j, {})
112
+ }
113
+ ),
114
+ i && _ > 0 && /* @__PURE__ */ a("div", { className: t("attached-file__upload-progress"), children: /* @__PURE__ */ a(
115
+ "div",
116
+ {
117
+ className: t("attached-file__upload-progress-bar"),
118
+ style: { width: `${_}%` }
119
+ }
120
+ ) })
121
+ ] })
122
+ ]
123
+ }
124
+ );
125
+ };
126
+ export {
127
+ H as A,
128
+ A as g
129
+ };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AdaptiveTagList as y } from "./adaptiveTagList.js";
2
2
  import { A as h, a as M } from "./actionMenu-77a63b96.js";
3
3
  import { ACTION_MENU_DIVIDER as L } from "./actionMenu.js";
4
- import { A as E } from "./index-1a874a8b.js";
4
+ import { A as E } from "./index-d6e02727.js";
5
5
  import { B as k } from "./baseIconButton-251479f7.js";
6
- import { B as N } from "./breadcrumbs-1e887800.js";
6
+ import { B as N } from "./breadcrumbs-b9af3ee5.js";
7
7
  import { B as z } from "./bubblesLoader-f3ffa240.js";
8
8
  import { BulkPanel as J } from "./bulkPanel.js";
9
9
  import { B as _ } from "./button-7ab874f3.js";