@reportportal/ui-kit 0.0.1-alpha.169 → 0.0.1-alpha.170

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,67 +1,68 @@
1
- import { AdaptiveTagList as D } from "./adaptiveTagList.js";
2
- import { A as b, a as y } from "./actionMenu-77a63b96.js";
3
- import { ACTION_MENU_DIVIDER as h } from "./actionMenu.js";
4
- import { A as v } from "./index-1a874a8b.js";
5
- import { B as w } from "./baseIconButton-251479f7.js";
6
- import { B as R } from "./breadcrumbs-9b38b89c.js";
7
- import { B as O } from "./bubblesLoader-f3ffa240.js";
8
- import { BulkPanel as U } from "./bulkPanel.js";
9
- import { B as H } from "./button-97d9e587.js";
10
- import { C as _ } from "./checkbox-493fdc63.js";
11
- import { Chip as V } from "./chip.js";
12
- import { D as X } from "./datePicker-ad4a758c.js";
1
+ import { AdaptiveTagList as y } from "./adaptiveTagList.js";
2
+ import { A as h, a as M } from "./actionMenu-77a63b96.js";
3
+ import { ACTION_MENU_DIVIDER as L } from "./actionMenu.js";
4
+ import { A as E } from "./index-1a874a8b.js";
5
+ import { B as k } from "./baseIconButton-251479f7.js";
6
+ import { B as N } from "./breadcrumbs-9b38b89c.js";
7
+ import { B as z } from "./bubblesLoader-f3ffa240.js";
8
+ import { BulkPanel as J } from "./bulkPanel.js";
9
+ import { B as _ } from "./button-97d9e587.js";
10
+ import { C as W } from "./checkbox-493fdc63.js";
11
+ import { Chip as j } from "./chip.js";
12
+ import { D as K } from "./datePicker-412fb8e8.js";
13
13
  import "react-datepicker";
14
- import { D as q } from "./dropdown-7d024c49.js";
15
- import { FieldLabel as Q } from "./fieldLabel.js";
16
- import { F as Z } from "./fieldNumber-d1b5a7a1.js";
17
- import { F as oo } from "./fieldText-1749da7a.js";
18
- import { F as eo } from "./fieldTextFlex-2f51c173.js";
19
- import { FileDropArea as no } from "./fileDropArea.js";
20
- import { FiltersButton as po } from "./filtersButton.js";
21
- import { FilterItem as co } from "./filterItem.js";
22
- import { IssueList as so } from "./issueList.js";
23
- import { Modal as xo } from "./modal.js";
24
- import { MultipleAutocomplete as lo, SingleAutocomplete as uo } from "./autocompletes.js";
25
- import { P as Co } from "./pagination-4ded0ec6.js";
26
- import { Popover as go } from "./popover.js";
27
- import { R as Ao } from "./radio-62546efa.js";
28
- import { SegmentedControl as To } from "./segmentedControl.js";
29
- import { S as yo } from "./selection-9124d029.js";
30
- import { S as ho } from "./spinLoader-c4a53718.js";
31
- import { SystemAlert as vo } from "./systemAlert.js";
32
- import { S as wo } from "./systemMessage-924fdaa6.js";
33
- import { DragLayer as Ro, SortableItem as ko, SortableList as Oo } from "./sortable.js";
34
- import { T as Uo } from "./table-03bd209d.js";
35
- import { T as Ho } from "./themeProvider-46c2be7b.js";
36
- import { T as _o } from "./toggle-304107fa.js";
37
- import { Tooltip as Vo } from "./tooltip.js";
38
- import { SidePanel as Xo } from "./sidePanel.js";
39
- import { AddCsvIcon as qo, AddImageIcon as Ko, AddJarIcon as Qo, BreadcrumbsTreeIcon as Yo, CalendarIcon as Zo, CheckmarkIcon as $o, ChevronRightBreadcrumbsIcon as or, ConfigurationIcon as rr, CopyIcon as er, CoverageFullIcon as tr, CoveragePartialIcon as nr, CoveredManuallyIcon as ar, DeleteIcon as pr, DragAndDropIcon as mr, DragNDropIcon as cr, DurationIcon as ir, EditIcon as sr, ExportIcon as Ir, FlagIcon as xr, GroupByIcon as fr, HideIcon as lr, LaunchTypeIcon as dr, MaximizeIcon as ur, MoveToFolderIcon as Sr, PinFilledIcon as Cr, PinOutlineIcon as Pr, PriorityBlockerIcon as gr, PriorityCriticalIcon as Fr, PriorityHighIcon as Ar, PriorityLowIcon as Dr, PriorityMediumIcon as Tr, PriorityUnspecifiedIcon as br, RefreshIcon as yr, RerunIcon as Br, RunManualIcon as hr, SearchIcon as Mr, SortIcon as vr, StatusSuccessIcon as Lr, TestPlanIcon as wr, UserIcon as Er } from "./icons.js";
40
- import { S as kr, a as Or, b as Nr } from "./resizeColumn-46b5b30f.js";
41
- import { S as zr } from "./calendarArrow-44c7e60e.js";
42
- import { S as Jr } from "./chevronDownDropdown-0260bb66.js";
43
- import { S as Gr } from "./clear-53660571.js";
44
- import { S as Wr, a as Xr } from "./openEye-950159cb.js";
45
- import { S as qr } from "./close-4d480ef7.js";
46
- import { S as Qr, a as Yr, b as Zr, c as $r, d as oe, e as re, f as ee } from "./xls-995781cc.js";
47
- import { S as ne } from "./dropdown-0260bb66.js";
48
- import { S as pe, a as me, b as ce } from "./success-8fd8bd2c.js";
49
- import { S as se, a as Ie } from "./filterOutline-819b4b0d.js";
50
- import { S as fe } from "./meatballMenu-535635a9.js";
51
- import { S as de } from "./minus-2857540f.js";
52
- import { S as Se } from "./plus-199fb2a8.js";
53
- import { S as Pe, a as ge } from "./prevPage-87faf576.js";
54
- import { S as Ae } from "./tree-e7a0ef42.js";
55
- import { S as Te } from "./warning-537ead32.js";
56
- import "react/jsx-runtime";
14
+ import { D as Y } from "./dropdown-7d024c49.js";
15
+ import { FieldLabel as $ } from "./fieldLabel.js";
16
+ import { F as ro } from "./fieldNumber-d1b5a7a1.js";
17
+ import { F as to } from "./fieldText-1749da7a.js";
18
+ import { F as ao } from "./fieldTextFlex-2f51c173.js";
19
+ import { FileDropArea as mo } from "./fileDropArea.js";
20
+ import { FiltersButton as co } from "./filtersButton.js";
21
+ import { FilterItem as Io } from "./filterItem.js";
22
+ import { IssueList as xo } from "./issueList.js";
23
+ import { Modal as uo } from "./modal.js";
24
+ import { MultipleAutocomplete as Co, SingleAutocomplete as Po } from "./autocompletes.js";
25
+ import { P as Fo } from "./pagination-4ded0ec6.js";
26
+ import { Popover as To } from "./popover.js";
27
+ import { R as bo } from "./radio-62546efa.js";
28
+ import { SegmentedControl as Bo } from "./segmentedControl.js";
29
+ import { S as Mo } from "./selection-9124d029.js";
30
+ import { S as Lo } from "./spinLoader-c4a53718.js";
31
+ import { SystemAlert as Eo } from "./systemAlert.js";
32
+ import { S as ko } from "./systemMessage-924fdaa6.js";
33
+ import { DragLayer as No, SortableItem as Uo, SortableList as zo, TreeSortableContainer as Ho, TreeSortableItem as Jo } from "./sortable.js";
34
+ import { T as _o } from "./table-03bd209d.js";
35
+ import { T as Wo } from "./themeProvider-46c2be7b.js";
36
+ import { T as jo } from "./toggle-304107fa.js";
37
+ import { Tooltip as Ko } from "./tooltip.js";
38
+ import { SidePanel as Yo } from "./sidePanel.js";
57
39
  import "react";
40
+ import "react-dnd";
41
+ import "react-dnd-html5-backend";
42
+ import { useTreeDropValidation as $o } from "./common/hooks.js";
43
+ import { AddCsvIcon as rr, AddImageIcon as er, AddJarIcon as tr, BreadcrumbsTreeIcon as nr, CalendarIcon as ar, CheckmarkIcon as pr, ChevronRightBreadcrumbsIcon as mr, ConfigurationIcon as ir, CopyIcon as cr, CoverageFullIcon as sr, CoveragePartialIcon as Ir, CoveredManuallyIcon as lr, DeleteIcon as xr, DragAndDropIcon as fr, DragNDropIcon as dr, DurationIcon as ur, EditIcon as Sr, ExportIcon as Cr, FlagIcon as Pr, GroupByIcon as gr, HideIcon as Fr, LaunchTypeIcon as Dr, MaximizeIcon as Tr, MoveToFolderIcon as Ar, PinFilledIcon as br, PinOutlineIcon as yr, PriorityBlockerIcon as Br, PriorityCriticalIcon as hr, PriorityHighIcon as Mr, PriorityLowIcon as vr, PriorityMediumIcon as Lr, PriorityUnspecifiedIcon as wr, RefreshIcon as Er, RerunIcon as Rr, RunManualIcon as kr, SearchIcon as Or, SortIcon as Nr, StatusSuccessIcon as Ur, TestPlanIcon as zr, UserIcon as Hr } from "./icons.js";
44
+ import { S as Vr, a as _r, b as Gr } from "./resizeColumn-46b5b30f.js";
45
+ import { S as Xr } from "./calendarArrow-44c7e60e.js";
46
+ import { S as qr } from "./chevronDownDropdown-0260bb66.js";
47
+ import { S as Qr } from "./clear-53660571.js";
48
+ import { S as Zr, a as $r } from "./openEye-950159cb.js";
49
+ import { S as re } from "./close-4d480ef7.js";
50
+ import { S as te, a as ne, b as ae, c as pe, d as me, e as ie, f as ce } from "./xls-995781cc.js";
51
+ import { S as Ie } from "./dropdown-0260bb66.js";
52
+ import { S as xe, a as fe, b as de } from "./success-8fd8bd2c.js";
53
+ import { S as Se, a as Ce } from "./filterOutline-819b4b0d.js";
54
+ import { S as ge } from "./meatballMenu-535635a9.js";
55
+ import { S as De } from "./minus-2857540f.js";
56
+ import { S as Ae } from "./plus-199fb2a8.js";
57
+ import { S as ye, a as Be } from "./prevPage-87faf576.js";
58
+ import { S as Me } from "./tree-e7a0ef42.js";
59
+ import { S as Le } from "./warning-537ead32.js";
60
+ import "react/jsx-runtime";
58
61
  import "./bind-06a7ff84.js";
59
62
  import "./isEmpty-ccacb5ff.js";
60
63
  import "react-dom";
61
64
  import "rc-scrollbars";
62
65
  import "./useOnClickOutside-8f7d68a1.js";
63
- import "react-dnd";
64
- import "react-dnd-html5-backend";
65
66
  import "./keyCodes-f63c0e11.js";
66
67
  import "react-datepicker/dist/es/index.js";
67
68
  import "@floating-ui/react-dom";
@@ -69,119 +70,125 @@ import "downshift";
69
70
  import "./maxValueDisplay-9be01a75.js";
70
71
  import "react-dropzone";
71
72
  import "framer-motion";
73
+ import "./useWindowResize-a7e1ac92.js";
72
74
  import "@floating-ui/react";
73
75
  import "./floatingUi-41f8c7b5.js";
76
+ import "es-toolkit";
77
+ import "./useTreeSortable-70a9c8f5.js";
74
78
  import "./common.js";
75
79
  import "react-resizable";
76
80
  export {
77
- h as ACTION_MENU_DIVIDER,
78
- b as ActionMenu,
79
- y as ActionMenuItem,
80
- D as AdaptiveTagList,
81
- qo as AddCsvIcon,
82
- Ko as AddImageIcon,
83
- Qo as AddJarIcon,
84
- kr as ArrowDownIcon,
85
- Or as ArrowUpIcon,
86
- v as AttachedFile,
87
- w as BaseIconButton,
88
- R as Breadcrumbs,
89
- Yo as BreadcrumbsTreeIcon,
90
- O as BubblesLoader,
91
- U as BulkPanel,
92
- H as Button,
93
- zr as CalendarArrowIcon,
94
- Zo as CalendarIcon,
95
- _ as Checkbox,
96
- $o as CheckmarkIcon,
97
- Jr as ChevronDownDropdownIcon,
98
- or as ChevronRightBreadcrumbsIcon,
99
- V as Chip,
100
- Gr as ClearIcon,
101
- Wr as CloseEyeIcon,
102
- qr as CloseIcon,
103
- rr as ConfigurationIcon,
104
- er as CopyIcon,
105
- tr as CoverageFullIcon,
106
- nr as CoveragePartialIcon,
107
- ar as CoveredManuallyIcon,
108
- Qr as CsvIcon,
109
- X as DatePicker,
110
- pr as DeleteIcon,
111
- mr as DragAndDropIcon,
112
- Ro as DragLayer,
113
- cr as DragNDropIcon,
114
- q as Dropdown,
115
- ne as DropdownIcon,
116
- ir as DurationIcon,
117
- sr as EditIcon,
118
- pe as ErrorIcon,
119
- Ir as ExportIcon,
120
- Yr as ExternalLinkIcon,
121
- Q as FieldLabel,
122
- Z as FieldNumber,
123
- oo as FieldText,
124
- eo as FieldTextFlex,
125
- no as FileDropArea,
126
- Zr as FileOtherIcon,
127
- se as FilterFilledIcon,
128
- co as FilterItem,
129
- Ie as FilterOutlineIcon,
130
- po as FiltersButton,
131
- xr as FlagIcon,
132
- fr as GroupByIcon,
133
- lr as HideIcon,
134
- $r as ImageIcon,
135
- me as InfoIcon,
136
- so as IssueList,
137
- oe as JarIcon,
138
- dr as LaunchTypeIcon,
139
- ur as MaximizeIcon,
140
- fe as MeatballMenuIcon,
141
- de as MinusIcon,
142
- xo as Modal,
143
- Sr as MoveToFolderIcon,
144
- lo as MultipleAutocomplete,
145
- Xr as OpenEyeIcon,
146
- Co as Pagination,
147
- re as PdfIcon,
148
- Cr as PinFilledIcon,
149
- Pr as PinOutlineIcon,
150
- Se as PlusIcon,
151
- go as Popover,
152
- Pe as PrevChapterIcon,
153
- ge as PrevPageIcon,
154
- gr as PriorityBlockerIcon,
155
- Fr as PriorityCriticalIcon,
156
- Ar as PriorityHighIcon,
157
- Dr as PriorityLowIcon,
158
- Tr as PriorityMediumIcon,
159
- br as PriorityUnspecifiedIcon,
160
- Ao as Radio,
161
- yr as RefreshIcon,
162
- Br as RerunIcon,
163
- Nr as ResizeColumnIcon,
164
- hr as RunManualIcon,
165
- Mr as SearchIcon,
166
- To as SegmentedControl,
167
- yo as Selection,
168
- Xo as SidePanel,
169
- uo as SingleAutocomplete,
170
- vr as SortIcon,
171
- ko as SortableItem,
172
- Oo as SortableList,
173
- ho as SpinLoader,
174
- Lr as StatusSuccessIcon,
175
- ce as SuccessIcon,
176
- vo as SystemAlert,
177
- wo as SystemMessage,
178
- Uo as Table,
179
- wr as TestPlanIcon,
180
- Ho as ThemeProvider,
181
- _o as Toggle,
182
- Vo as Tooltip,
183
- Ae as TreeIcon,
184
- Er as UserIcon,
185
- Te as WarningIcon,
186
- ee as XlsIcon
81
+ L as ACTION_MENU_DIVIDER,
82
+ h as ActionMenu,
83
+ M as ActionMenuItem,
84
+ y as AdaptiveTagList,
85
+ rr as AddCsvIcon,
86
+ er as AddImageIcon,
87
+ tr as AddJarIcon,
88
+ Vr as ArrowDownIcon,
89
+ _r as ArrowUpIcon,
90
+ E as AttachedFile,
91
+ k as BaseIconButton,
92
+ N as Breadcrumbs,
93
+ nr as BreadcrumbsTreeIcon,
94
+ z as BubblesLoader,
95
+ J as BulkPanel,
96
+ _ as Button,
97
+ Xr as CalendarArrowIcon,
98
+ ar as CalendarIcon,
99
+ W as Checkbox,
100
+ pr as CheckmarkIcon,
101
+ qr as ChevronDownDropdownIcon,
102
+ mr as ChevronRightBreadcrumbsIcon,
103
+ j as Chip,
104
+ Qr as ClearIcon,
105
+ Zr as CloseEyeIcon,
106
+ re as CloseIcon,
107
+ ir as ConfigurationIcon,
108
+ cr as CopyIcon,
109
+ sr as CoverageFullIcon,
110
+ Ir as CoveragePartialIcon,
111
+ lr as CoveredManuallyIcon,
112
+ te as CsvIcon,
113
+ K as DatePicker,
114
+ xr as DeleteIcon,
115
+ fr as DragAndDropIcon,
116
+ No as DragLayer,
117
+ dr as DragNDropIcon,
118
+ Y as Dropdown,
119
+ Ie as DropdownIcon,
120
+ ur as DurationIcon,
121
+ Sr as EditIcon,
122
+ xe as ErrorIcon,
123
+ Cr as ExportIcon,
124
+ ne as ExternalLinkIcon,
125
+ $ as FieldLabel,
126
+ ro as FieldNumber,
127
+ to as FieldText,
128
+ ao as FieldTextFlex,
129
+ mo as FileDropArea,
130
+ ae as FileOtherIcon,
131
+ Se as FilterFilledIcon,
132
+ Io as FilterItem,
133
+ Ce as FilterOutlineIcon,
134
+ co as FiltersButton,
135
+ Pr as FlagIcon,
136
+ gr as GroupByIcon,
137
+ Fr as HideIcon,
138
+ pe as ImageIcon,
139
+ fe as InfoIcon,
140
+ xo as IssueList,
141
+ me as JarIcon,
142
+ Dr as LaunchTypeIcon,
143
+ Tr as MaximizeIcon,
144
+ ge as MeatballMenuIcon,
145
+ De as MinusIcon,
146
+ uo as Modal,
147
+ Ar as MoveToFolderIcon,
148
+ Co as MultipleAutocomplete,
149
+ $r as OpenEyeIcon,
150
+ Fo as Pagination,
151
+ ie as PdfIcon,
152
+ br as PinFilledIcon,
153
+ yr as PinOutlineIcon,
154
+ Ae as PlusIcon,
155
+ To as Popover,
156
+ ye as PrevChapterIcon,
157
+ Be as PrevPageIcon,
158
+ Br as PriorityBlockerIcon,
159
+ hr as PriorityCriticalIcon,
160
+ Mr as PriorityHighIcon,
161
+ vr as PriorityLowIcon,
162
+ Lr as PriorityMediumIcon,
163
+ wr as PriorityUnspecifiedIcon,
164
+ bo as Radio,
165
+ Er as RefreshIcon,
166
+ Rr as RerunIcon,
167
+ Gr as ResizeColumnIcon,
168
+ kr as RunManualIcon,
169
+ Or as SearchIcon,
170
+ Bo as SegmentedControl,
171
+ Mo as Selection,
172
+ Yo as SidePanel,
173
+ Po as SingleAutocomplete,
174
+ Nr as SortIcon,
175
+ Uo as SortableItem,
176
+ zo as SortableList,
177
+ Lo as SpinLoader,
178
+ Ur as StatusSuccessIcon,
179
+ de as SuccessIcon,
180
+ Eo as SystemAlert,
181
+ ko as SystemMessage,
182
+ _o as Table,
183
+ zr as TestPlanIcon,
184
+ Wo as ThemeProvider,
185
+ jo as Toggle,
186
+ Ko as Tooltip,
187
+ Me as TreeIcon,
188
+ Ho as TreeSortableContainer,
189
+ Jo as TreeSortableItem,
190
+ Hr as UserIcon,
191
+ Le as WarningIcon,
192
+ ce as XlsIcon,
193
+ $o as useTreeDropValidation
187
194
  };
package/dist/modal.js CHANGED
@@ -1,17 +1,18 @@
1
- import { jsx as e, jsxs as c, Fragment as F } from "react/jsx-runtime";
2
- import { useState as f, useEffect as y, useRef as G, useMemo as K } from "react";
1
+ import { jsx as o, jsxs as r, Fragment as F } from "react/jsx-runtime";
2
+ import { useState as v, useRef as G, useEffect as x, useMemo as K } from "react";
3
3
  import { Scrollbars as U } from "rc-scrollbars";
4
4
  import { AnimatePresence as Y, motion as X } from "framer-motion";
5
- import { c as g } from "./bind-06a7ff84.js";
5
+ import { c as w } from "./bind-06a7ff84.js";
6
6
  import { u as q } from "./useOnClickOutside-8f7d68a1.js";
7
7
  import "react-dnd";
8
8
  import "react-dnd-html5-backend";
9
- import { a as J } from "./dropdown-7d024c49.js";
10
- import { K as Q } from "./keyCodes-f63c0e11.js";
9
+ import { u as J } from "./useWindowResize-a7e1ac92.js";
10
+ import { a as Q } from "./dropdown-7d024c49.js";
11
+ import { K as V } from "./keyCodes-f63c0e11.js";
11
12
  import { B as A } from "./button-97d9e587.js";
12
- import { Tooltip as V } from "./tooltip.js";
13
- import { B as Z } from "./baseIconButton-251479f7.js";
14
- import { S as ee } from "./close-4d480ef7.js";
13
+ import { Tooltip as Z } from "./tooltip.js";
14
+ import { B as oo } from "./baseIconButton-251479f7.js";
15
+ import { S as to } from "./close-4d480ef7.js";
15
16
  import "react-dom";
16
17
  import "@floating-ui/react-dom";
17
18
  import "downshift";
@@ -23,149 +24,138 @@ import "./isEmpty-ccacb5ff.js";
23
24
  import "./checkbox-493fdc63.js";
24
25
  import "@floating-ui/react";
25
26
  import "./floatingUi-41f8c7b5.js";
26
- const te = () => {
27
- const [o, i] = f({ width: 0, height: 0 });
28
- return y(() => {
29
- const n = () => {
30
- i({
31
- width: window.innerWidth,
32
- height: window.innerHeight
33
- });
34
- };
35
- return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
36
- }, []), o;
37
- }, oe = {
27
+ const eo = {
38
28
  "modal-content": "_modal-content_ppzcb_1"
39
- }, ne = g.bind(oe), T = ({ children: o }) => /* @__PURE__ */ e("div", { className: ne("modal-content"), children: o }), ie = {
29
+ }, no = w.bind(eo), T = ({ children: e }) => /* @__PURE__ */ o("div", { className: no("modal-content"), children: e }), ao = {
40
30
  "buttons-block": "_buttons-block_1mwne_1",
41
31
  "button-container": "_button-container_1mwne_7",
42
32
  "modal-footer": "_modal-footer_1mwne_12",
43
33
  "with-extra-node": "_with-extra-node_1mwne_19",
44
34
  "size-small": "_size-small_1mwne_23"
45
- }, u = g.bind(ie), ae = ({
46
- footerNode: o,
47
- closeHandler: i,
48
- okButton: n,
49
- cancelButton: h,
50
- size: a
35
+ }, h = w.bind(ao), lo = ({
36
+ footerNode: e,
37
+ closeHandler: n,
38
+ okButton: a,
39
+ cancelButton: p,
40
+ size: l
51
41
  }) => {
52
- const { tooltipNode: p, ...d } = n || {}, v = () => {
53
- const m = /* @__PURE__ */ e(A, { adjustWidthOn: a === "small" ? "parent" : "min-width", ...d });
54
- return p ? /* @__PURE__ */ e(V, { content: p, placement: "top", width: 270, children: m }) : m;
42
+ const { tooltipNode: u, ...d } = a || {}, g = () => {
43
+ const m = /* @__PURE__ */ o(A, { adjustWidthOn: l === "small" ? "parent" : "min-width", ...d });
44
+ return u ? /* @__PURE__ */ o(Z, { content: u, placement: "top", width: 270, children: m }) : m;
55
45
  };
56
- return /* @__PURE__ */ c("div", { className: u("modal-footer", { "with-extra-node": o, [`size-${a}`]: a }), children: [
57
- o && o,
58
- /* @__PURE__ */ c("div", { className: u("buttons-block"), children: [
59
- h && /* @__PURE__ */ e("div", { className: u("button-container"), children: /* @__PURE__ */ e(
46
+ return /* @__PURE__ */ r("div", { className: h("modal-footer", { "with-extra-node": e, [`size-${l}`]: l }), children: [
47
+ e && e,
48
+ /* @__PURE__ */ r("div", { className: h("buttons-block"), children: [
49
+ p && /* @__PURE__ */ o("div", { className: h("button-container"), children: /* @__PURE__ */ o(
60
50
  A,
61
51
  {
62
52
  variant: "ghost",
63
- adjustWidthOn: a === "small" ? "parent" : "min-width",
64
- onClick: i,
65
- ...h
53
+ adjustWidthOn: l === "small" ? "parent" : "min-width",
54
+ onClick: n,
55
+ ...p
66
56
  }
67
57
  ) }),
68
- n && /* @__PURE__ */ e("div", { className: u("button-container"), children: v() })
58
+ a && /* @__PURE__ */ o("div", { className: h("button-container"), children: g() })
69
59
  ] })
70
60
  ] });
71
- }, se = {
61
+ }, so = {
72
62
  "modal-header": "_modal-header_w4aaf_1",
73
63
  "width-description": "_width-description_w4aaf_10",
74
64
  "modal-header-content": "_modal-header-content_w4aaf_14",
75
65
  "modal-title": "_modal-title_w4aaf_20",
76
66
  "close-modal-icon": "_close-modal-icon_w4aaf_29"
77
- }, w = g.bind(se), le = ({ title: o, onClose: i, withDescription: n = !1 }) => /* @__PURE__ */ c("div", { className: w("modal-header", { "width-description": n }), children: [
78
- /* @__PURE__ */ e("div", { className: w("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: w("modal-title"), children: o }) }),
79
- /* @__PURE__ */ e(Z, { className: w("close-modal-icon"), onClick: i, children: /* @__PURE__ */ e(ee, {}) })
80
- ] }), re = "_modal_35896_1", ce = "_description_35896_43", de = {
81
- modal: re,
67
+ }, f = w.bind(so), io = ({ title: e, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ r("div", { className: f("modal-header", { "width-description": a }), children: [
68
+ /* @__PURE__ */ o("div", { className: f("modal-header-content"), children: e && /* @__PURE__ */ o("div", { className: f("modal-title"), children: e }) }),
69
+ /* @__PURE__ */ o(oo, { className: f("close-modal-icon"), onClick: n, children: /* @__PURE__ */ o(to, {}) })
70
+ ] }), co = "_modal_35896_1", ro = "_description_35896_43", mo = {
71
+ modal: co,
82
72
  "overlay-default": "_overlay-default_35896_12",
83
73
  "overlay-light-cyan": "_overlay-light-cyan_35896_16",
84
74
  "scrolling-content": "_scrolling-content_35896_20",
85
75
  "modal-window": "_modal-window_35896_26",
86
- description: ce,
76
+ description: ro,
87
77
  "scrollable-wrapper": "_scrollable-wrapper_35896_54",
88
78
  "scrollable-content": "_scrollable-content_35896_58",
89
79
  "size-default": "_size-default_35896_62",
90
80
  "size-small": "_size-small_35896_74",
91
81
  "size-large": "_size-large_35896_86"
92
- }, r = g.bind(de), me = 0.9, _e = 32 + 24, he = 32 + 8, pe = 36 + 16, ue = 32 * 2, Be = ({
93
- title: o,
94
- children: i,
95
- footerNode: n,
96
- okButton: h,
97
- cancelButton: a,
98
- className: p,
82
+ }, c = w.bind(mo), _o = 0.9, po = 32 + 24, uo = 32 + 8, ho = 36 + 16, fo = 32 * 2, Fo = ({
83
+ title: e,
84
+ children: n,
85
+ footerNode: a,
86
+ okButton: p,
87
+ cancelButton: l,
88
+ className: u,
99
89
  size: d = "default",
100
- onClose: v = () => {
90
+ onClose: g = () => {
101
91
  },
102
92
  overlay: m = "default",
103
93
  zIndex: D = 2,
104
- allowCloseOutside: z = !0,
105
- scrollable: C = !1,
106
- withoutFooter: H = !1,
94
+ allowCloseOutside: C = !0,
95
+ scrollable: k = !1,
96
+ withoutFooter: y = !1,
107
97
  createFooter: N = null,
108
98
  description: s = null
109
99
  }) => {
110
- const [S, O] = f(!1), [k, R] = f(0), [I, L] = f(!1), l = G(null), E = te(), M = E.height, $ = M * me, b = (M - k) / 2, W = () => {
111
- let t = $ - ue;
112
- return H || (t = t - pe), s ? t = t - he : t = t - _e, t;
100
+ const [I, O] = v(!1), [R, S] = v(0), [$, L] = v(!1), i = G(null), H = J(), M = H.height, z = M * _o, b = (M - R) / 2, P = () => {
101
+ let t = z - fo;
102
+ return y || (t = t - ho), s ? t = t - uo : t = t - po, t;
113
103
  }, _ = () => {
114
104
  O(!1);
115
- }, x = (t) => {
105
+ }, E = (t) => {
116
106
  const { keyCode: j } = t;
117
- j === Q.ESCAPE_KEY_CODE && _();
118
- }, P = () => {
107
+ j === V.ESCAPE_KEY_CODE && _();
108
+ }, W = () => {
119
109
  var t;
120
- I || ((t = l.current) == null || t.focus(), L(!0));
110
+ $ || ((t = i.current) == null || t.focus(), L(!0));
121
111
  };
122
- y(() => {
123
- if (l && l.current) {
124
- const { clientHeight: t } = l.current;
125
- R(t);
112
+ x(() => {
113
+ if (i && i.current) {
114
+ const { clientHeight: t } = i.current;
115
+ S(t);
126
116
  }
127
- }, [i, E]), y(() => (O(!0), document.addEventListener("keydown", x, !1), () => document.removeEventListener("keydown", x, !1)), []);
117
+ }, [n, H]), x(() => (O(!0), document.addEventListener("keydown", E, !1), () => document.removeEventListener("keydown", E, !1)), []);
128
118
  const B = K(
129
119
  () => ({
130
- ignoreSelectors: [`[${J}]`]
120
+ ignoreSelectors: [`[${Q}]`]
131
121
  }),
132
122
  []
133
123
  );
134
- return q(l, z ? _ : void 0, B), /* @__PURE__ */ e(Y, { onExitComplete: v, children: S && /* @__PURE__ */ e("div", { className: r("modal", { [`overlay-${m}`]: m }), style: { zIndex: D }, children: /* @__PURE__ */ c(
124
+ return q(i, C ? _ : void 0, B), /* @__PURE__ */ o(Y, { onExitComplete: g, children: I && /* @__PURE__ */ o("div", { className: c("modal", { [`overlay-${m}`]: m }), style: { zIndex: D }, children: /* @__PURE__ */ r(
135
125
  X.div,
136
126
  {
137
- className: r("modal-window", { [`size-${d}`]: d }, p),
138
- ref: l,
127
+ className: c("modal-window", { [`size-${d}`]: d }, u),
128
+ ref: i,
139
129
  tabIndex: 0,
140
130
  initial: { opacity: 0, marginTop: -b },
141
131
  animate: { opacity: 1, marginTop: b },
142
132
  exit: { opacity: 0, marginTop: -b },
143
133
  transition: { duration: 0.3 },
144
- onAnimationStart: P,
134
+ onAnimationStart: W,
145
135
  children: [
146
- /* @__PURE__ */ e(le, { title: o, onClose: _, withDescription: !!s }),
147
- C ? /* @__PURE__ */ e("div", { className: r("scrollable-wrapper"), children: /* @__PURE__ */ e(
136
+ /* @__PURE__ */ o(io, { title: e, onClose: _, withDescription: !!s }),
137
+ k ? /* @__PURE__ */ o("div", { className: c("scrollable-wrapper"), children: /* @__PURE__ */ o(
148
138
  U,
149
139
  {
150
140
  autoHeight: !0,
151
- autoHeightMax: W(),
141
+ autoHeightMax: P(),
152
142
  hideTracksWhenNotNeeded: !0,
153
- children: /* @__PURE__ */ c("div", { className: r("scrollable-content"), children: [
154
- s && /* @__PURE__ */ e("span", { className: r("description"), children: s }),
155
- /* @__PURE__ */ e(T, { children: i })
143
+ children: /* @__PURE__ */ r("div", { className: c("scrollable-content"), children: [
144
+ s && /* @__PURE__ */ o("span", { className: c("description"), children: s }),
145
+ /* @__PURE__ */ o(T, { children: n })
156
146
  ] })
157
147
  }
158
- ) }) : /* @__PURE__ */ c(F, { children: [
159
- s && /* @__PURE__ */ e("span", { className: r("description"), children: s }),
160
- /* @__PURE__ */ e(T, { children: i })
148
+ ) }) : /* @__PURE__ */ r(F, { children: [
149
+ s && /* @__PURE__ */ o("span", { className: c("description"), children: s }),
150
+ /* @__PURE__ */ o(T, { children: n })
161
151
  ] }),
162
- !H && (N ? N(_) : /* @__PURE__ */ e(
163
- ae,
152
+ !y && (N ? N(_) : /* @__PURE__ */ o(
153
+ lo,
164
154
  {
165
155
  size: d,
166
- footerNode: n,
167
- okButton: h,
168
- cancelButton: a,
156
+ footerNode: a,
157
+ okButton: p,
158
+ cancelButton: l,
169
159
  closeHandler: _
170
160
  }
171
161
  ))
@@ -175,8 +165,8 @@ const te = () => {
175
165
  ) }) });
176
166
  };
177
167
  export {
178
- Be as Modal,
168
+ Fo as Modal,
179
169
  T as ModalContent,
180
- ae as ModalFooter,
181
- le as ModalHeader
170
+ lo as ModalFooter,
171
+ io as ModalHeader
182
172
  };