@hortiview/shared-components 2.12.0 → 2.12.2
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/CHANGELOG.md +12 -0
- package/dist/{AlertBanner-C6wpAQMj.js → AlertBanner-Ci-F-6S9.js} +3 -3
- package/dist/{BigLoadingSpinner-CDbRVDNZ.js → BigLoadingSpinner-DGj9_Z5J.js} +1 -1
- package/dist/{GenericCard-Co9bGU19.js → GenericCard-CeqYrtLH.js} +3 -3
- package/dist/{ListAreaService-CGJm5I23.js → ListAreaService-Fsm3-gDM.js} +5 -5
- package/dist/{OfflineView-NUM9WE0F.js → OfflineView-CIwV08EQ.js} +3 -3
- package/dist/{_Map-BmafU0dj.js → _Map-D8db_GOu.js} +3 -3
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
- package/dist/{animationframe-EMBh6XeO.js → animationframe-BVKDmEXe.js} +2 -2
- package/dist/{component-neHBNHRu.js → component-Bz_dtX1r.js} +4 -4
- package/dist/{component-DsB0poTj.js → component-DEJuY56h.js} +5 -5
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +3 -3
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/AlertBanner/LinkBanner.test.js +2 -2
- package/dist/components/Allowed/Allowed.test.js +2 -2
- package/dist/components/AllowedButton/AllowedButton.js +1 -1
- package/dist/components/AllowedButton/AllowedButton.test.js +2 -2
- package/dist/components/AllowedIconButton/AllowedIconButton.js +1 -1
- package/dist/components/AllowedIconButton/AllowedIconButton.test.js +2 -2
- package/dist/components/BaseView/BaseView.js +5 -5
- package/dist/components/BaseView/BaseView.test.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.js +4 -4
- package/dist/components/BasicHeading/BasicHeading.test.js +3 -3
- package/dist/components/BlockView/BlockView.js +2 -2
- package/dist/components/BlockView/BlockView.test.js +2 -2
- package/dist/components/ChipCard/ChipCard.js +27 -27
- package/dist/components/ChipCard/ChipCard.test.js +2 -2
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
- package/dist/components/DeleteModal/DeleteModal.js +5 -5
- package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
- package/dist/components/EmptyView/EmptyView.js +3 -3
- package/dist/components/EmptyView/EmptyView.test.js +2 -2
- package/dist/components/Filter/Filter.js +14 -14
- package/dist/components/Filter/Filter.test.js +2 -2
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
- package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
- package/dist/components/FormComponents/FormNumber/FormNumber.test.js +2 -2
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
- package/dist/components/FormComponents/FormSelect/FormSelect.js +3 -3
- package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +13 -13
- package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormText/FormText.test.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
- package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
- package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
- package/dist/components/GenericTable/GenericTable.js +964 -964
- package/dist/components/GenericTable/GenericTable.test.js +2 -2
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
- package/dist/components/HashTabView/HashTabView.js +39 -39
- package/dist/components/HashTabView/HashTabView.test.js +2 -2
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/Iconify/Iconify.test.js +2 -2
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoCard/InfoCard.test.js +2 -2
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
- package/dist/components/ListArea/ListArea.js +6 -6
- package/dist/components/ListArea/ListArea.test.js +5 -5
- package/dist/components/ListArea/ListAreaService.js +6 -6
- 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 +11 -11
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
- package/dist/components/Modal/Modal.js +18 -18
- package/dist/components/ModulePadding/ModulePadding.js +10 -10
- package/dist/components/ModulePadding/ModulePadding.test.js +2 -2
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +3 -3
- package/dist/components/OnboardingBanner/OnboardingBanner.js +7 -7
- package/dist/components/OnboardingBanner/OnboardingBanner.test.js +2 -2
- package/dist/components/OverflowTooltip/OverflowTooltip.js +2 -2
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
- package/dist/components/PermissionChecks/PermissionService.js +7 -7
- package/dist/components/PermissionChecks/PermissionService.test.js +3 -3
- package/dist/components/SafeForm/SafeForm.test.js +3 -3
- package/dist/components/Scrollbar/scrollbar.test.js +2 -2
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +2 -2
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/Select.test.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/Stepper.test.js +2 -2
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
- package/dist/{correct-is-regexp-logic-BBlm4UpN.js → correct-is-regexp-logic-Y0ToWEjF.js} +1 -1
- package/dist/{defineProperty-K2c2Cqi7.js → defineProperty-BTsGZ3c1.js} +3 -3
- package/dist/{es.string.iterator-5IsLbO9h.js → es.string.iterator-UszlTFwY.js} +6 -6
- package/dist/{find-nTYsLuUo.js → find-CHg-_ooq.js} +4 -4
- package/dist/get-D8IXqiys.js +7 -0
- package/dist/{get-u1nFMLdT.js → get-DxjPG00Z.js} +3 -3
- package/dist/hooks/useBreakpoints.test.js +2 -2
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/{identity-BIZAN_pL.js → identity-BVIVr9qu.js} +4 -4
- package/dist/{index-CkZYDkGd.js → index-BLPBqbdx.js} +17 -17
- package/dist/{index-_ck2BRrZ.js → index-BcGujPyk.js} +9 -9
- package/dist/{index.es-DiONypF4.js → index.es--C-VLspF.js} +16 -16
- package/dist/{index.es-DYViXXnI.js → index.es-B1h6DPYp.js} +2 -2
- package/dist/{index.es-CvHDFF6V.js → index.es-B74L_Dje.js} +29 -29
- package/dist/{index.es-B0QNuIUR.js → index.es-B8p8KCdj.js} +4 -4
- package/dist/{index.es-C19v_2Tu.js → index.es-BHvm4m-B.js} +37 -37
- package/dist/{index.es-DnEIFMjv.js → index.es-BPv5dCFQ.js} +14 -14
- package/dist/{index.es-CIsLNz4j.js → index.es-BanVdXEd.js} +2 -2
- package/dist/{index.es-CP6nYw6D.js → index.es-Bo-d_yTV.js} +2 -2
- package/dist/{index.es-DHSqxTgL.js → index.es-BoUnovl_.js} +11 -11
- package/dist/{index.es-HCdWwFg5.js → index.es-C7cC1Hdu.js} +53 -53
- package/dist/{index.es-DZBGtuyV.js → index.es-CWyjqoEE.js} +11 -11
- package/dist/{index.es-BZ3r3ilq.js → index.es-CeQB6igi.js} +6 -6
- package/dist/{index.es-Ci73HfOg.js → index.es-Cfv794DG.js} +1 -1
- package/dist/{index.es-CEPrAgSM.js → index.es-DGoBge9W.js} +4 -4
- package/dist/{index.es-Bw3LT0xk.js → index.es-DOnQ26kT.js} +3 -3
- package/dist/{index.es-B3-Acyxs.js → index.es-DUTChZks.js} +10 -10
- package/dist/{index.es-C_feFtLb.js → index.es-Da7ok-B-.js} +6 -6
- package/dist/{index.es-DCYlADaN.js → index.es-Dgxrk6xW.js} +2 -2
- package/dist/{index.es-nqOhHSs3.js → index.es-DmRhbgqK.js} +6 -6
- package/dist/{index.es-NEYPxnlS.js → index.es-SjZ_-d7U.js} +2 -2
- package/dist/{index.es-fV9oWpEf.js → index.es-nwjKmW7-.js} +58 -58
- package/dist/{index.es-C1SajYlm.js → index.es-oxil0uFe.js} +3 -3
- package/dist/{index.es-C1u7zUBz.js → index.es-t87yNd9Y.js} +10 -10
- package/dist/{isArray-DN9s620O.js → isArray-B457bpaW.js} +1 -1
- package/dist/isArray-BjSPDQ4v.js +7 -0
- package/dist/{isEmpty-CxD71Jv8.js → isEmpty-BnfHn4bl.js} +3 -3
- package/dist/{isString-BifemsUQ.js → isString-DVA49FEo.js} +3 -3
- package/dist/{isTypedArray-Dw_IY7Zq.js → isTypedArray-DziahYkI.js} +10 -10
- package/dist/{keyboard-20bkocNM.js → keyboard-DiKJoabs.js} +3 -3
- package/dist/magic-string.es-uPKorP4O.js +663 -0
- package/dist/main.js +2 -2
- package/dist/{map-Bx7eZRyR.js → map-BprzXv4m.js} +5 -5
- package/dist/{omit-Tf2F0V8l.js → omit-CYY_mIYv.js} +241 -224
- package/dist/{orderBy-BXxEvUw6.js → orderBy-DLBJlgdL.js} +7 -7
- package/dist/{parse-int-Cmh59J6W.js → parse-int-D-3oah_F.js} +2 -2
- package/dist/{react-number-format.es-BK1EpVXq.js → react-number-format.es-DzkMiF8j.js} +3 -3
- package/dist/{react-tooltip.min-DSY6KDqS.js → react-tooltip.min-CVsI--2Y.js} +102 -102
- package/dist/{react.esm-BbMrgZCM.js → react.esm-Bm0cAgpZ.js} +30 -30
- package/dist/services/UtilService.js +9 -9
- package/dist/services/services.test.js +1 -1
- package/dist/{slicedToArray-h0Nnkd_P.js → slicedToArray-ByMQIs5x.js} +6 -6
- package/dist/test-utils.js +1 -1
- package/dist/{toString-CrgB_7Pe.js → toString-B7FIT8FE.js} +1 -1
- package/dist/types/Permission.d.ts +24 -1
- package/dist/types/Permission.js +2 -2
- package/dist/{uniqueId-NU3-C36A.js → uniqueId-BNVTeImh.js} +2 -2
- package/dist/vi.bdSIJ99Y-B308Q-4w.js +11963 -0
- package/package.json +8 -8
- package/dist/get-DuK51wnj.js +0 -7
- package/dist/isArray-Dub1wGJM.js +0 -7
- package/dist/magic-string.es-D4UQQyt0.js +0 -859
- package/dist/vi.CjhMlMwf-CKxPQtd6.js +0 -12192
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as _e } from "./_commonjsHelpers-
|
|
2
|
-
import { a as ce, b as ve } from "./toString-
|
|
3
|
-
import { b as qe, c as de, d as pe, e as hr, r as he, f as jr, g as kr } from "./get-
|
|
4
|
-
import { r as le, a as ye, b as re, c as ee, d as ge, e as ae } from "./identity-
|
|
5
|
-
import { c as oe, r as S, b as be } from "./isArray-
|
|
6
|
-
import { a as Ae, d as Re, e as Oe, b as Pe, g as Ee, c as ne, h as Me } from "./isTypedArray-
|
|
7
|
-
import { d as Te } from "./_Map-
|
|
1
|
+
import { g as _e } from "./_commonjsHelpers-B4e78b8K.js";
|
|
2
|
+
import { a as ce, b as ve } from "./toString-B7FIT8FE.js";
|
|
3
|
+
import { b as qe, c as de, d as pe, e as hr, r as he, f as jr, g as kr } from "./get-DxjPG00Z.js";
|
|
4
|
+
import { r as le, a as ye, b as re, c as ee, d as ge, e as ae } from "./identity-BVIVr9qu.js";
|
|
5
|
+
import { c as oe, r as S, b as be } from "./isArray-B457bpaW.js";
|
|
6
|
+
import { a as Ae, d as Re, e as Oe, b as Pe, g as Ee, c as ne, h as Me } from "./isTypedArray-DziahYkI.js";
|
|
7
|
+
import { d as Te } from "./_Map-D8db_GOu.js";
|
|
8
8
|
var L, lr;
|
|
9
9
|
function me() {
|
|
10
10
|
if (lr) return L;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as O } from "./_commonjsHelpers-
|
|
2
|
-
import { u as F, v as E, w, x as A, y as D, j as P, z as N } from "./index-
|
|
1
|
+
import { g as O } from "./_commonjsHelpers-B4e78b8K.js";
|
|
2
|
+
import { u as F, v as E, w, x as A, y as D, j as P, z as N } from "./index-BcGujPyk.js";
|
|
3
3
|
var _ = {}, c, b;
|
|
4
4
|
function S() {
|
|
5
5
|
return b || (b = 1, c = `
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Q, { useRef as X, useState as xe, useEffect as ve,
|
|
1
|
+
import Q, { useRef as X, useState as xe, useEffect as ve, useMemo as Re, useLayoutEffect as _e } from "react";
|
|
2
2
|
function pe(e, r) {
|
|
3
3
|
var a = {};
|
|
4
4
|
for (var n in e)
|
|
@@ -226,7 +226,7 @@ function De(e, r, a, n, t, o) {
|
|
|
226
226
|
}, g = e, h = a;
|
|
227
227
|
Y(e) && (g = V.numAsString, h = !0);
|
|
228
228
|
var x = f(g, h);
|
|
229
|
-
return
|
|
229
|
+
return Re(function() {
|
|
230
230
|
y(x);
|
|
231
231
|
}, [x.formattedValue]), [V, S];
|
|
232
232
|
}
|
|
@@ -303,7 +303,7 @@ function Je(e) {
|
|
|
303
303
|
source: ae.props
|
|
304
304
|
});
|
|
305
305
|
}, [b, M]);
|
|
306
|
-
var re = l.current ? ce(l.current) : void 0, ne = typeof window < "u" ?
|
|
306
|
+
var re = l.current ? ce(l.current) : void 0, ne = typeof window < "u" ? _e : ve;
|
|
307
307
|
ne(function() {
|
|
308
308
|
var i = l.current;
|
|
309
309
|
if (b !== U.current.formattedValue && i) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ae, { createContext as bt, useState as g, useRef as z, useEffect as p, useContext as gt,
|
|
2
|
-
import { a as kt,
|
|
3
|
-
import { g as Ct } from "./_commonjsHelpers-
|
|
1
|
+
import ae, { createContext as bt, useState as g, useRef as z, useEffect as p, useContext as gt, useCallback as St, useImperativeHandle as Et, useLayoutEffect as At } from "react";
|
|
2
|
+
import { a as kt, b as Ot, c as it, o as xt, f as Tt, s as Lt } from "./floating-ui.dom-CeD8zknG.js";
|
|
3
|
+
import { g as Ct } from "./_commonjsHelpers-B4e78b8K.js";
|
|
4
4
|
var et = { exports: {} };
|
|
5
5
|
/*!
|
|
6
6
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -9,7 +9,7 @@ var et = { exports: {} };
|
|
|
9
9
|
*/
|
|
10
10
|
var ct;
|
|
11
11
|
function Rt() {
|
|
12
|
-
return ct || (ct = 1, function(t) {
|
|
12
|
+
return ct || (ct = 1, (function(t) {
|
|
13
13
|
(function() {
|
|
14
14
|
var l = {}.hasOwnProperty;
|
|
15
15
|
function u() {
|
|
@@ -38,7 +38,7 @@ function Rt() {
|
|
|
38
38
|
}
|
|
39
39
|
t.exports ? (u.default = u, t.exports = u) : window.classNames = u;
|
|
40
40
|
})();
|
|
41
|
-
}(et)), et.exports;
|
|
41
|
+
})(et)), et.exports;
|
|
42
42
|
}
|
|
43
43
|
var Nt = Rt();
|
|
44
44
|
const ot = /* @__PURE__ */ Ct(Nt);
|
|
@@ -58,11 +58,11 @@ function dt({ css: t, id: l = $t, type: u = "base", ref: i }) {
|
|
|
58
58
|
const d = document.head || document.getElementsByTagName("head")[0], h = document.createElement("style");
|
|
59
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
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 = [
|
|
61
|
+
const pt = async ({ elementReference: t = null, tooltipReference: l = null, tooltipArrowReference: u = null, place: i = "top", offset: m = 10, strategy: s = "absolute", middlewares: f = [xt(Number(m)), Tt({ fallbackAxisSideDirection: "start" }), Lt({ padding: 5 })], border: d }) => {
|
|
62
62
|
if (!t) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: i };
|
|
63
63
|
if (l === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: i };
|
|
64
64
|
const h = f;
|
|
65
|
-
return u ? (h.push(
|
|
65
|
+
return u ? (h.push(Ot({ element: u, padding: 5 })), it(t, l, { placement: i, strategy: s, middleware: h }).then((({ x: K, y: M, placement: T, middlewareData: ie }) => {
|
|
66
66
|
var X, j;
|
|
67
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
68
|
let F = 0;
|
|
@@ -71,7 +71,7 @@ const pt = async ({ elementReference: t = null, tooltipReference: l = null, tool
|
|
|
71
71
|
F = ee?.[1] ? Number(ee[1]) : 1;
|
|
72
72
|
}
|
|
73
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 }));
|
|
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
75
|
}, ft = (t, l) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(t, l), vt = (t, l, u) => {
|
|
76
76
|
let i = null;
|
|
77
77
|
const m = function(...s) {
|
|
@@ -85,18 +85,18 @@ const pt = async ({ elementReference: t = null, tooltipReference: l = null, tool
|
|
|
85
85
|
}, m;
|
|
86
86
|
}, mt = (t) => t !== null && !Array.isArray(t) && typeof t == "object", rt = (t, l) => {
|
|
87
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]));
|
|
88
|
+
if (Array.isArray(t) && Array.isArray(l)) return t.length === l.length && t.every(((m, s) => rt(m, l[s])));
|
|
89
89
|
if (Array.isArray(t) !== Array.isArray(l)) return !1;
|
|
90
90
|
if (!mt(t) || !mt(l)) return t === l;
|
|
91
91
|
const u = Object.keys(t), i = Object.keys(l);
|
|
92
|
-
return u.length === i.length && u.every((m) => rt(t[m], l[m]));
|
|
92
|
+
return u.length === i.length && u.every(((m) => rt(t[m], l[m])));
|
|
93
93
|
}, It = (t) => {
|
|
94
94
|
if (!(t instanceof HTMLElement || t instanceof SVGElement)) return !1;
|
|
95
95
|
const l = getComputedStyle(t);
|
|
96
|
-
return ["overflow", "overflow-x", "overflow-y"].some((u) => {
|
|
96
|
+
return ["overflow", "overflow-x", "overflow-y"].some(((u) => {
|
|
97
97
|
const i = l.getPropertyValue(u);
|
|
98
98
|
return i === "auto" || i === "scroll";
|
|
99
|
-
});
|
|
99
|
+
}));
|
|
100
100
|
}, yt = (t) => {
|
|
101
101
|
if (!t) return null;
|
|
102
102
|
let l = t.parentElement;
|
|
@@ -105,7 +105,7 @@ const pt = async ({ elementReference: t = null, tooltipReference: l = null, tool
|
|
|
105
105
|
l = l.parentElement;
|
|
106
106
|
}
|
|
107
107
|
return document.scrollingElement || document.documentElement;
|
|
108
|
-
}, Bt = typeof window < "u" ?
|
|
108
|
+
}, Bt = typeof window < "u" ? At : p, N = (t) => {
|
|
109
109
|
t.current && (clearTimeout(t.current), t.current = null);
|
|
110
110
|
}, Dt = "DEFAULT_TOOLTIP_ID", qt = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
|
|
111
111
|
}, detach: () => {
|
|
@@ -122,24 +122,24 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
122
122
|
const Ne = ce ? { ...ce } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
123
123
|
!ce && me && Object.assign(Ne, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
124
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, () => {
|
|
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
126
|
ne.current = !1;
|
|
127
|
-
}), []);
|
|
127
|
+
})), []);
|
|
128
128
|
const w = (e) => {
|
|
129
|
-
ne.current && (e && le(!0), setTimeout(() => {
|
|
129
|
+
ne.current && (e && le(!0), setTimeout((() => {
|
|
130
130
|
ne.current && (oe?.(e), B === void 0 && Pe(e));
|
|
131
|
-
}, 10));
|
|
131
|
+
}), 10));
|
|
132
132
|
};
|
|
133
|
-
p(() => {
|
|
133
|
+
p((() => {
|
|
134
134
|
if (B === void 0) return () => null;
|
|
135
135
|
B && le(!0);
|
|
136
|
-
const e = setTimeout(() => {
|
|
136
|
+
const e = setTimeout((() => {
|
|
137
137
|
Pe(B);
|
|
138
|
-
}, 10);
|
|
138
|
+
}), 10);
|
|
139
139
|
return () => {
|
|
140
140
|
clearTimeout(e);
|
|
141
141
|
};
|
|
142
|
-
}, [B]), p(() => {
|
|
142
|
+
}), [B]), p((() => {
|
|
143
143
|
if (O !== xe.current) if (N(ke), xe.current = O, O) Ke?.();
|
|
144
144
|
else {
|
|
145
145
|
const e = ((r) => {
|
|
@@ -148,21 +148,21 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
148
148
|
const [, b, E] = n;
|
|
149
149
|
return Number(b) * (E === "ms" ? 1 : 1e3);
|
|
150
150
|
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
151
|
-
ke.current = setTimeout(() => {
|
|
151
|
+
ke.current = setTimeout((() => {
|
|
152
152
|
le(!1), Oe(null), H?.();
|
|
153
|
-
}, e + 25);
|
|
153
|
+
}), e + 25);
|
|
154
154
|
}
|
|
155
|
-
}, [O]);
|
|
155
|
+
}), [O]);
|
|
156
156
|
const Xe = (e) => {
|
|
157
|
-
Ye((r) => rt(r, e) ? r : e);
|
|
157
|
+
Ye(((r) => rt(r, e) ? r : e));
|
|
158
158
|
}, je = (e = j) => {
|
|
159
|
-
N(D), re ? w(!0) : D.current = setTimeout(() => {
|
|
159
|
+
N(D), re ? w(!0) : D.current = setTimeout((() => {
|
|
160
160
|
w(!0);
|
|
161
|
-
}, e);
|
|
161
|
+
}), e);
|
|
162
162
|
}, he = (e = $) => {
|
|
163
|
-
N(Y), Y.current = setTimeout(() => {
|
|
163
|
+
N(Y), Y.current = setTimeout((() => {
|
|
164
164
|
ve.current || w(!1);
|
|
165
|
-
}, e);
|
|
165
|
+
}), e);
|
|
166
166
|
}, $e = (e) => {
|
|
167
167
|
var r;
|
|
168
168
|
if (!e) return;
|
|
@@ -174,9 +174,9 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
174
174
|
}, _e = ({ x: e, y: r }) => {
|
|
175
175
|
var n;
|
|
176
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) => {
|
|
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
178
|
Xe(E);
|
|
179
|
-
});
|
|
179
|
+
}));
|
|
180
180
|
}, be = (e) => {
|
|
181
181
|
if (!e) return;
|
|
182
182
|
const r = e, n = { x: r.clientX, y: r.clientY };
|
|
@@ -185,24 +185,24 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
185
185
|
var r;
|
|
186
186
|
if (!O) return;
|
|
187
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)));
|
|
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
189
|
}, Fe = vt($e, 50), S = vt(we, 50), C = (e) => {
|
|
190
190
|
S.cancel(), Fe(e);
|
|
191
191
|
}, o = () => {
|
|
192
192
|
Fe.cancel(), S();
|
|
193
|
-
}, a =
|
|
193
|
+
}, a = St((() => {
|
|
194
194
|
var e, r;
|
|
195
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) => {
|
|
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
197
|
ne.current && Xe(b);
|
|
198
|
-
});
|
|
199
|
-
}, [O, _, Ee, qe, d, y?.place, h, T, ze, y?.position, Q]);
|
|
200
|
-
p(() => {
|
|
198
|
+
}));
|
|
199
|
+
}), [O, _, Ee, qe, d, y?.place, h, T, ze, y?.position, Q]);
|
|
200
|
+
p((() => {
|
|
201
201
|
var e, r;
|
|
202
202
|
const n = new Set(Le);
|
|
203
|
-
G.forEach((c) => {
|
|
203
|
+
G.forEach(((c) => {
|
|
204
204
|
ue?.(c) || n.add({ current: c });
|
|
205
|
-
});
|
|
205
|
+
}));
|
|
206
206
|
const b = document.querySelector(`[id='${s}']`);
|
|
207
207
|
b && !ue?.(b) && n.add({ current: b });
|
|
208
208
|
const E = () => {
|
|
@@ -220,77 +220,77 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
220
220
|
}, wt = (c) => {
|
|
221
221
|
O && c?.target === _ && we();
|
|
222
222
|
}, lt = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], nt = ["click", "dblclick", "mousedown", "mouseup"];
|
|
223
|
-
Object.entries(ye).forEach(([c, J]) => {
|
|
223
|
+
Object.entries(ye).forEach((([c, J]) => {
|
|
224
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]) => {
|
|
225
|
+
})), Object.entries(Ne).forEach((([c, J]) => {
|
|
226
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 });
|
|
227
|
+
})), Q && v.push({ event: "pointermove", listener: be });
|
|
228
228
|
const st = () => {
|
|
229
229
|
ve.current = !0;
|
|
230
230
|
}, at = () => {
|
|
231
231
|
ve.current = !1, we();
|
|
232
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) => {
|
|
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
235
|
var De;
|
|
236
236
|
(De = Ze.current) === null || De === void 0 || De.addEventListener(c, J);
|
|
237
|
-
});
|
|
238
|
-
}), () => {
|
|
237
|
+
}));
|
|
238
|
+
})), () => {
|
|
239
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) => {
|
|
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
242
|
var Ge;
|
|
243
243
|
(Ge = _t.current) === null || Ge === void 0 || Ge.removeEventListener(Ze, De);
|
|
244
|
-
});
|
|
245
|
-
});
|
|
244
|
+
}));
|
|
245
|
+
}));
|
|
246
246
|
};
|
|
247
|
-
}, [_, a, re, Le, G, L, ce, Se, me, j, $]), p(() => {
|
|
247
|
+
}), [_, a, re, Le, G, L, ce, Se, me, j, $]), p((() => {
|
|
248
248
|
var e, r;
|
|
249
249
|
let n = (r = (e = y?.anchorSelect) !== null && e !== void 0 ? e : f) !== null && r !== void 0 ? r : "";
|
|
250
250
|
!n && l && (n = `[data-tooltip-id='${l.replace(/'/g, "\\'")}']`);
|
|
251
|
-
const b = new MutationObserver((E) => {
|
|
251
|
+
const b = new MutationObserver(((E) => {
|
|
252
252
|
const P = [], V = [];
|
|
253
|
-
E.forEach((k) => {
|
|
253
|
+
E.forEach(((k) => {
|
|
254
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
255
|
if (_) {
|
|
256
|
-
const R = [...k.removedNodes].filter((v) => v.nodeType === 1);
|
|
256
|
+
const R = [...k.removedNodes].filter(((v) => v.nodeType === 1));
|
|
257
257
|
if (n) try {
|
|
258
|
-
V.push(...R.filter((v) => v.matches(n))), V.push(...R.flatMap((v) => [...v.querySelectorAll(n)]));
|
|
258
|
+
V.push(...R.filter(((v) => v.matches(n)))), V.push(...R.flatMap(((v) => [...v.querySelectorAll(n)])));
|
|
259
259
|
} catch {
|
|
260
260
|
}
|
|
261
|
-
R.some((v) => {
|
|
261
|
+
R.some(((v) => {
|
|
262
262
|
var Be;
|
|
263
263
|
return !!(!((Be = v?.contains) === null || Be === void 0) && Be.call(v, _)) && (le(!1), w(!1), pe(null), N(D), N(Y), !0);
|
|
264
|
-
});
|
|
264
|
+
}));
|
|
265
265
|
}
|
|
266
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)]));
|
|
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
269
|
} catch {
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
}), (P.length || V.length) && Ce((k) => [...k.filter((R) => !V.includes(R)), ...P]);
|
|
273
|
-
});
|
|
272
|
+
})), (P.length || V.length) && Ce(((k) => [...k.filter(((R) => !V.includes(R))), ...P]));
|
|
273
|
+
}));
|
|
274
274
|
return b.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
275
275
|
b.disconnect();
|
|
276
276
|
};
|
|
277
|
-
}, [l, f, y?.anchorSelect, _]), p(() => {
|
|
277
|
+
}), [l, f, y?.anchorSelect, _]), p((() => {
|
|
278
278
|
a();
|
|
279
|
-
}, [a]), p(() => {
|
|
279
|
+
}), [a]), p((() => {
|
|
280
280
|
if (!te?.current) return () => null;
|
|
281
|
-
const e = new ResizeObserver(() => {
|
|
282
|
-
setTimeout(() => a());
|
|
283
|
-
});
|
|
281
|
+
const e = new ResizeObserver((() => {
|
|
282
|
+
setTimeout((() => a()));
|
|
283
|
+
}));
|
|
284
284
|
return e.observe(te.current), () => {
|
|
285
285
|
e.disconnect();
|
|
286
286
|
};
|
|
287
|
-
}, [Ee, te?.current]), p(() => {
|
|
287
|
+
}), [Ee, te?.current]), p((() => {
|
|
288
288
|
var e;
|
|
289
289
|
const r = document.querySelector(`[id='${s}']`), n = [...G, r];
|
|
290
290
|
_ && n.includes(_) || pe((e = G[0]) !== null && e !== void 0 ? e : r);
|
|
291
|
-
}, [s, G, _]), p(() => (de && w(!0), () => {
|
|
291
|
+
}), [s, G, _]), p((() => (de && w(!0), () => {
|
|
292
292
|
N(D), N(Y);
|
|
293
|
-
}), []), p(() => {
|
|
293
|
+
})), []), p((() => {
|
|
294
294
|
var e;
|
|
295
295
|
let r = (e = y?.anchorSelect) !== null && e !== void 0 ? e : f;
|
|
296
296
|
if (!r && l && (r = `[data-tooltip-id='${l.replace(/'/g, "\\'")}']`), r) try {
|
|
@@ -299,11 +299,11 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
299
299
|
} catch {
|
|
300
300
|
Ce([]);
|
|
301
301
|
}
|
|
302
|
-
}, [l, f, y?.anchorSelect]), p(() => {
|
|
302
|
+
}), [l, f, y?.anchorSelect]), p((() => {
|
|
303
303
|
D.current && (N(D), je(j));
|
|
304
|
-
}, [j]);
|
|
304
|
+
}), [j]);
|
|
305
305
|
const x = (Ae = y?.content) !== null && Ae !== void 0 ? Ae : Ee, se = O && Object.keys(Z.tooltipStyles).length > 0;
|
|
306
|
-
return
|
|
306
|
+
return Et(t, (() => ({ open: (e) => {
|
|
307
307
|
if (e?.anchorSelect) try {
|
|
308
308
|
document.querySelector(e.anchorSelect);
|
|
309
309
|
} catch {
|
|
@@ -312,14 +312,14 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
312
312
|
Oe(e ?? null), e?.delay ? je(e.delay) : w(!0);
|
|
313
313
|
}, close: (e) => {
|
|
314
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) => {
|
|
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
316
|
N(ke), O || e.propertyName !== "opacity" || (le(!1), Oe(null), H?.());
|
|
317
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) => {
|
|
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
320
|
var a;
|
|
321
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) => {
|
|
322
|
+
}), {}), _e = (S) => {
|
|
323
323
|
const C = { place: (o) => {
|
|
324
324
|
var a;
|
|
325
325
|
Z((a = o) !== null && a !== void 0 ? a : K);
|
|
@@ -352,56 +352,56 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
352
352
|
}, "class-name": (o) => {
|
|
353
353
|
q(o);
|
|
354
354
|
} };
|
|
355
|
-
Object.values(C).forEach((o) => o(null)), Object.entries(S).forEach(([o, a]) => {
|
|
355
|
+
Object.values(C).forEach(((o) => o(null))), Object.entries(S).forEach((([o, a]) => {
|
|
356
356
|
var x;
|
|
357
357
|
(x = C[o]) === null || x === void 0 || x.call(C, a);
|
|
358
|
-
});
|
|
358
|
+
}));
|
|
359
359
|
};
|
|
360
|
-
p(() => {
|
|
360
|
+
p((() => {
|
|
361
361
|
fe(i);
|
|
362
|
-
}, [i]), p(() => {
|
|
362
|
+
}), [i]), p((() => {
|
|
363
363
|
Y(m);
|
|
364
|
-
}, [m]), p(() => {
|
|
364
|
+
}), [m]), p((() => {
|
|
365
365
|
Z(K);
|
|
366
|
-
}, [K]), p(() => {
|
|
366
|
+
}), [K]), p((() => {
|
|
367
367
|
O(h);
|
|
368
|
-
}, [h]), p(() => {
|
|
368
|
+
}), [h]), p((() => {
|
|
369
369
|
re(M);
|
|
370
|
-
}, [M]), p(() => {
|
|
370
|
+
}), [M]), p((() => {
|
|
371
371
|
y(W);
|
|
372
|
-
}, [W]), p(() => {
|
|
372
|
+
}), [W]), p((() => {
|
|
373
373
|
xe(U);
|
|
374
|
-
}, [U]), p(() => {
|
|
374
|
+
}), [U]), p((() => {
|
|
375
375
|
Le(I);
|
|
376
|
-
}, [I]), p(() => {
|
|
376
|
+
}), [I]), p((() => {
|
|
377
377
|
ve(F);
|
|
378
|
-
}, [F]), p(() => {
|
|
378
|
+
}), [F]), p((() => {
|
|
379
379
|
ye($);
|
|
380
|
-
}, [$]), p(() => {
|
|
380
|
+
}), [$]), p((() => {
|
|
381
381
|
je.current !== B && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
382
|
-
}, [B]), p(() => {
|
|
382
|
+
}), [B]), p((() => {
|
|
383
383
|
typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: B === "core", disableBase: B } }));
|
|
384
|
-
}, []), p(() => {
|
|
384
|
+
}), []), p((() => {
|
|
385
385
|
var S;
|
|
386
386
|
const C = new Set(he);
|
|
387
387
|
let o = u;
|
|
388
388
|
if (!o && t && (o = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), o) try {
|
|
389
|
-
document.querySelectorAll(o).forEach((r) => {
|
|
389
|
+
document.querySelectorAll(o).forEach(((r) => {
|
|
390
390
|
C.add({ current: r });
|
|
391
|
-
});
|
|
391
|
+
}));
|
|
392
392
|
} catch {
|
|
393
393
|
console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`);
|
|
394
394
|
}
|
|
395
395
|
const a = document.querySelector(`[id='${l}']`);
|
|
396
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) => {
|
|
397
|
+
const x = (S = w ?? a) !== null && S !== void 0 ? S : $e.current, se = new MutationObserver(((r) => {
|
|
398
|
+
r.forEach(((n) => {
|
|
399
399
|
var b;
|
|
400
400
|
if (!x || n.type !== "attributes" || !(!((b = n.attributeName) === null || b === void 0) && b.startsWith("data-tooltip-"))) return;
|
|
401
401
|
const E = we(x);
|
|
402
402
|
_e(E);
|
|
403
|
-
});
|
|
404
|
-
}), e = { attributes: !0, childList: !1, subtree: !1 };
|
|
403
|
+
}));
|
|
404
|
+
})), e = { attributes: !0, childList: !1, subtree: !1 };
|
|
405
405
|
if (x) {
|
|
406
406
|
const r = we(x);
|
|
407
407
|
_e(r), se.observe(x, e);
|
|
@@ -409,9 +409,9 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
409
409
|
return () => {
|
|
410
410
|
se.disconnect();
|
|
411
411
|
};
|
|
412
|
-
}, [he, $e, w, l, u]), p(() => {
|
|
412
|
+
}), [he, $e, w, l, u]), p((() => {
|
|
413
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
|
-
}, []);
|
|
414
|
+
}), []);
|
|
415
415
|
let be = ie;
|
|
416
416
|
const Ie = z(null);
|
|
417
417
|
if (s) {
|
|
@@ -421,11 +421,11 @@ const Kt = ({ forwardRef: t, id: l, className: u, classNameArrow: i, variant: m
|
|
|
421
421
|
D && (be = ae.createElement(Mt, { content: D }));
|
|
422
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
423
|
return ae.createElement(Kt, { ...Fe });
|
|
424
|
-
});
|
|
425
|
-
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (t) => {
|
|
424
|
+
}));
|
|
425
|
+
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((t) => {
|
|
426
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
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
|
-
});
|
|
428
|
+
}));
|
|
429
429
|
export {
|
|
430
430
|
Vt as M
|
|
431
431
|
};
|