@reportportal/ui-kit 0.0.1-alpha.171 → 0.0.1-alpha.173

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/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
  };