@reportportal/ui-kit 0.0.1-alpha.167 → 0.0.1-alpha.169

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.
@@ -0,0 +1,155 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useState as P, useRef as A, useCallback as V, useEffect as C, isValidElement as F, Fragment as K } from "react";
3
+ import { S as R } from "./meatballMenu-535635a9.js";
4
+ import { B as U } from "./baseIconButton-251479f7.js";
5
+ import { Popover as z } from "./popover.js";
6
+ import { c as G } from "./bind-06a7ff84.js";
7
+ const H = "_disabled_184h2_69", J = "_divider_184h2_76", m = {
8
+ "action-menu": "_action-menu_184h2_16",
9
+ "actions-popover": "_actions-popover_184h2_20",
10
+ "action-dropdown": "_action-dropdown_184h2_24",
11
+ "action-menu-button": "_action-menu-button_184h2_29",
12
+ "action-item": "_action-item_184h2_42",
13
+ disabled: H,
14
+ divider: J
15
+ }, l = G.bind(m), ee = ({
16
+ className: p,
17
+ children: h,
18
+ ...b
19
+ }) => /* @__PURE__ */ s("div", { className: l("action-item", p), tabIndex: -1, ...b, children: h }), ne = ({
20
+ placement: p = "bottom-end",
21
+ items: h = [],
22
+ cleanupDividers: b = !0,
23
+ className: D,
24
+ contentClassName: M,
25
+ buttonClassName: v,
26
+ popoverClassName: N,
27
+ menuClassName: E,
28
+ ariaLabel: S,
29
+ trigger: _,
30
+ disabled: a = !1
31
+ }) => {
32
+ const [u, d] = P(!1), c = A(null), y = A(/* @__PURE__ */ new Map()), O = V(
33
+ (e) => {
34
+ a || d(e);
35
+ },
36
+ [a]
37
+ );
38
+ C(() => {
39
+ u && c.current && requestAnimationFrame(() => {
40
+ requestAnimationFrame(() => {
41
+ var n;
42
+ const e = (n = c.current) == null ? void 0 : n.querySelector(
43
+ `button[role="menuitem"]:not([disabled]), .${m["action-item"]}`
44
+ );
45
+ e && e.focus();
46
+ });
47
+ });
48
+ }, [u]);
49
+ const i = (e) => !!(e && typeof e == "object" && "type" in e && e.type === "divider"), q = (e) => i(e) ? !0 : typeof e == "object" && e !== null && "hasPermission" in e ? e.hasPermission !== !1 : !0, $ = (e) => {
50
+ var r, I, f, k, x, w;
51
+ const n = Array.from(
52
+ ((r = c.current) == null ? void 0 : r.querySelectorAll(
53
+ `button[role="menuitem"]:not([disabled]), .${m["action-item"]}`
54
+ )) || []
55
+ ), t = n.indexOf(document.activeElement);
56
+ if (e.key === "ArrowDown") {
57
+ e.preventDefault();
58
+ const o = t === -1 ? 0 : (t + 1) % n.length;
59
+ (I = n[o]) == null || I.focus();
60
+ } else if (e.key === "ArrowUp") {
61
+ e.preventDefault();
62
+ const o = t === -1 ? n.length - 1 : (t - 1 + n.length) % n.length;
63
+ (f = n[o]) == null || f.focus();
64
+ } else if (e.key === "Tab")
65
+ if (e.preventDefault(), e.shiftKey) {
66
+ const o = t === -1 ? n.length - 1 : (t - 1 + n.length) % n.length;
67
+ (k = n[o]) == null || k.focus();
68
+ } else {
69
+ const o = t === -1 ? 0 : (t + 1) % n.length;
70
+ (x = n[o]) == null || x.focus();
71
+ }
72
+ else if (e.key === "Enter") {
73
+ e.preventDefault();
74
+ const o = document.activeElement;
75
+ o && ((w = c.current) != null && w.contains(o)) && (o.click(), d(!1));
76
+ } else
77
+ e.key === "Escape" && (e.preventDefault(), d(!1));
78
+ }, j = (e) => {
79
+ const n = e.target, t = n.closest(`[role="menuitem"], .${m["action-item"]}`);
80
+ if (t && !t.hasAttribute("disabled")) {
81
+ if (n === t) {
82
+ const r = t.querySelector(
83
+ 'a, button, [role="button"], [onclick]'
84
+ );
85
+ r && r.click();
86
+ }
87
+ d(!1);
88
+ }
89
+ }, B = (e, n) => i(e) ? /* @__PURE__ */ s("div", { className: l("divider") }, `divider-${n}`) : F(e) ? /* @__PURE__ */ s(K, { children: e }, n) : typeof e == "object" && e !== null && "label" in e ? e.hasPermission === !1 ? null : /* @__PURE__ */ s(
90
+ "button",
91
+ {
92
+ ref: (t) => {
93
+ t ? y.current.set(n, t) : y.current.delete(n);
94
+ },
95
+ type: "button",
96
+ role: "menuitem",
97
+ tabIndex: -1,
98
+ className: l("action-item", { disabled: e.disabled }, e.className),
99
+ disabled: e.disabled,
100
+ onClick: (t) => {
101
+ var r;
102
+ (r = e.onClick) == null || r.call(e, t);
103
+ },
104
+ children: e.label
105
+ },
106
+ e.id || `action-${n}`
107
+ ) : null, g = ((e) => {
108
+ if (!b)
109
+ return e;
110
+ let n = e.filter((t) => t != null);
111
+ if (n.length === 0)
112
+ return n;
113
+ for (; n.length > 0 && i(n[0]); )
114
+ n.shift();
115
+ for (; n.length > 0 && i(n[n.length - 1]); )
116
+ n.pop();
117
+ return n = n.filter((t, r) => !i(t) || r === 0 ? !0 : !i(n[r - 1])), n = n.filter((t, r) => i(t) ? n.slice(r + 1).some((f) => q(f)) : !0), n;
118
+ })(h).map(B).filter(Boolean);
119
+ return g.length === 0 ? null : /* @__PURE__ */ s("div", { className: l("action-menu", D), children: /* @__PURE__ */ s(
120
+ z,
121
+ {
122
+ placement: p,
123
+ isOpened: a ? !1 : u,
124
+ setIsOpened: O,
125
+ content: /* @__PURE__ */ s(
126
+ "div",
127
+ {
128
+ ref: c,
129
+ role: "menu",
130
+ tabIndex: -1,
131
+ onKeyDown: $,
132
+ onClick: j,
133
+ className: l("action-dropdown", E, M),
134
+ children: g
135
+ }
136
+ ),
137
+ className: l("actions-popover", N),
138
+ children: _ ? /* @__PURE__ */ s("div", { className: v, children: _ }) : /* @__PURE__ */ s(
139
+ U,
140
+ {
141
+ className: l("action-menu-button", v),
142
+ disabled: a,
143
+ "aria-label": S || "Actions menu",
144
+ "aria-expanded": u,
145
+ "aria-haspopup": "menu",
146
+ children: /* @__PURE__ */ s(R, {})
147
+ }
148
+ )
149
+ }
150
+ ) });
151
+ };
152
+ export {
153
+ ne as A,
154
+ ee as a
155
+ };
@@ -0,0 +1,30 @@
1
+ import { A as c, a as s } from "./actionMenu-77a63b96.js";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "./meatballMenu-535635a9.js";
5
+ import "./baseIconButton-251479f7.js";
6
+ import "./bind-06a7ff84.js";
7
+ import "./popover.js";
8
+ import "@floating-ui/react";
9
+ import "./floatingUi-41f8c7b5.js";
10
+ /*!
11
+ * Copyright 2026 EPAM Systems
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+ const A = { type: "divider" };
26
+ export {
27
+ A as ACTION_MENU_DIVIDER,
28
+ c as ActionMenu,
29
+ s as ActionMenuItem
30
+ };
@@ -2,7 +2,8 @@ import { jsx as e, jsxs as p, Fragment as y } from "react/jsx-runtime";
2
2
  import { c as h } from "./bind-06a7ff84.js";
3
3
  import { createContext as T, useContext as w, useRef as P, useState as g, useEffect as D } from "react";
4
4
  import { Popover as N } from "./popover.js";
5
- import { S as O, a as E } from "./tree-c3dd3d45.js";
5
+ import { S as O } from "./meatballMenu-535635a9.js";
6
+ import { S as E } from "./tree-e7a0ef42.js";
6
7
  const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */ e(B.Provider, { value: { LinkComponent: r }, children: l }), M = () => {
7
8
  const l = w(B);
8
9
  if (l === void 0)
@@ -19,17 +20,17 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
19
20
  isClickable: k = !0,
20
21
  variant: _ = "default"
21
22
  }) => {
22
- const { LinkComponent: s } = M(), i = P(null), [m, b] = g(null);
23
+ const { LinkComponent: s } = M(), a = P(null), [m, b] = g(null);
23
24
  D(() => {
24
- if (i.current) {
25
- const { offsetWidth: a, scrollWidth: $, dataset: S } = i.current;
26
- if (a < $) {
25
+ if (a.current) {
26
+ const { offsetWidth: i, scrollWidth: S, dataset: $ } = a.current;
27
+ if (i < S) {
27
28
  const x = typeof r == "string" ? r : "";
28
- S.tail = x.slice(x.length - l), b(x);
29
+ $.tail = x.slice(x.length - l), b(x);
29
30
  }
30
31
  }
31
32
  }, [r, l]);
32
- const n = /* @__PURE__ */ e("div", { ref: i, className: v("breadcrumb-text", _), children: r });
33
+ const n = /* @__PURE__ */ e("div", { ref: a, className: v("breadcrumb-text", _), children: r });
33
34
  return /* @__PURE__ */ e(
34
35
  "div",
35
36
  {
@@ -130,14 +131,14 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
130
131
  "breadcrumbs-4": "_breadcrumbs-4_pxlum_55",
131
132
  "breadcrumbs-5": "_breadcrumbs-5_pxlum_58",
132
133
  "breadcrumbs-6-plus": "_breadcrumbs-6-plus_pxlum_58"
133
- }, d = h.bind(Q), f = 5, le = ({
134
+ }, d = h.bind(Q), f = 5, re = ({
134
135
  descriptors: l = [],
135
136
  dataAutomationId: r,
136
137
  LinkComponent: t,
137
138
  tree: c,
138
139
  isBackButton: k = !1
139
140
  }) => {
140
- const _ = [...l], s = _.shift(), i = (n) => `breadcrumbs-${n > 5 ? "6-plus" : n}`, m = ((n) => ({
141
+ const _ = [...l], s = _.shift(), a = (n) => `breadcrumbs-${n > 5 ? "6-plus" : n}`, m = ((n) => ({
141
142
  1: 55,
142
143
  2: 24,
143
144
  3: 18,
@@ -155,7 +156,7 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
155
156
  "data-testid": r,
156
157
  children: k && s ? /* @__PURE__ */ e("div", { className: d("breadcrumbs"), children: /* @__PURE__ */ e("div", { className: d("breadcrumb-item", "back-button"), "data-testid": "back-breadcrumb", children: /* @__PURE__ */ e(u, { descriptor: s, titleTailNumChars: m }) }) }) : /* @__PURE__ */ p(y, { children: [
157
158
  c && /* @__PURE__ */ e("div", { className: d("tree"), children: /* @__PURE__ */ e(J, { tree: c }) }),
158
- /* @__PURE__ */ p("div", { className: d("breadcrumbs", i(l.length)), children: [
159
+ /* @__PURE__ */ p("div", { className: d("breadcrumbs", a(l.length)), children: [
159
160
  s && /* @__PURE__ */ e("div", { className: d("breadcrumb-item"), children: /* @__PURE__ */ e(
160
161
  u,
161
162
  {
@@ -165,19 +166,19 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
165
166
  }
166
167
  ) }),
167
168
  b.length > 0 && /* @__PURE__ */ e("div", { className: d("breadcrumb-item", "hidden-breadcrumbs"), children: /* @__PURE__ */ e(X, { descriptors: b }) }),
168
- _.length > 0 && _.map((n, a) => /* @__PURE__ */ e("div", { className: d("breadcrumb-item"), children: /* @__PURE__ */ e(
169
+ _.length > 0 && _.map((n, i) => /* @__PURE__ */ e("div", { className: d("breadcrumb-item"), children: /* @__PURE__ */ e(
169
170
  u,
170
171
  {
171
172
  descriptor: n,
172
173
  titleTailNumChars: m,
173
- isClickable: a !== _.length - 1
174
+ isClickable: i !== _.length - 1
174
175
  }
175
- ) }, a))
176
+ ) }, i))
176
177
  ] })
177
178
  ] })
178
179
  }
179
180
  ) });
180
181
  };
181
182
  export {
182
- le as B
183
+ re as B
183
184
  };
@@ -1,11 +1,12 @@
1
- import { B as m } from "./breadcrumbs-8e5ca8d7.js";
1
+ import { B as m } from "./breadcrumbs-9b38b89c.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
5
5
  import "./popover.js";
6
6
  import "@floating-ui/react";
7
7
  import "./floatingUi-41f8c7b5.js";
8
- import "./tree-c3dd3d45.js";
8
+ import "./meatballMenu-535635a9.js";
9
+ import "./tree-e7a0ef42.js";
9
10
  export {
10
11
  m as Breadcrumbs,
11
12
  m as default
package/dist/bulkPanel.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as n, jsxs as a, Fragment as y } from "react/jsx-runtime";
2
- import { useState as k, useRef as z, useMemo as P, useCallback as b, useEffect as A } from "react";
1
+ import { jsx as n, jsxs as s, Fragment as y } from "react/jsx-runtime";
2
+ import { useState as k, useRef as U, useMemo as P, useCallback as _, useEffect as z } from "react";
3
3
  import { createPortal as H } from "react-dom";
4
4
  import { c as J } from "./bind-06a7ff84.js";
5
5
  import { Scrollbars as Q } from "rc-scrollbars";
@@ -10,17 +10,17 @@ import { K as Z } from "./keyCodes-f63c0e11.js";
10
10
  import { S as ee } from "./selection-9124d029.js";
11
11
  import { Chip as ne } from "./chip.js";
12
12
  import { B } from "./button-97d9e587.js";
13
- import { Tooltip as le } from "./tooltip.js";
14
- import { S as te } from "./chevronDownDropdown-0260bb66.js";
13
+ import { Tooltip as te } from "./tooltip.js";
14
+ import { S as le } from "./chevronDownDropdown-0260bb66.js";
15
15
  import { S as ie } from "./warning-537ead32.js";
16
16
  import "./close-4d480ef7.js";
17
17
  import "@floating-ui/react";
18
18
  import "./floatingUi-41f8c7b5.js";
19
- const se = "_expanded_ue1t9_6", ae = "_header_ue1t9_32", oe = "_tabs_ue1t9_119", ce = "_tab_ue1t9_119", re = "_active_ue1t9_146", de = "_item_ue1t9_99", me = {
19
+ const ae = "_expanded_ue1t9_6", se = "_header_ue1t9_32", oe = "_tabs_ue1t9_119", ce = "_tab_ue1t9_119", re = "_active_ue1t9_146", de = "_item_ue1t9_99", me = {
20
20
  "bulk-panel": "_bulk-panel_ue1t9_1",
21
- expanded: se,
21
+ expanded: ae,
22
22
  "panel-content": "_panel-content_ue1t9_16",
23
- header: ae,
23
+ header: se,
24
24
  "header-actions": "_header-actions_ue1t9_43",
25
25
  "warning-icon": "_warning-icon_ue1t9_49",
26
26
  "info-message-container": "_info-message-container_ue1t9_58",
@@ -37,20 +37,20 @@ const se = "_expanded_ue1t9_6", ae = "_header_ue1t9_32", oe = "_tabs_ue1t9_119",
37
37
  "items-list": "_items-list_ue1t9_167",
38
38
  item: de,
39
39
  "tooltip-wrapper": "_tooltip-wrapper_ue1t9_179"
40
- }, l = J.bind(me), pe = {
40
+ }, t = J.bind(me), pe = {
41
41
  selected: "selected",
42
42
  clearSelection: "Clear selection",
43
43
  selectedItems: "Selected items",
44
44
  eligibleTab: "Eligible Items",
45
45
  ineligibleTab: "Ineligible Items",
46
- ineligibleInfoMessage: (i) => /* @__PURE__ */ a(y, { children: [
46
+ ineligibleInfoMessage: (i) => /* @__PURE__ */ s(y, { children: [
47
47
  "You have ",
48
48
  /* @__PURE__ */ n("b", { children: i }),
49
49
  " ineligible items"
50
50
  ] }),
51
51
  cancelButton: (i) => `Cancel "${i}"`,
52
52
  proceedButton: (i) => `Proceed with ${i} Eligible Items`
53
- }, p = {
53
+ }, u = {
54
54
  ELIGIBLE: "eligible",
55
55
  INELIGIBLE: "ineligible"
56
56
  }, Ge = ({
@@ -63,88 +63,90 @@ const se = "_expanded_ue1t9_6", ae = "_header_ue1t9_32", oe = "_tabs_ue1t9_119",
63
63
  onRemoveItem: w,
64
64
  onClearSelection: O
65
65
  }) => {
66
- const c = { ...pe, ...K }, [o, _] = k(!1), [I, v] = k(p.INELIGIBLE), [t, C] = k(null), S = z(null), r = t !== null, { eligibleItems: u, ineligibleItems: h } = P(() => {
66
+ const r = { ...pe, ...K }, [o, v] = k(!1), [I, C] = k(u.INELIGIBLE), [l, E] = k(null), S = U(null), d = l !== null, { eligibleItems: b, ineligibleItems: h } = P(() => {
67
67
  var g;
68
- if (!t)
68
+ if (!l)
69
69
  return { eligibleItems: [], ineligibleItems: [] };
70
- const e = ((g = t.onValidate) == null ? void 0 : g.call(t, i)) ?? [], s = new Set(e.map((L) => L.id));
71
- return { eligibleItems: i.filter((L) => !s.has(L.id)), ineligibleItems: e };
72
- }, [i, t]), d = u.length, m = h.length, $ = r && d > 0, T = r && m > 0 ? c.ineligibleInfoMessage(m) : null, V = P(() => r ? m === 0 ? u : d === 0 ? h : I === p.ELIGIBLE ? u : h : i, [
73
- r,
70
+ const e = ((g = l.onValidate) == null ? void 0 : g.call(l, i)) ?? [], a = new Set(e.map((L) => L.id));
71
+ return { eligibleItems: i.filter((L) => !a.has(L.id)), ineligibleItems: e };
72
+ }, [i, l]), m = b.length, p = h.length, $ = d && m > 0, T = d && p > 0 ? r.ineligibleInfoMessage(p) : null, F = P(() => d ? p === 0 ? b : m === 0 ? h : I === u.ELIGIBLE ? b : h : i, [
73
+ d,
74
74
  i,
75
- u,
75
+ b,
76
76
  h,
77
77
  I,
78
- m,
79
- d
80
- ]), j = b(
78
+ p,
79
+ m
80
+ ]), c = _(() => {
81
+ requestAnimationFrame(() => {
82
+ v(!1);
83
+ });
84
+ }, []), V = _(
81
85
  (e) => {
82
86
  var N, g;
83
- (N = e.onClick) == null || N.call(e), (((g = e.onValidate) == null ? void 0 : g.call(e, i)) ?? []).length === 0 ? e.onProceed(i, !0) : (C(e), v(p.INELIGIBLE), _(!0));
87
+ (N = e.onClick) == null || N.call(e), (((g = e.onValidate) == null ? void 0 : g.call(e, i)) ?? []).length === 0 ? (e.onProceed(i, !0), c()) : (E(e), C(u.INELIGIBLE), v(!0));
84
88
  },
85
- [i]
86
- ), F = b(() => {
87
- const e = t == null ? void 0 : t.onCancel;
88
- C(null), _(!1), e == null || e();
89
- }, [t]), W = b(() => {
90
- t == null || t.onProceed(u), C(null), _(!1);
91
- }, [t, u]), E = b(() => {
92
- _(!1);
93
- }, []), Y = b(() => {
94
- _((e) => !e);
95
- }, []), R = b(
89
+ [i, c]
90
+ ), j = _(() => {
91
+ const e = l == null ? void 0 : l.onCancel;
92
+ E(null), c(), e == null || e();
93
+ }, [l, c]), W = _(() => {
94
+ l == null || l.onProceed(b), E(null), c();
95
+ }, [l, b, c]), Y = _(() => {
96
+ v((e) => !e);
97
+ }, []), q = _(
96
98
  (e) => {
97
99
  w(e);
98
100
  },
99
101
  [w]
100
102
  );
101
- if (A(() => {
103
+ if (z(() => {
102
104
  if (!o)
103
105
  return;
104
- const e = (s) => {
105
- s.keyCode === Z.ESCAPE_KEY_CODE && E();
106
+ const e = (a) => {
107
+ a.keyCode === Z.ESCAPE_KEY_CODE && c();
106
108
  };
107
109
  return document.addEventListener("keydown", e, !1), () => document.removeEventListener("keydown", e, !1);
108
- }, [o, E]), X(S, o ? E : void 0), i.length === 0)
110
+ }, [o, c]), X(S, o ? c : void 0), i.length === 0)
109
111
  return null;
110
- const U = (e) => h.some((s) => s.id === e.id), q = (e) => {
111
- const s = /* @__PURE__ */ n(
112
+ const A = (e) => h.some((a) => a.id === e.id), R = (e) => {
113
+ const a = /* @__PURE__ */ n(
112
114
  ne,
113
115
  {
114
- onRemove: () => R(e.id),
115
- variant: U(e) && r ? "error" : "default",
116
+ onRemove: () => q(e.id),
117
+ variant: A(e) && d ? "error" : "default",
116
118
  children: e.label ?? e.name
117
119
  },
118
120
  e.id
119
121
  );
120
- return /* @__PURE__ */ n("div", { className: l("item"), children: e.tooltipContent ? /* @__PURE__ */ n(
121
- le,
122
+ return /* @__PURE__ */ n("div", { className: t("item"), children: e.tooltipContent ? /* @__PURE__ */ n(
123
+ te,
122
124
  {
123
- wrapperClassName: l("tooltip-wrapper"),
125
+ wrapperClassName: t("tooltip-wrapper"),
124
126
  content: e.tooltipContent,
125
127
  placement: "top",
126
128
  width: 270,
127
129
  portalRoot: f,
128
- children: s
130
+ children: a
129
131
  },
130
132
  e.id
131
- ) : s }, e.id);
133
+ ) : a }, e.id);
132
134
  }, G = /* @__PURE__ */ n(
133
135
  "div",
134
136
  {
135
- className: l("bulk-panel", { expanded: o }, M),
137
+ className: t("bulk-panel", { expanded: o }, M),
136
138
  role: "region",
137
139
  "aria-label": "Bulk actions panel",
138
- children: /* @__PURE__ */ a("div", { className: l("panel-content", { expanded: o }), ref: S, children: [
139
- /* @__PURE__ */ a("div", { className: l("header"), children: [
140
- /* @__PURE__ */ a("div", { className: l("selection-info"), children: [
140
+ children: /* @__PURE__ */ s("div", { className: t("panel-content", { expanded: o }), ref: S, children: [
141
+ /* @__PURE__ */ s("div", { className: t("header"), children: [
142
+ /* @__PURE__ */ s("div", { className: t("selection-info"), children: [
141
143
  /* @__PURE__ */ n(
142
144
  "button",
143
145
  {
144
146
  onClick: Y,
145
147
  "aria-label": o ? "Collapse panel" : "Expand panel",
146
148
  "aria-expanded": o,
147
- children: /* @__PURE__ */ n("span", { className: l("expand-icon", { expanded: o }), children: /* @__PURE__ */ n(te, {}) })
149
+ children: /* @__PURE__ */ n("span", { className: t("expand-icon", { expanded: o }), children: /* @__PURE__ */ n(le, {}) })
148
150
  }
149
151
  ),
150
152
  /* @__PURE__ */ n(
@@ -153,62 +155,62 @@ const se = "_expanded_ue1t9_6", ae = "_header_ue1t9_32", oe = "_tabs_ue1t9_119",
153
155
  selectedCount: i.length,
154
156
  onClearSelection: O,
155
157
  captions: {
156
- selected: c.selected,
157
- buttonCaption: c.clearSelection
158
+ selected: r.selected,
159
+ buttonCaption: r.clearSelection
158
160
  }
159
161
  }
160
162
  )
161
163
  ] }),
162
- /* @__PURE__ */ a("div", { className: l("header-actions"), children: [
163
- (T || x) && /* @__PURE__ */ a("div", { className: l("info-message-container"), children: [
164
- /* @__PURE__ */ n("i", { className: l("warning-icon"), children: /* @__PURE__ */ n(ie, {}) }),
165
- /* @__PURE__ */ n("div", { className: l("info-message"), children: T || x })
164
+ /* @__PURE__ */ s("div", { className: t("header-actions"), children: [
165
+ (T || x) && /* @__PURE__ */ s("div", { className: t("info-message-container"), children: [
166
+ /* @__PURE__ */ n("i", { className: t("warning-icon"), children: /* @__PURE__ */ n(ie, {}) }),
167
+ /* @__PURE__ */ n("div", { className: t("info-message"), children: T || x })
166
168
  ] }),
167
- /* @__PURE__ */ n("div", { className: l("buttons-container"), children: r ? /* @__PURE__ */ a(y, { children: [
168
- /* @__PURE__ */ n(B, { variant: "ghost", onClick: F, children: c.cancelButton((t == null ? void 0 : t.label) ?? "") }),
169
- $ && /* @__PURE__ */ n(B, { variant: "primary", onClick: W, children: c.proceedButton(d) })
170
- ] }) : D.map((e, s) => /* @__PURE__ */ n(
169
+ /* @__PURE__ */ n("div", { className: t("buttons-container"), children: d ? /* @__PURE__ */ s(y, { children: [
170
+ /* @__PURE__ */ n(B, { variant: "ghost", onClick: j, children: r.cancelButton((l == null ? void 0 : l.label) ?? "") }),
171
+ $ && /* @__PURE__ */ n(B, { variant: "primary", onClick: W, children: r.proceedButton(m) })
172
+ ] }) : D.map((e, a) => /* @__PURE__ */ n(
171
173
  B,
172
174
  {
173
175
  variant: e.variant,
174
- onClick: () => j(e),
176
+ onClick: () => V(e),
175
177
  disabled: e.disabled,
176
178
  children: e.label
177
179
  },
178
- `${e.label}-${s}`
180
+ `${e.label}-${a}`
179
181
  )) })
180
182
  ] })
181
183
  ] }),
182
- /* @__PURE__ */ a("div", { className: l("items-section"), children: [
183
- /* @__PURE__ */ n("div", { className: l("items-header"), children: r ? /* @__PURE__ */ a("div", { className: l("tabs"), children: [
184
- m > 0 && /* @__PURE__ */ a(
184
+ /* @__PURE__ */ s("div", { className: t("items-section"), children: [
185
+ /* @__PURE__ */ n("div", { className: t("items-header"), children: d ? /* @__PURE__ */ s("div", { className: t("tabs"), children: [
186
+ p > 0 && /* @__PURE__ */ s(
185
187
  "button",
186
188
  {
187
- className: l("tab", {
188
- active: I === p.INELIGIBLE || d === 0
189
+ className: t("tab", {
190
+ active: I === u.INELIGIBLE || m === 0
189
191
  }),
190
- onClick: () => v(p.INELIGIBLE),
192
+ onClick: () => C(u.INELIGIBLE),
191
193
  children: [
192
- c.ineligibleTab,
193
- /* @__PURE__ */ n("span", { className: l("tab-count"), children: m })
194
+ r.ineligibleTab,
195
+ /* @__PURE__ */ n("span", { className: t("tab-count"), children: p })
194
196
  ]
195
197
  }
196
198
  ),
197
- d > 0 && /* @__PURE__ */ a(
199
+ m > 0 && /* @__PURE__ */ s(
198
200
  "button",
199
201
  {
200
- className: l("tab", {
201
- active: I === p.ELIGIBLE || m === 0
202
+ className: t("tab", {
203
+ active: I === u.ELIGIBLE || p === 0
202
204
  }),
203
- onClick: () => v(p.ELIGIBLE),
205
+ onClick: () => C(u.ELIGIBLE),
204
206
  children: [
205
- c.eligibleTab,
206
- /* @__PURE__ */ n("span", { className: l("tab-count"), children: d })
207
+ r.eligibleTab,
208
+ /* @__PURE__ */ n("span", { className: t("tab-count"), children: m })
207
209
  ]
208
210
  }
209
211
  )
210
- ] }) : c.selectedItems }),
211
- /* @__PURE__ */ n("div", { className: l("items-scroll"), children: /* @__PURE__ */ n(Q, { hideTracksWhenNotNeeded: !0, children: /* @__PURE__ */ n("div", { className: l("items-list"), children: V.map((e) => q(e)) }) }) })
212
+ ] }) : r.selectedItems }),
213
+ /* @__PURE__ */ n("div", { className: t("items-scroll"), children: /* @__PURE__ */ n(Q, { hideTracksWhenNotNeeded: !0, children: /* @__PURE__ */ n("div", { className: t("items-list"), children: F.map((e) => R(e)) }) }) })
212
214
  ] })
213
215
  ] })
214
216
  }
@@ -0,0 +1,33 @@
1
+ import { ReactNode, MouseEvent, ReactElement } from 'react';
2
+ import { PopoverProps } from '../popover/popover';
3
+
4
+ export interface ActionItem {
5
+ id?: string;
6
+ label: string;
7
+ onClick?: (event?: MouseEvent<HTMLButtonElement>) => void;
8
+ hasPermission?: boolean;
9
+ disabled?: boolean;
10
+ className?: string;
11
+ }
12
+ export interface DividerItem {
13
+ type: 'divider';
14
+ }
15
+ export type MenuItem = ActionItem | DividerItem | ReactNode;
16
+ export declare const ActionMenuItem: ({ className, children, ...props }: {
17
+ [key: string]: unknown;
18
+ className?: string | undefined;
19
+ children: ReactNode;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export interface ActionMenuProps extends Pick<PopoverProps, 'placement'> {
22
+ items?: MenuItem[];
23
+ cleanupDividers?: boolean;
24
+ className?: string;
25
+ contentClassName?: string;
26
+ buttonClassName?: string;
27
+ popoverClassName?: string;
28
+ menuClassName?: string;
29
+ ariaLabel?: string;
30
+ trigger?: ReactNode;
31
+ disabled?: boolean;
32
+ }
33
+ export declare const ActionMenu: ({ placement, items, cleanupDividers, className, contentClassName, buttonClassName, popoverClassName, menuClassName, ariaLabel, trigger, disabled, }: ActionMenuProps) => ReactElement | null;
@@ -0,0 +1,3 @@
1
+ import { DividerItem } from './actionMenu';
2
+
3
+ export declare const ACTION_MENU_DIVIDER: DividerItem;
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Copyright 2026 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { ActionMenu, ActionMenuItem } from './actionMenu';
17
+ export { ACTION_MENU_DIVIDER } from './constants';
18
+ export type { ActionMenuProps, ActionItem, DividerItem, MenuItem } from './actionMenu';