@reportportal/ui-kit 0.0.1-alpha.115 → 0.0.1-alpha.116
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/breadcrumbs.js +1 -0
- package/dist/common/constants/floatingUi.d.ts +8 -0
- package/dist/common/utils/floatingUi.d.ts +3 -0
- package/dist/common/utils/index.d.ts +1 -0
- package/dist/floatingUi-41f8c7b5.js +29 -0
- package/dist/index.js +133 -132
- package/dist/modal.js +3 -2
- package/dist/pagination.js +1 -0
- package/dist/popover.js +51 -70
- package/dist/tooltip.js +45 -43
- package/package.json +1 -1
package/dist/breadcrumbs.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/react';
|
|
2
|
+
|
|
3
|
+
export declare const TRIANGLE_WIDTH = 16;
|
|
4
|
+
export declare const TRIANGLE_HEIGHT = 8;
|
|
5
|
+
export declare const ARROW_OFFSET = 16;
|
|
6
|
+
export declare const middlePlacements: Placement[];
|
|
7
|
+
export declare const verticalPlacements: Placement[];
|
|
8
|
+
export declare const allPlacements: Placement[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const o = 16, a = 8, l = 16, i = ["top", "right", "bottom", "left"], r = [
|
|
2
|
+
"right",
|
|
3
|
+
"right-start",
|
|
4
|
+
"right-end",
|
|
5
|
+
"left",
|
|
6
|
+
"left-start",
|
|
7
|
+
"left-end"
|
|
8
|
+
], c = [
|
|
9
|
+
"top",
|
|
10
|
+
"top-start",
|
|
11
|
+
"top-end",
|
|
12
|
+
"right",
|
|
13
|
+
"right-start",
|
|
14
|
+
"right-end",
|
|
15
|
+
"bottom",
|
|
16
|
+
"bottom-start",
|
|
17
|
+
"bottom-end",
|
|
18
|
+
"left",
|
|
19
|
+
"left-start",
|
|
20
|
+
"left-end"
|
|
21
|
+
], g = (t, n, e = 16, s = !0) => s ? ((r.includes(n) ? t.reference.height : t.reference.width) - 16) / 2 - e : -e;
|
|
22
|
+
export {
|
|
23
|
+
l as A,
|
|
24
|
+
a as T,
|
|
25
|
+
o as a,
|
|
26
|
+
c as b,
|
|
27
|
+
g,
|
|
28
|
+
i as m
|
|
29
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { C as
|
|
7
|
-
import { D as
|
|
1
|
+
import { A as C } from "./index-1a874a8b.js";
|
|
2
|
+
import { B as g } from "./baseIconButton-251479f7.js";
|
|
3
|
+
import { B as b } from "./breadcrumbs-8e5ca8d7.js";
|
|
4
|
+
import { B as T } from "./bubblesLoader-f3ffa240.js";
|
|
5
|
+
import { B as A } from "./button-97d9e587.js";
|
|
6
|
+
import { C as v } from "./checkbox-ed6cc375.js";
|
|
7
|
+
import { D as M } from "./datePicker-efa4e2d6.js";
|
|
8
8
|
import "react-datepicker";
|
|
9
|
-
import { D as
|
|
10
|
-
import { FieldLabel as
|
|
11
|
-
import { F as
|
|
12
|
-
import { F as
|
|
13
|
-
import { F as
|
|
14
|
-
import { FileDropArea as
|
|
15
|
-
import { Modal as
|
|
16
|
-
import { MultipleAutocomplete as
|
|
17
|
-
import { P as
|
|
18
|
-
import { Popover as
|
|
19
|
-
import { R as
|
|
20
|
-
import { S as
|
|
21
|
-
import { S as
|
|
22
|
-
import { SystemAlert as
|
|
23
|
-
import { S as
|
|
24
|
-
import { T as
|
|
25
|
-
import { T as
|
|
26
|
-
import { T as
|
|
27
|
-
import { Tooltip as
|
|
28
|
-
import { SidePanel as
|
|
29
|
-
import { AddCsvIcon as
|
|
30
|
-
import { S as
|
|
31
|
-
import { S as
|
|
32
|
-
import { S as
|
|
33
|
-
import { S as
|
|
34
|
-
import { S as
|
|
35
|
-
import { S as
|
|
36
|
-
import { S as
|
|
37
|
-
import { S as
|
|
38
|
-
import { S as
|
|
39
|
-
import { S as
|
|
40
|
-
import { S as
|
|
9
|
+
import { D as E } from "./dropdown-ec754bbe.js";
|
|
10
|
+
import { FieldLabel as O } from "./fieldLabel.js";
|
|
11
|
+
import { F as H } from "./fieldNumber-d1b5a7a1.js";
|
|
12
|
+
import { F as N } from "./fieldText-ba8a917c.js";
|
|
13
|
+
import { F as z } from "./fieldTextFlex-2f51c173.js";
|
|
14
|
+
import { FileDropArea as W } from "./fileDropArea.js";
|
|
15
|
+
import { Modal as j } from "./modal.js";
|
|
16
|
+
import { MultipleAutocomplete as K, SingleAutocomplete as Q } from "./autocompletes.js";
|
|
17
|
+
import { P as Y } from "./pagination-43330c73.js";
|
|
18
|
+
import { Popover as _ } from "./popover.js";
|
|
19
|
+
import { R as oo } from "./radio-62546efa.js";
|
|
20
|
+
import { S as eo } from "./selection-9124d029.js";
|
|
21
|
+
import { S as to } from "./spinLoader-c4a53718.js";
|
|
22
|
+
import { SystemAlert as co } from "./systemAlert.js";
|
|
23
|
+
import { S as io } from "./systemMessage-924fdaa6.js";
|
|
24
|
+
import { T as Io } from "./table-8e223d5d.js";
|
|
25
|
+
import { T as lo } from "./themeProvider-46c2be7b.js";
|
|
26
|
+
import { T as fo } from "./toggle-304107fa.js";
|
|
27
|
+
import { Tooltip as So } from "./tooltip.js";
|
|
28
|
+
import { SidePanel as Co } from "./sidePanel.js";
|
|
29
|
+
import { AddCsvIcon as go, AddImageIcon as Do, AddJarIcon as bo, BreadcrumbsTreeIcon as yo, CalendarIcon as To, CheckmarkIcon as ho, ChevronRightBreadcrumbsIcon as Ao, ConfigurationIcon as Bo, CopyIcon as vo, CoveredManuallyIcon as wo, DeleteIcon as Mo, DragAndDropIcon as ko, DragNDropIcon as Eo, DurationIcon as Lo, EditIcon as Oo, ExportIcon as Ro, FilterFilledIcon as Ho, FilterOutlineIcon as Jo, FlagIcon as No, GroupByIcon as Uo, HideIcon as zo, LaunchTypeIcon as Go, MaximizeIcon as Wo, MoveToFolderIcon as Xo, OwnerIcon as jo, PinFilledIcon as qo, PinOutlineIcon as Ko, PriorityBlockerIcon as Qo, PriorityCriticalIcon as Vo, PriorityHighIcon as Yo, PriorityLowIcon as Zo, PriorityMediumIcon as _o, PriorityUnspecifiedIcon as $o, RefreshIcon as or, RerunIcon as rr, SearchIcon as er, SortIcon as nr, StatusSuccessIcon as tr, TestPlanIcon as ar, WarningIcon as cr } from "./icons.js";
|
|
30
|
+
import { S as ir, a as mr, b as Ir } from "./chevronDownDropdown-66f5b1af.js";
|
|
31
|
+
import { S as lr } from "./calendarArrow-44c7e60e.js";
|
|
32
|
+
import { S as fr, a as dr, b as ur } from "./openEye-7b9cf080.js";
|
|
33
|
+
import { S as Pr } from "./close-4d480ef7.js";
|
|
34
|
+
import { S as Fr, a as gr, b as Dr, c as br, d as yr, e as Tr, f as hr } from "./xls-995781cc.js";
|
|
35
|
+
import { S as Br } from "./dropdown-0260bb66.js";
|
|
36
|
+
import { S as wr, a as Mr, b as kr } from "./success-8fd8bd2c.js";
|
|
37
|
+
import { S as Lr, a as Or } from "./tree-c3dd3d45.js";
|
|
38
|
+
import { S as Hr } from "./minus-2857540f.js";
|
|
39
|
+
import { S as Nr } from "./plus-199fb2a8.js";
|
|
40
|
+
import { S as zr, a as Gr } from "./prevPage-87faf576.js";
|
|
41
41
|
import "react/jsx-runtime";
|
|
42
42
|
import "react";
|
|
43
43
|
import "./bind-06a7ff84.js";
|
|
@@ -52,99 +52,100 @@ import "./isEmpty-ccacb5ff.js";
|
|
|
52
52
|
import "react-dropzone";
|
|
53
53
|
import "framer-motion";
|
|
54
54
|
import "@floating-ui/react";
|
|
55
|
+
import "./floatingUi-41f8c7b5.js";
|
|
55
56
|
import "react-dom";
|
|
56
57
|
export {
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
58
|
+
go as AddCsvIcon,
|
|
59
|
+
Do as AddImageIcon,
|
|
60
|
+
bo as AddJarIcon,
|
|
61
|
+
ir as ArrowDownIcon,
|
|
62
|
+
mr as ArrowUpIcon,
|
|
63
|
+
C as AttachedFile,
|
|
64
|
+
g as BaseIconButton,
|
|
65
|
+
b as Breadcrumbs,
|
|
66
|
+
yo as BreadcrumbsTreeIcon,
|
|
67
|
+
T as BubblesLoader,
|
|
68
|
+
A as Button,
|
|
69
|
+
lr as CalendarArrowIcon,
|
|
70
|
+
To as CalendarIcon,
|
|
71
|
+
v as Checkbox,
|
|
72
|
+
ho as CheckmarkIcon,
|
|
73
|
+
Ir as ChevronDownDropdownIcon,
|
|
74
|
+
Ao as ChevronRightBreadcrumbsIcon,
|
|
75
|
+
fr as ClearIcon,
|
|
76
|
+
dr as CloseEyeIcon,
|
|
77
|
+
Pr as CloseIcon,
|
|
78
|
+
Bo as ConfigurationIcon,
|
|
79
|
+
vo as CopyIcon,
|
|
80
|
+
wo as CoveredManuallyIcon,
|
|
81
|
+
Fr as CsvIcon,
|
|
82
|
+
M as DatePicker,
|
|
83
|
+
Mo as DeleteIcon,
|
|
84
|
+
ko as DragAndDropIcon,
|
|
85
|
+
Eo as DragNDropIcon,
|
|
86
|
+
E as Dropdown,
|
|
87
|
+
Br as DropdownIcon,
|
|
88
|
+
Lo as DurationIcon,
|
|
89
|
+
Oo as EditIcon,
|
|
90
|
+
wr as ErrorIcon,
|
|
91
|
+
Ro as ExportIcon,
|
|
92
|
+
gr as ExternalLinkIcon,
|
|
93
|
+
O as FieldLabel,
|
|
94
|
+
H as FieldNumber,
|
|
95
|
+
N as FieldText,
|
|
96
|
+
z as FieldTextFlex,
|
|
97
|
+
W as FileDropArea,
|
|
98
|
+
Dr as FileOtherIcon,
|
|
99
|
+
Ho as FilterFilledIcon,
|
|
100
|
+
Jo as FilterOutlineIcon,
|
|
101
|
+
No as FlagIcon,
|
|
102
|
+
Uo as GroupByIcon,
|
|
103
|
+
zo as HideIcon,
|
|
104
|
+
br as ImageIcon,
|
|
105
|
+
Mr as InfoIcon,
|
|
106
|
+
yr as JarIcon,
|
|
107
|
+
Go as LaunchTypeIcon,
|
|
108
|
+
Wo as MaximizeIcon,
|
|
109
|
+
Lr as MeatballMenuIcon,
|
|
110
|
+
Hr as MinusIcon,
|
|
111
|
+
j as Modal,
|
|
112
|
+
Xo as MoveToFolderIcon,
|
|
113
|
+
K as MultipleAutocomplete,
|
|
114
|
+
ur as OpenEyeIcon,
|
|
115
|
+
jo as OwnerIcon,
|
|
116
|
+
Y as Pagination,
|
|
117
|
+
Tr as PdfIcon,
|
|
118
|
+
qo as PinFilledIcon,
|
|
119
|
+
Ko as PinOutlineIcon,
|
|
120
|
+
Nr as PlusIcon,
|
|
121
|
+
_ as Popover,
|
|
122
|
+
zr as PrevChapterIcon,
|
|
123
|
+
Gr as PrevPageIcon,
|
|
124
|
+
Qo as PriorityBlockerIcon,
|
|
125
|
+
Vo as PriorityCriticalIcon,
|
|
126
|
+
Yo as PriorityHighIcon,
|
|
127
|
+
Zo as PriorityLowIcon,
|
|
128
|
+
_o as PriorityMediumIcon,
|
|
129
|
+
$o as PriorityUnspecifiedIcon,
|
|
130
|
+
oo as Radio,
|
|
131
|
+
or as RefreshIcon,
|
|
132
|
+
rr as RerunIcon,
|
|
133
|
+
er as SearchIcon,
|
|
134
|
+
eo as Selection,
|
|
135
|
+
Co as SidePanel,
|
|
136
|
+
Q as SingleAutocomplete,
|
|
137
|
+
nr as SortIcon,
|
|
138
|
+
to as SpinLoader,
|
|
139
|
+
tr as StatusSuccessIcon,
|
|
140
|
+
kr as SuccessIcon,
|
|
141
|
+
co as SystemAlert,
|
|
142
|
+
io as SystemMessage,
|
|
143
|
+
Io as Table,
|
|
144
|
+
ar as TestPlanIcon,
|
|
145
|
+
lo as ThemeProvider,
|
|
146
|
+
fo as Toggle,
|
|
147
|
+
So as Tooltip,
|
|
148
|
+
Or as TreeIcon,
|
|
149
|
+
cr as WarningIcon,
|
|
150
|
+
hr as XlsIcon
|
|
150
151
|
};
|
package/dist/modal.js
CHANGED
|
@@ -11,6 +11,7 @@ import { B as J } from "./baseIconButton-251479f7.js";
|
|
|
11
11
|
import { S as Q } from "./close-4d480ef7.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "@floating-ui/react";
|
|
14
|
+
import "./floatingUi-41f8c7b5.js";
|
|
14
15
|
const V = () => {
|
|
15
16
|
const [o, n] = p({ width: 0, height: 0 });
|
|
16
17
|
return b(() => {
|
|
@@ -77,7 +78,7 @@ const V = () => {
|
|
|
77
78
|
"size-default": "_size-default_yxql5_57",
|
|
78
79
|
"size-small": "_size-small_yxql5_69",
|
|
79
80
|
"size-large": "_size-large_yxql5_81"
|
|
80
|
-
}, f = y.bind(ce), re = 0.9, me = 32 + 24, _e = 32 + 8, he = 36 + 16, ue = 32 * 2,
|
|
81
|
+
}, f = y.bind(ce), re = 0.9, me = 32 + 24, _e = 32 + 8, he = 36 + 16, ue = 32 * 2, Ae = ({
|
|
81
82
|
title: o,
|
|
82
83
|
children: n,
|
|
83
84
|
footerNode: l,
|
|
@@ -148,7 +149,7 @@ const V = () => {
|
|
|
148
149
|
) }) });
|
|
149
150
|
};
|
|
150
151
|
export {
|
|
151
|
-
|
|
152
|
+
Ae as Modal,
|
|
152
153
|
C as ModalContent,
|
|
153
154
|
ne as ModalFooter,
|
|
154
155
|
ae as ModalHeader
|
package/dist/pagination.js
CHANGED
package/dist/popover.js
CHANGED
|
@@ -1,99 +1,80 @@
|
|
|
1
|
-
import { jsxs as f, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useFloating as
|
|
4
|
-
import { c as
|
|
5
|
-
|
|
1
|
+
import { jsxs as f, Fragment as G, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as H, useState as O, useCallback as j } from "react";
|
|
3
|
+
import { useFloating as C, offset as L, flip as M, arrow as W, autoUpdate as U, useClick as q, useDismiss as z, useRole as B, useInteractions as J, FloatingFocusManager as K, FloatingArrow as Q } from "@floating-ui/react";
|
|
4
|
+
import { c as V } from "./bind-06a7ff84.js";
|
|
5
|
+
import { g as X, T as g, a as Y, m as Z, b as $, A as ee } from "./floatingUi-41f8c7b5.js";
|
|
6
|
+
const te = "_popover_n3nff_1", se = "_title_n3nff_28", oe = {
|
|
6
7
|
"popover-wrapper": "_popover-wrapper_n3nff_1",
|
|
7
|
-
popover:
|
|
8
|
-
title:
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"left-end"
|
|
16
|
-
], ot = [
|
|
17
|
-
"top",
|
|
18
|
-
"top-start",
|
|
19
|
-
"top-end",
|
|
20
|
-
"right",
|
|
21
|
-
"right-start",
|
|
22
|
-
"right-end",
|
|
23
|
-
"bottom",
|
|
24
|
-
"bottom-start",
|
|
25
|
-
"bottom-end",
|
|
26
|
-
"left",
|
|
27
|
-
"left-start",
|
|
28
|
-
"left-end"
|
|
29
|
-
], it = ({
|
|
30
|
-
className: h,
|
|
31
|
-
content: u,
|
|
32
|
-
children: v,
|
|
33
|
-
placement: _ = "bottom",
|
|
34
|
-
fallbackPlacements: b = ot,
|
|
8
|
+
popover: te,
|
|
9
|
+
title: se
|
|
10
|
+
}, l = V.bind(oe), ce = ({
|
|
11
|
+
className: u,
|
|
12
|
+
content: d,
|
|
13
|
+
children: _,
|
|
14
|
+
placement: v = "bottom",
|
|
15
|
+
fallbackPlacements: A = $,
|
|
35
16
|
title: i,
|
|
36
|
-
arrowOffset: o =
|
|
37
|
-
safeZone:
|
|
17
|
+
arrowOffset: o = ee,
|
|
18
|
+
safeZone: h = 4,
|
|
38
19
|
arrowColor: x = "white",
|
|
39
|
-
dataAutomationId:
|
|
40
|
-
isOpened:
|
|
41
|
-
setIsOpened:
|
|
42
|
-
isCentered:
|
|
20
|
+
dataAutomationId: F,
|
|
21
|
+
isOpened: R,
|
|
22
|
+
setIsOpened: n,
|
|
23
|
+
isCentered: r = !0
|
|
43
24
|
}) => {
|
|
44
|
-
const c =
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
(
|
|
48
|
-
[o,
|
|
49
|
-
), { placement: E, refs: m, floatingStyles:
|
|
25
|
+
const c = H(null), [w, N] = O(!1), p = n ? R : w, T = (e) => {
|
|
26
|
+
n ? n(e) : N(e);
|
|
27
|
+
}, b = j(
|
|
28
|
+
(e, a) => X(e, a, o, r),
|
|
29
|
+
[o, r]
|
|
30
|
+
), { placement: E, refs: m, floatingStyles: P, context: t } = C({
|
|
50
31
|
open: p,
|
|
51
|
-
onOpenChange:
|
|
52
|
-
placement:
|
|
32
|
+
onOpenChange: T,
|
|
33
|
+
placement: v,
|
|
53
34
|
middleware: [
|
|
54
|
-
|
|
55
|
-
mainAxis:
|
|
56
|
-
alignmentAxis:
|
|
35
|
+
L(({ rects: e, placement: a }) => ({
|
|
36
|
+
mainAxis: h + g,
|
|
37
|
+
alignmentAxis: b(e, a)
|
|
57
38
|
})),
|
|
58
|
-
|
|
39
|
+
M({
|
|
59
40
|
fallbackAxisSideDirection: "start",
|
|
60
|
-
fallbackPlacements:
|
|
41
|
+
fallbackPlacements: A
|
|
61
42
|
}),
|
|
62
|
-
|
|
43
|
+
W({
|
|
63
44
|
element: c
|
|
64
45
|
})
|
|
65
46
|
],
|
|
66
|
-
whileElementsMounted:
|
|
67
|
-
}),
|
|
68
|
-
return /* @__PURE__ */ f(
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
p && /* @__PURE__ */
|
|
47
|
+
whileElementsMounted: U
|
|
48
|
+
}), k = q(t), I = z(t), S = B(t), { getReferenceProps: y, getFloatingProps: D } = J([k, I, S]);
|
|
49
|
+
return /* @__PURE__ */ f(G, { children: [
|
|
50
|
+
/* @__PURE__ */ s("div", { ref: m.setReference, ...y(), className: l("popover-wrapper"), children: _ }),
|
|
51
|
+
p && /* @__PURE__ */ s(K, { context: t, modal: !1, children: /* @__PURE__ */ f(
|
|
71
52
|
"div",
|
|
72
53
|
{
|
|
73
|
-
className:
|
|
74
|
-
"data-automation-id":
|
|
54
|
+
className: l("popover", u),
|
|
55
|
+
"data-automation-id": F,
|
|
75
56
|
ref: m.setFloating,
|
|
76
|
-
style:
|
|
77
|
-
...
|
|
57
|
+
style: P,
|
|
58
|
+
...D,
|
|
78
59
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
60
|
+
/* @__PURE__ */ s(
|
|
61
|
+
Q,
|
|
81
62
|
{
|
|
82
63
|
ref: c,
|
|
83
|
-
context:
|
|
84
|
-
width:
|
|
64
|
+
context: t,
|
|
65
|
+
width: Y,
|
|
85
66
|
height: g,
|
|
86
67
|
fill: x,
|
|
87
|
-
staticOffset:
|
|
68
|
+
staticOffset: Z.includes(E) ? null : o
|
|
88
69
|
}
|
|
89
70
|
),
|
|
90
|
-
i && /* @__PURE__ */
|
|
91
|
-
|
|
71
|
+
i && /* @__PURE__ */ s("div", { className: l("title"), children: i }),
|
|
72
|
+
d
|
|
92
73
|
]
|
|
93
74
|
}
|
|
94
75
|
) })
|
|
95
76
|
] });
|
|
96
77
|
};
|
|
97
78
|
export {
|
|
98
|
-
|
|
79
|
+
ce as Popover
|
|
99
80
|
};
|
package/dist/tooltip.js
CHANGED
|
@@ -1,69 +1,71 @@
|
|
|
1
|
-
import { jsxs as p, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { c as
|
|
5
|
-
import { useFloating as
|
|
6
|
-
|
|
1
|
+
import { jsxs as p, Fragment as P, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as R, useRef as d } from "react";
|
|
3
|
+
import { createPortal as G } from "react-dom";
|
|
4
|
+
import { c as j } from "./bind-06a7ff84.js";
|
|
5
|
+
import { useFloating as k, offset as $, flip as C, arrow as U, autoUpdate as Y, FloatingArrow as Z } from "@floating-ui/react";
|
|
6
|
+
import { T as f, g as q, b as z, a as B } from "./floatingUi-41f8c7b5.js";
|
|
7
|
+
const J = {
|
|
7
8
|
"tooltip-wrapper": "_tooltip-wrapper_lwpn2_16",
|
|
8
9
|
"tooltip-content": "_tooltip-content_lwpn2_23"
|
|
9
|
-
}, n =
|
|
10
|
+
}, n = j.bind(J), K = 300, Q = 100, st = ({
|
|
10
11
|
content: u,
|
|
11
12
|
wrapperClassName: h,
|
|
12
13
|
tooltipClassName: w,
|
|
13
14
|
contentClassName: x,
|
|
14
|
-
dynamicWidth:
|
|
15
|
-
width:
|
|
16
|
-
minWidth:
|
|
17
|
-
safeZone:
|
|
18
|
-
zIndex:
|
|
15
|
+
dynamicWidth: g,
|
|
16
|
+
width: T,
|
|
17
|
+
minWidth: _ = 120,
|
|
18
|
+
safeZone: A = 4,
|
|
19
|
+
zIndex: E = 9,
|
|
19
20
|
placement: N = "bottom",
|
|
20
21
|
arrowColor: b = "rgba(34, 34, 34, 0.91)",
|
|
21
22
|
dataAutomationId: I,
|
|
22
|
-
mainAxis:
|
|
23
|
-
children:
|
|
23
|
+
mainAxis: O = !0,
|
|
24
|
+
children: S,
|
|
24
25
|
portalRoot: s,
|
|
25
|
-
isFloating:
|
|
26
|
+
isFloating: W = !0
|
|
26
27
|
}) => {
|
|
27
|
-
const [i, l] =
|
|
28
|
+
const [i, l] = R(!1), a = d(null), t = d(), { refs: r, floatingStyles: y, context: F } = k({
|
|
28
29
|
open: i,
|
|
29
30
|
placement: N,
|
|
30
31
|
middleware: [
|
|
31
|
-
|
|
32
|
-
mainAxis:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
$(({ rects: D, placement: H }) => ({
|
|
33
|
+
mainAxis: A + f,
|
|
34
|
+
alignmentAxis: q(D, H)
|
|
35
|
+
})),
|
|
36
|
+
W && C({
|
|
37
|
+
mainAxis: O,
|
|
36
38
|
fallbackAxisSideDirection: "start",
|
|
37
|
-
fallbackPlacements:
|
|
39
|
+
fallbackPlacements: z
|
|
38
40
|
}),
|
|
39
|
-
|
|
40
|
-
element:
|
|
41
|
+
U({
|
|
42
|
+
element: a
|
|
41
43
|
})
|
|
42
44
|
],
|
|
43
|
-
whileElementsMounted:
|
|
44
|
-
}), e =
|
|
45
|
+
whileElementsMounted: Y
|
|
46
|
+
}), e = g ? null : { width: `${T}px` }, L = document.documentElement.clientWidth, M = e || L - Q, c = () => {
|
|
45
47
|
t.current && clearTimeout(t.current), l(!1);
|
|
46
48
|
}, v = () => {
|
|
47
|
-
t.current = setTimeout(() => l(!0),
|
|
49
|
+
t.current = setTimeout(() => l(!0), K);
|
|
48
50
|
}, m = () => /* @__PURE__ */ p(
|
|
49
51
|
"div",
|
|
50
52
|
{
|
|
51
|
-
ref:
|
|
53
|
+
ref: r.setFloating,
|
|
52
54
|
style: {
|
|
53
|
-
...
|
|
55
|
+
...y,
|
|
54
56
|
...e,
|
|
55
|
-
minWidth:
|
|
56
|
-
zIndex:
|
|
57
|
+
minWidth: _,
|
|
58
|
+
zIndex: E
|
|
57
59
|
},
|
|
58
60
|
"data-automation-id": I,
|
|
59
61
|
className: n(w),
|
|
60
62
|
children: [
|
|
61
63
|
/* @__PURE__ */ o(
|
|
62
|
-
|
|
64
|
+
Z,
|
|
63
65
|
{
|
|
64
|
-
ref:
|
|
65
|
-
context:
|
|
66
|
-
width:
|
|
66
|
+
ref: a,
|
|
67
|
+
context: F,
|
|
68
|
+
width: B,
|
|
67
69
|
height: f,
|
|
68
70
|
fill: b
|
|
69
71
|
}
|
|
@@ -73,7 +75,7 @@ const Y = {
|
|
|
73
75
|
{
|
|
74
76
|
className: n("tooltip-content", x),
|
|
75
77
|
style: {
|
|
76
|
-
maxWidth: `${
|
|
78
|
+
maxWidth: `${M}px`
|
|
77
79
|
},
|
|
78
80
|
children: u
|
|
79
81
|
}
|
|
@@ -81,21 +83,21 @@ const Y = {
|
|
|
81
83
|
]
|
|
82
84
|
}
|
|
83
85
|
);
|
|
84
|
-
return /* @__PURE__ */ p(
|
|
86
|
+
return /* @__PURE__ */ p(P, { children: [
|
|
85
87
|
/* @__PURE__ */ o(
|
|
86
88
|
"div",
|
|
87
89
|
{
|
|
88
|
-
ref:
|
|
90
|
+
ref: r.setReference,
|
|
89
91
|
className: n("tooltip-wrapper", h),
|
|
90
|
-
onMouseDown:
|
|
92
|
+
onMouseDown: c,
|
|
91
93
|
onMouseEnter: v,
|
|
92
|
-
onMouseLeave:
|
|
93
|
-
children:
|
|
94
|
+
onMouseLeave: c,
|
|
95
|
+
children: S
|
|
94
96
|
}
|
|
95
97
|
),
|
|
96
|
-
i && (s ?
|
|
98
|
+
i && (s ? G(m(), s) : m())
|
|
97
99
|
] });
|
|
98
100
|
};
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
st as Tooltip
|
|
101
103
|
};
|