@purpurds/tooltip 8.3.1 → 8.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/chunked-rush-logs/tooltip.test_unit.chunks.jsonl +4 -4
- package/.rush/temp/ci_build/@purpurds/tooltip/{30f5b747d15daa682405f8e43828fe6d2dc897a2.untar.log → 89c6154691d3a5ae298caeaa47dc130420d4e282.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +4 -4
- package/.rush/temp/operation/ci_build/log-chunks.jsonl +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/log-chunks.jsonl +4 -4
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +5 -5
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +153 -153
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +7 -7
package/dist/tooltip.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as _e, jsx as x, Fragment as
|
|
1
|
+
import { jsxs as _e, jsx as x, Fragment as jn } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { forwardRef as Mt, useLayoutEffect as
|
|
3
|
+
import { forwardRef as Mt, useLayoutEffect as Fn, useState as In, Children as Wn } from "react";
|
|
4
4
|
import * as $t from "react-dom";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import Bn from "react-dom";
|
|
6
|
+
const Hn = {
|
|
7
7
|
LG: "lg"
|
|
8
8
|
};
|
|
9
9
|
function zn(e) {
|
|
@@ -124,27 +124,27 @@ function Qn() {
|
|
|
124
124
|
}
|
|
125
125
|
var er = Qn();
|
|
126
126
|
const tr = /* @__PURE__ */ Jn(er), nr = {
|
|
127
|
-
"purpur-button": "_purpur-
|
|
128
|
-
"purpur-button--xs": "_purpur-button--
|
|
129
|
-
"purpur-button--icon-only": "_purpur-button--icon-
|
|
130
|
-
"purpur-button--sm": "_purpur-button--
|
|
131
|
-
"purpur-button--md": "_purpur-button--
|
|
132
|
-
"purpur-button--lg": "_purpur-button--
|
|
133
|
-
"purpur-button--full-width": "_purpur-button--full-
|
|
134
|
-
"purpur-button--primary": "_purpur-button--
|
|
135
|
-
"purpur-button--disabled": "_purpur-button--
|
|
136
|
-
"purpur-button--primary-negative": "_purpur-button--primary-
|
|
137
|
-
"purpur-button--secondary": "_purpur-button--
|
|
138
|
-
"purpur-button--secondary-negative": "_purpur-button--secondary-
|
|
139
|
-
"purpur-button--expressive": "_purpur-button--
|
|
140
|
-
"purpur-button--expressive-negative": "_purpur-button--expressive-
|
|
141
|
-
"purpur-button--negative": "_purpur-button--
|
|
142
|
-
"purpur-button--destructive": "_purpur-button--
|
|
143
|
-
"purpur-button--destructive-negative": "_purpur-button--destructive-
|
|
144
|
-
"purpur-button--tertiary-purple": "_purpur-button--tertiary-
|
|
145
|
-
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-
|
|
146
|
-
"purpur-button--text-negative": "_purpur-button--text-
|
|
147
|
-
"purpur-button--text": "_purpur-button--
|
|
127
|
+
"purpur-button": "_purpur-button_cjx7j_1",
|
|
128
|
+
"purpur-button--xs": "_purpur-button--xs_cjx7j_22",
|
|
129
|
+
"purpur-button--icon-only": "_purpur-button--icon-only_cjx7j_25",
|
|
130
|
+
"purpur-button--sm": "_purpur-button--sm_cjx7j_28",
|
|
131
|
+
"purpur-button--md": "_purpur-button--md_cjx7j_34",
|
|
132
|
+
"purpur-button--lg": "_purpur-button--lg_cjx7j_40",
|
|
133
|
+
"purpur-button--full-width": "_purpur-button--full-width_cjx7j_46",
|
|
134
|
+
"purpur-button--primary": "_purpur-button--primary_cjx7j_64",
|
|
135
|
+
"purpur-button--disabled": "_purpur-button--disabled_cjx7j_68",
|
|
136
|
+
"purpur-button--primary-negative": "_purpur-button--primary-negative_cjx7j_74",
|
|
137
|
+
"purpur-button--secondary": "_purpur-button--secondary_cjx7j_86",
|
|
138
|
+
"purpur-button--secondary-negative": "_purpur-button--secondary-negative_cjx7j_97",
|
|
139
|
+
"purpur-button--expressive": "_purpur-button--expressive_cjx7j_108",
|
|
140
|
+
"purpur-button--expressive-negative": "_purpur-button--expressive-negative_cjx7j_118",
|
|
141
|
+
"purpur-button--negative": "_purpur-button--negative_cjx7j_130",
|
|
142
|
+
"purpur-button--destructive": "_purpur-button--destructive_cjx7j_137",
|
|
143
|
+
"purpur-button--destructive-negative": "_purpur-button--destructive-negative_cjx7j_147",
|
|
144
|
+
"purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_cjx7j_157",
|
|
145
|
+
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_cjx7j_170",
|
|
146
|
+
"purpur-button--text-negative": "_purpur-button--text-negative_cjx7j_185",
|
|
147
|
+
"purpur-button--text": "_purpur-button--text_cjx7j_185"
|
|
148
148
|
}, rr = {
|
|
149
149
|
TERTIARY_PURPLE: "tertiary-purple"
|
|
150
150
|
}, or = tr.bind(nr), Q = "purpur-button", kt = Mt(
|
|
@@ -193,7 +193,7 @@ const tr = /* @__PURE__ */ Jn(er), nr = {
|
|
|
193
193
|
r && /* @__PURE__ */ x(
|
|
194
194
|
Kn,
|
|
195
195
|
{
|
|
196
|
-
size: l ===
|
|
196
|
+
size: l === Hn.LG ? "xs" : "xxs",
|
|
197
197
|
negative: s,
|
|
198
198
|
disabled: g
|
|
199
199
|
}
|
|
@@ -265,21 +265,21 @@ const cr = /* @__PURE__ */ ir(ar), lr = {
|
|
|
265
265
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
266
266
|
], o = t ? `<title>${t}</title>` : "";
|
|
267
267
|
return `<svg ${pr(n)}>${o}${e}</svg>`;
|
|
268
|
-
}, hr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
268
|
+
}, hr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), jt = ({ svg: e, allyTitle: t, className: n, size: o = fr, ...i }) => {
|
|
269
269
|
const r = dr({
|
|
270
270
|
content: hr(e.svg),
|
|
271
271
|
title: t
|
|
272
272
|
}), s = ur(n, gt, `${gt}--${o}`);
|
|
273
273
|
return /* @__PURE__ */ x("span", { className: s, dangerouslySetInnerHTML: { __html: r }, ...i });
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
jt.displayName = "Icon";
|
|
276
276
|
const mr = {
|
|
277
277
|
name: "info",
|
|
278
278
|
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>',
|
|
279
279
|
keywords: ["info"],
|
|
280
280
|
category: "status"
|
|
281
|
-
},
|
|
282
|
-
|
|
281
|
+
}, Ft = (e) => /* @__PURE__ */ x(jt, { ...e, svg: mr });
|
|
282
|
+
Ft.displayName = "IconInfo";
|
|
283
283
|
function gr(e) {
|
|
284
284
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
285
285
|
}
|
|
@@ -338,15 +338,15 @@ const wr = /* @__PURE__ */ gr(yr), xr = {
|
|
|
338
338
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
339
339
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
340
340
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
341
|
-
}, br = wr.bind(xr),
|
|
341
|
+
}, br = wr.bind(xr), It = {
|
|
342
342
|
PARAGRAPH100: "paragraph-100"
|
|
343
|
-
}, pe = "purpur-paragraph",
|
|
343
|
+
}, pe = "purpur-paragraph", Wt = ({
|
|
344
344
|
children: e,
|
|
345
345
|
className: t,
|
|
346
346
|
disabled: n,
|
|
347
347
|
enableHyphenation: o = !1,
|
|
348
348
|
negative: i = !1,
|
|
349
|
-
variant: r =
|
|
349
|
+
variant: r = It.PARAGRAPH100,
|
|
350
350
|
...s
|
|
351
351
|
}) => {
|
|
352
352
|
const a = br(t, pe, `${pe}--${r}`, {
|
|
@@ -356,7 +356,7 @@ const wr = /* @__PURE__ */ gr(yr), xr = {
|
|
|
356
356
|
});
|
|
357
357
|
return /* @__PURE__ */ x("p", { ...s, className: a, children: e });
|
|
358
358
|
};
|
|
359
|
-
|
|
359
|
+
Wt.displayName = "Paragraph";
|
|
360
360
|
const _r = "400ms";
|
|
361
361
|
function q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
362
362
|
return function(i) {
|
|
@@ -369,7 +369,7 @@ function wt(e, t) {
|
|
|
369
369
|
return e(t);
|
|
370
370
|
e != null && (e.current = t);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Bt(...e) {
|
|
373
373
|
return (t) => {
|
|
374
374
|
let n = !1;
|
|
375
375
|
const o = e.map((i) => {
|
|
@@ -386,9 +386,9 @@ function Ht(...e) {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function ne(...e) {
|
|
389
|
-
return f.useCallback(
|
|
389
|
+
return f.useCallback(Bt(...e), e);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Ht(e, t = []) {
|
|
392
392
|
let n = [];
|
|
393
393
|
function o(r, s) {
|
|
394
394
|
const a = f.createContext(s), l = n.length;
|
|
@@ -442,21 +442,21 @@ var zt = f.forwardRef((e, t) => {
|
|
|
442
442
|
const { children: n, ...o } = e, i = f.Children.toArray(n), r = i.find(Cr);
|
|
443
443
|
if (r) {
|
|
444
444
|
const s = r.props.children, a = i.map((l) => l === r ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : l);
|
|
445
|
-
return /* @__PURE__ */ x(
|
|
445
|
+
return /* @__PURE__ */ x(Fe, { ...o, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, a) : null });
|
|
446
446
|
}
|
|
447
|
-
return /* @__PURE__ */ x(
|
|
447
|
+
return /* @__PURE__ */ x(Fe, { ...o, ref: t, children: n });
|
|
448
448
|
});
|
|
449
449
|
zt.displayName = "Slot";
|
|
450
|
-
var
|
|
450
|
+
var Fe = f.forwardRef((e, t) => {
|
|
451
451
|
const { children: n, ...o } = e;
|
|
452
452
|
if (f.isValidElement(n)) {
|
|
453
453
|
const i = Or(n), r = Pr(o, n.props);
|
|
454
|
-
return n.type !== f.Fragment && (r.ref = t ?
|
|
454
|
+
return n.type !== f.Fragment && (r.ref = t ? Bt(t, i) : i), f.cloneElement(n, r);
|
|
455
455
|
}
|
|
456
456
|
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
457
457
|
});
|
|
458
|
-
|
|
459
|
-
var Vt = ({ children: e }) => /* @__PURE__ */ x(
|
|
458
|
+
Fe.displayName = "SlotClone";
|
|
459
|
+
var Vt = ({ children: e }) => /* @__PURE__ */ x(jn, { children: e });
|
|
460
460
|
function Cr(e) {
|
|
461
461
|
return f.isValidElement(e) && e.type === Vt;
|
|
462
462
|
}
|
|
@@ -520,7 +520,7 @@ function Sr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
520
520
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
521
521
|
}, [n, t]);
|
|
522
522
|
}
|
|
523
|
-
var Tr = "DismissableLayer",
|
|
523
|
+
var Tr = "DismissableLayer", Ie = "dismissableLayer.update", Nr = "dismissableLayer.pointerDownOutside", Dr = "dismissableLayer.focusOutside", xt, Ut = f.createContext({
|
|
524
524
|
layers: /* @__PURE__ */ new Set(),
|
|
525
525
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
526
526
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -552,7 +552,7 @@ var Tr = "DismissableLayer", We = "dismissableLayer.update", Nr = "dismissableLa
|
|
|
552
552
|
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), bt());
|
|
553
553
|
}, [u, c]), f.useEffect(() => {
|
|
554
554
|
const _ = () => d({});
|
|
555
|
-
return document.addEventListener(
|
|
555
|
+
return document.addEventListener(Ie, _), () => document.removeEventListener(Ie, _);
|
|
556
556
|
}, []), /* @__PURE__ */ x(
|
|
557
557
|
J.div,
|
|
558
558
|
{
|
|
@@ -629,7 +629,7 @@ function kr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
631
|
function bt() {
|
|
632
|
-
const e = new CustomEvent(
|
|
632
|
+
const e = new CustomEvent(Ie);
|
|
633
633
|
document.dispatchEvent(e);
|
|
634
634
|
}
|
|
635
635
|
function qt(e, t, n, { discrete: o }) {
|
|
@@ -637,28 +637,28 @@ function qt(e, t, n, { discrete: o }) {
|
|
|
637
637
|
t && i.addEventListener(e, t, { once: !0 }), o ? Er(i, r) : i.dispatchEvent(r);
|
|
638
638
|
}
|
|
639
639
|
var ee = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
640
|
-
},
|
|
641
|
-
}),
|
|
642
|
-
function
|
|
643
|
-
const [t, n] = f.useState(
|
|
640
|
+
}, jr = f.useId || (() => {
|
|
641
|
+
}), Fr = 0;
|
|
642
|
+
function Ir(e) {
|
|
643
|
+
const [t, n] = f.useState(jr());
|
|
644
644
|
return ee(() => {
|
|
645
|
-
n((o) => o ?? String(
|
|
645
|
+
n((o) => o ?? String(Fr++));
|
|
646
646
|
}, [e]), t ? `radix-${t}` : "";
|
|
647
647
|
}
|
|
648
|
-
const
|
|
648
|
+
const Wr = ["top", "right", "bottom", "left"], Z = Math.min, F = Math.max, Ae = Math.round, we = Math.floor, V = (e) => ({
|
|
649
649
|
x: e,
|
|
650
650
|
y: e
|
|
651
|
-
}),
|
|
651
|
+
}), Br = {
|
|
652
652
|
left: "right",
|
|
653
653
|
right: "left",
|
|
654
654
|
bottom: "top",
|
|
655
655
|
top: "bottom"
|
|
656
|
-
},
|
|
656
|
+
}, Hr = {
|
|
657
657
|
start: "end",
|
|
658
658
|
end: "start"
|
|
659
659
|
};
|
|
660
|
-
function
|
|
661
|
-
return
|
|
660
|
+
function We(e, t, n) {
|
|
661
|
+
return F(e, Z(t, n));
|
|
662
662
|
}
|
|
663
663
|
function G(e, t) {
|
|
664
664
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -690,10 +690,10 @@ function Vr(e, t, n) {
|
|
|
690
690
|
}
|
|
691
691
|
function Ur(e) {
|
|
692
692
|
const t = Ce(e);
|
|
693
|
-
return [
|
|
693
|
+
return [Be(e), t, Be(t)];
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return e.replace(/start|end/g, (t) =>
|
|
695
|
+
function Be(e) {
|
|
696
|
+
return e.replace(/start|end/g, (t) => Hr[t]);
|
|
697
697
|
}
|
|
698
698
|
const _t = ["left", "right"], At = ["right", "left"], Yr = ["top", "bottom"], qr = ["bottom", "top"];
|
|
699
699
|
function Gr(e, t, n) {
|
|
@@ -711,10 +711,10 @@ function Gr(e, t, n) {
|
|
|
711
711
|
function Xr(e, t, n, o) {
|
|
712
712
|
const i = ce(e);
|
|
713
713
|
let r = Gr(X(e), n === "start", o);
|
|
714
|
-
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(
|
|
714
|
+
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Be)))), r;
|
|
715
715
|
}
|
|
716
716
|
function Ce(e) {
|
|
717
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
717
|
+
return e.replace(/left|right|bottom|top/g, (t) => Br[t]);
|
|
718
718
|
}
|
|
719
719
|
function Zr(e) {
|
|
720
720
|
return {
|
|
@@ -929,12 +929,12 @@ const Jr = (e) => ({
|
|
|
929
929
|
}, d = qe(i), m = Ye(d), g = await s.getDimensions(c), v = d === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[d] - h[d] - r.floating[m], A = h[d] - r.reference[d], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
930
930
|
let _ = P ? P[C] : 0;
|
|
931
931
|
(!_ || !await (s.isElement == null ? void 0 : s.isElement(P))) && (_ = a.floating[C] || r.floating[m]);
|
|
932
|
-
const R = b / 2 - A / 2, L = _ / 2 - g[m] / 2 - 1, E = Z(p[y], L), $ = Z(p[w], L), k = E, T = _ - g[m] - $, S = _ / 2 - g[m] / 2 + R,
|
|
932
|
+
const R = b / 2 - A / 2, L = _ / 2 - g[m] / 2 - 1, E = Z(p[y], L), $ = Z(p[w], L), k = E, T = _ - g[m] - $, S = _ / 2 - g[m] / 2 + R, j = We(k, S, T), N = !l.arrow && ce(i) != null && S !== j && r.reference[m] / 2 - (S < k ? E : $) - g[m] / 2 < 0, D = N ? S < k ? S - k : S - T : 0;
|
|
933
933
|
return {
|
|
934
934
|
[d]: h[d] + D,
|
|
935
935
|
data: {
|
|
936
|
-
[d]:
|
|
937
|
-
centerOffset: S -
|
|
936
|
+
[d]: j,
|
|
937
|
+
centerOffset: S - j - D,
|
|
938
938
|
...N && {
|
|
939
939
|
alignmentOffset: D
|
|
940
940
|
}
|
|
@@ -979,8 +979,8 @@ const Jr = (e) => ({
|
|
|
979
979
|
overflows: L
|
|
980
980
|
}], !L.every((S) => S <= 0)) {
|
|
981
981
|
var $, k;
|
|
982
|
-
const S = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1,
|
|
983
|
-
if (
|
|
982
|
+
const S = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1, j = _[S];
|
|
983
|
+
if (j && (!(p === "alignment" ? w !== z(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
984
984
|
// overflows the main axis.
|
|
985
985
|
E.every((O) => z(O.placement) === w ? O.overflows[0] > 0 : !0)))
|
|
986
986
|
return {
|
|
@@ -989,7 +989,7 @@ const Jr = (e) => ({
|
|
|
989
989
|
overflows: E
|
|
990
990
|
},
|
|
991
991
|
reset: {
|
|
992
|
-
placement:
|
|
992
|
+
placement: j
|
|
993
993
|
}
|
|
994
994
|
};
|
|
995
995
|
let N = (k = E.filter((D) => D.overflows[0] <= 0).sort((D, O) => D.overflows[1] - O.overflows[1])[0]) == null ? void 0 : k.placement;
|
|
@@ -1005,7 +1005,7 @@ const Jr = (e) => ({
|
|
|
1005
1005
|
M === "y";
|
|
1006
1006
|
}
|
|
1007
1007
|
return !0;
|
|
1008
|
-
}).map((O) => [O.placement, O.overflows.filter((M) => M > 0).reduce((M,
|
|
1008
|
+
}).map((O) => [O.placement, O.overflows.filter((M) => M > 0).reduce((M, H) => M + H, 0)]).sort((O, M) => O[1] - M[1])[0]) == null ? void 0 : T[0];
|
|
1009
1009
|
D && (N = D);
|
|
1010
1010
|
break;
|
|
1011
1011
|
}
|
|
@@ -1033,7 +1033,7 @@ function Pt(e, t) {
|
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
1035
1035
|
function Ot(e) {
|
|
1036
|
-
return
|
|
1036
|
+
return Wr.some((t) => e[t] >= 0);
|
|
1037
1037
|
}
|
|
1038
1038
|
const eo = function(e) {
|
|
1039
1039
|
return e === void 0 && (e = {}), {
|
|
@@ -1158,11 +1158,11 @@ const no = function(e) {
|
|
|
1158
1158
|
let d = c[h], m = c[p];
|
|
1159
1159
|
if (r) {
|
|
1160
1160
|
const v = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = d + u[v], C = d - u[y];
|
|
1161
|
-
d =
|
|
1161
|
+
d = We(w, d, C);
|
|
1162
1162
|
}
|
|
1163
1163
|
if (s) {
|
|
1164
1164
|
const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + u[v], C = m - u[y];
|
|
1165
|
-
m =
|
|
1165
|
+
m = We(w, m, C);
|
|
1166
1166
|
}
|
|
1167
1167
|
const g = a.fn({
|
|
1168
1168
|
...t,
|
|
@@ -1248,8 +1248,8 @@ const no = function(e) {
|
|
|
1248
1248
|
const w = g - u.top - u.bottom, C = m - u.left - u.right, b = Z(g - u[v], w), A = Z(m - u[y], C), P = !t.middlewareData.shift;
|
|
1249
1249
|
let _ = b, R = A;
|
|
1250
1250
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = C), (o = t.middlewareData.shift) != null && o.enabled.y && (_ = w), P && !h) {
|
|
1251
|
-
const E =
|
|
1252
|
-
d ? R = m - 2 * (E !== 0 || $ !== 0 ? E + $ :
|
|
1251
|
+
const E = F(u.left, 0), $ = F(u.right, 0), k = F(u.top, 0), T = F(u.bottom, 0);
|
|
1252
|
+
d ? R = m - 2 * (E !== 0 || $ !== 0 ? E + $ : F(u.left, u.right)) : _ = g - 2 * (k !== 0 || T !== 0 ? k + T : F(u.top, u.bottom));
|
|
1253
1253
|
}
|
|
1254
1254
|
await l({
|
|
1255
1255
|
...t,
|
|
@@ -1271,7 +1271,7 @@ function Re() {
|
|
|
1271
1271
|
function le(e) {
|
|
1272
1272
|
return Zt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function I(e) {
|
|
1275
1275
|
var t;
|
|
1276
1276
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1277
1277
|
}
|
|
@@ -1280,16 +1280,16 @@ function Y(e) {
|
|
|
1280
1280
|
return (t = (Zt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1281
1281
|
}
|
|
1282
1282
|
function Zt(e) {
|
|
1283
|
-
return Re() ? e instanceof Node || e instanceof
|
|
1283
|
+
return Re() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1286
|
-
return Re() ? e instanceof Element || e instanceof
|
|
1285
|
+
function W(e) {
|
|
1286
|
+
return Re() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
1287
1287
|
}
|
|
1288
1288
|
function U(e) {
|
|
1289
|
-
return Re() ? e instanceof HTMLElement || e instanceof
|
|
1289
|
+
return Re() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
1290
1290
|
}
|
|
1291
1291
|
function Rt(e) {
|
|
1292
|
-
return !Re() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
1292
|
+
return !Re() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
1293
1293
|
}
|
|
1294
1294
|
const so = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1295
1295
|
function me(e) {
|
|
@@ -1298,7 +1298,7 @@ function me(e) {
|
|
|
1298
1298
|
overflowX: n,
|
|
1299
1299
|
overflowY: o,
|
|
1300
1300
|
display: i
|
|
1301
|
-
} =
|
|
1301
|
+
} = B(e);
|
|
1302
1302
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !so.has(i);
|
|
1303
1303
|
}
|
|
1304
1304
|
const ao = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -1317,7 +1317,7 @@ function Ee(e) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
const uo = ["transform", "translate", "scale", "rotate", "perspective"], fo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], po = ["paint", "layout", "strict", "content"];
|
|
1319
1319
|
function Ge(e) {
|
|
1320
|
-
const t = Xe(), n =
|
|
1320
|
+
const t = Xe(), n = W(e) ? B(e) : e;
|
|
1321
1321
|
return uo.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || fo.some((o) => (n.willChange || "").includes(o)) || po.some((o) => (n.contain || "").includes(o));
|
|
1322
1322
|
}
|
|
1323
1323
|
function ho(e) {
|
|
@@ -1338,11 +1338,11 @@ const mo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
1338
1338
|
function ie(e) {
|
|
1339
1339
|
return mo.has(le(e));
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1342
|
-
return
|
|
1341
|
+
function B(e) {
|
|
1342
|
+
return I(e).getComputedStyle(e);
|
|
1343
1343
|
}
|
|
1344
1344
|
function Se(e) {
|
|
1345
|
-
return
|
|
1345
|
+
return W(e) ? {
|
|
1346
1346
|
scrollLeft: e.scrollLeft,
|
|
1347
1347
|
scrollTop: e.scrollTop
|
|
1348
1348
|
} : {
|
|
@@ -1369,18 +1369,18 @@ function Kt(e) {
|
|
|
1369
1369
|
function he(e, t, n) {
|
|
1370
1370
|
var o;
|
|
1371
1371
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1372
|
-
const i = Kt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s =
|
|
1372
|
+
const i = Kt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = I(i);
|
|
1373
1373
|
if (r) {
|
|
1374
|
-
const a =
|
|
1374
|
+
const a = He(s);
|
|
1375
1375
|
return t.concat(s, s.visualViewport || [], me(i) ? i : [], a && n ? he(a) : []);
|
|
1376
1376
|
}
|
|
1377
1377
|
return t.concat(i, he(i, [], n));
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function He(e) {
|
|
1380
1380
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1381
1381
|
}
|
|
1382
1382
|
function Jt(e) {
|
|
1383
|
-
const t =
|
|
1383
|
+
const t = B(e);
|
|
1384
1384
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1385
1385
|
const i = U(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Ae(n) !== r || Ae(o) !== s;
|
|
1386
1386
|
return a && (n = r, o = s), {
|
|
@@ -1390,7 +1390,7 @@ function Jt(e) {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
function Ze(e) {
|
|
1393
|
-
return
|
|
1393
|
+
return W(e) ? e : e.contextElement;
|
|
1394
1394
|
}
|
|
1395
1395
|
function oe(e) {
|
|
1396
1396
|
const t = Ze(e);
|
|
@@ -1409,28 +1409,28 @@ function oe(e) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
const go = /* @__PURE__ */ V(0);
|
|
1411
1411
|
function Qt(e) {
|
|
1412
|
-
const t =
|
|
1412
|
+
const t = I(e);
|
|
1413
1413
|
return !Xe() || !t.visualViewport ? go : {
|
|
1414
1414
|
x: t.visualViewport.offsetLeft,
|
|
1415
1415
|
y: t.visualViewport.offsetTop
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
1418
|
function vo(e, t, n) {
|
|
1419
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1419
|
+
return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
|
|
1420
1420
|
}
|
|
1421
1421
|
function te(e, t, n, o) {
|
|
1422
1422
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1423
1423
|
const i = e.getBoundingClientRect(), r = Ze(e);
|
|
1424
1424
|
let s = V(1);
|
|
1425
|
-
t && (o ?
|
|
1425
|
+
t && (o ? W(o) && (s = oe(o)) : s = oe(e));
|
|
1426
1426
|
const a = vo(r, n, o) ? Qt(r) : V(0);
|
|
1427
1427
|
let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, u = i.width / s.x, p = i.height / s.y;
|
|
1428
1428
|
if (r) {
|
|
1429
|
-
const h =
|
|
1430
|
-
let m = h, g =
|
|
1429
|
+
const h = I(r), d = o && W(o) ? I(o) : o;
|
|
1430
|
+
let m = h, g = He(m);
|
|
1431
1431
|
for (; g && o && d !== m; ) {
|
|
1432
|
-
const v = oe(g), y = g.getBoundingClientRect(), w =
|
|
1433
|
-
l *= v.x, c *= v.y, u *= v.x, p *= v.y, l += C, c += b, m =
|
|
1432
|
+
const v = oe(g), y = g.getBoundingClientRect(), w = B(g), C = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, b = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
1433
|
+
l *= v.x, c *= v.y, u *= v.x, p *= v.y, l += C, c += b, m = I(g), g = He(m);
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
return Pe({
|
|
@@ -1482,10 +1482,10 @@ function wo(e) {
|
|
|
1482
1482
|
return Array.from(e.getClientRects());
|
|
1483
1483
|
}
|
|
1484
1484
|
function xo(e) {
|
|
1485
|
-
const t = Y(e), n = Se(e), o = e.ownerDocument.body, i =
|
|
1485
|
+
const t = Y(e), n = Se(e), o = e.ownerDocument.body, i = F(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = F(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1486
1486
|
let s = -n.scrollLeft + Te(e);
|
|
1487
1487
|
const a = -n.scrollTop;
|
|
1488
|
-
return
|
|
1488
|
+
return B(o).direction === "rtl" && (s += F(t.clientWidth, o.clientWidth) - i), {
|
|
1489
1489
|
width: i,
|
|
1490
1490
|
height: r,
|
|
1491
1491
|
x: s,
|
|
@@ -1494,7 +1494,7 @@ function xo(e) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
const Et = 25;
|
|
1496
1496
|
function bo(e, t) {
|
|
1497
|
-
const n =
|
|
1497
|
+
const n = I(e), o = Y(e), i = n.visualViewport;
|
|
1498
1498
|
let r = o.clientWidth, s = o.clientHeight, a = 0, l = 0;
|
|
1499
1499
|
if (i) {
|
|
1500
1500
|
r = i.width, s = i.height;
|
|
@@ -1529,7 +1529,7 @@ function St(e, t, n) {
|
|
|
1529
1529
|
o = bo(e, n);
|
|
1530
1530
|
else if (t === "document")
|
|
1531
1531
|
o = xo(Y(e));
|
|
1532
|
-
else if (
|
|
1532
|
+
else if (W(t))
|
|
1533
1533
|
o = Ao(t, n);
|
|
1534
1534
|
else {
|
|
1535
1535
|
const i = Qt(e);
|
|
@@ -1544,17 +1544,17 @@ function St(e, t, n) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
function tn(e, t) {
|
|
1546
1546
|
const n = K(e);
|
|
1547
|
-
return n === t || !
|
|
1547
|
+
return n === t || !W(n) || ie(n) ? !1 : B(n).position === "fixed" || tn(n, t);
|
|
1548
1548
|
}
|
|
1549
1549
|
function Co(e, t) {
|
|
1550
1550
|
const n = t.get(e);
|
|
1551
1551
|
if (n)
|
|
1552
1552
|
return n;
|
|
1553
|
-
let o = he(e, [], !1).filter((a) =>
|
|
1554
|
-
const r =
|
|
1553
|
+
let o = he(e, [], !1).filter((a) => W(a) && le(a) !== "body"), i = null;
|
|
1554
|
+
const r = B(e).position === "fixed";
|
|
1555
1555
|
let s = r ? K(e) : e;
|
|
1556
|
-
for (;
|
|
1557
|
-
const a =
|
|
1556
|
+
for (; W(s) && !ie(s); ) {
|
|
1557
|
+
const a = B(s), l = Ge(s);
|
|
1558
1558
|
!l && a.position === "fixed" && (i = null), (r ? !l && !i : !l && a.position === "static" && !!i && _o.has(i.position) || me(s) && !l && tn(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = K(s);
|
|
1559
1559
|
}
|
|
1560
1560
|
return t.set(e, o), o;
|
|
@@ -1568,7 +1568,7 @@ function Po(e) {
|
|
|
1568
1568
|
} = e;
|
|
1569
1569
|
const s = [...n === "clippingAncestors" ? Ee(t) ? [] : Co(t, this._c) : [].concat(n), o], a = s[0], l = s.reduce((c, u) => {
|
|
1570
1570
|
const p = St(t, u, i);
|
|
1571
|
-
return c.top =
|
|
1571
|
+
return c.top = F(p.top, c.top), c.right = Z(p.right, c.right), c.bottom = Z(p.bottom, c.bottom), c.left = F(p.left, c.left), c;
|
|
1572
1572
|
}, St(t, a, i));
|
|
1573
1573
|
return {
|
|
1574
1574
|
width: l.right - l.left,
|
|
@@ -1612,10 +1612,10 @@ function Ro(e, t, n) {
|
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
1614
|
function Me(e) {
|
|
1615
|
-
return
|
|
1615
|
+
return B(e).position === "static";
|
|
1616
1616
|
}
|
|
1617
1617
|
function Tt(e, t) {
|
|
1618
|
-
if (!U(e) ||
|
|
1618
|
+
if (!U(e) || B(e).position === "fixed")
|
|
1619
1619
|
return null;
|
|
1620
1620
|
if (t)
|
|
1621
1621
|
return t(e);
|
|
@@ -1623,13 +1623,13 @@ function Tt(e, t) {
|
|
|
1623
1623
|
return Y(e) === n && (n = n.ownerDocument.body), n;
|
|
1624
1624
|
}
|
|
1625
1625
|
function nn(e, t) {
|
|
1626
|
-
const n =
|
|
1626
|
+
const n = I(e);
|
|
1627
1627
|
if (Ee(e))
|
|
1628
1628
|
return n;
|
|
1629
1629
|
if (!U(e)) {
|
|
1630
1630
|
let i = K(e);
|
|
1631
1631
|
for (; i && !ie(i); ) {
|
|
1632
|
-
if (
|
|
1632
|
+
if (W(i) && !Me(i))
|
|
1633
1633
|
return i;
|
|
1634
1634
|
i = K(i);
|
|
1635
1635
|
}
|
|
@@ -1653,7 +1653,7 @@ const Eo = async function(e) {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
};
|
|
1655
1655
|
function So(e) {
|
|
1656
|
-
return
|
|
1656
|
+
return B(e).direction === "rtl";
|
|
1657
1657
|
}
|
|
1658
1658
|
const To = {
|
|
1659
1659
|
convertOffsetParentRelativeRectToViewportRelativeRect: yo,
|
|
@@ -1664,7 +1664,7 @@ const To = {
|
|
|
1664
1664
|
getClientRects: wo,
|
|
1665
1665
|
getDimensions: Oo,
|
|
1666
1666
|
getScale: oe,
|
|
1667
|
-
isElement:
|
|
1667
|
+
isElement: W,
|
|
1668
1668
|
isRTL: So
|
|
1669
1669
|
};
|
|
1670
1670
|
function rn(e, t) {
|
|
@@ -1689,7 +1689,7 @@ function No(e, t) {
|
|
|
1689
1689
|
return;
|
|
1690
1690
|
const m = we(p), g = we(i.clientWidth - (u + h)), v = we(i.clientHeight - (p + d)), y = we(u), C = {
|
|
1691
1691
|
rootMargin: -m + "px " + -g + "px " + -v + "px " + -y + "px",
|
|
1692
|
-
threshold:
|
|
1692
|
+
threshold: F(0, Z(1, l)) || 1
|
|
1693
1693
|
};
|
|
1694
1694
|
let b = !0;
|
|
1695
1695
|
function A(P) {
|
|
@@ -1752,7 +1752,7 @@ function Do(e, t, n, o) {
|
|
|
1752
1752
|
}), p == null || p(), (y = d) == null || y.disconnect(), d = null, l && cancelAnimationFrame(m);
|
|
1753
1753
|
};
|
|
1754
1754
|
}
|
|
1755
|
-
const Lo = no, Mo = ro, $o = Qr, ko = io,
|
|
1755
|
+
const Lo = no, Mo = ro, $o = Qr, ko = io, jo = eo, Nt = Jr, Fo = oo, Io = (e, t, n) => {
|
|
1756
1756
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1757
1757
|
platform: To,
|
|
1758
1758
|
...n
|
|
@@ -1765,8 +1765,8 @@ const Lo = no, Mo = ro, $o = Qr, ko = io, Fo = eo, Nt = Jr, Io = oo, Wo = (e, t,
|
|
|
1765
1765
|
platform: r
|
|
1766
1766
|
});
|
|
1767
1767
|
};
|
|
1768
|
-
var
|
|
1769
|
-
}, be =
|
|
1768
|
+
var Wo = typeof document < "u", Bo = function() {
|
|
1769
|
+
}, be = Wo ? Fn : Bo;
|
|
1770
1770
|
function Oe(e, t) {
|
|
1771
1771
|
if (e === t)
|
|
1772
1772
|
return !0;
|
|
@@ -1810,7 +1810,7 @@ function $e(e) {
|
|
|
1810
1810
|
t.current = e;
|
|
1811
1811
|
}), t;
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function Ho(e) {
|
|
1814
1814
|
e === void 0 && (e = {});
|
|
1815
1815
|
const {
|
|
1816
1816
|
placement: t = "bottom",
|
|
@@ -1845,8 +1845,8 @@ function jo(e) {
|
|
|
1845
1845
|
strategy: n,
|
|
1846
1846
|
middleware: h
|
|
1847
1847
|
};
|
|
1848
|
-
$.current && (O.platform = $.current),
|
|
1849
|
-
const
|
|
1848
|
+
$.current && (O.platform = $.current), Io(P.current, _.current, O).then((M) => {
|
|
1849
|
+
const H = {
|
|
1850
1850
|
...M,
|
|
1851
1851
|
// The floating element's position may be recomputed while it's closed
|
|
1852
1852
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -1854,8 +1854,8 @@ function jo(e) {
|
|
|
1854
1854
|
// setting it to `true` when `open === false` (must be specified).
|
|
1855
1855
|
isPositioned: k.current !== !1
|
|
1856
1856
|
};
|
|
1857
|
-
S.current && !Oe(R.current,
|
|
1858
|
-
p(
|
|
1857
|
+
S.current && !Oe(R.current, H) && (R.current = H, $t.flushSync(() => {
|
|
1858
|
+
p(H);
|
|
1859
1859
|
}));
|
|
1860
1860
|
});
|
|
1861
1861
|
}, [h, t, n, $, k]);
|
|
@@ -1875,7 +1875,7 @@ function jo(e) {
|
|
|
1875
1875
|
T();
|
|
1876
1876
|
}
|
|
1877
1877
|
}, [b, A, T, E, L]);
|
|
1878
|
-
const
|
|
1878
|
+
const j = f.useMemo(() => ({
|
|
1879
1879
|
reference: P,
|
|
1880
1880
|
floating: _,
|
|
1881
1881
|
setReference: w,
|
|
@@ -1891,26 +1891,26 @@ function jo(e) {
|
|
|
1891
1891
|
};
|
|
1892
1892
|
if (!N.floating)
|
|
1893
1893
|
return O;
|
|
1894
|
-
const M = Dt(N.floating, u.x),
|
|
1894
|
+
const M = Dt(N.floating, u.x), H = Dt(N.floating, u.y);
|
|
1895
1895
|
return a ? {
|
|
1896
1896
|
...O,
|
|
1897
|
-
transform: "translate(" + M + "px, " +
|
|
1897
|
+
transform: "translate(" + M + "px, " + H + "px)",
|
|
1898
1898
|
...on(N.floating) >= 1.5 && {
|
|
1899
1899
|
willChange: "transform"
|
|
1900
1900
|
}
|
|
1901
1901
|
} : {
|
|
1902
1902
|
position: n,
|
|
1903
1903
|
left: M,
|
|
1904
|
-
top:
|
|
1904
|
+
top: H
|
|
1905
1905
|
};
|
|
1906
1906
|
}, [n, a, N.floating, u.x, u.y]);
|
|
1907
1907
|
return f.useMemo(() => ({
|
|
1908
1908
|
...u,
|
|
1909
1909
|
update: T,
|
|
1910
|
-
refs:
|
|
1910
|
+
refs: j,
|
|
1911
1911
|
elements: N,
|
|
1912
1912
|
floatingStyles: D
|
|
1913
|
-
}), [u, T,
|
|
1913
|
+
}), [u, T, j, N, D]);
|
|
1914
1914
|
}
|
|
1915
1915
|
const zo = (e) => {
|
|
1916
1916
|
function t(n) {
|
|
@@ -1940,7 +1940,7 @@ const zo = (e) => {
|
|
|
1940
1940
|
...Mo(e),
|
|
1941
1941
|
options: [e, t]
|
|
1942
1942
|
}), Yo = (e, t) => ({
|
|
1943
|
-
...
|
|
1943
|
+
...Fo(e),
|
|
1944
1944
|
options: [e, t]
|
|
1945
1945
|
}), qo = (e, t) => ({
|
|
1946
1946
|
...$o(e),
|
|
@@ -1949,7 +1949,7 @@ const zo = (e) => {
|
|
|
1949
1949
|
...ko(e),
|
|
1950
1950
|
options: [e, t]
|
|
1951
1951
|
}), Xo = (e, t) => ({
|
|
1952
|
-
...
|
|
1952
|
+
...jo(e),
|
|
1953
1953
|
options: [e, t]
|
|
1954
1954
|
}), Zo = (e, t) => ({
|
|
1955
1955
|
...zo(e),
|
|
@@ -1994,7 +1994,7 @@ function Qo(e) {
|
|
|
1994
1994
|
n(void 0);
|
|
1995
1995
|
}, [e]), t;
|
|
1996
1996
|
}
|
|
1997
|
-
var Ke = "Popper", [an, cn] =
|
|
1997
|
+
var Ke = "Popper", [an, cn] = Ht(Ke), [ei, ln] = an(Ke), un = (e) => {
|
|
1998
1998
|
const { __scopePopper: t, children: n } = e, [o, i] = f.useState(null);
|
|
1999
1999
|
return /* @__PURE__ */ x(ei, { scope: t, anchor: o, onAnchorChange: i, children: n });
|
|
2000
2000
|
};
|
|
@@ -2031,7 +2031,7 @@ var Je = "PopperContent", [ti, ni] = an(Je), dn = f.forwardRef(
|
|
|
2031
2031
|
boundary: $.filter(oi),
|
|
2032
2032
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2033
2033
|
altBoundary: k
|
|
2034
|
-
}, { refs: S, floatingStyles:
|
|
2034
|
+
}, { refs: S, floatingStyles: j, placement: N, isPositioned: D, middlewareData: O } = Ho({
|
|
2035
2035
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2036
2036
|
strategy: "fixed",
|
|
2037
2037
|
placement: L,
|
|
@@ -2061,7 +2061,7 @@ var Je = "PopperContent", [ti, ni] = an(Je), dn = f.forwardRef(
|
|
|
2061
2061
|
ii({ arrowWidth: _, arrowHeight: R }),
|
|
2062
2062
|
h && Xo({ strategy: "referenceHidden", ...T })
|
|
2063
2063
|
]
|
|
2064
|
-
}), [M,
|
|
2064
|
+
}), [M, H] = gn(N), ve = ae(m);
|
|
2065
2065
|
ee(() => {
|
|
2066
2066
|
D && (ve == null || ve());
|
|
2067
2067
|
}, [D, ve]);
|
|
@@ -2074,8 +2074,8 @@ var Je = "PopperContent", [ti, ni] = an(Je), dn = f.forwardRef(
|
|
|
2074
2074
|
ref: S.setFloating,
|
|
2075
2075
|
"data-radix-popper-content-wrapper": "",
|
|
2076
2076
|
style: {
|
|
2077
|
-
...
|
|
2078
|
-
transform: D ?
|
|
2077
|
+
...j,
|
|
2078
|
+
transform: D ? j.transform : "translate(0, -200%)",
|
|
2079
2079
|
// keep off the page when measuring
|
|
2080
2080
|
minWidth: "max-content",
|
|
2081
2081
|
zIndex: Nn,
|
|
@@ -2105,7 +2105,7 @@ var Je = "PopperContent", [ti, ni] = an(Je), dn = f.forwardRef(
|
|
|
2105
2105
|
J.div,
|
|
2106
2106
|
{
|
|
2107
2107
|
"data-side": M,
|
|
2108
|
-
"data-align":
|
|
2108
|
+
"data-align": H,
|
|
2109
2109
|
...g,
|
|
2110
2110
|
ref: C,
|
|
2111
2111
|
style: {
|
|
@@ -2196,7 +2196,7 @@ var si = un, ai = pn, ci = dn, li = mn, ui = "Portal", vn = f.forwardRef((e, t)
|
|
|
2196
2196
|
const { container: n, ...o } = e, [i, r] = f.useState(!1);
|
|
2197
2197
|
ee(() => r(!0), []);
|
|
2198
2198
|
const s = n || i && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
2199
|
-
return s ?
|
|
2199
|
+
return s ? Bn.createPortal(/* @__PURE__ */ x(J.div, { ...o, ref: t }), s) : null;
|
|
2200
2200
|
});
|
|
2201
2201
|
vn.displayName = ui;
|
|
2202
2202
|
function fi(e, t) {
|
|
@@ -2315,7 +2315,7 @@ var gi = "VisuallyHidden", yn = f.forwardRef(
|
|
|
2315
2315
|
)
|
|
2316
2316
|
);
|
|
2317
2317
|
yn.displayName = gi;
|
|
2318
|
-
var vi = yn, [Ne] =
|
|
2318
|
+
var vi = yn, [Ne] = Ht("Tooltip", [
|
|
2319
2319
|
cn
|
|
2320
2320
|
]), De = cn(), wn = "TooltipProvider", yi = 700, ze = "tooltip.open", [wi, et] = Ne(wn), xn = (e) => {
|
|
2321
2321
|
const {
|
|
@@ -2362,7 +2362,7 @@ var Le = "Tooltip", [xi, ge] = Ne(Le), bn = (e) => {
|
|
|
2362
2362
|
onOpenChange: r,
|
|
2363
2363
|
disableHoverableContent: s,
|
|
2364
2364
|
delayDuration: a
|
|
2365
|
-
} = e, l = et(Le, e.__scopeTooltip), c = De(t), [u, p] = f.useState(null), h =
|
|
2365
|
+
} = e, l = et(Le, e.__scopeTooltip), c = De(t), [u, p] = f.useState(null), h = Ir(), d = f.useRef(0), m = s ?? l.disableHoverableContent, g = a ?? l.delayDuration, v = f.useRef(!1), [y = !1, w] = hi({
|
|
2366
2366
|
prop: o,
|
|
2367
2367
|
defaultProp: i,
|
|
2368
2368
|
onChange: (_) => {
|
|
@@ -2624,8 +2624,8 @@ function Ni(e) {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
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);
|
|
2626
2626
|
}
|
|
2627
|
-
var Di = xn, Li = bn, Mi = _n, $i = An, ki = Cn,
|
|
2628
|
-
function
|
|
2627
|
+
var Di = xn, Li = bn, Mi = _n, $i = An, ki = Cn, ji = Rn;
|
|
2628
|
+
function Fi(e) {
|
|
2629
2629
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2630
2630
|
}
|
|
2631
2631
|
var ke = { exports: {} };
|
|
@@ -2635,7 +2635,7 @@ var ke = { exports: {} };
|
|
|
2635
2635
|
http://jedwatson.github.io/classnames
|
|
2636
2636
|
*/
|
|
2637
2637
|
var Lt;
|
|
2638
|
-
function
|
|
2638
|
+
function Ii() {
|
|
2639
2639
|
return Lt || (Lt = 1, (function(e) {
|
|
2640
2640
|
(function() {
|
|
2641
2641
|
var t = {}.hasOwnProperty;
|
|
@@ -2667,19 +2667,19 @@ function Wi() {
|
|
|
2667
2667
|
})();
|
|
2668
2668
|
})(ke)), ke.exports;
|
|
2669
2669
|
}
|
|
2670
|
-
var
|
|
2671
|
-
const
|
|
2670
|
+
var Wi = Ii();
|
|
2671
|
+
const Bi = /* @__PURE__ */ Fi(Wi), Hi = "_slideDownAndFade_fkagk_1", zi = "_slideLeftAndFade_fkagk_1", Vi = "_slideUpAndFade_fkagk_1", Ui = "_slideRightAndFade_fkagk_1", Yi = {
|
|
2672
2672
|
"purpur-tooltip": "_purpur-tooltip_fkagk_1",
|
|
2673
2673
|
"purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
|
|
2674
2674
|
"purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
|
|
2675
2675
|
"purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_fkagk_17",
|
|
2676
|
-
slideDownAndFade:
|
|
2676
|
+
slideDownAndFade: Hi,
|
|
2677
2677
|
slideLeftAndFade: zi,
|
|
2678
2678
|
slideUpAndFade: Vi,
|
|
2679
2679
|
slideRightAndFade: Ui,
|
|
2680
2680
|
"purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
|
|
2681
2681
|
"purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
|
|
2682
|
-
},
|
|
2682
|
+
}, je = Bi.bind(Yi), qi = {
|
|
2683
2683
|
TOP: "top",
|
|
2684
2684
|
BOTTOM: "bottom",
|
|
2685
2685
|
LEFT: "left",
|
|
@@ -2702,7 +2702,7 @@ const Hi = /* @__PURE__ */ Ii(Bi), ji = "_slideDownAndFade_fkagk_1", zi = "_slid
|
|
|
2702
2702
|
triggerElement: c,
|
|
2703
2703
|
...u
|
|
2704
2704
|
}, p) => {
|
|
2705
|
-
const [h, d] =
|
|
2705
|
+
const [h, d] = In(!1), m = je(
|
|
2706
2706
|
o,
|
|
2707
2707
|
re,
|
|
2708
2708
|
`${re}--primary${r ? "-negative" : ""}`
|
|
@@ -2717,7 +2717,7 @@ const Hi = /* @__PURE__ */ Ii(Bi), ji = "_slideDownAndFade_fkagk_1", zi = "_slid
|
|
|
2717
2717
|
iconOnly: !0,
|
|
2718
2718
|
"data-testid": `${e}-trigger-button`,
|
|
2719
2719
|
size: t,
|
|
2720
|
-
children: /* @__PURE__ */ x(
|
|
2720
|
+
children: /* @__PURE__ */ x(Ft, { size: "md" })
|
|
2721
2721
|
}
|
|
2722
2722
|
);
|
|
2723
2723
|
return /* @__PURE__ */ x("div", { "data-testid": e, className: m, children: /* @__PURE__ */ x(Di, { delayDuration: parseInt(_r), children: /* @__PURE__ */ _e(Li, { open: h, onOpenChange: d, ...u, children: [
|
|
@@ -2728,7 +2728,7 @@ const Hi = /* @__PURE__ */ Ii(Bi), ji = "_slideDownAndFade_fkagk_1", zi = "_slid
|
|
|
2728
2728
|
onClick: (v) => {
|
|
2729
2729
|
v.preventDefault(), d(!0);
|
|
2730
2730
|
},
|
|
2731
|
-
children:
|
|
2731
|
+
children: Wn.count(c) === 0 ? g : c
|
|
2732
2732
|
}
|
|
2733
2733
|
),
|
|
2734
2734
|
/* @__PURE__ */ x($i, { children: /* @__PURE__ */ _e(
|
|
@@ -2736,7 +2736,7 @@ const Hi = /* @__PURE__ */ Ii(Bi), ji = "_slideDownAndFade_fkagk_1", zi = "_slid
|
|
|
2736
2736
|
{
|
|
2737
2737
|
side: s,
|
|
2738
2738
|
align: a,
|
|
2739
|
-
className:
|
|
2739
|
+
className: je(
|
|
2740
2740
|
i,
|
|
2741
2741
|
`${re}__content`,
|
|
2742
2742
|
`${re}__content--primary${r ? "-negative" : ""}`
|
|
@@ -2745,18 +2745,18 @@ const Hi = /* @__PURE__ */ Ii(Bi), ji = "_slideDownAndFade_fkagk_1", zi = "_slid
|
|
|
2745
2745
|
"data-testid": `${e}-content`,
|
|
2746
2746
|
children: [
|
|
2747
2747
|
typeof n == "string" ? /* @__PURE__ */ x(
|
|
2748
|
-
|
|
2748
|
+
Wt,
|
|
2749
2749
|
{
|
|
2750
|
-
variant:
|
|
2750
|
+
variant: It.PARAGRAPH100,
|
|
2751
2751
|
negative: !r,
|
|
2752
2752
|
"data-testid": `${e}-paragraph`,
|
|
2753
2753
|
children: n
|
|
2754
2754
|
}
|
|
2755
2755
|
) : n,
|
|
2756
2756
|
/* @__PURE__ */ x(
|
|
2757
|
-
|
|
2757
|
+
ji,
|
|
2758
2758
|
{
|
|
2759
|
-
className:
|
|
2759
|
+
className: je(
|
|
2760
2760
|
`${re}__arrow`,
|
|
2761
2761
|
`${re}__arrow--primary${r ? "-negative" : ""}`
|
|
2762
2762
|
)
|