@purpurds/tooltip 5.10.0 → 5.11.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/{3717fda523c04fb8636ebcaaa8b8682898be6172.untar.log → 378d70fad0e063599bb62be99cca0155c7d86993.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 +3 -3
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/LICENSE.txt +5 -5
- package/dist/tooltip.cjs.js +3 -3
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +137 -137
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +6 -6
package/dist/tooltip.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as We, jsx as
|
|
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 xe, createElement as _, useContext as
|
|
3
|
+
import { forwardRef as M, useCallback as F, createContext as Ue, useMemo as xe, createElement as _, useContext as At, Fragment as yn, Children as re, isValidElement as Ne, cloneElement as Ke, useEffect as R, useRef as L, useState as j, useLayoutEffect as Ot, useReducer as bn } from "react";
|
|
4
4
|
import * as xn from "react-dom";
|
|
5
5
|
import $n, { flushSync as Ct } from "react-dom";
|
|
6
6
|
const wn = {
|
|
@@ -55,10 +55,10 @@ var Et = { exports: {} };
|
|
|
55
55
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
56
56
|
})();
|
|
57
57
|
})(Et);
|
|
58
|
-
var
|
|
59
|
-
const dt = /* @__PURE__ */ Pn(
|
|
58
|
+
var An = Et.exports;
|
|
59
|
+
const dt = /* @__PURE__ */ Pn(An), On = "_rotate_1xozj_1", Cn = "_dash_1xozj_1", me = {
|
|
60
60
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
61
|
-
rotate:
|
|
61
|
+
rotate: On,
|
|
62
62
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
63
63
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
64
64
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
@@ -80,13 +80,13 @@ const dt = /* @__PURE__ */ Pn(On), An = "_rotate_1xozj_1", Cn = "_dash_1xozj_1",
|
|
|
80
80
|
negative: n = !1,
|
|
81
81
|
size: o = En.SM,
|
|
82
82
|
...i
|
|
83
|
-
}) => /* @__PURE__ */
|
|
83
|
+
}) => /* @__PURE__ */ k(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
86
|
className: dt([me[ve], me[`${ve}--${o}`]]),
|
|
87
87
|
"data-testid": e,
|
|
88
88
|
...i,
|
|
89
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ k("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ k(
|
|
90
90
|
"circle",
|
|
91
91
|
{
|
|
92
92
|
className: dt(me[`${ve}__circle`], {
|
|
@@ -166,7 +166,7 @@ const Dn = /* @__PURE__ */ Rn(Sn), Nn = {
|
|
|
166
166
|
DESTRUCTIVE: "destructive",
|
|
167
167
|
TERTIARY_PURPLE: "tertiary-purple",
|
|
168
168
|
TEXT: "text"
|
|
169
|
-
}, Mn = Dn.bind(Nn), ne = "purpur-button",
|
|
169
|
+
}, Mn = Dn.bind(Nn), ne = "purpur-button", kn = ({
|
|
170
170
|
children: e,
|
|
171
171
|
className: t,
|
|
172
172
|
["data-testid"]: n,
|
|
@@ -210,15 +210,15 @@ const Dn = /* @__PURE__ */ Rn(Sn), Nn = {
|
|
|
210
210
|
onClick: g,
|
|
211
211
|
...p,
|
|
212
212
|
children: [
|
|
213
|
-
s && /* @__PURE__ */
|
|
213
|
+
s && /* @__PURE__ */ k(Tn, { size: l === ut.LG ? "xs" : "xxs", negative: a, disabled: m }),
|
|
214
214
|
" ",
|
|
215
215
|
e
|
|
216
216
|
]
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
|
-
}, Rt = M(
|
|
219
|
+
}, Rt = M(kn);
|
|
220
220
|
Rt.displayName = "Button";
|
|
221
|
-
function
|
|
221
|
+
function In(e) {
|
|
222
222
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
223
223
|
}
|
|
224
224
|
var St = { exports: {} };
|
|
@@ -258,7 +258,7 @@ var St = { exports: {} };
|
|
|
258
258
|
})();
|
|
259
259
|
})(St);
|
|
260
260
|
var Fn = St.exports;
|
|
261
|
-
const Hn = /* @__PURE__ */
|
|
261
|
+
const Hn = /* @__PURE__ */ In(Fn), Bn = {
|
|
262
262
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
263
263
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
264
264
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -271,7 +271,7 @@ const Hn = /* @__PURE__ */ kn(Fn), Bn = {
|
|
|
271
271
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
272
272
|
keywords: ["info"],
|
|
273
273
|
category: "status"
|
|
274
|
-
}, Dt = (e) => /* @__PURE__ */
|
|
274
|
+
}, Dt = (e) => /* @__PURE__ */ k(
|
|
275
275
|
Xn,
|
|
276
276
|
{
|
|
277
277
|
...e,
|
|
@@ -299,7 +299,7 @@ const zn = Hn.bind(Bn), ft = "purpur-icon", Wn = "md", Un = (e) => e.filter((t)
|
|
|
299
299
|
content: Gn(t.svg),
|
|
300
300
|
title: n
|
|
301
301
|
}), a = zn(o, ft, `${ft}--${i}`);
|
|
302
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ k(
|
|
303
303
|
"span",
|
|
304
304
|
{
|
|
305
305
|
"aria-label": n,
|
|
@@ -396,8 +396,8 @@ const Kn = /* @__PURE__ */ Yn(qn), ye = {
|
|
|
396
396
|
[ye[`${be}--negative`]]: r
|
|
397
397
|
}
|
|
398
398
|
]);
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
},
|
|
399
|
+
return /* @__PURE__ */ k("p", { ...a, className: c, "data-testid": e, children: t });
|
|
400
|
+
}, Jn = "400ms";
|
|
401
401
|
function S() {
|
|
402
402
|
return S = Object.assign ? Object.assign.bind() : function(e) {
|
|
403
403
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -414,18 +414,18 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
414
414
|
return t == null ? void 0 : t(i);
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Qn(e, t) {
|
|
418
418
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
419
419
|
}
|
|
420
420
|
function Mt(...e) {
|
|
421
421
|
return (t) => e.forEach(
|
|
422
|
-
(n) =>
|
|
422
|
+
(n) => Qn(n, t)
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
425
|
function de(...e) {
|
|
426
426
|
return F(Mt(...e), e);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function kt(e, t = []) {
|
|
429
429
|
let n = [];
|
|
430
430
|
function o(r, s) {
|
|
431
431
|
const a = /* @__PURE__ */ Ue(s), c = n.length;
|
|
@@ -443,7 +443,7 @@ function It(e, t = []) {
|
|
|
443
443
|
}, f);
|
|
444
444
|
}
|
|
445
445
|
function u(d, p) {
|
|
446
|
-
const f = (p == null ? void 0 : p[e][c]) || a, h =
|
|
446
|
+
const f = (p == null ? void 0 : p[e][c]) || a, h = At(f);
|
|
447
447
|
if (h)
|
|
448
448
|
return h;
|
|
449
449
|
if (s !== void 0)
|
|
@@ -509,7 +509,7 @@ function er(...e) {
|
|
|
509
509
|
};
|
|
510
510
|
return n.scopeName = t.scopeName, n;
|
|
511
511
|
}
|
|
512
|
-
const
|
|
512
|
+
const It = /* @__PURE__ */ M((e, t) => {
|
|
513
513
|
const { children: n, ...o } = e, i = re.toArray(n), r = i.find(tr);
|
|
514
514
|
if (r) {
|
|
515
515
|
const s = r.props.children, a = i.map((c) => c === r ? re.count(s) > 1 ? re.only(null) : /* @__PURE__ */ Ne(s) ? s.props.children : null : c);
|
|
@@ -521,7 +521,7 @@ const kt = /* @__PURE__ */ M((e, t) => {
|
|
|
521
521
|
ref: t
|
|
522
522
|
}), n);
|
|
523
523
|
});
|
|
524
|
-
|
|
524
|
+
It.displayName = "Slot";
|
|
525
525
|
const Ve = /* @__PURE__ */ M((e, t) => {
|
|
526
526
|
const { children: n, ...o } = e;
|
|
527
527
|
return /* @__PURE__ */ Ne(n) ? /* @__PURE__ */ Ke(n, {
|
|
@@ -574,7 +574,7 @@ const rr = [
|
|
|
574
574
|
"ul"
|
|
575
575
|
], ie = rr.reduce((e, t) => {
|
|
576
576
|
const n = /* @__PURE__ */ M((o, i) => {
|
|
577
|
-
const { asChild: r, ...s } = o, a = r ?
|
|
577
|
+
const { asChild: r, ...s } = o, a = r ? It : t;
|
|
578
578
|
return R(() => {
|
|
579
579
|
window[Symbol.for("radix-ui")] = !0;
|
|
580
580
|
}, []), /* @__PURE__ */ _(a, S({}, s, {
|
|
@@ -623,19 +623,19 @@ const cr = /* @__PURE__ */ Ue({
|
|
|
623
623
|
branches: /* @__PURE__ */ new Set()
|
|
624
624
|
}), lr = /* @__PURE__ */ M((e, t) => {
|
|
625
625
|
var n;
|
|
626
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u =
|
|
626
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = At(cr), [d, p] = j(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = j({}), g = de(
|
|
627
627
|
t,
|
|
628
628
|
(P) => p(P)
|
|
629
629
|
), m = Array.from(u.layers), [v] = [
|
|
630
630
|
...u.layersWithOutsidePointerEventsDisabled
|
|
631
631
|
].slice(-1), y = m.indexOf(v), x = d ? m.indexOf(d) : -1, $ = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = ur((P) => {
|
|
632
|
-
const T = P.target,
|
|
632
|
+
const T = P.target, I = [
|
|
633
633
|
...u.branches
|
|
634
634
|
].some(
|
|
635
635
|
(E) => E.contains(T)
|
|
636
636
|
);
|
|
637
|
-
!b ||
|
|
638
|
-
}, f),
|
|
637
|
+
!b || I || (r == null || r(P), a == null || a(P), P.defaultPrevented || c == null || c());
|
|
638
|
+
}, f), O = dr((P) => {
|
|
639
639
|
const T = P.target;
|
|
640
640
|
[
|
|
641
641
|
...u.branches
|
|
@@ -669,8 +669,8 @@ const cr = /* @__PURE__ */ Ue({
|
|
|
669
669
|
pointerEvents: $ ? b ? "auto" : "none" : void 0,
|
|
670
670
|
...e.style
|
|
671
671
|
},
|
|
672
|
-
onFocusCapture: G(e.onFocusCapture,
|
|
673
|
-
onBlurCapture: G(e.onBlurCapture,
|
|
672
|
+
onFocusCapture: G(e.onFocusCapture, O.onFocusCapture),
|
|
673
|
+
onBlurCapture: G(e.onBlurCapture, O.onBlurCapture),
|
|
674
674
|
onPointerDownCapture: G(e.onPointerDownCapture, w.onPointerDownCapture)
|
|
675
675
|
}));
|
|
676
676
|
});
|
|
@@ -741,7 +741,7 @@ function Ht(e, t, n, { discrete: o }) {
|
|
|
741
741
|
once: !0
|
|
742
742
|
}), o ? or(i, r) : i.dispatchEvent(r);
|
|
743
743
|
}
|
|
744
|
-
const le = globalThis != null && globalThis.document ?
|
|
744
|
+
const le = globalThis != null && globalThis.document ? Ot : () => {
|
|
745
745
|
}, fr = N.useId || (() => {
|
|
746
746
|
});
|
|
747
747
|
let pr = 0;
|
|
@@ -755,7 +755,7 @@ function hr(e) {
|
|
|
755
755
|
e
|
|
756
756
|
]), t ? `radix-${t}` : "";
|
|
757
757
|
}
|
|
758
|
-
const gr = ["top", "right", "bottom", "left"],
|
|
758
|
+
const gr = ["top", "right", "bottom", "left"], Q = Math.min, B = Math.max, Le = Math.round, Re = Math.floor, ee = (e) => ({
|
|
759
759
|
x: e,
|
|
760
760
|
y: e
|
|
761
761
|
}), mr = {
|
|
@@ -768,7 +768,7 @@ const gr = ["top", "right", "bottom", "left"], J = Math.min, B = Math.max, Le =
|
|
|
768
768
|
end: "start"
|
|
769
769
|
};
|
|
770
770
|
function Xe(e, t, n) {
|
|
771
|
-
return B(e,
|
|
771
|
+
return B(e, Q(t, n));
|
|
772
772
|
}
|
|
773
773
|
function X(e, t) {
|
|
774
774
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -782,18 +782,18 @@ function pe(e) {
|
|
|
782
782
|
function Ze(e) {
|
|
783
783
|
return e === "x" ? "y" : "x";
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function Je(e) {
|
|
786
786
|
return e === "y" ? "height" : "width";
|
|
787
787
|
}
|
|
788
788
|
function he(e) {
|
|
789
789
|
return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Qe(e) {
|
|
792
792
|
return Ze(he(e));
|
|
793
793
|
}
|
|
794
794
|
function yr(e, t, n) {
|
|
795
795
|
n === void 0 && (n = !1);
|
|
796
|
-
const o = pe(e), i =
|
|
796
|
+
const o = pe(e), i = Qe(e), r = Je(i);
|
|
797
797
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
798
798
|
return t.reference[r] > t.floating[r] && (s = Me(s)), [s, Me(s)];
|
|
799
799
|
}
|
|
@@ -842,7 +842,7 @@ function Bt(e) {
|
|
|
842
842
|
left: e
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function ke(e) {
|
|
846
846
|
return {
|
|
847
847
|
...e,
|
|
848
848
|
top: e.y,
|
|
@@ -856,7 +856,7 @@ function gt(e, t, n) {
|
|
|
856
856
|
reference: o,
|
|
857
857
|
floating: i
|
|
858
858
|
} = e;
|
|
859
|
-
const r = he(t), s =
|
|
859
|
+
const r = he(t), s = Qe(t), a = Je(s), c = Y(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;
|
|
860
860
|
let f;
|
|
861
861
|
switch (c) {
|
|
862
862
|
case "top":
|
|
@@ -979,7 +979,7 @@ async function $e(e, t) {
|
|
|
979
979
|
elementContext: d = "floating",
|
|
980
980
|
altBoundary: p = !1,
|
|
981
981
|
padding: f = 0
|
|
982
|
-
} = X(t, e), h = Bt(f), m = a[p ? d === "floating" ? "reference" : "floating" : d], v =
|
|
982
|
+
} = X(t, e), h = Bt(f), m = a[p ? d === "floating" ? "reference" : "floating" : d], v = ke(await r.getClippingRect({
|
|
983
983
|
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)),
|
|
984
984
|
boundary: l,
|
|
985
985
|
rootBoundary: u,
|
|
@@ -994,7 +994,7 @@ async function $e(e, t) {
|
|
|
994
994
|
} : {
|
|
995
995
|
x: 1,
|
|
996
996
|
y: 1
|
|
997
|
-
}, b =
|
|
997
|
+
}, b = ke(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
998
998
|
rect: y,
|
|
999
999
|
offsetParent: x,
|
|
1000
1000
|
strategy: c
|
|
@@ -1026,15 +1026,15 @@ const mt = (e) => ({
|
|
|
1026
1026
|
const u = Bt(l), d = {
|
|
1027
1027
|
x: n,
|
|
1028
1028
|
y: o
|
|
1029
|
-
}, p =
|
|
1029
|
+
}, 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", x = r.reference[f] + r.reference[p] - d[p] - r.floating[f], $ = d[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
1030
1030
|
let w = b ? b[y] : 0;
|
|
1031
1031
|
(!w || !await (s.isElement == null ? void 0 : s.isElement(b))) && (w = a.floating[y] || r.floating[f]);
|
|
1032
|
-
const
|
|
1032
|
+
const O = x / 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 = Xe(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;
|
|
1033
1033
|
return {
|
|
1034
|
-
[p]: d[p] -
|
|
1034
|
+
[p]: d[p] - A,
|
|
1035
1035
|
data: {
|
|
1036
1036
|
[p]: C,
|
|
1037
|
-
centerOffset: D - C +
|
|
1037
|
+
centerOffset: D - C + A
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
@@ -1062,12 +1062,12 @@ const mt = (e) => ({
|
|
|
1062
1062
|
} = X(e, t), m = Y(o), v = Y(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = d || (v || !h ? [Me(s)] : br(s));
|
|
1063
1063
|
!d && f !== "none" && x.push(...$r(s, h, f, y));
|
|
1064
1064
|
const $ = [s, ...x], b = await $e(t, g), w = [];
|
|
1065
|
-
let
|
|
1065
|
+
let O = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
1066
1066
|
if (l && w.push(b[m]), u) {
|
|
1067
1067
|
const E = yr(o, r, y);
|
|
1068
1068
|
w.push(b[E[0]], b[E[1]]);
|
|
1069
1069
|
}
|
|
1070
|
-
if (
|
|
1070
|
+
if (O = [...O, {
|
|
1071
1071
|
placement: o,
|
|
1072
1072
|
overflows: w
|
|
1073
1073
|
}], !w.every((E) => E <= 0)) {
|
|
@@ -1077,18 +1077,18 @@ const mt = (e) => ({
|
|
|
1077
1077
|
return {
|
|
1078
1078
|
data: {
|
|
1079
1079
|
index: E,
|
|
1080
|
-
overflows:
|
|
1080
|
+
overflows: O
|
|
1081
1081
|
},
|
|
1082
1082
|
reset: {
|
|
1083
1083
|
placement: H
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
let D = (T =
|
|
1086
|
+
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;
|
|
1087
1087
|
if (!D)
|
|
1088
1088
|
switch (p) {
|
|
1089
1089
|
case "bestFit": {
|
|
1090
|
-
var
|
|
1091
|
-
const C = (
|
|
1090
|
+
var I;
|
|
1091
|
+
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];
|
|
1092
1092
|
C && (D = C);
|
|
1093
1093
|
break;
|
|
1094
1094
|
}
|
|
@@ -1118,7 +1118,7 @@ function vt(e, t) {
|
|
|
1118
1118
|
function yt(e) {
|
|
1119
1119
|
return gr.some((t) => e[t] >= 0);
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1121
|
+
const Ar = function(e) {
|
|
1122
1122
|
return e === void 0 && (e = {}), {
|
|
1123
1123
|
name: "hide",
|
|
1124
1124
|
options: e,
|
|
@@ -1160,7 +1160,7 @@ const Or = function(e) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
1162
|
};
|
|
1163
|
-
async function
|
|
1163
|
+
async function Or(e, t) {
|
|
1164
1164
|
const {
|
|
1165
1165
|
placement: n,
|
|
1166
1166
|
platform: o,
|
|
@@ -1196,7 +1196,7 @@ const Cr = function(e) {
|
|
|
1196
1196
|
const {
|
|
1197
1197
|
x: n,
|
|
1198
1198
|
y: o
|
|
1199
|
-
} = t, i = await
|
|
1199
|
+
} = t, i = await Or(t, e);
|
|
1200
1200
|
return {
|
|
1201
1201
|
x: n + i.x,
|
|
1202
1202
|
y: o + i.y,
|
|
@@ -1322,14 +1322,14 @@ const Cr = function(e) {
|
|
|
1322
1322
|
let x = m, $ = v;
|
|
1323
1323
|
if (d) {
|
|
1324
1324
|
const w = p - c.left - c.right;
|
|
1325
|
-
$ = u || y ?
|
|
1325
|
+
$ = u || y ? Q(v, w) : w;
|
|
1326
1326
|
} else {
|
|
1327
1327
|
const w = f - c.top - c.bottom;
|
|
1328
|
-
x = u || y ?
|
|
1328
|
+
x = u || y ? Q(m, w) : w;
|
|
1329
1329
|
}
|
|
1330
1330
|
if (y && !u) {
|
|
1331
|
-
const w = B(c.left, 0),
|
|
1332
|
-
d ? $ = p - 2 * (w !== 0 ||
|
|
1331
|
+
const w = B(c.left, 0), O = B(c.right, 0), P = B(c.top, 0), T = B(c.bottom, 0);
|
|
1332
|
+
d ? $ = p - 2 * (w !== 0 || O !== 0 ? w + O : B(c.left, c.right)) : x = f - 2 * (P !== 0 || T !== 0 ? P + T : B(c.top, c.bottom));
|
|
1333
1333
|
}
|
|
1334
1334
|
await s({
|
|
1335
1335
|
...t,
|
|
@@ -1487,7 +1487,7 @@ function oe(e, t, n, o) {
|
|
|
1487
1487
|
c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += y, l += x, h = z(h).frameElement;
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
return
|
|
1490
|
+
return ke({
|
|
1491
1491
|
width: u,
|
|
1492
1492
|
height: d,
|
|
1493
1493
|
x: c,
|
|
@@ -1519,13 +1519,13 @@ function Mr(e) {
|
|
|
1519
1519
|
y: t.y * a.y - s.scrollTop * a.y + c.y
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function kr(e) {
|
|
1523
1523
|
return Array.from(e.getClientRects());
|
|
1524
1524
|
}
|
|
1525
1525
|
function Vt(e) {
|
|
1526
1526
|
return oe(K(e)).left + He(e).scrollLeft;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Ir(e) {
|
|
1529
1529
|
const t = K(e), n = He(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1530
1530
|
let s = -n.scrollLeft + Vt(e);
|
|
1531
1531
|
const a = -n.scrollTop;
|
|
@@ -1565,7 +1565,7 @@ function xt(e, t, n) {
|
|
|
1565
1565
|
if (t === "viewport")
|
|
1566
1566
|
o = Fr(e, n);
|
|
1567
1567
|
else if (t === "document")
|
|
1568
|
-
o =
|
|
1568
|
+
o = Ir(K(e));
|
|
1569
1569
|
else if (q(t))
|
|
1570
1570
|
o = Hr(t, n);
|
|
1571
1571
|
else {
|
|
@@ -1576,7 +1576,7 @@ function xt(e, t, n) {
|
|
|
1576
1576
|
y: t.y - i.y
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
|
-
return
|
|
1579
|
+
return ke(o);
|
|
1580
1580
|
}
|
|
1581
1581
|
function Gt(e, t) {
|
|
1582
1582
|
const n = ue(e);
|
|
@@ -1604,7 +1604,7 @@ function jr(e) {
|
|
|
1604
1604
|
} = e;
|
|
1605
1605
|
const s = [...n === "clippingAncestors" ? Br(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
|
|
1606
1606
|
const d = xt(t, u, i);
|
|
1607
|
-
return l.top = B(d.top, l.top), l.right =
|
|
1607
|
+
return l.top = B(d.top, l.top), l.right = Q(d.right, l.right), l.bottom = Q(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
|
|
1608
1608
|
}, xt(t, a, i));
|
|
1609
1609
|
return {
|
|
1610
1610
|
width: c.right - c.left,
|
|
@@ -1673,7 +1673,7 @@ const Gr = {
|
|
|
1673
1673
|
getClippingRect: jr,
|
|
1674
1674
|
getOffsetParent: Xt,
|
|
1675
1675
|
getElementRects: Ur,
|
|
1676
|
-
getClientRects:
|
|
1676
|
+
getClientRects: kr,
|
|
1677
1677
|
getDimensions: zr,
|
|
1678
1678
|
getScale: ce,
|
|
1679
1679
|
isElement: q,
|
|
@@ -1697,7 +1697,7 @@ function Xr(e, t) {
|
|
|
1697
1697
|
return;
|
|
1698
1698
|
const f = Re(u), h = Re(i.clientWidth - (l + d)), g = Re(i.clientHeight - (u + p)), m = Re(l), y = {
|
|
1699
1699
|
rootMargin: -f + "px " + -h + "px " + -g + "px " + -m + "px",
|
|
1700
|
-
threshold: B(0,
|
|
1700
|
+
threshold: B(0, Q(1, c)) || 1
|
|
1701
1701
|
};
|
|
1702
1702
|
let x = !0;
|
|
1703
1703
|
function $(b) {
|
|
@@ -1792,8 +1792,8 @@ const qr = (e, t, n) => {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
};
|
|
1794
1794
|
};
|
|
1795
|
-
var De = typeof document < "u" ?
|
|
1796
|
-
function
|
|
1795
|
+
var De = typeof document < "u" ? Ot : R;
|
|
1796
|
+
function Ie(e, t) {
|
|
1797
1797
|
if (e === t)
|
|
1798
1798
|
return !0;
|
|
1799
1799
|
if (typeof e != typeof t)
|
|
@@ -1806,7 +1806,7 @@ function ke(e, t) {
|
|
|
1806
1806
|
if (n = e.length, n != t.length)
|
|
1807
1807
|
return !1;
|
|
1808
1808
|
for (o = n; o-- !== 0; )
|
|
1809
|
-
if (!
|
|
1809
|
+
if (!Ie(e[o], t[o]))
|
|
1810
1810
|
return !1;
|
|
1811
1811
|
return !0;
|
|
1812
1812
|
}
|
|
@@ -1817,7 +1817,7 @@ function ke(e, t) {
|
|
|
1817
1817
|
return !1;
|
|
1818
1818
|
for (o = n; o-- !== 0; ) {
|
|
1819
1819
|
const r = i[o];
|
|
1820
|
-
if (!(r === "_owner" && e.$$typeof) && !
|
|
1820
|
+
if (!(r === "_owner" && e.$$typeof) && !Ie(e[r], t[r]))
|
|
1821
1821
|
return !1;
|
|
1822
1822
|
}
|
|
1823
1823
|
return !0;
|
|
@@ -1859,32 +1859,32 @@ function Zr(e) {
|
|
|
1859
1859
|
middlewareData: {},
|
|
1860
1860
|
isPositioned: !1
|
|
1861
1861
|
}), [p, f] = N.useState(o);
|
|
1862
|
-
|
|
1863
|
-
const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((
|
|
1864
|
-
|
|
1865
|
-
}, [g]), x = N.useCallback((
|
|
1866
|
-
|
|
1867
|
-
}, [v]), $ = r || h, b = s || m, w = N.useRef(null),
|
|
1868
|
-
if (!w.current || !
|
|
1862
|
+
Ie(p, o) || f(o);
|
|
1863
|
+
const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((A) => {
|
|
1864
|
+
A != w.current && (w.current = A, g(A));
|
|
1865
|
+
}, [g]), x = N.useCallback((A) => {
|
|
1866
|
+
A !== O.current && (O.current = A, v(A));
|
|
1867
|
+
}, [v]), $ = r || h, b = s || m, w = N.useRef(null), O = N.useRef(null), P = N.useRef(u), T = _t(c), I = _t(i), E = N.useCallback(() => {
|
|
1868
|
+
if (!w.current || !O.current)
|
|
1869
1869
|
return;
|
|
1870
|
-
const
|
|
1870
|
+
const A = {
|
|
1871
1871
|
placement: t,
|
|
1872
1872
|
strategy: n,
|
|
1873
1873
|
middleware: p
|
|
1874
1874
|
};
|
|
1875
|
-
|
|
1876
|
-
const
|
|
1875
|
+
I.current && (A.platform = I.current), qr(w.current, O.current, A).then((Z) => {
|
|
1876
|
+
const J = {
|
|
1877
1877
|
...Z,
|
|
1878
1878
|
isPositioned: !0
|
|
1879
1879
|
};
|
|
1880
|
-
H.current && !
|
|
1881
|
-
d(
|
|
1880
|
+
H.current && !Ie(P.current, J) && (P.current = J, xn.flushSync(() => {
|
|
1881
|
+
d(J);
|
|
1882
1882
|
}));
|
|
1883
1883
|
});
|
|
1884
|
-
}, [p, t, n,
|
|
1884
|
+
}, [p, t, n, I]);
|
|
1885
1885
|
De(() => {
|
|
1886
|
-
l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((
|
|
1887
|
-
...
|
|
1886
|
+
l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((A) => ({
|
|
1887
|
+
...A,
|
|
1888
1888
|
isPositioned: !1
|
|
1889
1889
|
})));
|
|
1890
1890
|
}, [l]);
|
|
@@ -1892,7 +1892,7 @@ function Zr(e) {
|
|
|
1892
1892
|
De(() => (H.current = !0, () => {
|
|
1893
1893
|
H.current = !1;
|
|
1894
1894
|
}), []), De(() => {
|
|
1895
|
-
if ($ && (w.current = $), b && (
|
|
1895
|
+
if ($ && (w.current = $), b && (O.current = b), $ && b) {
|
|
1896
1896
|
if (T.current)
|
|
1897
1897
|
return T.current($, b, E);
|
|
1898
1898
|
E();
|
|
@@ -1900,31 +1900,31 @@ function Zr(e) {
|
|
|
1900
1900
|
}, [$, b, E, T]);
|
|
1901
1901
|
const D = N.useMemo(() => ({
|
|
1902
1902
|
reference: w,
|
|
1903
|
-
floating:
|
|
1903
|
+
floating: O,
|
|
1904
1904
|
setReference: y,
|
|
1905
1905
|
setFloating: x
|
|
1906
1906
|
}), [y, x]), C = N.useMemo(() => ({
|
|
1907
1907
|
reference: $,
|
|
1908
1908
|
floating: b
|
|
1909
1909
|
}), [$, b]), W = N.useMemo(() => {
|
|
1910
|
-
const
|
|
1910
|
+
const A = {
|
|
1911
1911
|
position: n,
|
|
1912
1912
|
left: 0,
|
|
1913
1913
|
top: 0
|
|
1914
1914
|
};
|
|
1915
1915
|
if (!C.floating)
|
|
1916
|
-
return
|
|
1917
|
-
const Z = wt(C.floating, u.x),
|
|
1916
|
+
return A;
|
|
1917
|
+
const Z = wt(C.floating, u.x), J = wt(C.floating, u.y);
|
|
1918
1918
|
return a ? {
|
|
1919
|
-
...
|
|
1920
|
-
transform: "translate(" + Z + "px, " +
|
|
1919
|
+
...A,
|
|
1920
|
+
transform: "translate(" + Z + "px, " + J + "px)",
|
|
1921
1921
|
...Yt(C.floating) >= 1.5 && {
|
|
1922
1922
|
willChange: "transform"
|
|
1923
1923
|
}
|
|
1924
1924
|
} : {
|
|
1925
1925
|
position: n,
|
|
1926
1926
|
left: Z,
|
|
1927
|
-
top:
|
|
1927
|
+
top: J
|
|
1928
1928
|
};
|
|
1929
1929
|
}, [n, a, C.floating, u.x, u.y]);
|
|
1930
1930
|
return N.useMemo(() => ({
|
|
@@ -1935,7 +1935,7 @@ function Zr(e) {
|
|
|
1935
1935
|
floatingStyles: W
|
|
1936
1936
|
}), [u, E, D, C, W]);
|
|
1937
1937
|
}
|
|
1938
|
-
const
|
|
1938
|
+
const Jr = /* @__PURE__ */ M((e, t) => {
|
|
1939
1939
|
const { children: n, width: o = 10, height: i = 5, ...r } = e;
|
|
1940
1940
|
return /* @__PURE__ */ _(ie.svg, S({}, r, {
|
|
1941
1941
|
ref: t,
|
|
@@ -1946,7 +1946,7 @@ const Qr = /* @__PURE__ */ M((e, t) => {
|
|
|
1946
1946
|
}), e.asChild ? n : /* @__PURE__ */ _("polygon", {
|
|
1947
1947
|
points: "0,0 30,0 15,10"
|
|
1948
1948
|
}));
|
|
1949
|
-
}),
|
|
1949
|
+
}), Qr = Jr;
|
|
1950
1950
|
function eo(e) {
|
|
1951
1951
|
const [t, n] = j(void 0);
|
|
1952
1952
|
return le(() => {
|
|
@@ -1979,7 +1979,7 @@ function eo(e) {
|
|
|
1979
1979
|
e
|
|
1980
1980
|
]), t;
|
|
1981
1981
|
}
|
|
1982
|
-
const qt = "Popper", [Kt, Zt] =
|
|
1982
|
+
const qt = "Popper", [Kt, Zt] = kt(qt), [to, Jt] = Kt(qt), no = (e) => {
|
|
1983
1983
|
const { __scopePopper: t, children: n } = e, [o, i] = j(null);
|
|
1984
1984
|
return /* @__PURE__ */ _(to, {
|
|
1985
1985
|
scope: t,
|
|
@@ -1987,18 +1987,18 @@ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
|
|
|
1987
1987
|
onAnchorChange: i
|
|
1988
1988
|
}, n);
|
|
1989
1989
|
}, ro = "PopperAnchor", oo = /* @__PURE__ */ M((e, t) => {
|
|
1990
|
-
const { __scopePopper: n, virtualRef: o, ...i } = e, r =
|
|
1990
|
+
const { __scopePopper: n, virtualRef: o, ...i } = e, r = Jt(ro, n), s = L(null), a = de(t, s);
|
|
1991
1991
|
return R(() => {
|
|
1992
1992
|
r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
1993
1993
|
}), o ? null : /* @__PURE__ */ _(ie.div, S({}, i, {
|
|
1994
1994
|
ref: a
|
|
1995
1995
|
}));
|
|
1996
|
-
}),
|
|
1996
|
+
}), Qt = "PopperContent", [io, so] = Kt(Qt), ao = /* @__PURE__ */ M((e, t) => {
|
|
1997
1997
|
var n, o, i, r, s, a, c, l;
|
|
1998
|
-
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: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...
|
|
1998
|
+
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: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...O } = e, P = Jt(Qt, u), [T, I] = j(null), E = de(
|
|
1999
1999
|
t,
|
|
2000
|
-
(ge) =>
|
|
2001
|
-
), [H, D] = j(null), C = eo(H), W = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0,
|
|
2000
|
+
(ge) => I(ge)
|
|
2001
|
+
), [H, D] = j(null), C = eo(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 : {
|
|
2002
2002
|
top: 0,
|
|
2003
2003
|
right: 0,
|
|
2004
2004
|
bottom: 0,
|
|
@@ -2006,8 +2006,8 @@ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
|
|
|
2006
2006
|
...y
|
|
2007
2007
|
}, st = Array.isArray(v) ? v : [
|
|
2008
2008
|
v
|
|
2009
|
-
], on = st.length > 0,
|
|
2010
|
-
padding:
|
|
2009
|
+
], on = st.length > 0, Oe = {
|
|
2010
|
+
padding: J,
|
|
2011
2011
|
boundary: st.filter(fo),
|
|
2012
2012
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2013
2013
|
altBoundary: on
|
|
@@ -2023,20 +2023,20 @@ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
|
|
|
2023
2023
|
},
|
|
2024
2024
|
middleware: [
|
|
2025
2025
|
Cr({
|
|
2026
|
-
mainAxis: p +
|
|
2026
|
+
mainAxis: p + A,
|
|
2027
2027
|
alignmentAxis: h
|
|
2028
2028
|
}),
|
|
2029
2029
|
m && Er({
|
|
2030
2030
|
mainAxis: !0,
|
|
2031
2031
|
crossAxis: !1,
|
|
2032
2032
|
limiter: x === "partial" ? Tr() : void 0,
|
|
2033
|
-
...
|
|
2033
|
+
...Oe
|
|
2034
2034
|
}),
|
|
2035
2035
|
m && Pr({
|
|
2036
|
-
...
|
|
2036
|
+
...Oe
|
|
2037
2037
|
}),
|
|
2038
2038
|
Rr({
|
|
2039
|
-
...
|
|
2039
|
+
...Oe,
|
|
2040
2040
|
apply: ({ elements: ge, rects: lt, availableWidth: hn, availableHeight: gn }) => {
|
|
2041
2041
|
const { width: mn, height: vn } = lt.reference, Te = ge.floating.style;
|
|
2042
2042
|
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`);
|
|
@@ -2048,11 +2048,11 @@ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
|
|
|
2048
2048
|
}),
|
|
2049
2049
|
po({
|
|
2050
2050
|
arrowWidth: W,
|
|
2051
|
-
arrowHeight:
|
|
2051
|
+
arrowHeight: A
|
|
2052
2052
|
}),
|
|
2053
|
-
$ &&
|
|
2053
|
+
$ && Ar({
|
|
2054
2054
|
strategy: "referenceHidden",
|
|
2055
|
-
...
|
|
2055
|
+
...Oe
|
|
2056
2056
|
})
|
|
2057
2057
|
]
|
|
2058
2058
|
}), [ct, cn] = en(an), Ee = fe(w);
|
|
@@ -2092,10 +2092,10 @@ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
|
|
|
2092
2092
|
}, /* @__PURE__ */ _(ie.div, S({
|
|
2093
2093
|
"data-side": ct,
|
|
2094
2094
|
"data-align": cn
|
|
2095
|
-
},
|
|
2095
|
+
}, O, {
|
|
2096
2096
|
ref: E,
|
|
2097
2097
|
style: {
|
|
2098
|
-
...
|
|
2098
|
+
...O.style,
|
|
2099
2099
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2100
2100
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2101
2101
|
animation: Ce ? void 0 : "none",
|
|
@@ -2135,7 +2135,7 @@ const qt = "Popper", [Kt, Zt] = It(qt), [to, Qt] = Kt(qt), no = (e) => {
|
|
|
2135
2135
|
}[r.placedSide],
|
|
2136
2136
|
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
2137
2137
|
}
|
|
2138
|
-
}, /* @__PURE__ */ _(
|
|
2138
|
+
}, /* @__PURE__ */ _(Qr, S({}, i, {
|
|
2139
2139
|
ref: n,
|
|
2140
2140
|
style: {
|
|
2141
2141
|
...i.style,
|
|
@@ -2303,10 +2303,10 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2303
2303
|
wordWrap: "normal",
|
|
2304
2304
|
...e.style
|
|
2305
2305
|
}
|
|
2306
|
-
}))), Po = _o, [Be, pi] =
|
|
2306
|
+
}))), Po = _o, [Be, pi] = kt("Tooltip", [
|
|
2307
2307
|
Zt
|
|
2308
|
-
]), je = Zt(),
|
|
2309
|
-
const { __scopeTooltip: t, delayDuration: n =
|
|
2308
|
+
]), je = Zt(), Ao = "TooltipProvider", Oo = 700, qe = "tooltip.open", [Co, ot] = Be(Ao), Eo = (e) => {
|
|
2309
|
+
const { __scopeTooltip: t, delayDuration: n = Oo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = j(!0), c = L(!1), l = L(0);
|
|
2310
2310
|
return R(() => {
|
|
2311
2311
|
const u = l.current;
|
|
2312
2312
|
return () => window.clearTimeout(u);
|
|
@@ -2331,12 +2331,12 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2331
2331
|
}, []),
|
|
2332
2332
|
disableHoverableContent: i
|
|
2333
2333
|
}, r);
|
|
2334
|
-
}, it = "Tooltip", [To,
|
|
2334
|
+
}, it = "Tooltip", [To, Ae] = Be(it), Ro = (e) => {
|
|
2335
2335
|
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 = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
|
|
2336
2336
|
prop: o,
|
|
2337
2337
|
defaultProp: i,
|
|
2338
|
-
onChange: (
|
|
2339
|
-
|
|
2338
|
+
onChange: (O) => {
|
|
2339
|
+
O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(qe))) : c.onClose(), r == null || r(O);
|
|
2340
2340
|
}
|
|
2341
2341
|
}), x = xe(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [
|
|
2342
2342
|
v
|
|
@@ -2381,7 +2381,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2381
2381
|
disableHoverableContent: h
|
|
2382
2382
|
}, n));
|
|
2383
2383
|
}, Pt = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
|
|
2384
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2384
|
+
const { __scopeTooltip: n, ...o } = e, i = Ae(Pt, n), r = ot(Pt, n), s = je(n), a = L(null), c = de(t, a, i.onTriggerChange), l = L(!1), u = L(!1), d = F(
|
|
2385
2385
|
() => l.current = !1,
|
|
2386
2386
|
[]
|
|
2387
2387
|
);
|
|
@@ -2416,7 +2416,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2416
2416
|
}), tn = "TooltipPortal", [Do, No] = Be(tn, {
|
|
2417
2417
|
forceMount: void 0
|
|
2418
2418
|
}), Lo = (e) => {
|
|
2419
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r =
|
|
2419
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ae(tn, t);
|
|
2420
2420
|
return /* @__PURE__ */ _(Do, {
|
|
2421
2421
|
scope: t,
|
|
2422
2422
|
forceMount: n
|
|
@@ -2427,20 +2427,20 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2427
2427
|
container: i
|
|
2428
2428
|
}, o)));
|
|
2429
2429
|
}, _e = "TooltipContent", Mo = /* @__PURE__ */ M((e, t) => {
|
|
2430
|
-
const n = No(_e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s =
|
|
2430
|
+
const n = No(_e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ae(_e, e.__scopeTooltip);
|
|
2431
2431
|
return /* @__PURE__ */ _(rt, {
|
|
2432
2432
|
present: o || s.open
|
|
2433
2433
|
}, s.disableHoverableContent ? /* @__PURE__ */ _(nn, S({
|
|
2434
2434
|
side: i
|
|
2435
2435
|
}, r, {
|
|
2436
2436
|
ref: t
|
|
2437
|
-
})) : /* @__PURE__ */ _(
|
|
2437
|
+
})) : /* @__PURE__ */ _(ko, S({
|
|
2438
2438
|
side: i
|
|
2439
2439
|
}, r, {
|
|
2440
2440
|
ref: t
|
|
2441
2441
|
})));
|
|
2442
|
-
}),
|
|
2443
|
-
const n =
|
|
2442
|
+
}), ko = /* @__PURE__ */ M((e, t) => {
|
|
2443
|
+
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(() => {
|
|
2444
2444
|
a(null), d(!1);
|
|
2445
2445
|
}, [
|
|
2446
2446
|
d
|
|
@@ -2490,10 +2490,10 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2490
2490
|
]), /* @__PURE__ */ _(nn, S({}, e, {
|
|
2491
2491
|
ref: r
|
|
2492
2492
|
}));
|
|
2493
|
-
}), [
|
|
2493
|
+
}), [Io, Fo] = Be(it, {
|
|
2494
2494
|
isInside: !1
|
|
2495
2495
|
}), nn = /* @__PURE__ */ M((e, t) => {
|
|
2496
|
-
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c =
|
|
2496
|
+
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ae(_e, n), l = je(n), { onClose: u } = c;
|
|
2497
2497
|
return R(() => (document.addEventListener(qe, u), () => document.removeEventListener(qe, u)), [
|
|
2498
2498
|
u
|
|
2499
2499
|
]), R(() => {
|
|
@@ -2530,7 +2530,7 @@ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2530
2530
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2531
2531
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2532
2532
|
}
|
|
2533
|
-
}), /* @__PURE__ */ _(Ft, null, o), /* @__PURE__ */ _(
|
|
2533
|
+
}), /* @__PURE__ */ _(Ft, null, o), /* @__PURE__ */ _(Io, {
|
|
2534
2534
|
scope: n,
|
|
2535
2535
|
isInside: !0
|
|
2536
2536
|
}, /* @__PURE__ */ _(Po, {
|
|
@@ -2664,8 +2664,8 @@ function Go(e) {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
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);
|
|
2666
2666
|
}
|
|
2667
|
-
const Xo = Eo, Yo = Ro, qo = So, Ko = Lo, Zo = Mo,
|
|
2668
|
-
function
|
|
2667
|
+
const Xo = Eo, Yo = Ro, qo = So, Ko = Lo, Zo = Mo, Jo = Bo;
|
|
2668
|
+
function Qo(e) {
|
|
2669
2669
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2670
2670
|
}
|
|
2671
2671
|
var rn = { exports: {} };
|
|
@@ -2705,7 +2705,7 @@ var rn = { exports: {} };
|
|
|
2705
2705
|
})();
|
|
2706
2706
|
})(rn);
|
|
2707
2707
|
var ei = rn.exports;
|
|
2708
|
-
const ti = /* @__PURE__ */
|
|
2708
|
+
const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slideLeftAndFade_fkagk_1", oi = "_slideUpAndFade_fkagk_1", ii = "_slideRightAndFade_fkagk_1", si = {
|
|
2709
2709
|
"purpur-tooltip": "_purpur-tooltip_fkagk_1",
|
|
2710
2710
|
"purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
|
|
2711
2711
|
"purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
|
|
@@ -2743,7 +2743,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slid
|
|
|
2743
2743
|
o,
|
|
2744
2744
|
ae,
|
|
2745
2745
|
`${ae}--primary${r ? "-negative" : ""}`
|
|
2746
|
-
]), g = /* @__PURE__ */
|
|
2746
|
+
]), g = /* @__PURE__ */ k(
|
|
2747
2747
|
Rt,
|
|
2748
2748
|
{
|
|
2749
2749
|
ref: d,
|
|
@@ -2753,11 +2753,11 @@ const ti = /* @__PURE__ */ Jo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slid
|
|
|
2753
2753
|
iconOnly: !0,
|
|
2754
2754
|
"data-testid": `${e}-trigger-button`,
|
|
2755
2755
|
size: t,
|
|
2756
|
-
children: /* @__PURE__ */
|
|
2756
|
+
children: /* @__PURE__ */ k(Dt, { size: "md" })
|
|
2757
2757
|
}
|
|
2758
2758
|
);
|
|
2759
|
-
return /* @__PURE__ */
|
|
2760
|
-
/* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ k("div", { "data-testid": e, className: h, children: /* @__PURE__ */ k(Xo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ We(Yo, { open: p, onOpenChange: f, ...u, children: [
|
|
2760
|
+
/* @__PURE__ */ k(
|
|
2761
2761
|
qo,
|
|
2762
2762
|
{
|
|
2763
2763
|
asChild: !0,
|
|
@@ -2767,7 +2767,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slid
|
|
|
2767
2767
|
children: re.count(l) === 0 ? g : l
|
|
2768
2768
|
}
|
|
2769
2769
|
),
|
|
2770
|
-
/* @__PURE__ */
|
|
2770
|
+
/* @__PURE__ */ k(Ko, { children: /* @__PURE__ */ We(
|
|
2771
2771
|
Zo,
|
|
2772
2772
|
{
|
|
2773
2773
|
side: s,
|
|
@@ -2780,7 +2780,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slid
|
|
|
2780
2780
|
sideOffset: -5,
|
|
2781
2781
|
"data-testid": `${e}-content`,
|
|
2782
2782
|
children: [
|
|
2783
|
-
typeof n == "string" ? /* @__PURE__ */
|
|
2783
|
+
typeof n == "string" ? /* @__PURE__ */ k(
|
|
2784
2784
|
Zn,
|
|
2785
2785
|
{
|
|
2786
2786
|
variant: Lt.PARAGRAPH100,
|
|
@@ -2789,8 +2789,8 @@ const ti = /* @__PURE__ */ Jo(ei), ni = "_slideDownAndFade_fkagk_1", ri = "_slid
|
|
|
2789
2789
|
children: n
|
|
2790
2790
|
}
|
|
2791
2791
|
) : n,
|
|
2792
|
-
/* @__PURE__ */
|
|
2793
|
-
|
|
2792
|
+
/* @__PURE__ */ k(
|
|
2793
|
+
Jo,
|
|
2794
2794
|
{
|
|
2795
2795
|
className: ze([
|
|
2796
2796
|
`${ae}__arrow`,
|