@hortiview/shared-components 0.0.11176 → 0.0.11587
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/README.md +58 -8
- package/dist/BigLoadingSpinner-iegTbDcD.js +16 -0
- package/dist/GenericCard-6J558OgP.js +350 -0
- package/dist/ListAreaService-DOwtdRa4.js +109 -0
- package/dist/_MapCache-B75yWNNd.js +376 -0
- package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
- package/dist/_getTag-BCf9b56Z.js +81 -0
- package/dist/animationframe-EMBh6XeO.js +54 -0
- package/dist/assets/HashTabView.css +1 -1
- package/dist/assets/Select.css +1 -0
- package/dist/component-DsB0poTj.js +571 -0
- package/dist/component-neHBNHRu.js +114 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
- package/dist/components/AlertBanner/AlertBanner.js +15 -15
- package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
- package/dist/components/BaseView/BaseView.d.ts +1 -1
- package/dist/components/BaseView/BaseView.js +27 -28
- package/dist/components/BaseView/BaseView.test.js +25 -25
- package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
- package/dist/components/BasicHeading/BasicHeading.js +17 -17
- package/dist/components/BasicHeading/BasicHeading.test.js +10 -10
- package/dist/components/BlockView/BlockView.d.ts +1 -0
- package/dist/components/BlockView/BlockView.js +24 -25
- package/dist/components/BlockView/BlockView.test.js +2 -2
- package/dist/components/ChipCard/ChipCard.js +1765 -15
- package/dist/components/ChipCard/ChipCard.test.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
- package/dist/components/ContextMenu/ContextMenu.js +28 -28
- package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
- package/dist/components/DeleteModal/DeleteModal.d.ts +0 -1
- package/dist/components/DeleteModal/DeleteModal.js +53 -51
- package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
- package/dist/components/Disclaimer/Disclaimer.js +12 -11
- package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
- package/dist/components/EmptyView/EmptyView.d.ts +1 -0
- package/dist/components/EmptyView/EmptyView.js +258 -19
- package/dist/components/EmptyView/EmptyView.test.js +2 -2
- package/dist/components/Filter/Filter.d.ts +1 -0
- package/dist/components/Filter/Filter.js +81 -77
- package/dist/components/Filter/Filter.test.js +2 -2
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5975 -6389
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
- package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +13 -14
- package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
- package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
- package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
- package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
- package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
- package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
- package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
- package/dist/components/FormComponents/FormText/FormText.js +28 -28
- package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
- package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
- package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
- package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
- package/dist/components/GenericTable/GenericTable.d.ts +1 -0
- package/dist/components/GenericTable/GenericTable.js +10487 -76
- package/dist/components/GenericTable/GenericTable.test.js +2 -2
- package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
- package/dist/components/GenericTable/GenericTableService.js +41 -41
- package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
- package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
- package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
- package/dist/components/HashTabView/HashTabView.d.ts +6 -1
- package/dist/components/HashTabView/HashTabView.js +1805 -72
- package/dist/components/HashTabView/HashTabView.test.js +2 -2
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
- package/dist/components/HeaderFilter/HeaderFilter.js +14 -14
- package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
- package/dist/components/HealthCheckFailed/HealthCheckFailed.js +19 -17
- package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
- package/dist/components/Iconify/Iconify.d.ts +2 -3
- package/dist/components/Iconify/Iconify.js +44 -45
- package/dist/components/Iconify/Iconify.test.js +2 -2
- package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
- package/dist/components/InfoGroup/InfoGroup.js +30 -29
- package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
- package/dist/components/ListArea/ListArea.d.ts +1 -1
- package/dist/components/ListArea/ListArea.js +29 -27
- package/dist/components/ListArea/ListArea.test.js +5 -5
- package/dist/components/ListArea/ListAreaService.d.ts +9 -8
- package/dist/components/ListArea/ListAreaService.js +7 -5
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -38
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
- package/dist/components/Modal/Modal.d.ts +2 -1
- package/dist/components/Modal/Modal.js +926 -10
- package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
- package/dist/components/ModulePadding/ModulePadding.js +28 -0
- package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
- package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.js +13 -14
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
- package/dist/components/Scrollbar/Scrollbar.js +5 -6
- package/dist/components/Scrollbar/scrollbar.test.js +2 -2
- package/dist/components/SearchBar/SearchBar.js +11 -11
- package/dist/components/SearchBar/SearchBar.test.js +2 -2
- package/dist/components/Select/Select.d.ts +14 -0
- package/dist/components/Select/Select.js +34 -0
- package/dist/components/Select/Select.test.d.ts +1 -0
- package/dist/components/Select/Select.test.js +28 -0
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
- package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
- package/dist/floating-ui.dom-CeD8zknG.js +978 -0
- package/dist/get-7ACccM2X.js +114 -0
- package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
- package/dist/hooks/useBreakpoints.test.js +2 -2
- package/dist/hooks/useHelperText.d.ts +1 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-DLWZln-X.js +1763 -0
- package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
- package/dist/index.es-0lQcz8m1.js +444 -0
- package/dist/index.es-25EARqhH.js +2027 -0
- package/dist/index.es-3043KTnb.js +1066 -0
- package/dist/index.es-41ztjcFT.js +724 -0
- package/dist/index.es-6TJ1S8Jr.js +954 -0
- package/dist/index.es-8GOVkuo-.js +374 -0
- package/dist/index.es-B-_jXDuz.js +216 -0
- package/dist/index.es-BWgXLqXn.js +102 -0
- package/dist/index.es-BtjV0oNv.js +360 -0
- package/dist/index.es-BvrQnJ3j.js +509 -0
- package/dist/index.es-CF_xy2ns.js +674 -0
- package/dist/index.es-CL_Heu1n.js +54 -0
- package/dist/index.es-CiqbARoC.js +306 -0
- package/dist/index.es-D-CKRzIB.js +63 -0
- package/dist/index.es-D6N-XWHe.js +56 -0
- package/dist/index.es-DKDgy7Kt.js +45 -0
- package/dist/index.es-DntoATwO.js +159 -0
- package/dist/index.es-UHKFl8Da.js +7075 -0
- package/dist/index.es-d5xhUpJZ.js +3242 -0
- package/dist/index.es-da0cf7oE.js +569 -0
- package/dist/index.es-h2lMdt7G.js +107 -0
- package/dist/index.es-zr101OF5.js +4853 -0
- package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
- package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/isEmpty-B4GG2s-V.js +31 -0
- package/dist/isPlainObject-C273y67K.js +40 -0
- package/dist/isString-BW9UHONv.js +21 -0
- package/dist/keyboard-Bpt0aBqQ.js +107 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +58 -54
- package/dist/orderBy-Bd48bw88.js +316 -0
- package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
- package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
- package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
- package/dist/services/BlockService.d.ts +1 -0
- package/dist/services/NumberService.d.ts +1 -0
- package/dist/services/UtilService.d.ts +1 -0
- package/dist/services/UtilService.js +2 -2
- package/dist/services/services.test.js +1 -1
- package/dist/toString-CrgB_7Pe.js +54 -0
- package/dist/tslib.es6-BDCynO9F.js +162 -0
- package/dist/types/GenericTable.d.ts +2 -2
- package/dist/types/HashTab.d.ts +0 -1
- package/dist/types/ListElement.d.ts +0 -1
- package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
- package/dist/uniqueId-NU3-C36A.js +18 -0
- package/dist/util-DA21pZXj.js +78 -0
- package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
- package/package.json +15 -15
- package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
- package/dist/GenericCard-B8x1DMa8.js +0 -81
- package/dist/ListAreaService-CRX4eEUJ.js +0 -108
- package/dist/_Map-Dtlps7IZ.js +0 -113
- package/dist/_overArg-_0pUmCsX.js +0 -14
- package/dist/get-P-5PYZOE.js +0 -426
- package/dist/isEmpty-BimaZd5G.js +0 -225
- package/dist/isString-BOHPtrlm.js +0 -44
- package/dist/orderBy-BVQIswlJ.js +0 -765
- package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import ae, { createContext as bt, useState as g, useRef as z, useEffect as p, useContext as gt, useLayoutEffect as St, useCallback as Et, useImperativeHandle as At } from "react";
|
|
2
|
+
import { a as kt, c as it, o as Ot, f as xt, s as Tt, b as Lt } from "./floating-ui.dom-CeD8zknG.js";
|
|
3
|
+
import { g as Ct } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
4
|
+
var et = { exports: {} };
|
|
5
|
+
/*!
|
|
6
|
+
Copyright (c) 2018 Jed Watson.
|
|
7
|
+
Licensed under the MIT License (MIT), see
|
|
8
|
+
http://jedwatson.github.io/classnames
|
|
9
|
+
*/
|
|
10
|
+
var ct;
|
|
11
|
+
function Rt() {
|
|
12
|
+
return ct || (ct = 1, function(t) {
|
|
13
|
+
(function() {
|
|
14
|
+
var l = {}.hasOwnProperty;
|
|
15
|
+
function u() {
|
|
16
|
+
for (var s = "", f = 0; f < arguments.length; f++) {
|
|
17
|
+
var d = arguments[f];
|
|
18
|
+
d && (s = m(s, i(d)));
|
|
19
|
+
}
|
|
20
|
+
return s;
|
|
21
|
+
}
|
|
22
|
+
function i(s) {
|
|
23
|
+
if (typeof s == "string" || typeof s == "number")
|
|
24
|
+
return s;
|
|
25
|
+
if (typeof s != "object")
|
|
26
|
+
return "";
|
|
27
|
+
if (Array.isArray(s))
|
|
28
|
+
return u.apply(null, s);
|
|
29
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
30
|
+
return s.toString();
|
|
31
|
+
var f = "";
|
|
32
|
+
for (var d in s)
|
|
33
|
+
l.call(s, d) && s[d] && (f = m(f, d));
|
|
34
|
+
return f;
|
|
35
|
+
}
|
|
36
|
+
function m(s, f) {
|
|
37
|
+
return f ? s ? s + " " + f : s + f : s;
|
|
38
|
+
}
|
|
39
|
+
t.exports ? (u.default = u, t.exports = u) : window.classNames = u;
|
|
40
|
+
})();
|
|
41
|
+
}(et)), et.exports;
|
|
42
|
+
}
|
|
43
|
+
var Nt = Rt();
|
|
44
|
+
const ot = /* @__PURE__ */ Ct(Nt);
|
|
45
|
+
/*
|
|
46
|
+
* React Tooltip
|
|
47
|
+
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
48
|
+
* @copyright ReactTooltip Team
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/
|
|
51
|
+
const jt = "react-tooltip-core-styles", $t = "react-tooltip-base-styles", ut = { core: !1, base: !1 };
|
|
52
|
+
function dt({ css: t, id: l = $t, type: u = "base", ref: i }) {
|
|
53
|
+
var m, s;
|
|
54
|
+
if (!t || typeof document > "u" || ut[u] || u === "core" && typeof process < "u" && (!((m = process == null ? void 0 : process.env) === null || m === void 0) && m.REACT_TOOLTIP_DISABLE_CORE_STYLES) || u !== "base" && typeof process < "u" && (!((s = process == null ? void 0 : process.env) === null || s === void 0) && s.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
|
|
55
|
+
u === "core" && (l = jt), i || (i = {});
|
|
56
|
+
const { insertAt: f } = i;
|
|
57
|
+
if (document.getElementById(l)) return;
|
|
58
|
+
const d = document.head || document.getElementsByTagName("head")[0], h = document.createElement("style");
|
|
59
|
+
h.id = l, h.type = "text/css", f === "top" && d.firstChild ? d.insertBefore(h, d.firstChild) : d.appendChild(h), h.styleSheet ? h.styleSheet.cssText = t : h.appendChild(document.createTextNode(t)), ut[u] = !0;
|
|
60
|
+
}
|
|
61
|
+
const pt = async ({ elementReference: t = null, tooltipReference: l = null, tooltipArrowReference: u = null, place: i = "top", offset: m = 10, strategy: s = "absolute", middlewares: f = [Ot(Number(m)), xt({ fallbackAxisSideDirection: "start" }), Tt({ padding: 5 })], border: d }) => {
|
|
62
|
+
if (!t) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: i };
|
|
63
|
+
if (l === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: i };
|
|
64
|
+
const h = f;
|
|
65
|
+
return u ? (h.push(Lt({ element: u, padding: 5 })), it(t, l, { placement: i, strategy: s, middleware: h }).then(({ x: K, y: M, placement: T, middlewareData: ie }) => {
|
|
66
|
+
var X, j;
|
|
67
|
+
const $ = { left: `${K}px`, top: `${M}px`, border: d }, { x: Q, y: W } = (X = ie.arrow) !== null && X !== void 0 ? X : { x: 0, y: 0 }, U = (j = { top: "bottom", right: "left", bottom: "top", left: "right" }[T.split("-")[0]]) !== null && j !== void 0 ? j : "bottom", I = d && { borderBottom: d, borderRight: d };
|
|
68
|
+
let F = 0;
|
|
69
|
+
if (d) {
|
|
70
|
+
const ee = `${d}`.match(/(\d+)px/);
|
|
71
|
+
F = ee?.[1] ? Number(ee[1]) : 1;
|
|
72
|
+
}
|
|
73
|
+
return { tooltipStyles: $, tooltipArrowStyles: { left: Q != null ? `${Q}px` : "", top: W != null ? `${W}px` : "", right: "", bottom: "", ...I, [U]: `-${4 + F}px` }, place: T };
|
|
74
|
+
})) : it(t, l, { placement: "bottom", strategy: s, middleware: h }).then(({ x: K, y: M, placement: T }) => ({ tooltipStyles: { left: `${K}px`, top: `${M}px` }, tooltipArrowStyles: {}, place: T }));
|
|
75
|
+
}, ft = (t, l) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, l), vt = (t, l, u) => {
|
|
76
|
+
let i = null;
|
|
77
|
+
const m = function(...s) {
|
|
78
|
+
const f = () => {
|
|
79
|
+
i = null;
|
|
80
|
+
};
|
|
81
|
+
!i && (t.apply(this, s), i = setTimeout(f, l));
|
|
82
|
+
};
|
|
83
|
+
return m.cancel = () => {
|
|
84
|
+
i && (clearTimeout(i), i = null);
|
|
85
|
+
}, m;
|
|
86
|
+
}, mt = (t) => t !== null && !Array.isArray(t) && typeof t == "object", rt = (t, l) => {
|
|
87
|
+
if (t === l) return !0;
|
|
88
|
+
if (Array.isArray(t) && Array.isArray(l)) return t.length === l.length && t.every((m, s) => rt(m, l[s]));
|
|
89
|
+
if (Array.isArray(t) !== Array.isArray(l)) return !1;
|
|
90
|
+
if (!mt(t) || !mt(l)) return t === l;
|
|
91
|
+
const u = Object.keys(t), i = Object.keys(l);
|
|
92
|
+
return u.length === i.length && u.every((m) => rt(t[m], l[m]));
|
|
93
|
+
}, It = (t) => {
|
|
94
|
+
if (!(t instanceof HTMLElement || t instanceof SVGElement)) return !1;
|
|
95
|
+
const l = getComputedStyle(t);
|
|
96
|
+
return ["overflow", "overflow-x", "overflow-y"].some((u) => {
|
|
97
|
+
const i = l.getPropertyValue(u);
|
|
98
|
+
return i === "auto" || i === "scroll";
|
|
99
|
+
});
|
|
100
|
+
}, yt = (t) => {
|
|
101
|
+
if (!t) return null;
|
|
102
|
+
let l = t.parentElement;
|
|
103
|
+
for (; l; ) {
|
|
104
|
+
if (It(l)) return l;
|
|
105
|
+
l = l.parentElement;
|
|
106
|
+
}
|
|
107
|
+
return document.scrollingElement || document.documentElement;
|
|
108
|
+
}, Bt = typeof window < "u" ? St : p, N = (t) => {
|
|
109
|
+
t.current && (clearTimeout(t.current), t.current = null);
|
|
110
|
+
}, Dt = "DEFAULT_TOOLTIP_ID", qt = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
|
|
111
|
+
}, detach: () => {
|
|
112
|
+
}, setActiveAnchor: () => {
|
|
113
|
+
} }, zt = bt({ getTooltipData: () => qt });
|
|
114
|
+
function ht(t = Dt) {
|
|
115
|
+
return gt(zt).getTooltipData(t);
|
|
116
|
+
}
|
|
117
|
+
var ge = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, tt = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
118
|
+
const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m = "dark", anchorId: s, anchorSelect: f, place: d = "top", offset: h = 10, events: K = ["hover"], openOnClick: M = !1, positionStrategy: T = "absolute", middlewares: ie, wrapper: X, delayShow: j = 0, delayHide: $ = 0, float: Q = !1, hidden: W = !1, noArrow: U = !1, clickable: I = !1, closeOnEsc: F = !1, closeOnScroll: ee = !1, closeOnResize: Je = !1, openEvents: L, closeEvents: ce, globalCloseEvents: Se, imperativeModeOnly: Qe, style: qe, position: ze, afterShow: Ke, afterHide: H, disableTooltip: ue, content: Ee, contentWrapperRef: te, isOpen: B, defaultIsOpen: de = !1, setIsOpen: oe, activeAnchor: _, setActiveAnchor: pe, border: Me, opacity: We, arrowColor: He, role: Ue = "tooltip" }) => {
|
|
119
|
+
var Ae;
|
|
120
|
+
const A = z(null), fe = z(null), D = z(null), Y = z(null), ke = z(null), [Z, Ye] = g({ tooltipStyles: {}, tooltipArrowStyles: {}, place: d }), [O, Pe] = g(!1), [re, le] = g(!1), [y, Oe] = g(null), xe = z(!1), Te = z(null), { anchorRefs: Le, setActiveAnchor: Ve } = ht(l), ve = z(!1), [G, Ce] = g([]), ne = z(!1), me = M || K.includes("click"), Re = me || L?.click || L?.dblclick || L?.mousedown, ye = L ? { ...L } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
121
|
+
!L && me && Object.assign(ye, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
122
|
+
const Ne = ce ? { ...ce } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
123
|
+
!ce && me && Object.assign(Ne, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
124
|
+
const q = Se ? { ...Se } : { escape: F || !1, scroll: ee || !1, resize: Je || !1, clickOutsideAnchor: Re || !1 };
|
|
125
|
+
Qe && (Object.assign(ye, { mouseenter: !1, focus: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(Ne, { mouseleave: !1, blur: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(q, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), Bt(() => (ne.current = !0, () => {
|
|
126
|
+
ne.current = !1;
|
|
127
|
+
}), []);
|
|
128
|
+
const w = (e) => {
|
|
129
|
+
ne.current && (e && le(!0), setTimeout(() => {
|
|
130
|
+
ne.current && (oe?.(e), B === void 0 && Pe(e));
|
|
131
|
+
}, 10));
|
|
132
|
+
};
|
|
133
|
+
p(() => {
|
|
134
|
+
if (B === void 0) return () => null;
|
|
135
|
+
B && le(!0);
|
|
136
|
+
const e = setTimeout(() => {
|
|
137
|
+
Pe(B);
|
|
138
|
+
}, 10);
|
|
139
|
+
return () => {
|
|
140
|
+
clearTimeout(e);
|
|
141
|
+
};
|
|
142
|
+
}, [B]), p(() => {
|
|
143
|
+
if (O !== xe.current) if (N(ke), xe.current = O, O) Ke?.();
|
|
144
|
+
else {
|
|
145
|
+
const e = ((r) => {
|
|
146
|
+
const n = r.match(/^([\d.]+)(ms|s)$/);
|
|
147
|
+
if (!n) return 0;
|
|
148
|
+
const [, b, E] = n;
|
|
149
|
+
return Number(b) * (E === "ms" ? 1 : 1e3);
|
|
150
|
+
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
151
|
+
ke.current = setTimeout(() => {
|
|
152
|
+
le(!1), Oe(null), H?.();
|
|
153
|
+
}, e + 25);
|
|
154
|
+
}
|
|
155
|
+
}, [O]);
|
|
156
|
+
const Xe = (e) => {
|
|
157
|
+
Ye((r) => rt(r, e) ? r : e);
|
|
158
|
+
}, je = (e = j) => {
|
|
159
|
+
N(D), re ? w(!0) : D.current = setTimeout(() => {
|
|
160
|
+
w(!0);
|
|
161
|
+
}, e);
|
|
162
|
+
}, he = (e = $) => {
|
|
163
|
+
N(Y), Y.current = setTimeout(() => {
|
|
164
|
+
ve.current || w(!1);
|
|
165
|
+
}, e);
|
|
166
|
+
}, $e = (e) => {
|
|
167
|
+
var r;
|
|
168
|
+
if (!e) return;
|
|
169
|
+
const n = (r = e.currentTarget) !== null && r !== void 0 ? r : e.target;
|
|
170
|
+
if (!n?.isConnected) return pe(null), void Ve({ current: null });
|
|
171
|
+
j ? je() : w(!0), pe(n), Ve({ current: n }), N(Y);
|
|
172
|
+
}, we = () => {
|
|
173
|
+
I ? he($ || 100) : $ ? he() : w(!1), N(D);
|
|
174
|
+
}, _e = ({ x: e, y: r }) => {
|
|
175
|
+
var n;
|
|
176
|
+
const b = { getBoundingClientRect: () => ({ x: e, y: r, width: 0, height: 0, top: r, left: e, right: e, bottom: r }) };
|
|
177
|
+
pt({ place: (n = y?.place) !== null && n !== void 0 ? n : d, offset: h, elementReference: b, tooltipReference: A.current, tooltipArrowReference: fe.current, strategy: T, middlewares: ie, border: Me }).then((E) => {
|
|
178
|
+
Xe(E);
|
|
179
|
+
});
|
|
180
|
+
}, be = (e) => {
|
|
181
|
+
if (!e) return;
|
|
182
|
+
const r = e, n = { x: r.clientX, y: r.clientY };
|
|
183
|
+
_e(n), Te.current = n;
|
|
184
|
+
}, Ie = (e) => {
|
|
185
|
+
var r;
|
|
186
|
+
if (!O) return;
|
|
187
|
+
const n = e.target;
|
|
188
|
+
n.isConnected && (!((r = A.current) === null || r === void 0) && r.contains(n) || [document.querySelector(`[id='${s}']`), ...G].some((b) => b?.contains(n)) || (w(!1), N(D)));
|
|
189
|
+
}, Fe = vt($e, 50), S = vt(we, 50), C = (e) => {
|
|
190
|
+
S.cancel(), Fe(e);
|
|
191
|
+
}, o = () => {
|
|
192
|
+
Fe.cancel(), S();
|
|
193
|
+
}, a = Et(() => {
|
|
194
|
+
var e, r;
|
|
195
|
+
const n = (e = y?.position) !== null && e !== void 0 ? e : ze;
|
|
196
|
+
n ? _e(n) : Q ? Te.current && _e(Te.current) : _?.isConnected && pt({ place: (r = y?.place) !== null && r !== void 0 ? r : d, offset: h, elementReference: _, tooltipReference: A.current, tooltipArrowReference: fe.current, strategy: T, middlewares: ie, border: Me }).then((b) => {
|
|
197
|
+
ne.current && Xe(b);
|
|
198
|
+
});
|
|
199
|
+
}, [O, _, Ee, qe, d, y?.place, h, T, ze, y?.position, Q]);
|
|
200
|
+
p(() => {
|
|
201
|
+
var e, r;
|
|
202
|
+
const n = new Set(Le);
|
|
203
|
+
G.forEach((c) => {
|
|
204
|
+
ue?.(c) || n.add({ current: c });
|
|
205
|
+
});
|
|
206
|
+
const b = document.querySelector(`[id='${s}']`);
|
|
207
|
+
b && !ue?.(b) && n.add({ current: b });
|
|
208
|
+
const E = () => {
|
|
209
|
+
w(!1);
|
|
210
|
+
}, P = yt(_), V = yt(A.current);
|
|
211
|
+
q.scroll && (window.addEventListener("scroll", E), P?.addEventListener("scroll", E), V?.addEventListener("scroll", E));
|
|
212
|
+
let k = null;
|
|
213
|
+
q.resize ? window.addEventListener("resize", E) : _ && A.current && (k = kt(_, A.current, a, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
|
|
214
|
+
const R = (c) => {
|
|
215
|
+
c.key === "Escape" && w(!1);
|
|
216
|
+
};
|
|
217
|
+
q.escape && window.addEventListener("keydown", R), q.clickOutsideAnchor && window.addEventListener("click", Ie);
|
|
218
|
+
const v = [], Be = (c) => {
|
|
219
|
+
O && c?.target === _ || $e(c);
|
|
220
|
+
}, wt = (c) => {
|
|
221
|
+
O && c?.target === _ && we();
|
|
222
|
+
}, lt = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], nt = ["click", "dblclick", "mousedown", "mouseup"];
|
|
223
|
+
Object.entries(ye).forEach(([c, J]) => {
|
|
224
|
+
J && (lt.includes(c) ? v.push({ event: c, listener: C }) : nt.includes(c) && v.push({ event: c, listener: Be }));
|
|
225
|
+
}), Object.entries(Ne).forEach(([c, J]) => {
|
|
226
|
+
J && (lt.includes(c) ? v.push({ event: c, listener: o }) : nt.includes(c) && v.push({ event: c, listener: wt }));
|
|
227
|
+
}), Q && v.push({ event: "pointermove", listener: be });
|
|
228
|
+
const st = () => {
|
|
229
|
+
ve.current = !0;
|
|
230
|
+
}, at = () => {
|
|
231
|
+
ve.current = !1, we();
|
|
232
|
+
};
|
|
233
|
+
return I && !Re && ((e = A.current) === null || e === void 0 || e.addEventListener("mouseenter", st), (r = A.current) === null || r === void 0 || r.addEventListener("mouseleave", at)), v.forEach(({ event: c, listener: J }) => {
|
|
234
|
+
n.forEach((Ze) => {
|
|
235
|
+
var De;
|
|
236
|
+
(De = Ze.current) === null || De === void 0 || De.addEventListener(c, J);
|
|
237
|
+
});
|
|
238
|
+
}), () => {
|
|
239
|
+
var c, J;
|
|
240
|
+
q.scroll && (window.removeEventListener("scroll", E), P?.removeEventListener("scroll", E), V?.removeEventListener("scroll", E)), q.resize ? window.removeEventListener("resize", E) : k?.(), q.clickOutsideAnchor && window.removeEventListener("click", Ie), q.escape && window.removeEventListener("keydown", R), I && !Re && ((c = A.current) === null || c === void 0 || c.removeEventListener("mouseenter", st), (J = A.current) === null || J === void 0 || J.removeEventListener("mouseleave", at)), v.forEach(({ event: Ze, listener: De }) => {
|
|
241
|
+
n.forEach((_t) => {
|
|
242
|
+
var Ge;
|
|
243
|
+
(Ge = _t.current) === null || Ge === void 0 || Ge.removeEventListener(Ze, De);
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
}, [_, a, re, Le, G, L, ce, Se, me, j, $]), p(() => {
|
|
248
|
+
var e, r;
|
|
249
|
+
let n = (r = (e = y?.anchorSelect) !== null && e !== void 0 ? e : f) !== null && r !== void 0 ? r : "";
|
|
250
|
+
!n && l && (n = `[data-tooltip-id='${l.replace(/'/g, "\\'")}']`);
|
|
251
|
+
const b = new MutationObserver((E) => {
|
|
252
|
+
const P = [], V = [];
|
|
253
|
+
E.forEach((k) => {
|
|
254
|
+
if (k.type === "attributes" && k.attributeName === "data-tooltip-id" && (k.target.getAttribute("data-tooltip-id") === l ? P.push(k.target) : k.oldValue === l && V.push(k.target)), k.type === "childList") {
|
|
255
|
+
if (_) {
|
|
256
|
+
const R = [...k.removedNodes].filter((v) => v.nodeType === 1);
|
|
257
|
+
if (n) try {
|
|
258
|
+
V.push(...R.filter((v) => v.matches(n))), V.push(...R.flatMap((v) => [...v.querySelectorAll(n)]));
|
|
259
|
+
} catch {
|
|
260
|
+
}
|
|
261
|
+
R.some((v) => {
|
|
262
|
+
var Be;
|
|
263
|
+
return !!(!((Be = v?.contains) === null || Be === void 0) && Be.call(v, _)) && (le(!1), w(!1), pe(null), N(D), N(Y), !0);
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
if (n) try {
|
|
267
|
+
const R = [...k.addedNodes].filter((v) => v.nodeType === 1);
|
|
268
|
+
P.push(...R.filter((v) => v.matches(n))), P.push(...R.flatMap((v) => [...v.querySelectorAll(n)]));
|
|
269
|
+
} catch {
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}), (P.length || V.length) && Ce((k) => [...k.filter((R) => !V.includes(R)), ...P]);
|
|
273
|
+
});
|
|
274
|
+
return b.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
275
|
+
b.disconnect();
|
|
276
|
+
};
|
|
277
|
+
}, [l, f, y?.anchorSelect, _]), p(() => {
|
|
278
|
+
a();
|
|
279
|
+
}, [a]), p(() => {
|
|
280
|
+
if (!te?.current) return () => null;
|
|
281
|
+
const e = new ResizeObserver(() => {
|
|
282
|
+
setTimeout(() => a());
|
|
283
|
+
});
|
|
284
|
+
return e.observe(te.current), () => {
|
|
285
|
+
e.disconnect();
|
|
286
|
+
};
|
|
287
|
+
}, [Ee, te?.current]), p(() => {
|
|
288
|
+
var e;
|
|
289
|
+
const r = document.querySelector(`[id='${s}']`), n = [...G, r];
|
|
290
|
+
_ && n.includes(_) || pe((e = G[0]) !== null && e !== void 0 ? e : r);
|
|
291
|
+
}, [s, G, _]), p(() => (de && w(!0), () => {
|
|
292
|
+
N(D), N(Y);
|
|
293
|
+
}), []), p(() => {
|
|
294
|
+
var e;
|
|
295
|
+
let r = (e = y?.anchorSelect) !== null && e !== void 0 ? e : f;
|
|
296
|
+
if (!r && l && (r = `[data-tooltip-id='${l.replace(/'/g, "\\'")}']`), r) try {
|
|
297
|
+
const n = Array.from(document.querySelectorAll(r));
|
|
298
|
+
Ce(n);
|
|
299
|
+
} catch {
|
|
300
|
+
Ce([]);
|
|
301
|
+
}
|
|
302
|
+
}, [l, f, y?.anchorSelect]), p(() => {
|
|
303
|
+
D.current && (N(D), je(j));
|
|
304
|
+
}, [j]);
|
|
305
|
+
const x = (Ae = y?.content) !== null && Ae !== void 0 ? Ae : Ee, se = O && Object.keys(Z.tooltipStyles).length > 0;
|
|
306
|
+
return At(t, () => ({ open: (e) => {
|
|
307
|
+
if (e?.anchorSelect) try {
|
|
308
|
+
document.querySelector(e.anchorSelect);
|
|
309
|
+
} catch {
|
|
310
|
+
return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`);
|
|
311
|
+
}
|
|
312
|
+
Oe(e ?? null), e?.delay ? je(e.delay) : w(!0);
|
|
313
|
+
}, close: (e) => {
|
|
314
|
+
e?.delay ? he(e.delay) : w(!1);
|
|
315
|
+
}, activeAnchor: _, place: Z.place, isOpen: !!(re && !W && x && se) })), re && !W && x ? ae.createElement(X, { id: l, role: Ue, className: ot("react-tooltip", ge.tooltip, tt.tooltip, tt[m], u, `react-tooltip__place-${Z.place}`, ge[se ? "show" : "closing"], se ? "react-tooltip__show" : "react-tooltip__closing", T === "fixed" && ge.fixed, I && ge.clickable), onTransitionEnd: (e) => {
|
|
316
|
+
N(ke), O || e.propertyName !== "opacity" || (le(!1), Oe(null), H?.());
|
|
317
|
+
}, style: { ...qe, ...Z.tooltipStyles, opacity: We !== void 0 && se ? We : void 0 }, ref: A }, x, ae.createElement(X, { className: ot("react-tooltip-arrow", ge.arrow, tt.arrow, i, U && ge.noArrow), style: { ...Z.tooltipArrowStyles, background: He ? `linear-gradient(to right bottom, transparent 50%, ${He} 50%)` : void 0 }, ref: fe })) : null;
|
|
318
|
+
}, Mt = ({ content: t }) => ae.createElement("span", { dangerouslySetInnerHTML: { __html: t } }), Vt = ae.forwardRef(({ id: t, anchorId: l, anchorSelect: u, content: i, html: m, render: s, className: f, classNameArrow: d, variant: h = "dark", place: K = "top", offset: M = 10, wrapper: T = "div", children: ie = null, events: X = ["hover"], openOnClick: j = !1, positionStrategy: $ = "absolute", middlewares: Q, delayShow: W = 0, delayHide: U = 0, float: I = !1, hidden: F = !1, noArrow: ee = !1, clickable: Je = !1, closeOnEsc: L = !1, closeOnScroll: ce = !1, closeOnResize: Se = !1, openEvents: Qe, closeEvents: qe, globalCloseEvents: ze, imperativeModeOnly: Ke = !1, style: H, position: ue, isOpen: Ee, defaultIsOpen: te = !1, disableStyleInjection: B = !1, border: de, opacity: oe, arrowColor: _, setIsOpen: pe, afterShow: Me, afterHide: We, disableTooltip: He, role: Ue = "tooltip" }, Ae) => {
|
|
319
|
+
const [A, fe] = g(i), [D, Y] = g(m), [ke, Z] = g(K), [Ye, O] = g(h), [Pe, re] = g(M), [le, y] = g(W), [Oe, xe] = g(U), [Te, Le] = g(I), [Ve, ve] = g(F), [G, Ce] = g(T), [ne, me] = g(X), [Re, ye] = g($), [Ne, q] = g(null), [w, Xe] = g(null), je = z(B), { anchorRefs: he, activeAnchor: $e } = ht(t), we = (S) => S?.getAttributeNames().reduce((C, o) => {
|
|
320
|
+
var a;
|
|
321
|
+
return o.startsWith("data-tooltip-") && (C[o.replace(/^data-tooltip-/, "")] = (a = S?.getAttribute(o)) !== null && a !== void 0 ? a : null), C;
|
|
322
|
+
}, {}), _e = (S) => {
|
|
323
|
+
const C = { place: (o) => {
|
|
324
|
+
var a;
|
|
325
|
+
Z((a = o) !== null && a !== void 0 ? a : K);
|
|
326
|
+
}, content: (o) => {
|
|
327
|
+
fe(o ?? i);
|
|
328
|
+
}, html: (o) => {
|
|
329
|
+
Y(o ?? m);
|
|
330
|
+
}, variant: (o) => {
|
|
331
|
+
var a;
|
|
332
|
+
O((a = o) !== null && a !== void 0 ? a : h);
|
|
333
|
+
}, offset: (o) => {
|
|
334
|
+
re(o === null ? M : Number(o));
|
|
335
|
+
}, wrapper: (o) => {
|
|
336
|
+
var a;
|
|
337
|
+
Ce((a = o) !== null && a !== void 0 ? a : T);
|
|
338
|
+
}, events: (o) => {
|
|
339
|
+
const a = o?.split(" ");
|
|
340
|
+
me(a ?? X);
|
|
341
|
+
}, "position-strategy": (o) => {
|
|
342
|
+
var a;
|
|
343
|
+
ye((a = o) !== null && a !== void 0 ? a : $);
|
|
344
|
+
}, "delay-show": (o) => {
|
|
345
|
+
y(o === null ? W : Number(o));
|
|
346
|
+
}, "delay-hide": (o) => {
|
|
347
|
+
xe(o === null ? U : Number(o));
|
|
348
|
+
}, float: (o) => {
|
|
349
|
+
Le(o === null ? I : o === "true");
|
|
350
|
+
}, hidden: (o) => {
|
|
351
|
+
ve(o === null ? F : o === "true");
|
|
352
|
+
}, "class-name": (o) => {
|
|
353
|
+
q(o);
|
|
354
|
+
} };
|
|
355
|
+
Object.values(C).forEach((o) => o(null)), Object.entries(S).forEach(([o, a]) => {
|
|
356
|
+
var x;
|
|
357
|
+
(x = C[o]) === null || x === void 0 || x.call(C, a);
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
p(() => {
|
|
361
|
+
fe(i);
|
|
362
|
+
}, [i]), p(() => {
|
|
363
|
+
Y(m);
|
|
364
|
+
}, [m]), p(() => {
|
|
365
|
+
Z(K);
|
|
366
|
+
}, [K]), p(() => {
|
|
367
|
+
O(h);
|
|
368
|
+
}, [h]), p(() => {
|
|
369
|
+
re(M);
|
|
370
|
+
}, [M]), p(() => {
|
|
371
|
+
y(W);
|
|
372
|
+
}, [W]), p(() => {
|
|
373
|
+
xe(U);
|
|
374
|
+
}, [U]), p(() => {
|
|
375
|
+
Le(I);
|
|
376
|
+
}, [I]), p(() => {
|
|
377
|
+
ve(F);
|
|
378
|
+
}, [F]), p(() => {
|
|
379
|
+
ye($);
|
|
380
|
+
}, [$]), p(() => {
|
|
381
|
+
je.current !== B && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
382
|
+
}, [B]), p(() => {
|
|
383
|
+
typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: B === "core", disableBase: B } }));
|
|
384
|
+
}, []), p(() => {
|
|
385
|
+
var S;
|
|
386
|
+
const C = new Set(he);
|
|
387
|
+
let o = u;
|
|
388
|
+
if (!o && t && (o = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), o) try {
|
|
389
|
+
document.querySelectorAll(o).forEach((r) => {
|
|
390
|
+
C.add({ current: r });
|
|
391
|
+
});
|
|
392
|
+
} catch {
|
|
393
|
+
console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`);
|
|
394
|
+
}
|
|
395
|
+
const a = document.querySelector(`[id='${l}']`);
|
|
396
|
+
if (a && C.add({ current: a }), !C.size) return () => null;
|
|
397
|
+
const x = (S = w ?? a) !== null && S !== void 0 ? S : $e.current, se = new MutationObserver((r) => {
|
|
398
|
+
r.forEach((n) => {
|
|
399
|
+
var b;
|
|
400
|
+
if (!x || n.type !== "attributes" || !(!((b = n.attributeName) === null || b === void 0) && b.startsWith("data-tooltip-"))) return;
|
|
401
|
+
const E = we(x);
|
|
402
|
+
_e(E);
|
|
403
|
+
});
|
|
404
|
+
}), e = { attributes: !0, childList: !1, subtree: !1 };
|
|
405
|
+
if (x) {
|
|
406
|
+
const r = we(x);
|
|
407
|
+
_e(r), se.observe(x, e);
|
|
408
|
+
}
|
|
409
|
+
return () => {
|
|
410
|
+
se.disconnect();
|
|
411
|
+
};
|
|
412
|
+
}, [he, $e, w, l, u]), p(() => {
|
|
413
|
+
H?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), de && !ft("border", `${de}`) && console.warn(`[react-tooltip] "${de}" is not a valid \`border\`.`), H?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), oe && !ft("opacity", `${oe}`) && console.warn(`[react-tooltip] "${oe}" is not a valid \`opacity\`.`);
|
|
414
|
+
}, []);
|
|
415
|
+
let be = ie;
|
|
416
|
+
const Ie = z(null);
|
|
417
|
+
if (s) {
|
|
418
|
+
const S = s({ content: w?.getAttribute("data-tooltip-content") || A || null, activeAnchor: w });
|
|
419
|
+
be = S ? ae.createElement("div", { ref: Ie, className: "react-tooltip-content-wrapper" }, S) : null;
|
|
420
|
+
} else A && (be = A);
|
|
421
|
+
D && (be = ae.createElement(Mt, { content: D }));
|
|
422
|
+
const Fe = { forwardRef: Ae, id: t, anchorId: l, anchorSelect: u, className: ot(f, Ne), classNameArrow: d, content: be, contentWrapperRef: Ie, place: ke, variant: Ye, offset: Pe, wrapper: G, events: ne, openOnClick: j, positionStrategy: Re, middlewares: Q, delayShow: le, delayHide: Oe, float: Te, hidden: Ve, noArrow: ee, clickable: Je, closeOnEsc: L, closeOnScroll: ce, closeOnResize: Se, openEvents: Qe, closeEvents: qe, globalCloseEvents: ze, imperativeModeOnly: Ke, style: H, position: ue, isOpen: Ee, defaultIsOpen: te, border: de, opacity: oe, arrowColor: _, setIsOpen: pe, afterShow: Me, afterHide: We, disableTooltip: He, activeAnchor: w, setActiveAnchor: (S) => Xe(S), role: Ue };
|
|
423
|
+
return ae.createElement(Kt, { ...Fe });
|
|
424
|
+
});
|
|
425
|
+
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (t) => {
|
|
426
|
+
t.detail.disableCore || dt({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), t.detail.disableBase || dt({ css: `
|
|
427
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`, type: "base" });
|
|
428
|
+
});
|
|
429
|
+
export {
|
|
430
|
+
Vt as M
|
|
431
|
+
};
|