@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.
@@ -15,6 +15,8 @@ interface TooltipProps {
15
15
  safeZone?: number;
16
16
  zIndex?: number;
17
17
  mainAxis?: boolean;
18
+ portalRoot?: Element;
19
+ isFloating?: boolean;
18
20
  }
19
21
  export declare const Tooltip: FC<TooltipProps>;
20
22
  export {};
@@ -1,16 +1,16 @@
1
- import { jsxs as A, Fragment as I, jsx as n } from "react/jsx-runtime";
2
- import * as U from "react-datepicker";
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 G } from "./fieldText-78c1be1a.js";
7
- import { a as P, S as H } from "./calendarArrow-3e1339ea.js";
8
- import { D as T } from "./dropdown-6edea86c.js";
9
- const pe = (t, s) => {
10
- $(t, s);
11
- }, V = (t, s = 20) => {
12
- const l = t + s;
13
- return new Array(l - t).fill(void 0).map((g, e) => t - e);
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: t = /* @__PURE__ */ new 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: o = !1,
33
+ prevMonthButtonDisabled: n = !1,
34
34
  nextMonthButtonDisabled: h = !1,
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
37
  yearsOptions: i = [],
38
- locale: j
38
+ locale: x
39
39
  }) => {
40
- const p = t.getFullYear(), C = t.getMonth(), f = E(() => {
41
- const r = Array(12).keys(), c = new Intl.DateTimeFormat(j, {
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(r, d).reduce((m, x, k) => m.concat({
45
- value: k,
46
- label: x
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 = (r) => {
52
- l(r);
53
- }, y = (r) => {
54
- s(r);
51
+ ), [i]), v = (t) => {
52
+ l(t);
53
+ }, y = (t) => {
54
+ s(t);
55
55
  };
56
- return /* @__PURE__ */ A(I, { children: [
57
- b && /* @__PURE__ */ n("div", { className: a(w), children: b }),
58
- /* @__PURE__ */ A("div", { className: a("header"), children: [
59
- /* @__PURE__ */ n(
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: o,
63
+ disabled: n,
64
64
  onClick: g,
65
- className: a("button-prev", { disabled: o }),
66
- children: /* @__PURE__ */ n(P, {})
65
+ className: a("button-prev", { disabled: n }),
66
+ children: /* @__PURE__ */ o(T, {})
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ A("div", { className: a("dropdowns-wrapper"), children: [
70
- /* @__PURE__ */ n(
71
- T,
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__ */ n(
82
- T,
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__ */ n(
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__ */ n(P, {})
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", oe = {
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
- }, ne = U.default, _ = R.bind(oe), te = "en", L = "MM-dd-yyyy", me = ({
115
- onChange: t = () => {
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: o = void 0,
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: j = "",
128
+ popperClassName: x = "",
129
129
  calendarClassName: p = "",
130
130
  fixedHeight: C = !1,
131
- language: f = te,
131
+ language: f = oe,
132
132
  yearsOptions: N = [],
133
- placeholder: v = L.toUpperCase(),
134
- dateFormat: y = L,
135
- selects: r = "start",
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), S = o == null ? void 0 : o.toDateString(), m = e == null ? void 0 : e.toDateString(), x = e && o && e > o, k = (u) => {
139
- const F = u.toDateString(), Y = F === S, M = x && F === m, D = o && e && u > o && u < e;
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": D && !M,
143
- "end-date": M && x,
142
+ "selected-range": I && !M,
143
+ "end-date": M && j,
144
144
  disabled: s
145
145
  });
146
146
  };
147
- return /* @__PURE__ */ n(
148
- ne,
147
+ return /* @__PURE__ */ o(
148
+ $,
149
149
  {
150
- customInput: /* @__PURE__ */ n(
151
- G,
150
+ customInput: /* @__PURE__ */ o(
151
+ D,
152
152
  {
153
153
  className: _("input"),
154
154
  defaultWidth: !1,
155
- endIcon: /* @__PURE__ */ n(H, {}),
155
+ endIcon: /* @__PURE__ */ o(G, {}),
156
156
  ref: d
157
157
  }
158
158
  ),
159
159
  placeholderText: v,
160
160
  selected: c,
161
- startDate: o,
161
+ startDate: n,
162
162
  endDate: e,
163
- minDate: r === "end" ? o : void 0,
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: k,
169
+ dayClassName: A,
170
170
  calendarClassName: _(p, "calendar"),
171
- renderCustomHeader: (u) => /* @__PURE__ */ n(
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: t,
181
+ onChange: r,
182
182
  onBlur: l,
183
183
  onFocus: g,
184
184
  customTimeInput: w,
185
185
  showTimeInput: !!w,
186
- popperClassName: _(j, "popper"),
186
+ popperClassName: _(x, "popper"),
187
187
  dateFormat: y,
188
- selectsStart: r === "start",
189
- selectsEnd: r === "end",
188
+ selectsStart: t === "start",
189
+ selectsEnd: t === "end",
190
190
  className: _("datepicker")
191
191
  }
192
192
  );
@@ -1,7 +1,7 @@
1
- import { D as t } from "./datePicker-e7db2778.js";
2
- import { r as n } from "./datePicker-e7db2778.js";
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
- n as registerDatePickerLocale
26
+ q as registerDatePickerLocale
26
27
  };
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { B as l } from "./button-33c88abf.js";
2
- import { B as S } from "./baseIconButton-251479f7.js";
3
- import { C } from "./checkbox-9a6c7ce1.js";
4
- import { S as b } from "./systemMessage-1ced6079.js";
5
- import { F as B } from "./fieldText-78c1be1a.js";
6
- import { T as P } from "./themeProvider-46c2be7b.js";
7
- import { Modal as g } from "./modal.js";
8
- import { D as v } from "./dropdown-6edea86c.js";
9
- import { T as M } from "./toggle-1a3aacb5.js";
10
- import { F as A } from "./fieldNumber-d81e551e.js";
11
- import { B as L } from "./bubblesLoader-a7e709d4.js";
12
- import { S as O } from "./spinLoader-c4a53718.js";
13
- import { F as H } from "./fieldTextFlex-314741ad.js";
14
- import { R as U } from "./radio-bccc84f2.js";
15
- import { Tooltip as q } from "./tooltip.js";
16
- import { Popover as J } from "./popover.js";
17
- import { P as Q } from "./pagination-066b1b2b.js";
18
- import { T as W } from "./table-32fc8c70.js";
19
- import { D as Y } from "./datePicker-e7db2778.js";
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 _ } from "./systemAlert.js";
22
- import { S as oo, a as ro } from "./arrowUp-4a5caee7.js";
23
- import { BreadcrumbsTreeIcon as to, ChevronDownDropdownIcon as ao, ChevronRightBreadcrumbsIcon as no, CopyIcon as po, DeleteIcon as mo, EditIcon as so, ExportIcon as co, ExternalLinkIcon as xo, FilterFilledIcon as Io, FilterOutlineIcon as io, FlagIcon as fo, HideIcon as lo, MaximizeIcon as So, MeatballMenuIcon as uo, SearchIcon as Co, SortIcon as Fo } from "./icons.js";
24
- import { a as To, S as Bo } from "./calendarArrow-3e1339ea.js";
25
- import { S as Po, a as wo, b as go } from "./openEye-7b9cf080.js";
26
- import { S as vo } from "./close-4b33d7c1.js";
27
- import { S as Mo } from "./dropdown-0260bb66.js";
28
- import { S as Ao, a as ko, b as Lo } from "./success-dc1914aa.js";
29
- import { S as Oo, a as zo } from "./plus-0929dda4.js";
30
- import { S as No, a as Uo } from "./prevPage-87faf576.js";
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
- oo as ArrowDownIcon,
44
- ro as ArrowUpIcon,
45
- S as BaseIconButton,
46
- to as BreadcrumbsTreeIcon,
47
- L as BubblesLoader,
48
- l as Button,
49
- To as CalendarArrowIcon,
50
- Bo as CalendarIcon,
51
- C as Checkbox,
52
- ao as ChevronDownDropdownIcon,
53
- no as ChevronRightBreadcrumbsIcon,
54
- Po as ClearIcon,
55
- wo as CloseEyeIcon,
56
- vo as CloseIcon,
57
- po as CopyIcon,
58
- Y as DatePicker,
59
- mo as DeleteIcon,
60
- v as Dropdown,
61
- Mo as DropdownIcon,
62
- so as EditIcon,
63
- Ao as ErrorIcon,
64
- co as ExportIcon,
65
- xo as ExternalLinkIcon,
66
- A as FieldNumber,
67
- B as FieldText,
68
- H as FieldTextFlex,
69
- Io as FilterFilledIcon,
70
- io as FilterOutlineIcon,
71
- fo as FlagIcon,
72
- lo as HideIcon,
73
- ko as InfoIcon,
74
- So as MaximizeIcon,
75
- uo as MeatballMenuIcon,
76
- Oo as MinusIcon,
77
- g as Modal,
78
- go as OpenEyeIcon,
79
- Q as Pagination,
80
- zo as PlusIcon,
81
- J as Popover,
82
- No as PrevChapterIcon,
83
- Uo as PrevPageIcon,
84
- U as Radio,
85
- Co as SearchIcon,
86
- Fo as SortIcon,
87
- O as SpinLoader,
88
- Lo as SuccessIcon,
89
- _ as SystemAlert,
90
- b as SystemMessage,
91
- W as Table,
92
- P as ThemeProvider,
93
- M as Toggle,
94
- q as Tooltip
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
  };
@@ -12,6 +12,7 @@ import "./maxValueDisplay-9be01a75.js";
12
12
  import "./baseIconButton-251479f7.js";
13
13
  import "./prevPage-87faf576.js";
14
14
  import "./tooltip.js";
15
+ import "react-dom";
15
16
  export {
16
17
  t as Pagination,
17
18
  t as default
package/dist/tooltip.js CHANGED
@@ -1,96 +1,99 @@
1
- import { jsxs as c, Fragment as L, jsx as o } from "react/jsx-runtime";
2
- import { useState as M, useRef as a } from "react";
3
- import { c as O } from "./bind-06a7ff84.js";
4
- import { useFloating as R, offset as v, flip as D, arrow as H, autoUpdate as G, FloatingArrow as j } from "@floating-ui/react";
5
- const k = {
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
- }, p = O.bind(k), z = 300, P = 100, $ = 16, d = 8, U = ["top", "right", "bottom", "left"], C = ({
9
- content: m,
10
- wrapperClassName: f,
11
- contentClassName: u,
12
- dynamicWidth: h,
13
- width: w,
14
- minWidth: x = 120,
15
- safeZone: T = 4,
16
- zIndex: _ = 9,
17
- placement: E = "bottom",
18
- arrowColor: g = "rgba(34, 34, 34, 0.91)",
19
- dataAutomationId: A,
20
- mainAxis: b = !0,
21
- children: I
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 [n, s] = M(!1), i = a(null), t = a(), { refs: l, floatingStyles: N, context: S } = R({
24
- open: n,
25
- placement: E,
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
- v({
28
- mainAxis: T + d
30
+ P({
31
+ mainAxis: g + f
29
32
  }),
30
- D({
31
- mainAxis: b,
33
+ W && j({
34
+ mainAxis: N,
32
35
  fallbackAxisSideDirection: "start",
33
- fallbackPlacements: U
36
+ fallbackPlacements: q
34
37
  }),
35
- H({
36
- element: i
38
+ k({
39
+ element: r
37
40
  })
38
41
  ],
39
- whileElementsMounted: G
40
- }), e = h ? null : { width: `${w}px` }, W = document.documentElement.clientWidth, y = e || W - P, r = () => {
41
- t.current && clearTimeout(t.current), s(!1);
42
- }, F = () => {
43
- t.current = setTimeout(() => s(!0), z);
44
- };
45
- return /* @__PURE__ */ c(L, { children: [
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: p("tooltip-wrapper", f),
51
- onMouseDown: r,
52
- onMouseEnter: F,
53
- onMouseLeave: r,
54
- children: I
87
+ className: d("tooltip-wrapper", h),
88
+ onMouseDown: c,
89
+ onMouseEnter: O,
90
+ onMouseLeave: c,
91
+ children: S
55
92
  }
56
93
  ),
57
- n && /* @__PURE__ */ c(
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
- C as Tooltip
98
+ X as Tooltip
96
99
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.53",
3
+ "version": "0.0.1-alpha.55",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {