@reportportal/ui-kit 0.0.1-alpha.264 → 0.0.1-alpha.265
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/autocompletes.js +375 -364
- package/dist/components/autocompletes/common/autocompleteOptions.d.ts +1 -1
- package/dist/components/autocompletes/multipleAutocomplete/multipleAutocomplete.d.ts +27 -26
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/popover/constants.d.ts +1 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/{constants-49d50d11.js → constants-b2831c98.js} +5 -3
- package/dist/icons.js +62 -61
- package/dist/index.js +63 -62
- package/dist/modal.js +20 -19
- package/dist/popover.js +61 -59
- package/dist/sidePanel.js +38 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptiveTagList as B } from "./adaptiveTagList.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as M, a as v } from "./actionMenu-faf12efe.js";
|
|
3
3
|
import { ACTION_MENU_DIVIDER as R } from "./actionMenu.js";
|
|
4
4
|
import { A as k } from "./index-612cf951.js";
|
|
5
5
|
import { B as N } from "./baseIconButton-f1c96f52.js";
|
|
@@ -17,15 +17,15 @@ import { F as to } from "./fieldNumber-b7e64bbb.js";
|
|
|
17
17
|
import { F as ao } from "./fieldText-b9b0ea9f.js";
|
|
18
18
|
import { F as po } from "./fieldTextFlex-2f51c173.js";
|
|
19
19
|
import { FileDropArea as mo } from "./fileDropArea.js";
|
|
20
|
-
import { FiltersButton as
|
|
20
|
+
import { FiltersButton as so } 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 { N as Ao } from "./constants-
|
|
24
|
+
import { N as Ao } from "./constants-b2831c98.js";
|
|
25
25
|
import { MultipleAutocomplete as go, SingleAutocomplete as Do } from "./autocompletes.js";
|
|
26
26
|
import { P as bo } from "./pagination-f2f004f2.js";
|
|
27
27
|
import { Popover as ho } from "./popover.js";
|
|
28
|
-
import { R as
|
|
28
|
+
import { R as Lo, a as Mo } from "./radioGroup-2d63aca5.js";
|
|
29
29
|
import { SegmentedControl as wo } from "./segmentedControl.js";
|
|
30
30
|
import { S as Eo } from "./selection-da1a3528.js";
|
|
31
31
|
import { S as Oo } from "./spinLoader-c4a53718.js";
|
|
@@ -42,23 +42,23 @@ import "react-dnd";
|
|
|
42
42
|
import "react-dnd-html5-backend";
|
|
43
43
|
import { useTreeDropValidation as nr } from "./common/hooks.js";
|
|
44
44
|
import { u as cr } from "./useEllipsisTitle-462fa254.js";
|
|
45
|
-
import { AddCsvIcon as ir, AddImageIcon as mr, AddJarIcon as
|
|
46
|
-
import { S as
|
|
47
|
-
import { S as
|
|
48
|
-
import { S as
|
|
49
|
-
import { S as
|
|
50
|
-
import { b as
|
|
51
|
-
import { S as
|
|
52
|
-
import { S as
|
|
53
|
-
import { S as
|
|
54
|
-
import { S as
|
|
55
|
-
import { S as
|
|
56
|
-
import { S as
|
|
57
|
-
import { S as
|
|
58
|
-
import { S as
|
|
59
|
-
import { S as
|
|
60
|
-
import { S as
|
|
61
|
-
import { S as
|
|
45
|
+
import { AddCsvIcon as ir, AddImageIcon as mr, AddJarIcon as Ir, ArrowLeftIcon as sr, 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 Lr, EditIcon as Mr, 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, SubLevelIcon as ae, TestCaseIcon as ce, TestPlanIcon as pe, UserIcon as ie } from "./icons.js";
|
|
46
|
+
import { S as Ie, a as se, b as le } from "./resizeColumn-46b5b30f.js";
|
|
47
|
+
import { S as fe } from "./calendarArrow-44c7e60e.js";
|
|
48
|
+
import { S as ue } from "./chevronDownDropdown-0260bb66.js";
|
|
49
|
+
import { S as Ce } from "./clear-53660571.js";
|
|
50
|
+
import { b as Ae, S as Pe, a as ge } from "./capslockIcon-b9dcdce5.js";
|
|
51
|
+
import { S as Fe } from "./close-4d480ef7.js";
|
|
52
|
+
import { S as ye, g as he, a as Be, b as Le, c as Me, d as ve, e as we, f as Re } from "./download-77ff4638.js";
|
|
53
|
+
import { S as ke } from "./details-dbb1530b.js";
|
|
54
|
+
import { S as Ne } from "./dropdown-0260bb66.js";
|
|
55
|
+
import { S as _e, a as He, b as ze } from "./success-c2bfbcc5.js";
|
|
56
|
+
import { S as Je, a as Ve } from "./filterOutline-819b4b0d.js";
|
|
57
|
+
import { S as Xe, a as je } from "./tree-c3dd3d45.js";
|
|
58
|
+
import { S as Ke } from "./minus-2857540f.js";
|
|
59
|
+
import { S as Ye } from "./plus-199fb2a8.js";
|
|
60
|
+
import { S as $e, a as ot } from "./prevPage-87faf576.js";
|
|
61
|
+
import { S as et } from "./warning-537ead32.js";
|
|
62
62
|
import "react/jsx-runtime";
|
|
63
63
|
import "./bind-06a7ff84.js";
|
|
64
64
|
import "./isEmpty-ccacb5ff.js";
|
|
@@ -83,14 +83,14 @@ import "./common.js";
|
|
|
83
83
|
import "react-resizable";
|
|
84
84
|
export {
|
|
85
85
|
R as ACTION_MENU_DIVIDER,
|
|
86
|
-
|
|
86
|
+
M as ActionMenu,
|
|
87
87
|
v as ActionMenuItem,
|
|
88
88
|
B as AdaptiveTagList,
|
|
89
89
|
ir as AddCsvIcon,
|
|
90
90
|
mr as AddImageIcon,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
Ir as AddJarIcon,
|
|
92
|
+
Ie as ArrowDownIcon,
|
|
93
|
+
sr as ArrowLeftIcon,
|
|
94
94
|
lr as ArrowRightIcon,
|
|
95
95
|
se as ArrowUpIcon,
|
|
96
96
|
k as AttachedFile,
|
|
@@ -101,91 +101,91 @@ export {
|
|
|
101
101
|
z as BubblesLoader,
|
|
102
102
|
J as BulkPanel,
|
|
103
103
|
W as Button,
|
|
104
|
-
|
|
104
|
+
fe as CalendarArrowIcon,
|
|
105
105
|
dr as CalendarIcon,
|
|
106
|
-
|
|
106
|
+
Ae as CapsLockIcon,
|
|
107
107
|
j as Checkbox,
|
|
108
108
|
ur as CheckmarkIcon,
|
|
109
|
-
|
|
109
|
+
ue as ChevronDownDropdownIcon,
|
|
110
110
|
Sr as ChevronRightBreadcrumbsIcon,
|
|
111
111
|
K as Chip,
|
|
112
|
-
|
|
112
|
+
Ce as ClearIcon,
|
|
113
113
|
Cr as CloseEyeIcon,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
Fe as CloseIcon,
|
|
115
|
+
Pe as ClosedEyeIcon,
|
|
116
116
|
Tr as ConfigurationIcon,
|
|
117
117
|
Ar as CopyIcon,
|
|
118
118
|
Pr as CoverageFullIcon,
|
|
119
119
|
gr as CoveragePartialIcon,
|
|
120
120
|
Dr as CoveredManuallyIcon,
|
|
121
|
-
|
|
121
|
+
ye as CsvIcon,
|
|
122
122
|
Fr as CycleArrowsIcon,
|
|
123
123
|
Y as DatePicker,
|
|
124
124
|
br as DeleteIcon,
|
|
125
|
-
|
|
125
|
+
ke as DetailsIcon,
|
|
126
126
|
yr as DiamondIcon,
|
|
127
|
-
|
|
127
|
+
he as DownloadIcon,
|
|
128
128
|
hr as DragAndDropIcon,
|
|
129
129
|
Go as DragLayer,
|
|
130
130
|
Br as DragNDropIcon,
|
|
131
131
|
$ as Dropdown,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
Ne as DropdownIcon,
|
|
133
|
+
Lr as DurationIcon,
|
|
134
|
+
Mr as EditIcon,
|
|
135
|
+
_e as ErrorIcon,
|
|
136
136
|
vr as ExportIcon,
|
|
137
|
-
|
|
137
|
+
Be as ExternalLinkIcon,
|
|
138
138
|
ro as FieldLabel,
|
|
139
139
|
to as FieldNumber,
|
|
140
140
|
ao as FieldText,
|
|
141
141
|
po as FieldTextFlex,
|
|
142
142
|
mo as FileDropArea,
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
Le as FileOtherIcon,
|
|
144
|
+
Je as FilterFilledIcon,
|
|
145
145
|
xo as FilterItem,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
Ve as FilterOutlineIcon,
|
|
147
|
+
so as FiltersButton,
|
|
148
148
|
wr as FlagIcon,
|
|
149
149
|
Rr as FolderIcon,
|
|
150
150
|
Er as GroupByIcon,
|
|
151
151
|
kr as HashIcon,
|
|
152
152
|
Or as HideIcon,
|
|
153
153
|
Me as ImageIcon,
|
|
154
|
-
|
|
154
|
+
He as InfoIcon,
|
|
155
155
|
uo as IssueList,
|
|
156
|
-
|
|
156
|
+
ve as JarIcon,
|
|
157
157
|
Nr as LatestExecutionsIcon,
|
|
158
158
|
Ur as LaunchTypeIcon,
|
|
159
159
|
_r as MailIcon,
|
|
160
160
|
Hr as MaximizeIcon,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
Xe as MeatballMenuIcon,
|
|
162
|
+
Ke as MinusIcon,
|
|
163
163
|
Co as Modal,
|
|
164
164
|
zr as MoveToFolderIcon,
|
|
165
165
|
go as MultipleAutocomplete,
|
|
166
166
|
Ao as NOTIFICATION_PORTAL_ATTR,
|
|
167
167
|
Gr as OkIcon,
|
|
168
168
|
Jr as OpenEyeIcon,
|
|
169
|
-
|
|
169
|
+
ge as OpenedEyeIcon,
|
|
170
170
|
bo as Pagination,
|
|
171
|
-
|
|
171
|
+
we as PdfIcon,
|
|
172
172
|
Vr as PinFilledIcon,
|
|
173
173
|
Wr as PinOutlineIcon,
|
|
174
|
-
|
|
174
|
+
Ye as PlusIcon,
|
|
175
175
|
ho as Popover,
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
$e as PrevChapterIcon,
|
|
177
|
+
ot as PrevPageIcon,
|
|
178
178
|
Xr as PriorityBlockerIcon,
|
|
179
179
|
jr as PriorityCriticalIcon,
|
|
180
180
|
qr as PriorityHighIcon,
|
|
181
181
|
Kr as PriorityLowIcon,
|
|
182
182
|
Qr as PriorityMediumIcon,
|
|
183
183
|
Yr as PriorityUnspecifiedIcon,
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
Lo as Radio,
|
|
185
|
+
Mo as RadioGroup,
|
|
186
186
|
Zr as RefreshIcon,
|
|
187
187
|
$r as RerunIcon,
|
|
188
|
-
|
|
188
|
+
le as ResizeColumnIcon,
|
|
189
189
|
oe as RocketIcon,
|
|
190
190
|
re as RunManualIcon,
|
|
191
191
|
ee as SearchIcon,
|
|
@@ -198,21 +198,22 @@ export {
|
|
|
198
198
|
Vo as SortableList,
|
|
199
199
|
Oo as SpinLoader,
|
|
200
200
|
ne as StatusSuccessIcon,
|
|
201
|
-
|
|
201
|
+
ae as SubLevelIcon,
|
|
202
|
+
ze as SuccessIcon,
|
|
202
203
|
Uo as SystemAlert,
|
|
203
204
|
Ho as SystemMessage,
|
|
204
205
|
qo as Table,
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
ce as TestCaseIcon,
|
|
207
|
+
pe as TestPlanIcon,
|
|
207
208
|
Qo as ThemeProvider,
|
|
208
209
|
Zo as Toggle,
|
|
209
210
|
or as Tooltip,
|
|
210
|
-
|
|
211
|
+
je as TreeIcon,
|
|
211
212
|
Wo as TreeSortableContainer,
|
|
212
213
|
Xo as TreeSortableItem,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
ie as UserIcon,
|
|
215
|
+
et as WarningIcon,
|
|
216
|
+
Re as XlsIcon,
|
|
216
217
|
cr as useEllipsisTitle,
|
|
217
218
|
nr as useTreeDropValidation
|
|
218
219
|
};
|
package/dist/modal.js
CHANGED
|
@@ -12,8 +12,8 @@ import { B as x } from "./button-7ab874f3.js";
|
|
|
12
12
|
import { Tooltip as Q } from "./tooltip.js";
|
|
13
13
|
import { B as ee } from "./baseIconButton-f1c96f52.js";
|
|
14
14
|
import { S as te } from "./close-4d480ef7.js";
|
|
15
|
-
import { M as oe } from "./constants-
|
|
16
|
-
import { N as
|
|
15
|
+
import { M as oe } from "./constants-b2831c98.js";
|
|
16
|
+
import { N as Je } from "./constants-b2831c98.js";
|
|
17
17
|
import "react-dom";
|
|
18
18
|
import "@floating-ui/react";
|
|
19
19
|
import "./floatingUi-46f5b896.js";
|
|
@@ -28,6 +28,7 @@ import "./adaptiveTagList.js";
|
|
|
28
28
|
import "./isEmpty-ccacb5ff.js";
|
|
29
29
|
import "./useEllipsisTitle-462fa254.js";
|
|
30
30
|
import "./checkbox-76aa8f97.js";
|
|
31
|
+
import "./popover.js";
|
|
31
32
|
const ne = {
|
|
32
33
|
"modal-content": "_modal-content_ppzcb_1"
|
|
33
34
|
}, ae = b.bind(ne), I = ({ children: o }) => /* @__PURE__ */ e("div", { className: ae("modal-content"), children: o }), ie = {
|
|
@@ -62,13 +63,13 @@ const ne = {
|
|
|
62
63
|
i && /* @__PURE__ */ e("div", { className: f("button-container"), children: O() })
|
|
63
64
|
] })
|
|
64
65
|
] });
|
|
65
|
-
},
|
|
66
|
+
}, re = {
|
|
66
67
|
"modal-header": "_modal-header_w4aaf_1",
|
|
67
68
|
"width-description": "_width-description_w4aaf_10",
|
|
68
69
|
"modal-header-content": "_modal-header-content_w4aaf_14",
|
|
69
70
|
"modal-title": "_modal-title_w4aaf_20",
|
|
70
71
|
"close-modal-icon": "_close-modal-icon_w4aaf_29"
|
|
71
|
-
}, w = b.bind(
|
|
72
|
+
}, w = b.bind(re), le = ({ title: o, onClose: n, withDescription: i = !1 }) => /* @__PURE__ */ d("div", { className: w("modal-header", { "width-description": i }), children: [
|
|
72
73
|
/* @__PURE__ */ e("div", { className: w("modal-header-content"), children: o && /* @__PURE__ */ e("div", { className: w("modal-title"), children: o }) }),
|
|
73
74
|
/* @__PURE__ */ e(ee, { className: w("close-modal-icon"), onClick: n, children: /* @__PURE__ */ e(te, {}) })
|
|
74
75
|
] }), ce = "_modal_35896_1", de = "_description_35896_43", me = {
|
|
@@ -83,7 +84,7 @@ const ne = {
|
|
|
83
84
|
"size-default": "_size-default_35896_62",
|
|
84
85
|
"size-small": "_size-small_35896_74",
|
|
85
86
|
"size-large": "_size-large_35896_86"
|
|
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 } }),
|
|
87
|
+
}, 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 } }), Ve = ({
|
|
87
88
|
title: o,
|
|
88
89
|
children: n,
|
|
89
90
|
footerNode: i,
|
|
@@ -99,19 +100,19 @@ const ne = {
|
|
|
99
100
|
scrollable: D = !1,
|
|
100
101
|
withoutFooter: y = !1,
|
|
101
102
|
createFooter: E = null,
|
|
102
|
-
description:
|
|
103
|
+
description: r = null
|
|
103
104
|
}) => {
|
|
104
105
|
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
106
|
let t = K - fe;
|
|
106
|
-
return y || (t = t - he),
|
|
107
|
-
},
|
|
107
|
+
return y || (t = t - he), r ? t = t - ue : t = t - pe, t;
|
|
108
|
+
}, l = C(() => {
|
|
108
109
|
H(!1);
|
|
109
110
|
}, []), N = C(
|
|
110
111
|
(t) => {
|
|
111
112
|
const { keyCode: h } = t;
|
|
112
|
-
h === J.ESCAPE_KEY_CODE &&
|
|
113
|
+
h === J.ESCAPE_KEY_CODE && l();
|
|
113
114
|
},
|
|
114
|
-
[
|
|
115
|
+
[l]
|
|
115
116
|
), F = () => {
|
|
116
117
|
var t;
|
|
117
118
|
$ || ((t = a.current) == null || t.focus(), B(!0));
|
|
@@ -133,7 +134,7 @@ const ne = {
|
|
|
133
134
|
}),
|
|
134
135
|
[]
|
|
135
136
|
);
|
|
136
|
-
return Z(a, k ?
|
|
137
|
+
return Z(a, k ? l : void 0, G), /* @__PURE__ */ e(Y, { onExitComplete: O, children: v && /* @__PURE__ */ e("div", { className: c("modal", { [`overlay-${_}`]: _ }), style: { zIndex: S }, children: /* @__PURE__ */ d(
|
|
137
138
|
V.div,
|
|
138
139
|
{
|
|
139
140
|
className: c("modal-window", { [`size-${m}`]: m }, u),
|
|
@@ -145,7 +146,7 @@ const ne = {
|
|
|
145
146
|
transition: { duration: 0.3 },
|
|
146
147
|
onAnimationStart: F,
|
|
147
148
|
children: [
|
|
148
|
-
/* @__PURE__ */ e(
|
|
149
|
+
/* @__PURE__ */ e(le, { title: o, onClose: l, withDescription: !!r }),
|
|
149
150
|
D ? /* @__PURE__ */ e("div", { className: c("scrollable-wrapper"), children: /* @__PURE__ */ e(
|
|
150
151
|
X,
|
|
151
152
|
{
|
|
@@ -155,22 +156,22 @@ const ne = {
|
|
|
155
156
|
renderTrackHorizontal: R,
|
|
156
157
|
renderTrackVertical: R,
|
|
157
158
|
children: /* @__PURE__ */ d("div", { className: c("scrollable-content"), children: [
|
|
158
|
-
|
|
159
|
+
r && /* @__PURE__ */ e("span", { className: c("description"), children: r }),
|
|
159
160
|
/* @__PURE__ */ e(I, { children: n })
|
|
160
161
|
] })
|
|
161
162
|
}
|
|
162
163
|
) }) : /* @__PURE__ */ d(W, { children: [
|
|
163
|
-
|
|
164
|
+
r && /* @__PURE__ */ e("span", { className: c("description"), children: r }),
|
|
164
165
|
/* @__PURE__ */ e(I, { children: n })
|
|
165
166
|
] }),
|
|
166
|
-
!y && (E ? E(
|
|
167
|
+
!y && (E ? E(l) : /* @__PURE__ */ e(
|
|
167
168
|
se,
|
|
168
169
|
{
|
|
169
170
|
size: m,
|
|
170
171
|
footerNode: i,
|
|
171
172
|
okButton: p,
|
|
172
173
|
cancelButton: s,
|
|
173
|
-
closeHandler:
|
|
174
|
+
closeHandler: l
|
|
174
175
|
}
|
|
175
176
|
))
|
|
176
177
|
]
|
|
@@ -179,9 +180,9 @@ const ne = {
|
|
|
179
180
|
) }) });
|
|
180
181
|
};
|
|
181
182
|
export {
|
|
182
|
-
|
|
183
|
+
Ve as Modal,
|
|
183
184
|
I as ModalContent,
|
|
184
185
|
se as ModalFooter,
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
le as ModalHeader,
|
|
187
|
+
Je as NOTIFICATION_PORTAL_ATTR
|
|
187
188
|
};
|
package/dist/popover.js
CHANGED
|
@@ -1,95 +1,97 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useFloating as B, offset as J, flip as K, arrow as Q, autoUpdate as
|
|
1
|
+
import { jsxs as d, Fragment as W, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as V, useState as q, useCallback as z } from "react";
|
|
3
|
+
import { useFloating as B, offset as J, flip as K, arrow as Q, autoUpdate as U, useClick as X, useDismiss as Y, useRole as Z, useInteractions as $, useTransitionStyles as ee, FloatingFocusManager as te, FloatingArrow as ne, FloatingPortal as se } from "@floating-ui/react";
|
|
4
4
|
import { c as oe } from "./bind-06a7ff84.js";
|
|
5
|
-
import { g as ae, T as
|
|
6
|
-
const pe = "
|
|
5
|
+
import { g as ae, T as g, a as le, A as ie, b as re, m as ce } from "./floatingUi-46f5b896.js";
|
|
6
|
+
const pe = "data-popover-portal", me = "_popover_n3nff_1", fe = "_title_n3nff_28", de = {
|
|
7
7
|
"popover-wrapper": "_popover-wrapper_n3nff_1",
|
|
8
|
-
popover:
|
|
9
|
-
title:
|
|
10
|
-
}, l = oe.bind(
|
|
11
|
-
content:
|
|
12
|
-
children:
|
|
8
|
+
popover: me,
|
|
9
|
+
title: fe
|
|
10
|
+
}, l = oe.bind(de), Re = ({
|
|
11
|
+
content: u,
|
|
12
|
+
children: _,
|
|
13
13
|
placement: v = "bottom",
|
|
14
|
-
fallbackPlacements:
|
|
15
|
-
className:
|
|
14
|
+
fallbackPlacements: A = le,
|
|
15
|
+
className: R,
|
|
16
16
|
title: i,
|
|
17
|
-
arrowOffset:
|
|
18
|
-
safeZone:
|
|
19
|
-
arrowColor:
|
|
20
|
-
dataAutomationId:
|
|
21
|
-
strategy:
|
|
22
|
-
transitionDuration:
|
|
17
|
+
arrowOffset: s = ie,
|
|
18
|
+
safeZone: F = 4,
|
|
19
|
+
arrowColor: h = "white",
|
|
20
|
+
dataAutomationId: T,
|
|
21
|
+
strategy: x = "absolute",
|
|
22
|
+
transitionDuration: y = 0,
|
|
23
23
|
isCentered: r = !0,
|
|
24
|
-
isFocusDisabled:
|
|
25
|
-
isOpened:
|
|
26
|
-
shouldUsePortal:
|
|
24
|
+
isFocusDisabled: E = !1,
|
|
25
|
+
isOpened: w,
|
|
26
|
+
shouldUsePortal: c = !1,
|
|
27
27
|
setIsOpened: o
|
|
28
28
|
}) => {
|
|
29
|
-
const
|
|
30
|
-
o ? o(e) :
|
|
31
|
-
},
|
|
32
|
-
(e, a) => ae(e, a,
|
|
33
|
-
[
|
|
34
|
-
), { placement:
|
|
35
|
-
open:
|
|
36
|
-
onOpenChange:
|
|
29
|
+
const p = V(null), [P, b] = q(!1), m = o ? w : P, N = (e) => {
|
|
30
|
+
o ? o(e) : b(e);
|
|
31
|
+
}, O = z(
|
|
32
|
+
(e, a) => ae(e, a, s, r),
|
|
33
|
+
[s, r]
|
|
34
|
+
), { placement: S, refs: f, floatingStyles: k, context: t } = B({
|
|
35
|
+
open: m,
|
|
36
|
+
onOpenChange: N,
|
|
37
37
|
placement: v,
|
|
38
|
-
strategy:
|
|
38
|
+
strategy: x,
|
|
39
39
|
middleware: [
|
|
40
40
|
J(({ rects: e, placement: a }) => ({
|
|
41
|
-
mainAxis:
|
|
42
|
-
alignmentAxis:
|
|
41
|
+
mainAxis: F + g,
|
|
42
|
+
alignmentAxis: O(e, a)
|
|
43
43
|
})),
|
|
44
44
|
K({
|
|
45
45
|
fallbackAxisSideDirection: "start",
|
|
46
|
-
fallbackPlacements:
|
|
46
|
+
fallbackPlacements: A
|
|
47
47
|
}),
|
|
48
48
|
Q({
|
|
49
|
-
element:
|
|
49
|
+
element: p
|
|
50
50
|
})
|
|
51
51
|
],
|
|
52
|
-
whileElementsMounted:
|
|
53
|
-
}),
|
|
54
|
-
duration:
|
|
52
|
+
whileElementsMounted: U
|
|
53
|
+
}), I = X(t), D = Y(t), G = Z(t), { getReferenceProps: H, getFloatingProps: L } = $([I, D, G]), { isMounted: M, styles: j } = ee(t, {
|
|
54
|
+
duration: y,
|
|
55
55
|
initial: { opacity: 0 }
|
|
56
|
-
}),
|
|
57
|
-
const e = /* @__PURE__ */
|
|
56
|
+
}), C = () => {
|
|
57
|
+
const e = /* @__PURE__ */ n(te, { context: t, modal: !1, disabled: E, children: /* @__PURE__ */ d(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
className: l("popover",
|
|
61
|
-
"data-automation-id":
|
|
62
|
-
ref:
|
|
60
|
+
className: l("popover", R),
|
|
61
|
+
"data-automation-id": T,
|
|
62
|
+
ref: f.setFloating,
|
|
63
63
|
style: {
|
|
64
|
-
...
|
|
65
|
-
...
|
|
66
|
-
pointerEvents:
|
|
64
|
+
...k,
|
|
65
|
+
...j,
|
|
66
|
+
pointerEvents: m ? "auto" : "none"
|
|
67
67
|
},
|
|
68
|
-
...
|
|
68
|
+
...L(),
|
|
69
|
+
...c && { [pe]: "" },
|
|
69
70
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
71
|
+
/* @__PURE__ */ n(
|
|
72
|
+
ne,
|
|
72
73
|
{
|
|
73
|
-
ref:
|
|
74
|
+
ref: p,
|
|
74
75
|
context: t,
|
|
75
76
|
width: re,
|
|
76
|
-
height:
|
|
77
|
-
fill:
|
|
78
|
-
staticOffset: ce.includes(
|
|
77
|
+
height: g,
|
|
78
|
+
fill: h,
|
|
79
|
+
staticOffset: ce.includes(S) ? null : s
|
|
79
80
|
}
|
|
80
81
|
),
|
|
81
|
-
i && /* @__PURE__ */
|
|
82
|
-
|
|
82
|
+
i && /* @__PURE__ */ n("div", { className: l("title"), children: i }),
|
|
83
|
+
u
|
|
83
84
|
]
|
|
84
85
|
}
|
|
85
86
|
) });
|
|
86
|
-
return
|
|
87
|
+
return c ? /* @__PURE__ */ n(se, { children: e }) : e;
|
|
87
88
|
};
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
|
|
89
|
+
return /* @__PURE__ */ d(W, { children: [
|
|
90
|
+
/* @__PURE__ */ n("div", { ref: f.setReference, ...H(), className: l("popover-wrapper"), children: _ }),
|
|
91
|
+
M && C()
|
|
91
92
|
] });
|
|
92
93
|
};
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
pe as POPOVER_PORTAL_ATTR,
|
|
96
|
+
Re as Popover
|
|
95
97
|
};
|