@purpurds/tooltip 5.12.0 → 5.14.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/{16acb7403ca96ce53adb27894992a2cb41cafee5.untar.log → 29cf122e03974d233e35539e6e2979d98226a157.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +5 -5
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +3 -3
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +2 -2
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +118 -118
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +6 -6
package/dist/tooltip.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as We, jsx as k } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import { forwardRef as M, useCallback as F, createContext as Ue, useMemo as be, createElement as _, useContext as Pt, Fragment as yn, Children as re, isValidElement as Ne, cloneElement as Ke, useEffect as R, useRef as L, useState as j, useLayoutEffect as
|
|
3
|
+
import { forwardRef as M, useCallback as F, createContext as Ue, useMemo as be, createElement as _, useContext as Pt, Fragment as yn, Children as re, isValidElement as Ne, cloneElement as Ke, useEffect as R, useRef as L, useState as j, useLayoutEffect as At, useReducer as xn } from "react";
|
|
4
4
|
import * as bn from "react-dom";
|
|
5
|
-
import $n, { flushSync as
|
|
5
|
+
import $n, { flushSync as Ot } from "react-dom";
|
|
6
6
|
const wn = {
|
|
7
7
|
PRIMARY: "primary",
|
|
8
8
|
SECONDARY: "secondary",
|
|
@@ -51,10 +51,10 @@ var Ct = { exports: {} };
|
|
|
51
51
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
52
52
|
})();
|
|
53
53
|
})(Ct);
|
|
54
|
-
var
|
|
55
|
-
const ut = /* @__PURE__ */ Pn(
|
|
54
|
+
var An = Ct.exports;
|
|
55
|
+
const ut = /* @__PURE__ */ Pn(An), On = "_rotate_1xozj_1", Cn = "_dash_1xozj_1", me = {
|
|
56
56
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
57
|
-
rotate:
|
|
57
|
+
rotate: On,
|
|
58
58
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
59
59
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
60
60
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
@@ -268,7 +268,7 @@ const Hn = /* @__PURE__ */ In(Fn), Bn = {
|
|
|
268
268
|
keywords: ["info"],
|
|
269
269
|
category: "status"
|
|
270
270
|
}, St = (e) => /* @__PURE__ */ k(
|
|
271
|
-
|
|
271
|
+
Yn,
|
|
272
272
|
{
|
|
273
273
|
...e,
|
|
274
274
|
svg: jn
|
|
@@ -283,7 +283,7 @@ const zn = Hn.bind(Bn), dt = "purpur-icon", Wn = "md", Un = (e) => e.filter((t)
|
|
|
283
283
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
284
284
|
], o = t ? `<title>${t}</title>` : "";
|
|
285
285
|
return `<svg ${Un(n)}>${o}${e}</svg>`;
|
|
286
|
-
},
|
|
286
|
+
}, Xn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yn = ({
|
|
287
287
|
["data-testid"]: e,
|
|
288
288
|
svg: t,
|
|
289
289
|
allyTitle: n,
|
|
@@ -292,7 +292,7 @@ const zn = Hn.bind(Bn), dt = "purpur-icon", Wn = "md", Un = (e) => e.filter((t)
|
|
|
292
292
|
...r
|
|
293
293
|
}) => {
|
|
294
294
|
const s = Vn({
|
|
295
|
-
content:
|
|
295
|
+
content: Xn(t.svg),
|
|
296
296
|
title: n
|
|
297
297
|
}), a = zn(o, dt, `${dt}--${i}`);
|
|
298
298
|
return /* @__PURE__ */ k(
|
|
@@ -306,7 +306,7 @@ const zn = Hn.bind(Bn), dt = "purpur-icon", Wn = "md", Un = (e) => e.filter((t)
|
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function Gn(e) {
|
|
310
310
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
311
311
|
}
|
|
312
312
|
var Dt = { exports: {} };
|
|
@@ -346,7 +346,7 @@ var Dt = { exports: {} };
|
|
|
346
346
|
})();
|
|
347
347
|
})(Dt);
|
|
348
348
|
var qn = Dt.exports;
|
|
349
|
-
const Kn = /* @__PURE__ */
|
|
349
|
+
const Kn = /* @__PURE__ */ Gn(qn), ye = {
|
|
350
350
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
351
351
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
352
352
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -406,7 +406,7 @@ function S() {
|
|
|
406
406
|
return e;
|
|
407
407
|
}, S.apply(this, arguments);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function X(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
410
410
|
return function(i) {
|
|
411
411
|
if (e == null || e(i), n === !1 || !i.defaultPrevented) return t == null ? void 0 : t(i);
|
|
412
412
|
};
|
|
@@ -581,7 +581,7 @@ const nr = [
|
|
|
581
581
|
};
|
|
582
582
|
}, {});
|
|
583
583
|
function rr(e, t) {
|
|
584
|
-
e &&
|
|
584
|
+
e && Ot(
|
|
585
585
|
() => e.dispatchEvent(t)
|
|
586
586
|
);
|
|
587
587
|
}
|
|
@@ -609,7 +609,7 @@ function or(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
609
609
|
t
|
|
610
610
|
]);
|
|
611
611
|
}
|
|
612
|
-
const
|
|
612
|
+
const Xe = "dismissableLayer.update", ir = "dismissableLayer.pointerDownOutside", sr = "dismissableLayer.focusOutside";
|
|
613
613
|
let ft;
|
|
614
614
|
const ar = /* @__PURE__ */ Ue({
|
|
615
615
|
layers: /* @__PURE__ */ new Set(),
|
|
@@ -629,7 +629,7 @@ const ar = /* @__PURE__ */ Ue({
|
|
|
629
629
|
(E) => E.contains(T)
|
|
630
630
|
);
|
|
631
631
|
!x || I || (r == null || r(P), a == null || a(P), P.defaultPrevented || c == null || c());
|
|
632
|
-
}, f),
|
|
632
|
+
}, f), O = ur((P) => {
|
|
633
633
|
const T = P.target;
|
|
634
634
|
[
|
|
635
635
|
...u.branches
|
|
@@ -656,16 +656,16 @@ const ar = /* @__PURE__ */ Ue({
|
|
|
656
656
|
u
|
|
657
657
|
]), R(() => {
|
|
658
658
|
const P = () => h({});
|
|
659
|
-
return document.addEventListener(
|
|
659
|
+
return document.addEventListener(Xe, P), () => document.removeEventListener(Xe, P);
|
|
660
660
|
}, []), /* @__PURE__ */ _(ie.div, S({}, l, {
|
|
661
661
|
ref: g,
|
|
662
662
|
style: {
|
|
663
663
|
pointerEvents: $ ? x ? "auto" : "none" : void 0,
|
|
664
664
|
...e.style
|
|
665
665
|
},
|
|
666
|
-
onFocusCapture:
|
|
667
|
-
onBlurCapture:
|
|
668
|
-
onPointerDownCapture:
|
|
666
|
+
onFocusCapture: X(e.onFocusCapture, O.onFocusCapture),
|
|
667
|
+
onBlurCapture: X(e.onBlurCapture, O.onBlurCapture),
|
|
668
|
+
onPointerDownCapture: X(e.onPointerDownCapture, w.onPointerDownCapture)
|
|
669
669
|
}));
|
|
670
670
|
});
|
|
671
671
|
function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -722,7 +722,7 @@ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
724
|
function pt() {
|
|
725
|
-
const e = new CustomEvent(
|
|
725
|
+
const e = new CustomEvent(Xe);
|
|
726
726
|
document.dispatchEvent(e);
|
|
727
727
|
}
|
|
728
728
|
function Ht(e, t, n, { discrete: o }) {
|
|
@@ -735,7 +735,7 @@ function Ht(e, t, n, { discrete: o }) {
|
|
|
735
735
|
once: !0
|
|
736
736
|
}), o ? rr(i, r) : i.dispatchEvent(r);
|
|
737
737
|
}
|
|
738
|
-
const le = globalThis != null && globalThis.document ?
|
|
738
|
+
const le = globalThis != null && globalThis.document ? At : () => {
|
|
739
739
|
}, dr = N.useId || (() => {
|
|
740
740
|
});
|
|
741
741
|
let fr = 0;
|
|
@@ -761,13 +761,13 @@ const hr = ["top", "right", "bottom", "left"], Q = Math.min, B = Math.max, Le =
|
|
|
761
761
|
start: "end",
|
|
762
762
|
end: "start"
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function Ye(e, t, n) {
|
|
765
765
|
return B(e, Q(t, n));
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Y(e, t) {
|
|
768
768
|
return typeof e == "function" ? e(t) : e;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function G(e) {
|
|
771
771
|
return e.split("-")[0];
|
|
772
772
|
}
|
|
773
773
|
function pe(e) {
|
|
@@ -780,7 +780,7 @@ function Je(e) {
|
|
|
780
780
|
return e === "y" ? "height" : "width";
|
|
781
781
|
}
|
|
782
782
|
function he(e) {
|
|
783
|
-
return ["top", "bottom"].includes(
|
|
783
|
+
return ["top", "bottom"].includes(G(e)) ? "y" : "x";
|
|
784
784
|
}
|
|
785
785
|
function Qe(e) {
|
|
786
786
|
return Ze(he(e));
|
|
@@ -793,9 +793,9 @@ function vr(e, t, n) {
|
|
|
793
793
|
}
|
|
794
794
|
function yr(e) {
|
|
795
795
|
const t = Me(e);
|
|
796
|
-
return [
|
|
796
|
+
return [Ge(e), t, Ge(t)];
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Ge(e) {
|
|
799
799
|
return e.replace(/start|end/g, (t) => mr[t]);
|
|
800
800
|
}
|
|
801
801
|
function xr(e, t, n) {
|
|
@@ -813,8 +813,8 @@ function xr(e, t, n) {
|
|
|
813
813
|
}
|
|
814
814
|
function br(e, t, n, o) {
|
|
815
815
|
const i = pe(e);
|
|
816
|
-
let r = xr(
|
|
817
|
-
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(
|
|
816
|
+
let r = xr(G(e), n === "start", o);
|
|
817
|
+
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ge)))), r;
|
|
818
818
|
}
|
|
819
819
|
function Me(e) {
|
|
820
820
|
return e.replace(/left|right|bottom|top/g, (t) => gr[t]);
|
|
@@ -850,7 +850,7 @@ function ht(e, t, n) {
|
|
|
850
850
|
reference: o,
|
|
851
851
|
floating: i
|
|
852
852
|
} = e;
|
|
853
|
-
const r = he(t), s = Qe(t), a = Je(s), c =
|
|
853
|
+
const r = he(t), s = Qe(t), a = Je(s), c = G(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[a] / 2 - i[a] / 2;
|
|
854
854
|
let f;
|
|
855
855
|
switch (c) {
|
|
856
856
|
case "top":
|
|
@@ -973,7 +973,7 @@ async function $e(e, t) {
|
|
|
973
973
|
elementContext: d = "floating",
|
|
974
974
|
altBoundary: p = !1,
|
|
975
975
|
padding: f = 0
|
|
976
|
-
} =
|
|
976
|
+
} = Y(t, e), h = Bt(f), m = a[p ? d === "floating" ? "reference" : "floating" : d], v = ke(await r.getClippingRect({
|
|
977
977
|
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)),
|
|
978
978
|
boundary: l,
|
|
979
979
|
rootBoundary: u,
|
|
@@ -1014,7 +1014,7 @@ const gt = (e) => ({
|
|
|
1014
1014
|
} = t, {
|
|
1015
1015
|
element: c,
|
|
1016
1016
|
padding: l = 0
|
|
1017
|
-
} =
|
|
1017
|
+
} = Y(e, t) || {};
|
|
1018
1018
|
if (c == null)
|
|
1019
1019
|
return {};
|
|
1020
1020
|
const u = Bt(l), d = {
|
|
@@ -1023,12 +1023,12 @@ const gt = (e) => ({
|
|
|
1023
1023
|
}, p = Qe(i), f = Je(p), h = await s.getDimensions(c), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = r.reference[f] + r.reference[p] - d[p] - r.floating[f], $ = d[p] - r.reference[p], x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
1024
1024
|
let w = x ? x[y] : 0;
|
|
1025
1025
|
(!w || !await (s.isElement == null ? void 0 : s.isElement(x))) && (w = a.floating[y] || r.floating[f]);
|
|
1026
|
-
const
|
|
1026
|
+
const O = b / 2 - $ / 2, P = w / 2 - h[f] / 2 - 1, T = Q(u[m], P), I = Q(u[v], P), E = T, H = w - h[f] - I, D = w / 2 - h[f] / 2 + O, C = Ye(E, D, H), A = pe(i) != null && D != C && r.reference[f] / 2 - (D < E ? T : I) - h[f] / 2 < 0 ? D < E ? E - D : H - D : 0;
|
|
1027
1027
|
return {
|
|
1028
|
-
[p]: d[p] -
|
|
1028
|
+
[p]: d[p] - A,
|
|
1029
1029
|
data: {
|
|
1030
1030
|
[p]: C,
|
|
1031
|
-
centerOffset: D - C +
|
|
1031
|
+
centerOffset: D - C + A
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
@@ -1053,15 +1053,15 @@ const gt = (e) => ({
|
|
|
1053
1053
|
fallbackAxisSideDirection: f = "none",
|
|
1054
1054
|
flipAlignment: h = !0,
|
|
1055
1055
|
...g
|
|
1056
|
-
} =
|
|
1056
|
+
} = Y(e, t), m = G(o), v = G(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = d || (v || !h ? [Me(s)] : yr(s));
|
|
1057
1057
|
!d && f !== "none" && b.push(...br(s, h, f, y));
|
|
1058
1058
|
const $ = [s, ...b], x = await $e(t, g), w = [];
|
|
1059
|
-
let
|
|
1059
|
+
let O = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
1060
1060
|
if (l && w.push(x[m]), u) {
|
|
1061
1061
|
const E = vr(o, r, y);
|
|
1062
1062
|
w.push(x[E[0]], x[E[1]]);
|
|
1063
1063
|
}
|
|
1064
|
-
if (
|
|
1064
|
+
if (O = [...O, {
|
|
1065
1065
|
placement: o,
|
|
1066
1066
|
overflows: w
|
|
1067
1067
|
}], !w.every((E) => E <= 0)) {
|
|
@@ -1071,18 +1071,18 @@ const gt = (e) => ({
|
|
|
1071
1071
|
return {
|
|
1072
1072
|
data: {
|
|
1073
1073
|
index: E,
|
|
1074
|
-
overflows:
|
|
1074
|
+
overflows: O
|
|
1075
1075
|
},
|
|
1076
1076
|
reset: {
|
|
1077
1077
|
placement: H
|
|
1078
1078
|
}
|
|
1079
1079
|
};
|
|
1080
|
-
let D = (T =
|
|
1080
|
+
let D = (T = O.filter((C) => C.overflows[0] <= 0).sort((C, W) => C.overflows[1] - W.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
1081
1081
|
if (!D)
|
|
1082
1082
|
switch (p) {
|
|
1083
1083
|
case "bestFit": {
|
|
1084
1084
|
var I;
|
|
1085
|
-
const C = (I =
|
|
1085
|
+
const C = (I = O.map((W) => [W.placement, W.overflows.filter((A) => A > 0).reduce((A, Z) => A + Z, 0)]).sort((W, A) => W[1] - A[1])[0]) == null ? void 0 : I[0];
|
|
1086
1086
|
C && (D = C);
|
|
1087
1087
|
break;
|
|
1088
1088
|
}
|
|
@@ -1122,7 +1122,7 @@ const Pr = function(e) {
|
|
|
1122
1122
|
} = t, {
|
|
1123
1123
|
strategy: o = "referenceHidden",
|
|
1124
1124
|
...i
|
|
1125
|
-
} =
|
|
1125
|
+
} = Y(e, t);
|
|
1126
1126
|
switch (o) {
|
|
1127
1127
|
case "referenceHidden": {
|
|
1128
1128
|
const r = await $e(t, {
|
|
@@ -1154,12 +1154,12 @@ const Pr = function(e) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
};
|
|
1156
1156
|
};
|
|
1157
|
-
async function
|
|
1157
|
+
async function Ar(e, t) {
|
|
1158
1158
|
const {
|
|
1159
1159
|
placement: n,
|
|
1160
1160
|
platform: o,
|
|
1161
1161
|
elements: i
|
|
1162
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s =
|
|
1162
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = G(n), a = pe(n), c = he(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = Y(t, e);
|
|
1163
1163
|
let {
|
|
1164
1164
|
mainAxis: p,
|
|
1165
1165
|
crossAxis: f,
|
|
@@ -1182,7 +1182,7 @@ async function Or(e, t) {
|
|
|
1182
1182
|
y: f * u
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
const
|
|
1185
|
+
const Or = function(e) {
|
|
1186
1186
|
return e === void 0 && (e = 0), {
|
|
1187
1187
|
name: "offset",
|
|
1188
1188
|
options: e,
|
|
@@ -1190,7 +1190,7 @@ const Ar = function(e) {
|
|
|
1190
1190
|
const {
|
|
1191
1191
|
x: n,
|
|
1192
1192
|
y: o
|
|
1193
|
-
} = t, i = await
|
|
1193
|
+
} = t, i = await Ar(t, e);
|
|
1194
1194
|
return {
|
|
1195
1195
|
x: n + i.x,
|
|
1196
1196
|
y: o + i.y,
|
|
@@ -1223,18 +1223,18 @@ const Ar = function(e) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
1225
|
...c
|
|
1226
|
-
} =
|
|
1226
|
+
} = Y(e, t), l = {
|
|
1227
1227
|
x: n,
|
|
1228
1228
|
y: o
|
|
1229
|
-
}, u = await $e(t, c), d = he(
|
|
1229
|
+
}, u = await $e(t, c), d = he(G(i)), p = Ze(d);
|
|
1230
1230
|
let f = l[p], h = l[d];
|
|
1231
1231
|
if (r) {
|
|
1232
1232
|
const m = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + u[m], b = f - u[v];
|
|
1233
|
-
f =
|
|
1233
|
+
f = Ye(y, f, b);
|
|
1234
1234
|
}
|
|
1235
1235
|
if (s) {
|
|
1236
1236
|
const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = h + u[m], b = h - u[v];
|
|
1237
|
-
h =
|
|
1237
|
+
h = Ye(y, h, b);
|
|
1238
1238
|
}
|
|
1239
1239
|
const g = a.fn({
|
|
1240
1240
|
...t,
|
|
@@ -1264,12 +1264,12 @@ const Ar = function(e) {
|
|
|
1264
1264
|
offset: a = 0,
|
|
1265
1265
|
mainAxis: c = !0,
|
|
1266
1266
|
crossAxis: l = !0
|
|
1267
|
-
} =
|
|
1267
|
+
} = Y(e, t), u = {
|
|
1268
1268
|
x: n,
|
|
1269
1269
|
y: o
|
|
1270
1270
|
}, d = he(i), p = Ze(d);
|
|
1271
1271
|
let f = u[p], h = u[d];
|
|
1272
|
-
const g =
|
|
1272
|
+
const g = Y(a, t), m = typeof g == "number" ? {
|
|
1273
1273
|
mainAxis: g,
|
|
1274
1274
|
crossAxis: 0
|
|
1275
1275
|
} : {
|
|
@@ -1283,7 +1283,7 @@ const Ar = function(e) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
if (l) {
|
|
1285
1285
|
var v, y;
|
|
1286
|
-
const b = p === "y" ? "width" : "height", $ = ["top", "left"].includes(
|
|
1286
|
+
const b = p === "y" ? "width" : "height", $ = ["top", "left"].includes(G(i)), x = r.reference[d] - r.floating[b] + ($ && ((v = s.offset) == null ? void 0 : v[d]) || 0) + ($ ? 0 : m.crossAxis), w = r.reference[d] + r.reference[b] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[d]) || 0) - ($ ? m.crossAxis : 0);
|
|
1287
1287
|
h < x ? h = x : h > w && (h = w);
|
|
1288
1288
|
}
|
|
1289
1289
|
return {
|
|
@@ -1306,7 +1306,7 @@ const Ar = function(e) {
|
|
|
1306
1306
|
apply: s = () => {
|
|
1307
1307
|
},
|
|
1308
1308
|
...a
|
|
1309
|
-
} =
|
|
1309
|
+
} = Y(e, t), c = await $e(t, a), l = G(n), u = pe(n), d = he(n) === "y", {
|
|
1310
1310
|
width: p,
|
|
1311
1311
|
height: f
|
|
1312
1312
|
} = o.floating;
|
|
@@ -1322,8 +1322,8 @@ const Ar = function(e) {
|
|
|
1322
1322
|
b = u || y ? Q(m, w) : w;
|
|
1323
1323
|
}
|
|
1324
1324
|
if (y && !u) {
|
|
1325
|
-
const w = B(c.left, 0),
|
|
1326
|
-
d ? $ = p - 2 * (w !== 0 ||
|
|
1325
|
+
const w = B(c.left, 0), O = B(c.right, 0), P = B(c.top, 0), T = B(c.bottom, 0);
|
|
1326
|
+
d ? $ = p - 2 * (w !== 0 || O !== 0 ? w + O : B(c.left, c.right)) : b = f - 2 * (P !== 0 || T !== 0 ? P + T : B(c.top, c.bottom));
|
|
1327
1327
|
}
|
|
1328
1328
|
await s({
|
|
1329
1329
|
...t,
|
|
@@ -1572,9 +1572,9 @@ function xt(e, t, n) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
return ke(o);
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1575
|
+
function Xt(e, t) {
|
|
1576
1576
|
const n = ue(e);
|
|
1577
|
-
return n === t || !q(n) || Fe(n) ? !1 : U(n).position === "fixed" ||
|
|
1577
|
+
return n === t || !q(n) || Fe(n) ? !1 : U(n).position === "fixed" || Xt(n, t);
|
|
1578
1578
|
}
|
|
1579
1579
|
function Hr(e, t) {
|
|
1580
1580
|
const n = t.get(e);
|
|
@@ -1585,7 +1585,7 @@ function Hr(e, t) {
|
|
|
1585
1585
|
let s = r ? ue(e) : e;
|
|
1586
1586
|
for (; q(s) && !Fe(s); ) {
|
|
1587
1587
|
const a = U(s), c = et(s);
|
|
1588
|
-
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Pe(s) && !c &&
|
|
1588
|
+
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Pe(s) && !c && Xt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = ue(s);
|
|
1589
1589
|
}
|
|
1590
1590
|
return t.set(e, o), o;
|
|
1591
1591
|
}
|
|
@@ -1632,7 +1632,7 @@ function zr(e, t, n) {
|
|
|
1632
1632
|
function bt(e, t) {
|
|
1633
1633
|
return !V(e) || U(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function Yt(e, t) {
|
|
1636
1636
|
const n = z(e);
|
|
1637
1637
|
if (!V(e))
|
|
1638
1638
|
return n;
|
|
@@ -1647,7 +1647,7 @@ const Wr = async function(e) {
|
|
|
1647
1647
|
floating: n,
|
|
1648
1648
|
strategy: o
|
|
1649
1649
|
} = e;
|
|
1650
|
-
const i = this.getOffsetParent ||
|
|
1650
|
+
const i = this.getOffsetParent || Yt, r = this.getDimensions;
|
|
1651
1651
|
return {
|
|
1652
1652
|
reference: zr(t, await i(n), o),
|
|
1653
1653
|
floating: {
|
|
@@ -1664,7 +1664,7 @@ const Vr = {
|
|
|
1664
1664
|
convertOffsetParentRelativeRectToViewportRelativeRect: Lr,
|
|
1665
1665
|
getDocumentElement: K,
|
|
1666
1666
|
getClippingRect: Br,
|
|
1667
|
-
getOffsetParent:
|
|
1667
|
+
getOffsetParent: Yt,
|
|
1668
1668
|
getElementRects: Wr,
|
|
1669
1669
|
getClientRects: Mr,
|
|
1670
1670
|
getDimensions: jr,
|
|
@@ -1672,7 +1672,7 @@ const Vr = {
|
|
|
1672
1672
|
isElement: q,
|
|
1673
1673
|
isRTL: Ur
|
|
1674
1674
|
};
|
|
1675
|
-
function
|
|
1675
|
+
function Xr(e, t) {
|
|
1676
1676
|
let n = null, o;
|
|
1677
1677
|
const i = K(e);
|
|
1678
1678
|
function r() {
|
|
@@ -1717,7 +1717,7 @@ function Gr(e, t) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
return s(!0), r;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Yr(e, t, n, o) {
|
|
1721
1721
|
o === void 0 && (o = {});
|
|
1722
1722
|
const {
|
|
1723
1723
|
ancestorScroll: i = !0,
|
|
@@ -1731,7 +1731,7 @@ function Xr(e, t, n, o) {
|
|
|
1731
1731
|
passive: !0
|
|
1732
1732
|
}), r && v.addEventListener("resize", n);
|
|
1733
1733
|
});
|
|
1734
|
-
const d = l && a ?
|
|
1734
|
+
const d = l && a ? Xr(l, n) : null;
|
|
1735
1735
|
let p = -1, f = null;
|
|
1736
1736
|
s && (f = new ResizeObserver((v) => {
|
|
1737
1737
|
let [y] = v;
|
|
@@ -1751,7 +1751,7 @@ function Xr(e, t, n, o) {
|
|
|
1751
1751
|
}), d && d(), f && f.disconnect(), f = null, c && cancelAnimationFrame(h);
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
|
-
const
|
|
1754
|
+
const Gr = (e, t, n) => {
|
|
1755
1755
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1756
1756
|
platform: Vr,
|
|
1757
1757
|
...n
|
|
@@ -1785,7 +1785,7 @@ const Yr = (e, t, n) => {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
};
|
|
1787
1787
|
};
|
|
1788
|
-
var De = typeof document < "u" ?
|
|
1788
|
+
var De = typeof document < "u" ? At : R;
|
|
1789
1789
|
function Ie(e, t) {
|
|
1790
1790
|
if (e === t)
|
|
1791
1791
|
return !0;
|
|
@@ -1816,11 +1816,11 @@ function Ie(e, t) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
return e !== e && t !== t;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function Gt(e) {
|
|
1820
1820
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1821
1821
|
}
|
|
1822
1822
|
function $t(e, t) {
|
|
1823
|
-
const n =
|
|
1823
|
+
const n = Gt(e);
|
|
1824
1824
|
return Math.round(t * n) / n;
|
|
1825
1825
|
}
|
|
1826
1826
|
function wt(e) {
|
|
@@ -1852,19 +1852,19 @@ function Kr(e) {
|
|
|
1852
1852
|
isPositioned: !1
|
|
1853
1853
|
}), [p, f] = N.useState(o);
|
|
1854
1854
|
Ie(p, o) || f(o);
|
|
1855
|
-
const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((
|
|
1856
|
-
|
|
1857
|
-
}, [g]), b = N.useCallback((
|
|
1858
|
-
|
|
1859
|
-
}, [v]), $ = r || h, x = s || m, w = N.useRef(null),
|
|
1860
|
-
if (!w.current || !
|
|
1855
|
+
const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((A) => {
|
|
1856
|
+
A != w.current && (w.current = A, g(A));
|
|
1857
|
+
}, [g]), b = N.useCallback((A) => {
|
|
1858
|
+
A !== O.current && (O.current = A, v(A));
|
|
1859
|
+
}, [v]), $ = r || h, x = s || m, w = N.useRef(null), O = N.useRef(null), P = N.useRef(u), T = wt(c), I = wt(i), E = N.useCallback(() => {
|
|
1860
|
+
if (!w.current || !O.current)
|
|
1861
1861
|
return;
|
|
1862
|
-
const
|
|
1862
|
+
const A = {
|
|
1863
1863
|
placement: t,
|
|
1864
1864
|
strategy: n,
|
|
1865
1865
|
middleware: p
|
|
1866
1866
|
};
|
|
1867
|
-
I.current && (
|
|
1867
|
+
I.current && (A.platform = I.current), Gr(w.current, O.current, A).then((Z) => {
|
|
1868
1868
|
const J = {
|
|
1869
1869
|
...Z,
|
|
1870
1870
|
isPositioned: !0
|
|
@@ -1875,8 +1875,8 @@ function Kr(e) {
|
|
|
1875
1875
|
});
|
|
1876
1876
|
}, [p, t, n, I]);
|
|
1877
1877
|
De(() => {
|
|
1878
|
-
l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((
|
|
1879
|
-
...
|
|
1878
|
+
l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((A) => ({
|
|
1879
|
+
...A,
|
|
1880
1880
|
isPositioned: !1
|
|
1881
1881
|
})));
|
|
1882
1882
|
}, [l]);
|
|
@@ -1884,7 +1884,7 @@ function Kr(e) {
|
|
|
1884
1884
|
De(() => (H.current = !0, () => {
|
|
1885
1885
|
H.current = !1;
|
|
1886
1886
|
}), []), De(() => {
|
|
1887
|
-
if ($ && (w.current = $), x && (
|
|
1887
|
+
if ($ && (w.current = $), x && (O.current = x), $ && x) {
|
|
1888
1888
|
if (T.current)
|
|
1889
1889
|
return T.current($, x, E);
|
|
1890
1890
|
E();
|
|
@@ -1892,25 +1892,25 @@ function Kr(e) {
|
|
|
1892
1892
|
}, [$, x, E, T]);
|
|
1893
1893
|
const D = N.useMemo(() => ({
|
|
1894
1894
|
reference: w,
|
|
1895
|
-
floating:
|
|
1895
|
+
floating: O,
|
|
1896
1896
|
setReference: y,
|
|
1897
1897
|
setFloating: b
|
|
1898
1898
|
}), [y, b]), C = N.useMemo(() => ({
|
|
1899
1899
|
reference: $,
|
|
1900
1900
|
floating: x
|
|
1901
1901
|
}), [$, x]), W = N.useMemo(() => {
|
|
1902
|
-
const
|
|
1902
|
+
const A = {
|
|
1903
1903
|
position: n,
|
|
1904
1904
|
left: 0,
|
|
1905
1905
|
top: 0
|
|
1906
1906
|
};
|
|
1907
1907
|
if (!C.floating)
|
|
1908
|
-
return
|
|
1908
|
+
return A;
|
|
1909
1909
|
const Z = $t(C.floating, u.x), J = $t(C.floating, u.y);
|
|
1910
1910
|
return a ? {
|
|
1911
|
-
...
|
|
1911
|
+
...A,
|
|
1912
1912
|
transform: "translate(" + Z + "px, " + J + "px)",
|
|
1913
|
-
...
|
|
1913
|
+
...Gt(C.floating) >= 1.5 && {
|
|
1914
1914
|
willChange: "transform"
|
|
1915
1915
|
}
|
|
1916
1916
|
} : {
|
|
@@ -1986,10 +1986,10 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
1986
1986
|
}));
|
|
1987
1987
|
}), Qt = "PopperContent", [oo, io] = Kt(Qt), so = /* @__PURE__ */ M((e, t) => {
|
|
1988
1988
|
var n, o, i, r, s, a, c, l;
|
|
1989
|
-
const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: b = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: x = "optimized", onPlaced: w, ...
|
|
1989
|
+
const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: b = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: x = "optimized", onPlaced: w, ...O } = e, P = Jt(Qt, u), [T, I] = j(null), E = de(
|
|
1990
1990
|
t,
|
|
1991
1991
|
(ge) => I(ge)
|
|
1992
|
-
), [H, D] = j(null), C = Qr(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0,
|
|
1992
|
+
), [H, D] = j(null), C = Qr(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, A = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, Z = d + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
|
|
1993
1993
|
top: 0,
|
|
1994
1994
|
right: 0,
|
|
1995
1995
|
bottom: 0,
|
|
@@ -1997,7 +1997,7 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
1997
1997
|
...y
|
|
1998
1998
|
}, st = Array.isArray(v) ? v : [
|
|
1999
1999
|
v
|
|
2000
|
-
], on = st.length > 0,
|
|
2000
|
+
], on = st.length > 0, Oe = {
|
|
2001
2001
|
padding: J,
|
|
2002
2002
|
boundary: st.filter(uo),
|
|
2003
2003
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -2006,28 +2006,28 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
2006
2006
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2007
2007
|
strategy: "fixed",
|
|
2008
2008
|
placement: Z,
|
|
2009
|
-
whileElementsMounted: (...ge) =>
|
|
2009
|
+
whileElementsMounted: (...ge) => Yr(...ge, {
|
|
2010
2010
|
animationFrame: x === "always"
|
|
2011
2011
|
}),
|
|
2012
2012
|
elements: {
|
|
2013
2013
|
reference: P.anchor
|
|
2014
2014
|
},
|
|
2015
2015
|
middleware: [
|
|
2016
|
-
|
|
2017
|
-
mainAxis: p +
|
|
2016
|
+
Or({
|
|
2017
|
+
mainAxis: p + A,
|
|
2018
2018
|
alignmentAxis: h
|
|
2019
2019
|
}),
|
|
2020
2020
|
m && Cr({
|
|
2021
2021
|
mainAxis: !0,
|
|
2022
2022
|
crossAxis: !1,
|
|
2023
2023
|
limiter: b === "partial" ? Er() : void 0,
|
|
2024
|
-
...
|
|
2024
|
+
...Oe
|
|
2025
2025
|
}),
|
|
2026
2026
|
m && _r({
|
|
2027
|
-
...
|
|
2027
|
+
...Oe
|
|
2028
2028
|
}),
|
|
2029
2029
|
Tr({
|
|
2030
|
-
...
|
|
2030
|
+
...Oe,
|
|
2031
2031
|
apply: ({ elements: ge, rects: lt, availableWidth: hn, availableHeight: gn }) => {
|
|
2032
2032
|
const { width: mn, height: vn } = lt.reference, Te = ge.floating.style;
|
|
2033
2033
|
Te.setProperty("--radix-popper-available-width", `${hn}px`), Te.setProperty("--radix-popper-available-height", `${gn}px`), Te.setProperty("--radix-popper-anchor-width", `${mn}px`), Te.setProperty("--radix-popper-anchor-height", `${vn}px`);
|
|
@@ -2039,11 +2039,11 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
2039
2039
|
}),
|
|
2040
2040
|
fo({
|
|
2041
2041
|
arrowWidth: W,
|
|
2042
|
-
arrowHeight:
|
|
2042
|
+
arrowHeight: A
|
|
2043
2043
|
}),
|
|
2044
2044
|
$ && Pr({
|
|
2045
2045
|
strategy: "referenceHidden",
|
|
2046
|
-
...
|
|
2046
|
+
...Oe
|
|
2047
2047
|
})
|
|
2048
2048
|
]
|
|
2049
2049
|
}), [ct, cn] = en(an), Ee = fe(w);
|
|
@@ -2083,10 +2083,10 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
2083
2083
|
}, /* @__PURE__ */ _(ie.div, S({
|
|
2084
2084
|
"data-side": ct,
|
|
2085
2085
|
"data-align": cn
|
|
2086
|
-
},
|
|
2086
|
+
}, O, {
|
|
2087
2087
|
ref: E,
|
|
2088
2088
|
style: {
|
|
2089
|
-
...
|
|
2089
|
+
...O.style,
|
|
2090
2090
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2091
2091
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2092
2092
|
animation: Ce ? void 0 : "none",
|
|
@@ -2219,7 +2219,7 @@ function xo(e) {
|
|
|
2219
2219
|
if (t) {
|
|
2220
2220
|
const l = (d) => {
|
|
2221
2221
|
const f = Se(o.current).includes(d.animationName);
|
|
2222
|
-
d.target === t && f &&
|
|
2222
|
+
d.target === t && f && Ot(
|
|
2223
2223
|
() => c("ANIMATION_END")
|
|
2224
2224
|
);
|
|
2225
2225
|
}, u = (d) => {
|
|
@@ -2295,12 +2295,12 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
}))), _o = wo, [Be, fi] = kt("Tooltip", [
|
|
2297
2297
|
Zt
|
|
2298
|
-
]), je = Zt(), Po = "TooltipProvider",
|
|
2299
|
-
const { __scopeTooltip: t, delayDuration: n =
|
|
2298
|
+
]), je = Zt(), Po = "TooltipProvider", Ao = 700, qe = "tooltip.open", [Oo, ot] = Be(Po), Co = (e) => {
|
|
2299
|
+
const { __scopeTooltip: t, delayDuration: n = Ao, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
|
|
2300
2300
|
return R(() => {
|
|
2301
2301
|
const u = l.current;
|
|
2302
2302
|
return () => window.clearTimeout(u);
|
|
2303
|
-
}, []), /* @__PURE__ */ _(
|
|
2303
|
+
}, []), /* @__PURE__ */ _(Oo, {
|
|
2304
2304
|
scope: t,
|
|
2305
2305
|
isOpenDelayed: s,
|
|
2306
2306
|
delayDuration: n,
|
|
@@ -2321,12 +2321,12 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2321
2321
|
}, []),
|
|
2322
2322
|
disableHoverableContent: i
|
|
2323
2323
|
}, r);
|
|
2324
|
-
}, it = "Tooltip", [Eo,
|
|
2324
|
+
}, it = "Tooltip", [Eo, Ae] = Be(it), To = (e) => {
|
|
2325
2325
|
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = ot(it, e.__scopeTooltip), l = je(t), [u, d] = j(null), p = pr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = bo({
|
|
2326
2326
|
prop: o,
|
|
2327
2327
|
defaultProp: i,
|
|
2328
|
-
onChange: (
|
|
2329
|
-
|
|
2328
|
+
onChange: (O) => {
|
|
2329
|
+
O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(qe))) : c.onClose(), r == null || r(O);
|
|
2330
2330
|
}
|
|
2331
2331
|
}), b = be(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [
|
|
2332
2332
|
v
|
|
@@ -2371,7 +2371,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2371
2371
|
disableHoverableContent: h
|
|
2372
2372
|
}, n));
|
|
2373
2373
|
}, _t = "TooltipTrigger", Ro = /* @__PURE__ */ M((e, t) => {
|
|
2374
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2374
|
+
const { __scopeTooltip: n, ...o } = e, i = Ae(_t, n), r = ot(_t, n), s = je(n), a = L(null), c = de(t, a, i.onTriggerChange), l = L(!1), u = L(!1), d = F(
|
|
2375
2375
|
() => l.current = !1,
|
|
2376
2376
|
[]
|
|
2377
2377
|
);
|
|
@@ -2386,27 +2386,27 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2386
2386
|
"data-state": i.stateAttribute
|
|
2387
2387
|
}, o, {
|
|
2388
2388
|
ref: c,
|
|
2389
|
-
onPointerMove:
|
|
2389
|
+
onPointerMove: X(e.onPointerMove, (p) => {
|
|
2390
2390
|
p.pointerType !== "touch" && !u.current && !r.isPointerInTransitRef.current && (i.onTriggerEnter(), u.current = !0);
|
|
2391
2391
|
}),
|
|
2392
|
-
onPointerLeave:
|
|
2392
|
+
onPointerLeave: X(e.onPointerLeave, () => {
|
|
2393
2393
|
i.onTriggerLeave(), u.current = !1;
|
|
2394
2394
|
}),
|
|
2395
|
-
onPointerDown:
|
|
2395
|
+
onPointerDown: X(e.onPointerDown, () => {
|
|
2396
2396
|
l.current = !0, document.addEventListener("pointerup", d, {
|
|
2397
2397
|
once: !0
|
|
2398
2398
|
});
|
|
2399
2399
|
}),
|
|
2400
|
-
onFocus:
|
|
2400
|
+
onFocus: X(e.onFocus, () => {
|
|
2401
2401
|
l.current || i.onOpen();
|
|
2402
2402
|
}),
|
|
2403
|
-
onBlur:
|
|
2404
|
-
onClick:
|
|
2403
|
+
onBlur: X(e.onBlur, i.onClose),
|
|
2404
|
+
onClick: X(e.onClick, i.onClose)
|
|
2405
2405
|
})));
|
|
2406
2406
|
}), tn = "TooltipPortal", [So, Do] = Be(tn, {
|
|
2407
2407
|
forceMount: void 0
|
|
2408
2408
|
}), No = (e) => {
|
|
2409
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r =
|
|
2409
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ae(tn, t);
|
|
2410
2410
|
return /* @__PURE__ */ _(So, {
|
|
2411
2411
|
scope: t,
|
|
2412
2412
|
forceMount: n
|
|
@@ -2417,7 +2417,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2417
2417
|
container: i
|
|
2418
2418
|
}, o)));
|
|
2419
2419
|
}, _e = "TooltipContent", Lo = /* @__PURE__ */ M((e, t) => {
|
|
2420
|
-
const n = Do(_e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s =
|
|
2420
|
+
const n = Do(_e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ae(_e, e.__scopeTooltip);
|
|
2421
2421
|
return /* @__PURE__ */ _(rt, {
|
|
2422
2422
|
present: o || s.open
|
|
2423
2423
|
}, s.disableHoverableContent ? /* @__PURE__ */ _(nn, S({
|
|
@@ -2430,7 +2430,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2430
2430
|
ref: t
|
|
2431
2431
|
})));
|
|
2432
2432
|
}), Mo = /* @__PURE__ */ M((e, t) => {
|
|
2433
|
-
const n =
|
|
2433
|
+
const n = Ae(_e, e.__scopeTooltip), o = ot(_e, e.__scopeTooltip), i = L(null), r = de(t, i), [s, a] = j(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = F(() => {
|
|
2434
2434
|
a(null), d(!1);
|
|
2435
2435
|
}, [
|
|
2436
2436
|
d
|
|
@@ -2483,7 +2483,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2483
2483
|
}), [ko, Io] = Be(it, {
|
|
2484
2484
|
isInside: !1
|
|
2485
2485
|
}), nn = /* @__PURE__ */ M((e, t) => {
|
|
2486
|
-
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c =
|
|
2486
|
+
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ae(_e, n), l = je(n), { onClose: u } = c;
|
|
2487
2487
|
return R(() => (document.addEventListener(qe, u), () => document.removeEventListener(qe, u)), [
|
|
2488
2488
|
u
|
|
2489
2489
|
]), R(() => {
|
|
@@ -2649,7 +2649,7 @@ function Vo(e) {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
2651
2651
|
}
|
|
2652
|
-
const
|
|
2652
|
+
const Xo = Co, Yo = To, Go = Ro, qo = No, Ko = Lo, Zo = Ho;
|
|
2653
2653
|
function Jo(e) {
|
|
2654
2654
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2655
2655
|
}
|
|
@@ -2741,9 +2741,9 @@ const ei = /* @__PURE__ */ Jo(Qo), ti = "_slideDownAndFade_fkagk_1", ni = "_slid
|
|
|
2741
2741
|
children: /* @__PURE__ */ k(St, { size: "md" })
|
|
2742
2742
|
}
|
|
2743
2743
|
);
|
|
2744
|
-
return /* @__PURE__ */ k("div", { "data-testid": e, className: h, children: /* @__PURE__ */ k(
|
|
2744
|
+
return /* @__PURE__ */ k("div", { "data-testid": e, className: h, children: /* @__PURE__ */ k(Xo, { delayDuration: parseInt(Zn), children: /* @__PURE__ */ We(Yo, { open: p, onOpenChange: f, ...u, children: [
|
|
2745
2745
|
/* @__PURE__ */ k(
|
|
2746
|
-
|
|
2746
|
+
Go,
|
|
2747
2747
|
{
|
|
2748
2748
|
asChild: !0,
|
|
2749
2749
|
onClick: (m) => {
|