profinansy-ui-lib 3.8.23 → 3.8.25
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.
|
@@ -7585,16 +7585,21 @@ const I1 = (e) => {
|
|
|
7585
7585
|
function Rf({
|
|
7586
7586
|
placement: e = "bottom",
|
|
7587
7587
|
isHover: t = !1,
|
|
7588
|
-
showArrow: n = !0
|
|
7588
|
+
showArrow: n = !0,
|
|
7589
|
+
onOpenTooltip: r
|
|
7589
7590
|
}) {
|
|
7590
|
-
const [
|
|
7591
|
+
const [o, i] = R(!1), a = ue(null);
|
|
7592
|
+
W(() => {
|
|
7593
|
+
r && r(o);
|
|
7594
|
+
}, [o]);
|
|
7595
|
+
const l = ro({
|
|
7591
7596
|
placement: e,
|
|
7592
|
-
open:
|
|
7593
|
-
onOpenChange:
|
|
7597
|
+
open: o,
|
|
7598
|
+
onOpenChange: i,
|
|
7594
7599
|
whileElementsMounted: E1,
|
|
7595
7600
|
middleware: [
|
|
7596
7601
|
Ii({
|
|
7597
|
-
element:
|
|
7602
|
+
element: a
|
|
7598
7603
|
}),
|
|
7599
7604
|
ar(n ? 10 : 4),
|
|
7600
7605
|
sr({
|
|
@@ -7606,12 +7611,12 @@ function Rf({
|
|
|
7606
7611
|
]
|
|
7607
7612
|
});
|
|
7608
7613
|
W(() => {
|
|
7609
|
-
if (
|
|
7610
|
-
const { x:
|
|
7611
|
-
(
|
|
7614
|
+
if (l.middlewareData.arrow && l.middlewareData.shift && a.current && n) {
|
|
7615
|
+
const { x: g, y: v } = l.middlewareData.arrow, b = c?.placement.split("-")[0], x = {};
|
|
7616
|
+
(b === "top" || b === "bottom") && (x.left = `${g - l.middlewareData.shift.x}px`, b === "top" ? x.bottom = "0px" : x.top = "-13px"), (b === "left" || b === "right") && (x.top = `${v - l.middlewareData.shift.y}px`, b === "left" ? x.right = "0px" : x.left = "-13px"), Object.assign(a.current.style, x);
|
|
7612
7617
|
}
|
|
7613
|
-
}, [
|
|
7614
|
-
const
|
|
7618
|
+
}, [l, n]);
|
|
7619
|
+
const c = l.context, u = Us(c, {
|
|
7615
7620
|
enabled: t,
|
|
7616
7621
|
handleClose: $f(),
|
|
7617
7622
|
move: !1,
|
|
@@ -7619,16 +7624,16 @@ function Rf({
|
|
|
7619
7624
|
open: 300,
|
|
7620
7625
|
close: 0
|
|
7621
7626
|
}
|
|
7622
|
-
}),
|
|
7627
|
+
}), p = to(c, { enabled: !t }), f = no(c), m = io(c), h = oo([f, m, p, u]);
|
|
7623
7628
|
return S.useMemo(
|
|
7624
7629
|
() => ({
|
|
7625
|
-
arrowRef:
|
|
7626
|
-
open:
|
|
7627
|
-
setOpen:
|
|
7628
|
-
...
|
|
7629
|
-
...
|
|
7630
|
+
arrowRef: a,
|
|
7631
|
+
open: o,
|
|
7632
|
+
setOpen: i,
|
|
7633
|
+
...h,
|
|
7634
|
+
...l
|
|
7630
7635
|
}),
|
|
7631
|
-
[
|
|
7636
|
+
[o, i, h, l, a]
|
|
7632
7637
|
);
|
|
7633
7638
|
}
|
|
7634
7639
|
const Qs = S.createContext(null), Si = ({
|
|
@@ -22889,7 +22894,7 @@ function qj({
|
|
|
22889
22894
|
return O.slice(oe, ee);
|
|
22890
22895
|
}
|
|
22891
22896
|
return O;
|
|
22892
|
-
}, [b, i, O]), { reachedTop: Y, tableWidth: G, tableLeftPosition: Q } = o$(
|
|
22897
|
+
}, [b, i, O, $]), { reachedTop: Y, tableWidth: G, tableLeftPosition: Q } = o$(
|
|
22893
22898
|
g,
|
|
22894
22899
|
y,
|
|
22895
22900
|
i,
|