@reportportal/ui-kit 0.0.1-alpha.53 → 0.0.1-alpha.55
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,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { registerLocale as $ } from "react-datepicker";
|
|
1
|
+
import { jsxs as S, Fragment as U, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import $ from "react-datepicker/dist/es/index.js";
|
|
4
3
|
import { c as R } from "./bind-06a7ff84.js";
|
|
5
4
|
import { useMemo as E, useRef as B } from "react";
|
|
6
|
-
import { F as
|
|
7
|
-
import { a as
|
|
8
|
-
import { D as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import { F as D } from "./fieldText-78c1be1a.js";
|
|
6
|
+
import { a as T, S as G } from "./calendarArrow-3e1339ea.js";
|
|
7
|
+
import { D as L } from "./dropdown-6edea86c.js";
|
|
8
|
+
import { registerLocale as H } from "react-datepicker";
|
|
9
|
+
const pe = (r, s) => {
|
|
10
|
+
H(r, s);
|
|
11
|
+
}, V = (r, s = 20) => {
|
|
12
|
+
const l = r + s;
|
|
13
|
+
return new Array(l - r).fill(void 0).map((g, e) => r - e);
|
|
14
14
|
}, O = "_header_a3cjx_1", W = "_disabled_a3cjx_25", q = "_dropdown_a3cjx_8", z = {
|
|
15
15
|
header: O,
|
|
16
16
|
"dropdowns-wrapper": "_dropdowns-wrapper_a3cjx_8",
|
|
@@ -21,7 +21,7 @@ const pe = (t, s) => {
|
|
|
21
21
|
"month-dropdown": "_month-dropdown_a3cjx_44",
|
|
22
22
|
"toggle-button": "_toggle-button_a3cjx_47"
|
|
23
23
|
}, a = R.bind(z), J = ({
|
|
24
|
-
date:
|
|
24
|
+
date: r = /* @__PURE__ */ new Date(),
|
|
25
25
|
changeYear: s = () => {
|
|
26
26
|
},
|
|
27
27
|
changeMonth: l = () => {
|
|
@@ -30,45 +30,45 @@ const pe = (t, s) => {
|
|
|
30
30
|
},
|
|
31
31
|
increaseMonth: e = () => {
|
|
32
32
|
},
|
|
33
|
-
prevMonthButtonDisabled:
|
|
33
|
+
prevMonthButtonDisabled: n = !1,
|
|
34
34
|
nextMonthButtonDisabled: h = !1,
|
|
35
35
|
headerNodes: b = null,
|
|
36
36
|
customClassName: w = "",
|
|
37
37
|
yearsOptions: i = [],
|
|
38
|
-
locale:
|
|
38
|
+
locale: x
|
|
39
39
|
}) => {
|
|
40
|
-
const p =
|
|
41
|
-
const
|
|
40
|
+
const p = r.getFullYear(), C = r.getMonth(), f = E(() => {
|
|
41
|
+
const t = Array(12).keys(), c = new Intl.DateTimeFormat(x, {
|
|
42
42
|
month: "long"
|
|
43
43
|
}), d = (m) => c.format(new Date(p, m));
|
|
44
|
-
return Array.from(
|
|
45
|
-
value:
|
|
46
|
-
label:
|
|
44
|
+
return Array.from(t, d).reduce((m, j, A) => m.concat({
|
|
45
|
+
value: A,
|
|
46
|
+
label: j
|
|
47
47
|
}), []);
|
|
48
48
|
}, []), N = E(() => (i.length > 0 ? i : V(p)).reduce(
|
|
49
49
|
(c, d) => c.concat({ value: d, label: `${d}` }),
|
|
50
50
|
[]
|
|
51
|
-
), [i]), v = (
|
|
52
|
-
l(
|
|
53
|
-
}, y = (
|
|
54
|
-
s(
|
|
51
|
+
), [i]), v = (t) => {
|
|
52
|
+
l(t);
|
|
53
|
+
}, y = (t) => {
|
|
54
|
+
s(t);
|
|
55
55
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
b && /* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ S(U, { children: [
|
|
57
|
+
b && /* @__PURE__ */ o("div", { className: a(w), children: b }),
|
|
58
|
+
/* @__PURE__ */ S("div", { className: a("header"), children: [
|
|
59
|
+
/* @__PURE__ */ o(
|
|
60
60
|
"button",
|
|
61
61
|
{
|
|
62
62
|
"aria-label": "Previous Months",
|
|
63
|
-
disabled:
|
|
63
|
+
disabled: n,
|
|
64
64
|
onClick: g,
|
|
65
|
-
className: a("button-prev", { disabled:
|
|
66
|
-
children: /* @__PURE__ */
|
|
65
|
+
className: a("button-prev", { disabled: n }),
|
|
66
|
+
children: /* @__PURE__ */ o(T, {})
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
69
|
+
/* @__PURE__ */ S("div", { className: a("dropdowns-wrapper"), children: [
|
|
70
|
+
/* @__PURE__ */ o(
|
|
71
|
+
L,
|
|
72
72
|
{
|
|
73
73
|
options: f,
|
|
74
74
|
value: C,
|
|
@@ -78,8 +78,8 @@ const pe = (t, s) => {
|
|
|
78
78
|
toggleButtonClassName: a("toggle-button")
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
/* @__PURE__ */ o(
|
|
82
|
+
L,
|
|
83
83
|
{
|
|
84
84
|
options: N,
|
|
85
85
|
value: p,
|
|
@@ -90,19 +90,19 @@ const pe = (t, s) => {
|
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ o(
|
|
94
94
|
"button",
|
|
95
95
|
{
|
|
96
96
|
"aria-label": "Next Months",
|
|
97
97
|
disabled: h,
|
|
98
98
|
onClick: e,
|
|
99
99
|
className: a("button-next", { disabled: h }),
|
|
100
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ o(T, {})
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
103
|
] })
|
|
104
104
|
] });
|
|
105
|
-
}, K = "_calendar_1jr94_5", Q = "_date_1jr94_90", X = "_disabled_1jr94_202", Z = "_popper_1jr94_210", ee = "_input_1jr94_214",
|
|
105
|
+
}, K = "_calendar_1jr94_5", Q = "_date_1jr94_90", X = "_disabled_1jr94_202", Z = "_popper_1jr94_210", ee = "_input_1jr94_214", ne = {
|
|
106
106
|
calendar: K,
|
|
107
107
|
"current-date": "_current-date_1jr94_89",
|
|
108
108
|
date: Q,
|
|
@@ -111,8 +111,8 @@ const pe = (t, s) => {
|
|
|
111
111
|
disabled: X,
|
|
112
112
|
popper: Z,
|
|
113
113
|
input: ee
|
|
114
|
-
},
|
|
115
|
-
onChange:
|
|
114
|
+
}, _ = R.bind(ne), oe = "en", P = "MM-dd-yyyy", me = ({
|
|
115
|
+
onChange: r = () => {
|
|
116
116
|
},
|
|
117
117
|
disabled: s = !1,
|
|
118
118
|
onBlur: l = () => {
|
|
@@ -120,55 +120,55 @@ const pe = (t, s) => {
|
|
|
120
120
|
onFocus: g = () => {
|
|
121
121
|
},
|
|
122
122
|
endDate: e = void 0,
|
|
123
|
-
startDate:
|
|
123
|
+
startDate: n = void 0,
|
|
124
124
|
headerNodes: h = null,
|
|
125
125
|
customClassName: b = "",
|
|
126
126
|
customTimeInput: w = void 0,
|
|
127
127
|
shouldCloseOnSelect: i = !0,
|
|
128
|
-
popperClassName:
|
|
128
|
+
popperClassName: x = "",
|
|
129
129
|
calendarClassName: p = "",
|
|
130
130
|
fixedHeight: C = !1,
|
|
131
|
-
language: f =
|
|
131
|
+
language: f = oe,
|
|
132
132
|
yearsOptions: N = [],
|
|
133
|
-
placeholder: v =
|
|
134
|
-
dateFormat: y =
|
|
135
|
-
selects:
|
|
133
|
+
placeholder: v = P.toUpperCase(),
|
|
134
|
+
dateFormat: y = P,
|
|
135
|
+
selects: t = "start",
|
|
136
136
|
value: c = null
|
|
137
137
|
}) => {
|
|
138
|
-
const d = B(null),
|
|
139
|
-
const F = u.toDateString(), Y = F ===
|
|
138
|
+
const d = B(null), k = n == null ? void 0 : n.toDateString(), m = e == null ? void 0 : e.toDateString(), j = e && n && e > n, A = (u) => {
|
|
139
|
+
const F = u.toDateString(), Y = F === k, M = j && F === m, I = n && e && u > n && u < e;
|
|
140
140
|
return _("date", {
|
|
141
141
|
"current-date": Y,
|
|
142
|
-
"selected-range":
|
|
143
|
-
"end-date": M &&
|
|
142
|
+
"selected-range": I && !M,
|
|
143
|
+
"end-date": M && j,
|
|
144
144
|
disabled: s
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
|
-
return /* @__PURE__ */
|
|
148
|
-
|
|
147
|
+
return /* @__PURE__ */ o(
|
|
148
|
+
$,
|
|
149
149
|
{
|
|
150
|
-
customInput: /* @__PURE__ */
|
|
151
|
-
|
|
150
|
+
customInput: /* @__PURE__ */ o(
|
|
151
|
+
D,
|
|
152
152
|
{
|
|
153
153
|
className: _("input"),
|
|
154
154
|
defaultWidth: !1,
|
|
155
|
-
endIcon: /* @__PURE__ */
|
|
155
|
+
endIcon: /* @__PURE__ */ o(G, {}),
|
|
156
156
|
ref: d
|
|
157
157
|
}
|
|
158
158
|
),
|
|
159
159
|
placeholderText: v,
|
|
160
160
|
selected: c,
|
|
161
|
-
startDate:
|
|
161
|
+
startDate: n,
|
|
162
162
|
endDate: e,
|
|
163
|
-
minDate:
|
|
163
|
+
minDate: t === "end" ? n : void 0,
|
|
164
164
|
disabled: s,
|
|
165
165
|
shouldCloseOnSelect: i,
|
|
166
166
|
fixedHeight: C,
|
|
167
167
|
locale: f,
|
|
168
168
|
showPopperArrow: !1,
|
|
169
|
-
dayClassName:
|
|
169
|
+
dayClassName: A,
|
|
170
170
|
calendarClassName: _(p, "calendar"),
|
|
171
|
-
renderCustomHeader: (u) => /* @__PURE__ */
|
|
171
|
+
renderCustomHeader: (u) => /* @__PURE__ */ o(
|
|
172
172
|
J,
|
|
173
173
|
{
|
|
174
174
|
...u,
|
|
@@ -178,15 +178,15 @@ const pe = (t, s) => {
|
|
|
178
178
|
locale: f
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
|
-
onChange:
|
|
181
|
+
onChange: r,
|
|
182
182
|
onBlur: l,
|
|
183
183
|
onFocus: g,
|
|
184
184
|
customTimeInput: w,
|
|
185
185
|
showTimeInput: !!w,
|
|
186
|
-
popperClassName: _(
|
|
186
|
+
popperClassName: _(x, "popper"),
|
|
187
187
|
dateFormat: y,
|
|
188
|
-
selectsStart:
|
|
189
|
-
selectsEnd:
|
|
188
|
+
selectsStart: t === "start",
|
|
189
|
+
selectsEnd: t === "end",
|
|
190
190
|
className: _("datepicker")
|
|
191
191
|
}
|
|
192
192
|
);
|
package/dist/datePicker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as
|
|
1
|
+
import { D as t } from "./datePicker-a333d78b.js";
|
|
2
|
+
import { r as q } from "./datePicker-a333d78b.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "react-datepicker";
|
|
4
|
+
import "react-datepicker/dist/es/index.js";
|
|
5
5
|
import "./bind-06a7ff84.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "./fieldText-78c1be1a.js";
|
|
@@ -19,8 +19,9 @@ import "./keyCodes-f63c0e11.js";
|
|
|
19
19
|
import "./baseIconButton-251479f7.js";
|
|
20
20
|
import "./dropdown-0260bb66.js";
|
|
21
21
|
import "./checkbox-9a6c7ce1.js";
|
|
22
|
+
import "react-datepicker";
|
|
22
23
|
export {
|
|
23
24
|
t as DatePicker,
|
|
24
25
|
t as default,
|
|
25
|
-
|
|
26
|
+
q as registerDatePickerLocale
|
|
26
27
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { B as
|
|
3
|
-
import { C } from "./checkbox-9a6c7ce1.js";
|
|
4
|
-
import { S as
|
|
5
|
-
import { F as
|
|
6
|
-
import { T as
|
|
7
|
-
import { Modal as
|
|
8
|
-
import { D as
|
|
9
|
-
import { T as
|
|
10
|
-
import { F as
|
|
11
|
-
import { B as
|
|
12
|
-
import { S as
|
|
13
|
-
import { F as
|
|
14
|
-
import { R as
|
|
15
|
-
import { Tooltip as
|
|
16
|
-
import { Popover as
|
|
17
|
-
import { P as
|
|
18
|
-
import { T as
|
|
19
|
-
import { D as
|
|
1
|
+
import { B as S } from "./button-33c88abf.js";
|
|
2
|
+
import { B as C } from "./baseIconButton-251479f7.js";
|
|
3
|
+
import { C as b } from "./checkbox-9a6c7ce1.js";
|
|
4
|
+
import { S as B } from "./systemMessage-1ced6079.js";
|
|
5
|
+
import { F as P } from "./fieldText-78c1be1a.js";
|
|
6
|
+
import { T as g } from "./themeProvider-46c2be7b.js";
|
|
7
|
+
import { Modal as v } from "./modal.js";
|
|
8
|
+
import { D as M } from "./dropdown-6edea86c.js";
|
|
9
|
+
import { T as A } from "./toggle-1a3aacb5.js";
|
|
10
|
+
import { F as L } from "./fieldNumber-d81e551e.js";
|
|
11
|
+
import { B as O } from "./bubblesLoader-a7e709d4.js";
|
|
12
|
+
import { S as H } from "./spinLoader-c4a53718.js";
|
|
13
|
+
import { F as U } from "./fieldTextFlex-314741ad.js";
|
|
14
|
+
import { R as q } from "./radio-bccc84f2.js";
|
|
15
|
+
import { Tooltip as J } from "./tooltip.js";
|
|
16
|
+
import { Popover as Q } from "./popover.js";
|
|
17
|
+
import { P as W } from "./pagination-066b1b2b.js";
|
|
18
|
+
import { T as Y } from "./table-32fc8c70.js";
|
|
19
|
+
import { D as _ } from "./datePicker-a333d78b.js";
|
|
20
20
|
import "react-datepicker";
|
|
21
|
-
import { SystemAlert as
|
|
22
|
-
import { S as
|
|
23
|
-
import { BreadcrumbsTreeIcon as
|
|
24
|
-
import { a as
|
|
25
|
-
import { S as
|
|
26
|
-
import { S as
|
|
27
|
-
import { S as
|
|
28
|
-
import { S as
|
|
29
|
-
import { S as
|
|
30
|
-
import { S as
|
|
21
|
+
import { SystemAlert as oo } from "./systemAlert.js";
|
|
22
|
+
import { S as eo, a as to } from "./arrowUp-4a5caee7.js";
|
|
23
|
+
import { BreadcrumbsTreeIcon as no, ChevronDownDropdownIcon as po, ChevronRightBreadcrumbsIcon as mo, CopyIcon as so, DeleteIcon as co, EditIcon as xo, ExportIcon as io, ExternalLinkIcon as Io, FilterFilledIcon as fo, FilterOutlineIcon as lo, FlagIcon as So, HideIcon as uo, MaximizeIcon as Co, MeatballMenuIcon as Fo, SearchIcon as bo, SortIcon as To } from "./icons.js";
|
|
24
|
+
import { a as Do, S as Po } from "./calendarArrow-3e1339ea.js";
|
|
25
|
+
import { S as go, a as ho, b as vo } from "./openEye-7b9cf080.js";
|
|
26
|
+
import { S as Mo } from "./close-4b33d7c1.js";
|
|
27
|
+
import { S as Ao } from "./dropdown-0260bb66.js";
|
|
28
|
+
import { S as Lo, a as Ro, b as Oo } from "./success-dc1914aa.js";
|
|
29
|
+
import { S as Ho, a as No } from "./plus-0929dda4.js";
|
|
30
|
+
import { S as jo, a as qo } from "./prevPage-87faf576.js";
|
|
31
31
|
import "react/jsx-runtime";
|
|
32
32
|
import "react";
|
|
33
33
|
import "./bind-06a7ff84.js";
|
|
@@ -38,58 +38,60 @@ import "framer-motion";
|
|
|
38
38
|
import "./useOnClickOutside-c332f7d3.js";
|
|
39
39
|
import "@floating-ui/react-dom";
|
|
40
40
|
import "downshift";
|
|
41
|
+
import "react-dom";
|
|
41
42
|
import "@floating-ui/react";
|
|
43
|
+
import "react-datepicker/dist/es/index.js";
|
|
42
44
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
45
|
+
eo as ArrowDownIcon,
|
|
46
|
+
to as ArrowUpIcon,
|
|
47
|
+
C as BaseIconButton,
|
|
48
|
+
no as BreadcrumbsTreeIcon,
|
|
49
|
+
O as BubblesLoader,
|
|
50
|
+
S as Button,
|
|
51
|
+
Do as CalendarArrowIcon,
|
|
52
|
+
Po as CalendarIcon,
|
|
53
|
+
b as Checkbox,
|
|
54
|
+
po as ChevronDownDropdownIcon,
|
|
55
|
+
mo as ChevronRightBreadcrumbsIcon,
|
|
56
|
+
go as ClearIcon,
|
|
57
|
+
ho as CloseEyeIcon,
|
|
58
|
+
Mo as CloseIcon,
|
|
59
|
+
so as CopyIcon,
|
|
60
|
+
_ as DatePicker,
|
|
61
|
+
co as DeleteIcon,
|
|
62
|
+
M as Dropdown,
|
|
63
|
+
Ao as DropdownIcon,
|
|
64
|
+
xo as EditIcon,
|
|
65
|
+
Lo as ErrorIcon,
|
|
66
|
+
io as ExportIcon,
|
|
67
|
+
Io as ExternalLinkIcon,
|
|
68
|
+
L as FieldNumber,
|
|
69
|
+
P as FieldText,
|
|
70
|
+
U as FieldTextFlex,
|
|
71
|
+
fo as FilterFilledIcon,
|
|
72
|
+
lo as FilterOutlineIcon,
|
|
73
|
+
So as FlagIcon,
|
|
74
|
+
uo as HideIcon,
|
|
75
|
+
Ro as InfoIcon,
|
|
76
|
+
Co as MaximizeIcon,
|
|
77
|
+
Fo as MeatballMenuIcon,
|
|
78
|
+
Ho as MinusIcon,
|
|
79
|
+
v as Modal,
|
|
80
|
+
vo as OpenEyeIcon,
|
|
81
|
+
W as Pagination,
|
|
82
|
+
No as PlusIcon,
|
|
83
|
+
Q as Popover,
|
|
84
|
+
jo as PrevChapterIcon,
|
|
85
|
+
qo as PrevPageIcon,
|
|
86
|
+
q as Radio,
|
|
87
|
+
bo as SearchIcon,
|
|
88
|
+
To as SortIcon,
|
|
89
|
+
H as SpinLoader,
|
|
90
|
+
Oo as SuccessIcon,
|
|
91
|
+
oo as SystemAlert,
|
|
92
|
+
B as SystemMessage,
|
|
93
|
+
Y as Table,
|
|
94
|
+
g as ThemeProvider,
|
|
95
|
+
A as Toggle,
|
|
96
|
+
J as Tooltip
|
|
95
97
|
};
|
package/dist/pagination.js
CHANGED
package/dist/tooltip.js
CHANGED
|
@@ -1,96 +1,99 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsxs as p, Fragment as v, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as m } from "react";
|
|
3
|
+
import { createPortal as H } from "react-dom";
|
|
4
|
+
import { c as R } from "./bind-06a7ff84.js";
|
|
5
|
+
import { useFloating as G, offset as P, flip as j, arrow as k, autoUpdate as z, FloatingArrow as $ } from "@floating-ui/react";
|
|
6
|
+
const C = {
|
|
6
7
|
"tooltip-wrapper": "_tooltip-wrapper_18ppz_16",
|
|
7
8
|
"tooltip-content": "_tooltip-content_18ppz_23"
|
|
8
|
-
},
|
|
9
|
-
content:
|
|
10
|
-
wrapperClassName:
|
|
11
|
-
contentClassName:
|
|
12
|
-
dynamicWidth:
|
|
13
|
-
width:
|
|
14
|
-
minWidth:
|
|
15
|
-
safeZone:
|
|
16
|
-
zIndex:
|
|
17
|
-
placement:
|
|
18
|
-
arrowColor:
|
|
19
|
-
dataAutomationId:
|
|
20
|
-
mainAxis:
|
|
21
|
-
children:
|
|
9
|
+
}, d = R.bind(C), U = 300, Y = 100, Z = 16, f = 8, q = ["top", "right", "bottom", "left"], X = ({
|
|
10
|
+
content: u,
|
|
11
|
+
wrapperClassName: h,
|
|
12
|
+
contentClassName: w,
|
|
13
|
+
dynamicWidth: x,
|
|
14
|
+
width: T,
|
|
15
|
+
minWidth: _ = 120,
|
|
16
|
+
safeZone: g = 4,
|
|
17
|
+
zIndex: E = 9,
|
|
18
|
+
placement: A = "bottom",
|
|
19
|
+
arrowColor: b = "rgba(34, 34, 34, 0.91)",
|
|
20
|
+
dataAutomationId: I,
|
|
21
|
+
mainAxis: N = !0,
|
|
22
|
+
children: S,
|
|
23
|
+
portalRoot: n,
|
|
24
|
+
isFloating: W = !0
|
|
22
25
|
}) => {
|
|
23
|
-
const [
|
|
24
|
-
open:
|
|
25
|
-
placement:
|
|
26
|
+
const [s, i] = D(!1), r = m(null), t = m(), { refs: l, floatingStyles: y, context: F } = G({
|
|
27
|
+
open: s,
|
|
28
|
+
placement: A,
|
|
26
29
|
middleware: [
|
|
27
|
-
|
|
28
|
-
mainAxis:
|
|
30
|
+
P({
|
|
31
|
+
mainAxis: g + f
|
|
29
32
|
}),
|
|
30
|
-
|
|
31
|
-
mainAxis:
|
|
33
|
+
W && j({
|
|
34
|
+
mainAxis: N,
|
|
32
35
|
fallbackAxisSideDirection: "start",
|
|
33
|
-
fallbackPlacements:
|
|
36
|
+
fallbackPlacements: q
|
|
34
37
|
}),
|
|
35
|
-
|
|
36
|
-
element:
|
|
38
|
+
k({
|
|
39
|
+
element: r
|
|
37
40
|
})
|
|
38
41
|
],
|
|
39
|
-
whileElementsMounted:
|
|
40
|
-
}), e =
|
|
41
|
-
t.current && clearTimeout(t.current),
|
|
42
|
-
},
|
|
43
|
-
t.current = setTimeout(() =>
|
|
44
|
-
}
|
|
45
|
-
|
|
42
|
+
whileElementsMounted: z
|
|
43
|
+
}), e = x ? null : { width: `${T}px` }, L = document.documentElement.clientWidth, M = e || L - Y, c = () => {
|
|
44
|
+
t.current && clearTimeout(t.current), i(!1);
|
|
45
|
+
}, O = () => {
|
|
46
|
+
t.current = setTimeout(() => i(!0), U);
|
|
47
|
+
}, a = () => /* @__PURE__ */ p(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: l.setFloating,
|
|
51
|
+
style: {
|
|
52
|
+
...y,
|
|
53
|
+
...e,
|
|
54
|
+
minWidth: _,
|
|
55
|
+
zIndex: E
|
|
56
|
+
},
|
|
57
|
+
"data-automation-id": I,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ o(
|
|
60
|
+
$,
|
|
61
|
+
{
|
|
62
|
+
ref: r,
|
|
63
|
+
context: F,
|
|
64
|
+
width: Z,
|
|
65
|
+
height: f,
|
|
66
|
+
fill: b
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ o(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
className: d("tooltip-content", w),
|
|
73
|
+
style: {
|
|
74
|
+
maxWidth: `${M}px`
|
|
75
|
+
},
|
|
76
|
+
children: u
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
return /* @__PURE__ */ p(v, { children: [
|
|
46
83
|
/* @__PURE__ */ o(
|
|
47
84
|
"div",
|
|
48
85
|
{
|
|
49
86
|
ref: l.setReference,
|
|
50
|
-
className:
|
|
51
|
-
onMouseDown:
|
|
52
|
-
onMouseEnter:
|
|
53
|
-
onMouseLeave:
|
|
54
|
-
children:
|
|
87
|
+
className: d("tooltip-wrapper", h),
|
|
88
|
+
onMouseDown: c,
|
|
89
|
+
onMouseEnter: O,
|
|
90
|
+
onMouseLeave: c,
|
|
91
|
+
children: S
|
|
55
92
|
}
|
|
56
93
|
),
|
|
57
|
-
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
ref: l.setFloating,
|
|
61
|
-
style: {
|
|
62
|
-
...N,
|
|
63
|
-
...e,
|
|
64
|
-
minWidth: x,
|
|
65
|
-
zIndex: _
|
|
66
|
-
},
|
|
67
|
-
"data-automation-id": A,
|
|
68
|
-
children: [
|
|
69
|
-
/* @__PURE__ */ o(
|
|
70
|
-
j,
|
|
71
|
-
{
|
|
72
|
-
ref: i,
|
|
73
|
-
context: S,
|
|
74
|
-
width: $,
|
|
75
|
-
height: d,
|
|
76
|
-
fill: g
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ o(
|
|
80
|
-
"div",
|
|
81
|
-
{
|
|
82
|
-
className: p("tooltip-content", u),
|
|
83
|
-
style: {
|
|
84
|
-
maxWidth: `${y}px`
|
|
85
|
-
},
|
|
86
|
-
children: m
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
)
|
|
94
|
+
s && (n ? H(a(), n) : a())
|
|
92
95
|
] });
|
|
93
96
|
};
|
|
94
97
|
export {
|
|
95
|
-
|
|
98
|
+
X as Tooltip
|
|
96
99
|
};
|