@reportportal/ui-kit 0.0.1-alpha.172 → 0.0.1-alpha.174

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.
package/dist/dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as r } from "./dropdown-7d024c49.js";
2
- import { a as n } from "./dropdown-7d024c49.js";
1
+ import { D as r } from "./dropdown-e853293f.js";
2
+ import { a as E } from "./dropdown-e853293f.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-dom";
@@ -16,9 +16,12 @@ import "./adaptiveTagList.js";
16
16
  import "./button-97d9e587.js";
17
17
  import "./close-4d480ef7.js";
18
18
  import "./isEmpty-ccacb5ff.js";
19
+ import "react-dnd";
20
+ import "react-dnd-html5-backend";
21
+ import "./useEllipsisTitle-462fa254.js";
19
22
  import "./checkbox-493fdc63.js";
20
23
  export {
21
- n as DROPDOWN_PORTAL_MENU_ATTR,
24
+ E as DROPDOWN_PORTAL_MENU_ATTR,
22
25
  r as Dropdown,
23
26
  r as default
24
27
  };
@@ -1,64 +1,64 @@
1
- import { jsxs as N, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as g } from "react";
3
- import { c as S } from "./bind-06a7ff84.js";
4
- import { S as y } from "./clear-53660571.js";
1
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as N } from "react";
3
+ import { c as g } from "./bind-06a7ff84.js";
4
+ import { S } from "./clear-53660571.js";
5
5
  import { S as D, a as k } from "./filterOutline-819b4b0d.js";
6
6
  import "react-dnd";
7
7
  import "react-dnd-html5-backend";
8
8
  import { u as x } from "./useEllipsisTitle-462fa254.js";
9
- const F = "_opened_ntvuh_37", T = "_icon_ntvuh_98", j = "_disabled_ntvuh_115", E = {
10
- "filters-icon-container": "_filters-icon-container_ntvuh_16",
11
- "filter-icon": "_filter-icon_ntvuh_34",
9
+ const F = "_opened_1ytvw_37", T = "_icon_1ytvw_95", j = "_disabled_1ytvw_112", E = {
10
+ "filters-icon-container": "_filters-icon-container_1ytvw_16",
11
+ "filter-icon": "_filter-icon_1ytvw_34",
12
12
  opened: F,
13
- "with-applied": "_with-applied_ntvuh_43",
14
- "filters-count": "_filters-count_ntvuh_52",
15
- "clear-wrapper": "_clear-wrapper_ntvuh_89",
13
+ "with-applied": "_with-applied_1ytvw_43",
14
+ "filters-count": "_filters-count_1ytvw_51",
15
+ "clear-wrapper": "_clear-wrapper_1ytvw_86",
16
16
  icon: T,
17
- "clear-icon": "_clear-icon_ntvuh_98",
17
+ "clear-icon": "_clear-icon_1ytvw_95",
18
18
  disabled: j
19
- }, n = S.bind(E), q = g(
19
+ }, o = g.bind(E), q = N(
20
20
  ({
21
21
  appliedFiltersCount: l = 0,
22
22
  isOpen: f = !1,
23
23
  className: _,
24
24
  type: d = "button",
25
- text: r,
25
+ text: n,
26
26
  filtersLabelClassName: c,
27
- clearable: u = !1,
27
+ clearable: m = !1,
28
28
  onClear: i,
29
- clearButtonAriaLabel: m = "Clear filters",
30
- ...h
31
- }, v) => {
32
- const o = l > 0, s = r !== void 0 && r !== "", b = s ? r : o ? l : void 0, { ref: a, title: p } = x(b), w = n("filters-icon-container", _, {
33
- "with-applied": o || s,
29
+ clearButtonAriaLabel: w = "Clear filters",
30
+ ...v
31
+ }, u) => {
32
+ const s = l > 0, r = n !== void 0 && n !== "", y = r ? n : s ? l : void 0, { ref: a, title: p } = x(y), b = o("filters-icon-container", _, {
33
+ "with-applied": s || r,
34
34
  opened: f
35
35
  });
36
- return /* @__PURE__ */ N("button", { type: d, className: w, ref: v, ...h, children: [
37
- /* @__PURE__ */ e("span", { className: n("filter-icon"), children: o || s ? /* @__PURE__ */ e(D, {}) : /* @__PURE__ */ e(k, {}) }),
38
- s ? /* @__PURE__ */ e(
36
+ return /* @__PURE__ */ h("button", { type: d, className: b, ref: u, ...v, children: [
37
+ /* @__PURE__ */ e("span", { className: o("filter-icon"), children: s ? /* @__PURE__ */ e(D, {}) : /* @__PURE__ */ e(k, {}) }),
38
+ r ? /* @__PURE__ */ e(
39
39
  "span",
40
40
  {
41
41
  ref: a,
42
42
  title: p,
43
- className: n("filters-count", c),
44
- children: r
43
+ className: o("filters-count", c),
44
+ children: n
45
45
  }
46
- ) : o ? /* @__PURE__ */ e(
46
+ ) : s ? /* @__PURE__ */ e(
47
47
  "span",
48
48
  {
49
49
  ref: a,
50
50
  title: p,
51
- className: n("filters-count", c),
51
+ className: o("filters-count", c),
52
52
  children: l
53
53
  }
54
54
  ) : null,
55
- u && (o || s) && /* @__PURE__ */ e("div", { className: n("clear-wrapper"), children: /* @__PURE__ */ e(
55
+ m && (s || r) && /* @__PURE__ */ e("div", { className: o("clear-wrapper"), children: /* @__PURE__ */ e(
56
56
  "span",
57
57
  {
58
58
  role: "button",
59
59
  tabIndex: 0,
60
- "aria-label": m,
61
- className: n("clear-icon"),
60
+ "aria-label": w,
61
+ className: o("clear-icon"),
62
62
  onClick: (t) => {
63
63
  t.stopPropagation(), i == null || i();
64
64
  },
@@ -66,7 +66,7 @@ const F = "_opened_ntvuh_37", T = "_icon_ntvuh_98", j = "_disabled_ntvuh_115", E
66
66
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), i == null || i());
67
67
  },
68
68
  onMouseDown: (t) => t.preventDefault(),
69
- children: /* @__PURE__ */ e(y, {})
69
+ children: /* @__PURE__ */ e(S, {})
70
70
  }
71
71
  ) })
72
72
  ] });
package/dist/index.js CHANGED
@@ -9,9 +9,9 @@ import { BulkPanel as J } from "./bulkPanel.js";
9
9
  import { B as _ } from "./button-97d9e587.js";
10
10
  import { C as W } from "./checkbox-493fdc63.js";
11
11
  import { Chip as j } from "./chip.js";
12
- import { D as K } from "./datePicker-cde99de3.js";
12
+ import { D as K } from "./datePicker-76a82d23.js";
13
13
  import "react-datepicker";
14
- import { D as Y } from "./dropdown-7d024c49.js";
14
+ import { D as Y } from "./dropdown-e853293f.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";
package/dist/modal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as r, Fragment as F } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as c, Fragment as F } from "react/jsx-runtime";
2
2
  import { useState as v, useRef as G, useEffect as x, useMemo as K } from "react";
3
3
  import { Scrollbars as U } from "rc-scrollbars";
4
4
  import { AnimatePresence as Y, motion as X } from "framer-motion";
@@ -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-7d024c49.js";
10
+ import { a as Q } from "./dropdown-e853293f.js";
11
11
  import { K as V } from "./keyCodes-f63c0e11.js";
12
12
  import { B as A } from "./button-97d9e587.js";
13
13
  import { Tooltip as Z } from "./tooltip.js";
@@ -21,6 +21,7 @@ import "./dropdown-0260bb66.js";
21
21
  import "./fieldLabel.js";
22
22
  import "./adaptiveTagList.js";
23
23
  import "./isEmpty-ccacb5ff.js";
24
+ import "./useEllipsisTitle-462fa254.js";
24
25
  import "./checkbox-493fdc63.js";
25
26
  import "@floating-ui/react";
26
27
  import "./floatingUi-41f8c7b5.js";
@@ -43,9 +44,9 @@ const eo = {
43
44
  const m = /* @__PURE__ */ o(A, { adjustWidthOn: l === "small" ? "parent" : "min-width", ...d });
44
45
  return u ? /* @__PURE__ */ o(Z, { content: u, placement: "top", width: 270, children: m }) : m;
45
46
  };
46
- return /* @__PURE__ */ r("div", { className: h("modal-footer", { "with-extra-node": e, [`size-${l}`]: l }), children: [
47
+ return /* @__PURE__ */ c("div", { className: h("modal-footer", { "with-extra-node": e, [`size-${l}`]: l }), children: [
47
48
  e && e,
48
- /* @__PURE__ */ r("div", { className: h("buttons-block"), children: [
49
+ /* @__PURE__ */ c("div", { className: h("buttons-block"), children: [
49
50
  p && /* @__PURE__ */ o("div", { className: h("button-container"), children: /* @__PURE__ */ o(
50
51
  A,
51
52
  {
@@ -64,22 +65,22 @@ const eo = {
64
65
  "modal-header-content": "_modal-header-content_w4aaf_14",
65
66
  "modal-title": "_modal-title_w4aaf_20",
66
67
  "close-modal-icon": "_close-modal-icon_w4aaf_29"
67
- }, f = w.bind(so), io = ({ title: e, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ r("div", { className: f("modal-header", { "width-description": a }), children: [
68
+ }, f = w.bind(so), io = ({ title: e, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ c("div", { className: f("modal-header", { "width-description": a }), children: [
68
69
  /* @__PURE__ */ o("div", { className: f("modal-header-content"), children: e && /* @__PURE__ */ o("div", { className: f("modal-title"), children: e }) }),
69
70
  /* @__PURE__ */ o(oo, { className: f("close-modal-icon"), onClick: n, children: /* @__PURE__ */ o(to, {}) })
70
- ] }), co = "_modal_35896_1", ro = "_description_35896_43", mo = {
71
- modal: co,
71
+ ] }), ro = "_modal_35896_1", co = "_description_35896_43", mo = {
72
+ modal: ro,
72
73
  "overlay-default": "_overlay-default_35896_12",
73
74
  "overlay-light-cyan": "_overlay-light-cyan_35896_16",
74
75
  "scrolling-content": "_scrolling-content_35896_20",
75
76
  "modal-window": "_modal-window_35896_26",
76
- description: ro,
77
+ description: co,
77
78
  "scrollable-wrapper": "_scrollable-wrapper_35896_54",
78
79
  "scrollable-content": "_scrollable-content_35896_58",
79
80
  "size-default": "_size-default_35896_62",
80
81
  "size-small": "_size-small_35896_74",
81
82
  "size-large": "_size-large_35896_86"
82
- }, c = w.bind(mo), _o = 0.9, po = 32 + 24, uo = 32 + 8, ho = 36 + 16, fo = 32 * 2, Fo = ({
83
+ }, r = w.bind(mo), _o = 0.9, po = 32 + 24, uo = 32 + 8, ho = 36 + 16, fo = 32 * 2, Go = ({
83
84
  title: e,
84
85
  children: n,
85
86
  footerNode: a,
@@ -121,10 +122,10 @@ const eo = {
121
122
  }),
122
123
  []
123
124
  );
124
- return q(i, C ? _ : void 0, B), /* @__PURE__ */ o(Y, { onExitComplete: g, children: I && /* @__PURE__ */ o("div", { className: c("modal", { [`overlay-${m}`]: m }), style: { zIndex: D }, children: /* @__PURE__ */ r(
125
+ return q(i, C ? _ : void 0, B), /* @__PURE__ */ o(Y, { onExitComplete: g, children: I && /* @__PURE__ */ o("div", { className: r("modal", { [`overlay-${m}`]: m }), style: { zIndex: D }, children: /* @__PURE__ */ c(
125
126
  X.div,
126
127
  {
127
- className: c("modal-window", { [`size-${d}`]: d }, u),
128
+ className: r("modal-window", { [`size-${d}`]: d }, u),
128
129
  ref: i,
129
130
  tabIndex: 0,
130
131
  initial: { opacity: 0, marginTop: -b },
@@ -134,19 +135,19 @@ const eo = {
134
135
  onAnimationStart: W,
135
136
  children: [
136
137
  /* @__PURE__ */ o(io, { title: e, onClose: _, withDescription: !!s }),
137
- k ? /* @__PURE__ */ o("div", { className: c("scrollable-wrapper"), children: /* @__PURE__ */ o(
138
+ k ? /* @__PURE__ */ o("div", { className: r("scrollable-wrapper"), children: /* @__PURE__ */ o(
138
139
  U,
139
140
  {
140
141
  autoHeight: !0,
141
142
  autoHeightMax: P(),
142
143
  hideTracksWhenNotNeeded: !0,
143
- children: /* @__PURE__ */ r("div", { className: c("scrollable-content"), children: [
144
- s && /* @__PURE__ */ o("span", { className: c("description"), children: s }),
144
+ children: /* @__PURE__ */ c("div", { className: r("scrollable-content"), children: [
145
+ s && /* @__PURE__ */ o("span", { className: r("description"), children: s }),
145
146
  /* @__PURE__ */ o(T, { children: n })
146
147
  ] })
147
148
  }
148
- ) }) : /* @__PURE__ */ r(F, { children: [
149
- s && /* @__PURE__ */ o("span", { className: c("description"), children: s }),
149
+ ) }) : /* @__PURE__ */ c(F, { children: [
150
+ s && /* @__PURE__ */ o("span", { className: r("description"), children: s }),
150
151
  /* @__PURE__ */ o(T, { children: n })
151
152
  ] }),
152
153
  !y && (N ? N(_) : /* @__PURE__ */ o(
@@ -165,7 +166,7 @@ const eo = {
165
166
  ) }) });
166
167
  };
167
168
  export {
168
- Fo as Modal,
169
+ Go as Modal,
169
170
  T as ModalContent,
170
171
  lo as ModalFooter,
171
172
  io as ModalHeader
package/dist/sidePanel.js CHANGED
@@ -5,7 +5,7 @@ import { K as A } from "./keyCodes-f63c0e11.js";
5
5
  import { u as B } from "./useOnClickOutside-8f7d68a1.js";
6
6
  import "react-dnd";
7
7
  import "react-dnd-html5-backend";
8
- import { a as L } from "./dropdown-7d024c49.js";
8
+ import { a as L } from "./dropdown-e853293f.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";
@@ -18,6 +18,7 @@ import "./fieldLabel.js";
18
18
  import "./adaptiveTagList.js";
19
19
  import "./button-97d9e587.js";
20
20
  import "./isEmpty-ccacb5ff.js";
21
+ import "./useEllipsisTitle-462fa254.js";
21
22
  import "./checkbox-493fdc63.js";
22
23
  const M = "_active_5ebdz_11", F = "_compact_5ebdz_62", H = "_header_5ebdz_58", O = "_title_5ebdz_88", U = "_description_5ebdz_99", W = "_content_5ebdz_108", Y = "_footer_5ebdz_115", q = "_divider_5ebdz_121", w = {
23
24
  "side-panel-overlay": "_side-panel-overlay_5ebdz_1",
@@ -37,16 +38,16 @@ const M = "_active_5ebdz_11", F = "_compact_5ebdz_62", H = "_header_5ebdz_58", O
37
38
  content: W,
38
39
  footer: Y,
39
40
  divider: q
40
- }, e = $.bind(w), ve = ({
41
+ }, e = $.bind(w), fe = ({
41
42
  className: u,
42
- title: r,
43
+ title: d,
43
44
  descriptionComponent: o,
44
45
  headerComponent: c,
45
46
  contentComponent: n,
46
47
  footerComponent: l,
47
48
  top: _ = 0,
48
49
  side: z = "right",
49
- isOpen: d = !0,
50
+ isOpen: r = !0,
50
51
  onClose: t,
51
52
  closeButtonAriaLabel: y = "Close panel",
52
53
  showOverlay: m = !1,
@@ -64,10 +65,10 @@ const M = "_active_5ebdz_11", F = "_compact_5ebdz_62", H = "_header_5ebdz_58", O
64
65
  );
65
66
  B(
66
67
  f,
67
- s && m && d ? t : void 0,
68
+ s && m && r ? t : void 0,
68
69
  E
69
70
  ), P(() => {
70
- if (!d || !t)
71
+ if (!r || !t)
71
72
  return;
72
73
  const b = (x) => {
73
74
  const { keyCode: R } = x;
@@ -76,22 +77,22 @@ const M = "_active_5ebdz_11", F = "_compact_5ebdz_62", H = "_header_5ebdz_58", O
76
77
  return document.addEventListener("keydown", b, !1), () => {
77
78
  document.removeEventListener("keydown", b, !1);
78
79
  };
79
- }, [d, t, s]);
80
+ }, [r, t, s]);
80
81
  const k = !!(c || o), h = /* @__PURE__ */ a(
81
82
  "aside",
82
83
  {
83
84
  ref: f,
84
- className: e("side-panel", `side-${z}`, { active: d }, u),
85
+ className: e("side-panel", `side-${z}`, { active: r }, u),
85
86
  role: "dialog",
86
87
  "aria-modal": "true",
87
- "aria-hidden": !d,
88
- "aria-labelledby": r ? v : void 0,
88
+ "aria-hidden": !r,
89
+ "aria-labelledby": d ? v : void 0,
89
90
  style: { top: _, height: `calc(100vh - ${_}px)` },
90
91
  tabIndex: -1,
91
92
  children: [
92
93
  /* @__PURE__ */ a("div", { className: e("header-section", { compact: !k }), children: [
93
- (c || r) && /* @__PURE__ */ a("div", { className: e("header"), children: [
94
- r ? /* @__PURE__ */ i("span", { id: v, className: e("title"), children: r }) : c,
94
+ (c || d) && /* @__PURE__ */ a("div", { className: e("header"), children: [
95
+ d ? /* @__PURE__ */ i("span", { id: v, className: e("title"), children: d }) : c,
95
96
  t && /* @__PURE__ */ i(
96
97
  j,
97
98
  {
@@ -118,7 +119,7 @@ const M = "_active_5ebdz_11", F = "_compact_5ebdz_62", H = "_header_5ebdz_58", O
118
119
  {
119
120
  className: e(
120
121
  "side-panel-overlay",
121
- { active: d },
122
+ { active: r },
122
123
  p && `overlay-${p}`,
123
124
  N
124
125
  ),
@@ -127,5 +128,5 @@ const M = "_active_5ebdz_11", F = "_compact_5ebdz_62", H = "_header_5ebdz_58", O
127
128
  ) : h;
128
129
  };
129
130
  export {
130
- ve as SidePanel
131
+ fe as SidePanel
131
132
  };