@reportportal/ui-kit 0.0.1-alpha.15 → 0.0.1-alpha.17

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.
@@ -1,19 +1,19 @@
1
1
  import { jsxs as p, jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as l } from "react";
3
3
  import { c as u } from "./bind-06a7ff84.js";
4
- const w = "_button_1fbsg_1", x = "_primary_1fbsg_18", y = "_disabled_1fbsg_23", N = "_ghost_1fbsg_35", B = "_danger_1fbsg_53", $ = "_text_1fbsg_69", j = "_icon_1fbsg_115", I = {
4
+ const w = "_button_1szj1_1", x = "_primary_1szj1_19", f = "_disabled_1szj1_24", g = "_ghost_1szj1_36", y = "_danger_1szj1_54", N = "_text_1szj1_70", B = "_icon_1szj1_116", $ = {
5
5
  button: w,
6
6
  primary: x,
7
- disabled: y,
8
- ghost: N,
9
- danger: B,
10
- text: $,
11
- "width-wide-content": "_width-wide-content_1fbsg_105",
12
- "width-parent": "_width-parent_1fbsg_110",
13
- icon: j,
14
- "icon-start": "_icon-start_1fbsg_121",
15
- "icon-end": "_icon-end_1fbsg_125"
16
- }, c = u.bind(I), z = l(
7
+ disabled: f,
8
+ ghost: g,
9
+ danger: y,
10
+ text: N,
11
+ "width-wide-content": "_width-wide-content_1szj1_106",
12
+ "width-parent": "_width-parent_1szj1_111",
13
+ icon: B,
14
+ "icon-start": "_icon-start_1szj1_122",
15
+ "icon-end": "_icon-end_1szj1_126"
16
+ }, c = u.bind($), q = l(
17
17
  ({
18
18
  variant: t = "primary",
19
19
  icon: e,
@@ -23,24 +23,24 @@ const w = "_button_1fbsg_1", x = "_primary_1fbsg_18", y = "_disabled_1fbsg_23",
23
23
  children: i,
24
24
  disabled: o = !1,
25
25
  onClick: a,
26
- title: b,
27
- className: d,
28
- ...f
29
- }, g) => {
30
- const m = c("button", t, d, {
26
+ title: d,
27
+ className: m,
28
+ ...j
29
+ }, z) => {
30
+ const b = c("button", t, m, {
31
31
  disabled: o,
32
32
  [`width-${n}`]: n
33
33
  }), _ = t === "text" && e;
34
34
  return /* @__PURE__ */ p(
35
35
  "button",
36
36
  {
37
- ref: g,
37
+ ref: z,
38
38
  type: r,
39
39
  disabled: o,
40
- className: m,
40
+ className: b,
41
41
  onClick: a,
42
- title: b,
43
- ...f,
42
+ title: d,
43
+ ...j,
44
44
  children: [
45
45
  _ && /* @__PURE__ */ h(
46
46
  "i",
@@ -58,5 +58,5 @@ const w = "_button_1fbsg_1", x = "_primary_1fbsg_18", y = "_disabled_1fbsg_23",
58
58
  }
59
59
  );
60
60
  export {
61
- z as B
61
+ q as B
62
62
  };
package/dist/button.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o } from "./button-7fb84fde.js";
1
+ import { B as o } from "./button-bb309472.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
@@ -18,6 +18,7 @@ interface DropdownProps {
18
18
  onFocus?: () => void;
19
19
  onBlur?: () => void;
20
20
  renderOption?: RenderDropdownOption;
21
+ isListWidthLimited?: boolean;
21
22
  }
22
23
  export declare const Dropdown: FC<DropdownProps>;
23
24
  export {};
@@ -12,3 +12,4 @@ export { default as ArrowUpIcon } from './svg/arrowUp.svg';
12
12
  export { default as MeatballMenuIcon } from './svg/meatballMenu.svg';
13
13
  export { default as CalendarArrowIcon } from './svg/calendarArrow.svg';
14
14
  export { default as CalendarIcon } from './svg/calendar.svg';
15
+ export { default as SearchIcon } from './svg/search.svg';
@@ -3,7 +3,8 @@ import { Placement } from '@floating-ui/react-dom';
3
3
  interface TooltipProps {
4
4
  content: ReactNode;
5
5
  children: ReactNode;
6
- className?: string;
6
+ wrapperClassName?: string;
7
+ contentClassName?: string;
7
8
  dynamicWidth?: boolean;
8
9
  width?: number;
9
10
  placement?: Placement;
@@ -0,0 +1,215 @@
1
+ import { jsx as d, jsxs as L } from "react/jsx-runtime";
2
+ import * as R from "react";
3
+ import { forwardRef as B, useState as Y, useRef as ee } from "react";
4
+ import { c as A } from "./bind-06a7ff84.js";
5
+ import { useFloating as te, offset as ne, flip as oe } from "@floating-ui/react-dom";
6
+ import { useSelect as N } from "downshift";
7
+ import { Scrollbars as se } from "rc-scrollbars";
8
+ import { u as ae } from "./useOnClickOutside-c332f7d3.js";
9
+ import { K as h } from "./keyCodes-f63c0e11.js";
10
+ import { B as de } from "./baseIconButton-7bc53dec.js";
11
+ const le = (t) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ R.createElement("path", { d: "M14.2174 5.82426C14.3736 5.66805 14.3736 5.41479 14.2174 5.25858L14.0759 5.11716C13.9197 4.96095 13.6665 4.96095 13.5103 5.11716L8.16726 10.4602L2.82426 5.11716C2.66805 4.96095 2.41479 4.96095 2.25858 5.11716L2.11716 5.25858C1.96095 5.41479 1.96095 5.66805 2.11716 5.82426L7.89176 11.5989C8.04797 11.7551 8.30124 11.7551 8.45745 11.5989L8.88171 11.1746L8.87436 11.1673L14.2174 5.82426Z", fill: "#A2AAB5" })), re = "_disabled_f4c9h_11", ie = "_hidden_f4c9h_15", ce = "_selected_f4c9h_21", _e = "_hover_f4c9h_24", he = {
12
+ "dropdown-option": "_dropdown-option_f4c9h_1",
13
+ disabled: re,
14
+ hidden: ie,
15
+ selected: ce,
16
+ hover: _e,
17
+ "single-option": "_single-option_f4c9h_37",
18
+ "sub-option": "_sub-option_f4c9h_45"
19
+ }, P = A.bind(he), fe = B(
20
+ (t, n) => {
21
+ const {
22
+ option: { value: a, disabled: f, hidden: w, label: l, title: o, groupRef: O },
23
+ selected: E,
24
+ onChange: g,
25
+ render: p,
26
+ highlightHovered: b,
27
+ onMouseEnter: m
28
+ } = t, D = () => {
29
+ g && g(a);
30
+ };
31
+ return /* @__PURE__ */ d(
32
+ "div",
33
+ {
34
+ className: P("dropdown-option", {
35
+ selected: E,
36
+ disabled: f,
37
+ hidden: w,
38
+ hover: b
39
+ }),
40
+ title: o,
41
+ onClick: D,
42
+ ref: n,
43
+ onMouseEnter: m,
44
+ children: /* @__PURE__ */ d("div", { className: P("single-option", { "sub-option": !!O }), children: p ? p(t) : l })
45
+ }
46
+ );
47
+ }
48
+ ), pe = [
49
+ h.ENTER_KEY_CODE,
50
+ h.SPACE_KEY_CODE,
51
+ h.ARROW_DOWN_KEY_CODE
52
+ ], ge = [h.ESCAPE_KEY_CODE, h.TAB_KEY_CODE];
53
+ var _ = /* @__PURE__ */ ((t) => (t.ON_KEY_DOWN = "onKeyDown", t.ON_CLICK = "onClick", t))(_ || {});
54
+ const me = (t, n) => t.map(({ value: a }) => a).indexOf(n), ue = (t, n) => (t % n + n) % n, K = (t, n = 0, a = 1) => {
55
+ if (!t[n].disabled)
56
+ return n;
57
+ const f = t.length;
58
+ return K(
59
+ t,
60
+ ue(n + a, f),
61
+ a
62
+ );
63
+ }, ve = (t, n) => K(t, n), Ce = (t, n) => K(t, n, -1), we = "_container_vh03o_1", Oe = "_icon_vh03o_7", Ee = "_arrow_vh03o_13", be = "_dropdown_vh03o_19", De = "_disabled_vh03o_36", Ne = "_value_vh03o_43", Ke = "_error_vh03o_46", ye = "_touched_vh03o_46", xe = "_opened_vh03o_50", Ie = "_placeholder_vh03o_72", ke = "_ghost_vh03o_118", Se = {
64
+ container: we,
65
+ icon: Oe,
66
+ arrow: Ee,
67
+ dropdown: be,
68
+ "transparent-background": "_transparent-background_vh03o_33",
69
+ disabled: De,
70
+ value: Ne,
71
+ error: Ke,
72
+ touched: ye,
73
+ opened: xe,
74
+ placeholder: Ie,
75
+ "mobile-disabled": "_mobile-disabled_vh03o_87",
76
+ "select-list": "_select-list_vh03o_92",
77
+ "limited-width": "_limited-width_vh03o_109",
78
+ "options-container": "_options-container_vh03o_113",
79
+ ghost: ke
80
+ }, i = A.bind(Se), je = ({
81
+ value: t = "",
82
+ options: n = [],
83
+ disabled: a = !1,
84
+ error: f,
85
+ onChange: w,
86
+ onFocus: l,
87
+ onBlur: o,
88
+ mobileDisabled: O,
89
+ title: E,
90
+ touched: g = !1,
91
+ icon: p,
92
+ variant: b,
93
+ placeholder: m = "",
94
+ renderOption: D,
95
+ transparentBackground: T = !1,
96
+ className: W,
97
+ toggleButtonClassName: H,
98
+ isListWidthLimited: M = !1
99
+ }) => {
100
+ const [r, c] = Y(!1), y = ee(null), [$, u] = Y(null), { refs: x, floatingStyles: j } = te({
101
+ middleware: [
102
+ ne(5),
103
+ oe({
104
+ fallbackPlacements: ["bottom", "top"]
105
+ })
106
+ ]
107
+ });
108
+ ae(y, () => {
109
+ r && (c(!1), o == null || o());
110
+ });
111
+ const I = (e) => {
112
+ e.disabled || (w(e.value), c((s) => !s));
113
+ }, V = () => n.find(({ value: e }) => e === t), k = me(n, t), {
114
+ getToggleButtonProps: U,
115
+ getMenuProps: Z,
116
+ getItemProps: q,
117
+ setHighlightedIndex: v,
118
+ highlightedIndex: S,
119
+ selectedItem: C
120
+ } = N({
121
+ items: n,
122
+ itemToString: (e) => (e != null && e.label ? String(e.label) : m) || "",
123
+ selectedItem: V(),
124
+ isOpen: r,
125
+ circularNavigation: !0,
126
+ defaultHighlightedIndex: k,
127
+ onHighlightedIndexChange: (e) => {
128
+ switch (e.type) {
129
+ case N.stateChangeTypes.MenuKeyDownArrowUp:
130
+ return u(_.ON_KEY_DOWN), v(Ce(n, e.highlightedIndex)), e;
131
+ case N.stateChangeTypes.MenuKeyDownArrowDown:
132
+ return u(_.ON_KEY_DOWN), v(ve(n, e.highlightedIndex)), e;
133
+ default:
134
+ return e;
135
+ }
136
+ }
137
+ }), z = () => {
138
+ a || (c((e) => !e), r ? o == null || o() : l == null || l(), u(_.ON_CLICK));
139
+ }, G = () => {
140
+ if (!t && t !== !1 && t !== 0)
141
+ return m;
142
+ let e = t;
143
+ return n.forEach((s) => {
144
+ s.value === t && (e = s.label);
145
+ }), e;
146
+ }, J = (e) => {
147
+ const { keyCode: s } = e;
148
+ pe.includes(s) && !r && (e.preventDefault(), v(k), c(!0), l == null || l(), u(_.ON_KEY_DOWN));
149
+ }, Q = (e) => {
150
+ const { keyCode: s } = e;
151
+ if (s === h.ENTER_KEY_CODE) {
152
+ const F = n[S];
153
+ I(F), c(!1), o == null || o();
154
+ return;
155
+ }
156
+ ge.includes(s) && (e.stopPropagation(), c(!1), o == null || o());
157
+ }, X = () => /* @__PURE__ */ d("div", { className: i("options-container"), children: n.map((e, s) => /* @__PURE__ */ d(
158
+ fe,
159
+ {
160
+ ...q({
161
+ item: e,
162
+ index: s
163
+ }),
164
+ selected: e.value === ((C == null ? void 0 : C.value) ?? C),
165
+ option: { title: e.label, ...e },
166
+ highlightHovered: S === s && $ !== _.ON_CLICK,
167
+ render: D,
168
+ onChange: e.disabled ? null : () => I(e),
169
+ onMouseEnter: () => v(s)
170
+ },
171
+ e.value
172
+ )) });
173
+ return /* @__PURE__ */ L("div", { ref: y, className: i("container", W), title: E, children: [
174
+ /* @__PURE__ */ L(
175
+ "button",
176
+ {
177
+ disabled: a,
178
+ ...U({
179
+ className: i("dropdown", b, H, {
180
+ "transparent-background": T,
181
+ opened: r,
182
+ disabled: a,
183
+ error: f,
184
+ touched: g,
185
+ "mobile-disabled": O
186
+ }),
187
+ onClick: z,
188
+ onKeyDown: J,
189
+ ref: x.setReference
190
+ }),
191
+ children: [
192
+ p && /* @__PURE__ */ d("span", { className: i("icon"), children: p }),
193
+ /* @__PURE__ */ d("span", { className: i("value", { placeholder: !t }), children: G() }),
194
+ /* @__PURE__ */ d(de, { className: i("arrow"), tabIndex: -1, children: /* @__PURE__ */ d(le, {}) })
195
+ ]
196
+ }
197
+ ),
198
+ r && /* @__PURE__ */ d(
199
+ "div",
200
+ {
201
+ style: j,
202
+ className: i("select-list", { opened: r, "limited-width": M }),
203
+ ...Z({
204
+ onKeyDown: Q,
205
+ ref: x.setFloating
206
+ }),
207
+ children: /* @__PURE__ */ d(se, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: X() })
208
+ }
209
+ )
210
+ ] });
211
+ };
212
+ export {
213
+ je as D,
214
+ le as S
215
+ };
package/dist/dropdown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as r } from "./dropdown-bbfa828e.js";
1
+ import { D as r } from "./dropdown-50124296.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
@@ -0,0 +1,102 @@
1
+ import { jsx as t, jsxs as c, Fragment as k } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { forwardRef as F } from "react";
4
+ import { c as R } from "./bind-06a7ff84.js";
5
+ import "./baseIconButton-7bc53dec.js";
6
+ const j = (n) => /* @__PURE__ */ o.createElement("svg", { width: 17, height: 17, viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("rect", { width: 16.2089, height: 16.1568, rx: 8.07842, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.14768 5.14645C4.95077 5.34171 4.95077 5.65829 5.14768 5.85355L7.49578 8.18198L5.35655 10.3033C5.15963 10.4986 5.15963 10.8151 5.35655 11.0104C5.55346 11.2057 5.87271 11.2057 6.06962 11.0104L8.20886 8.88909L10.1392 10.8033C10.3361 10.9986 10.6554 10.9986 10.8523 10.8033C11.0492 10.608 11.0492 10.2915 10.8523 10.0962L8.92193 8.18198L11.0612 6.06065C11.2581 5.86539 11.2581 5.54881 11.0612 5.35355C10.8643 5.15828 10.545 5.15828 10.3481 5.35355L8.20886 7.47487L5.86076 5.14645C5.66385 4.95118 5.34459 4.95118 5.14768 5.14645Z", fill: "white" })), B = "_label_uykmf_18", S = "_asterisk_uykmf_27", M = "_disabled_uykmf_33", Z = "_field_uykmf_38", z = "_error_uykmf_53", D = "_touched_uykmf_53", G = "_placeholder_uykmf_64", H = "_input_uykmf_71", J = "_icon_uykmf_1", K = "_text_uykmf_160", O = {
7
+ "icon-container": "_icon-container_uykmf_1",
8
+ "icon-container-end": "_icon-container-end_uykmf_1",
9
+ "icon-container-start": "_icon-container-start_uykmf_1",
10
+ label: B,
11
+ asterisk: S,
12
+ disabled: M,
13
+ field: Z,
14
+ error: z,
15
+ touched: D,
16
+ placeholder: G,
17
+ "default-width": "_default-width_uykmf_67",
18
+ "input-container": "_input-container_uykmf_71",
19
+ input: H,
20
+ icon: J,
21
+ "clear-icon": "_clear-icon_uykmf_117",
22
+ "additional-content": "_additional-content_uykmf_153",
23
+ text: K,
24
+ "error-text": "_error-text_uykmf_168",
25
+ "help-text": "_help-text_uykmf_172"
26
+ }, e = R.bind(O), V = F(
27
+ ({
28
+ value: n = "",
29
+ className: y,
30
+ error: s,
31
+ placeholder: r,
32
+ disabled: a = !1,
33
+ onChange: x,
34
+ touched: _ = !1,
35
+ title: N,
36
+ label: i,
37
+ helpText: l,
38
+ defaultWidth: w = !0,
39
+ startIcon: m,
40
+ endIcon: d,
41
+ clearable: C = !1,
42
+ onClear: f,
43
+ isRequired: h = !1,
44
+ hasDoubleMessage: g = !1,
45
+ type: L = "text",
46
+ displayError: v = !0,
47
+ ...E
48
+ }, b) => {
49
+ const A = () => {
50
+ f && f(n);
51
+ }, p = v && s && _, u = /* @__PURE__ */ t("span", { className: e("text", "help-text"), children: l });
52
+ return /* @__PURE__ */ c(k, { children: [
53
+ i && /* @__PURE__ */ c("span", { className: e("label", { disabled: a }), children: [
54
+ i,
55
+ h && /* @__PURE__ */ t("span", { className: e("asterisk"), children: "*" })
56
+ ] }),
57
+ /* @__PURE__ */ c(
58
+ "div",
59
+ {
60
+ className: e("field", y, {
61
+ error: s,
62
+ touched: _,
63
+ disabled: a,
64
+ "default-width": w
65
+ }),
66
+ title: N,
67
+ children: [
68
+ m && /* @__PURE__ */ t("span", { className: e("icon-container-start"), children: /* @__PURE__ */ t("span", { className: e("icon"), children: m }) }),
69
+ /* @__PURE__ */ c("span", { className: e("input-container"), children: [
70
+ /* @__PURE__ */ t(
71
+ "input",
72
+ {
73
+ ref: b,
74
+ type: L,
75
+ className: e("input"),
76
+ value: n,
77
+ disabled: a,
78
+ onChange: x,
79
+ ...E
80
+ }
81
+ ),
82
+ r && !n && /* @__PURE__ */ c("span", { className: e("placeholder"), children: [
83
+ r,
84
+ h && !i && /* @__PURE__ */ t("span", { className: e("asterisk") })
85
+ ] })
86
+ ] }),
87
+ d && /* @__PURE__ */ t("span", { className: e("icon-container-end"), children: /* @__PURE__ */ t("span", { className: e("icon"), children: d }) }),
88
+ C && n.length > 0 && /* @__PURE__ */ t("span", { className: e("icon-container-end"), children: /* @__PURE__ */ t("button", { type: "button", className: e("clear-icon", { disabled: a }), onClick: A, children: /* @__PURE__ */ t(j, {}) }) })
89
+ ]
90
+ }
91
+ ),
92
+ (p || l) && /* @__PURE__ */ t("div", { className: e("additional-content", { disabled: a }), children: p ? /* @__PURE__ */ c(k, { children: [
93
+ /* @__PURE__ */ t("span", { className: e("text", "error-text"), children: s }),
94
+ g && u
95
+ ] }) : l && u })
96
+ ] });
97
+ }
98
+ );
99
+ export {
100
+ V as F,
101
+ j as S
102
+ };
package/dist/fieldText.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as o } from "./fieldText-d80b29ba.js";
1
+ import { F as o } from "./fieldText-49fe2895.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
@@ -1,14 +1,14 @@
1
1
  import { jsx as e, jsxs as d, Fragment as B } from "react/jsx-runtime";
2
- import * as M from "react";
2
+ import * as L from "react";
3
3
  import { useState as f, useEffect as g, useRef as j } from "react";
4
4
  import { Scrollbars as G } from "rc-scrollbars";
5
5
  import { AnimatePresence as K, motion as P } from "framer-motion";
6
6
  import { c as u } from "./bind-06a7ff84.js";
7
7
  import { u as Y } from "./useOnClickOutside-c332f7d3.js";
8
8
  import { K as F } from "./keyCodes-f63c0e11.js";
9
- import { B as L } from "./button-7fb84fde.js";
9
+ import { B as b } from "./button-bb309472.js";
10
10
  import { B as U } from "./baseIconButton-7bc53dec.js";
11
- const X = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.732179 15.2698C0.330639 14.8683 0.33064 14.2172 0.73218 13.8157L6.54858 7.99928L0.73218 2.18288C0.33064 1.78134 0.330639 1.13031 0.732179 0.728774C1.13372 0.327235 1.78474 0.327235 2.18628 0.728774L8.00269 6.54518L13.8191 0.728767C14.2206 0.327229 14.8717 0.327228 15.2732 0.728767C15.6747 1.13031 15.6747 1.78133 15.2732 2.18287L9.45679 7.99928L15.2732 13.8157C15.6747 14.2172 15.6747 14.8683 15.2732 15.2698C14.8717 15.6713 14.2206 15.6713 13.8191 15.2698L8.00269 9.45338L2.18628 15.2698C1.78474 15.6713 1.13372 15.6713 0.732179 15.2698Z", fill: "#A2AAB5" })), Z = () => {
11
+ const X = (t) => /* @__PURE__ */ L.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ L.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.732179 15.2698C0.330639 14.8683 0.33064 14.2172 0.73218 13.8157L6.54858 7.99928L0.73218 2.18288C0.33064 1.78134 0.330639 1.13031 0.732179 0.728774C1.13372 0.327235 1.78474 0.327235 2.18628 0.728774L8.00269 6.54518L13.8191 0.728767C14.2206 0.327229 14.8717 0.327228 15.2732 0.728767C15.6747 1.13031 15.6747 1.78133 15.2732 2.18287L9.45679 7.99928L15.2732 13.8157C15.6747 14.2172 15.6747 14.8683 15.2732 15.2698C14.8717 15.6713 14.2206 15.6713 13.8191 15.2698L8.00269 9.45338L2.18628 15.2698C1.78474 15.6713 1.13372 15.6713 0.732179 15.2698Z", fill: "#A2AAB5" })), Z = () => {
12
12
  const [t, s] = f({ width: 0, height: 0 });
13
13
  return g(() => {
14
14
  const n = () => {
@@ -37,7 +37,7 @@ const X = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16,
37
37
  t && t,
38
38
  /* @__PURE__ */ d("div", { className: m("buttons-block"), children: [
39
39
  r && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(
40
- L,
40
+ b,
41
41
  {
42
42
  variant: "ghost",
43
43
  adjustWidthOn: a === "small" ? "parent" : "content",
@@ -45,14 +45,14 @@ const X = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16,
45
45
  ...r
46
46
  }
47
47
  ) }),
48
- n && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(L, { adjustWidthOn: a === "small" ? "parent" : "content", ...n }) })
48
+ n && /* @__PURE__ */ e("div", { className: m("button-container"), children: /* @__PURE__ */ e(b, { adjustWidthOn: a === "small" ? "parent" : "content", ...n }) })
49
49
  ] })
50
50
  ] }), ee = {
51
- "modal-header": "_modal-header_1rhdb_1",
52
- "width-description": "_width-description_1rhdb_10",
53
- "modal-header-content": "_modal-header-content_1rhdb_14",
54
- "modal-title": "_modal-title_1rhdb_20",
55
- "close-modal-icon": "_close-modal-icon_1rhdb_28"
51
+ "modal-header": "_modal-header_68lru_1",
52
+ "width-description": "_width-description_68lru_10",
53
+ "modal-header-content": "_modal-header-content_68lru_14",
54
+ "modal-title": "_modal-title_68lru_20",
55
+ "close-modal-icon": "_close-modal-icon_68lru_29"
56
56
  }, _ = u.bind(ee), te = ({ title: t, onClose: s, withDescription: n = !1 }) => /* @__PURE__ */ d("div", { className: _("modal-header", { "width-description": n }), children: [
57
57
  /* @__PURE__ */ e("div", { className: _("modal-header-content"), children: t && /* @__PURE__ */ e("span", { className: _("modal-title"), children: t }) }),
58
58
  /* @__PURE__ */ e(U, { className: _("close-modal-icon"), onClick: s, children: /* @__PURE__ */ e(X, {}) })
@@ -66,7 +66,7 @@ const X = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16,
66
66
  "size-default": "_size-default_sp7xo_53",
67
67
  "size-small": "_size-small_sp7xo_65",
68
68
  "size-large": "_size-large_sp7xo_77"
69
- }, h = u.bind(se), ae = 0.9, ie = 32 + 24, le = 32 + 8, de = 36 + 16, ce = 32 * 2, xe = ({
69
+ }, h = u.bind(se), ae = 0.9, le = 32 + 24, ie = 32 + 8, de = 36 + 16, ce = 32 * 2, xe = ({
70
70
  title: t,
71
71
  children: s,
72
72
  footerNode: n,
@@ -81,28 +81,28 @@ const X = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16,
81
81
  allowCloseOutside: D = !0,
82
82
  scrollable: R = !1,
83
83
  withoutFooter: v = !1,
84
- CustomFooter: b = null,
85
- description: i = null
84
+ CustomFooter: H = null,
85
+ description: l = null
86
86
  }) => {
87
- const [S, H] = f(!1), [T, I] = f(0), l = j(null), E = Z(), C = E.height, k = C * ae, p = (C - T) / 2, $ = () => {
87
+ const [S, E] = f(!1), [T, I] = f(0), i = j(null), C = Z(), y = C.height, k = y * ae, p = (y - T) / 2, $ = () => {
88
88
  let o = k - ce;
89
- return v || (o = o - de), i ? o = o - le : o = o - ie, o;
89
+ return v || (o = o - de), l ? o = o - ie : o = o - le, o;
90
90
  }, c = () => {
91
- H(!1);
92
- }, y = (o) => {
91
+ E(!1);
92
+ }, M = (o) => {
93
93
  const { keyCode: W } = o;
94
94
  W === F.ESCAPE_KEY_CODE && c();
95
95
  };
96
96
  return g(() => {
97
- if (l && l.current) {
98
- const { clientHeight: o } = l.current;
97
+ if (i && i.current) {
98
+ const { clientHeight: o } = i.current;
99
99
  I(o);
100
100
  }
101
- }, [s, E]), g(() => (H(!0), document.addEventListener("keydown", y, !1), () => document.removeEventListener("keydown", y, !1)), []), Y(l, D ? c : void 0), /* @__PURE__ */ e(K, { onExitComplete: O, children: S && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${x}`]: x }), style: { zIndex: z }, children: /* @__PURE__ */ d(
101
+ }, [s, C]), g(() => (E(!0), document.addEventListener("keydown", M, !1), () => document.removeEventListener("keydown", M, !1)), []), Y(i, D ? c : void 0), /* @__PURE__ */ e(K, { onExitComplete: O, children: S && /* @__PURE__ */ e("div", { className: h("modal", { [`overlay-${x}`]: x }), style: { zIndex: z }, children: /* @__PURE__ */ d(
102
102
  P.div,
103
103
  {
104
104
  className: h("modal-window", { [`size-${w}`]: w }, N),
105
- ref: l,
105
+ ref: i,
106
106
  tabIndex: 0,
107
107
  initial: { opacity: 0, marginTop: -p },
108
108
  animate: { opacity: 1, marginTop: p },
@@ -110,18 +110,18 @@ const X = (t) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16,
110
110
  transition: { duration: 0.3 },
111
111
  onAnimationStart: () => {
112
112
  var o;
113
- return (o = l.current) == null ? void 0 : o.focus();
113
+ return (o = i.current) == null ? void 0 : o.focus();
114
114
  },
115
115
  children: [
116
- /* @__PURE__ */ e(te, { title: t, onClose: c, withDescription: !!i }),
116
+ /* @__PURE__ */ e(te, { title: t, onClose: c, withDescription: !!l }),
117
117
  R ? /* @__PURE__ */ d(G, { autoHeight: !0, autoHeightMax: $(), hideTracksWhenNotNeeded: !0, children: [
118
- i && /* @__PURE__ */ e("span", { className: h("description"), children: i }),
118
+ l && /* @__PURE__ */ e("span", { className: h("description"), children: l }),
119
119
  /* @__PURE__ */ e(A, { children: s })
120
120
  ] }) : /* @__PURE__ */ d(B, { children: [
121
- i && /* @__PURE__ */ e("span", { className: h("description"), children: i }),
121
+ l && /* @__PURE__ */ e("span", { className: h("description"), children: l }),
122
122
  /* @__PURE__ */ e(A, { children: s })
123
123
  ] }),
124
- !v && (b ? /* @__PURE__ */ e(b, { closeHandler: c }) : /* @__PURE__ */ e(
124
+ !v && (H ? /* @__PURE__ */ e(H, { closeHandler: c }) : /* @__PURE__ */ e(
125
125
  V,
126
126
  {
127
127
  size: w,