@reportportal/ui-kit 0.0.1-alpha.145 → 0.0.1-alpha.147

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,66 +1,67 @@
1
- import { jsx as o, jsxs as S } from "react/jsx-runtime";
2
- import { useMemo as se, useState as T, useCallback as w, useEffect as re, useRef as oe, forwardRef as Pe } from "react";
1
+ import { jsx as o, jsxs as z } from "react/jsx-runtime";
2
+ import { useMemo as se, useState as m, useCallback as w, useEffect as re, useRef as oe, forwardRef as Pe } from "react";
3
3
  import { Resizable as De } from "react-resizable";
4
4
  import { c as ce } from "./bind-06a7ff84.js";
5
5
  import { c as We, b as ee, a as le, S as Oe } from "./resizeColumn-d4107941.js";
6
6
  import { C as te } from "./checkbox-ed6cc375.js";
7
7
  import { Tooltip as Ue } from "./tooltip.js";
8
- const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_aipph_46", Be = "_selectable_aipph_60", Ge = "_expanded_aipph_56", Xe = "_label_aipph_300", Ye = {
8
+ const j = (l) => typeof l == "string", je = "_table_1244e_1", He = "_resizable_1244e_46", Be = "_selectable_1244e_63", Ge = "_expanded_1244e_59", Xe = "_label_1244e_303", Ye = {
9
9
  table: je,
10
- "fixed-header": "_fixed-header_aipph_8",
11
- "horizontally-scrollable-container": "_horizontally-scrollable-container_aipph_14",
12
- "table-header": "_table-header_aipph_19",
13
- "sticky-header": "_sticky-header_aipph_26",
14
- "horizontally-scrollable": "_horizontally-scrollable_aipph_14",
10
+ "fixed-header": "_fixed-header_1244e_8",
11
+ "horizontally-scrollable-container": "_horizontally-scrollable-container_1244e_14",
12
+ "table-header": "_table-header_1244e_19",
13
+ "sticky-header": "_sticky-header_1244e_26",
14
+ "horizontally-scrollable": "_horizontally-scrollable_1244e_14",
15
15
  resizable: He,
16
- "table-row": "_table-row_aipph_51",
17
- "expanded-cell": "_expanded-cell_aipph_56",
16
+ "resizable-column": "_resizable-column_1244e_46",
17
+ "table-row": "_table-row_1244e_54",
18
+ "expanded-cell": "_expanded-cell_1244e_59",
18
19
  selectable: Be,
19
- "row-content-wrapper": "_row-content-wrapper_aipph_64",
20
- "table-row-content": "_table-row-content_aipph_72",
21
- "expand-cell": "_expand-cell_aipph_86",
22
- "size-small": "_size-small_aipph_89",
23
- "size-large": "_size-large_aipph_100",
24
- "table-body": "_table-body_aipph_112",
25
- "scrollable-body": "_scrollable-body_aipph_118",
26
- "table-header-cell": "_table-header-cell_aipph_178",
27
- "table-cell": "_table-cell_aipph_179",
28
- "action-menu-cell": "_action-menu-cell_aipph_185",
29
- "checkbox-cell": "_checkbox-cell_aipph_210",
30
- "expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_aipph_252",
31
- "expand-all-tooltip-content": "_expand-all-tooltip-content_aipph_261",
32
- "expand-icon": "_expand-icon_aipph_270",
20
+ "row-content-wrapper": "_row-content-wrapper_1244e_67",
21
+ "table-row-content": "_table-row-content_1244e_75",
22
+ "expand-cell": "_expand-cell_1244e_89",
23
+ "size-small": "_size-small_1244e_92",
24
+ "size-large": "_size-large_1244e_103",
25
+ "table-body": "_table-body_1244e_115",
26
+ "scrollable-body": "_scrollable-body_1244e_121",
27
+ "table-header-cell": "_table-header-cell_1244e_181",
28
+ "table-cell": "_table-cell_1244e_182",
29
+ "action-menu-cell": "_action-menu-cell_1244e_188",
30
+ "checkbox-cell": "_checkbox-cell_1244e_213",
31
+ "expand-all-tooltip-wrapper": "_expand-all-tooltip-wrapper_1244e_255",
32
+ "expand-all-tooltip-content": "_expand-all-tooltip-content_1244e_264",
33
+ "expand-icon": "_expand-icon_1244e_273",
33
34
  expanded: Ge,
34
- "primary-cell": "_primary-cell_aipph_279",
35
+ "primary-cell": "_primary-cell_1244e_282",
35
36
  label: Xe,
36
- "sortable-cell": "_sortable-cell_aipph_314",
37
- "align-right": "_align-right_aipph_317",
38
- "align-center": "_align-center_aipph_323",
39
- "pinned-column": "_pinned-column_aipph_326"
40
- }, ie = "asc", z = 32, he = 100, qe = 48, Je = (l) => l.toLowerCase() === ie, Qe = (l) => l.map((a) => a.key), N = (l) => "primary" in l && l.primary === !0, Ve = (l) => {
37
+ "sortable-cell": "_sortable-cell_1244e_317",
38
+ "align-right": "_align-right_1244e_320",
39
+ "align-center": "_align-center_1244e_326",
40
+ "pinned-column": "_pinned-column_1244e_329"
41
+ }, ie = "asc", S = 32, de = 100, qe = 48, Je = (l) => l.toLowerCase() === ie, Qe = (l) => l.map((n) => n.key), N = (l) => "primary" in l && l.primary === !0, Ve = (l) => {
41
42
  var r;
42
43
  return `size-${((r = l.rowConfigs) == null ? void 0 : r.size) ?? "default"}`;
43
- }, Ze = (l, a, r, c, i) => {
44
+ }, Ze = (l, n, r, c, i) => {
44
45
  let s = 0;
45
- c && (s += z), i && (s += z);
46
+ c && (s += S), i && (s += S);
46
47
  for (let _ = 0; _ < l; _++) {
47
- const p = a[_];
48
+ const p = n[_];
48
49
  if (N(p)) {
49
- const t = r.current.get(p.key) || he;
50
+ const t = r.current.get(p.key) || de;
50
51
  s += t;
51
52
  } else {
52
- const t = p, h = j(t.width) ? parseInt(t.width, 10) || 0 : t.width;
53
- s += h;
53
+ const t = p, d = j(t.width) ? parseInt(t.width, 10) || 0 : t.width;
54
+ s += d;
54
55
  }
55
56
  }
56
57
  return s;
57
- }, D = (l, a, r, c, i, s, _) => {
58
+ }, D = (l, n, r, c, i, s, _) => {
58
59
  const p = {};
59
60
  if (!N(l)) {
60
61
  const t = l;
61
62
  p.textAlign = t.align;
62
63
  }
63
- if (a && r !== void 0) {
64
+ if (n && r !== void 0) {
64
65
  const t = Ze(
65
66
  r,
66
67
  c,
@@ -71,43 +72,43 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
71
72
  p.left = `${t}px`;
72
73
  }
73
74
  return p;
74
- }, ae = (l, a, r, c, i, s = !1, _) => {
75
+ }, ne = (l, n, r, c, i, s = !1, _) => {
75
76
  const p = [];
76
- r && p.push(`${z}px`), s && c && p.push(`${z}px`);
77
- const t = (h) => {
78
- if ((_ == null ? void 0 : _[h.key]) !== void 0) {
79
- p.push(`${_[h.key]}px`);
77
+ r && p.push(`${S}px`), s && c && p.push(`${S}px`);
78
+ const t = (d) => {
79
+ if ((_ == null ? void 0 : _[d.key]) !== void 0) {
80
+ p.push(`${_[d.key]}px`);
80
81
  return;
81
82
  }
82
- if (N(h)) {
83
- const n = h, f = n.width ? j(n.width) ? n.width : `${n.width}px` : `${he}px`;
83
+ if (N(d)) {
84
+ const a = d, f = a.width ? j(a.width) ? a.width : `${a.width}px` : `${de}px`;
84
85
  p.push(`minmax(${f}, 1fr)`);
85
86
  } else {
86
- const n = h, f = j(n.width) ? n.width : `${n.width}px`;
87
+ const a = d, f = j(a.width) ? a.width : `${a.width}px`;
87
88
  p.push(f);
88
89
  }
89
90
  };
90
- return l.forEach(t), a.forEach(t), i && p.push(`${qe}px`), p.join(" ");
91
+ return l.forEach(t), n.forEach(t), i && p.push(`${qe}px`), p.join(" ");
91
92
  }, Ke = ({
92
93
  primaryColumns: l,
93
- fixedColumns: a,
94
+ fixedColumns: n,
94
95
  pinnedColumnKeys: r
95
96
  }) => se(() => {
96
97
  const c = [], i = [];
97
98
  return l.forEach((s) => {
98
99
  const _ = { ...s, primary: !0 };
99
100
  r.includes(s.key) ? c.push(_) : i.push(_);
100
- }), a.forEach((s) => {
101
+ }), n.forEach((s) => {
101
102
  r.includes(s.key) ? c.push(s) : i.push(s);
102
103
  }), {
103
104
  pinnedColumns: c,
104
105
  scrollableColumns: i
105
106
  };
106
- }, [l, a, r]), Fe = () => {
107
- const [l, a] = T(null), [r, c] = T(null), i = w((t) => {
108
- a(t);
107
+ }, [l, n, r]), Fe = () => {
108
+ const [l, n] = m(null), [r, c] = m(null), i = w((t) => {
109
+ n(t);
109
110
  }, []), s = w(() => {
110
- a(null);
111
+ n(null);
111
112
  }, []), _ = w((t) => {
112
113
  c(t);
113
114
  }, []), p = w(() => {
@@ -123,50 +124,50 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
123
124
  };
124
125
  }, Re = ({
125
126
  primaryColumns: l,
126
- fixedColumns: a,
127
+ fixedColumns: n,
127
128
  expandedRowIds: r,
128
129
  onToggleRowExpansion: c
129
130
  }) => {
130
- const [i, s] = T(/* @__PURE__ */ new Set());
131
+ const [i, s] = m(/* @__PURE__ */ new Set());
131
132
  re(() => {
132
133
  const t = [
133
- ...l.map((n) => n.key),
134
- ...a.map((n) => n.key)
135
- ], h = /* @__PURE__ */ new Set();
136
- r.forEach((n) => {
134
+ ...l.map((a) => a.key),
135
+ ...n.map((a) => a.key)
136
+ ], d = /* @__PURE__ */ new Set();
137
+ r.forEach((a) => {
137
138
  t.forEach((f) => {
138
- h.add(`${n}-${f}`);
139
+ d.add(`${a}-${f}`);
139
140
  });
140
- }), s((n) => {
141
- if (n.size === h.size) {
141
+ }), s((a) => {
142
+ if (a.size === d.size) {
142
143
  let f = !0;
143
- if (n.forEach((b) => {
144
- h.has(b) || (f = !1);
144
+ if (a.forEach((b) => {
145
+ d.has(b) || (f = !1);
145
146
  }), f)
146
- return n;
147
+ return a;
147
148
  }
148
- return h;
149
+ return d;
149
150
  });
150
- }, [r, l, a]);
151
+ }, [r, l, n]);
151
152
  const _ = w(
152
153
  (t) => {
153
- const h = new Set(i), n = r.includes(t), f = [
154
+ const d = new Set(i), a = r.includes(t), f = [
154
155
  ...l.map((b) => b.key),
155
- ...a.map((b) => b.key)
156
+ ...n.map((b) => b.key)
156
157
  ];
157
- n ? f.forEach((b) => {
158
+ a ? f.forEach((b) => {
158
159
  const u = `${t}-${b}`;
159
- h.delete(u);
160
+ d.delete(u);
160
161
  }) : f.forEach((b) => {
161
162
  const u = `${t}-${b}`;
162
- h.add(u);
163
- }), s(h), c(t);
163
+ d.add(u);
164
+ }), s(d), c(t);
164
165
  },
165
- [i, r, l, a, c]
166
+ [i, r, l, n, c]
166
167
  ), p = w(
167
- (t, h) => {
168
- const n = `${t}-${h}`;
169
- return i.has(n);
168
+ (t, d) => {
169
+ const a = `${t}-${d}`;
170
+ return i.has(a);
170
171
  },
171
172
  [i]
172
173
  );
@@ -176,7 +177,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
176
177
  isCellExpanded: p
177
178
  };
178
179
  }, Ie = () => {
179
- const l = oe(/* @__PURE__ */ new Map()), a = w(
180
+ const l = oe(/* @__PURE__ */ new Map()), n = w(
180
181
  (r) => (c) => {
181
182
  if (!c)
182
183
  return;
@@ -187,57 +188,57 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
187
188
  );
188
189
  return {
189
190
  columnWidthsRef: l,
190
- setCellRef: a
191
+ setCellRef: n
191
192
  };
192
193
  }, el = ({
193
194
  enabled: l = !1,
194
- minWidth: a = 50,
195
+ minWidth: n = 50,
195
196
  maxWidth: r = 500,
196
197
  columnWidthsRef: c,
197
198
  onColumnResize: i
198
199
  }) => {
199
- const [s, _] = T({}), p = w(() => {
200
+ const [s, _] = m({}), p = w(() => {
200
201
  if (!l || Object.keys(s).length > 0 || !c)
201
202
  return;
202
- const n = {};
203
+ const a = {};
203
204
  c.current.forEach((f, b) => {
204
- n[b] = f;
205
- }), _(n);
205
+ a[b] = f;
206
+ }), _(a);
206
207
  }, [l, s, c]), t = w(
207
- (n) => (f, { size: b }) => {
208
+ (a) => (f, { size: b }) => {
208
209
  if (!l)
209
210
  return;
210
- const u = Math.min(r, Math.max(a, b.width));
211
- _((E) => ({ ...E, [n]: u }));
211
+ const u = Math.min(r, Math.max(n, b.width));
212
+ _((E) => ({ ...E, [a]: u }));
212
213
  },
213
- [l, a, r]
214
- ), h = w(
215
- (n) => () => {
216
- !l || !s[n] || i == null || i(n, s[n]);
214
+ [l, n, r]
215
+ ), d = w(
216
+ (a) => () => {
217
+ !l || !s[a] || i == null || i(a, s[a]);
217
218
  },
218
219
  [l, s, i]
219
220
  );
220
221
  return {
221
222
  columnWidths: s,
222
223
  handleResize: t,
223
- handleResizeStop: h,
224
+ handleResizeStop: d,
224
225
  handleResizeStart: p
225
226
  };
226
227
  }, ll = {
227
228
  "resize-handle": "_resize-handle_15uk3_1"
228
- }, tl = ce.bind(ll), al = Pe(
229
- (l, a) => /* @__PURE__ */ o("div", { ref: a, className: tl("resize-handle"), ...l, children: /* @__PURE__ */ o(We, {}) })
230
- ), d = ce.bind(Ye), ne = ({ column: l }) => {
231
- const a = oe(null), [r, c] = T(!1);
229
+ }, tl = ce.bind(ll), nl = Pe(
230
+ (l, n) => /* @__PURE__ */ o("div", { ref: n, className: tl("resize-handle"), ...l, children: /* @__PURE__ */ o(We, {}) })
231
+ ), h = ce.bind(Ye), ae = ({ column: l }) => {
232
+ const n = oe(null), [r, c] = m(!1);
232
233
  return re(() => {
233
- if (a.current) {
234
- const i = a.current.offsetWidth, s = a.current.scrollWidth;
234
+ if (n.current) {
235
+ const i = n.current.offsetWidth, s = n.current.scrollWidth;
235
236
  c(s > i);
236
237
  }
237
- }, [l.header]), /* @__PURE__ */ o("span", { ref: a, title: r ? l.header : void 0, children: l.header });
238
- }, dl = ({
238
+ }, [l.header]), /* @__PURE__ */ o("span", { ref: n, title: r ? l.header : void 0, children: l.header });
239
+ }, hl = ({
239
240
  data: l,
240
- primaryColumn: a,
241
+ primaryColumn: n,
241
242
  fixedColumns: r,
242
243
  renderRowActions: c,
243
244
  className: i = "",
@@ -245,13 +246,13 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
245
246
  headerClassName: _ = "",
246
247
  bodyClassName: p = "",
247
248
  selectable: t = !1,
248
- selectedRowIds: h = [],
249
- sortingDirection: n = ie,
249
+ selectedRowIds: d = [],
250
+ sortingDirection: a = ie,
250
251
  sortingColumn: f,
251
252
  sortableColumns: b,
252
253
  isHeaderFixed: u = !1,
253
254
  isHorizontallyScrollable: E = !1,
254
- pinnedColumnKeys: de = [],
255
+ pinnedColumnKeys: he = [],
255
256
  isRowsExpandable: k = !1,
256
257
  expandedRowIds: $ = [],
257
258
  isAllExpandedByDefault: H,
@@ -272,13 +273,13 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
272
273
  onColumnResize: ue = () => {
273
274
  }
274
275
  }) => {
275
- const m = se(
276
- () => Array.isArray(a) ? a : [a],
277
- [a]
278
- ), x = f ?? m[0], A = b ?? Qe([...m, ...r]), { pinnedColumns: g, scrollableColumns: L } = Ke({
279
- primaryColumns: m,
276
+ const T = se(
277
+ () => Array.isArray(n) ? n : [n],
278
+ [n]
279
+ ), x = f ?? T[0], A = b ?? Qe([...T, ...r]), { pinnedColumns: g, scrollableColumns: L } = Ke({
280
+ primaryColumns: T,
280
281
  fixedColumns: r,
281
- pinnedColumnKeys: de
282
+ pinnedColumnKeys: he
282
283
  }), {
283
284
  hoveredColumn: X,
284
285
  hoveredRow: ke,
@@ -287,7 +288,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
287
288
  handleRowMouseEnter: ve,
288
289
  handleRowMouseLeave: we
289
290
  } = Fe(), { columnWidthsRef: M, setCellRef: J } = Ie(), { handleToggleRowExpansion: xe, isCellExpanded: Q } = Re({
290
- primaryColumns: m,
291
+ primaryColumns: T,
291
292
  fixedColumns: r,
292
293
  expandedRowIds: $,
293
294
  onToggleRowExpansion: fe
@@ -303,24 +304,25 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
303
304
  width: O[e.key] ?? (typeof e.width == "number" ? e.width : W),
304
305
  height: 0,
305
306
  axis: "x",
306
- handle: /* @__PURE__ */ o(al, {}),
307
+ handle: /* @__PURE__ */ o(nl, {}),
307
308
  onResizeStart: Ne,
308
309
  onResize: Ce(e.key),
309
310
  onResizeStop: ge(e.key),
310
311
  minConstraints: [W, 0],
311
312
  maxConstraints: [G, 0],
313
+ className: h("resizable-column"),
312
314
  children: C
313
315
  },
314
316
  e.key
315
317
  ), Z = (e) => {
316
- A.includes(e) && pe({ key: e, direction: n });
317
- }, Se = (e) => {
318
+ A.includes(e) && pe({ key: e, direction: a });
319
+ }, ze = (e) => {
318
320
  _e(e);
319
- }, ze = () => {
321
+ }, Se = () => {
320
322
  ye();
321
323
  }, Ee = () => {
322
324
  be();
323
- }, K = (e) => A.includes(e) ? (x == null ? void 0 : x.key) === e ? Je(n) ? /* @__PURE__ */ o(le, {}) : /* @__PURE__ */ o(Oe, {}) : /* @__PURE__ */ o(le, {}) : null, $e = l.every((e) => h.includes(e.id)), Me = l.some((e) => h.includes(e.id)), F = (h == null ? void 0 : h.length) > 0, Te = l.every((e) => $.includes(e.id)), me = H !== void 0 ? H : Te, Ae = ae(
325
+ }, K = (e) => A.includes(e) ? (x == null ? void 0 : x.key) === e ? Je(a) ? /* @__PURE__ */ o(le, {}) : /* @__PURE__ */ o(Oe, {}) : /* @__PURE__ */ o(le, {}) : null, $e = l.every((e) => d.includes(e.id)), Me = l.some((e) => d.includes(e.id)), F = (d == null ? void 0 : d.length) > 0, me = l.every((e) => $.includes(e.id)), Te = H !== void 0 ? H : me, Ae = ne(
324
326
  g,
325
327
  L,
326
328
  k,
@@ -328,7 +330,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
328
330
  !!c,
329
331
  !1,
330
332
  v ? O : void 0
331
- ), Le = ae(
333
+ ), Le = ne(
332
334
  g,
333
335
  L,
334
336
  k,
@@ -336,11 +338,11 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
336
338
  !!c,
337
339
  !0,
338
340
  v ? O : void 0
339
- ), R = /* @__PURE__ */ o("button", { onClick: Ee, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ o("span", { className: d("expand-icon", { expanded: me }), children: /* @__PURE__ */ o(ee, {}) }) });
340
- return /* @__PURE__ */ S(
341
+ ), R = /* @__PURE__ */ o("button", { onClick: Ee, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ o("span", { className: h("expand-icon", { expanded: Te }), children: /* @__PURE__ */ o(ee, {}) }) });
342
+ return /* @__PURE__ */ z(
341
343
  "div",
342
344
  {
343
- className: d(
345
+ className: h(
344
346
  "table",
345
347
  {
346
348
  "fixed-header": u,
@@ -349,10 +351,10 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
349
351
  i
350
352
  ),
351
353
  children: [
352
- /* @__PURE__ */ S(
354
+ /* @__PURE__ */ z(
353
355
  "div",
354
356
  {
355
- className: d(
357
+ className: h(
356
358
  "table-header",
357
359
  {
358
360
  "sticky-header": u,
@@ -366,26 +368,26 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
366
368
  t && /* @__PURE__ */ o(
367
369
  "div",
368
370
  {
369
- className: d("table-header-cell", "checkbox-cell"),
370
- style: { left: k ? `${z}px` : "0" },
371
+ className: h("table-header-cell", "checkbox-cell"),
372
+ style: { left: k ? `${S}px` : "0" },
371
373
  children: F && /* @__PURE__ */ o(
372
374
  te,
373
375
  {
374
376
  value: $e,
375
377
  partiallyChecked: Me,
376
- onChange: ze,
377
- className: d("checkbox-cell")
378
+ onChange: Se,
379
+ className: h("checkbox-cell")
378
380
  }
379
381
  )
380
382
  }
381
383
  ),
382
- k && /* @__PURE__ */ o("div", { className: d("table-header-cell", "expand-cell"), style: { left: "0" }, children: B ? /* @__PURE__ */ o(
384
+ k && /* @__PURE__ */ o("div", { className: h("table-header-cell", "expand-cell"), style: { left: "0" }, children: B ? /* @__PURE__ */ o(
383
385
  Ue,
384
386
  {
385
387
  content: B,
386
388
  placement: "top",
387
- wrapperClassName: d("expand-all-tooltip-wrapper"),
388
- contentClassName: d("expand-all-tooltip-content"),
389
+ wrapperClassName: h("expand-all-tooltip-wrapper"),
390
+ contentClassName: h("expand-all-tooltip-content"),
389
391
  children: R
390
392
  }
391
393
  ) : R }),
@@ -393,7 +395,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
393
395
  const y = /* @__PURE__ */ o(
394
396
  "button",
395
397
  {
396
- className: d("table-header-cell", "pinned-column", {
398
+ className: h("table-header-cell", "pinned-column", {
397
399
  [`align-${e.align}`]: "align" in e,
398
400
  "primary-cell": N(e),
399
401
  "sortable-cell": A.includes(e.key),
@@ -408,15 +410,15 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
408
410
  k,
409
411
  t
410
412
  ),
411
- children: /* @__PURE__ */ S(
413
+ children: /* @__PURE__ */ z(
412
414
  "div",
413
415
  {
414
- className: d("label"),
416
+ className: h("label"),
415
417
  onClick: () => Z(e.key),
416
418
  onMouseEnter: () => Y(e.key),
417
419
  onMouseLeave: q,
418
420
  children: [
419
- /* @__PURE__ */ o(ne, { column: e }),
421
+ /* @__PURE__ */ o(ae, { column: e }),
420
422
  (X === e.key || (x == null ? void 0 : x.key) === e.key) && K(e.key)
421
423
  ]
422
424
  }
@@ -430,7 +432,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
430
432
  const C = /* @__PURE__ */ o(
431
433
  "button",
432
434
  {
433
- className: d("table-header-cell", {
435
+ className: h("table-header-cell", {
434
436
  [`align-${e.align}`]: "align" in e,
435
437
  "primary-cell": N(e),
436
438
  "sortable-cell": A.includes(e.key),
@@ -445,15 +447,15 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
445
447
  k,
446
448
  t
447
449
  ),
448
- children: /* @__PURE__ */ S(
450
+ children: /* @__PURE__ */ z(
449
451
  "div",
450
452
  {
451
- className: d("label"),
453
+ className: h("label"),
452
454
  onClick: () => Z(e.key),
453
455
  onMouseEnter: () => Y(e.key),
454
456
  onMouseLeave: q,
455
457
  children: [
456
- /* @__PURE__ */ o(ne, { column: e }),
458
+ /* @__PURE__ */ o(ae, { column: e }),
457
459
  (X === e.key || (x == null ? void 0 : x.key) === e.key) && K(e.key)
458
460
  ]
459
461
  }
@@ -463,14 +465,14 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
463
465
  );
464
466
  return v ? V(e, C) : C;
465
467
  }),
466
- c && /* @__PURE__ */ o("div", { className: d("table-header-cell", "action-menu-cell") })
468
+ c && /* @__PURE__ */ o("div", { className: h("table-header-cell", "action-menu-cell") })
467
469
  ]
468
470
  }
469
471
  ),
470
472
  /* @__PURE__ */ o(
471
473
  "div",
472
474
  {
473
- className: d(
475
+ className: h(
474
476
  "table-body",
475
477
  {
476
478
  "scrollable-body": u,
@@ -479,10 +481,10 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
479
481
  },
480
482
  p
481
483
  ),
482
- children: l.map((e, C) => /* @__PURE__ */ S(
484
+ children: l.map((e, C) => /* @__PURE__ */ z(
483
485
  "div",
484
486
  {
485
- className: d("table-row", Ve(e), s, {
487
+ className: h("table-row", Ve(e), s, {
486
488
  selectable: t
487
489
  }),
488
490
  onMouseEnter: () => ve(C),
@@ -491,20 +493,20 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
491
493
  t && /* @__PURE__ */ o(
492
494
  "div",
493
495
  {
494
- className: d("table-cell", "checkbox-cell"),
495
- style: { left: k ? `${z}px` : "0" },
496
+ className: h("table-cell", "checkbox-cell"),
497
+ style: { left: k ? `${S}px` : "0" },
496
498
  children: (F || ke === C) && /* @__PURE__ */ o(
497
499
  te,
498
500
  {
499
- value: h.includes(e.id),
500
- onChange: () => Se(e.id),
501
- className: d("checkbox-cell")
501
+ value: d.includes(e.id),
502
+ onChange: () => ze(e.id),
503
+ className: h("checkbox-cell")
502
504
  }
503
505
  )
504
506
  }
505
507
  ),
506
- /* @__PURE__ */ o("div", { className: d("row-content-wrapper"), children: /* @__PURE__ */ S("div", { className: d("table-row-content"), style: { gridTemplateColumns: Ae }, children: [
507
- k && /* @__PURE__ */ o("div", { className: d("table-cell", "expand-cell"), style: { left: "0" }, children: /* @__PURE__ */ o(
508
+ /* @__PURE__ */ o("div", { className: h("row-content-wrapper"), children: /* @__PURE__ */ z("div", { className: h("table-row-content"), style: { gridTemplateColumns: Ae }, children: [
509
+ k && /* @__PURE__ */ o("div", { className: h("table-cell", "expand-cell"), style: { left: "0" }, children: /* @__PURE__ */ o(
508
510
  "button",
509
511
  {
510
512
  onClick: () => xe(e.id),
@@ -513,7 +515,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
513
515
  children: /* @__PURE__ */ o(
514
516
  "span",
515
517
  {
516
- className: d("expand-icon", {
518
+ className: h("expand-icon", {
517
519
  expanded: $.includes(e.id)
518
520
  }),
519
521
  children: /* @__PURE__ */ o(ee, {})
@@ -527,7 +529,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
527
529
  "div",
528
530
  {
529
531
  ref: I ? J(y.key) : void 0,
530
- className: d("table-cell", "pinned-column", {
532
+ className: h("table-cell", "pinned-column", {
531
533
  "primary-cell": I,
532
534
  "expanded-cell": P
533
535
  }),
@@ -551,7 +553,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
551
553
  "div",
552
554
  {
553
555
  ref: P ? J(y.key) : void 0,
554
- className: d("table-cell", {
556
+ className: h("table-cell", {
555
557
  "primary-cell": P,
556
558
  "expanded-cell": U
557
559
  }),
@@ -569,7 +571,7 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
569
571
  y.key
570
572
  );
571
573
  }),
572
- c && /* @__PURE__ */ o("div", { className: d("table-cell", "action-menu-cell"), children: c(e.metaData) })
574
+ c && /* @__PURE__ */ o("div", { className: h("table-cell", "action-menu-cell"), children: c(e.metaData) })
573
575
  ] }) })
574
576
  ]
575
577
  },
@@ -582,5 +584,5 @@ const j = (l) => typeof l == "string", je = "_table_aipph_1", He = "_resizable_a
582
584
  );
583
585
  };
584
586
  export {
585
- dl as T
587
+ hl as T
586
588
  };
package/dist/table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r } from "./table-a67da002.js";
1
+ import { T as r } from "./table-b4364f2c.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "react-resizable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.145",
3
+ "version": "0.0.1-alpha.147",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {