@purpurds/tooltip 4.3.0 → 4.4.0
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/.rush/temp/ci_build/@purpurds/tooltip/{deee1cb90ff0e0b5f6cfb6b2e8912fa5513ed8c8.untar.log → 9041bcd1aa83af6f13172f6cdfe73e182daaebbb.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +4 -4
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +4 -4
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +86 -84
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +2 -2
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.d.ts +2 -1
- package/dist/tooltip.es.js +52 -52
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +12 -12
package/dist/tooltip.d.ts
CHANGED
package/dist/tooltip.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import { forwardRef as M, useCallback as
|
|
3
|
+
import { forwardRef as M, useCallback as k, createContext as Ge, useMemo as xe, createElement as w, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as z, useLayoutEffect as Ct, useReducer as _n } from "react";
|
|
4
4
|
import * as wn from "react-dom";
|
|
5
5
|
import An, { flushSync as Rt } from "react-dom";
|
|
6
6
|
const Pn = {
|
|
@@ -263,8 +263,8 @@ var Lt = { exports: {} };
|
|
|
263
263
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
264
264
|
})();
|
|
265
265
|
})(Lt);
|
|
266
|
-
var
|
|
267
|
-
const
|
|
266
|
+
var kn = Lt.exports;
|
|
267
|
+
const Hn = /* @__PURE__ */ Fn(kn), Bn = {
|
|
268
268
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
269
269
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
270
270
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -285,7 +285,7 @@ const kn = /* @__PURE__ */ Fn(Hn), Bn = {
|
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
287
|
Mt.displayName = "IconInfo";
|
|
288
|
-
const Wn =
|
|
288
|
+
const Wn = Hn.bind(Bn), gt = "purpur-icon", Vn = "md", jn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Un = ({ content: e = "", title: t } = {}) => {
|
|
289
289
|
const n = [
|
|
290
290
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
291
291
|
{ name: "fill", value: "currentColor" },
|
|
@@ -423,15 +423,15 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
423
423
|
function Qn(e, t) {
|
|
424
424
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function kt(...e) {
|
|
427
427
|
return (t) => e.forEach(
|
|
428
428
|
(n) => Qn(n, t)
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
function pe(...e) {
|
|
432
|
-
return
|
|
432
|
+
return k(kt(...e), e);
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Ht(e, t = []) {
|
|
435
435
|
let n = [];
|
|
436
436
|
function o(r, s) {
|
|
437
437
|
const a = /* @__PURE__ */ Ge(s), c = n.length;
|
|
@@ -532,7 +532,7 @@ const Ye = /* @__PURE__ */ M((e, t) => {
|
|
|
532
532
|
const { children: n, ...o } = e;
|
|
533
533
|
return /* @__PURE__ */ Ie(n) ? /* @__PURE__ */ Je(n, {
|
|
534
534
|
...nr(o, n.props),
|
|
535
|
-
ref: t ?
|
|
535
|
+
ref: t ? kt(t, n.ref) : n.ref
|
|
536
536
|
}) : se.count(n) > 1 ? se.only(null) : null;
|
|
537
537
|
});
|
|
538
538
|
Ye.displayName = "SlotClone";
|
|
@@ -754,12 +754,12 @@ let pr = 0;
|
|
|
754
754
|
function hr(e) {
|
|
755
755
|
const [t, n] = N.useState(fr());
|
|
756
756
|
return de(() => {
|
|
757
|
-
|
|
757
|
+
n(
|
|
758
758
|
(o) => o ?? String(pr++)
|
|
759
759
|
);
|
|
760
760
|
}, [
|
|
761
761
|
e
|
|
762
|
-
]),
|
|
762
|
+
]), t ? `radix-${t}` : "";
|
|
763
763
|
}
|
|
764
764
|
const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Fe = Math.round, De = Math.floor, te = (e) => ({
|
|
765
765
|
x: e,
|
|
@@ -801,10 +801,10 @@ function yr(e, t, n) {
|
|
|
801
801
|
n === void 0 && (n = !1);
|
|
802
802
|
const o = ge(e), i = tt(e), r = et(i);
|
|
803
803
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
804
|
-
return t.reference[r] > t.floating[r] && (s =
|
|
804
|
+
return t.reference[r] > t.floating[r] && (s = ke(s)), [s, ke(s)];
|
|
805
805
|
}
|
|
806
806
|
function br(e) {
|
|
807
|
-
const t =
|
|
807
|
+
const t = ke(e);
|
|
808
808
|
return [Ke(e), t, Ke(t)];
|
|
809
809
|
}
|
|
810
810
|
function Ke(e) {
|
|
@@ -828,7 +828,7 @@ function $r(e, t, n, o) {
|
|
|
828
828
|
let r = xr(X(e), n === "start", o);
|
|
829
829
|
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ke)))), r;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function ke(e) {
|
|
832
832
|
return e.replace(/left|right|bottom|top/g, (t) => mr[t]);
|
|
833
833
|
}
|
|
834
834
|
function _r(e) {
|
|
@@ -848,7 +848,7 @@ function Vt(e) {
|
|
|
848
848
|
left: e
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function He(e) {
|
|
852
852
|
return {
|
|
853
853
|
...e,
|
|
854
854
|
top: e.y,
|
|
@@ -985,7 +985,7 @@ async function $e(e, t) {
|
|
|
985
985
|
elementContext: u = "floating",
|
|
986
986
|
altBoundary: p = !1,
|
|
987
987
|
padding: f = 0
|
|
988
|
-
} = Y(t, e), h = Vt(f), m = a[p ? u === "floating" ? "reference" : "floating" : u], v =
|
|
988
|
+
} = Y(t, e), h = Vt(f), m = a[p ? u === "floating" ? "reference" : "floating" : u], v = He(await r.getClippingRect({
|
|
989
989
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(m))) == null || n ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
990
990
|
boundary: l,
|
|
991
991
|
rootBoundary: d,
|
|
@@ -1000,7 +1000,7 @@ async function $e(e, t) {
|
|
|
1000
1000
|
} : {
|
|
1001
1001
|
x: 1,
|
|
1002
1002
|
y: 1
|
|
1003
|
-
}, b =
|
|
1003
|
+
}, b = He(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1004
1004
|
rect: y,
|
|
1005
1005
|
offsetParent: x,
|
|
1006
1006
|
strategy: c
|
|
@@ -1035,7 +1035,7 @@ const bt = (e) => ({
|
|
|
1035
1035
|
}, p = tt(i), f = et(p), h = await s.getDimensions(c), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - u[p] - r.floating[f], $ = u[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
1036
1036
|
let _ = b ? b[y] : 0;
|
|
1037
1037
|
(!_ || !await (s.isElement == null ? void 0 : s.isElement(b))) && (_ = a.floating[y] || r.floating[f]);
|
|
1038
|
-
const E = x / 2 - $ / 2, A = _ / 2 - h[f] / 2 - 1, C = ee(d[m], A), F = ee(d[v], A), T = C,
|
|
1038
|
+
const E = x / 2 - $ / 2, A = _ / 2 - h[f] / 2 - 1, C = ee(d[m], A), F = ee(d[v], A), T = C, H = _ - h[f] - F, D = _ / 2 - h[f] / 2 + E, O = qe(T, D, H), P = ge(i) != null && D != O && r.reference[f] / 2 - (D < T ? C : F) - h[f] / 2 < 0 ? D < T ? T - D : H - D : 0;
|
|
1039
1039
|
return {
|
|
1040
1040
|
[p]: u[p] - P,
|
|
1041
1041
|
data: {
|
|
@@ -1065,7 +1065,7 @@ const bt = (e) => ({
|
|
|
1065
1065
|
fallbackAxisSideDirection: f = "none",
|
|
1066
1066
|
flipAlignment: h = !0,
|
|
1067
1067
|
...g
|
|
1068
|
-
} = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [
|
|
1068
|
+
} = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [ke(s)] : br(s));
|
|
1069
1069
|
!u && f !== "none" && x.push(...$r(s, h, f, y));
|
|
1070
1070
|
const $ = [s, ...x], b = await $e(t, g), _ = [];
|
|
1071
1071
|
let E = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
@@ -1078,15 +1078,15 @@ const bt = (e) => ({
|
|
|
1078
1078
|
overflows: _
|
|
1079
1079
|
}], !_.every((T) => T <= 0)) {
|
|
1080
1080
|
var A, C;
|
|
1081
|
-
const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1,
|
|
1082
|
-
if (
|
|
1081
|
+
const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, H = $[T];
|
|
1082
|
+
if (H)
|
|
1083
1083
|
return {
|
|
1084
1084
|
data: {
|
|
1085
1085
|
index: T,
|
|
1086
1086
|
overflows: E
|
|
1087
1087
|
},
|
|
1088
1088
|
reset: {
|
|
1089
|
-
placement:
|
|
1089
|
+
placement: H
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
1092
|
let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O, V) => O.overflows[1] - V.overflows[1])[0]) == null ? void 0 : C.placement;
|
|
@@ -1493,7 +1493,7 @@ function ae(e, t, n, o) {
|
|
|
1493
1493
|
c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h = W(h).frameElement;
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
return
|
|
1496
|
+
return He({
|
|
1497
1497
|
width: d,
|
|
1498
1498
|
height: u,
|
|
1499
1499
|
x: c,
|
|
@@ -1542,7 +1542,7 @@ function Fr(e) {
|
|
|
1542
1542
|
y: a
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function kr(e, t) {
|
|
1546
1546
|
const n = W(e), o = K(e), i = n.visualViewport;
|
|
1547
1547
|
let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
1548
1548
|
if (i) {
|
|
@@ -1557,7 +1557,7 @@ function Hr(e, t) {
|
|
|
1557
1557
|
y: c
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Hr(e, t) {
|
|
1561
1561
|
const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = U(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
|
|
1562
1562
|
return {
|
|
1563
1563
|
width: s,
|
|
@@ -1569,11 +1569,11 @@ function kr(e, t) {
|
|
|
1569
1569
|
function wt(e, t, n) {
|
|
1570
1570
|
let o;
|
|
1571
1571
|
if (t === "viewport")
|
|
1572
|
-
o =
|
|
1572
|
+
o = kr(e, n);
|
|
1573
1573
|
else if (t === "document")
|
|
1574
1574
|
o = Fr(K(e));
|
|
1575
1575
|
else if (q(t))
|
|
1576
|
-
o =
|
|
1576
|
+
o = Hr(t, n);
|
|
1577
1577
|
else {
|
|
1578
1578
|
const i = Yt(e);
|
|
1579
1579
|
o = {
|
|
@@ -1582,7 +1582,7 @@ function wt(e, t, n) {
|
|
|
1582
1582
|
y: t.y - i.y
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
|
-
return
|
|
1585
|
+
return He(o);
|
|
1586
1586
|
}
|
|
1587
1587
|
function qt(e, t) {
|
|
1588
1588
|
const n = fe(e);
|
|
@@ -1883,7 +1883,7 @@ function Zr(e) {
|
|
|
1883
1883
|
...Z,
|
|
1884
1884
|
isPositioned: !0
|
|
1885
1885
|
};
|
|
1886
|
-
|
|
1886
|
+
H.current && !Be(A.current, J) && (A.current = J, wn.flushSync(() => {
|
|
1887
1887
|
u(J);
|
|
1888
1888
|
}));
|
|
1889
1889
|
});
|
|
@@ -1894,9 +1894,9 @@ function Zr(e) {
|
|
|
1894
1894
|
isPositioned: !1
|
|
1895
1895
|
})));
|
|
1896
1896
|
}, [l]);
|
|
1897
|
-
const
|
|
1898
|
-
Me(() => (
|
|
1899
|
-
|
|
1897
|
+
const H = N.useRef(!1);
|
|
1898
|
+
Me(() => (H.current = !0, () => {
|
|
1899
|
+
H.current = !1;
|
|
1900
1900
|
}), []), Me(() => {
|
|
1901
1901
|
if ($ && (_.current = $), b && (E.current = b), $ && b) {
|
|
1902
1902
|
if (C.current)
|
|
@@ -1985,7 +1985,7 @@ function eo(e) {
|
|
|
1985
1985
|
e
|
|
1986
1986
|
]), t;
|
|
1987
1987
|
}
|
|
1988
|
-
const Jt = "Popper", [Qt, en] =
|
|
1988
|
+
const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
1989
1989
|
const { __scopePopper: t, children: n } = e, [o, i] = z(null);
|
|
1990
1990
|
return /* @__PURE__ */ w(to, {
|
|
1991
1991
|
scope: t,
|
|
@@ -2004,7 +2004,7 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2004
2004
|
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: _, ...E } = e, A = tn(nn, d), [C, F] = z(null), T = pe(
|
|
2005
2005
|
t,
|
|
2006
2006
|
(ve) => F(ve)
|
|
2007
|
-
), [
|
|
2007
|
+
), [H, D] = z(null), O = eo(H), V = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
|
|
2008
2008
|
top: 0,
|
|
2009
2009
|
right: 0,
|
|
2010
2010
|
bottom: 0,
|
|
@@ -2048,8 +2048,8 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2048
2048
|
Ce.setProperty("--radix-popper-available-width", `${vn}px`), Ce.setProperty("--radix-popper-available-height", `${yn}px`), Ce.setProperty("--radix-popper-anchor-width", `${bn}px`), Ce.setProperty("--radix-popper-anchor-height", `${xn}px`);
|
|
2049
2049
|
}
|
|
2050
2050
|
}),
|
|
2051
|
-
|
|
2052
|
-
element:
|
|
2051
|
+
H && Kr({
|
|
2052
|
+
element: H,
|
|
2053
2053
|
padding: g
|
|
2054
2054
|
}),
|
|
2055
2055
|
po({
|
|
@@ -2253,7 +2253,7 @@ function xo(e) {
|
|
|
2253
2253
|
"mounted",
|
|
2254
2254
|
"unmountSuspended"
|
|
2255
2255
|
].includes(a),
|
|
2256
|
-
ref:
|
|
2256
|
+
ref: k((l) => {
|
|
2257
2257
|
l && (o.current = getComputedStyle(l)), n(l);
|
|
2258
2258
|
}, [])
|
|
2259
2259
|
};
|
|
@@ -2266,7 +2266,7 @@ function $o({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2266
2266
|
const [o, i] = _o({
|
|
2267
2267
|
defaultProp: t,
|
|
2268
2268
|
onChange: n
|
|
2269
|
-
}), r = e !== void 0, s = r ? e : o, a = he(n), c =
|
|
2269
|
+
}), r = e !== void 0, s = r ? e : o, a = he(n), c = k((l) => {
|
|
2270
2270
|
if (r) {
|
|
2271
2271
|
const u = typeof l == "function" ? l(e) : l;
|
|
2272
2272
|
u !== e && a(u);
|
|
@@ -2309,7 +2309,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2309
2309
|
wordWrap: "normal",
|
|
2310
2310
|
...e.style
|
|
2311
2311
|
}
|
|
2312
|
-
}))), Ao = wo, [Ve, hi] =
|
|
2312
|
+
}))), Ao = wo, [Ve, hi] = Ht("Tooltip", [
|
|
2313
2313
|
en
|
|
2314
2314
|
]), je = en(), Po = "TooltipProvider", Eo = 700, Ze = "tooltip.open", [Oo, st] = Ve(Po), To = (e) => {
|
|
2315
2315
|
const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = z(!0), c = L(!1), l = L(0);
|
|
@@ -2320,10 +2320,10 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2320
2320
|
scope: t,
|
|
2321
2321
|
isOpenDelayed: s,
|
|
2322
2322
|
delayDuration: n,
|
|
2323
|
-
onOpen:
|
|
2323
|
+
onOpen: k(() => {
|
|
2324
2324
|
window.clearTimeout(l.current), a(!1);
|
|
2325
2325
|
}, []),
|
|
2326
|
-
onClose:
|
|
2326
|
+
onClose: k(() => {
|
|
2327
2327
|
window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
2328
2328
|
() => a(!0),
|
|
2329
2329
|
o
|
|
@@ -2332,7 +2332,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2332
2332
|
o
|
|
2333
2333
|
]),
|
|
2334
2334
|
isPointerInTransitRef: c,
|
|
2335
|
-
onPointerInTransitChange:
|
|
2335
|
+
onPointerInTransitChange: k((d) => {
|
|
2336
2336
|
c.current = d;
|
|
2337
2337
|
}, []),
|
|
2338
2338
|
disableHoverableContent: i
|
|
@@ -2346,15 +2346,15 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
}), x = xe(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [
|
|
2348
2348
|
v
|
|
2349
|
-
]), $ =
|
|
2349
|
+
]), $ = k(() => {
|
|
2350
2350
|
window.clearTimeout(f.current), m.current = !1, y(!0);
|
|
2351
2351
|
}, [
|
|
2352
2352
|
y
|
|
2353
|
-
]), b =
|
|
2353
|
+
]), b = k(() => {
|
|
2354
2354
|
window.clearTimeout(f.current), y(!1);
|
|
2355
2355
|
}, [
|
|
2356
2356
|
y
|
|
2357
|
-
]), _ =
|
|
2357
|
+
]), _ = k(() => {
|
|
2358
2358
|
window.clearTimeout(f.current), f.current = window.setTimeout(() => {
|
|
2359
2359
|
m.current = !0, y(!0);
|
|
2360
2360
|
}, g);
|
|
@@ -2369,14 +2369,14 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2369
2369
|
stateAttribute: x,
|
|
2370
2370
|
trigger: d,
|
|
2371
2371
|
onTriggerChange: u,
|
|
2372
|
-
onTriggerEnter:
|
|
2372
|
+
onTriggerEnter: k(() => {
|
|
2373
2373
|
c.isOpenDelayed ? _() : $();
|
|
2374
2374
|
}, [
|
|
2375
2375
|
c.isOpenDelayed,
|
|
2376
2376
|
_,
|
|
2377
2377
|
$
|
|
2378
2378
|
]),
|
|
2379
|
-
onTriggerLeave:
|
|
2379
|
+
onTriggerLeave: k(() => {
|
|
2380
2380
|
h ? b() : window.clearTimeout(f.current);
|
|
2381
2381
|
}, [
|
|
2382
2382
|
b,
|
|
@@ -2387,7 +2387,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2387
2387
|
disableHoverableContent: h
|
|
2388
2388
|
}, n));
|
|
2389
2389
|
}, Ot = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
|
|
2390
|
-
const { __scopeTooltip: n, ...o } = e, i = Pe(Ot, n), r = st(Ot, n), s = je(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u =
|
|
2390
|
+
const { __scopeTooltip: n, ...o } = e, i = Pe(Ot, n), r = st(Ot, n), s = je(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = k(
|
|
2391
2391
|
() => l.current = !1,
|
|
2392
2392
|
[]
|
|
2393
2393
|
);
|
|
@@ -2446,11 +2446,11 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2446
2446
|
ref: t
|
|
2447
2447
|
})));
|
|
2448
2448
|
}), Io = /* @__PURE__ */ M((e, t) => {
|
|
2449
|
-
const n = Pe(we, e.__scopeTooltip), o = st(we, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = z(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p =
|
|
2449
|
+
const n = Pe(we, e.__scopeTooltip), o = st(we, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = z(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = k(() => {
|
|
2450
2450
|
a(null), u(!1);
|
|
2451
2451
|
}, [
|
|
2452
2452
|
u
|
|
2453
|
-
]), f =
|
|
2453
|
+
]), f = k((h, g) => {
|
|
2454
2454
|
const m = h.currentTarget, v = {
|
|
2455
2455
|
x: h.clientX,
|
|
2456
2456
|
y: h.clientY
|
|
@@ -2496,7 +2496,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2496
2496
|
]), /* @__PURE__ */ w(sn, S({}, e, {
|
|
2497
2497
|
ref: r
|
|
2498
2498
|
}));
|
|
2499
|
-
}), [Fo,
|
|
2499
|
+
}), [Fo, ko] = Ve(at, {
|
|
2500
2500
|
isInside: !1
|
|
2501
2501
|
}), sn = /* @__PURE__ */ M((e, t) => {
|
|
2502
2502
|
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Pe(we, n), l = je(n), { onClose: d } = c;
|
|
@@ -2543,9 +2543,9 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2543
2543
|
id: c.contentId,
|
|
2544
2544
|
role: "tooltip"
|
|
2545
2545
|
}, i || o))));
|
|
2546
|
-
}),
|
|
2546
|
+
}), Ho = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
|
|
2547
2547
|
const { __scopeTooltip: n, ...o } = e, i = je(n);
|
|
2548
|
-
return Ho
|
|
2548
|
+
return ko(Ho, n).isInside ? null : /* @__PURE__ */ w(vo, S({}, i, o, {
|
|
2549
2549
|
ref: t
|
|
2550
2550
|
}));
|
|
2551
2551
|
});
|