@reportportal/ui-kit 0.0.1-alpha.116 → 0.0.1-alpha.117

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,69 +1,69 @@
1
- import { jsxs as i, jsx as t, Fragment as f } from "react/jsx-runtime";
2
- import { useId as p } from "react";
3
- import { c as N } from "./bind-06a7ff84.js";
4
- import { S as b } from "./close-4d480ef7.js";
5
- import { B as u } from "./baseIconButton-251479f7.js";
6
- const g = "_active_tzacv_15", x = "_header_tzacv_35", I = "_title_tzacv_59", y = "_description_tzacv_70", B = "_content_tzacv_79", S = "_footer_tzacv_86", j = "_divider_tzacv_92", $ = {
7
- "side-panel": "_side-panel_tzacv_1",
1
+ import { jsxs as a, jsx as i, Fragment as w } from "react/jsx-runtime";
2
+ import { useId as f } from "react";
3
+ import { c as p } from "./bind-06a7ff84.js";
4
+ import { S as N } from "./close-4d480ef7.js";
5
+ import { B as b } from "./baseIconButton-251479f7.js";
6
+ const g = "_active_niweu_15", x = "_header_niweu_35", I = "_title_niweu_62", y = "_description_niweu_73", B = "_content_niweu_82", S = "_footer_niweu_89", j = "_divider_niweu_95", $ = {
7
+ "side-panel": "_side-panel_niweu_1",
8
8
  active: g,
9
- "side-right": "_side-right_tzacv_19",
10
- "side-left": "_side-left_tzacv_27",
11
- "header-section": "_header-section_tzacv_35",
9
+ "side-right": "_side-right_niweu_19",
10
+ "side-left": "_side-left_niweu_27",
11
+ "header-section": "_header-section_niweu_35",
12
12
  header: x,
13
- "header-content": "_header-content_tzacv_51",
14
- "close-button": "_close-button_tzacv_55",
13
+ "header-content": "_header-content_niweu_52",
14
+ "close-button": "_close-button_niweu_56",
15
15
  title: I,
16
16
  description: y,
17
17
  content: B,
18
18
  footer: S,
19
19
  divider: j
20
- }, e = N.bind($), A = ({
20
+ }, e = p.bind($), A = ({
21
21
  className: _,
22
- title: a,
23
- descriptionComponent: v,
24
- headerComponent: s,
25
- contentComponent: d,
26
- footerComponent: r,
27
- top: n = 0,
28
- side: h = "right",
22
+ title: t,
23
+ descriptionComponent: h,
24
+ headerComponent: d,
25
+ contentComponent: n,
26
+ footerComponent: c,
27
+ top: r = 0,
28
+ side: u = "right",
29
29
  isOpen: l = !0,
30
- onClose: c,
30
+ onClose: s,
31
31
  closeButtonAriaLabel: m = "Close panel"
32
32
  }) => {
33
- const o = p(), z = () => {
34
- c == null || c();
33
+ const o = f(), v = () => {
34
+ s == null || s();
35
35
  };
36
- return /* @__PURE__ */ i(
36
+ return /* @__PURE__ */ a(
37
37
  "aside",
38
38
  {
39
- className: e("side-panel", `side-${h}`, { active: l }, _),
39
+ className: e("side-panel", `side-${u}`, { active: l }, _),
40
40
  role: "dialog",
41
41
  "aria-modal": "true",
42
42
  "aria-hidden": !l,
43
- "aria-labelledby": a ? o : void 0,
44
- style: { top: n, height: `calc(100vh - ${n}px)` },
43
+ "aria-labelledby": t ? o : void 0,
44
+ style: { top: r, height: `calc(100vh - ${r}px)` },
45
45
  tabIndex: -1,
46
46
  children: [
47
- /* @__PURE__ */ i("div", { className: e("header-section"), children: [
48
- (s || a) && /* @__PURE__ */ i("div", { className: e("header"), children: [
49
- a ? /* @__PURE__ */ t("span", { id: o, className: e("title"), children: a }) : s,
50
- c && /* @__PURE__ */ t(
51
- u,
47
+ /* @__PURE__ */ a("div", { className: e("header-section"), children: [
48
+ (d || t) && /* @__PURE__ */ a("div", { className: e("header"), children: [
49
+ t ? /* @__PURE__ */ i("span", { id: o, className: e("title"), children: t }) : d,
50
+ s && /* @__PURE__ */ i(
51
+ b,
52
52
  {
53
53
  className: e("close-button"),
54
- onClick: z,
54
+ onClick: v,
55
55
  "aria-label": m,
56
- children: /* @__PURE__ */ t(b, {})
56
+ children: /* @__PURE__ */ i(N, {})
57
57
  }
58
58
  )
59
59
  ] }),
60
- v
60
+ h
61
61
  ] }),
62
- /* @__PURE__ */ t("div", { className: e("divider") }),
63
- d && /* @__PURE__ */ t("div", { className: e("content"), children: d }),
64
- r && /* @__PURE__ */ i(f, { children: [
65
- /* @__PURE__ */ t("div", { className: e("divider") }),
66
- /* @__PURE__ */ t("div", { className: e("footer"), children: r })
62
+ /* @__PURE__ */ i("div", { className: e("divider") }),
63
+ n && /* @__PURE__ */ i("div", { className: e("content"), children: n }),
64
+ c && /* @__PURE__ */ a(w, { children: [
65
+ /* @__PURE__ */ i("div", { className: e("divider") }),
66
+ /* @__PURE__ */ i("div", { className: e("footer"), children: c })
67
67
  ] })
68
68
  ]
69
69
  }