@reportportal/ui-kit 0.0.1-alpha.253 → 0.0.1-alpha.254

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.
@@ -20,7 +20,7 @@ export { FileDropArea } from './fileDropArea';
20
20
  export { FiltersButton } from './filtersButton';
21
21
  export { FilterItem } from './filterItem';
22
22
  export { IssueList } from './issueList';
23
- export { Modal } from './modal';
23
+ export { Modal, NOTIFICATION_PORTAL_ATTR } from './modal';
24
24
  export { MultipleAutocomplete } from './autocompletes/multipleAutocomplete';
25
25
  export { Pagination } from './pagination';
26
26
  export { Popover } from './popover';
@@ -0,0 +1,2 @@
1
+ export declare const NOTIFICATION_PORTAL_ATTR = "data-notification-portal";
2
+ export declare const MODAL_CLICK_OUTSIDE_IGNORE_SELECTORS: string[];
@@ -2,4 +2,5 @@ export { Modal } from './modal';
2
2
  export { ModalContent } from './modalContent';
3
3
  export { ModalHeader } from './modalHeader';
4
4
  export { ModalFooter } from './modalFooter';
5
+ export { NOTIFICATION_PORTAL_ATTR } from './constants';
5
6
  export type { ExtendedButtonProps } from './types';
@@ -0,0 +1,11 @@
1
+ import { A as T } from "./constants-85822a6b.js";
2
+ import { a as O } from "./dropdown-d2a05471.js";
3
+ const _ = "data-notification-portal", a = [
4
+ `[${O}]`,
5
+ `[${T}]`,
6
+ `[${_}]`
7
+ ];
8
+ export {
9
+ a as M,
10
+ _ as N
11
+ };
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { AdaptiveTagList as B } from "./adaptiveTagList.js";
2
- import { A as v, a as w } from "./actionMenu-f8a2f5bb.js";
3
- import { ACTION_MENU_DIVIDER as E } from "./actionMenu.js";
2
+ import { A as L, a as v } from "./actionMenu-f8a2f5bb.js";
3
+ import { ACTION_MENU_DIVIDER as R } from "./actionMenu.js";
4
4
  import { A as k } from "./index-8c921599.js";
5
5
  import { B as N } from "./baseIconButton-251479f7.js";
6
- import { B as H } from "./breadcrumbs-0a228139.js";
7
- import { B as G } from "./bubblesLoader-f3ffa240.js";
8
- import { BulkPanel as V } from "./bulkPanel.js";
6
+ import { B as _ } from "./breadcrumbs-0a228139.js";
7
+ import { B as z } from "./bubblesLoader-f3ffa240.js";
8
+ import { BulkPanel as J } from "./bulkPanel.js";
9
9
  import { B as W } from "./button-7ab874f3.js";
10
10
  import { C as j } from "./checkbox-76aa8f97.js";
11
11
  import { Chip as K } from "./chip.js";
@@ -21,43 +21,44 @@ import { FiltersButton as Io } from "./filtersButton.js";
21
21
  import { FilterItem as xo } from "./filterItem.js";
22
22
  import { IssueList as uo } from "./issueList.js";
23
23
  import { Modal as Co } from "./modal.js";
24
- import { MultipleAutocomplete as Do, SingleAutocomplete as Po } from "./autocompletes.js";
25
- import { P as Fo } from "./pagination-4f6cbad8.js";
26
- import { Popover as bo } from "./popover.js";
27
- import { R as ho, a as Bo } from "./radioGroup-0c132c2e.js";
28
- import { SegmentedControl as vo } from "./segmentedControl.js";
29
- import { S as Lo } from "./selection-da1a3528.js";
30
- import { S as Ro } from "./spinLoader-c4a53718.js";
31
- import { SystemAlert as Oo } from "./systemAlert.js";
32
- import { S as Uo } from "./systemMessage-924fdaa6.js";
33
- import { DragLayer as zo, SortableItem as Go, SortableList as Jo, TreeSortableContainer as Vo, TreeSortableItem as _o } from "./sortable.js";
34
- import { T as Xo } from "./table-fc873b61.js";
35
- import { T as qo } from "./themeProvider-46c2be7b.js";
36
- import { T as Qo } from "./toggle-304107fa.js";
37
- import { Tooltip as Zo } from "./tooltip.js";
38
- import { SidePanel as or } from "./sidePanel.js";
24
+ import { N as Ao } from "./constants-7319a394.js";
25
+ import { MultipleAutocomplete as go, SingleAutocomplete as Do } from "./autocompletes.js";
26
+ import { P as bo } from "./pagination-4f6cbad8.js";
27
+ import { Popover as ho } from "./popover.js";
28
+ import { R as Mo, a as Lo } from "./radioGroup-0c132c2e.js";
29
+ import { SegmentedControl as wo } from "./segmentedControl.js";
30
+ import { S as Eo } from "./selection-da1a3528.js";
31
+ import { S as Oo } from "./spinLoader-c4a53718.js";
32
+ import { SystemAlert as Uo } from "./systemAlert.js";
33
+ import { S as Ho } from "./systemMessage-924fdaa6.js";
34
+ import { DragLayer as Go, SortableItem as Jo, SortableList as Vo, TreeSortableContainer as Wo, TreeSortableItem as Xo } from "./sortable.js";
35
+ import { T as qo } from "./table-fc873b61.js";
36
+ import { T as Qo } from "./themeProvider-46c2be7b.js";
37
+ import { T as Zo } from "./toggle-304107fa.js";
38
+ import { Tooltip as or } from "./tooltip.js";
39
+ import { SidePanel as er } from "./sidePanel.js";
39
40
  import "react";
40
41
  import "react-dnd";
41
42
  import "react-dnd-html5-backend";
42
- import { useTreeDropValidation as er } from "./common/hooks.js";
43
- import { u as nr } from "./useEllipsisTitle-462fa254.js";
44
- import { AddCsvIcon as cr, AddImageIcon as pr, AddJarIcon as ir, ArrowLeftIcon as mr, ArrowRightIcon as sr, BoltIcon as Ir, BreadcrumbsTreeIcon as lr, CalendarIcon as xr, CheckmarkIcon as fr, ChevronRightBreadcrumbsIcon as dr, CloseEyeIcon as ur, ConfigurationIcon as Sr, CopyIcon as Cr, CoverageFullIcon as gr, CoveragePartialIcon as Dr, CoveredManuallyIcon as Pr, CycleArrowsIcon as Ar, DeleteIcon as Fr, DiamondIcon as Tr, DragAndDropIcon as br, DragNDropIcon as yr, DurationIcon as hr, EditIcon as Br, ExportIcon as Mr, FlagIcon as vr, FolderIcon as wr, GroupByIcon as Lr, HashIcon as Er, HideIcon as Rr, LatestExecutionsIcon as kr, LaunchTypeIcon as Or, MailIcon as Nr, MaximizeIcon as Ur, MoveToFolderIcon as Hr, OkIcon as zr, OpenEyeIcon as Gr, PinFilledIcon as Jr, PinOutlineIcon as Vr, PriorityBlockerIcon as _r, PriorityCriticalIcon as Wr, PriorityHighIcon as Xr, PriorityLowIcon as jr, PriorityMediumIcon as qr, PriorityUnspecifiedIcon as Kr, RefreshIcon as Qr, RerunIcon as Yr, RocketIcon as Zr, RunManualIcon as $r, SearchIcon as oe, SortIcon as re, StatusSuccessIcon as ee, TestCaseIcon as te, TestPlanIcon as ne, UserIcon as ae } from "./icons.js";
45
- import { S as pe, a as ie, b as me } from "./resizeColumn-46b5b30f.js";
46
- import { S as Ie } from "./calendarArrow-44c7e60e.js";
47
- import { S as xe } from "./chevronDownDropdown-0260bb66.js";
48
- import { S as de } from "./clear-53660571.js";
49
- import { b as Se, S as Ce, a as ge } from "./capslockIcon-b100b9d6.js";
50
- import { S as Pe } from "./close-4d480ef7.js";
51
- import { S as Fe, g as Te, a as be, b as ye, c as he, d as Be, e as Me, f as ve } from "./download-4950d639.js";
52
- import { S as Le } from "./details-dbb1530b.js";
53
- import { S as Re } from "./dropdown-0260bb66.js";
54
- import { S as Oe, a as Ne, b as Ue } from "./success-8fd8bd2c.js";
55
- import { S as ze, a as Ge } from "./filterOutline-819b4b0d.js";
56
- import { S as Ve, a as _e } from "./tree-c3dd3d45.js";
57
- import { S as Xe } from "./minus-2857540f.js";
58
- import { S as qe } from "./plus-199fb2a8.js";
59
- import { S as Qe, a as Ye } from "./prevPage-87faf576.js";
60
- import { S as $e } from "./warning-537ead32.js";
43
+ import { useTreeDropValidation as nr } from "./common/hooks.js";
44
+ import { u as cr } from "./useEllipsisTitle-462fa254.js";
45
+ import { AddCsvIcon as ir, AddImageIcon as mr, AddJarIcon as sr, ArrowLeftIcon as Ir, ArrowRightIcon as lr, BoltIcon as xr, BreadcrumbsTreeIcon as fr, CalendarIcon as dr, CheckmarkIcon as ur, ChevronRightBreadcrumbsIcon as Sr, CloseEyeIcon as Cr, ConfigurationIcon as Tr, CopyIcon as Ar, CoverageFullIcon as Pr, CoveragePartialIcon as gr, CoveredManuallyIcon as Dr, CycleArrowsIcon as Fr, DeleteIcon as br, DiamondIcon as yr, DragAndDropIcon as hr, DragNDropIcon as Br, DurationIcon as Mr, EditIcon as Lr, ExportIcon as vr, FlagIcon as wr, FolderIcon as Rr, GroupByIcon as Er, HashIcon as kr, HideIcon as Or, LatestExecutionsIcon as Nr, LaunchTypeIcon as Ur, MailIcon as _r, MaximizeIcon as Hr, MoveToFolderIcon as zr, OkIcon as Gr, OpenEyeIcon as Jr, PinFilledIcon as Vr, PinOutlineIcon as Wr, PriorityBlockerIcon as Xr, PriorityCriticalIcon as jr, PriorityHighIcon as qr, PriorityLowIcon as Kr, PriorityMediumIcon as Qr, PriorityUnspecifiedIcon as Yr, RefreshIcon as Zr, RerunIcon as $r, RocketIcon as oe, RunManualIcon as re, SearchIcon as ee, SortIcon as te, StatusSuccessIcon as ne, TestCaseIcon as ae, TestPlanIcon as ce, UserIcon as pe } from "./icons.js";
46
+ import { S as me, a as se, b as Ie } from "./resizeColumn-46b5b30f.js";
47
+ import { S as xe } from "./calendarArrow-44c7e60e.js";
48
+ import { S as de } from "./chevronDownDropdown-0260bb66.js";
49
+ import { S as Se } from "./clear-53660571.js";
50
+ import { b as Te, S as Ae, a as Pe } from "./capslockIcon-b100b9d6.js";
51
+ import { S as De } from "./close-4d480ef7.js";
52
+ import { S as be, g as ye, a as he, b as Be, c as Me, d as Le, e as ve, f as we } from "./download-4950d639.js";
53
+ import { S as Ee } from "./details-dbb1530b.js";
54
+ import { S as Oe } from "./dropdown-0260bb66.js";
55
+ import { S as Ue, a as _e, b as He } from "./success-8fd8bd2c.js";
56
+ import { S as Ge, a as Je } from "./filterOutline-819b4b0d.js";
57
+ import { S as We, a as Xe } from "./tree-c3dd3d45.js";
58
+ import { S as qe } from "./minus-2857540f.js";
59
+ import { S as Qe } from "./plus-199fb2a8.js";
60
+ import { S as Ze, a as $e } from "./prevPage-87faf576.js";
61
+ import { S as rt } from "./warning-537ead32.js";
61
62
  import "react/jsx-runtime";
62
63
  import "./bind-06a7ff84.js";
63
64
  import "./isEmpty-ccacb5ff.js";
@@ -81,136 +82,137 @@ import "./useTreeSortable-bc631689.js";
81
82
  import "./common.js";
82
83
  import "react-resizable";
83
84
  export {
84
- E as ACTION_MENU_DIVIDER,
85
- v as ActionMenu,
86
- w as ActionMenuItem,
85
+ R as ACTION_MENU_DIVIDER,
86
+ L as ActionMenu,
87
+ v as ActionMenuItem,
87
88
  B as AdaptiveTagList,
88
- cr as AddCsvIcon,
89
- pr as AddImageIcon,
90
- ir as AddJarIcon,
91
- pe as ArrowDownIcon,
92
- mr as ArrowLeftIcon,
93
- sr as ArrowRightIcon,
94
- ie as ArrowUpIcon,
89
+ ir as AddCsvIcon,
90
+ mr as AddImageIcon,
91
+ sr as AddJarIcon,
92
+ me as ArrowDownIcon,
93
+ Ir as ArrowLeftIcon,
94
+ lr as ArrowRightIcon,
95
+ se as ArrowUpIcon,
95
96
  k as AttachedFile,
96
97
  N as BaseIconButton,
97
- Ir as BoltIcon,
98
- H as Breadcrumbs,
99
- lr as BreadcrumbsTreeIcon,
100
- G as BubblesLoader,
101
- V as BulkPanel,
98
+ xr as BoltIcon,
99
+ _ as Breadcrumbs,
100
+ fr as BreadcrumbsTreeIcon,
101
+ z as BubblesLoader,
102
+ J as BulkPanel,
102
103
  W as Button,
103
- Ie as CalendarArrowIcon,
104
- xr as CalendarIcon,
105
- Se as CapsLockIcon,
104
+ xe as CalendarArrowIcon,
105
+ dr as CalendarIcon,
106
+ Te as CapsLockIcon,
106
107
  j as Checkbox,
107
- fr as CheckmarkIcon,
108
- xe as ChevronDownDropdownIcon,
109
- dr as ChevronRightBreadcrumbsIcon,
108
+ ur as CheckmarkIcon,
109
+ de as ChevronDownDropdownIcon,
110
+ Sr as ChevronRightBreadcrumbsIcon,
110
111
  K as Chip,
111
- de as ClearIcon,
112
- ur as CloseEyeIcon,
113
- Pe as CloseIcon,
114
- Ce as ClosedEyeIcon,
115
- Sr as ConfigurationIcon,
116
- Cr as CopyIcon,
117
- gr as CoverageFullIcon,
118
- Dr as CoveragePartialIcon,
119
- Pr as CoveredManuallyIcon,
120
- Fe as CsvIcon,
121
- Ar as CycleArrowsIcon,
112
+ Se as ClearIcon,
113
+ Cr as CloseEyeIcon,
114
+ De as CloseIcon,
115
+ Ae as ClosedEyeIcon,
116
+ Tr as ConfigurationIcon,
117
+ Ar as CopyIcon,
118
+ Pr as CoverageFullIcon,
119
+ gr as CoveragePartialIcon,
120
+ Dr as CoveredManuallyIcon,
121
+ be as CsvIcon,
122
+ Fr as CycleArrowsIcon,
122
123
  Y as DatePicker,
123
- Fr as DeleteIcon,
124
- Le as DetailsIcon,
125
- Tr as DiamondIcon,
126
- Te as DownloadIcon,
127
- br as DragAndDropIcon,
128
- zo as DragLayer,
129
- yr as DragNDropIcon,
124
+ br as DeleteIcon,
125
+ Ee as DetailsIcon,
126
+ yr as DiamondIcon,
127
+ ye as DownloadIcon,
128
+ hr as DragAndDropIcon,
129
+ Go as DragLayer,
130
+ Br as DragNDropIcon,
130
131
  $ as Dropdown,
131
- Re as DropdownIcon,
132
- hr as DurationIcon,
133
- Br as EditIcon,
134
- Oe as ErrorIcon,
135
- Mr as ExportIcon,
136
- be as ExternalLinkIcon,
132
+ Oe as DropdownIcon,
133
+ Mr as DurationIcon,
134
+ Lr as EditIcon,
135
+ Ue as ErrorIcon,
136
+ vr as ExportIcon,
137
+ he as ExternalLinkIcon,
137
138
  ro as FieldLabel,
138
139
  to as FieldNumber,
139
140
  ao as FieldText,
140
141
  po as FieldTextFlex,
141
142
  mo as FileDropArea,
142
- ye as FileOtherIcon,
143
- ze as FilterFilledIcon,
143
+ Be as FileOtherIcon,
144
+ Ge as FilterFilledIcon,
144
145
  xo as FilterItem,
145
- Ge as FilterOutlineIcon,
146
+ Je as FilterOutlineIcon,
146
147
  Io as FiltersButton,
147
- vr as FlagIcon,
148
- wr as FolderIcon,
149
- Lr as GroupByIcon,
150
- Er as HashIcon,
151
- Rr as HideIcon,
152
- he as ImageIcon,
153
- Ne as InfoIcon,
148
+ wr as FlagIcon,
149
+ Rr as FolderIcon,
150
+ Er as GroupByIcon,
151
+ kr as HashIcon,
152
+ Or as HideIcon,
153
+ Me as ImageIcon,
154
+ _e as InfoIcon,
154
155
  uo as IssueList,
155
- Be as JarIcon,
156
- kr as LatestExecutionsIcon,
157
- Or as LaunchTypeIcon,
158
- Nr as MailIcon,
159
- Ur as MaximizeIcon,
160
- Ve as MeatballMenuIcon,
161
- Xe as MinusIcon,
156
+ Le as JarIcon,
157
+ Nr as LatestExecutionsIcon,
158
+ Ur as LaunchTypeIcon,
159
+ _r as MailIcon,
160
+ Hr as MaximizeIcon,
161
+ We as MeatballMenuIcon,
162
+ qe as MinusIcon,
162
163
  Co as Modal,
163
- Hr as MoveToFolderIcon,
164
- Do as MultipleAutocomplete,
165
- zr as OkIcon,
166
- Gr as OpenEyeIcon,
167
- ge as OpenedEyeIcon,
168
- Fo as Pagination,
169
- Me as PdfIcon,
170
- Jr as PinFilledIcon,
171
- Vr as PinOutlineIcon,
172
- qe as PlusIcon,
173
- bo as Popover,
174
- Qe as PrevChapterIcon,
175
- Ye as PrevPageIcon,
176
- _r as PriorityBlockerIcon,
177
- Wr as PriorityCriticalIcon,
178
- Xr as PriorityHighIcon,
179
- jr as PriorityLowIcon,
180
- qr as PriorityMediumIcon,
181
- Kr as PriorityUnspecifiedIcon,
182
- ho as Radio,
183
- Bo as RadioGroup,
184
- Qr as RefreshIcon,
185
- Yr as RerunIcon,
186
- me as ResizeColumnIcon,
187
- Zr as RocketIcon,
188
- $r as RunManualIcon,
189
- oe as SearchIcon,
190
- vo as SegmentedControl,
191
- Lo as Selection,
192
- or as SidePanel,
193
- Po as SingleAutocomplete,
194
- re as SortIcon,
195
- Go as SortableItem,
196
- Jo as SortableList,
197
- Ro as SpinLoader,
198
- ee as StatusSuccessIcon,
199
- Ue as SuccessIcon,
200
- Oo as SystemAlert,
201
- Uo as SystemMessage,
202
- Xo as Table,
203
- te as TestCaseIcon,
204
- ne as TestPlanIcon,
205
- qo as ThemeProvider,
206
- Qo as Toggle,
207
- Zo as Tooltip,
208
- _e as TreeIcon,
209
- Vo as TreeSortableContainer,
210
- _o as TreeSortableItem,
211
- ae as UserIcon,
212
- $e as WarningIcon,
213
- ve as XlsIcon,
214
- nr as useEllipsisTitle,
215
- er as useTreeDropValidation
164
+ zr as MoveToFolderIcon,
165
+ go as MultipleAutocomplete,
166
+ Ao as NOTIFICATION_PORTAL_ATTR,
167
+ Gr as OkIcon,
168
+ Jr as OpenEyeIcon,
169
+ Pe as OpenedEyeIcon,
170
+ bo as Pagination,
171
+ ve as PdfIcon,
172
+ Vr as PinFilledIcon,
173
+ Wr as PinOutlineIcon,
174
+ Qe as PlusIcon,
175
+ ho as Popover,
176
+ Ze as PrevChapterIcon,
177
+ $e as PrevPageIcon,
178
+ Xr as PriorityBlockerIcon,
179
+ jr as PriorityCriticalIcon,
180
+ qr as PriorityHighIcon,
181
+ Kr as PriorityLowIcon,
182
+ Qr as PriorityMediumIcon,
183
+ Yr as PriorityUnspecifiedIcon,
184
+ Mo as Radio,
185
+ Lo as RadioGroup,
186
+ Zr as RefreshIcon,
187
+ $r as RerunIcon,
188
+ Ie as ResizeColumnIcon,
189
+ oe as RocketIcon,
190
+ re as RunManualIcon,
191
+ ee as SearchIcon,
192
+ wo as SegmentedControl,
193
+ Eo as Selection,
194
+ er as SidePanel,
195
+ Do as SingleAutocomplete,
196
+ te as SortIcon,
197
+ Jo as SortableItem,
198
+ Vo as SortableList,
199
+ Oo as SpinLoader,
200
+ ne as StatusSuccessIcon,
201
+ He as SuccessIcon,
202
+ Uo as SystemAlert,
203
+ Ho as SystemMessage,
204
+ qo as Table,
205
+ ae as TestCaseIcon,
206
+ ce as TestPlanIcon,
207
+ Qo as ThemeProvider,
208
+ Zo as Toggle,
209
+ or as Tooltip,
210
+ Xe as TreeIcon,
211
+ Wo as TreeSortableContainer,
212
+ Xo as TreeSortableItem,
213
+ pe as UserIcon,
214
+ rt as WarningIcon,
215
+ we as XlsIcon,
216
+ cr as useEllipsisTitle,
217
+ nr as useTreeDropValidation
216
218
  };
package/dist/modal.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as e, jsxs as d, Fragment as F } from "react/jsx-runtime";
2
- import { useState as y, useRef as G, useCallback as M, useEffect as x, useMemo as U } from "react";
1
+ import { jsx as e, jsxs as d, Fragment as W } from "react/jsx-runtime";
2
+ import { useState as T, useRef as j, useCallback as C, useEffect as M, useMemo as U } from "react";
3
3
  import { Scrollbars as X } from "rc-scrollbars";
4
4
  import { AnimatePresence as Y, motion as V } from "framer-motion";
5
5
  import { c as b } from "./bind-06a7ff84.js";
@@ -7,14 +7,18 @@ import { u as Z } from "./useOnClickOutside-8f7d68a1.js";
7
7
  import "react-dnd";
8
8
  import "react-dnd-html5-backend";
9
9
  import { u as q } from "./useWindowResize-a7e1ac92.js";
10
- import { A as J } from "./constants-85822a6b.js";
11
- import { a as Q } from "./dropdown-d2a05471.js";
12
- import { K as ee } from "./keyCodes-f63c0e11.js";
13
- import { B as R } from "./button-7ab874f3.js";
14
- import { Tooltip as te } from "./tooltip.js";
15
- import { B as oe } from "./baseIconButton-251479f7.js";
16
- import { S as ne } from "./close-4d480ef7.js";
10
+ import { K as J } from "./keyCodes-f63c0e11.js";
11
+ import { B as x } from "./button-7ab874f3.js";
12
+ import { Tooltip as Q } from "./tooltip.js";
13
+ import { B as ee } from "./baseIconButton-251479f7.js";
14
+ import { S as te } from "./close-4d480ef7.js";
15
+ import { M as oe } from "./constants-7319a394.js";
16
+ import { N as qe } from "./constants-7319a394.js";
17
17
  import "react-dom";
18
+ import "@floating-ui/react";
19
+ import "./floatingUi-46f5b896.js";
20
+ import "./constants-85822a6b.js";
21
+ import "./dropdown-d2a05471.js";
18
22
  import "@floating-ui/react-dom";
19
23
  import "downshift";
20
24
  import "./clear-53660571.js";
@@ -24,149 +28,147 @@ import "./adaptiveTagList.js";
24
28
  import "./isEmpty-ccacb5ff.js";
25
29
  import "./useEllipsisTitle-462fa254.js";
26
30
  import "./checkbox-76aa8f97.js";
27
- import "@floating-ui/react";
28
- import "./floatingUi-46f5b896.js";
29
- const ae = {
31
+ const ne = {
30
32
  "modal-content": "_modal-content_ppzcb_1"
31
- }, ie = b.bind(ae), C = ({ children: o }) => /* @__PURE__ */ e("div", { className: ie("modal-content"), children: o }), se = {
33
+ }, ae = b.bind(ne), I = ({ children: o }) => /* @__PURE__ */ e("div", { className: ae("modal-content"), children: o }), ie = {
32
34
  "buttons-block": "_buttons-block_1mwne_1",
33
35
  "button-container": "_button-container_1mwne_7",
34
36
  "modal-footer": "_modal-footer_1mwne_12",
35
37
  "with-extra-node": "_with-extra-node_1mwne_19",
36
38
  "size-small": "_size-small_1mwne_23"
37
- }, f = b.bind(se), le = ({
39
+ }, f = b.bind(ie), se = ({
38
40
  footerNode: o,
39
41
  closeHandler: n,
40
42
  okButton: i,
41
- cancelButton: u,
43
+ cancelButton: p,
42
44
  size: s
43
45
  }) => {
44
- const { tooltipNode: p, ...m } = i || {}, v = () => {
45
- const _ = /* @__PURE__ */ e(R, { adjustWidthOn: s === "small" ? "parent" : "min-width", ...m });
46
- return p ? /* @__PURE__ */ e(te, { content: p, placement: "top", width: 270, children: _ }) : _;
46
+ const { tooltipNode: u, ...m } = i || {}, O = () => {
47
+ const _ = /* @__PURE__ */ e(x, { adjustWidthOn: s === "small" ? "parent" : "min-width", ...m });
48
+ return u ? /* @__PURE__ */ e(Q, { content: u, placement: "top", width: 270, children: _ }) : _;
47
49
  };
48
50
  return /* @__PURE__ */ d("div", { className: f("modal-footer", { "with-extra-node": o, [`size-${s}`]: s }), children: [
49
51
  o && o,
50
52
  /* @__PURE__ */ d("div", { className: f("buttons-block"), children: [
51
- u && /* @__PURE__ */ e("div", { className: f("button-container"), children: /* @__PURE__ */ e(
52
- R,
53
+ p && /* @__PURE__ */ e("div", { className: f("button-container"), children: /* @__PURE__ */ e(
54
+ x,
53
55
  {
54
56
  variant: "ghost",
55
57
  adjustWidthOn: s === "small" ? "parent" : "min-width",
56
58
  onClick: n,
57
- ...u
59
+ ...p
58
60
  }
59
61
  ) }),
60
- i && /* @__PURE__ */ e("div", { className: f("button-container"), children: v() })
62
+ i && /* @__PURE__ */ e("div", { className: f("button-container"), children: O() })
61
63
  ] })
62
64
  ] });
63
- }, re = {
65
+ }, le = {
64
66
  "modal-header": "_modal-header_w4aaf_1",
65
67
  "width-description": "_width-description_w4aaf_10",
66
68
  "modal-header-content": "_modal-header-content_w4aaf_14",
67
69
  "modal-title": "_modal-title_w4aaf_20",
68
70
  "close-modal-icon": "_close-modal-icon_w4aaf_29"
69
- }, w = b.bind(re), ce = ({ title: o, onClose: n, withDescription: i = !1 }) => /* @__PURE__ */ d("div", { className: w("modal-header", { "width-description": i }), children: [
71
+ }, w = b.bind(le), re = ({ title: o, onClose: n, withDescription: i = !1 }) => /* @__PURE__ */ d("div", { className: w("modal-header", { "width-description": i }), children: [
70
72
  /* @__PURE__ */ e("div", { className: w("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: w("modal-title"), children: o }) }),
71
- /* @__PURE__ */ e(oe, { className: w("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(ne, {}) })
72
- ] }), de = "_modal_35896_1", me = "_description_35896_43", _e = {
73
- modal: de,
73
+ /* @__PURE__ */ e(ee, { className: w("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(te, {}) })
74
+ ] }), ce = "_modal_35896_1", de = "_description_35896_43", me = {
75
+ modal: ce,
74
76
  "overlay-default": "_overlay-default_35896_12",
75
77
  "overlay-light-cyan": "_overlay-light-cyan_35896_16",
76
78
  "scrolling-content": "_scrolling-content_35896_20",
77
79
  "modal-window": "_modal-window_35896_26",
78
- description: me,
80
+ description: de,
79
81
  "scrollable-wrapper": "_scrollable-wrapper_35896_54",
80
82
  "scrollable-content": "_scrollable-content_35896_58",
81
83
  "size-default": "_size-default_35896_62",
82
84
  "size-small": "_size-small_35896_74",
83
85
  "size-large": "_size-large_35896_86"
84
- }, c = b.bind(_e), ue = 0.9, pe = 32 + 24, he = 32 + 8, fe = 36 + 16, we = 32 * 2, be = "auto", k = ({ style: o, ...n }) => /* @__PURE__ */ e("div", { ...n, style: { ...o, zIndex: be } }), Ye = ({
86
+ }, c = b.bind(me), _e = 0.9, pe = 32 + 24, ue = 32 + 8, he = 36 + 16, fe = 32 * 2, we = "auto", R = ({ style: o, ...n }) => /* @__PURE__ */ e("div", { ...n, style: { ...o, zIndex: we } }), Ye = ({
85
87
  title: o,
86
88
  children: n,
87
89
  footerNode: i,
88
- okButton: u,
90
+ okButton: p,
89
91
  cancelButton: s,
90
- className: p,
92
+ className: u,
91
93
  size: m = "default",
92
- onClose: v = () => {
94
+ onClose: O = () => {
93
95
  },
94
96
  overlay: _ = "default",
95
- zIndex: D = 2,
96
- allowCloseOutside: S = !0,
97
- scrollable: z = !1,
98
- withoutFooter: N = !1,
99
- createFooter: A = null,
97
+ zIndex: S = 2,
98
+ allowCloseOutside: k = !0,
99
+ scrollable: D = !1,
100
+ withoutFooter: y = !1,
101
+ createFooter: E = null,
100
102
  description: l = null
101
103
  }) => {
102
- const [O, E] = y(!1), [I, L] = y(0), [$, P] = y(!1), a = G(null), H = q().height, B = H * ue, g = (H - I) / 2, W = () => {
103
- let t = B - we;
104
- return N || (t = t - fe), l ? t = t - he : t = t - pe, t;
105
- }, r = M(() => {
106
- E(!1);
107
- }, []), T = M(
104
+ const [v, H] = T(!1), [L, z] = T(0), [$, B] = T(!1), a = j(null), A = q().height, K = A * _e, g = (A - L) / 2, P = () => {
105
+ let t = K - fe;
106
+ return y || (t = t - he), l ? t = t - ue : t = t - pe, t;
107
+ }, r = C(() => {
108
+ H(!1);
109
+ }, []), N = C(
108
110
  (t) => {
109
111
  const { keyCode: h } = t;
110
- h === ee.ESCAPE_KEY_CODE && r();
112
+ h === J.ESCAPE_KEY_CODE && r();
111
113
  },
112
114
  [r]
113
- ), K = () => {
115
+ ), F = () => {
114
116
  var t;
115
- $ || ((t = a.current) == null || t.focus(), P(!0));
117
+ $ || ((t = a.current) == null || t.focus(), B(!0));
116
118
  };
117
- x(() => {
118
- if (!O || !a.current)
119
+ M(() => {
120
+ if (!v || !a.current)
119
121
  return;
120
122
  const t = () => {
121
- a.current && L(a.current.clientHeight);
123
+ a.current && z(a.current.clientHeight);
122
124
  };
123
125
  if (t(), typeof ResizeObserver > "u")
124
126
  return;
125
127
  const h = new ResizeObserver(t);
126
128
  return h.observe(a.current), () => h.disconnect();
127
- }, [O]), x(() => (E(!0), document.addEventListener("keydown", T, !1), () => document.removeEventListener("keydown", T, !1)), [T]);
128
- const j = U(
129
+ }, [v]), M(() => (H(!0), document.addEventListener("keydown", N, !1), () => document.removeEventListener("keydown", N, !1)), [N]);
130
+ const G = U(
129
131
  () => ({
130
- ignoreSelectors: [`[${Q}]`, `[${J}]`]
132
+ ignoreSelectors: oe
131
133
  }),
132
134
  []
133
135
  );
134
- return Z(a, S ? r : void 0, j), /* @__PURE__ */ e(Y, { onExitComplete: v, children: O && /* @__PURE__ */ e("div", { className: c("modal", { [`overlay-${_}`]: _ }), style: { zIndex: D }, children: /* @__PURE__ */ d(
136
+ return Z(a, k ? r : void 0, G), /* @__PURE__ */ e(Y, { onExitComplete: O, children: v && /* @__PURE__ */ e("div", { className: c("modal", { [`overlay-${_}`]: _ }), style: { zIndex: S }, children: /* @__PURE__ */ d(
135
137
  V.div,
136
138
  {
137
- className: c("modal-window", { [`size-${m}`]: m }, p),
139
+ className: c("modal-window", { [`size-${m}`]: m }, u),
138
140
  ref: a,
139
141
  tabIndex: 0,
140
142
  initial: { opacity: 0, marginTop: -g },
141
143
  animate: { opacity: 1, marginTop: g },
142
144
  exit: { opacity: 0, marginTop: -g },
143
145
  transition: { duration: 0.3 },
144
- onAnimationStart: K,
146
+ onAnimationStart: F,
145
147
  children: [
146
- /* @__PURE__ */ e(ce, { title: o, onClose: r, withDescription: !!l }),
147
- z ? /* @__PURE__ */ e("div", { className: c("scrollable-wrapper"), children: /* @__PURE__ */ e(
148
+ /* @__PURE__ */ e(re, { title: o, onClose: r, withDescription: !!l }),
149
+ D ? /* @__PURE__ */ e("div", { className: c("scrollable-wrapper"), children: /* @__PURE__ */ e(
148
150
  X,
149
151
  {
150
152
  autoHeight: !0,
151
- autoHeightMax: W(),
153
+ autoHeightMax: P(),
152
154
  hideTracksWhenNotNeeded: !0,
153
- renderTrackHorizontal: k,
154
- renderTrackVertical: k,
155
+ renderTrackHorizontal: R,
156
+ renderTrackVertical: R,
155
157
  children: /* @__PURE__ */ d("div", { className: c("scrollable-content"), children: [
156
158
  l && /* @__PURE__ */ e("span", { className: c("description"), children: l }),
157
- /* @__PURE__ */ e(C, { children: n })
159
+ /* @__PURE__ */ e(I, { children: n })
158
160
  ] })
159
161
  }
160
- ) }) : /* @__PURE__ */ d(F, { children: [
162
+ ) }) : /* @__PURE__ */ d(W, { children: [
161
163
  l && /* @__PURE__ */ e("span", { className: c("description"), children: l }),
162
- /* @__PURE__ */ e(C, { children: n })
164
+ /* @__PURE__ */ e(I, { children: n })
163
165
  ] }),
164
- !N && (A ? A(r) : /* @__PURE__ */ e(
165
- le,
166
+ !y && (E ? E(r) : /* @__PURE__ */ e(
167
+ se,
166
168
  {
167
169
  size: m,
168
170
  footerNode: i,
169
- okButton: u,
171
+ okButton: p,
170
172
  cancelButton: s,
171
173
  closeHandler: r
172
174
  }
@@ -178,7 +180,8 @@ const ae = {
178
180
  };
179
181
  export {
180
182
  Ye as Modal,
181
- C as ModalContent,
182
- le as ModalFooter,
183
- ce as ModalHeader
183
+ I as ModalContent,
184
+ se as ModalFooter,
185
+ re as ModalHeader,
186
+ qe as NOTIFICATION_PORTAL_ATTR
184
187
  };
package/dist/sidePanel.js CHANGED
@@ -1,13 +1,14 @@
1
- import { jsxs as a, jsx as i, Fragment as D } from "react/jsx-runtime";
2
- import { useId as I, useRef as K, useMemo as P, useEffect as $ } from "react";
3
- import { c as A } from "./bind-06a7ff84.js";
4
- import { K as B } from "./keyCodes-f63c0e11.js";
5
- import { u as L } from "./useOnClickOutside-8f7d68a1.js";
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";
6
6
  import "react-dnd";
7
7
  import "react-dnd-html5-backend";
8
- import { a as O } from "./dropdown-d2a05471.js";
9
- import { S as T } from "./close-4d480ef7.js";
10
- import { B as j } from "./baseIconButton-251479f7.js";
8
+ import { a as L } from "./dropdown-d2a05471.js";
9
+ import { N as B } from "./constants-7319a394.js";
10
+ import { S as j } from "./close-4d480ef7.js";
11
+ import { B as w } from "./baseIconButton-251479f7.js";
11
12
  import "react-dom";
12
13
  import "@floating-ui/react-dom";
13
14
  import "downshift";
@@ -23,9 +24,10 @@ import "./checkbox-76aa8f97.js";
23
24
  import "./tooltip.js";
24
25
  import "@floating-ui/react";
25
26
  import "./floatingUi-46f5b896.js";
26
- const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H = "_title_5ebdz_88", U = "_description_5ebdz_99", W = "_content_5ebdz_108", Y = "_footer_5ebdz_115", q = "_divider_5ebdz_121", G = {
27
+ 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 = {
27
29
  "side-panel-overlay": "_side-panel-overlay_5ebdz_1",
28
- active: w,
30
+ active: F,
29
31
  "overlay-default": "_overlay-default_5ebdz_16",
30
32
  "overlay-light-cyan": "_overlay-light-cyan_5ebdz_20",
31
33
  "side-panel": "_side-panel_5ebdz_1",
@@ -33,21 +35,21 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
33
35
  "side-left": "_side-left_5ebdz_50",
34
36
  "header-section": "_header-section_5ebdz_58",
35
37
  compact: M,
36
- header: F,
38
+ header: H,
37
39
  "header-content": "_header-content_5ebdz_78",
38
40
  "close-button": "_close-button_5ebdz_82",
39
- title: H,
40
- description: U,
41
- content: W,
42
- footer: Y,
43
- divider: q
44
- }, e = A.bind(G), ze = ({
41
+ title: U,
42
+ description: W,
43
+ content: Y,
44
+ footer: q,
45
+ divider: G
46
+ }, e = $.bind(J), ge = ({
45
47
  className: b,
46
48
  title: d,
47
- descriptionComponent: o,
48
- headerComponent: c,
49
+ descriptionComponent: s,
50
+ headerComponent: o,
49
51
  contentClassName: u,
50
- contentComponent: s,
52
+ contentComponent: c,
51
53
  footerComponent: l,
52
54
  top: n = 0,
53
55
  side: z = "right",
@@ -59,30 +61,30 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
59
61
  allowCloseOutside: N = !0,
60
62
  overlayClassName: g
61
63
  }) => {
62
- const p = I(), v = K(null), E = () => {
64
+ const p = A(), v = O(null), E = () => {
63
65
  t == null || t();
64
- }, k = P(
66
+ }, T = P(
65
67
  () => ({
66
- ignoreSelectors: [`[${O}]`]
68
+ ignoreSelectors: [`[${L}]`, `[${B}]`]
67
69
  }),
68
70
  []
69
71
  );
70
- L(
72
+ K(
71
73
  v,
72
74
  N && _ && r ? t : void 0,
73
- k
74
- ), $(() => {
75
+ T
76
+ ), S(() => {
75
77
  if (!r || !t)
76
78
  return;
77
79
  const h = (R) => {
78
- const { keyCode: S } = R;
79
- S === B.ESCAPE_KEY_CODE && t();
80
+ const { keyCode: k } = R;
81
+ k === D.ESCAPE_KEY_CODE && t();
80
82
  };
81
83
  return document.addEventListener("keydown", h, !1), () => {
82
84
  document.removeEventListener("keydown", h, !1);
83
85
  };
84
86
  }, [r, t]);
85
- const x = !!(c || o), f = /* @__PURE__ */ a(
87
+ const I = !!(o || s), f = /* @__PURE__ */ a(
86
88
  "aside",
87
89
  {
88
90
  ref: v,
@@ -94,24 +96,24 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
94
96
  style: { top: n, height: `calc(100vh - ${n}px)` },
95
97
  tabIndex: -1,
96
98
  children: [
97
- /* @__PURE__ */ a("div", { className: e("header-section", { compact: !x }), children: [
98
- (c || d) && /* @__PURE__ */ a("div", { className: e("header"), children: [
99
- d ? /* @__PURE__ */ i("span", { id: p, className: e("title"), children: d }) : c,
99
+ /* @__PURE__ */ a("div", { className: e("header-section", { compact: !I }), children: [
100
+ (o || d) && /* @__PURE__ */ a("div", { className: e("header"), children: [
101
+ d ? /* @__PURE__ */ i("span", { id: p, className: e("title"), children: d }) : o,
100
102
  t && /* @__PURE__ */ i(
101
- j,
103
+ w,
102
104
  {
103
105
  className: e("close-button"),
104
106
  onClick: E,
105
107
  "aria-label": y,
106
- children: /* @__PURE__ */ i(T, {})
108
+ children: /* @__PURE__ */ i(j, {})
107
109
  }
108
110
  )
109
111
  ] }),
110
- o
112
+ s
111
113
  ] }),
112
114
  /* @__PURE__ */ i("div", { className: e("divider") }),
113
- s && /* @__PURE__ */ i("div", { className: e("content", u), children: s }),
114
- l && /* @__PURE__ */ a(D, { children: [
115
+ c && /* @__PURE__ */ i("div", { className: e("content", u), children: c }),
116
+ l && /* @__PURE__ */ a(x, { children: [
115
117
  /* @__PURE__ */ i("div", { className: e("divider") }),
116
118
  /* @__PURE__ */ i("div", { className: e("footer"), children: l })
117
119
  ] })
@@ -132,5 +134,5 @@ const w = "_active_5ebdz_11", M = "_compact_5ebdz_62", F = "_header_5ebdz_58", H
132
134
  ) : f;
133
135
  };
134
136
  export {
135
- ze as SidePanel
137
+ ge as SidePanel
136
138
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.253",
3
+ "version": "0.0.1-alpha.254",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {