@reportportal/ui-kit 0.0.1-alpha.192 → 0.0.1-alpha.194

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,16 +1,16 @@
1
- import { jsxs as x, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as x, jsx as a } from "react/jsx-runtime";
2
2
  import { c as f } from "./bind-06a7ff84.js";
3
3
  import { useRef as y, useId as C } from "react";
4
- import { K as p } from "./keyCodes-f63c0e11.js";
5
- const E = "_checkbox_6sak0_1", D = "_disabled_6sak0_12", K = "_input_6sak0_17", N = "_control_6sak0_24", I = "_children_6sak0_152", R = {
4
+ import { K as _ } from "./keyCodes-f63c0e11.js";
5
+ const E = "_checkbox_10pak_1", D = "_disabled_10pak_12", K = "_input_10pak_17", N = "_control_10pak_24", I = "_children_10pak_152", R = {
6
6
  checkbox: E,
7
7
  disabled: D,
8
8
  input: K,
9
9
  control: N,
10
- "partially-checked": "_partially-checked_6sak0_79",
10
+ "partially-checked": "_partially-checked_10pak_79",
11
11
  children: I
12
12
  }, e = f.bind(R), A = ({
13
- children: a,
13
+ children: s,
14
14
  disabled: c = !1,
15
15
  onChange: d,
16
16
  className: h,
@@ -19,14 +19,14 @@ const E = "_checkbox_6sak0_1", D = "_disabled_6sak0_12", K = "_input_6sak0_17",
19
19
  title: r,
20
20
  ...u
21
21
  }) => {
22
- const o = y(null), l = C(), m = (s) => {
23
- var k, _;
24
- const { keyCode: i } = s;
25
- if (i === p.SPACE_KEY_CODE) {
26
- s.preventDefault(), (k = o.current) == null || k.click();
22
+ const o = y(null), l = C(), m = (n) => {
23
+ var i, k;
24
+ const { keyCode: p } = n;
25
+ if (p === _.SPACE_KEY_CODE) {
26
+ n.preventDefault(), (i = o.current) == null || i.click();
27
27
  return;
28
28
  }
29
- i === p.ENTER_KEY_CODE && (s.preventDefault(), (_ = o.current) == null || _.click());
29
+ p === _.ENTER_KEY_CODE && (n.preventDefault(), (k = o.current) == null || k.click());
30
30
  };
31
31
  return /* @__PURE__ */ x(
32
32
  "label",
@@ -37,7 +37,7 @@ const E = "_checkbox_6sak0_1", D = "_disabled_6sak0_12", K = "_input_6sak0_17",
37
37
  }),
38
38
  title: r,
39
39
  children: [
40
- /* @__PURE__ */ n(
40
+ /* @__PURE__ */ a(
41
41
  "input",
42
42
  {
43
43
  ref: o,
@@ -52,7 +52,7 @@ const E = "_checkbox_6sak0_1", D = "_disabled_6sak0_12", K = "_input_6sak0_17",
52
52
  ...u
53
53
  }
54
54
  ),
55
- /* @__PURE__ */ n(
55
+ /* @__PURE__ */ a(
56
56
  "span",
57
57
  {
58
58
  "aria-labelledby": l,
@@ -63,7 +63,7 @@ const E = "_checkbox_6sak0_1", D = "_disabled_6sak0_12", K = "_input_6sak0_17",
63
63
  })
64
64
  }
65
65
  ),
66
- a && /* @__PURE__ */ n("span", { className: e("children", { disabled: c }), children: a })
66
+ s && /* @__PURE__ */ a("span", { className: e("children", { disabled: c }), children: s })
67
67
  ]
68
68
  }
69
69
  );
package/dist/checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "./checkbox-2b9f889c.js";
1
+ import { C as r } from "./checkbox-76aa8f97.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
@@ -3,8 +3,8 @@ interface UseCheckboxRowSyncProps {
3
3
  rowCount: number;
4
4
  }
5
5
  export declare const useCheckboxRowSync: ({ enabled, rowCount }: UseCheckboxRowSyncProps) => {
6
- setTableRowRef: (index: number) => (el: HTMLElement | null) => void;
7
- setCheckboxRowRef: (index: number) => (el: HTMLElement | null) => void;
6
+ setTableRowRef: (rowId: string | number) => (el: HTMLElement | null) => void;
7
+ setCheckboxRowRef: (rowId: string | number) => (el: HTMLElement | null) => void;
8
8
  syncAllHeights: () => void;
9
9
  };
10
10
  export {};
@@ -64,6 +64,7 @@ export interface TableComponentProps {
64
64
  isRowsExpandable?: boolean;
65
65
  expandedRowIds?: (string | number)[];
66
66
  isSelectAllCheckboxAlwaysVisible?: boolean;
67
+ disabledRowIds?: (string | number)[];
67
68
  setExpandedRowIds?: Dispatch<SetStateAction<Set<string | number>>>;
68
69
  isAllExpandedByDefault?: boolean;
69
70
  expandAllTooltip?: ReactNode;
@@ -76,6 +77,7 @@ export interface TableComponentProps {
76
77
  onToggleRowExpansion?: (id: string | number) => void;
77
78
  onToggleAllRowsExpansion?: () => void;
78
79
  onColumnResize?: (columnKey: string, width: number) => void;
80
+ getRowCheckboxTooltip?: (rowId: string | number) => ReactNode;
79
81
  externalScrollContainerRef?: RefObject<HTMLElement> | RefObject<Element> | null | undefined;
80
82
  portalContainer?: HTMLElement | null;
81
83
  rightGradientClassName?: string;
@@ -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-99d0749c.js";
6
+ import { D as x } from "./dropdown-aec82d1f.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-8453b46f.js";
2
- import { r as E } from "./datePicker-8453b46f.js";
1
+ import { D as t } from "./datePicker-954bd00b.js";
2
+ import { r as E } from "./datePicker-954bd00b.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-99d0749c.js";
14
+ import "./dropdown-aec82d1f.js";
15
15
  import "react-dom";
16
16
  import "@floating-ui/react-dom";
17
17
  import "downshift";
@@ -25,7 +25,7 @@ import "./isEmpty-ccacb5ff.js";
25
25
  import "react-dnd";
26
26
  import "react-dnd-html5-backend";
27
27
  import "./useEllipsisTitle-462fa254.js";
28
- import "./checkbox-2b9f889c.js";
28
+ import "./checkbox-76aa8f97.js";
29
29
  import "./calendarArrow-44c7e60e.js";
30
30
  import "react-datepicker";
31
31
  export {
@@ -1,12 +1,12 @@
1
1
  import { jsxs as k, jsx as u, Fragment as Pe } from "react/jsx-runtime";
2
- import { forwardRef as Er, useState as me, useRef as x, useMemo as w, useCallback as N, useLayoutEffect as Ye, useEffect as W } from "react";
2
+ import { forwardRef as Er, useState as me, useRef as x, useMemo as g, useCallback as v, useLayoutEffect as Ye, useEffect as W } from "react";
3
3
  import { createPortal as yr } from "react-dom";
4
4
  import { c as He } from "./bind-06a7ff84.js";
5
- import { useFloating as Cr, offset as Ar, flip as Or, size as vr, autoUpdate as Dr } from "@floating-ui/react-dom";
6
- import { useSelect as we } from "downshift";
7
- import { Scrollbars as br } from "rc-scrollbars";
5
+ import { useFloating as Cr, offset as Ar, flip as Or, size as br, autoUpdate as Dr } from "@floating-ui/react-dom";
6
+ import { useSelect as ge } from "downshift";
7
+ import { Scrollbars as Nr } from "rc-scrollbars";
8
8
  import { K as p } from "./keyCodes-f63c0e11.js";
9
- import { B as Nr } from "./baseIconButton-251479f7.js";
9
+ import { B as vr } from "./baseIconButton-251479f7.js";
10
10
  import { S as Ir } from "./clear-53660571.js";
11
11
  import { S as Kr } from "./dropdown-0260bb66.js";
12
12
  import { FieldLabel as Lr } from "./fieldLabel.js";
@@ -14,7 +14,7 @@ import { AdaptiveTagList as zr } from "./adaptiveTagList.js";
14
14
  import "react-dnd";
15
15
  import "react-dnd-html5-backend";
16
16
  import { u as Tr } from "./useEllipsisTitle-462fa254.js";
17
- import { C as xr } from "./checkbox-2b9f889c.js";
17
+ import { C as xr } from "./checkbox-76aa8f97.js";
18
18
  import { i as te } from "./isEmpty-ccacb5ff.js";
19
19
  const kr = (n) => {
20
20
  const r = {}, c = {};
@@ -25,16 +25,16 @@ const kr = (n) => {
25
25
  } else
26
26
  c[a] = h;
27
27
  }), { transformed: r, remaining: c };
28
- }, Rr = "_disabled_14s7v_12", Pr = "_hidden_14s7v_16", Yr = "_hover_14s7v_22", Vr = "_selected_14s7v_38", Sr = {
29
- "dropdown-option": "_dropdown-option_14s7v_1",
28
+ }, Rr = "_disabled_g6ob0_12", Pr = "_hidden_g6ob0_16", Yr = "_hover_g6ob0_25", Vr = "_selected_g6ob0_41", Sr = {
29
+ "dropdown-option": "_dropdown-option_g6ob0_1",
30
30
  disabled: Rr,
31
31
  hidden: Pr,
32
+ "multi-select": "_multi-select_g6ob0_19",
32
33
  hover: Yr,
33
- "depth-1": "_depth-1_14s7v_32",
34
+ "depth-1": "_depth-1_g6ob0_35",
34
35
  selected: Vr,
35
- "multi-select": "_multi-select_14s7v_38",
36
- "single-option": "_single-option_14s7v_43",
37
- "sub-option": "_sub-option_14s7v_50"
36
+ "single-option": "_single-option_g6ob0_46",
37
+ "sub-option": "_sub-option_g6ob0_53"
38
38
  }, Ve = He.bind(Sr), Se = Er(
39
39
  (n, r) => {
40
40
  const {
@@ -91,19 +91,19 @@ var Y = /* @__PURE__ */ ((n) => (n.ON_KEY_DOWN = "onKeyDown", n.ON_CLICK = "onCl
91
91
  const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
92
92
  const c = Array.isArray(r) ? r : [r];
93
93
  return n.findIndex(({ value: a }) => c.includes(a));
94
- }, Br = (n, r) => (n % r + r) % r, ge = (n, r = 0, c = 1) => {
94
+ }, Br = (n, r) => (n % r + r) % r, we = (n, r = 0, c = 1) => {
95
95
  var h;
96
96
  if (n.length === 0)
97
97
  return 0;
98
98
  if (!((h = n[r]) != null && h.disabled))
99
99
  return r;
100
100
  const a = n.length;
101
- return ge(
101
+ return we(
102
102
  n,
103
103
  Br(r + c, a),
104
104
  c
105
105
  );
106
- }, jr = (n, r) => ge(n, r), qr = (n, r) => ge(n, r, -1), $e = (n, r = 0, c) => !n || n.length === 0 ? [] : n.reduce((a, h) => {
106
+ }, jr = (n, r) => we(n, r), qr = (n, r) => we(n, r, -1), $e = (n, r = 0, c) => !n || n.length === 0 ? [] : n.reduce((a, h) => {
107
107
  var m;
108
108
  return h && (a.push({ option: h, depth: r, parent: c }), (m = h.children) != null && m.length && a.push(...$e(h.children, r + 1, h))), a;
109
109
  }, []), Me = (n) => !n || n.length === 0 ? [] : n.reduce((r, c) => {
@@ -137,7 +137,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
137
137
  "empty-list-message": "_empty-list-message_18w0z_172",
138
138
  ghost: at,
139
139
  divider: ot
140
- }, _ = He.bind(it), Nt = ({
140
+ }, _ = He.bind(it), vt = ({
141
141
  multiSelect: n = !1,
142
142
  value: r = n ? [] : "",
143
143
  options: c = [],
@@ -171,59 +171,59 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
171
171
  onClear: Ce = () => {
172
172
  },
173
173
  clearButtonAriaLabel: qe = "Clear selection",
174
- menuPortalRoot: g,
175
- isMultiSelectWithTags: v = !1,
174
+ menuPortalRoot: w,
175
+ isMultiSelectWithTags: b = !1,
176
176
  noMatchesMessage: Ze = "No matches found",
177
177
  ...Ge
178
178
  }) => {
179
- const { transformed: Xe, remaining: Je } = kr(Ge), [l, X] = me(!1), [I, Ae] = me(""), Oe = x(null), ve = x(null), H = x(null), le = x(0), ce = x(null), de = x(""), [Qe, J] = me(null), K = x(null), $ = w(() => $e(c), [c]), L = w(() => {
180
- if (!v || !I.trim())
179
+ const { transformed: Xe, remaining: Je } = kr(Ge), [l, X] = me(!1), [I, Ae] = me(""), Oe = x(null), be = x(null), H = x(null), le = x(0), ce = x(null), de = x(""), [Qe, J] = me(null), K = x(null), $ = g(() => $e(c), [c]), L = g(() => {
180
+ if (!b || !I.trim())
181
181
  return $;
182
182
  const e = I.toLowerCase();
183
183
  return $.filter(
184
184
  ({ option: t }) => t.label.toLowerCase().includes(e)
185
185
  );
186
- }, [$, I, v]), E = w(
186
+ }, [$, I, b]), E = g(
187
187
  () => L.map(({ option: e }) => e),
188
188
  [L]
189
- ), De = w(
189
+ ), De = g(
190
190
  () => $.map(({ option: e }) => e),
191
191
  [$]
192
- ), Q = w(() => L.filter(({ option: e }) => {
192
+ ), Q = g(() => L.filter(({ option: e }) => {
193
193
  var t;
194
194
  return (t = e.children) == null ? void 0 : t.length;
195
- }).map(({ option: e }) => e), [L]), be = w(() => Me(c), [c]), D = w(
196
- () => be.map(({ value: e }) => e),
197
- [be]
198
- ), ee = w(() => {
195
+ }).map(({ option: e }) => e), [L]), Ne = g(() => Me(c), [c]), D = g(
196
+ () => Ne.map(({ value: e }) => e),
197
+ [Ne]
198
+ ), ee = g(() => {
199
199
  const e = /* @__PURE__ */ new Map();
200
200
  return Q.forEach((t) => {
201
201
  e.set(t.value, We(t));
202
202
  }), e;
203
- }, [Q]), M = N(
203
+ }, [Q]), M = v(
204
204
  (e) => (Q.forEach((t) => {
205
205
  const s = ee.get(t.value) ?? [], i = s.length > 0 && s.every((d) => e.has(d));
206
206
  ye && i ? e.add(t.value) : e.delete(t.value);
207
207
  }), e),
208
208
  [Q, ye, ee]
209
- ), z = w(() => !n || !Array.isArray(r) ? /* @__PURE__ */ new Set() : M(new Set(r)), [n, r, M]), ue = n ? Array.isArray(r) && r.length > 0 : r || r === !1 || r === 0, er = je && ue && !a, rr = N((e) => {
209
+ ), z = g(() => !n || !Array.isArray(r) ? /* @__PURE__ */ new Set() : M(new Set(r)), [n, r, M]), ue = n ? Array.isArray(r) && r.length > 0 : r || r === !1 || r === 0, er = je && ue && !a, rr = v((e) => {
210
210
  le.current = e.scrollTop;
211
211
  }, []);
212
212
  Ye(() => {
213
213
  l && !S && H.current && !(n && K.current !== null) && H.current.scrollTop(le.current);
214
214
  }, [l, S, r, n]);
215
- const { refs: R, floatingStyles: Ne } = Cr({
215
+ const { refs: R, floatingStyles: ve } = Cr({
216
216
  placement: "bottom-start",
217
217
  middleware: [
218
218
  Ar(5),
219
219
  Or({
220
220
  fallbackPlacements: ["bottom-start", "top-start", "bottom", "top"],
221
- ...g && {
221
+ ...w && {
222
222
  boundary: document.documentElement,
223
223
  rootBoundary: "viewport"
224
224
  }
225
225
  }),
226
- g ? vr({
226
+ w ? br({
227
227
  apply({ rects: e, elements: t }) {
228
228
  const s = e.reference.width;
229
229
  Object.assign(t.floating.style, {
@@ -246,23 +246,23 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
246
246
  });
247
247
  const i = M(t);
248
248
  m(Array.from(i)), Be();
249
- }, re = N(() => {
249
+ }, re = v(() => {
250
250
  l || (X(!0), C == null || C());
251
- }, [l, C]), y = N(() => {
251
+ }, [l, C]), y = v(() => {
252
252
  X(!1), Ae(""), de.current = "", A == null || A();
253
- }, [A]), fe = N(() => {
253
+ }, [A]), fe = v(() => {
254
254
  if (a)
255
255
  return;
256
256
  m(n ? [] : ""), Ce(), y(), requestAnimationFrame(() => {
257
257
  const t = R.reference.current;
258
258
  t && t instanceof HTMLElement && t.focus();
259
259
  });
260
- }, [a, n, m, Ce, y, R]), nr = N(
260
+ }, [a, n, m, Ce, y, R]), nr = v(
261
261
  (e) => {
262
262
  e.preventDefault(), e.stopPropagation(), fe();
263
263
  },
264
264
  [fe]
265
- ), Ie = N(
265
+ ), Ie = v(
266
266
  (e) => {
267
267
  var d, o;
268
268
  if (!l)
@@ -270,7 +270,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
270
270
  const t = e == null ? void 0 : e.target;
271
271
  if (!t)
272
272
  return;
273
- const s = (d = Oe.current) == null ? void 0 : d.contains(t), i = (o = ve.current) == null ? void 0 : o.contains(t);
273
+ const s = (d = Oe.current) == null ? void 0 : d.contains(t), i = (o = be.current) == null ? void 0 : o.contains(t);
274
274
  !s && !i && y();
275
275
  },
276
276
  [l, y]
@@ -291,9 +291,9 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
291
291
  if (n) {
292
292
  const s = Array.isArray(r) ? r : [], i = new Set(s);
293
293
  if ((t = e.children) != null && t.length) {
294
- const o = ee.get(e.value) ?? [], f = o.some((b) => !i.has(b));
295
- o.forEach((b) => {
296
- f ? i.add(b) : i.delete(b);
294
+ const o = ee.get(e.value) ?? [], f = o.some((N) => !i.has(N));
295
+ o.forEach((N) => {
296
+ f ? i.add(N) : i.delete(N);
297
297
  });
298
298
  } else
299
299
  i.has(e.value) ? i.delete(e.value) : i.add(e.value);
@@ -310,7 +310,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
310
310
  getItemProps: ir,
311
311
  setHighlightedIndex: T,
312
312
  highlightedIndex: he
313
- } = we({
313
+ } = ge({
314
314
  items: E,
315
315
  itemToString: (e) => (e != null && e.label ? String(e.label) : O) || "",
316
316
  selectedItem: sr(),
@@ -319,20 +319,20 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
319
319
  defaultHighlightedIndex: Le,
320
320
  onHighlightedIndexChange: (e) => {
321
321
  switch (e.type) {
322
- case we.stateChangeTypes.MenuKeyDownArrowUp:
322
+ case ge.stateChangeTypes.MenuKeyDownArrowUp:
323
323
  return J(Y.ON_KEY_DOWN), T(qr(E, e.highlightedIndex)), e;
324
- case we.stateChangeTypes.MenuKeyDownArrowDown:
324
+ case ge.stateChangeTypes.MenuKeyDownArrowDown:
325
325
  return J(Y.ON_KEY_DOWN), T(jr(E, e.highlightedIndex)), e;
326
326
  default:
327
327
  return e;
328
328
  }
329
329
  }
330
- }), Te = N(
330
+ }), Te = v(
331
331
  (e) => {
332
- ve.current = e, R.setFloating(e);
332
+ be.current = e, R.setFloating(e);
333
333
  },
334
334
  [R]
335
- ), lr = N(
335
+ ), lr = v(
336
336
  (e = {}) => {
337
337
  const t = ze(e), s = t.ref;
338
338
  return {
@@ -349,14 +349,14 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
349
349
  H.current && !S && H.current.scrollTop(le.current);
350
350
  }));
351
351
  }, [n, l, r, E.length, T, S]), W(() => {
352
- l && v && requestAnimationFrame(() => {
352
+ l && b && requestAnimationFrame(() => {
353
353
  var e;
354
354
  (e = ce.current) == null || e.focus();
355
355
  });
356
- }, [l, v]), W(() => {
357
- v && l && I !== de.current && (de.current = I, I && T(0));
358
- }, [I, v, l]), Ye(() => {
359
- if (!l || !g)
356
+ }, [l, b]), W(() => {
357
+ b && l && I !== de.current && (de.current = I, I && T(0));
358
+ }, [I, b, l]), Ye(() => {
359
+ if (!l || !w)
360
360
  return;
361
361
  let e = window.scrollY, t = !0;
362
362
  const s = 300, i = () => {
@@ -375,8 +375,8 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
375
375
  return () => {
376
376
  clearTimeout(o), window.removeEventListener("scroll", d, { capture: !0 });
377
377
  };
378
- }, [l, g]), W(() => {
379
- if (!l || !g)
378
+ }, [l, w]), W(() => {
379
+ if (!l || !w)
380
380
  return;
381
381
  const e = () => {
382
382
  y();
@@ -384,10 +384,10 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
384
384
  return window.addEventListener("resize", e), () => {
385
385
  window.removeEventListener("resize", e);
386
386
  };
387
- }, [l, g, y]);
387
+ }, [l, w, y]);
388
388
  const xe = () => {
389
389
  a || (X((e) => !e), l ? A == null || A() : C == null || C(), J(Y.ON_CLICK));
390
- }, _e = w(() => {
390
+ }, _e = g(() => {
391
391
  if (n && Array.isArray(r) && D.length > 0 && D.every((t) => z.has(t)))
392
392
  return oe.label;
393
393
  const e = E.reduce((t, s) => ((Array.isArray(r) && r.includes(s.value) || s.value === r) && t.push(s.label), t), []);
@@ -400,7 +400,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
400
400
  oe.label,
401
401
  E,
402
402
  O
403
- ]), pe = w(() => ie ? ie(_e) : _e, [ie, _e]), cr = ue && pe ? pe : void 0, { ref: dr, title: ur } = Tr(cr), fr = (e) => {
403
+ ]), pe = g(() => ie ? ie(_e) : _e, [ie, _e]), cr = ue && pe ? pe : void 0, { ref: dr, title: ur } = Tr(cr), fr = (e) => {
404
404
  const { keyCode: t } = e;
405
405
  Hr.includes(t) && e.target === e.currentTarget && (e.preventDefault(), e.stopPropagation(), !l && (T(Le), re(), J(Y.ON_KEY_DOWN)));
406
406
  }, hr = (e) => {
@@ -429,7 +429,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
429
429
  " "
430
430
  ] }),
431
431
  te(L) ? /* @__PURE__ */ u("div", { className: _("empty-list-message"), children: Ze }) : L.map(({ option: e, depth: t }, s) => {
432
- var f, b;
432
+ var f, N;
433
433
  const i = ee.get(e.value) ?? [e.value], d = n && i.every((P) => z.has(P)), o = n && ((f = e.children) == null ? void 0 : f.length) && i.some((P) => z.has(P)) && !d;
434
434
  return /* @__PURE__ */ u(
435
435
  Se,
@@ -446,7 +446,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
446
446
  onChange: e.disabled ? null : () => Ke(e),
447
447
  onMouseEnter: () => T(s),
448
448
  depth: t,
449
- hasChildren: !!((b = e.children) != null && b.length),
449
+ hasChildren: !!((N = e.children) != null && N.length),
450
450
  isPartiallyChecked: o
451
451
  },
452
452
  e.value
@@ -459,14 +459,14 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
459
459
  ] }), _r = () => {
460
460
  const e = De.reduce((o, f) => (Array.isArray(r) && r.includes(f.value) && o.push(f.label), o), []), t = (o) => {
461
461
  const f = De.find(
462
- ({ label: gr }) => gr === o
462
+ ({ label: wr }) => wr === o
463
463
  );
464
464
  if (!f)
465
465
  return;
466
- const b = Array.isArray(r) ? r : [], P = new Set(b);
466
+ const N = Array.isArray(r) ? r : [], P = new Set(N);
467
467
  P.delete(f.value);
468
- const wr = M(P);
469
- m(Array.from(wr));
468
+ const gr = M(P);
469
+ m(Array.from(gr));
470
470
  }, s = (o) => {
471
471
  const f = o.target;
472
472
  Ae(f.value), l || (re(), requestAnimationFrame(() => {
@@ -506,7 +506,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
506
506
  ),
507
507
  d
508
508
  ] });
509
- }, pr = () => v && n && Array.isArray(r) ? _r() : /* @__PURE__ */ u(
509
+ }, pr = () => b && n && Array.isArray(r) ? _r() : /* @__PURE__ */ u(
510
510
  "span",
511
511
  {
512
512
  ref: dr,
@@ -524,7 +524,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
524
524
  error: h,
525
525
  touched: U,
526
526
  "mobile-disabled": F,
527
- "multi-select-with-tags": v
527
+ "multi-select-with-tags": b
528
528
  }),
529
529
  onClick: xe,
530
530
  onKeyDown: fr,
@@ -559,7 +559,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
559
559
  B && /* @__PURE__ */ u("span", { className: _("icon"), children: B }),
560
560
  /* @__PURE__ */ u("div", { className: _("value-wrapper"), children: pr() }),
561
561
  er && /* @__PURE__ */ u(
562
- Nr,
562
+ vr,
563
563
  {
564
564
  className: _("clear-button"),
565
565
  onClick: nr,
@@ -577,12 +577,12 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
577
577
  ),
578
578
  l && (() => {
579
579
  var i;
580
- const e = (i = R.reference.current) == null ? void 0 : i.getBoundingClientRect().width, t = g && e ? {
581
- ...Ne,
580
+ const e = (i = R.reference.current) == null ? void 0 : i.getBoundingClientRect().width, t = w && e ? {
581
+ ...ve,
582
582
  width: `${e}px`,
583
583
  minWidth: `${e}px`,
584
584
  maxWidth: `${e}px`
585
- } : Ne, s = /* @__PURE__ */ u(
585
+ } : ve, s = /* @__PURE__ */ u(
586
586
  "div",
587
587
  {
588
588
  style: t,
@@ -594,10 +594,10 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
594
594
  },
595
595
  Fe
596
596
  ),
597
- ...g && { [Wr]: "" },
597
+ ...w && { [Wr]: "" },
598
598
  ...lr({
599
599
  onKeyDown: hr,
600
- ...v && {
600
+ ...b && {
601
601
  tabIndex: -1,
602
602
  onFocus: (d) => {
603
603
  var o;
@@ -606,7 +606,7 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
606
606
  }
607
607
  }),
608
608
  children: S ? ke() : /* @__PURE__ */ u(
609
- br,
609
+ Nr,
610
610
  {
611
611
  autoHeight: !0,
612
612
  autoHeightMax: Mr,
@@ -620,13 +620,13 @@ const Mr = 240, Wr = "data-dropdown-portal-menu", Fr = 10, Ur = (n, r) => {
620
620
  )
621
621
  }
622
622
  );
623
- return g ? yr(s, g) : s;
623
+ return w ? yr(s, w) : s;
624
624
  })()
625
625
  ]
626
626
  }
627
627
  );
628
628
  };
629
629
  export {
630
- Nt as D,
630
+ vt as D,
631
631
  Wr as a
632
632
  };
package/dist/dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as r } from "./dropdown-99d0749c.js";
2
- import { a as E } from "./dropdown-99d0749c.js";
1
+ import { D as r } from "./dropdown-aec82d1f.js";
2
+ import { a as E } from "./dropdown-aec82d1f.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-dom";
@@ -19,7 +19,7 @@ import "./isEmpty-ccacb5ff.js";
19
19
  import "react-dnd";
20
20
  import "react-dnd-html5-backend";
21
21
  import "./useEllipsisTitle-462fa254.js";
22
- import "./checkbox-2b9f889c.js";
22
+ import "./checkbox-76aa8f97.js";
23
23
  export {
24
24
  E as DROPDOWN_PORTAL_MENU_ATTR,
25
25
  r as Dropdown,
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@ 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";
10
- import { C as W } from "./checkbox-2b9f889c.js";
10
+ import { C as W } from "./checkbox-76aa8f97.js";
11
11
  import { Chip as j } from "./chip.js";
12
- import { D as K } from "./datePicker-8453b46f.js";
12
+ import { D as K } from "./datePicker-954bd00b.js";
13
13
  import "react-datepicker";
14
- import { D as Y } from "./dropdown-99d0749c.js";
14
+ import { D as Y } from "./dropdown-aec82d1f.js";
15
15
  import { FieldLabel as $ } from "./fieldLabel.js";
16
16
  import { F as ro } from "./fieldNumber-d1b5a7a1.js";
17
17
  import { F as to } from "./fieldText-1749da7a.js";
@@ -31,7 +31,7 @@ import { S as Lo } from "./spinLoader-c4a53718.js";
31
31
  import { SystemAlert as Eo } from "./systemAlert.js";
32
32
  import { S as ko } from "./systemMessage-924fdaa6.js";
33
33
  import { DragLayer as No, SortableItem as Uo, SortableList as zo, TreeSortableContainer as Ho, TreeSortableItem as Jo } from "./sortable.js";
34
- import { T as _o } from "./table-701a71d1.js";
34
+ import { T as _o } from "./table-0ec68481.js";
35
35
  import { T as Wo } from "./themeProvider-46c2be7b.js";
36
36
  import { T as jo } from "./toggle-304107fa.js";
37
37
  import { Tooltip as Ko } from "./tooltip.js";
package/dist/modal.js CHANGED
@@ -7,7 +7,7 @@ import { u as q } from "./useOnClickOutside-8f7d68a1.js";
7
7
  import "react-dnd";
8
8
  import "react-dnd-html5-backend";
9
9
  import { u as J } from "./useWindowResize-a7e1ac92.js";
10
- import { a as Q } from "./dropdown-99d0749c.js";
10
+ import { a as Q } from "./dropdown-aec82d1f.js";
11
11
  import { K as V } from "./keyCodes-f63c0e11.js";
12
12
  import { B as C } from "./button-7ab874f3.js";
13
13
  import { Tooltip as Z } from "./tooltip.js";
@@ -22,7 +22,7 @@ import "./fieldLabel.js";
22
22
  import "./adaptiveTagList.js";
23
23
  import "./isEmpty-ccacb5ff.js";
24
24
  import "./useEllipsisTitle-462fa254.js";
25
- import "./checkbox-2b9f889c.js";
25
+ import "./checkbox-76aa8f97.js";
26
26
  import "@floating-ui/react";
27
27
  import "./floatingUi-41f8c7b5.js";
28
28
  const oe = {
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-99d0749c.js";
8
+ import { a as O } from "./dropdown-aec82d1f.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";
@@ -19,7 +19,7 @@ import "./adaptiveTagList.js";
19
19
  import "./button-7ab874f3.js";
20
20
  import "./isEmpty-ccacb5ff.js";
21
21
  import "./useEllipsisTitle-462fa254.js";
22
- import "./checkbox-2b9f889c.js";
22
+ import "./checkbox-76aa8f97.js";
23
23
  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
24
  "side-panel-overlay": "_side-panel-overlay_5ebdz_1",
25
25
  active: w,