@reportportal/ui-kit 0.0.1-alpha.224 → 0.0.1-alpha.225

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.
@@ -47,6 +47,11 @@ export interface DropdownProps extends Omit<ComponentPropsWithRef<'div'>, 'onCha
47
47
  * @example menuPortalRoot={document.body}
48
48
  */
49
49
  menuPortalRoot?: Element;
50
+ /**
51
+ * Portal root for the Tooltip shown on disabled options that have an explicit `title`.
52
+ * When omitted, defaults to `document.body` in the browser (guarded for SSR).
53
+ */
54
+ disabledOptionTooltipPortalRoot?: Element;
50
55
  /** Whether to render selected values as tags using AdaptiveTagList (only for multiSelect mode) */
51
56
  isMultiSelectWithTags?: boolean;
52
57
  /** Message to display when no options match the search term */
@@ -23,6 +23,7 @@ export interface DropdownOptionProps {
23
23
  depth?: number;
24
24
  hasChildren?: boolean;
25
25
  option: DropdownOptionType;
26
+ disabledOptionTooltipPortalRoot?: Element;
26
27
  }
27
28
  export type FlattenedDropdownOption = {
28
29
  option: DropdownOptionType;
@@ -3,7 +3,7 @@ import { useMemo as E, forwardRef as G, useRef as V } from "react";
3
3
  import v from "react-datepicker/dist/es/index.js";
4
4
  import { c as L } from "./bind-06a7ff84.js";
5
5
  import { F as W } from "./fieldText-1749da7a.js";
6
- import { D as x } from "./dropdown-110ce4a5.js";
6
+ import { D as x } from "./dropdown-33f2bf75.js";
7
7
  import { S as I } from "./calendarArrow-44c7e60e.js";
8
8
  import { registerLocale as q } from "react-datepicker";
9
9
  const De = (t, n) => {
@@ -1,5 +1,5 @@
1
- import { D as t } from "./datePicker-ab9411c0.js";
2
- import { r as E } from "./datePicker-ab9411c0.js";
1
+ import { D as t } from "./datePicker-bc0a9fca.js";
2
+ import { r as H } from "./datePicker-bc0a9fca.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-datepicker/dist/es/index.js";
@@ -11,7 +11,7 @@ import "./baseIconButton-251479f7.js";
11
11
  import "./spinLoader-c4a53718.js";
12
12
  import "./maxValueDisplay-9be01a75.js";
13
13
  import "./fieldLabel.js";
14
- import "./dropdown-110ce4a5.js";
14
+ import "./dropdown-33f2bf75.js";
15
15
  import "react-dom";
16
16
  import "@floating-ui/react-dom";
17
17
  import "downshift";
@@ -26,10 +26,13 @@ import "react-dnd";
26
26
  import "react-dnd-html5-backend";
27
27
  import "./useEllipsisTitle-462fa254.js";
28
28
  import "./checkbox-76aa8f97.js";
29
+ import "./tooltip.js";
30
+ import "@floating-ui/react";
31
+ import "./floatingUi-46f5b896.js";
29
32
  import "./calendarArrow-44c7e60e.js";
30
33
  import "react-datepicker";
31
34
  export {
32
35
  t as DatePicker,
33
36
  t as default,
34
- E as registerDatePickerLocale
37
+ H as registerDatePickerLocale
35
38
  };
@@ -1,45 +1,46 @@
1
- import { jsxs as R, jsx as u, Fragment as Se } from "react/jsx-runtime";
2
- import { forwardRef as Er, useState as we, useRef as k, useMemo as w, useCallback as v, useLayoutEffect as He, useEffect as B } from "react";
3
- import { createPortal as yr } from "react-dom";
4
- import { c as We } from "./bind-06a7ff84.js";
5
- import { useFloating as Cr, offset as Ar, flip as Or, size as Dr, autoUpdate as br } from "@floating-ui/react-dom";
1
+ import { jsxs as R, jsx as u, Fragment as He } from "react/jsx-runtime";
2
+ import { forwardRef as yr, useState as we, useRef as k, useMemo as w, useCallback as v, useLayoutEffect as $e, useEffect as F } from "react";
3
+ import { createPortal as Cr } from "react-dom";
4
+ import { c as ze } from "./bind-06a7ff84.js";
5
+ import { useFloating as Ar, offset as Or, flip as br, size as Dr, autoUpdate as Nr } from "@floating-ui/react-dom";
6
6
  import { useSelect as Ee } from "downshift";
7
- import { Scrollbars as Nr } from "rc-scrollbars";
7
+ import { Scrollbars as vr } from "rc-scrollbars";
8
8
  import { K as p } from "./keyCodes-f63c0e11.js";
9
- import { B as vr } from "./baseIconButton-251479f7.js";
10
- import { S as Ir } from "./clear-53660571.js";
11
- import { S as Kr } from "./dropdown-0260bb66.js";
12
- import { FieldLabel as Lr } from "./fieldLabel.js";
13
- import { AdaptiveTagList as Tr } from "./adaptiveTagList.js";
9
+ import { B as Ir } from "./baseIconButton-251479f7.js";
10
+ import { S as Kr } from "./clear-53660571.js";
11
+ import { S as Lr } from "./dropdown-0260bb66.js";
12
+ import { FieldLabel as Tr } from "./fieldLabel.js";
13
+ import { AdaptiveTagList as xr } from "./adaptiveTagList.js";
14
14
  import "react-dnd";
15
15
  import "react-dnd-html5-backend";
16
- import { u as xr } from "./useEllipsisTitle-462fa254.js";
17
- import { C as kr } from "./checkbox-76aa8f97.js";
16
+ import { u as kr } from "./useEllipsisTitle-462fa254.js";
17
+ import { C as Rr } from "./checkbox-76aa8f97.js";
18
+ import { Tooltip as Pr } from "./tooltip.js";
18
19
  import { i as ne } from "./isEmpty-ccacb5ff.js";
19
- const Rr = (n) => {
20
+ const Yr = (t) => {
20
21
  const r = {}, c = {};
21
- return Object.entries(n).forEach(([o, f]) => {
22
+ return Object.entries(t).forEach(([o, h]) => {
22
23
  if (/^data[A-Z]/.test(o) || /^aria[A-Z]/.test(o)) {
23
24
  const m = o.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").toLowerCase();
24
- r[m] = f;
25
+ r[m] = h;
25
26
  } else
26
- c[o] = f;
27
+ c[o] = h;
27
28
  }), { transformed: r, remaining: c };
28
- }, Pr = "_disabled_100r3_12", Yr = "_hidden_100r3_17", Vr = "_hover_100r3_26", Sr = "_selected_100r3_42", Hr = {
29
+ }, Vr = "_disabled_100r3_12", Sr = "_hidden_100r3_17", Hr = "_hover_100r3_26", $r = "_selected_100r3_42", Mr = {
29
30
  "dropdown-option": "_dropdown-option_100r3_1",
30
- disabled: Pr,
31
- hidden: Yr,
31
+ disabled: Vr,
32
+ hidden: Sr,
32
33
  "multi-select": "_multi-select_100r3_20",
33
- hover: Vr,
34
+ hover: Hr,
34
35
  "depth-1": "_depth-1_100r3_36",
35
- selected: Sr,
36
+ selected: $r,
36
37
  "single-option": "_single-option_100r3_47",
37
38
  "sub-option": "_sub-option_100r3_54"
38
- }, $e = We.bind(Hr), Me = Er(
39
- (n, r) => {
39
+ }, Me = ze.bind(Mr), We = yr(
40
+ (t, r) => {
40
41
  const {
41
- option: { value: c, disabled: o, hidden: f, label: m, title: E, groupRef: A },
42
- selected: F,
42
+ option: { value: c, disabled: o, hidden: h, label: m, title: E, groupRef: A },
43
+ selected: B,
43
44
  onChange: S,
44
45
  render: U,
45
46
  highlightHovered: j,
@@ -48,16 +49,16 @@ const Rr = (n) => {
48
49
  isPartiallyChecked: q = !1,
49
50
  depth: Z = 0,
50
51
  hasChildren: oe = !1
51
- } = n, ae = (ie) => {
52
+ } = t, ae = (ie) => {
52
53
  const H = ie.target;
53
54
  o || H.closest("label") && !(H instanceof HTMLInputElement || H instanceof HTMLDivElement) || S == null || S(c);
54
55
  }, G = /* @__PURE__ */ R(
55
56
  "div",
56
57
  {
57
- className: $e("dropdown-option", {
58
- selected: F,
58
+ className: Me("dropdown-option", {
59
+ selected: B,
59
60
  disabled: o,
60
- hidden: f,
61
+ hidden: h,
61
62
  hover: j,
62
63
  "multi-select": O,
63
64
  "has-children": oe,
@@ -68,65 +69,75 @@ const Rr = (n) => {
68
69
  ref: r,
69
70
  onMouseEnter: se,
70
71
  children: [
71
- O && /* @__PURE__ */ u(kr, { value: !!F, partiallyChecked: q }),
72
+ O && /* @__PURE__ */ u(Rr, { value: !!B, partiallyChecked: q }),
72
73
  /* @__PURE__ */ u(
73
74
  "div",
74
75
  {
75
- className: $e("single-option", {
76
+ className: Me("single-option", {
76
77
  "sub-option": !!A
77
78
  }),
78
- children: U ? U(n) : m
79
+ children: U ? U(t) : m
79
80
  }
80
81
  )
81
82
  ]
82
83
  }
83
84
  );
84
- return o && E ? /* @__PURE__ */ u("div", { title: E, children: G }) : G;
85
+ return o && E ? /* @__PURE__ */ u(
86
+ Pr,
87
+ {
88
+ content: E,
89
+ placement: "top",
90
+ wrapperTabIndex: -1,
91
+ isFloating: !1,
92
+ portalRoot: t.disabledOptionTooltipPortalRoot ?? (typeof document < "u" ? document.body : void 0),
93
+ children: G
94
+ }
95
+ ) : G;
85
96
  }
86
- ), $r = [
97
+ ), Wr = [
87
98
  p.ENTER_KEY_CODE,
88
99
  p.SPACE_KEY_CODE,
89
100
  p.ARROW_DOWN_KEY_CODE
90
- ], Mr = [p.ESCAPE_KEY_CODE, p.TAB_KEY_CODE];
91
- var V = /* @__PURE__ */ ((n) => (n.ON_KEY_DOWN = "onKeyDown", n.ON_CLICK = "onClick", n))(V || {});
92
- const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
101
+ ], zr = [p.ESCAPE_KEY_CODE, p.TAB_KEY_CODE];
102
+ var V = /* @__PURE__ */ ((t) => (t.ON_KEY_DOWN = "onKeyDown", t.ON_CLICK = "onClick", t))(V || {});
103
+ const Fr = 240, Br = "data-dropdown-portal-menu", Ur = 10, jr = (t, r) => {
93
104
  const c = Array.isArray(r) ? r : [r];
94
- return n.findIndex(({ value: o }) => c.includes(o));
95
- }, Ur = (n, r) => (n % r + r) % r, ye = (n, r = 0, c = 1) => {
96
- var f;
97
- if (n.length === 0)
105
+ return t.findIndex(({ value: o }) => c.includes(o));
106
+ }, qr = (t, r) => (t % r + r) % r, ye = (t, r = 0, c = 1) => {
107
+ var h;
108
+ if (t.length === 0)
98
109
  return 0;
99
- if (!((f = n[r]) != null && f.disabled))
110
+ if (!((h = t[r]) != null && h.disabled))
100
111
  return r;
101
- const o = n.length;
112
+ const o = t.length;
102
113
  return ye(
103
- n,
104
- Ur(r + c, o),
114
+ t,
115
+ qr(r + c, o),
105
116
  c
106
117
  );
107
- }, jr = (n, r) => ye(n, r), qr = (n, r) => ye(n, r, -1), ze = (n, r = 0, c) => !n || n.length === 0 ? [] : n.reduce((o, f) => {
118
+ }, Zr = (t, r) => ye(t, r), Gr = (t, r) => ye(t, r, -1), Fe = (t, r = 0, c) => !t || t.length === 0 ? [] : t.reduce((o, h) => {
108
119
  var m;
109
- return f && (o.push({ option: f, depth: r, parent: c }), (m = f.children) != null && m.length && o.push(...ze(f.children, r + 1, f))), o;
110
- }, []), Be = (n) => !n || n.length === 0 ? [] : n.reduce((r, c) => {
120
+ return h && (o.push({ option: h, depth: r, parent: c }), (m = h.children) != null && m.length && o.push(...Fe(h.children, r + 1, h))), o;
121
+ }, []), Be = (t) => !t || t.length === 0 ? [] : t.reduce((r, c) => {
111
122
  var o;
112
123
  return c && ((o = c.children) != null && o.length ? r.push(...Be(c.children)) : r.push(c)), r;
113
- }, []), Fe = (n) => {
124
+ }, []), Ue = (t) => {
114
125
  var r;
115
- return n ? (r = n.children) != null && r.length ? n.children.reduce((c, o) => (o && c.push(...Fe(o)), c), []) : [n.value] : [];
116
- }, Zr = "_container_sth8o_1", Gr = "_icon_sth8o_7", Xr = "_arrow_sth8o_15", Jr = "_dropdown_sth8o_33", Qr = "_disabled_sth8o_53", et = "_value_sth8o_60", rt = "_error_sth8o_63", tt = "_touched_sth8o_63", nt = "_opened_sth8o_67", st = "_placeholder_sth8o_101", ot = "_ghost_sth8o_184", at = "_divider_sth8o_202", it = {
117
- container: Zr,
118
- icon: Gr,
119
- arrow: Xr,
126
+ return t ? (r = t.children) != null && r.length ? t.children.reduce((c, o) => (o && c.push(...Ue(o)), c), []) : [t.value] : [];
127
+ }, Xr = "_container_sth8o_1", Jr = "_icon_sth8o_7", Qr = "_arrow_sth8o_15", et = "_dropdown_sth8o_33", rt = "_disabled_sth8o_53", tt = "_value_sth8o_60", nt = "_error_sth8o_63", st = "_touched_sth8o_63", ot = "_opened_sth8o_67", at = "_placeholder_sth8o_101", it = "_ghost_sth8o_184", lt = "_divider_sth8o_202", ct = {
128
+ container: Xr,
129
+ icon: Jr,
130
+ arrow: Qr,
120
131
  "clear-button": "_clear-button_sth8o_23",
121
- dropdown: Jr,
132
+ dropdown: et,
122
133
  "multi-select-with-tags": "_multi-select-with-tags_sth8o_47",
123
134
  "transparent-background": "_transparent-background_sth8o_50",
124
- disabled: Qr,
125
- value: et,
126
- error: rt,
127
- touched: tt,
128
- opened: nt,
129
- placeholder: st,
135
+ disabled: rt,
136
+ value: tt,
137
+ error: nt,
138
+ touched: st,
139
+ opened: ot,
140
+ placeholder: at,
130
141
  "mobile-disabled": "_mobile-disabled_sth8o_105",
131
142
  "value-wrapper": "_value-wrapper_sth8o_110",
132
143
  "tags-wrapper": "_tags-wrapper_sth8o_116",
@@ -136,18 +147,18 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
136
147
  "limited-width": "_limited-width_sth8o_163",
137
148
  "options-container": "_options-container_sth8o_167",
138
149
  "empty-list-message": "_empty-list-message_sth8o_172",
139
- ghost: ot,
140
- divider: at
141
- }, _ = We.bind(it), vt = ({
142
- multiSelect: n = !1,
143
- value: r = n ? [] : "",
150
+ ghost: it,
151
+ divider: lt
152
+ }, _ = ze.bind(ct), Lt = ({
153
+ multiSelect: t = !1,
154
+ value: r = t ? [] : "",
144
155
  options: c = [],
145
156
  disabled: o = !1,
146
- error: f,
157
+ error: h,
147
158
  onChange: m,
148
159
  onFocus: E,
149
160
  onBlur: A,
150
- mobileDisabled: F,
161
+ mobileDisabled: B,
151
162
  title: S,
152
163
  touched: U = !1,
153
164
  icon: j,
@@ -162,62 +173,63 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
162
173
  isListWidthLimited: H = !1,
163
174
  optionAll: le = { value: "all", label: "All" },
164
175
  isOptionAllVisible: Ce = !1,
165
- onSelectAll: Ue = () => {
176
+ onSelectAll: je = () => {
166
177
  },
167
178
  formatDisplayedValue: ce,
168
179
  notScrollable: $ = !1,
169
180
  footer: X,
170
181
  includeGroupValue: Ae = !1,
171
- clearable: je = !1,
182
+ clearable: qe = !1,
172
183
  onClear: Oe = () => {
173
184
  },
174
- clearButtonAriaLabel: qe = "Clear selection",
185
+ clearButtonAriaLabel: Ze = "Clear selection",
175
186
  menuPortalRoot: y,
176
- isMultiSelectWithTags: D = !1,
177
- noMatchesMessage: Ze = "No matches found",
178
- ...Ge
187
+ disabledOptionTooltipPortalRoot: be,
188
+ isMultiSelectWithTags: b = !1,
189
+ noMatchesMessage: Ge = "No matches found",
190
+ ...Xe
179
191
  }) => {
180
- const { transformed: Xe, remaining: Je } = Rr(Ge), [l, J] = we(!1), [I, De] = we(""), be = k(null), Ne = k(null), M = k(null), de = k(0), ue = k(null), he = k(""), [Qe, Q] = we(null), K = k(null), W = w(() => ze(c), [c]), L = w(() => {
181
- if (!D || !I.trim())
192
+ const { transformed: Je, remaining: Qe } = Yr(Xe), [l, J] = we(!1), [I, De] = we(""), Ne = k(null), ve = k(null), M = k(null), de = k(0), ue = k(null), fe = k(""), [er, Q] = we(null), K = k(null), W = w(() => Fe(c), [c]), L = w(() => {
193
+ if (!b || !I.trim())
182
194
  return W;
183
195
  const e = I.toLowerCase();
184
196
  return W.filter(
185
- ({ option: t }) => t.label.toLowerCase().includes(e)
197
+ ({ option: n }) => n.label.toLowerCase().includes(e)
186
198
  );
187
- }, [W, I, D]), g = w(
199
+ }, [W, I, b]), g = w(
188
200
  () => L.map(({ option: e }) => e),
189
201
  [L]
190
- ), ve = w(
202
+ ), Ie = w(
191
203
  () => W.map(({ option: e }) => e),
192
204
  [W]
193
205
  ), ee = w(() => L.filter(({ option: e }) => {
194
- var t;
195
- return (t = e.children) == null ? void 0 : t.length;
196
- }).map(({ option: e }) => e), [L]), Ie = w(() => Be(c), [c]), b = w(
197
- () => Ie.map(({ value: e }) => e),
198
- [Ie]
206
+ var n;
207
+ return (n = e.children) == null ? void 0 : n.length;
208
+ }).map(({ option: e }) => e), [L]), Ke = w(() => Be(c), [c]), D = w(
209
+ () => Ke.map(({ value: e }) => e),
210
+ [Ke]
199
211
  ), re = w(() => {
200
212
  const e = /* @__PURE__ */ new Map();
201
- return ee.forEach((t) => {
202
- e.set(t.value, Fe(t));
213
+ return ee.forEach((n) => {
214
+ e.set(n.value, Ue(n));
203
215
  }), e;
204
216
  }, [ee]), z = v(
205
- (e) => (ee.forEach((t) => {
206
- const s = re.get(t.value) ?? [], i = s.length > 0 && s.every((d) => e.has(d));
207
- Ae && i ? e.add(t.value) : e.delete(t.value);
217
+ (e) => (ee.forEach((n) => {
218
+ const s = re.get(n.value) ?? [], i = s.length > 0 && s.every((d) => e.has(d));
219
+ Ae && i ? e.add(n.value) : e.delete(n.value);
208
220
  }), e),
209
221
  [ee, Ae, re]
210
- ), T = w(() => !n || !Array.isArray(r) ? /* @__PURE__ */ new Set() : z(new Set(r)), [n, r, z]), fe = w(() => n ? Array.isArray(r) && r.length > 0 : g.some((e) => e.value === r) || r === !1 || r === 0 || !!r, [n, r, g]), er = je && fe && !o, rr = v((e) => {
222
+ ), T = w(() => !t || !Array.isArray(r) ? /* @__PURE__ */ new Set() : z(new Set(r)), [t, r, z]), he = w(() => t ? Array.isArray(r) && r.length > 0 : g.some((e) => e.value === r) || r === !1 || r === 0 || !!r, [t, r, g]), rr = qe && he && !o, tr = v((e) => {
211
223
  de.current = e.scrollTop;
212
224
  }, []);
213
- He(() => {
214
- l && !$ && M.current && !(n && K.current !== null) && M.current.scrollTop(de.current);
215
- }, [l, $, r, n]);
216
- const { refs: P, floatingStyles: Ke } = Cr({
225
+ $e(() => {
226
+ l && !$ && M.current && !(t && K.current !== null) && M.current.scrollTop(de.current);
227
+ }, [l, $, r, t]);
228
+ const { refs: P, floatingStyles: Le } = Ar({
217
229
  placement: "bottom-start",
218
230
  middleware: [
219
- Ar(5),
220
- Or({
231
+ Or(5),
232
+ br({
221
233
  fallbackPlacements: ["bottom-start", "top-start", "bottom", "top"],
222
234
  ...y && {
223
235
  boundary: document.documentElement,
@@ -225,9 +237,9 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
225
237
  }
226
238
  }),
227
239
  y ? Dr({
228
- apply({ rects: e, elements: t }) {
240
+ apply({ rects: e, elements: n }) {
229
241
  const s = e.reference.width;
230
- Object.assign(t.floating.style, {
242
+ Object.assign(n.floating.style, {
231
243
  width: `${s}px`,
232
244
  minWidth: `${s}px`,
233
245
  maxWidth: `${s}px`
@@ -235,66 +247,66 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
235
247
  }
236
248
  }) : null
237
249
  ].filter(Boolean),
238
- whileElementsMounted: l ? (e, t, s) => br(e, t, s, {
250
+ whileElementsMounted: l ? (e, n, s) => Nr(e, n, s, {
239
251
  animationFrame: !0
240
252
  }) : void 0
241
- }), tr = () => {
253
+ }), nr = () => {
242
254
  if (!Ce)
243
255
  return;
244
- const e = Array.isArray(r) ? r : [], t = new Set(e), s = b.some((d) => !t.has(d));
245
- b.forEach((d) => {
246
- s ? t.add(d) : t.delete(d);
256
+ const e = Array.isArray(r) ? r : [], n = new Set(e), s = D.some((d) => !n.has(d));
257
+ D.forEach((d) => {
258
+ s ? n.add(d) : n.delete(d);
247
259
  });
248
- const i = z(t);
249
- m(Array.from(i)), Ue();
260
+ const i = z(n);
261
+ m(Array.from(i)), je();
250
262
  }, te = v(() => {
251
263
  l || (J(!0), E == null || E());
252
264
  }, [l, E]), C = v(() => {
253
- J(!1), De(""), he.current = "", A == null || A();
265
+ J(!1), De(""), fe.current = "", A == null || A();
254
266
  }, [A]), _e = v(() => {
255
267
  if (o)
256
268
  return;
257
- m(n ? [] : ""), Oe(), C(), requestAnimationFrame(() => {
258
- const t = P.reference.current;
259
- t && t instanceof HTMLElement && t.focus();
269
+ m(t ? [] : ""), Oe(), C(), requestAnimationFrame(() => {
270
+ const n = P.reference.current;
271
+ n && n instanceof HTMLElement && n.focus();
260
272
  });
261
- }, [o, n, m, Oe, C, P]), nr = v(
273
+ }, [o, t, m, Oe, C, P]), sr = v(
262
274
  (e) => {
263
275
  e.preventDefault(), e.stopPropagation(), _e();
264
276
  },
265
277
  [_e]
266
- ), Le = v(
278
+ ), Te = v(
267
279
  (e) => {
268
280
  var d, a;
269
281
  if (!l)
270
282
  return;
271
- const t = e == null ? void 0 : e.target;
272
- if (!t)
283
+ const n = e == null ? void 0 : e.target;
284
+ if (!n)
273
285
  return;
274
- const s = (d = be.current) == null ? void 0 : d.contains(t), i = (a = Ne.current) == null ? void 0 : a.contains(t);
286
+ const s = (d = Ne.current) == null ? void 0 : d.contains(n), i = (a = ve.current) == null ? void 0 : a.contains(n);
275
287
  !s && !i && C();
276
288
  },
277
289
  [l, C]
278
290
  );
279
- B(() => {
291
+ F(() => {
280
292
  if (!l)
281
293
  return;
282
- const e = (t) => {
283
- Le(t);
294
+ const e = (n) => {
295
+ Te(n);
284
296
  };
285
297
  return document.addEventListener("pointerdown", e), () => {
286
298
  document.removeEventListener("pointerdown", e);
287
299
  };
288
- }, [l, Le]);
289
- const Te = (e) => {
290
- var t;
300
+ }, [l, Te]);
301
+ const xe = (e) => {
302
+ var n;
291
303
  if (!e.disabled) {
292
- if (n) {
304
+ if (t) {
293
305
  const s = Array.isArray(r) ? r : [], i = new Set(s);
294
- if ((t = e.children) != null && t.length) {
295
- const a = re.get(e.value) ?? [], h = a.some((N) => !i.has(N));
306
+ if ((n = e.children) != null && n.length) {
307
+ const a = re.get(e.value) ?? [], f = a.some((N) => !i.has(N));
296
308
  a.forEach((N) => {
297
- h ? i.add(N) : i.delete(N);
309
+ f ? i.add(N) : i.delete(N);
298
310
  });
299
311
  } else
300
312
  i.has(e.value) ? i.delete(e.value) : i.add(e.value);
@@ -302,81 +314,81 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
302
314
  m(Array.from(d));
303
315
  } else
304
316
  m(e.value);
305
- J((s) => n || !s);
317
+ J((s) => t || !s);
306
318
  }
307
- }, sr = () => g.find(({ value: e }) => e === r), xe = Fr(g, r), {
308
- getToggleButtonProps: or,
309
- getLabelProps: ar,
310
- getMenuProps: ke,
311
- getItemProps: ir,
319
+ }, or = () => g.find(({ value: e }) => e === r), ke = jr(g, r), {
320
+ getToggleButtonProps: ar,
321
+ getLabelProps: ir,
322
+ getMenuProps: Re,
323
+ getItemProps: lr,
312
324
  setHighlightedIndex: x,
313
325
  highlightedIndex: pe
314
326
  } = Ee({
315
327
  items: g,
316
328
  itemToString: (e) => (e != null && e.label ? String(e.label) : O) || "",
317
- selectedItem: sr(),
329
+ selectedItem: or(),
318
330
  isOpen: l,
319
331
  circularNavigation: !0,
320
- defaultHighlightedIndex: xe,
332
+ defaultHighlightedIndex: ke,
321
333
  onHighlightedIndexChange: (e) => {
322
334
  switch (e.type) {
323
335
  case Ee.stateChangeTypes.MenuKeyDownArrowUp:
324
- return Q(V.ON_KEY_DOWN), x(qr(g, e.highlightedIndex)), e;
336
+ return Q(V.ON_KEY_DOWN), x(Gr(g, e.highlightedIndex)), e;
325
337
  case Ee.stateChangeTypes.MenuKeyDownArrowDown:
326
- return Q(V.ON_KEY_DOWN), x(jr(g, e.highlightedIndex)), e;
338
+ return Q(V.ON_KEY_DOWN), x(Zr(g, e.highlightedIndex)), e;
327
339
  default:
328
340
  return e;
329
341
  }
330
342
  }
331
- }), Re = v(
343
+ }), Pe = v(
332
344
  (e) => {
333
- Ne.current = e, P.setFloating(e);
345
+ ve.current = e, P.setFloating(e);
334
346
  },
335
347
  [P]
336
- ), lr = v(
348
+ ), cr = v(
337
349
  (e = {}) => {
338
- const t = ke(e), s = t.ref;
350
+ const n = Re(e), s = n.ref;
339
351
  return {
340
- ...t,
352
+ ...n,
341
353
  ref: (i) => {
342
- Re(i), typeof s == "function" ? s(i) : s && (s.current = i);
354
+ Pe(i), typeof s == "function" ? s(i) : s && (s.current = i);
343
355
  }
344
356
  };
345
357
  },
346
- [ke, Re]
358
+ [Re, Pe]
347
359
  );
348
- B(() => {
349
- n && l && K.current !== null && K.current >= 0 && K.current < g.length && (x(K.current), K.current = null, requestAnimationFrame(() => {
360
+ F(() => {
361
+ t && l && K.current !== null && K.current >= 0 && K.current < g.length && (x(K.current), K.current = null, requestAnimationFrame(() => {
350
362
  M.current && !$ && M.current.scrollTop(de.current);
351
363
  }));
352
- }, [n, l, r, g.length, x, $]), B(() => {
353
- l && D && requestAnimationFrame(() => {
364
+ }, [t, l, r, g.length, x, $]), F(() => {
365
+ l && b && requestAnimationFrame(() => {
354
366
  var e;
355
367
  (e = ue.current) == null || e.focus();
356
368
  });
357
- }, [l, D]), B(() => {
358
- D && l && I !== he.current && (he.current = I, I && x(0));
359
- }, [I, D, l]), He(() => {
369
+ }, [l, b]), F(() => {
370
+ b && l && I !== fe.current && (fe.current = I, I && x(0));
371
+ }, [I, b, l]), $e(() => {
360
372
  if (!l || !y)
361
373
  return;
362
- let e = window.scrollY, t = !0;
374
+ let e = window.scrollY, n = !0;
363
375
  const s = 300, i = () => {
364
- if (!t)
376
+ if (!n)
365
377
  return;
366
378
  window.scrollY !== e && window.scrollTo(0, e);
367
- }, d = (h) => {
368
- t && (h.preventDefault(), h.stopImmediatePropagation(), i());
379
+ }, d = (f) => {
380
+ n && (f.preventDefault(), f.stopImmediatePropagation(), i());
369
381
  };
370
382
  e = window.scrollY, window.addEventListener("scroll", d, { passive: !1, capture: !0 }), requestAnimationFrame(() => {
371
383
  e = window.scrollY, i();
372
384
  });
373
385
  const a = setTimeout(() => {
374
- t = !1;
386
+ n = !1;
375
387
  }, s);
376
388
  return () => {
377
389
  clearTimeout(a), window.removeEventListener("scroll", d, { capture: !0 });
378
390
  };
379
- }, [l, y]), B(() => {
391
+ }, [l, y]), F(() => {
380
392
  if (!l || !y)
381
393
  return;
382
394
  const e = () => {
@@ -386,92 +398,94 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
386
398
  window.removeEventListener("resize", e);
387
399
  };
388
400
  }, [l, y, C]);
389
- const Pe = () => {
401
+ const Ye = () => {
390
402
  o || (J((e) => !e), l ? A == null || A() : E == null || E(), Q(V.ON_CLICK));
391
403
  }, me = w(() => {
392
- if (n && Array.isArray(r) && b.length > 0 && b.every((t) => T.has(t)))
404
+ if (t && Array.isArray(r) && D.length > 0 && D.every((n) => T.has(n)))
393
405
  return le.label;
394
- const e = g.reduce((t, s) => ((Array.isArray(r) && r.includes(s.value) || s.value === r) && t.push(s.label), t), []);
406
+ const e = g.reduce((n, s) => ((Array.isArray(r) && r.includes(s.value) || s.value === r) && n.push(s.label), n), []);
395
407
  return e.length > 0 ? e.join(", ") : !r && r !== !1 && r !== 0 || Array.isArray(r) && !r.length ? O : typeof r == "string" && r.length > 0 && !O ? r : O || void 0;
396
408
  }, [
397
- n,
409
+ t,
398
410
  r,
399
- b,
411
+ D,
400
412
  T,
401
413
  le.label,
402
414
  g,
403
415
  O
404
- ]), ge = w(() => ce ? ce(me) : me, [ce, me]), cr = fe && ge ? ge : void 0, { ref: dr, title: ur } = xr(cr), hr = (e) => {
405
- const { keyCode: t } = e;
406
- $r.includes(t) && e.target === e.currentTarget && (e.preventDefault(), e.stopPropagation(), !l && (x(xe), te(), Q(V.ON_KEY_DOWN)));
407
- }, fr = (e) => {
408
- const { keyCode: t } = e;
409
- if (t === p.ENTER_KEY_CODE || t === p.SPACE_KEY_CODE) {
416
+ ]), ge = w(() => ce ? ce(me) : me, [ce, me]), dr = he && ge ? ge : void 0, { ref: ur, title: fr } = kr(dr), hr = (e) => {
417
+ const { keyCode: n } = e;
418
+ Wr.includes(n) && e.target === e.currentTarget && (e.preventDefault(), e.stopPropagation(), !l && (x(ke), te(), Q(V.ON_KEY_DOWN)));
419
+ }, _r = (e) => {
420
+ const { keyCode: n } = e;
421
+ if (n === p.ENTER_KEY_CODE || n === p.SPACE_KEY_CODE) {
410
422
  const s = g[pe];
411
423
  if (!s || s.disabled)
412
424
  return;
413
- n && (K.current = pe), Te(s), n || C();
425
+ t && (K.current = pe), xe(s), t || C();
414
426
  return;
415
427
  }
416
- Mr.includes(t) && (e.stopPropagation(), C());
417
- }, Ye = () => /* @__PURE__ */ R("div", { className: _("options-container"), children: [
418
- n && Ce && !ne(L) && /* @__PURE__ */ R(Se, { children: [
428
+ zr.includes(n) && (e.stopPropagation(), C());
429
+ }, Ve = () => /* @__PURE__ */ R("div", { className: _("options-container"), children: [
430
+ t && Ce && !ne(L) && /* @__PURE__ */ R(He, { children: [
419
431
  /* @__PURE__ */ u(
420
- Me,
432
+ We,
421
433
  {
422
434
  option: le,
423
- selected: Array.isArray(r) && b.length > 0 && b.every((e) => T.has(e)),
424
- onChange: tr,
425
- multiSelect: n,
426
- isPartiallyChecked: b.some((e) => T.has(e)) && !b.every((e) => T.has(e))
435
+ selected: Array.isArray(r) && D.length > 0 && D.every((e) => T.has(e)),
436
+ onChange: nr,
437
+ multiSelect: t,
438
+ isPartiallyChecked: D.some((e) => T.has(e)) && !D.every((e) => T.has(e)),
439
+ disabledOptionTooltipPortalRoot: be
427
440
  }
428
441
  ),
429
442
  /* @__PURE__ */ u("div", { className: _("divider") }),
430
443
  " "
431
444
  ] }),
432
- ne(L) ? /* @__PURE__ */ u("div", { className: _("empty-list-message"), children: Ze }) : L.map(({ option: e, depth: t }, s) => {
433
- var h, N;
434
- const i = re.get(e.value) ?? [e.value], d = n && i.every((Y) => T.has(Y)), a = n && ((h = e.children) == null ? void 0 : h.length) && i.some((Y) => T.has(Y)) && !d;
445
+ ne(L) ? /* @__PURE__ */ u("div", { className: _("empty-list-message"), children: Ge }) : L.map(({ option: e, depth: n }, s) => {
446
+ var f, N;
447
+ const i = re.get(e.value) ?? [e.value], d = t && i.every((Y) => T.has(Y)), a = t && ((f = e.children) == null ? void 0 : f.length) && i.some((Y) => T.has(Y)) && !d;
435
448
  return /* @__PURE__ */ u(
436
- Me,
449
+ We,
437
450
  {
438
- ...ir({
451
+ ...lr({
439
452
  item: e,
440
453
  index: s
441
454
  }),
442
- multiSelect: n,
443
- selected: n ? d : e.value === r,
444
- option: { title: e.label, ...e },
445
- highlightHovered: pe === s && Qe !== V.ON_CLICK,
455
+ multiSelect: t,
456
+ selected: t ? d : e.value === r,
457
+ option: e,
458
+ highlightHovered: pe === s && er !== V.ON_CLICK,
446
459
  render: Z,
447
- onChange: e.disabled ? null : () => Te(e),
460
+ onChange: e.disabled ? null : () => xe(e),
448
461
  onMouseEnter: () => x(s),
449
- depth: t,
462
+ depth: n,
450
463
  hasChildren: !!((N = e.children) != null && N.length),
451
- isPartiallyChecked: a
464
+ isPartiallyChecked: a,
465
+ disabledOptionTooltipPortalRoot: be
452
466
  },
453
467
  e.value
454
468
  );
455
469
  }),
456
- X && /* @__PURE__ */ R(Se, { children: [
470
+ X && /* @__PURE__ */ R(He, { children: [
457
471
  /* @__PURE__ */ u("div", { className: _("divider") }),
458
472
  typeof X == "function" ? X(C) : X
459
473
  ] })
460
- ] }), _r = () => {
461
- const e = ve.reduce((a, h) => (Array.isArray(r) && r.includes(h.value) && a.push(h.label), a), []), t = (a) => {
462
- const h = ve.find(
463
- ({ label: wr }) => wr === a
474
+ ] }), pr = () => {
475
+ const e = Ie.reduce((a, f) => (Array.isArray(r) && r.includes(f.value) && a.push(f.label), a), []), n = (a) => {
476
+ const f = Ie.find(
477
+ ({ label: Er }) => Er === a
464
478
  );
465
- if (!h)
479
+ if (!f)
466
480
  return;
467
481
  const N = Array.isArray(r) ? r : [], Y = new Set(N);
468
- Y.delete(h.value);
469
- const gr = z(Y);
470
- m(Array.from(gr));
482
+ Y.delete(f.value);
483
+ const wr = z(Y);
484
+ m(Array.from(wr));
471
485
  }, s = (a) => {
472
- const h = a.target;
473
- De(h.value), l || (te(), requestAnimationFrame(() => {
474
- h.focus();
486
+ const f = a.target;
487
+ De(f.value), l || (te(), requestAnimationFrame(() => {
488
+ f.focus();
475
489
  }));
476
490
  }, i = (a) => {
477
491
  if (a.keyCode === p.ESCAPE_KEY_CODE) {
@@ -497,54 +511,54 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
497
511
  );
498
512
  return ne(e) ? /* @__PURE__ */ u("div", { className: _("tags-wrapper", "with-search"), children: d }) : /* @__PURE__ */ R("div", { className: _("tags-wrapper", "with-search"), children: [
499
513
  /* @__PURE__ */ u(
500
- Tr,
514
+ xr,
501
515
  {
502
516
  tags: e,
503
- onRemoveTag: t,
517
+ onRemoveTag: n,
504
518
  isShowAllView: !0,
505
- defaultVisibleLines: Br
519
+ defaultVisibleLines: Ur
506
520
  }
507
521
  ),
508
522
  d
509
523
  ] });
510
- }, pr = () => D && n && Array.isArray(r) ? _r() : /* @__PURE__ */ u(
524
+ }, mr = () => b && t && Array.isArray(r) ? pr() : /* @__PURE__ */ u(
511
525
  "span",
512
526
  {
513
- ref: dr,
527
+ ref: ur,
514
528
  className: _("value", {
515
- placeholder: !fe
529
+ placeholder: !he
516
530
  }),
517
- title: ur,
531
+ title: fr,
518
532
  children: ge
519
533
  }
520
- ), mr = or({
534
+ ), gr = ar({
521
535
  className: _("dropdown", se, G, {
522
536
  "transparent-background": oe,
523
537
  opened: l,
524
538
  disabled: o,
525
- error: f,
539
+ error: h,
526
540
  touched: U,
527
- "mobile-disabled": F,
528
- "multi-select-with-tags": D
541
+ "mobile-disabled": B,
542
+ "multi-select-with-tags": b
529
543
  }),
530
- onClick: Pe,
544
+ onClick: Ye,
531
545
  onKeyDown: hr,
532
546
  ref: P.setReference
533
- }), { type: lt, ...Ve } = mr;
547
+ }), { type: dt, ...Se } = gr;
534
548
  return /* @__PURE__ */ R(
535
549
  "div",
536
550
  {
537
- ref: be,
551
+ ref: Ne,
538
552
  className: _("container", ae),
539
553
  title: S,
554
+ ...Qe,
540
555
  ...Je,
541
- ...Xe,
542
556
  children: [
543
557
  q && /* @__PURE__ */ u(
544
- Lr,
558
+ Tr,
545
559
  {
546
- ...ar(),
547
- onClick: () => !o && Pe(),
560
+ ...ir(),
561
+ onClick: () => !o && Ye(),
548
562
  style: { cursor: o ? "default" : "pointer" },
549
563
  children: q
550
564
  }
@@ -552,41 +566,41 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
552
566
  /* @__PURE__ */ R(
553
567
  "div",
554
568
  {
555
- ...Ve,
569
+ ...Se,
556
570
  role: "button",
557
571
  "aria-disabled": o,
558
- tabIndex: o ? -1 : Ve.tabIndex ?? 0,
572
+ tabIndex: o ? -1 : Se.tabIndex ?? 0,
559
573
  children: [
560
574
  j && /* @__PURE__ */ u("span", { className: _("icon"), children: j }),
561
- /* @__PURE__ */ u("div", { className: _("value-wrapper"), children: pr() }),
562
- er && /* @__PURE__ */ u(
563
- vr,
575
+ /* @__PURE__ */ u("div", { className: _("value-wrapper"), children: mr() }),
576
+ rr && /* @__PURE__ */ u(
577
+ Ir,
564
578
  {
565
579
  className: _("clear-button"),
566
- onClick: nr,
580
+ onClick: sr,
567
581
  onKeyDown: (e) => {
568
- const { keyCode: t } = e;
569
- (t === p.ENTER_KEY_CODE || t === p.SPACE_KEY_CODE) && (e.preventDefault(), e.stopPropagation(), _e());
582
+ const { keyCode: n } = e;
583
+ (n === p.ENTER_KEY_CODE || n === p.SPACE_KEY_CODE) && (e.preventDefault(), e.stopPropagation(), _e());
570
584
  },
571
- "aria-label": qe,
572
- children: /* @__PURE__ */ u(Ir, {})
585
+ "aria-label": Ze,
586
+ children: /* @__PURE__ */ u(Kr, {})
573
587
  }
574
588
  ),
575
- /* @__PURE__ */ u("span", { className: _("arrow"), "aria-hidden": "true", children: /* @__PURE__ */ u(Kr, {}) })
589
+ /* @__PURE__ */ u("span", { className: _("arrow"), "aria-hidden": "true", children: /* @__PURE__ */ u(Lr, {}) })
576
590
  ]
577
591
  }
578
592
  ),
579
593
  l && (() => {
580
594
  var i;
581
- const e = (i = P.reference.current) == null ? void 0 : i.getBoundingClientRect().width, t = y && e ? {
582
- ...Ke,
595
+ const e = (i = P.reference.current) == null ? void 0 : i.getBoundingClientRect().width, n = y && e ? {
596
+ ...Le,
583
597
  width: `${e}px`,
584
598
  minWidth: `${e}px`,
585
599
  maxWidth: `${e}px`
586
- } : Ke, s = /* @__PURE__ */ u(
600
+ } : Le, s = /* @__PURE__ */ u(
587
601
  "div",
588
602
  {
589
- style: t,
603
+ style: n,
590
604
  className: _(
591
605
  "select-list",
592
606
  {
@@ -595,10 +609,10 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
595
609
  },
596
610
  ie
597
611
  ),
598
- ...y && { [zr]: "" },
599
- ...lr({
600
- onKeyDown: fr,
601
- ...D && {
612
+ ...y && { [Br]: "" },
613
+ ...cr({
614
+ onKeyDown: _r,
615
+ ...b && {
602
616
  tabIndex: -1,
603
617
  onFocus: (d) => {
604
618
  var a;
@@ -606,28 +620,28 @@ const Wr = 240, zr = "data-dropdown-portal-menu", Br = 10, Fr = (n, r) => {
606
620
  }
607
621
  }
608
622
  }),
609
- children: $ ? Ye() : /* @__PURE__ */ u(
610
- Nr,
623
+ children: $ ? Ve() : /* @__PURE__ */ u(
624
+ vr,
611
625
  {
612
626
  autoHeight: !0,
613
- autoHeightMax: Wr,
627
+ autoHeightMax: Fr,
614
628
  hideTracksWhenNotNeeded: !0,
615
629
  ref: (d) => {
616
630
  M.current = d;
617
631
  },
618
- onScrollFrame: rr,
619
- children: Ye()
632
+ onScrollFrame: tr,
633
+ children: Ve()
620
634
  }
621
635
  )
622
636
  }
623
637
  );
624
- return y ? yr(s, y) : s;
638
+ return y ? Cr(s, y) : s;
625
639
  })()
626
640
  ]
627
641
  }
628
642
  );
629
643
  };
630
644
  export {
631
- vt as D,
632
- zr as a
645
+ Lt as D,
646
+ Br as a
633
647
  };
package/dist/dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as r } from "./dropdown-110ce4a5.js";
2
- import { a as E } from "./dropdown-110ce4a5.js";
1
+ import { D as r } from "./dropdown-33f2bf75.js";
2
+ import { a as U } from "./dropdown-33f2bf75.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-dom";
@@ -20,8 +20,11 @@ import "react-dnd";
20
20
  import "react-dnd-html5-backend";
21
21
  import "./useEllipsisTitle-462fa254.js";
22
22
  import "./checkbox-76aa8f97.js";
23
+ import "./tooltip.js";
24
+ import "@floating-ui/react";
25
+ import "./floatingUi-46f5b896.js";
23
26
  export {
24
- E as DROPDOWN_PORTAL_MENU_ATTR,
27
+ U as DROPDOWN_PORTAL_MENU_ATTR,
25
28
  r as Dropdown,
26
29
  r as default
27
30
  };
package/dist/index.js CHANGED
@@ -9,9 +9,9 @@ import { BulkPanel as J } from "./bulkPanel.js";
9
9
  import { B as _ } from "./button-7ab874f3.js";
10
10
  import { C as X } from "./checkbox-76aa8f97.js";
11
11
  import { Chip as q } from "./chip.js";
12
- import { D as Q } from "./datePicker-ab9411c0.js";
12
+ import { D as Q } from "./datePicker-bc0a9fca.js";
13
13
  import "react-datepicker";
14
- import { D as Z } from "./dropdown-110ce4a5.js";
14
+ import { D as Z } from "./dropdown-33f2bf75.js";
15
15
  import { FieldLabel as oo } from "./fieldLabel.js";
16
16
  import { F as eo } from "./fieldNumber-b4aa4d7e.js";
17
17
  import { F as ao } from "./fieldText-1749da7a.js";
package/dist/modal.js CHANGED
@@ -8,7 +8,7 @@ import "react-dnd";
8
8
  import "react-dnd-html5-backend";
9
9
  import { u as J } from "./useWindowResize-a7e1ac92.js";
10
10
  import { A as Q } from "./constants-85822a6b.js";
11
- import { a as V } from "./dropdown-110ce4a5.js";
11
+ import { a as V } from "./dropdown-33f2bf75.js";
12
12
  import { K as Z } from "./keyCodes-f63c0e11.js";
13
13
  import { B as C } from "./button-7ab874f3.js";
14
14
  import { Tooltip as ee } from "./tooltip.js";
package/dist/sidePanel.js CHANGED
@@ -5,7 +5,7 @@ import { K as B } from "./keyCodes-f63c0e11.js";
5
5
  import { u as L } from "./useOnClickOutside-8f7d68a1.js";
6
6
  import "react-dnd";
7
7
  import "react-dnd-html5-backend";
8
- import { a as O } from "./dropdown-110ce4a5.js";
8
+ import { a as O } from "./dropdown-33f2bf75.js";
9
9
  import { S as T } from "./close-4d480ef7.js";
10
10
  import { B as j } from "./baseIconButton-251479f7.js";
11
11
  import "react-dom";
@@ -20,6 +20,9 @@ import "./button-7ab874f3.js";
20
20
  import "./isEmpty-ccacb5ff.js";
21
21
  import "./useEllipsisTitle-462fa254.js";
22
22
  import "./checkbox-76aa8f97.js";
23
+ import "./tooltip.js";
24
+ import "@floating-ui/react";
25
+ import "./floatingUi-46f5b896.js";
23
26
  const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H = "_title_5ebdz_88", U = "_description_5ebdz_99", W = "_content_5ebdz_108", Y = "_footer_5ebdz_115", q = "_divider_5ebdz_121", G = {
24
27
  "side-panel-overlay": "_side-panel-overlay_5ebdz_1",
25
28
  active: w,
@@ -38,17 +41,17 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
38
41
  content: W,
39
42
  footer: Y,
40
43
  divider: q
41
- }, e = A.bind(G), he = ({
44
+ }, e = A.bind(G), ze = ({
42
45
  className: b,
43
- title: r,
44
- descriptionComponent: s,
46
+ title: d,
47
+ descriptionComponent: o,
45
48
  headerComponent: c,
46
49
  contentClassName: u,
47
- contentComponent: o,
50
+ contentComponent: s,
48
51
  footerComponent: l,
49
52
  top: n = 0,
50
53
  side: z = "right",
51
- isOpen: d = !0,
54
+ isOpen: r = !0,
52
55
  onClose: t,
53
56
  closeButtonAriaLabel: y = "Close panel",
54
57
  showOverlay: _ = !1,
@@ -66,10 +69,10 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
66
69
  );
67
70
  L(
68
71
  v,
69
- N && _ && d ? t : void 0,
72
+ N && _ && r ? t : void 0,
70
73
  k
71
74
  ), $(() => {
72
- if (!d || !t)
75
+ if (!r || !t)
73
76
  return;
74
77
  const h = (R) => {
75
78
  const { keyCode: S } = R;
@@ -78,22 +81,22 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
78
81
  return document.addEventListener("keydown", h, !1), () => {
79
82
  document.removeEventListener("keydown", h, !1);
80
83
  };
81
- }, [d, t]);
82
- const x = !!(c || s), f = /* @__PURE__ */ a(
84
+ }, [r, t]);
85
+ const x = !!(c || o), f = /* @__PURE__ */ a(
83
86
  "aside",
84
87
  {
85
88
  ref: v,
86
- className: e("side-panel", `side-${z}`, { active: d }, b),
89
+ className: e("side-panel", `side-${z}`, { active: r }, b),
87
90
  role: "dialog",
88
91
  "aria-modal": "true",
89
- "aria-hidden": !d,
90
- "aria-labelledby": r ? p : void 0,
92
+ "aria-hidden": !r,
93
+ "aria-labelledby": d ? p : void 0,
91
94
  style: { top: n, height: `calc(100vh - ${n}px)` },
92
95
  tabIndex: -1,
93
96
  children: [
94
97
  /* @__PURE__ */ a("div", { className: e("header-section", { compact: !x }), children: [
95
- (c || r) && /* @__PURE__ */ a("div", { className: e("header"), children: [
96
- r ? /* @__PURE__ */ i("span", { id: p, className: e("title"), children: r }) : c,
98
+ (c || d) && /* @__PURE__ */ a("div", { className: e("header"), children: [
99
+ d ? /* @__PURE__ */ i("span", { id: p, className: e("title"), children: d }) : c,
97
100
  t && /* @__PURE__ */ i(
98
101
  j,
99
102
  {
@@ -104,10 +107,10 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
104
107
  }
105
108
  )
106
109
  ] }),
107
- s
110
+ o
108
111
  ] }),
109
112
  /* @__PURE__ */ i("div", { className: e("divider") }),
110
- o && /* @__PURE__ */ i("div", { className: e("content", u), children: o }),
113
+ s && /* @__PURE__ */ i("div", { className: e("content", u), children: s }),
111
114
  l && /* @__PURE__ */ a(D, { children: [
112
115
  /* @__PURE__ */ i("div", { className: e("divider") }),
113
116
  /* @__PURE__ */ i("div", { className: e("footer"), children: l })
@@ -120,7 +123,7 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
120
123
  {
121
124
  className: e(
122
125
  "side-panel-overlay",
123
- { active: d },
126
+ { active: r },
124
127
  m && `overlay-${m}`,
125
128
  g
126
129
  ),
@@ -129,5 +132,5 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
129
132
  ) : f;
130
133
  };
131
134
  export {
132
- he as SidePanel
135
+ ze as SidePanel
133
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.224",
3
+ "version": "0.0.1-alpha.225",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {