@reportportal/ui-kit 0.0.1-alpha.121 → 0.0.1-alpha.123

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/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { A as C } from "./index-1a874a8b.js";
2
2
  import { B as g } from "./baseIconButton-251479f7.js";
3
3
  import { B as y } from "./breadcrumbs-8e5ca8d7.js";
4
- import { B as b } from "./bubblesLoader-f3ffa240.js";
5
- import { B as A } from "./button-97d9e587.js";
4
+ import { B as T } from "./bubblesLoader-f3ffa240.js";
5
+ import { B as h } from "./button-97d9e587.js";
6
6
  import { C as v } from "./checkbox-ed6cc375.js";
7
7
  import { D as w } from "./datePicker-fcff097b.js";
8
8
  import "react-datepicker";
@@ -12,33 +12,35 @@ import { F as U } from "./fieldNumber-d1b5a7a1.js";
12
12
  import { F as J } from "./fieldText-2c4790e1.js";
13
13
  import { F as z } from "./fieldTextFlex-2f51c173.js";
14
14
  import { FileDropArea as W } from "./fileDropArea.js";
15
- import { Modal as j } from "./modal.js";
16
- import { MultipleAutocomplete as K, SingleAutocomplete as Q } from "./autocompletes.js";
17
- import { P as Y } from "./pagination-5cc0ebdd.js";
18
- import { Popover as _ } from "./popover.js";
19
- import { R as oo } from "./radio-62546efa.js";
20
- import { S as eo } from "./selection-9124d029.js";
21
- import { S as to } from "./spinLoader-c4a53718.js";
22
- import { SystemAlert as co } from "./systemAlert.js";
23
- import { S as io } from "./systemMessage-924fdaa6.js";
24
- import { T as mo } from "./table-8e223d5d.js";
25
- import { T as lo } from "./themeProvider-46c2be7b.js";
26
- import { T as fo } from "./toggle-304107fa.js";
27
- import { Tooltip as So } from "./tooltip.js";
28
- import { SidePanel as Co } from "./sidePanel.js";
29
- import { AddCsvIcon as go, AddImageIcon as Do, AddJarIcon as yo, BreadcrumbsTreeIcon as To, CalendarIcon as bo, CheckmarkIcon as ho, ChevronRightBreadcrumbsIcon as Ao, ConfigurationIcon as Bo, CopyIcon as vo, CoverageFullIcon as Mo, CoveragePartialIcon as wo, CoveredManuallyIcon as ko, DeleteIcon as Eo, DragAndDropIcon as Lo, DragNDropIcon as Ro, DurationIcon as Oo, EditIcon as Uo, ExportIcon as Ho, FilterFilledIcon as Jo, FilterOutlineIcon as No, FlagIcon as zo, GroupByIcon as Go, HideIcon as Wo, LaunchTypeIcon as Xo, MaximizeIcon as jo, MoveToFolderIcon as qo, PinFilledIcon as Ko, PinOutlineIcon as Qo, PriorityBlockerIcon as Vo, PriorityCriticalIcon as Yo, PriorityHighIcon as Zo, PriorityLowIcon as _o, PriorityMediumIcon as $o, PriorityUnspecifiedIcon as or, RefreshIcon as rr, RerunIcon as er, RunManualIcon as nr, SearchIcon as tr, SortIcon as ar, StatusSuccessIcon as cr, TestPlanIcon as pr, UserIcon as ir, WarningIcon as Ir } from "./icons.js";
30
- import { S as sr, a as lr, b as xr } from "./chevronDownDropdown-66f5b1af.js";
15
+ import { FiltersButton as j } from "./filtersButton.js";
16
+ import { Modal as K } from "./modal.js";
17
+ import { MultipleAutocomplete as V, SingleAutocomplete as Y } from "./autocompletes.js";
18
+ import { P as _ } from "./pagination-5cc0ebdd.js";
19
+ import { Popover as oo } from "./popover.js";
20
+ import { R as eo } from "./radio-62546efa.js";
21
+ import { S as to } from "./selection-9124d029.js";
22
+ import { S as co } from "./spinLoader-c4a53718.js";
23
+ import { SystemAlert as io } from "./systemAlert.js";
24
+ import { S as so } from "./systemMessage-924fdaa6.js";
25
+ import { T as lo } from "./table-8e223d5d.js";
26
+ import { T as fo } from "./themeProvider-46c2be7b.js";
27
+ import { T as So } from "./toggle-304107fa.js";
28
+ import { Tooltip as Co } from "./tooltip.js";
29
+ import { SidePanel as go } from "./sidePanel.js";
30
+ import { AddCsvIcon as yo, AddImageIcon as Bo, AddJarIcon as To, BreadcrumbsTreeIcon as bo, CalendarIcon as ho, CheckmarkIcon as Ao, ChevronRightBreadcrumbsIcon as vo, ConfigurationIcon as Mo, CopyIcon as wo, CoverageFullIcon as ko, CoveragePartialIcon as Eo, CoveredManuallyIcon as Lo, DeleteIcon as Ro, DragAndDropIcon as Oo, DragNDropIcon as Uo, DurationIcon as Ho, EditIcon as Jo, ExportIcon as No, FlagIcon as zo, GroupByIcon as Go, HideIcon as Wo, LaunchTypeIcon as Xo, MaximizeIcon as jo, MoveToFolderIcon as qo, PinFilledIcon as Ko, PinOutlineIcon as Qo, PriorityBlockerIcon as Vo, PriorityCriticalIcon as Yo, PriorityHighIcon as Zo, PriorityLowIcon as _o, PriorityMediumIcon as $o, PriorityUnspecifiedIcon as or, RefreshIcon as rr, RerunIcon as er, RunManualIcon as nr, SearchIcon as tr, SortIcon as ar, StatusSuccessIcon as cr, TestPlanIcon as pr, UserIcon as ir, WarningIcon as mr } from "./icons.js";
31
+ import { S as Ir, a as lr, b as xr } from "./chevronDownDropdown-66f5b1af.js";
31
32
  import { S as dr } from "./calendarArrow-44c7e60e.js";
32
33
  import { S as Sr } from "./clear-53660571.js";
33
34
  import { S as Cr, a as Fr } from "./openEye-950159cb.js";
34
35
  import { S as Dr } from "./close-4d480ef7.js";
35
- import { S as Tr, a as br, b as hr, c as Ar, d as Br, e as vr, f as Mr } from "./xls-995781cc.js";
36
+ import { S as Br, a as Tr, b as br, c as hr, d as Ar, e as vr, f as Mr } from "./xls-995781cc.js";
36
37
  import { S as kr } from "./dropdown-0260bb66.js";
37
38
  import { S as Lr, a as Rr, b as Or } from "./success-8fd8bd2c.js";
38
- import { S as Hr, a as Jr } from "./tree-c3dd3d45.js";
39
- import { S as zr } from "./minus-2857540f.js";
40
- import { S as Wr } from "./plus-199fb2a8.js";
41
- import { S as jr, a as qr } from "./prevPage-87faf576.js";
39
+ import { S as Hr, a as Jr } from "./filterOutline-819b4b0d.js";
40
+ import { S as zr, a as Gr } from "./tree-c3dd3d45.js";
41
+ import { S as Xr } from "./minus-2857540f.js";
42
+ import { S as qr } from "./plus-199fb2a8.js";
43
+ import { S as Qr, a as Vr } from "./prevPage-87faf576.js";
42
44
  import "react/jsx-runtime";
43
45
  import "react";
44
46
  import "./bind-06a7ff84.js";
@@ -56,100 +58,101 @@ import "@floating-ui/react";
56
58
  import "./floatingUi-41f8c7b5.js";
57
59
  import "react-dom";
58
60
  export {
59
- go as AddCsvIcon,
60
- Do as AddImageIcon,
61
- yo as AddJarIcon,
62
- sr as ArrowDownIcon,
61
+ yo as AddCsvIcon,
62
+ Bo as AddImageIcon,
63
+ To as AddJarIcon,
64
+ Ir as ArrowDownIcon,
63
65
  lr as ArrowUpIcon,
64
66
  C as AttachedFile,
65
67
  g as BaseIconButton,
66
68
  y as Breadcrumbs,
67
- To as BreadcrumbsTreeIcon,
68
- b as BubblesLoader,
69
- A as Button,
69
+ bo as BreadcrumbsTreeIcon,
70
+ T as BubblesLoader,
71
+ h as Button,
70
72
  dr as CalendarArrowIcon,
71
- bo as CalendarIcon,
73
+ ho as CalendarIcon,
72
74
  v as Checkbox,
73
- ho as CheckmarkIcon,
75
+ Ao as CheckmarkIcon,
74
76
  xr as ChevronDownDropdownIcon,
75
- Ao as ChevronRightBreadcrumbsIcon,
77
+ vo as ChevronRightBreadcrumbsIcon,
76
78
  Sr as ClearIcon,
77
79
  Cr as CloseEyeIcon,
78
80
  Dr as CloseIcon,
79
- Bo as ConfigurationIcon,
80
- vo as CopyIcon,
81
- Mo as CoverageFullIcon,
82
- wo as CoveragePartialIcon,
83
- ko as CoveredManuallyIcon,
84
- Tr as CsvIcon,
81
+ Mo as ConfigurationIcon,
82
+ wo as CopyIcon,
83
+ ko as CoverageFullIcon,
84
+ Eo as CoveragePartialIcon,
85
+ Lo as CoveredManuallyIcon,
86
+ Br as CsvIcon,
85
87
  w as DatePicker,
86
- Eo as DeleteIcon,
87
- Lo as DragAndDropIcon,
88
- Ro as DragNDropIcon,
88
+ Ro as DeleteIcon,
89
+ Oo as DragAndDropIcon,
90
+ Uo as DragNDropIcon,
89
91
  E as Dropdown,
90
92
  kr as DropdownIcon,
91
- Oo as DurationIcon,
92
- Uo as EditIcon,
93
+ Ho as DurationIcon,
94
+ Jo as EditIcon,
93
95
  Lr as ErrorIcon,
94
- Ho as ExportIcon,
95
- br as ExternalLinkIcon,
96
+ No as ExportIcon,
97
+ Tr as ExternalLinkIcon,
96
98
  R as FieldLabel,
97
99
  U as FieldNumber,
98
100
  J as FieldText,
99
101
  z as FieldTextFlex,
100
102
  W as FileDropArea,
101
- hr as FileOtherIcon,
102
- Jo as FilterFilledIcon,
103
- No as FilterOutlineIcon,
103
+ br as FileOtherIcon,
104
+ Hr as FilterFilledIcon,
105
+ Jr as FilterOutlineIcon,
106
+ j as FiltersButton,
104
107
  zo as FlagIcon,
105
108
  Go as GroupByIcon,
106
109
  Wo as HideIcon,
107
- Ar as ImageIcon,
110
+ hr as ImageIcon,
108
111
  Rr as InfoIcon,
109
- Br as JarIcon,
112
+ Ar as JarIcon,
110
113
  Xo as LaunchTypeIcon,
111
114
  jo as MaximizeIcon,
112
- Hr as MeatballMenuIcon,
113
- zr as MinusIcon,
114
- j as Modal,
115
+ zr as MeatballMenuIcon,
116
+ Xr as MinusIcon,
117
+ K as Modal,
115
118
  qo as MoveToFolderIcon,
116
- K as MultipleAutocomplete,
119
+ V as MultipleAutocomplete,
117
120
  Fr as OpenEyeIcon,
118
- Y as Pagination,
121
+ _ as Pagination,
119
122
  vr as PdfIcon,
120
123
  Ko as PinFilledIcon,
121
124
  Qo as PinOutlineIcon,
122
- Wr as PlusIcon,
123
- _ as Popover,
124
- jr as PrevChapterIcon,
125
- qr as PrevPageIcon,
125
+ qr as PlusIcon,
126
+ oo as Popover,
127
+ Qr as PrevChapterIcon,
128
+ Vr as PrevPageIcon,
126
129
  Vo as PriorityBlockerIcon,
127
130
  Yo as PriorityCriticalIcon,
128
131
  Zo as PriorityHighIcon,
129
132
  _o as PriorityLowIcon,
130
133
  $o as PriorityMediumIcon,
131
134
  or as PriorityUnspecifiedIcon,
132
- oo as Radio,
135
+ eo as Radio,
133
136
  rr as RefreshIcon,
134
137
  er as RerunIcon,
135
138
  nr as RunManualIcon,
136
139
  tr as SearchIcon,
137
- eo as Selection,
138
- Co as SidePanel,
139
- Q as SingleAutocomplete,
140
+ to as Selection,
141
+ go as SidePanel,
142
+ Y as SingleAutocomplete,
140
143
  ar as SortIcon,
141
- to as SpinLoader,
144
+ co as SpinLoader,
142
145
  cr as StatusSuccessIcon,
143
146
  Or as SuccessIcon,
144
- co as SystemAlert,
145
- io as SystemMessage,
146
- mo as Table,
147
+ io as SystemAlert,
148
+ so as SystemMessage,
149
+ lo as Table,
147
150
  pr as TestPlanIcon,
148
- lo as ThemeProvider,
149
- fo as Toggle,
150
- So as Tooltip,
151
- Jr as TreeIcon,
151
+ fo as ThemeProvider,
152
+ So as Toggle,
153
+ Co as Tooltip,
154
+ Gr as TreeIcon,
152
155
  ir as UserIcon,
153
- Ir as WarningIcon,
156
+ mr as WarningIcon,
154
157
  Mr as XlsIcon
155
158
  };
package/dist/sidePanel.js CHANGED
@@ -1,74 +1,88 @@
1
- import { jsxs as a, jsx as s, 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 x = "_active_12osg_15", I = "_header_12osg_35", y = "_title_12osg_62", B = "_description_12osg_73", S = "_content_12osg_82", j = "_footer_12osg_89", $ = "_divider_12osg_95", k = {
7
- "side-panel": "_side-panel_12osg_1",
8
- active: x,
9
- "side-right": "_side-right_12osg_19",
10
- "side-left": "_side-left_12osg_27",
11
- "header-section": "_header-section_12osg_35",
12
- header: I,
13
- "header-content": "_header-content_12osg_52",
14
- "close-button": "_close-button_12osg_56",
15
- title: y,
1
+ import { jsxs as s, jsx as i, Fragment as p } from "react/jsx-runtime";
2
+ import { useId as N, useEffect as y } from "react";
3
+ import { c as g } from "./bind-06a7ff84.js";
4
+ import { K as E } from "./keyCodes-f63c0e11.js";
5
+ import { S as x } from "./close-4d480ef7.js";
6
+ import { B as k } from "./baseIconButton-251479f7.js";
7
+ const I = "_active_6bj2z_15", K = "_compact_6bj2z_39", S = "_header_6bj2z_35", w = "_title_6bj2z_65", B = "_description_6bj2z_76", D = "_content_6bj2z_85", L = "_footer_6bj2z_92", P = "_divider_6bj2z_98", $ = {
8
+ "side-panel": "_side-panel_6bj2z_1",
9
+ active: I,
10
+ "side-right": "_side-right_6bj2z_19",
11
+ "side-left": "_side-left_6bj2z_27",
12
+ "header-section": "_header-section_6bj2z_35",
13
+ compact: K,
14
+ header: S,
15
+ "header-content": "_header-content_6bj2z_55",
16
+ "close-button": "_close-button_6bj2z_59",
17
+ title: w,
16
18
  description: B,
17
- content: S,
18
- footer: j,
19
- divider: $
20
- }, e = N.bind(k), A = ({
21
- className: _,
22
- title: i,
23
- descriptionComponent: h,
19
+ content: D,
20
+ footer: L,
21
+ divider: P
22
+ }, e = g.bind($), J = ({
23
+ className: h,
24
+ title: c,
25
+ descriptionComponent: r,
24
26
  headerComponent: d,
25
- contentComponent: c,
27
+ contentComponent: n,
26
28
  footerComponent: o,
27
- top: r = 0,
28
- side: g = "right",
29
- isOpen: n = !0,
29
+ top: _ = 0,
30
+ side: b = "right",
31
+ isOpen: a = !0,
30
32
  onClose: t,
31
- closeButtonAriaLabel: m = "Close panel"
33
+ closeButtonAriaLabel: v = "Close panel"
32
34
  }) => {
33
- const l = p(), v = () => {
35
+ const l = N(), f = () => {
34
36
  t == null || t();
35
37
  };
36
- return /* @__PURE__ */ a(
38
+ y(() => {
39
+ if (!a || !t)
40
+ return;
41
+ const m = (z) => {
42
+ const { keyCode: u } = z;
43
+ u === E.ESCAPE_KEY_CODE && t();
44
+ };
45
+ return document.addEventListener("keydown", m, !1), () => {
46
+ document.removeEventListener("keydown", m, !1);
47
+ };
48
+ }, [a, t]);
49
+ const j = !!(d || r);
50
+ return /* @__PURE__ */ s(
37
51
  "aside",
38
52
  {
39
- className: e("side-panel", `side-${g}`, { active: n }, _),
53
+ className: e("side-panel", `side-${b}`, { active: a }, h),
40
54
  role: "dialog",
41
55
  "aria-modal": "true",
42
- "aria-hidden": !n,
43
- "aria-labelledby": i ? l : void 0,
44
- style: { top: r, height: `calc(100vh - ${r}px)` },
56
+ "aria-hidden": !a,
57
+ "aria-labelledby": c ? l : void 0,
58
+ style: { top: _, height: `calc(100vh - ${_}px)` },
45
59
  tabIndex: -1,
46
60
  children: [
47
- /* @__PURE__ */ a("div", { className: e("header-section"), children: [
48
- (d || i) && /* @__PURE__ */ a("div", { className: e("header"), children: [
49
- i ? /* @__PURE__ */ s("span", { id: l, className: e("title"), children: i }) : d,
50
- t && /* @__PURE__ */ s(
51
- u,
61
+ /* @__PURE__ */ s("div", { className: e("header-section", { compact: !j }), children: [
62
+ (d || c) && /* @__PURE__ */ s("div", { className: e("header"), children: [
63
+ c ? /* @__PURE__ */ i("span", { id: l, className: e("title"), children: c }) : d,
64
+ t && /* @__PURE__ */ i(
65
+ k,
52
66
  {
53
67
  className: e("close-button"),
54
- onClick: v,
55
- "aria-label": m,
56
- children: /* @__PURE__ */ s(b, {})
68
+ onClick: f,
69
+ "aria-label": v,
70
+ children: /* @__PURE__ */ i(x, {})
57
71
  }
58
72
  )
59
73
  ] }),
60
- h
74
+ r
61
75
  ] }),
62
- /* @__PURE__ */ s("div", { className: e("divider") }),
63
- c && /* @__PURE__ */ s("div", { className: e("content"), children: c }),
64
- o && /* @__PURE__ */ a(f, { children: [
65
- /* @__PURE__ */ s("div", { className: e("divider") }),
66
- /* @__PURE__ */ s("div", { className: e("footer"), children: o })
76
+ /* @__PURE__ */ i("div", { className: e("divider") }),
77
+ n && /* @__PURE__ */ i("div", { className: e("content"), children: n }),
78
+ o && /* @__PURE__ */ s(p, { children: [
79
+ /* @__PURE__ */ i("div", { className: e("divider") }),
80
+ /* @__PURE__ */ i("div", { className: e("footer"), children: o })
67
81
  ] })
68
82
  ]
69
83
  }
70
84
  );
71
85
  };
72
86
  export {
73
- A as SidePanel
87
+ J as SidePanel
74
88
  };