@reportportal/ui-kit 0.0.1-alpha.54 → 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 {};
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { B as d } from "./button-33c88abf.js";
2
- import { B as u } from "./baseIconButton-251479f7.js";
3
- import { C as F } from "./checkbox-9a6c7ce1.js";
4
- import { S as T } from "./systemMessage-1ced6079.js";
5
- import { F as D } from "./fieldText-78c1be1a.js";
6
- import { T as w } from "./themeProvider-46c2be7b.js";
7
- import { Modal as h } from "./modal.js";
8
- import { D as E } from "./dropdown-6edea86c.js";
9
- import { T as y } from "./toggle-1a3aacb5.js";
10
- import { F as k } from "./fieldNumber-d81e551e.js";
11
- import { B as R } from "./bubblesLoader-a7e709d4.js";
12
- import { S as z } from "./spinLoader-c4a53718.js";
13
- import { F as N } from "./fieldTextFlex-314741ad.js";
14
- import { R as j } from "./radio-bccc84f2.js";
15
- import { Tooltip as G } from "./tooltip.js";
16
- import { Popover as K } from "./popover.js";
17
- import { P as V } from "./pagination-066b1b2b.js";
18
- import { T as X } from "./table-32fc8c70.js";
19
- import { D as Z } from "./datePicker-a333d78b.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 ro, a as eo } from "./arrowUp-4a5caee7.js";
23
- import { BreadcrumbsTreeIcon as ao, ChevronDownDropdownIcon as no, ChevronRightBreadcrumbsIcon as po, CopyIcon as mo, DeleteIcon as so, EditIcon as co, ExportIcon as xo, ExternalLinkIcon as io, FilterFilledIcon as Io, FilterOutlineIcon as fo, FlagIcon as lo, HideIcon as So, MaximizeIcon as uo, MeatballMenuIcon as Co, SearchIcon as Fo, SortIcon as bo } from "./icons.js";
24
- import { a as Bo, S as Do } from "./calendarArrow-3e1339ea.js";
25
- import { S as wo, a as go, b as ho } from "./openEye-7b9cf080.js";
26
- import { S as Eo } from "./close-4b33d7c1.js";
27
- import { S as yo } from "./dropdown-0260bb66.js";
28
- import { S as ko, a as Lo, b as Ro } from "./success-dc1914aa.js";
29
- import { S as zo, a as Ho } from "./plus-0929dda4.js";
30
- import { S as Uo, a as jo } 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,59 +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";
42
43
  import "react-datepicker/dist/es/index.js";
43
44
  export {
44
- ro as ArrowDownIcon,
45
- eo as ArrowUpIcon,
46
- u as BaseIconButton,
47
- ao as BreadcrumbsTreeIcon,
48
- R as BubblesLoader,
49
- d as Button,
50
- Bo as CalendarArrowIcon,
51
- Do as CalendarIcon,
52
- F as Checkbox,
53
- no as ChevronDownDropdownIcon,
54
- po as ChevronRightBreadcrumbsIcon,
55
- wo as ClearIcon,
56
- go as CloseEyeIcon,
57
- Eo as CloseIcon,
58
- mo as CopyIcon,
59
- Z as DatePicker,
60
- so as DeleteIcon,
61
- E as Dropdown,
62
- yo as DropdownIcon,
63
- co as EditIcon,
64
- ko as ErrorIcon,
65
- xo as ExportIcon,
66
- io as ExternalLinkIcon,
67
- k as FieldNumber,
68
- D as FieldText,
69
- N as FieldTextFlex,
70
- Io as FilterFilledIcon,
71
- fo as FilterOutlineIcon,
72
- lo as FlagIcon,
73
- So as HideIcon,
74
- Lo as InfoIcon,
75
- uo as MaximizeIcon,
76
- Co as MeatballMenuIcon,
77
- zo as MinusIcon,
78
- h as Modal,
79
- ho as OpenEyeIcon,
80
- V as Pagination,
81
- Ho as PlusIcon,
82
- K as Popover,
83
- Uo as PrevChapterIcon,
84
- jo as PrevPageIcon,
85
- j as Radio,
86
- Fo as SearchIcon,
87
- bo as SortIcon,
88
- z as SpinLoader,
89
- Ro as SuccessIcon,
90
- $ as SystemAlert,
91
- T as SystemMessage,
92
- X as Table,
93
- w as ThemeProvider,
94
- y as Toggle,
95
- G 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
96
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.54",
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": {