@reportportal/ui-kit 0.0.1-alpha.263 → 0.0.1-alpha.265

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
@@ -1,14 +1,15 @@
1
- import { jsxs as a, jsx as i, Fragment as x } from "react/jsx-runtime";
2
- import { useId as A, useRef as O, useMemo as P, useEffect as S } from "react";
3
- import { c as $ } from "./bind-06a7ff84.js";
4
- import { K as D } from "./keyCodes-f63c0e11.js";
5
- import { u as K } from "./useOnClickOutside-8f7d68a1.js";
1
+ import { jsxs as a, jsx as i, Fragment as P } from "react/jsx-runtime";
2
+ import { useId as I, useRef as k, useMemo as x, useEffect as $ } from "react";
3
+ import { c as L } from "./bind-06a7ff84.js";
4
+ import { K as S } from "./keyCodes-f63c0e11.js";
5
+ import { u as D } from "./useOnClickOutside-8f7d68a1.js";
6
6
  import "react-dnd";
7
7
  import "react-dnd-html5-backend";
8
- import { a as L } from "./dropdown-2b7f4f78.js";
9
- import { N as B } from "./constants-49d50d11.js";
10
- import { S as j } from "./close-4d480ef7.js";
11
- import { B as w } from "./baseIconButton-f1c96f52.js";
8
+ import { a as K } from "./dropdown-2b7f4f78.js";
9
+ import { POPOVER_PORTAL_ATTR as B } from "./popover.js";
10
+ import { N as j } from "./constants-b2831c98.js";
11
+ import { S as w } from "./close-4d480ef7.js";
12
+ import { B as F } from "./baseIconButton-f1c96f52.js";
12
13
  import "react-dom";
13
14
  import "@floating-ui/react-dom";
14
15
  import "downshift";
@@ -25,25 +26,25 @@ import "./tooltip.js";
25
26
  import "@floating-ui/react";
26
27
  import "./floatingUi-46f5b896.js";
27
28
  import "./constants-85822a6b.js";
28
- const F = "_active_5ebdz_11", M = "_compact_5ebdz_62", H = "_header_5ebdz_58", U = "_title_5ebdz_88", W = "_description_5ebdz_99", Y = "_content_5ebdz_108", q = "_footer_5ebdz_115", G = "_divider_5ebdz_121", J = {
29
+ const M = "_active_5ebdz_11", H = "_compact_5ebdz_62", U = "_header_5ebdz_58", V = "_title_5ebdz_88", W = "_description_5ebdz_99", Y = "_content_5ebdz_108", q = "_footer_5ebdz_115", G = "_divider_5ebdz_121", J = {
29
30
  "side-panel-overlay": "_side-panel-overlay_5ebdz_1",
30
- active: F,
31
+ active: M,
31
32
  "overlay-default": "_overlay-default_5ebdz_16",
32
33
  "overlay-light-cyan": "_overlay-light-cyan_5ebdz_20",
33
34
  "side-panel": "_side-panel_5ebdz_1",
34
35
  "side-right": "_side-right_5ebdz_42",
35
36
  "side-left": "_side-left_5ebdz_50",
36
37
  "header-section": "_header-section_5ebdz_58",
37
- compact: M,
38
- header: H,
38
+ compact: H,
39
+ header: U,
39
40
  "header-content": "_header-content_5ebdz_78",
40
41
  "close-button": "_close-button_5ebdz_82",
41
- title: U,
42
+ title: V,
42
43
  description: W,
43
44
  content: Y,
44
45
  footer: q,
45
46
  divider: G
46
- }, e = $.bind(J), ge = ({
47
+ }, e = L.bind(J), Ee = ({
47
48
  className: b,
48
49
  title: d,
49
50
  descriptionComponent: s,
@@ -59,32 +60,36 @@ const F = "_active_5ebdz_11", M = "_compact_5ebdz_62", H = "_header_5ebdz_58", U
59
60
  showOverlay: _ = !1,
60
61
  overlay: m = "default",
61
62
  allowCloseOutside: N = !0,
62
- overlayClassName: g
63
+ overlayClassName: T
63
64
  }) => {
64
- const p = A(), v = O(null), E = () => {
65
+ const p = I(), v = k(null), g = () => {
65
66
  t == null || t();
66
- }, T = P(
67
+ }, E = x(
67
68
  () => ({
68
- ignoreSelectors: [`[${L}]`, `[${B}]`]
69
+ ignoreSelectors: [
70
+ `[${K}]`,
71
+ `[${B}]`,
72
+ `[${j}]`
73
+ ]
69
74
  }),
70
75
  []
71
76
  );
72
- K(
77
+ D(
73
78
  v,
74
79
  N && _ && r ? t : void 0,
75
- T
76
- ), S(() => {
80
+ E
81
+ ), $(() => {
77
82
  if (!r || !t)
78
83
  return;
79
- const h = (R) => {
80
- const { keyCode: k } = R;
81
- k === D.ESCAPE_KEY_CODE && t();
84
+ const h = (O) => {
85
+ const { keyCode: A } = O;
86
+ A === S.ESCAPE_KEY_CODE && t();
82
87
  };
83
88
  return document.addEventListener("keydown", h, !1), () => {
84
89
  document.removeEventListener("keydown", h, !1);
85
90
  };
86
91
  }, [r, t]);
87
- const I = !!(o || s), f = /* @__PURE__ */ a(
92
+ const R = !!(o || s), f = /* @__PURE__ */ a(
88
93
  "aside",
89
94
  {
90
95
  ref: v,
@@ -96,16 +101,16 @@ const F = "_active_5ebdz_11", M = "_compact_5ebdz_62", H = "_header_5ebdz_58", U
96
101
  style: { top: n, height: `calc(100vh - ${n}px)` },
97
102
  tabIndex: -1,
98
103
  children: [
99
- /* @__PURE__ */ a("div", { className: e("header-section", { compact: !I }), children: [
104
+ /* @__PURE__ */ a("div", { className: e("header-section", { compact: !R }), children: [
100
105
  (o || d) && /* @__PURE__ */ a("div", { className: e("header"), children: [
101
106
  d ? /* @__PURE__ */ i("span", { id: p, className: e("title"), children: d }) : o,
102
107
  t && /* @__PURE__ */ i(
103
- w,
108
+ F,
104
109
  {
105
110
  className: e("close-button"),
106
- onClick: E,
111
+ onClick: g,
107
112
  "aria-label": y,
108
- children: /* @__PURE__ */ i(j, {})
113
+ children: /* @__PURE__ */ i(w, {})
109
114
  }
110
115
  )
111
116
  ] }),
@@ -113,7 +118,7 @@ const F = "_active_5ebdz_11", M = "_compact_5ebdz_62", H = "_header_5ebdz_58", U
113
118
  ] }),
114
119
  /* @__PURE__ */ i("div", { className: e("divider") }),
115
120
  c && /* @__PURE__ */ i("div", { className: e("content", u), children: c }),
116
- l && /* @__PURE__ */ a(x, { children: [
121
+ l && /* @__PURE__ */ a(P, { children: [
117
122
  /* @__PURE__ */ i("div", { className: e("divider") }),
118
123
  /* @__PURE__ */ i("div", { className: e("footer"), children: l })
119
124
  ] })
@@ -127,12 +132,12 @@ const F = "_active_5ebdz_11", M = "_compact_5ebdz_62", H = "_header_5ebdz_58", U
127
132
  "side-panel-overlay",
128
133
  { active: r },
129
134
  m && `overlay-${m}`,
130
- g
135
+ T
131
136
  ),
132
137
  children: f
133
138
  }
134
139
  ) : f;
135
140
  };
136
141
  export {
137
- ge as SidePanel
142
+ Ee as SidePanel
138
143
  };