@reportportal/ui-kit 0.0.1-alpha.263 → 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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AdaptiveTagList as B } from "./adaptiveTagList.js";
2
- import { A as L, a as v } from "./actionMenu-faf12efe.js";
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 Io } from "./filtersButton.js";
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-49d50d11.js";
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 Mo, a as Lo } from "./radioGroup-2d63aca5.js";
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 sr, ArrowLeftIcon as Ir, 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 Mr, EditIcon as Lr, 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, TestCaseIcon as ae, TestPlanIcon as ce, UserIcon as pe } from "./icons.js";
46
- import { S as me, a as se, b as Ie } from "./resizeColumn-46b5b30f.js";
47
- import { S as xe } from "./calendarArrow-44c7e60e.js";
48
- import { S as de } from "./chevronDownDropdown-0260bb66.js";
49
- import { S as Se } from "./clear-53660571.js";
50
- import { b as Te, S as Ae, a as Pe } from "./capslockIcon-b9dcdce5.js";
51
- import { S as De } from "./close-4d480ef7.js";
52
- import { S as be, g as ye, a as he, b as Be, c as Me, d as Le, e as ve, f as we } from "./download-77ff4638.js";
53
- import { S as Ee } from "./details-dbb1530b.js";
54
- import { S as Oe } from "./dropdown-0260bb66.js";
55
- import { S as Ue, a as _e, b as He } from "./success-c2bfbcc5.js";
56
- import { S as Ge, a as Je } from "./filterOutline-819b4b0d.js";
57
- import { S as We, a as Xe } from "./tree-c3dd3d45.js";
58
- import { S as qe } from "./minus-2857540f.js";
59
- import { S as Qe } from "./plus-199fb2a8.js";
60
- import { S as Ze, a as $e } from "./prevPage-87faf576.js";
61
- import { S as rt } from "./warning-537ead32.js";
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
- L as ActionMenu,
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
- sr as AddJarIcon,
92
- me as ArrowDownIcon,
93
- Ir as ArrowLeftIcon,
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
- xe as CalendarArrowIcon,
104
+ fe as CalendarArrowIcon,
105
105
  dr as CalendarIcon,
106
- Te as CapsLockIcon,
106
+ Ae as CapsLockIcon,
107
107
  j as Checkbox,
108
108
  ur as CheckmarkIcon,
109
- de as ChevronDownDropdownIcon,
109
+ ue as ChevronDownDropdownIcon,
110
110
  Sr as ChevronRightBreadcrumbsIcon,
111
111
  K as Chip,
112
- Se as ClearIcon,
112
+ Ce as ClearIcon,
113
113
  Cr as CloseEyeIcon,
114
- De as CloseIcon,
115
- Ae as ClosedEyeIcon,
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
- be as CsvIcon,
121
+ ye as CsvIcon,
122
122
  Fr as CycleArrowsIcon,
123
123
  Y as DatePicker,
124
124
  br as DeleteIcon,
125
- Ee as DetailsIcon,
125
+ ke as DetailsIcon,
126
126
  yr as DiamondIcon,
127
- ye as DownloadIcon,
127
+ he as DownloadIcon,
128
128
  hr as DragAndDropIcon,
129
129
  Go as DragLayer,
130
130
  Br as DragNDropIcon,
131
131
  $ as Dropdown,
132
- Oe as DropdownIcon,
133
- Mr as DurationIcon,
134
- Lr as EditIcon,
135
- Ue as ErrorIcon,
132
+ Ne as DropdownIcon,
133
+ Lr as DurationIcon,
134
+ Mr as EditIcon,
135
+ _e as ErrorIcon,
136
136
  vr as ExportIcon,
137
- he as ExternalLinkIcon,
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
- Be as FileOtherIcon,
144
- Ge as FilterFilledIcon,
143
+ Le as FileOtherIcon,
144
+ Je as FilterFilledIcon,
145
145
  xo as FilterItem,
146
- Je as FilterOutlineIcon,
147
- Io as FiltersButton,
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
- _e as InfoIcon,
154
+ He as InfoIcon,
155
155
  uo as IssueList,
156
- Le as JarIcon,
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
- We as MeatballMenuIcon,
162
- qe as MinusIcon,
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
- Pe as OpenedEyeIcon,
169
+ ge as OpenedEyeIcon,
170
170
  bo as Pagination,
171
- ve as PdfIcon,
171
+ we as PdfIcon,
172
172
  Vr as PinFilledIcon,
173
173
  Wr as PinOutlineIcon,
174
- Qe as PlusIcon,
174
+ Ye as PlusIcon,
175
175
  ho as Popover,
176
- Ze as PrevChapterIcon,
177
- $e as PrevPageIcon,
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
- Mo as Radio,
185
- Lo as RadioGroup,
184
+ Lo as Radio,
185
+ Mo as RadioGroup,
186
186
  Zr as RefreshIcon,
187
187
  $r as RerunIcon,
188
- Ie as ResizeColumnIcon,
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
- He as SuccessIcon,
201
+ ae as SubLevelIcon,
202
+ ze as SuccessIcon,
202
203
  Uo as SystemAlert,
203
204
  Ho as SystemMessage,
204
205
  qo as Table,
205
- ae as TestCaseIcon,
206
- ce as TestPlanIcon,
206
+ ce as TestCaseIcon,
207
+ pe as TestPlanIcon,
207
208
  Qo as ThemeProvider,
208
209
  Zo as Toggle,
209
210
  or as Tooltip,
210
- Xe as TreeIcon,
211
+ je as TreeIcon,
211
212
  Wo as TreeSortableContainer,
212
213
  Xo as TreeSortableItem,
213
- pe as UserIcon,
214
- rt as WarningIcon,
215
- we as XlsIcon,
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-49d50d11.js";
16
- import { N as qe } from "./constants-49d50d11.js";
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
- }, le = {
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(le), re = ({ title: o, onClose: n, withDescription: i = !1 }) => /* @__PURE__ */ d("div", { className: w("modal-header", { "width-description": i }), children: [
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 } }), Ye = ({
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: l = null
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), l ? t = t - ue : t = t - pe, t;
107
- }, r = C(() => {
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 && r();
113
+ h === J.ESCAPE_KEY_CODE && l();
113
114
  },
114
- [r]
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 ? r : void 0, G), /* @__PURE__ */ e(Y, { onExitComplete: O, children: v && /* @__PURE__ */ e("div", { className: c("modal", { [`overlay-${_}`]: _ }), style: { zIndex: S }, children: /* @__PURE__ */ d(
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(re, { title: o, onClose: r, withDescription: !!l }),
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
- l && /* @__PURE__ */ e("span", { className: c("description"), children: l }),
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
- l && /* @__PURE__ */ e("span", { className: c("description"), children: l }),
164
+ r && /* @__PURE__ */ e("span", { className: c("description"), children: r }),
164
165
  /* @__PURE__ */ e(I, { children: n })
165
166
  ] }),
166
- !y && (E ? E(r) : /* @__PURE__ */ 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: r
174
+ closeHandler: l
174
175
  }
175
176
  ))
176
177
  ]
@@ -179,9 +180,9 @@ const ne = {
179
180
  ) }) });
180
181
  };
181
182
  export {
182
- Ye as Modal,
183
+ Ve as Modal,
183
184
  I as ModalContent,
184
185
  se as ModalFooter,
185
- re as ModalHeader,
186
- qe as NOTIFICATION_PORTAL_ATTR
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 f, Fragment as W, jsx as s } from "react/jsx-runtime";
2
- import { useRef as U, useState as q, useCallback as z } from "react";
3
- import { useFloating as B, offset as J, flip as K, arrow as Q, autoUpdate as V, useClick as X, useDismiss as Y, useRole as Z, useInteractions as $, useTransitionStyles as ee, FloatingFocusManager as te, FloatingArrow as se, FloatingPortal as ne } from "@floating-ui/react";
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 u, a as le, A as ie, b as re, m as ce } from "./floatingUi-46f5b896.js";
6
- const pe = "_popover_n3nff_1", me = "_title_n3nff_28", fe = {
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: pe,
9
- title: me
10
- }, l = oe.bind(fe), he = ({
11
- content: d,
12
- children: g,
8
+ popover: me,
9
+ title: fe
10
+ }, l = oe.bind(de), Re = ({
11
+ content: u,
12
+ children: _,
13
13
  placement: v = "bottom",
14
- fallbackPlacements: _ = le,
15
- className: h,
14
+ fallbackPlacements: A = le,
15
+ className: R,
16
16
  title: i,
17
- arrowOffset: n = ie,
18
- safeZone: A = 4,
19
- arrowColor: F = "white",
20
- dataAutomationId: x,
21
- strategy: y = "absolute",
22
- transitionDuration: R = 0,
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: w = !1,
25
- isOpened: E,
26
- shouldUsePortal: b = !1,
24
+ isFocusDisabled: E = !1,
25
+ isOpened: w,
26
+ shouldUsePortal: c = !1,
27
27
  setIsOpened: o
28
28
  }) => {
29
- const c = U(null), [T, N] = q(!1), p = o ? E : T, P = (e) => {
30
- o ? o(e) : N(e);
31
- }, S = z(
32
- (e, a) => ae(e, a, n, r),
33
- [n, r]
34
- ), { placement: k, refs: m, floatingStyles: I, context: t } = B({
35
- open: p,
36
- onOpenChange: P,
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: y,
38
+ strategy: x,
39
39
  middleware: [
40
40
  J(({ rects: e, placement: a }) => ({
41
- mainAxis: A + u,
42
- alignmentAxis: S(e, a)
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: c
49
+ element: p
50
50
  })
51
51
  ],
52
- whileElementsMounted: V
53
- }), D = X(t), G = Y(t), H = Z(t), { getReferenceProps: M, getFloatingProps: O } = $([D, G, H]), { isMounted: j, styles: C } = ee(t, {
54
- duration: R,
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
- }), L = () => {
57
- const e = /* @__PURE__ */ s(te, { context: t, modal: !1, disabled: w, children: /* @__PURE__ */ f(
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", h),
61
- "data-automation-id": x,
62
- ref: m.setFloating,
60
+ className: l("popover", R),
61
+ "data-automation-id": T,
62
+ ref: f.setFloating,
63
63
  style: {
64
- ...I,
65
- ...C,
66
- pointerEvents: p ? "auto" : "none"
64
+ ...k,
65
+ ...j,
66
+ pointerEvents: m ? "auto" : "none"
67
67
  },
68
- ...O(),
68
+ ...L(),
69
+ ...c && { [pe]: "" },
69
70
  children: [
70
- /* @__PURE__ */ s(
71
- se,
71
+ /* @__PURE__ */ n(
72
+ ne,
72
73
  {
73
- ref: c,
74
+ ref: p,
74
75
  context: t,
75
76
  width: re,
76
- height: u,
77
- fill: F,
78
- staticOffset: ce.includes(k) ? null : n
77
+ height: g,
78
+ fill: h,
79
+ staticOffset: ce.includes(S) ? null : s
79
80
  }
80
81
  ),
81
- i && /* @__PURE__ */ s("div", { className: l("title"), children: i }),
82
- d
82
+ i && /* @__PURE__ */ n("div", { className: l("title"), children: i }),
83
+ u
83
84
  ]
84
85
  }
85
86
  ) });
86
- return b ? /* @__PURE__ */ s(ne, { children: e }) : e;
87
+ return c ? /* @__PURE__ */ n(se, { children: e }) : e;
87
88
  };
88
- return /* @__PURE__ */ f(W, { children: [
89
- /* @__PURE__ */ s("div", { ref: m.setReference, ...M(), className: l("popover-wrapper"), children: g }),
90
- j && L()
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
- he as Popover
95
+ pe as POPOVER_PORTAL_ATTR,
96
+ Re as Popover
95
97
  };