@reportportal/ui-kit 0.0.1-alpha.158 → 0.0.1-alpha.159

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,38 +1,38 @@
1
1
  import { jsxs as x, jsx as n } 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_rvc2u_1", D = "_disabled_rvc2u_11", K = "_input_rvc2u_16", N = "_control_rvc2u_23", v = "_children_rvc2u_155", I = {
4
+ import { K as d } from "./keyCodes-f63c0e11.js";
5
+ const E = "_checkbox_8r30i_1", D = "_disabled_8r30i_12", K = "_input_8r30i_17", N = "_control_8r30i_24", I = "_children_8r30i_156", R = {
6
6
  checkbox: E,
7
7
  disabled: D,
8
8
  input: K,
9
9
  control: N,
10
- "partially-checked": "_partially-checked_rvc2u_78",
11
- children: v
12
- }, e = f.bind(I), Y = ({
10
+ "partially-checked": "_partially-checked_8r30i_79",
11
+ children: I
12
+ }, e = f.bind(R), A = ({
13
13
  children: s,
14
14
  disabled: c = !1,
15
- onChange: d,
16
- className: h,
15
+ onChange: h,
16
+ className: k,
17
17
  value: t,
18
- partiallyChecked: k,
18
+ partiallyChecked: b,
19
19
  title: l,
20
- ...b
20
+ ...u
21
21
  }) => {
22
22
  const o = y(null), a = C(), m = (r) => {
23
- var _, u;
23
+ var _, p;
24
24
  const { keyCode: i } = r;
25
- if (i === p.SPACE_KEY_CODE) {
25
+ if (i === d.SPACE_KEY_CODE) {
26
26
  r.preventDefault(), (_ = o.current) == null || _.click();
27
27
  return;
28
28
  }
29
- i === p.ENTER_KEY_CODE && (r.preventDefault(), (u = o.current) == null || u.click());
29
+ i === d.ENTER_KEY_CODE && (r.preventDefault(), (p = o.current) == null || p.click());
30
30
  };
31
31
  return /* @__PURE__ */ x(
32
32
  "label",
33
33
  {
34
34
  id: a,
35
- className: e("checkbox", h, {
35
+ className: e("checkbox", k, {
36
36
  disabled: c
37
37
  }),
38
38
  title: l,
@@ -44,12 +44,12 @@ const E = "_checkbox_rvc2u_1", D = "_disabled_rvc2u_11", K = "_input_rvc2u_16",
44
44
  tabIndex: 0,
45
45
  type: "checkbox",
46
46
  onKeyDown: m,
47
- className: e("input", { "partially-checked": k }),
47
+ className: e("input", { "partially-checked": b }),
48
48
  disabled: c,
49
- onChange: d,
49
+ onChange: h,
50
50
  checked: t,
51
51
  title: l,
52
- ...b
52
+ ...u
53
53
  }
54
54
  ),
55
55
  /* @__PURE__ */ n(
@@ -69,5 +69,5 @@ const E = "_checkbox_rvc2u_1", D = "_disabled_rvc2u_11", K = "_input_rvc2u_16",
69
69
  );
70
70
  };
71
71
  export {
72
- Y as C
72
+ A as C
73
73
  };
package/dist/checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "./checkbox-ed6cc375.js";
1
+ import { C as r } from "./checkbox-493fdc63.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
@@ -5,3 +5,4 @@ export { useColumnWidths } from './useColumnWidths';
5
5
  export { useColumnResize } from './useColumnResize';
6
6
  export { useRightGradientPosition, usePinnedGradientPosition } from './useGradientPosition';
7
7
  export type { RightGradientPosition, PinnedGradientPosition } from './useGradientPosition';
8
+ export { useCheckboxRowSync } from './useCheckboxRowSync';
@@ -0,0 +1,10 @@
1
+ interface UseCheckboxRowSyncProps {
2
+ enabled: boolean;
3
+ rowCount: number;
4
+ }
5
+ export declare const useCheckboxRowSync: ({ enabled, rowCount }: UseCheckboxRowSyncProps) => {
6
+ setTableRowRef: (index: number) => (el: HTMLElement | null) => void;
7
+ setCheckboxRowRef: (index: number) => (el: HTMLElement | null) => void;
8
+ syncAllHeights: () => void;
9
+ };
10
+ export {};
@@ -44,7 +44,9 @@ export interface TableComponentProps {
44
44
  fixedColumns: FixedColumn[];
45
45
  renderRowActions?: (metaData?: MetaData) => ReactNode;
46
46
  selectable?: boolean;
47
+ isCheckboxOutside?: boolean;
47
48
  className?: string;
49
+ wrapperClassName?: string;
48
50
  headerClassName?: string;
49
51
  bodyClassName?: string;
50
52
  rowClassName?: string;
@@ -7,6 +7,6 @@ export declare const getColumnsKeys: (columns: Column[]) => string[];
7
7
  export declare const toggleDirection: (direction: SortingDirection) => "asc" | "desc";
8
8
  export declare const isPrimaryColumn: (column: PrimaryColumn | FixedColumn) => boolean;
9
9
  export declare const getRowSizeClassName: (rowData: RowData) => string;
10
- export declare const calculatePinnedPosition: (columnIndex: number, columns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean) => number;
11
- export declare const getCellStyle: (column: FixedColumn | PrimaryColumn, isPinned: boolean, pinnedIndex: number | undefined, pinnedColumns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean) => CSSProperties;
12
- export declare const getGridTemplateColumns: (pinnedColumns: (PrimaryColumn | FixedColumn)[], scrollableColumns: (PrimaryColumn | FixedColumn)[], isRowsExpandable: boolean, selectable: boolean, renderRowActions: boolean, isHeader?: boolean, columnWidths?: Record<string, number>, isResizable?: boolean) => string;
10
+ export declare const calculatePinnedPosition: (columnIndex: number, columns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean, isCheckboxOutside?: boolean) => number;
11
+ export declare const getCellStyle: (column: FixedColumn | PrimaryColumn, isPinned: boolean, pinnedIndex: number | undefined, pinnedColumns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean, isCheckboxOutside?: boolean) => CSSProperties;
12
+ export declare const getGridTemplateColumns: (pinnedColumns: (PrimaryColumn | FixedColumn)[], scrollableColumns: (PrimaryColumn | FixedColumn)[], isRowsExpandable: boolean, selectable: boolean, renderRowActions: boolean, isHeader?: boolean, columnWidths?: Record<string, number>, isResizable?: boolean, isCheckboxOutside?: boolean) => string;
@@ -3,7 +3,7 @@ import B from "react-datepicker/dist/es/index.js";
3
3
  import { c as R } from "./bind-06a7ff84.js";
4
4
  import { useMemo as P, useRef as D } from "react";
5
5
  import { F as I } from "./fieldText-1749da7a.js";
6
- import { D as E } from "./dropdown-ae695766.js";
6
+ import { D as E } from "./dropdown-40fcc3ad.js";
7
7
  import { S as T } from "./calendarArrow-44c7e60e.js";
8
8
  import { registerLocale as j } from "react-datepicker";
9
9
  const ie = (n, s) => {
@@ -1,5 +1,5 @@
1
- import { D as t } from "./datePicker-37854acd.js";
2
- import { r as A } from "./datePicker-37854acd.js";
1
+ import { D as t } from "./datePicker-60b22314.js";
2
+ import { r as A } from "./datePicker-60b22314.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react-datepicker/dist/es/index.js";
5
5
  import "./bind-06a7ff84.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-ae695766.js";
14
+ import "./dropdown-40fcc3ad.js";
15
15
  import "react-dom";
16
16
  import "@floating-ui/react-dom";
17
17
  import "downshift";
@@ -22,7 +22,7 @@ import "./adaptiveTagList.js";
22
22
  import "./button-97d9e587.js";
23
23
  import "./close-4d480ef7.js";
24
24
  import "./isEmpty-ccacb5ff.js";
25
- import "./checkbox-ed6cc375.js";
25
+ import "./checkbox-493fdc63.js";
26
26
  import "./calendarArrow-44c7e60e.js";
27
27
  import "react-datepicker";
28
28
  export {
@@ -11,7 +11,7 @@ import { S as Nr } from "./clear-53660571.js";
11
11
  import { S as Ir } from "./dropdown-0260bb66.js";
12
12
  import { FieldLabel as Kr } from "./fieldLabel.js";
13
13
  import { AdaptiveTagList as Lr } from "./adaptiveTagList.js";
14
- import { C as Tr } from "./checkbox-ed6cc375.js";
14
+ import { C as Tr } from "./checkbox-493fdc63.js";
15
15
  import { i as se } from "./isEmpty-ccacb5ff.js";
16
16
  const xr = (n) => {
17
17
  const r = {}, c = {};
package/dist/dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as r } from "./dropdown-ae695766.js";
2
- import { a as n } from "./dropdown-ae695766.js";
1
+ import { D as r } from "./dropdown-40fcc3ad.js";
2
+ import { a as n } from "./dropdown-40fcc3ad.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-dom";
@@ -16,7 +16,7 @@ import "./adaptiveTagList.js";
16
16
  import "./button-97d9e587.js";
17
17
  import "./close-4d480ef7.js";
18
18
  import "./isEmpty-ccacb5ff.js";
19
- import "./checkbox-ed6cc375.js";
19
+ import "./checkbox-493fdc63.js";
20
20
  export {
21
21
  n as DROPDOWN_PORTAL_MENU_ATTR,
22
22
  r as Dropdown,
package/dist/index.js CHANGED
@@ -4,11 +4,11 @@ import { B as h } from "./baseIconButton-251479f7.js";
4
4
  import { B } from "./breadcrumbs-8e5ca8d7.js";
5
5
  import { B as M } from "./bubblesLoader-f3ffa240.js";
6
6
  import { B as w } from "./button-97d9e587.js";
7
- import { C as k } from "./checkbox-ed6cc375.js";
7
+ import { C as k } from "./checkbox-493fdc63.js";
8
8
  import { Chip as O } from "./chip.js";
9
- import { D as z } from "./datePicker-37854acd.js";
9
+ import { D as z } from "./datePicker-60b22314.js";
10
10
  import "react-datepicker";
11
- import { D as J } from "./dropdown-ae695766.js";
11
+ import { D as J } from "./dropdown-40fcc3ad.js";
12
12
  import { FieldLabel as G } from "./fieldLabel.js";
13
13
  import { F as X } from "./fieldNumber-d1b5a7a1.js";
14
14
  import { F as q } from "./fieldText-1749da7a.js";
@@ -26,7 +26,7 @@ import { S as uo } from "./spinLoader-c4a53718.js";
26
26
  import { SystemAlert as Co } from "./systemAlert.js";
27
27
  import { S as go } from "./systemMessage-924fdaa6.js";
28
28
  import { DragLayer as Do, SortableItem as bo, SortableList as yo } from "./sortable.js";
29
- import { T as ho } from "./table-1aaae76c.js";
29
+ import { T as ho } from "./table-09b572b3.js";
30
30
  import { T as Bo } from "./themeProvider-46c2be7b.js";
31
31
  import { T as Mo } from "./toggle-304107fa.js";
32
32
  import { Tooltip as wo } from "./tooltip.js";
package/dist/modal.js CHANGED
@@ -5,7 +5,7 @@ import { AnimatePresence as Y, motion as X } from "framer-motion";
5
5
  import { c as b } from "./bind-06a7ff84.js";
6
6
  import "react-dnd";
7
7
  import "react-dnd-html5-backend";
8
- import { a as q } from "./dropdown-ae695766.js";
8
+ import { a as q } from "./dropdown-40fcc3ad.js";
9
9
  import { K as J } from "./keyCodes-f63c0e11.js";
10
10
  import { B as D } from "./button-97d9e587.js";
11
11
  import { Tooltip as Q } from "./tooltip.js";
@@ -19,7 +19,7 @@ import "./dropdown-0260bb66.js";
19
19
  import "./fieldLabel.js";
20
20
  import "./adaptiveTagList.js";
21
21
  import "./isEmpty-ccacb5ff.js";
22
- import "./checkbox-ed6cc375.js";
22
+ import "./checkbox-493fdc63.js";
23
23
  import "@floating-ui/react";
24
24
  import "./floatingUi-41f8c7b5.js";
25
25
  function ee(t, i, o) {