@reportportal/ui-kit 0.0.1-alpha.105 → 0.0.1-alpha.106

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,104 +1,104 @@
1
- import { jsxs as x, jsx as s } from "react/jsx-runtime";
2
- import { useMemo as Q, useState as L, useCallback as g, useEffect as ue, useRef as be } from "react";
3
- import { c as fe } from "./bind-06a7ff84.js";
1
+ import { jsxs as N, jsx as s } from "react/jsx-runtime";
2
+ import { useMemo as Q, useState as D, useCallback as g, useEffect as ue, useRef as fe } from "react";
3
+ import { c as ke } from "./bind-06a7ff84.js";
4
4
  import { b as K, a as Y, S as ve } from "./chevronDownDropdown-66f5b1af.js";
5
5
  import { C as q } from "./checkbox-ed6cc375.js";
6
- const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_1kj69_56", je = "_expanded_1kj69_52", xe = "_label_1kj69_266", Ne = {
6
+ const V = (l) => typeof l == "string", Ce = "_table_12bpb_1", ge = "_selectable_12bpb_56", xe = "_expanded_12bpb_52", Ne = "_label_12bpb_269", we = {
7
7
  table: Ce,
8
- "fixed-header": "_fixed-header_1kj69_8",
9
- "horizontally-scrollable-container": "_horizontally-scrollable-container_1kj69_14",
10
- "table-header": "_table-header_1kj69_19",
11
- "sticky-header": "_sticky-header_1kj69_25",
12
- "horizontally-scrollable": "_horizontally-scrollable_1kj69_14",
13
- "table-row": "_table-row_1kj69_47",
14
- "expanded-cell": "_expanded-cell_1kj69_52",
8
+ "fixed-header": "_fixed-header_12bpb_8",
9
+ "horizontally-scrollable-container": "_horizontally-scrollable-container_12bpb_14",
10
+ "table-header": "_table-header_12bpb_19",
11
+ "sticky-header": "_sticky-header_12bpb_25",
12
+ "horizontally-scrollable": "_horizontally-scrollable_12bpb_14",
13
+ "table-row": "_table-row_12bpb_47",
14
+ "expanded-cell": "_expanded-cell_12bpb_52",
15
15
  selectable: ge,
16
- "row-content-wrapper": "_row-content-wrapper_1kj69_60",
17
- "table-row-content": "_table-row-content_1kj69_65",
18
- "expand-cell": "_expand-cell_1kj69_81",
19
- "size-small": "_size-small_1kj69_84",
20
- "size-large": "_size-large_1kj69_95",
21
- "table-body": "_table-body_1kj69_110",
22
- "scrollable-body": "_scrollable-body_1kj69_116",
23
- "table-header-cell": "_table-header-cell_1kj69_162",
24
- "table-cell": "_table-cell_1kj69_163",
25
- "action-menu-cell": "_action-menu-cell_1kj69_170",
26
- "checkbox-cell": "_checkbox-cell_1kj69_195",
27
- "expand-icon": "_expand-icon_1kj69_238",
28
- expanded: je,
29
- "primary-cell": "_primary-cell_1kj69_247",
30
- label: xe,
31
- "sortable-cell": "_sortable-cell_1kj69_270",
32
- "align-right": "_align-right_1kj69_273",
33
- "align-center": "_align-center_1kj69_279",
34
- "pinned-column": "_pinned-column_1kj69_282"
35
- }, Z = "asc", N = 32, F = 100, we = 48, me = (l) => l.toLowerCase() === Z, Ee = (l) => l.map((a) => a.key), j = (l) => "primary" in l && l.primary === !0, Me = (l) => {
16
+ "row-content-wrapper": "_row-content-wrapper_12bpb_60",
17
+ "table-row-content": "_table-row-content_12bpb_65",
18
+ "expand-cell": "_expand-cell_12bpb_81",
19
+ "size-small": "_size-small_12bpb_84",
20
+ "size-large": "_size-large_12bpb_95",
21
+ "table-body": "_table-body_12bpb_110",
22
+ "scrollable-body": "_scrollable-body_12bpb_116",
23
+ "table-header-cell": "_table-header-cell_12bpb_162",
24
+ "table-cell": "_table-cell_12bpb_163",
25
+ "action-menu-cell": "_action-menu-cell_12bpb_170",
26
+ "checkbox-cell": "_checkbox-cell_12bpb_195",
27
+ "expand-icon": "_expand-icon_12bpb_241",
28
+ expanded: xe,
29
+ "primary-cell": "_primary-cell_12bpb_250",
30
+ label: Ne,
31
+ "sortable-cell": "_sortable-cell_12bpb_273",
32
+ "align-right": "_align-right_12bpb_276",
33
+ "align-center": "_align-center_12bpb_282",
34
+ "pinned-column": "_pinned-column_12bpb_285"
35
+ }, Z = "asc", w = 32, F = 100, me = 48, Ee = (l) => l.toLowerCase() === Z, Me = (l) => l.map((a) => a.key), x = (l) => "primary" in l && l.primary === !0, $e = (l) => {
36
36
  var t;
37
37
  return `size-${((t = l.rowConfigs) == null ? void 0 : t.size) ?? "default"}`;
38
- }, $e = (l, a, t, c, i) => {
38
+ }, Se = (l, a, t, c, i) => {
39
39
  let o = 0;
40
- c && (o += N), i && (o += N);
41
- for (let h = 0; h < l; h++) {
42
- const r = a[h];
43
- if (j(r)) {
40
+ c && (o += w), i && (o += w);
41
+ for (let b = 0; b < l; b++) {
42
+ const r = a[b];
43
+ if (x(r)) {
44
44
  const n = t.current.get(r.key) || F;
45
45
  o += n;
46
46
  } else {
47
- const n = r, _ = V(n.width) ? parseInt(n.width, 10) || 0 : n.width;
48
- o += _;
47
+ const n = r, h = V(n.width) ? parseInt(n.width, 10) || 0 : n.width;
48
+ o += h;
49
49
  }
50
50
  }
51
51
  return o;
52
- }, z = (l, a, t, c, i, o, h) => {
52
+ }, A = (l, a, t, c, i, o, b) => {
53
53
  const r = {};
54
- if (!j(l)) {
54
+ if (!x(l)) {
55
55
  const n = l;
56
56
  r.textAlign = n.align;
57
57
  }
58
58
  if (a && t !== void 0) {
59
- const n = $e(
59
+ const n = Se(
60
60
  t,
61
61
  c,
62
62
  i,
63
63
  o,
64
- h
64
+ b
65
65
  );
66
66
  r.left = `${n}px`;
67
67
  }
68
68
  return r;
69
69
  }, J = (l, a, t, c, i, o = !1) => {
70
- const h = [];
71
- t && h.push(`${N}px`), o && c && h.push(`${N}px`);
70
+ const b = [];
71
+ t && b.push(`${w}px`), o && c && b.push(`${w}px`);
72
72
  const r = (n) => {
73
- if (j(n))
74
- h.push(`minmax(${F}px, 1fr)`);
73
+ if (x(n))
74
+ b.push(`minmax(${F}px, 1fr)`);
75
75
  else {
76
- const _ = n, k = V(_.width) ? _.width : `${_.width}px`;
77
- h.push(k);
76
+ const h = n, p = V(h.width) ? h.width : `${h.width}px`;
77
+ b.push(p);
78
78
  }
79
79
  };
80
- return l.forEach(r), a.forEach(r), i && h.push(`${we}px`), h.join(" ");
81
- }, Se = ({
80
+ return l.forEach(r), a.forEach(r), i && b.push(`${me}px`), b.join(" ");
81
+ }, Te = ({
82
82
  primaryColumns: l,
83
83
  fixedColumns: a,
84
84
  pinnedColumnKeys: t
85
85
  }) => Q(() => {
86
86
  const c = [], i = [];
87
87
  return l.forEach((o) => {
88
- const h = { ...o, primary: !0 };
89
- t.includes(o.key) ? c.push(h) : i.push(h);
88
+ const b = { ...o, primary: !0 };
89
+ t.includes(o.key) ? c.push(b) : i.push(b);
90
90
  }), a.forEach((o) => {
91
91
  t.includes(o.key) ? c.push(o) : i.push(o);
92
92
  }), {
93
93
  pinnedColumns: c,
94
94
  scrollableColumns: i
95
95
  };
96
- }, [l, a, t]), Te = () => {
97
- const [l, a] = L(null), [t, c] = L(null), i = g((n) => {
96
+ }, [l, a, t]), ze = () => {
97
+ const [l, a] = D(null), [t, c] = D(null), i = g((n) => {
98
98
  a(n);
99
99
  }, []), o = g(() => {
100
100
  a(null);
101
- }, []), h = g((n) => {
101
+ }, []), b = g((n) => {
102
102
  c(n);
103
103
  }, []), r = g(() => {
104
104
  c(null);
@@ -108,65 +108,65 @@ const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_
108
108
  hoveredRow: t,
109
109
  handleColumnMouseEnter: i,
110
110
  handleColumnMouseLeave: o,
111
- handleRowMouseEnter: h,
111
+ handleRowMouseEnter: b,
112
112
  handleRowMouseLeave: r
113
113
  };
114
- }, ze = ({
114
+ }, Ae = ({
115
115
  primaryColumns: l,
116
116
  fixedColumns: a,
117
117
  expandedRowIds: t,
118
118
  onToggleRowExpansion: c
119
119
  }) => {
120
- const [i, o] = L(/* @__PURE__ */ new Set());
120
+ const [i, o] = D(/* @__PURE__ */ new Set());
121
121
  ue(() => {
122
122
  const n = [
123
- ...l.map((k) => k.key),
124
- ...a.map((k) => k.key)
125
- ], _ = /* @__PURE__ */ new Set();
126
- t.forEach((k) => {
127
- n.forEach((b) => {
128
- _.add(`${k}-${b}`);
123
+ ...l.map((p) => p.key),
124
+ ...a.map((p) => p.key)
125
+ ], h = /* @__PURE__ */ new Set();
126
+ t.forEach((p) => {
127
+ n.forEach((f) => {
128
+ h.add(`${p}-${f}`);
129
129
  });
130
- }), o((k) => {
131
- if (k.size === _.size) {
132
- let b = !0;
133
- if (k.forEach((p) => {
134
- _.has(p) || (b = !1);
135
- }), b)
136
- return k;
130
+ }), o((p) => {
131
+ if (p.size === h.size) {
132
+ let f = !0;
133
+ if (p.forEach((y) => {
134
+ h.has(y) || (f = !1);
135
+ }), f)
136
+ return p;
137
137
  }
138
- return _;
138
+ return h;
139
139
  });
140
140
  }, [t, l, a]);
141
- const h = g(
141
+ const b = g(
142
142
  (n) => {
143
- const _ = new Set(i), k = t.includes(n), b = [
144
- ...l.map((p) => p.key),
145
- ...a.map((p) => p.key)
143
+ const h = new Set(i), p = t.includes(n), f = [
144
+ ...l.map((y) => y.key),
145
+ ...a.map((y) => y.key)
146
146
  ];
147
- k ? b.forEach((p) => {
148
- const C = `${n}-${p}`;
149
- _.delete(C);
150
- }) : b.forEach((p) => {
151
- const C = `${n}-${p}`;
152
- _.add(C);
153
- }), o(_), c(n);
147
+ p ? f.forEach((y) => {
148
+ const C = `${n}-${y}`;
149
+ h.delete(C);
150
+ }) : f.forEach((y) => {
151
+ const C = `${n}-${y}`;
152
+ h.add(C);
153
+ }), o(h), c(n);
154
154
  },
155
155
  [i, t, l, a, c]
156
156
  ), r = g(
157
- (n, _) => {
158
- const k = `${n}-${_}`;
159
- return i.has(k);
157
+ (n, h) => {
158
+ const p = `${n}-${h}`;
159
+ return i.has(p);
160
160
  },
161
161
  [i]
162
162
  );
163
163
  return {
164
164
  expandedCells: i,
165
- handleToggleRowExpansion: h,
165
+ handleToggleRowExpansion: b,
166
166
  isCellExpanded: r
167
167
  };
168
- }, Ae = () => {
169
- const l = be(/* @__PURE__ */ new Map()), a = g(
168
+ }, Le = () => {
169
+ const l = fe(/* @__PURE__ */ new Map()), a = g(
170
170
  (t) => (c) => {
171
171
  if (!c)
172
172
  return;
@@ -179,24 +179,24 @@ const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_
179
179
  columnWidthsRef: l,
180
180
  setCellRef: a
181
181
  };
182
- }, d = fe.bind(Ne), Oe = ({
182
+ }, d = ke.bind(we), je = ({
183
183
  data: l,
184
184
  primaryColumn: a,
185
185
  fixedColumns: t,
186
186
  renderRowActions: c,
187
187
  className: i = "",
188
188
  rowClassName: o = "",
189
- headerClassName: h = "",
189
+ headerClassName: b = "",
190
190
  selectable: r = !1,
191
191
  selectedRowIds: n = [],
192
- sortingDirection: _ = Z,
193
- sortingColumn: k,
194
- sortableColumns: b,
195
- isHeaderFixed: p = !1,
192
+ sortingDirection: h = Z,
193
+ sortingColumn: p,
194
+ sortableColumns: f,
195
+ isHeaderFixed: y = !1,
196
196
  isHorizontallyScrollable: C = !1,
197
197
  pinnedColumnKeys: R = [],
198
198
  isRowsExpandable: u = !1,
199
- expandedRowIds: w = [],
199
+ expandedRowIds: m = [],
200
200
  onChangeSorting: I = () => {
201
201
  },
202
202
  onToggleRowSelection: ee = () => {
@@ -208,150 +208,150 @@ const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_
208
208
  onToggleAllRowsExpansion: ae = () => {
209
209
  }
210
210
  }) => {
211
- const m = Q(
211
+ const E = Q(
212
212
  () => Array.isArray(a) ? a : [a],
213
213
  [a]
214
- ), f = k ?? m[0], E = b ?? Ee([...m, ...t]), { pinnedColumns: v, scrollableColumns: M } = Se({
215
- primaryColumns: m,
214
+ ), k = p ?? E[0], M = f ?? Me([...E, ...t]), { pinnedColumns: v, scrollableColumns: $ } = Te({
215
+ primaryColumns: E,
216
216
  fixedColumns: t,
217
217
  pinnedColumnKeys: R
218
218
  }), {
219
- hoveredColumn: D,
219
+ hoveredColumn: P,
220
220
  hoveredRow: te,
221
- handleColumnMouseEnter: P,
222
- handleColumnMouseLeave: W,
221
+ handleColumnMouseEnter: W,
222
+ handleColumnMouseLeave: U,
223
223
  handleRowMouseEnter: se,
224
224
  handleRowMouseLeave: ce
225
- } = Te(), { columnWidthsRef: $, setCellRef: U } = Ae(), { handleToggleRowExpansion: re, isCellExpanded: O } = ze({
226
- primaryColumns: m,
225
+ } = ze(), { columnWidthsRef: S, setCellRef: O } = Le(), { handleToggleRowExpansion: re, isCellExpanded: j } = Ae({
226
+ primaryColumns: E,
227
227
  fixedColumns: t,
228
- expandedRowIds: w,
228
+ expandedRowIds: m,
229
229
  onToggleRowExpansion: ne
230
230
  }), B = (e) => {
231
- E.includes(e) && I({ key: e, direction: _ });
231
+ M.includes(e) && I({ key: e, direction: h });
232
232
  }, oe = (e) => {
233
233
  ee(e);
234
234
  }, ie = () => {
235
235
  le();
236
236
  }, de = () => {
237
237
  ae();
238
- }, G = (e) => E.includes(e) ? (f == null ? void 0 : f.key) === e ? me(_) ? /* @__PURE__ */ s(Y, {}) : /* @__PURE__ */ s(ve, {}) : /* @__PURE__ */ s(Y, {}) : null, he = l.every((e) => n.includes(e.id)), _e = l.some((e) => n.includes(e.id)), H = (n == null ? void 0 : n.length) > 0, ke = l.every((e) => w.includes(e.id)), ye = J(
238
+ }, G = (e) => M.includes(e) ? (k == null ? void 0 : k.key) === e ? Ee(h) ? /* @__PURE__ */ s(Y, {}) : /* @__PURE__ */ s(ve, {}) : /* @__PURE__ */ s(Y, {}) : null, be = l.every((e) => n.includes(e.id)), he = l.some((e) => n.includes(e.id)), H = (n == null ? void 0 : n.length) > 0, pe = l.every((e) => m.includes(e.id)), _e = J(
239
239
  v,
240
- M,
240
+ $,
241
241
  u,
242
242
  r,
243
243
  !!c,
244
244
  !1
245
- ), pe = J(
245
+ ), ye = J(
246
246
  v,
247
- M,
247
+ $,
248
248
  u,
249
249
  r,
250
250
  !!c,
251
251
  !0
252
252
  );
253
- return /* @__PURE__ */ x(
253
+ return /* @__PURE__ */ N(
254
254
  "div",
255
255
  {
256
256
  className: d(
257
257
  "table",
258
258
  {
259
- "fixed-header": p,
260
- "horizontally-scrollable-container": p && C
259
+ "fixed-header": y,
260
+ "horizontally-scrollable-container": y && C
261
261
  },
262
262
  i
263
263
  ),
264
264
  children: [
265
- /* @__PURE__ */ x(
265
+ /* @__PURE__ */ N(
266
266
  "div",
267
267
  {
268
268
  className: d(
269
269
  "table-header",
270
270
  {
271
- "sticky-header": p,
271
+ "sticky-header": y,
272
272
  "horizontally-scrollable": C
273
273
  },
274
- h
274
+ b
275
275
  ),
276
- style: { gridTemplateColumns: pe },
276
+ style: { gridTemplateColumns: ye },
277
277
  children: [
278
278
  r && /* @__PURE__ */ s(
279
279
  "div",
280
280
  {
281
281
  className: d("table-header-cell", "checkbox-cell"),
282
- style: { left: u ? `${N}px` : "0" },
282
+ style: { left: u ? `${w}px` : "0" },
283
283
  children: H && /* @__PURE__ */ s(
284
284
  q,
285
285
  {
286
- value: he,
287
- partiallyChecked: _e,
286
+ value: be,
287
+ partiallyChecked: he,
288
288
  onChange: ie,
289
289
  className: d("checkbox-cell")
290
290
  }
291
291
  )
292
292
  }
293
293
  ),
294
- u && /* @__PURE__ */ s("div", { className: d("table-header-cell", "expand-cell"), style: { left: "0" }, children: /* @__PURE__ */ s("button", { onClick: de, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ s("span", { className: d("expand-icon", { expanded: ke }), children: /* @__PURE__ */ s(K, {}) }) }) }),
295
- v.map((e, S) => /* @__PURE__ */ s(
294
+ u && /* @__PURE__ */ s("div", { className: d("table-header-cell", "expand-cell"), style: { left: "0" }, children: /* @__PURE__ */ s("button", { onClick: de, "aria-label": "Toggle all rows expansion", children: /* @__PURE__ */ s("span", { className: d("expand-icon", { expanded: pe }), children: /* @__PURE__ */ s(K, {}) }) }) }),
295
+ v.map((e, T) => /* @__PURE__ */ s(
296
296
  "button",
297
297
  {
298
298
  className: d("table-header-cell", "pinned-column", {
299
299
  [`align-${e.align}`]: "align" in e,
300
- "primary-cell": j(e),
301
- "sortable-cell": E.includes(e.key)
300
+ "primary-cell": x(e),
301
+ "sortable-cell": M.includes(e.key)
302
302
  }),
303
- style: z(
303
+ style: A(
304
304
  e,
305
305
  !0,
306
- S,
306
+ T,
307
307
  v,
308
- $,
308
+ S,
309
309
  u,
310
310
  r
311
311
  ),
312
- children: /* @__PURE__ */ x(
312
+ children: /* @__PURE__ */ N(
313
313
  "div",
314
314
  {
315
315
  className: d("label"),
316
316
  onClick: () => B(e.key),
317
- onMouseEnter: () => P(e.key),
318
- onMouseLeave: W,
317
+ onMouseEnter: () => W(e.key),
318
+ onMouseLeave: U,
319
319
  children: [
320
320
  /* @__PURE__ */ s("span", { children: e.header }),
321
- (D === e.key || (f == null ? void 0 : f.key) === e.key) && G(e.key)
321
+ (P === e.key || (k == null ? void 0 : k.key) === e.key) && G(e.key)
322
322
  ]
323
323
  }
324
324
  )
325
325
  },
326
326
  e.key
327
327
  )),
328
- M.map((e) => /* @__PURE__ */ s(
328
+ $.map((e) => /* @__PURE__ */ s(
329
329
  "button",
330
330
  {
331
331
  className: d("table-header-cell", {
332
332
  [`align-${e.align}`]: "align" in e,
333
- "primary-cell": j(e),
334
- "sortable-cell": E.includes(e.key)
333
+ "primary-cell": x(e),
334
+ "sortable-cell": M.includes(e.key)
335
335
  }),
336
- style: z(
336
+ style: A(
337
337
  e,
338
338
  !1,
339
339
  void 0,
340
340
  v,
341
- $,
341
+ S,
342
342
  u,
343
343
  r
344
344
  ),
345
- children: /* @__PURE__ */ x(
345
+ children: /* @__PURE__ */ N(
346
346
  "div",
347
347
  {
348
348
  className: d("label"),
349
349
  onClick: () => B(e.key),
350
- onMouseEnter: () => P(e.key),
351
- onMouseLeave: W,
350
+ onMouseEnter: () => W(e.key),
351
+ onMouseLeave: U,
352
352
  children: [
353
353
  /* @__PURE__ */ s("span", { children: e.header }),
354
- (D === e.key || (f == null ? void 0 : f.key) === e.key) && G(e.key)
354
+ (P === e.key || (k == null ? void 0 : k.key) === e.key) && G(e.key)
355
355
  ]
356
356
  }
357
357
  )
@@ -366,24 +366,24 @@ const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_
366
366
  "div",
367
367
  {
368
368
  className: d("table-body", {
369
- "scrollable-body": p,
369
+ "scrollable-body": y,
370
370
  "horizontally-scrollable": C
371
371
  }),
372
- children: l.map((e, S) => /* @__PURE__ */ x(
372
+ children: l.map((e, T) => /* @__PURE__ */ N(
373
373
  "div",
374
374
  {
375
- className: d("table-row", Me(e), o, {
375
+ className: d("table-row", $e(e), o, {
376
376
  selectable: r
377
377
  }),
378
- onMouseEnter: () => se(S),
378
+ onMouseEnter: () => se(T),
379
379
  onMouseLeave: ce,
380
380
  children: [
381
381
  r && /* @__PURE__ */ s(
382
382
  "div",
383
383
  {
384
384
  className: d("table-cell", "checkbox-cell"),
385
- style: { left: u ? `${N}px` : "0" },
386
- children: (H || te === S) && /* @__PURE__ */ s(
385
+ style: { left: u ? `${w}px` : "0" },
386
+ children: (H || te === T) && /* @__PURE__ */ s(
387
387
  q,
388
388
  {
389
389
  value: n.includes(e.id),
@@ -393,70 +393,70 @@ const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_
393
393
  )
394
394
  }
395
395
  ),
396
- /* @__PURE__ */ s("div", { className: d("row-content-wrapper"), children: /* @__PURE__ */ x("div", { className: d("table-row-content"), style: { gridTemplateColumns: ye }, children: [
396
+ /* @__PURE__ */ s("div", { className: d("row-content-wrapper"), children: /* @__PURE__ */ N("div", { className: d("table-row-content"), style: { gridTemplateColumns: _e }, children: [
397
397
  u && /* @__PURE__ */ s("div", { className: d("table-cell", "expand-cell"), style: { left: "0" }, children: /* @__PURE__ */ s(
398
398
  "button",
399
399
  {
400
400
  onClick: () => re(e.id),
401
- "aria-label": w.includes(e.id) ? "Collapse row" : "Expand row",
402
- "aria-expanded": w.includes(e.id),
401
+ "aria-label": m.includes(e.id) ? "Collapse row" : "Expand row",
402
+ "aria-expanded": m.includes(e.id),
403
403
  children: /* @__PURE__ */ s(
404
404
  "span",
405
405
  {
406
406
  className: d("expand-icon", {
407
- expanded: w.includes(e.id)
407
+ expanded: m.includes(e.id)
408
408
  }),
409
409
  children: /* @__PURE__ */ s(K, {})
410
410
  }
411
411
  )
412
412
  }
413
413
  ) }),
414
- v.map((y, A) => {
415
- const T = O(e.id, y.key), X = j(y);
414
+ v.map((_, L) => {
415
+ const z = j(e.id, _.key), X = x(_);
416
416
  return /* @__PURE__ */ s(
417
417
  "div",
418
418
  {
419
- ref: X ? U(y.key) : void 0,
419
+ ref: X ? O(_.key) : void 0,
420
420
  className: d("table-cell", "pinned-column", {
421
421
  "primary-cell": X,
422
- "expanded-cell": T
422
+ "expanded-cell": z
423
423
  }),
424
- style: z(
425
- y,
424
+ style: A(
425
+ _,
426
426
  !0,
427
- A,
427
+ L,
428
428
  v,
429
- $,
429
+ S,
430
430
  u,
431
431
  r
432
432
  ),
433
- children: e[y.key].component || e[y.key].content || e[y.key]
433
+ children: e[_.key].component || e[_.key].content || e[_.key]
434
434
  },
435
- y.key
435
+ _.key
436
436
  );
437
437
  }),
438
- M.map((y) => {
439
- const A = O(e.id, y.key), T = j(y);
438
+ $.map((_) => {
439
+ const L = j(e.id, _.key), z = x(_);
440
440
  return /* @__PURE__ */ s(
441
441
  "div",
442
442
  {
443
- ref: T ? U(y.key) : void 0,
443
+ ref: z ? O(_.key) : void 0,
444
444
  className: d("table-cell", {
445
- "primary-cell": T,
446
- "expanded-cell": A
445
+ "primary-cell": z,
446
+ "expanded-cell": L
447
447
  }),
448
- style: z(
449
- y,
448
+ style: A(
449
+ _,
450
450
  !1,
451
451
  void 0,
452
452
  v,
453
- $,
453
+ S,
454
454
  u,
455
455
  r
456
456
  ),
457
- children: e[y.key].component || e[y.key].content || e[y.key]
457
+ children: e[_.key].component || e[_.key].content || e[_.key]
458
458
  },
459
- y.key
459
+ _.key
460
460
  );
461
461
  }),
462
462
  c && /* @__PURE__ */ s("div", { className: d("table-cell", "action-menu-cell"), children: c(e.metaData) })
@@ -472,5 +472,5 @@ const V = (l) => typeof l == "string", Ce = "_table_1kj69_1", ge = "_selectable_
472
472
  );
473
473
  };
474
474
  export {
475
- Oe as T
475
+ je as T
476
476
  };
package/dist/table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r } from "./table-0ca84375.js";
1
+ import { T as r } from "./table-ea578f47.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.105",
3
+ "version": "0.0.1-alpha.106",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {