@konstructio/ui 0.1.2-alpha.71 → 0.1.2-alpha.73
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/dist/{Modal-BGcucTHv.js → Modal-CXRo8f-h.js} +1 -1
- package/dist/assets/icons/components/CheckCircleFilled.d.ts +3 -0
- package/dist/assets/icons/components/CheckCircleFilled.js +31 -0
- package/dist/assets/icons/components/CheckCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/{CheckCircle.js → CheckCircleOutline.js} +8 -8
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +26 -0
- package/dist/assets/icons/components/InfoCircle.d.ts +3 -0
- package/dist/assets/icons/components/InfoCircle.js +31 -0
- package/dist/assets/icons/components/WarningTriangle.d.ts +3 -0
- package/dist/assets/icons/components/WarningTriangle.js +28 -0
- package/dist/assets/icons/components/index.d.ts +5 -1
- package/dist/assets/icons/components/index.js +124 -116
- package/dist/assets/icons/index.js +124 -116
- package/dist/components/Alert/Alert.d.ts +5 -16
- package/dist/components/Alert/Alert.js +46 -32
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/Alert.variants.d.ts +11 -2
- package/dist/components/Alert/Alert.variants.js +77 -32
- package/dist/components/Badge/Badge.variants.d.ts +2 -2
- package/dist/components/Button/Button.variants.d.ts +1 -1
- package/dist/components/Button/Button.variants.js +8 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +1 -1
- package/dist/components/Filter/Filter.d.ts +2 -2
- package/dist/components/Filter/Filter.js +14 -11
- package/dist/components/Filter/Filter.types.d.ts +2 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +74 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +155 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
- package/dist/components/Filter/components/index.d.ts +2 -0
- package/dist/components/Filter/components/index.js +10 -8
- package/dist/components/LineChart/LineChart.d.ts +17 -0
- package/dist/components/LineChart/LineChart.js +154 -0
- package/dist/components/LineChart/LineChart.types.d.ts +54 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PieChart/PieChart.js +51 -5095
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.variants.d.ts +1 -1
- package/dist/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/components/Toast/Toast.variants.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -9
- package/dist/components/Tooltip/Tooltip.js +35 -33
- package/dist/components/Tooltip/Tooltip.types.d.ts +22 -11
- package/dist/components/Typography/Typography.variants.d.ts +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +32 -4
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +124 -88
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +5 -8
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +3 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +179 -168
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +117 -113
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +124 -116
- package/dist/{index-DPcwqB8q.js → index-B7-5g1Sm.js} +169 -168
- package/dist/index-qDQP8rW4.js +7281 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +144 -139
- package/dist/package.json +8 -8
- package/dist/{proxy-CngVm5qA.js → proxy-0sbyKj-k.js} +732 -728
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +16 -15
- package/package.json +8 -8
- package/dist/assets/icons/components/CheckCircle.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -6
- package/dist/components/Tooltip/Tooltip.variants.js +0 -86
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import { useLayoutEffect as
|
|
3
|
-
import { P as ce, b as et, u as Ve, a as
|
|
2
|
+
import { useLayoutEffect as Bt } from "react";
|
|
3
|
+
import { P as ce, b as et, u as Ve, a as Vt, c as J } from "./index--l0zux8V.js";
|
|
4
4
|
import { u as ge } from "./index-DLcqcWxM.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { u as
|
|
7
|
-
import * as
|
|
8
|
-
import { jsx as O, Fragment as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { P as
|
|
12
|
-
const
|
|
5
|
+
import { D as zt } from "./index-URQGEGX7.js";
|
|
6
|
+
import { u as jt } from "./index-BKMaItIC.js";
|
|
7
|
+
import * as Yt from "react-dom";
|
|
8
|
+
import { jsx as O, Fragment as Xt, jsxs as Gt } from "react/jsx-runtime";
|
|
9
|
+
import { u as qt } from "./index-0ioNhtNM.js";
|
|
10
|
+
import { u as Ut } from "./index-BRXMsxSL.js";
|
|
11
|
+
import { P as Kt } from "./index-3fEdeexs.js";
|
|
12
|
+
const Zt = ["top", "right", "bottom", "left"], U = Math.min, $ = Math.max, de = Math.round, fe = Math.floor, j = (e) => ({
|
|
13
13
|
x: e,
|
|
14
14
|
y: e
|
|
15
|
-
}),
|
|
15
|
+
}), Jt = {
|
|
16
16
|
left: "right",
|
|
17
17
|
right: "left",
|
|
18
18
|
bottom: "top",
|
|
19
19
|
top: "bottom"
|
|
20
|
-
},
|
|
20
|
+
}, Qt = {
|
|
21
21
|
start: "end",
|
|
22
22
|
end: "start"
|
|
23
23
|
};
|
|
@@ -39,48 +39,48 @@ function De(e) {
|
|
|
39
39
|
function Me(e) {
|
|
40
40
|
return e === "y" ? "height" : "width";
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const en = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
43
43
|
function z(e) {
|
|
44
|
-
return
|
|
44
|
+
return en.has(q(e)) ? "y" : "x";
|
|
45
45
|
}
|
|
46
46
|
function _e(e) {
|
|
47
47
|
return De(z(e));
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function tn(e, t, n) {
|
|
50
50
|
n === void 0 && (n = !1);
|
|
51
51
|
const o = ne(e), r = _e(e), i = Me(r);
|
|
52
52
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
53
53
|
return t.reference[i] > t.floating[i] && (s = pe(s)), [s, pe(s)];
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function nn(e) {
|
|
56
56
|
const t = pe(e);
|
|
57
57
|
return [Te(e), t, Te(t)];
|
|
58
58
|
}
|
|
59
59
|
function Te(e) {
|
|
60
|
-
return e.replace(/start|end/g, (t) =>
|
|
60
|
+
return e.replace(/start|end/g, (t) => Qt[t]);
|
|
61
61
|
}
|
|
62
|
-
const ze = ["left", "right"], je = ["right", "left"],
|
|
63
|
-
function
|
|
62
|
+
const ze = ["left", "right"], je = ["right", "left"], on = ["top", "bottom"], rn = ["bottom", "top"];
|
|
63
|
+
function sn(e, t, n) {
|
|
64
64
|
switch (e) {
|
|
65
65
|
case "top":
|
|
66
66
|
case "bottom":
|
|
67
67
|
return n ? t ? je : ze : t ? ze : je;
|
|
68
68
|
case "left":
|
|
69
69
|
case "right":
|
|
70
|
-
return t ?
|
|
70
|
+
return t ? on : rn;
|
|
71
71
|
default:
|
|
72
72
|
return [];
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function cn(e, t, n, o) {
|
|
76
76
|
const r = ne(e);
|
|
77
|
-
let i =
|
|
77
|
+
let i = sn(q(e), n === "start", o);
|
|
78
78
|
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Te)))), i;
|
|
79
79
|
}
|
|
80
80
|
function pe(e) {
|
|
81
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
81
|
+
return e.replace(/left|right|bottom|top/g, (t) => Jt[t]);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ln(e) {
|
|
84
84
|
return {
|
|
85
85
|
top: 0,
|
|
86
86
|
right: 0,
|
|
@@ -90,7 +90,7 @@ function cn(e) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
function tt(e) {
|
|
93
|
-
return typeof e != "number" ?
|
|
93
|
+
return typeof e != "number" ? ln(e) : {
|
|
94
94
|
top: e,
|
|
95
95
|
right: e,
|
|
96
96
|
bottom: e,
|
|
@@ -163,7 +163,7 @@ function Ye(e, t, n) {
|
|
|
163
163
|
}
|
|
164
164
|
return u;
|
|
165
165
|
}
|
|
166
|
-
async function
|
|
166
|
+
async function an(e, t) {
|
|
167
167
|
var n;
|
|
168
168
|
t === void 0 && (t = {});
|
|
169
169
|
const {
|
|
@@ -208,7 +208,7 @@ async function ln(e, t) {
|
|
|
208
208
|
right: (C.right - y.right + m.right) / x.x
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const fn = async (e, t, n) => {
|
|
212
212
|
const {
|
|
213
213
|
placement: o = "bottom",
|
|
214
214
|
strategy: r = "absolute",
|
|
@@ -243,7 +243,7 @@ const an = async (e, t, n) => {
|
|
|
243
243
|
rects: f,
|
|
244
244
|
platform: {
|
|
245
245
|
...s,
|
|
246
|
-
detectOverflow: (h = s.detectOverflow) != null ? h :
|
|
246
|
+
detectOverflow: (h = s.detectOverflow) != null ? h : an
|
|
247
247
|
},
|
|
248
248
|
elements: {
|
|
249
249
|
reference: e,
|
|
@@ -272,7 +272,7 @@ const an = async (e, t, n) => {
|
|
|
272
272
|
strategy: r,
|
|
273
273
|
middlewareData: u
|
|
274
274
|
};
|
|
275
|
-
},
|
|
275
|
+
}, un = (e) => ({
|
|
276
276
|
name: "arrow",
|
|
277
277
|
options: e,
|
|
278
278
|
async fn(t) {
|
|
@@ -309,7 +309,7 @@ const an = async (e, t, n) => {
|
|
|
309
309
|
reset: S
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
}),
|
|
312
|
+
}), dn = function(e) {
|
|
313
313
|
return e === void 0 && (e = {}), {
|
|
314
314
|
name: "flip",
|
|
315
315
|
options: e,
|
|
@@ -333,12 +333,12 @@ const an = async (e, t, n) => {
|
|
|
333
333
|
} = G(e, t);
|
|
334
334
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
335
335
|
return {};
|
|
336
|
-
const y = q(r), v = z(l), b = q(l) === l, x = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), C = p || (b || !h ? [pe(l)] :
|
|
337
|
-
!p && A && C.push(...
|
|
336
|
+
const y = q(r), v = z(l), b = q(l) === l, x = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), C = p || (b || !h ? [pe(l)] : nn(l)), A = m !== "none";
|
|
337
|
+
!p && A && C.push(...cn(l, h, m, x));
|
|
338
338
|
const P = [l, ...C], M = await c.detectOverflow(t, w), H = [];
|
|
339
339
|
let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
340
340
|
if (a && H.push(M[y]), d) {
|
|
341
|
-
const T =
|
|
341
|
+
const T = tn(r, s, x);
|
|
342
342
|
H.push(M[T[0]], M[T[1]]);
|
|
343
343
|
}
|
|
344
344
|
if (D = [...D, {
|
|
@@ -400,9 +400,9 @@ function Xe(e, t) {
|
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
function Ge(e) {
|
|
403
|
-
return
|
|
403
|
+
return Zt.some((t) => e[t] >= 0);
|
|
404
404
|
}
|
|
405
|
-
const
|
|
405
|
+
const pn = function(e) {
|
|
406
406
|
return e === void 0 && (e = {}), {
|
|
407
407
|
name: "hide",
|
|
408
408
|
options: e,
|
|
@@ -445,7 +445,7 @@ const dn = function(e) {
|
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}, nt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
448
|
-
async function
|
|
448
|
+
async function mn(e, t) {
|
|
449
449
|
const {
|
|
450
450
|
placement: n,
|
|
451
451
|
platform: o,
|
|
@@ -472,7 +472,7 @@ async function pn(e, t) {
|
|
|
472
472
|
y: u * a
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
const
|
|
475
|
+
const hn = function(e) {
|
|
476
476
|
return e === void 0 && (e = 0), {
|
|
477
477
|
name: "offset",
|
|
478
478
|
options: e,
|
|
@@ -483,7 +483,7 @@ const mn = function(e) {
|
|
|
483
483
|
y: i,
|
|
484
484
|
placement: s,
|
|
485
485
|
middlewareData: l
|
|
486
|
-
} = t, c = await
|
|
486
|
+
} = t, c = await mn(t, e);
|
|
487
487
|
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
488
488
|
x: r + c.x,
|
|
489
489
|
y: i + c.y,
|
|
@@ -494,7 +494,7 @@ const mn = function(e) {
|
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
|
-
},
|
|
497
|
+
}, gn = function(e) {
|
|
498
498
|
return e === void 0 && (e = {}), {
|
|
499
499
|
name: "shift",
|
|
500
500
|
options: e,
|
|
@@ -551,7 +551,7 @@ const mn = function(e) {
|
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
|
-
},
|
|
554
|
+
}, wn = function(e) {
|
|
555
555
|
return e === void 0 && (e = {}), {
|
|
556
556
|
options: e,
|
|
557
557
|
fn(t) {
|
|
@@ -593,7 +593,7 @@ const mn = function(e) {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
|
-
},
|
|
596
|
+
}, yn = function(e) {
|
|
597
597
|
return e === void 0 && (e = {}), {
|
|
598
598
|
name: "size",
|
|
599
599
|
options: e,
|
|
@@ -660,7 +660,7 @@ function Y(e) {
|
|
|
660
660
|
function qe(e) {
|
|
661
661
|
return !we() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
662
662
|
}
|
|
663
|
-
const
|
|
663
|
+
const xn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
664
664
|
function le(e) {
|
|
665
665
|
const {
|
|
666
666
|
overflow: t,
|
|
@@ -668,15 +668,15 @@ function le(e) {
|
|
|
668
668
|
overflowY: o,
|
|
669
669
|
display: r
|
|
670
670
|
} = B(e);
|
|
671
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
671
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !xn.has(r);
|
|
672
672
|
}
|
|
673
|
-
const
|
|
674
|
-
function
|
|
675
|
-
return
|
|
673
|
+
const vn = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
674
|
+
function bn(e) {
|
|
675
|
+
return vn.has(oe(e));
|
|
676
676
|
}
|
|
677
|
-
const
|
|
677
|
+
const Cn = [":popover-open", ":modal"];
|
|
678
678
|
function ye(e) {
|
|
679
|
-
return
|
|
679
|
+
return Cn.some((t) => {
|
|
680
680
|
try {
|
|
681
681
|
return e.matches(t);
|
|
682
682
|
} catch {
|
|
@@ -684,12 +684,12 @@ function ye(e) {
|
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
const
|
|
687
|
+
const An = ["transform", "translate", "scale", "rotate", "perspective"], Rn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Pn = ["paint", "layout", "strict", "content"];
|
|
688
688
|
function ke(e) {
|
|
689
689
|
const t = Ne(), n = W(e) ? B(e) : e;
|
|
690
|
-
return
|
|
690
|
+
return An.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) || Rn.some((o) => (n.willChange || "").includes(o)) || Pn.some((o) => (n.contain || "").includes(o));
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function On(e) {
|
|
693
693
|
let t = K(e);
|
|
694
694
|
for (; Y(t) && !ee(t); ) {
|
|
695
695
|
if (ke(t))
|
|
@@ -703,9 +703,9 @@ function Pn(e) {
|
|
|
703
703
|
function Ne() {
|
|
704
704
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
705
705
|
}
|
|
706
|
-
const
|
|
706
|
+
const Tn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
707
707
|
function ee(e) {
|
|
708
|
-
return
|
|
708
|
+
return Tn.has(oe(e));
|
|
709
709
|
}
|
|
710
710
|
function B(e) {
|
|
711
711
|
return I(e).getComputedStyle(e);
|
|
@@ -776,15 +776,15 @@ function Q(e) {
|
|
|
776
776
|
y: l
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
const
|
|
779
|
+
const En = /* @__PURE__ */ j(0);
|
|
780
780
|
function st(e) {
|
|
781
781
|
const t = I(e);
|
|
782
|
-
return !Ne() || !t.visualViewport ?
|
|
782
|
+
return !Ne() || !t.visualViewport ? En : {
|
|
783
783
|
x: t.visualViewport.offsetLeft,
|
|
784
784
|
y: t.visualViewport.offsetTop
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Sn(e, t, n) {
|
|
788
788
|
return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
|
|
789
789
|
}
|
|
790
790
|
function Z(e, t, n, o) {
|
|
@@ -792,7 +792,7 @@ function Z(e, t, n, o) {
|
|
|
792
792
|
const r = e.getBoundingClientRect(), i = He(e);
|
|
793
793
|
let s = j(1);
|
|
794
794
|
t && (o ? W(o) && (s = Q(o)) : s = Q(e));
|
|
795
|
-
const l =
|
|
795
|
+
const l = Sn(i, n, o) ? st(i) : j(0);
|
|
796
796
|
let c = (r.left + l.x) / s.x, f = (r.top + l.y) / s.y, a = r.width / s.x, d = r.height / s.y;
|
|
797
797
|
if (i) {
|
|
798
798
|
const p = I(i), u = o && W(o) ? I(o) : o;
|
|
@@ -820,7 +820,7 @@ function ct(e, t) {
|
|
|
820
820
|
y: r
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Ln(e) {
|
|
824
824
|
let {
|
|
825
825
|
elements: t,
|
|
826
826
|
rect: n,
|
|
@@ -847,10 +847,10 @@ function Sn(e) {
|
|
|
847
847
|
y: n.y * f.y - c.scrollTop * f.y + a.y + p.y
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Dn(e) {
|
|
851
851
|
return Array.from(e.getClientRects());
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Mn(e) {
|
|
854
854
|
const t = X(e), n = xe(e), o = e.ownerDocument.body, r = $(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = $(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
855
855
|
let s = -n.scrollLeft + ve(e);
|
|
856
856
|
const l = -n.scrollTop;
|
|
@@ -862,7 +862,7 @@ function Dn(e) {
|
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
864
|
const Ue = 25;
|
|
865
|
-
function
|
|
865
|
+
function _n(e, t) {
|
|
866
866
|
const n = I(e), o = X(e), r = n.visualViewport;
|
|
867
867
|
let i = o.clientWidth, s = o.clientHeight, l = 0, c = 0;
|
|
868
868
|
if (r) {
|
|
@@ -882,8 +882,8 @@ function Mn(e, t) {
|
|
|
882
882
|
y: c
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
const
|
|
886
|
-
function
|
|
885
|
+
const kn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
886
|
+
function Nn(e, t) {
|
|
887
887
|
const n = Z(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Y(e) ? Q(e) : j(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, c = r * i.x, f = o * i.y;
|
|
888
888
|
return {
|
|
889
889
|
width: s,
|
|
@@ -895,11 +895,11 @@ function kn(e, t) {
|
|
|
895
895
|
function Ke(e, t, n) {
|
|
896
896
|
let o;
|
|
897
897
|
if (t === "viewport")
|
|
898
|
-
o =
|
|
898
|
+
o = _n(e, n);
|
|
899
899
|
else if (t === "document")
|
|
900
|
-
o =
|
|
900
|
+
o = Mn(X(e));
|
|
901
901
|
else if (W(t))
|
|
902
|
-
o =
|
|
902
|
+
o = Nn(t, n);
|
|
903
903
|
else {
|
|
904
904
|
const r = st(e);
|
|
905
905
|
o = {
|
|
@@ -915,7 +915,7 @@ function lt(e, t) {
|
|
|
915
915
|
const n = K(e);
|
|
916
916
|
return n === t || !W(n) || ee(n) ? !1 : B(n).position === "fixed" || lt(n, t);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function Hn(e, t) {
|
|
919
919
|
const n = t.get(e);
|
|
920
920
|
if (n)
|
|
921
921
|
return n;
|
|
@@ -924,18 +924,18 @@ function Nn(e, t) {
|
|
|
924
924
|
let s = i ? K(e) : e;
|
|
925
925
|
for (; W(s) && !ee(s); ) {
|
|
926
926
|
const l = B(s), c = ke(s);
|
|
927
|
-
!c && l.position === "fixed" && (r = null), (i ? !c && !r : !c && l.position === "static" && !!r &&
|
|
927
|
+
!c && l.position === "fixed" && (r = null), (i ? !c && !r : !c && l.position === "static" && !!r && kn.has(r.position) || le(s) && !c && lt(e, s)) ? o = o.filter((a) => a !== s) : r = l, s = K(s);
|
|
928
928
|
}
|
|
929
929
|
return t.set(e, o), o;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Fn(e) {
|
|
932
932
|
let {
|
|
933
933
|
element: t,
|
|
934
934
|
boundary: n,
|
|
935
935
|
rootBoundary: o,
|
|
936
936
|
strategy: r
|
|
937
937
|
} = e;
|
|
938
|
-
const s = [...n === "clippingAncestors" ? ye(t) ? [] :
|
|
938
|
+
const s = [...n === "clippingAncestors" ? ye(t) ? [] : Hn(t, this._c) : [].concat(n), o], l = s[0], c = s.reduce((f, a) => {
|
|
939
939
|
const d = Ke(t, a, r);
|
|
940
940
|
return f.top = $(d.top, f.top), f.right = U(d.right, f.right), f.bottom = U(d.bottom, f.bottom), f.left = $(d.left, f.left), f;
|
|
941
941
|
}, Ke(t, l, r));
|
|
@@ -946,7 +946,7 @@ function Hn(e) {
|
|
|
946
946
|
y: c.top
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function $n(e) {
|
|
950
950
|
const {
|
|
951
951
|
width: t,
|
|
952
952
|
height: n
|
|
@@ -956,7 +956,7 @@ function Fn(e) {
|
|
|
956
956
|
height: n
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function In(e, t, n) {
|
|
960
960
|
const o = Y(t), r = X(t), i = n === "fixed", s = Z(e, !0, i, t);
|
|
961
961
|
let l = {
|
|
962
962
|
scrollLeft: 0,
|
|
@@ -1005,14 +1005,14 @@ function at(e, t) {
|
|
|
1005
1005
|
return n;
|
|
1006
1006
|
}
|
|
1007
1007
|
let o = Ze(e, t);
|
|
1008
|
-
for (; o &&
|
|
1008
|
+
for (; o && bn(o) && Re(o); )
|
|
1009
1009
|
o = Ze(o, t);
|
|
1010
|
-
return o && ee(o) && Re(o) && !ke(o) ? n : o ||
|
|
1010
|
+
return o && ee(o) && Re(o) && !ke(o) ? n : o || On(e) || n;
|
|
1011
1011
|
}
|
|
1012
|
-
const
|
|
1012
|
+
const Wn = async function(e) {
|
|
1013
1013
|
const t = this.getOffsetParent || at, n = this.getDimensions, o = await n(e.floating);
|
|
1014
1014
|
return {
|
|
1015
|
-
reference:
|
|
1015
|
+
reference: In(e.reference, await t(e.floating), e.strategy),
|
|
1016
1016
|
floating: {
|
|
1017
1017
|
x: 0,
|
|
1018
1018
|
y: 0,
|
|
@@ -1021,25 +1021,25 @@ const In = async function(e) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
1023
|
};
|
|
1024
|
-
function
|
|
1024
|
+
function Bn(e) {
|
|
1025
1025
|
return B(e).direction === "rtl";
|
|
1026
1026
|
}
|
|
1027
|
-
const
|
|
1028
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1027
|
+
const Vn = {
|
|
1028
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ln,
|
|
1029
1029
|
getDocumentElement: X,
|
|
1030
|
-
getClippingRect:
|
|
1030
|
+
getClippingRect: Fn,
|
|
1031
1031
|
getOffsetParent: at,
|
|
1032
|
-
getElementRects:
|
|
1033
|
-
getClientRects:
|
|
1034
|
-
getDimensions:
|
|
1032
|
+
getElementRects: Wn,
|
|
1033
|
+
getClientRects: Dn,
|
|
1034
|
+
getDimensions: $n,
|
|
1035
1035
|
getScale: Q,
|
|
1036
1036
|
isElement: W,
|
|
1037
|
-
isRTL:
|
|
1037
|
+
isRTL: Bn
|
|
1038
1038
|
};
|
|
1039
1039
|
function ft(e, t) {
|
|
1040
1040
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function zn(e, t) {
|
|
1043
1043
|
let n = null, o;
|
|
1044
1044
|
const r = X(e);
|
|
1045
1045
|
function i() {
|
|
@@ -1085,7 +1085,7 @@ function Vn(e, t) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
return s(!0), i;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function jn(e, t, n, o) {
|
|
1089
1089
|
o === void 0 && (o = {});
|
|
1090
1090
|
const {
|
|
1091
1091
|
ancestorScroll: r = !0,
|
|
@@ -1099,7 +1099,7 @@ function zn(e, t, n, o) {
|
|
|
1099
1099
|
passive: !0
|
|
1100
1100
|
}), i && y.addEventListener("resize", n);
|
|
1101
1101
|
});
|
|
1102
|
-
const d = f && l ?
|
|
1102
|
+
const d = f && l ? zn(f, n) : null;
|
|
1103
1103
|
let p = -1, u = null;
|
|
1104
1104
|
s && (u = new ResizeObserver((y) => {
|
|
1105
1105
|
let [v] = y;
|
|
@@ -1121,21 +1121,21 @@ function zn(e, t, n, o) {
|
|
|
1121
1121
|
}), d?.(), (y = u) == null || y.disconnect(), u = null, c && cancelAnimationFrame(m);
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
|
-
const
|
|
1124
|
+
const Yn = hn, Xn = gn, Gn = dn, qn = yn, Un = pn, Je = un, Kn = wn, Zn = (e, t, n) => {
|
|
1125
1125
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1126
|
-
platform:
|
|
1126
|
+
platform: Vn,
|
|
1127
1127
|
...n
|
|
1128
1128
|
}, i = {
|
|
1129
1129
|
...r.platform,
|
|
1130
1130
|
_c: o
|
|
1131
1131
|
};
|
|
1132
|
-
return
|
|
1132
|
+
return fn(e, t, {
|
|
1133
1133
|
...r,
|
|
1134
1134
|
platform: i
|
|
1135
1135
|
});
|
|
1136
1136
|
};
|
|
1137
|
-
var
|
|
1138
|
-
}, ue =
|
|
1137
|
+
var Jn = typeof document < "u", Qn = function() {
|
|
1138
|
+
}, ue = Jn ? Bt : Qn;
|
|
1139
1139
|
function he(e, t) {
|
|
1140
1140
|
if (e === t)
|
|
1141
1141
|
return !0;
|
|
@@ -1179,7 +1179,7 @@ function Pe(e) {
|
|
|
1179
1179
|
t.current = e;
|
|
1180
1180
|
}), t;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function eo(e) {
|
|
1183
1183
|
e === void 0 && (e = {});
|
|
1184
1184
|
const {
|
|
1185
1185
|
placement: t = "bottom",
|
|
@@ -1214,7 +1214,7 @@ function Qn(e) {
|
|
|
1214
1214
|
strategy: n,
|
|
1215
1215
|
middleware: p
|
|
1216
1216
|
};
|
|
1217
|
-
k.current && (R.platform = k.current),
|
|
1217
|
+
k.current && (R.platform = k.current), Zn(A.current, P.current, R).then((_) => {
|
|
1218
1218
|
const V = {
|
|
1219
1219
|
..._,
|
|
1220
1220
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -1223,7 +1223,7 @@ function Qn(e) {
|
|
|
1223
1223
|
// setting it to `true` when `open === false` (must be specified).
|
|
1224
1224
|
isPositioned: N.current !== !1
|
|
1225
1225
|
};
|
|
1226
|
-
T.current && !he(M.current, V) && (M.current = V,
|
|
1226
|
+
T.current && !he(M.current, V) && (M.current = V, Yt.flushSync(() => {
|
|
1227
1227
|
d(V);
|
|
1228
1228
|
}));
|
|
1229
1229
|
});
|
|
@@ -1281,7 +1281,7 @@ function Qn(e) {
|
|
|
1281
1281
|
floatingStyles: L
|
|
1282
1282
|
}), [a, E, F, S, L]);
|
|
1283
1283
|
}
|
|
1284
|
-
const
|
|
1284
|
+
const to = (e) => {
|
|
1285
1285
|
function t(n) {
|
|
1286
1286
|
return {}.hasOwnProperty.call(n, "current");
|
|
1287
1287
|
}
|
|
@@ -1302,17 +1302,14 @@ const eo = (e) => {
|
|
|
1302
1302
|
}).fn(n) : {};
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
|
-
},
|
|
1306
|
-
...jn(e),
|
|
1307
|
-
options: [e, t]
|
|
1308
|
-
}), no = (e, t) => ({
|
|
1305
|
+
}, no = (e, t) => ({
|
|
1309
1306
|
...Yn(e),
|
|
1310
1307
|
options: [e, t]
|
|
1311
1308
|
}), oo = (e, t) => ({
|
|
1312
|
-
...
|
|
1309
|
+
...Xn(e),
|
|
1313
1310
|
options: [e, t]
|
|
1314
1311
|
}), ro = (e, t) => ({
|
|
1315
|
-
...
|
|
1312
|
+
...Kn(e),
|
|
1316
1313
|
options: [e, t]
|
|
1317
1314
|
}), io = (e, t) => ({
|
|
1318
1315
|
...Gn(e),
|
|
@@ -1321,10 +1318,13 @@ const eo = (e) => {
|
|
|
1321
1318
|
...qn(e),
|
|
1322
1319
|
options: [e, t]
|
|
1323
1320
|
}), co = (e, t) => ({
|
|
1324
|
-
...
|
|
1321
|
+
...Un(e),
|
|
1322
|
+
options: [e, t]
|
|
1323
|
+
}), lo = (e, t) => ({
|
|
1324
|
+
...to(e),
|
|
1325
1325
|
options: [e, t]
|
|
1326
1326
|
});
|
|
1327
|
-
var
|
|
1327
|
+
var ao = "Arrow", dt = g.forwardRef((e, t) => {
|
|
1328
1328
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
1329
1329
|
return /* @__PURE__ */ O(
|
|
1330
1330
|
ce.svg,
|
|
@@ -1339,10 +1339,10 @@ var lo = "Arrow", dt = g.forwardRef((e, t) => {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
);
|
|
1341
1341
|
});
|
|
1342
|
-
dt.displayName =
|
|
1343
|
-
var
|
|
1342
|
+
dt.displayName = ao;
|
|
1343
|
+
var fo = dt, Fe = "Popper", [pt, mt] = et(Fe), [uo, ht] = pt(Fe), gt = (e) => {
|
|
1344
1344
|
const { __scopePopper: t, children: n } = e, [o, r] = g.useState(null);
|
|
1345
|
-
return /* @__PURE__ */ O(
|
|
1345
|
+
return /* @__PURE__ */ O(uo, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1346
1346
|
};
|
|
1347
1347
|
gt.displayName = Fe;
|
|
1348
1348
|
var wt = "PopperAnchor", yt = g.forwardRef(
|
|
@@ -1355,7 +1355,7 @@ var wt = "PopperAnchor", yt = g.forwardRef(
|
|
|
1355
1355
|
}
|
|
1356
1356
|
);
|
|
1357
1357
|
yt.displayName = wt;
|
|
1358
|
-
var $e = "PopperContent", [
|
|
1358
|
+
var $e = "PopperContent", [po, mo] = pt($e), xt = g.forwardRef(
|
|
1359
1359
|
(e, t) => {
|
|
1360
1360
|
const {
|
|
1361
1361
|
__scopePopper: n,
|
|
@@ -1372,48 +1372,48 @@ var $e = "PopperContent", [uo, po] = pt($e), xt = g.forwardRef(
|
|
|
1372
1372
|
updatePositionStrategy: u = "optimized",
|
|
1373
1373
|
onPlaced: m,
|
|
1374
1374
|
...h
|
|
1375
|
-
} = e, w = ht($e, n), [y, v] = g.useState(null), b = ge(t, (re) => v(re)), [x, C] = g.useState(null), A =
|
|
1375
|
+
} = e, w = ht($e, n), [y, v] = g.useState(null), b = ge(t, (re) => v(re)), [x, C] = g.useState(null), A = Ut(x), P = A?.width ?? 0, M = A?.height ?? 0, H = o + (i !== "center" ? "-" + i : ""), D = typeof a == "number" ? a : { top: 0, right: 0, bottom: 0, left: 0, ...a }, k = Array.isArray(f) ? f : [f], N = k.length > 0, E = {
|
|
1376
1376
|
padding: D,
|
|
1377
|
-
boundary: k.filter(
|
|
1377
|
+
boundary: k.filter(go),
|
|
1378
1378
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1379
1379
|
altBoundary: N
|
|
1380
|
-
}, { refs: T, floatingStyles: F, placement: S, isPositioned: L, middlewareData: R } =
|
|
1380
|
+
}, { refs: T, floatingStyles: F, placement: S, isPositioned: L, middlewareData: R } = eo({
|
|
1381
1381
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1382
1382
|
strategy: "fixed",
|
|
1383
1383
|
placement: H,
|
|
1384
|
-
whileElementsMounted: (...re) =>
|
|
1384
|
+
whileElementsMounted: (...re) => jn(...re, {
|
|
1385
1385
|
animationFrame: u === "always"
|
|
1386
1386
|
}),
|
|
1387
1387
|
elements: {
|
|
1388
1388
|
reference: w.anchor
|
|
1389
1389
|
},
|
|
1390
1390
|
middleware: [
|
|
1391
|
-
|
|
1392
|
-
c &&
|
|
1391
|
+
no({ mainAxis: r + M, alignmentAxis: s }),
|
|
1392
|
+
c && oo({
|
|
1393
1393
|
mainAxis: !0,
|
|
1394
1394
|
crossAxis: !1,
|
|
1395
|
-
limiter: d === "partial" ?
|
|
1395
|
+
limiter: d === "partial" ? ro() : void 0,
|
|
1396
1396
|
...E
|
|
1397
1397
|
}),
|
|
1398
|
-
c &&
|
|
1399
|
-
|
|
1398
|
+
c && io({ ...E }),
|
|
1399
|
+
so({
|
|
1400
1400
|
...E,
|
|
1401
|
-
apply: ({ elements: re, rects: Be, availableWidth:
|
|
1402
|
-
const { width:
|
|
1403
|
-
ae.setProperty("--radix-popper-available-width", `${
|
|
1401
|
+
apply: ({ elements: re, rects: Be, availableWidth: Ft, availableHeight: $t }) => {
|
|
1402
|
+
const { width: It, height: Wt } = Be.reference, ae = re.floating.style;
|
|
1403
|
+
ae.setProperty("--radix-popper-available-width", `${Ft}px`), ae.setProperty("--radix-popper-available-height", `${$t}px`), ae.setProperty("--radix-popper-anchor-width", `${It}px`), ae.setProperty("--radix-popper-anchor-height", `${Wt}px`);
|
|
1404
1404
|
}
|
|
1405
1405
|
}),
|
|
1406
|
-
x &&
|
|
1407
|
-
|
|
1408
|
-
p &&
|
|
1406
|
+
x && lo({ element: x, padding: l }),
|
|
1407
|
+
wo({ arrowWidth: P, arrowHeight: M }),
|
|
1408
|
+
p && co({ strategy: "referenceHidden", ...E })
|
|
1409
1409
|
]
|
|
1410
|
-
}), [_, V] = Ct(S), We =
|
|
1410
|
+
}), [_, V] = Ct(S), We = qt(m);
|
|
1411
1411
|
Ve(() => {
|
|
1412
1412
|
L && We?.();
|
|
1413
1413
|
}, [L, We]);
|
|
1414
|
-
const
|
|
1414
|
+
const Mt = R.arrow?.x, _t = R.arrow?.y, kt = R.arrow?.centerOffset !== 0, [Nt, Ht] = g.useState();
|
|
1415
1415
|
return Ve(() => {
|
|
1416
|
-
y &&
|
|
1416
|
+
y && Ht(window.getComputedStyle(y).zIndex);
|
|
1417
1417
|
}, [y]), /* @__PURE__ */ O(
|
|
1418
1418
|
"div",
|
|
1419
1419
|
{
|
|
@@ -1424,7 +1424,7 @@ var $e = "PopperContent", [uo, po] = pt($e), xt = g.forwardRef(
|
|
|
1424
1424
|
transform: L ? F.transform : "translate(0, -200%)",
|
|
1425
1425
|
// keep off the page when measuring
|
|
1426
1426
|
minWidth: "max-content",
|
|
1427
|
-
zIndex:
|
|
1427
|
+
zIndex: Nt,
|
|
1428
1428
|
"--radix-popper-transform-origin": [
|
|
1429
1429
|
R.transformOrigin?.x,
|
|
1430
1430
|
R.transformOrigin?.y
|
|
@@ -1439,14 +1439,14 @@ var $e = "PopperContent", [uo, po] = pt($e), xt = g.forwardRef(
|
|
|
1439
1439
|
},
|
|
1440
1440
|
dir: e.dir,
|
|
1441
1441
|
children: /* @__PURE__ */ O(
|
|
1442
|
-
|
|
1442
|
+
po,
|
|
1443
1443
|
{
|
|
1444
1444
|
scope: n,
|
|
1445
1445
|
placedSide: _,
|
|
1446
1446
|
onArrowChange: C,
|
|
1447
|
-
arrowX:
|
|
1448
|
-
arrowY:
|
|
1449
|
-
shouldHideArrow:
|
|
1447
|
+
arrowX: Mt,
|
|
1448
|
+
arrowY: _t,
|
|
1449
|
+
shouldHideArrow: kt,
|
|
1450
1450
|
children: /* @__PURE__ */ O(
|
|
1451
1451
|
ce.div,
|
|
1452
1452
|
{
|
|
@@ -1469,13 +1469,13 @@ var $e = "PopperContent", [uo, po] = pt($e), xt = g.forwardRef(
|
|
|
1469
1469
|
}
|
|
1470
1470
|
);
|
|
1471
1471
|
xt.displayName = $e;
|
|
1472
|
-
var vt = "PopperArrow",
|
|
1472
|
+
var vt = "PopperArrow", ho = {
|
|
1473
1473
|
top: "bottom",
|
|
1474
1474
|
right: "left",
|
|
1475
1475
|
bottom: "top",
|
|
1476
1476
|
left: "right"
|
|
1477
1477
|
}, bt = g.forwardRef(function(t, n) {
|
|
1478
|
-
const { __scopePopper: o, ...r } = t, i =
|
|
1478
|
+
const { __scopePopper: o, ...r } = t, i = mo(vt, o), s = ho[i.placedSide];
|
|
1479
1479
|
return (
|
|
1480
1480
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1481
1481
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -1504,7 +1504,7 @@ var vt = "PopperArrow", mo = {
|
|
|
1504
1504
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
1505
1505
|
},
|
|
1506
1506
|
children: /* @__PURE__ */ O(
|
|
1507
|
-
|
|
1507
|
+
fo,
|
|
1508
1508
|
{
|
|
1509
1509
|
...r,
|
|
1510
1510
|
ref: n,
|
|
@@ -1520,10 +1520,10 @@ var vt = "PopperArrow", mo = {
|
|
|
1520
1520
|
);
|
|
1521
1521
|
});
|
|
1522
1522
|
bt.displayName = vt;
|
|
1523
|
-
function
|
|
1523
|
+
function go(e) {
|
|
1524
1524
|
return e !== null;
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1526
|
+
var wo = (e) => ({
|
|
1527
1527
|
name: "transformOrigin",
|
|
1528
1528
|
options: e,
|
|
1529
1529
|
fn(t) {
|
|
@@ -1536,13 +1536,13 @@ function Ct(e) {
|
|
|
1536
1536
|
const [t, n = "center"] = e.split("-");
|
|
1537
1537
|
return [t, n];
|
|
1538
1538
|
}
|
|
1539
|
-
var
|
|
1539
|
+
var yo = gt, xo = yt, vo = xt, bo = bt, Co = /* @__PURE__ */ Symbol("radix.slottable");
|
|
1540
1540
|
// @__NO_SIDE_EFFECTS__
|
|
1541
|
-
function
|
|
1542
|
-
const t = ({ children: n }) => /* @__PURE__ */ O(
|
|
1543
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
1541
|
+
function Ao(e) {
|
|
1542
|
+
const t = ({ children: n }) => /* @__PURE__ */ O(Xt, { children: n });
|
|
1543
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = Co, t;
|
|
1544
1544
|
}
|
|
1545
|
-
var
|
|
1545
|
+
var Ro = Object.freeze({
|
|
1546
1546
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
1547
1547
|
position: "absolute",
|
|
1548
1548
|
border: 0,
|
|
@@ -1554,23 +1554,23 @@ var Ao = Object.freeze({
|
|
|
1554
1554
|
clip: "rect(0, 0, 0, 0)",
|
|
1555
1555
|
whiteSpace: "nowrap",
|
|
1556
1556
|
wordWrap: "normal"
|
|
1557
|
-
}),
|
|
1557
|
+
}), Po = "VisuallyHidden", At = g.forwardRef(
|
|
1558
1558
|
(e, t) => /* @__PURE__ */ O(
|
|
1559
1559
|
ce.span,
|
|
1560
1560
|
{
|
|
1561
1561
|
...e,
|
|
1562
1562
|
ref: t,
|
|
1563
|
-
style: { ...
|
|
1563
|
+
style: { ...Ro, ...e.style }
|
|
1564
1564
|
}
|
|
1565
1565
|
)
|
|
1566
1566
|
);
|
|
1567
|
-
At.displayName =
|
|
1568
|
-
var
|
|
1567
|
+
At.displayName = Po;
|
|
1568
|
+
var Oo = At, [be] = et("Tooltip", [
|
|
1569
1569
|
mt
|
|
1570
|
-
]), Ce = mt(), Rt = "TooltipProvider",
|
|
1570
|
+
]), Ce = mt(), Rt = "TooltipProvider", To = 700, Se = "tooltip.open", [Eo, Ie] = be(Rt), Pt = (e) => {
|
|
1571
1571
|
const {
|
|
1572
1572
|
__scopeTooltip: t,
|
|
1573
|
-
delayDuration: n =
|
|
1573
|
+
delayDuration: n = To,
|
|
1574
1574
|
skipDelayDuration: o = 300,
|
|
1575
1575
|
disableHoverableContent: r = !1,
|
|
1576
1576
|
children: i
|
|
@@ -1579,7 +1579,7 @@ var Po = At, [be] = et("Tooltip", [
|
|
|
1579
1579
|
const f = c.current;
|
|
1580
1580
|
return () => window.clearTimeout(f);
|
|
1581
1581
|
}, []), /* @__PURE__ */ O(
|
|
1582
|
-
|
|
1582
|
+
Eo,
|
|
1583
1583
|
{
|
|
1584
1584
|
scope: t,
|
|
1585
1585
|
isOpenDelayedRef: s,
|
|
@@ -1603,7 +1603,7 @@ var Po = At, [be] = et("Tooltip", [
|
|
|
1603
1603
|
);
|
|
1604
1604
|
};
|
|
1605
1605
|
Pt.displayName = Rt;
|
|
1606
|
-
var se = "Tooltip", [
|
|
1606
|
+
var se = "Tooltip", [So, Ae] = be(se), Ot = (e) => {
|
|
1607
1607
|
const {
|
|
1608
1608
|
__scopeTooltip: t,
|
|
1609
1609
|
children: n,
|
|
@@ -1612,7 +1612,7 @@ var se = "Tooltip", [Eo, Ae] = be(se), Ot = (e) => {
|
|
|
1612
1612
|
onOpenChange: i,
|
|
1613
1613
|
disableHoverableContent: s,
|
|
1614
1614
|
delayDuration: l
|
|
1615
|
-
} = e, c = Ie(se, e.__scopeTooltip), f = Ce(t), [a, d] = g.useState(null), p =
|
|
1615
|
+
} = e, c = Ie(se, e.__scopeTooltip), f = Ce(t), [a, d] = g.useState(null), p = jt(), u = g.useRef(0), m = s ?? c.disableHoverableContent, h = l ?? c.delayDuration, w = g.useRef(!1), [y, v] = Vt({
|
|
1616
1616
|
prop: o,
|
|
1617
1617
|
defaultProp: r ?? !1,
|
|
1618
1618
|
onChange: (P) => {
|
|
@@ -1630,8 +1630,8 @@ var se = "Tooltip", [Eo, Ae] = be(se), Ot = (e) => {
|
|
|
1630
1630
|
}, [h, v]);
|
|
1631
1631
|
return g.useEffect(() => () => {
|
|
1632
1632
|
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
1633
|
-
}, []), /* @__PURE__ */ O(
|
|
1634
|
-
|
|
1633
|
+
}, []), /* @__PURE__ */ O(yo, { ...f, children: /* @__PURE__ */ O(
|
|
1634
|
+
So,
|
|
1635
1635
|
{
|
|
1636
1636
|
scope: t,
|
|
1637
1637
|
contentId: p,
|
|
@@ -1656,7 +1656,7 @@ Ot.displayName = se;
|
|
|
1656
1656
|
var Le = "TooltipTrigger", Tt = g.forwardRef(
|
|
1657
1657
|
(e, t) => {
|
|
1658
1658
|
const { __scopeTooltip: n, ...o } = e, r = Ae(Le, n), i = Ie(Le, n), s = Ce(n), l = g.useRef(null), c = ge(t, l, r.onTriggerChange), f = g.useRef(!1), a = g.useRef(!1), d = g.useCallback(() => f.current = !1, []);
|
|
1659
|
-
return g.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ O(
|
|
1659
|
+
return g.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ O(xo, { asChild: !0, ...s, children: /* @__PURE__ */ O(
|
|
1660
1660
|
ce.button,
|
|
1661
1661
|
{
|
|
1662
1662
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
@@ -1682,14 +1682,14 @@ var Le = "TooltipTrigger", Tt = g.forwardRef(
|
|
|
1682
1682
|
}
|
|
1683
1683
|
);
|
|
1684
1684
|
Tt.displayName = Le;
|
|
1685
|
-
var
|
|
1685
|
+
var Lo = "TooltipPortal", [Zo, Do] = be(Lo, {
|
|
1686
1686
|
forceMount: void 0
|
|
1687
1687
|
}), te = "TooltipContent", Et = g.forwardRef(
|
|
1688
1688
|
(e, t) => {
|
|
1689
|
-
const n =
|
|
1690
|
-
return /* @__PURE__ */ O(
|
|
1689
|
+
const n = Do(te, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = Ae(te, e.__scopeTooltip);
|
|
1690
|
+
return /* @__PURE__ */ O(Kt, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ O(St, { side: r, ...i, ref: t }) : /* @__PURE__ */ O(Mo, { side: r, ...i, ref: t }) });
|
|
1691
1691
|
}
|
|
1692
|
-
),
|
|
1692
|
+
), Mo = g.forwardRef((e, t) => {
|
|
1693
1693
|
const n = Ae(te, e.__scopeTooltip), o = Ie(te, e.__scopeTooltip), r = g.useRef(null), i = ge(t, r), [s, l] = g.useState(null), { trigger: c, onClose: f } = n, a = r.current, { onPointerInTransitChange: d } = o, p = g.useCallback(() => {
|
|
1694
1694
|
l(null), d(!1);
|
|
1695
1695
|
}, [d]), u = g.useCallback(
|
|
@@ -1715,7 +1715,7 @@ var So = "TooltipPortal", [Zo, Lo] = be(So, {
|
|
|
1715
1715
|
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
1716
1716
|
}
|
|
1717
1717
|
}, [c, a, s, f, p]), /* @__PURE__ */ O(St, { ...e, ref: i });
|
|
1718
|
-
}), [
|
|
1718
|
+
}), [_o, ko] = be(se, { isInside: !1 }), No = /* @__PURE__ */ Ao("TooltipContent"), St = g.forwardRef(
|
|
1719
1719
|
(e, t) => {
|
|
1720
1720
|
const {
|
|
1721
1721
|
__scopeTooltip: n,
|
|
@@ -1733,7 +1733,7 @@ var So = "TooltipPortal", [Zo, Lo] = be(So, {
|
|
|
1733
1733
|
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
1734
1734
|
}
|
|
1735
1735
|
}, [c.trigger, a]), /* @__PURE__ */ O(
|
|
1736
|
-
|
|
1736
|
+
zt,
|
|
1737
1737
|
{
|
|
1738
1738
|
asChild: !0,
|
|
1739
1739
|
disableOutsidePointerEvents: !1,
|
|
@@ -1741,8 +1741,8 @@ var So = "TooltipPortal", [Zo, Lo] = be(So, {
|
|
|
1741
1741
|
onPointerDownOutside: s,
|
|
1742
1742
|
onFocusOutside: (d) => d.preventDefault(),
|
|
1743
1743
|
onDismiss: a,
|
|
1744
|
-
children: /* @__PURE__ */
|
|
1745
|
-
|
|
1744
|
+
children: /* @__PURE__ */ Gt(
|
|
1745
|
+
vo,
|
|
1746
1746
|
{
|
|
1747
1747
|
"data-state": c.stateAttribute,
|
|
1748
1748
|
...f,
|
|
@@ -1757,8 +1757,8 @@ var So = "TooltipPortal", [Zo, Lo] = be(So, {
|
|
|
1757
1757
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1758
1758
|
},
|
|
1759
1759
|
children: [
|
|
1760
|
-
/* @__PURE__ */ O(
|
|
1761
|
-
/* @__PURE__ */ O(
|
|
1760
|
+
/* @__PURE__ */ O(No, { children: o }),
|
|
1761
|
+
/* @__PURE__ */ O(_o, { scope: n, isInside: !0, children: /* @__PURE__ */ O(Oo, { id: c.contentId, role: "tooltip", children: r || o }) })
|
|
1762
1762
|
]
|
|
1763
1763
|
}
|
|
1764
1764
|
)
|
|
@@ -1767,16 +1767,16 @@ var So = "TooltipPortal", [Zo, Lo] = be(So, {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
);
|
|
1769
1769
|
Et.displayName = te;
|
|
1770
|
-
var Lt = "TooltipArrow",
|
|
1770
|
+
var Lt = "TooltipArrow", Dt = g.forwardRef(
|
|
1771
1771
|
(e, t) => {
|
|
1772
1772
|
const { __scopeTooltip: n, ...o } = e, r = Ce(n);
|
|
1773
|
-
return
|
|
1773
|
+
return ko(
|
|
1774
1774
|
Lt,
|
|
1775
1775
|
n
|
|
1776
|
-
).isInside ? null : /* @__PURE__ */ O(
|
|
1776
|
+
).isInside ? null : /* @__PURE__ */ O(bo, { ...r, ...o, ref: t });
|
|
1777
1777
|
}
|
|
1778
1778
|
);
|
|
1779
|
-
|
|
1779
|
+
Dt.displayName = Lt;
|
|
1780
1780
|
function Ho(e, t) {
|
|
1781
1781
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
1782
1782
|
switch (Math.min(n, o, r, i)) {
|
|
@@ -1869,8 +1869,9 @@ function Bo(e) {
|
|
|
1869
1869
|
}
|
|
1870
1870
|
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);
|
|
1871
1871
|
}
|
|
1872
|
-
var Jo = Pt, Qo = Ot, er = Tt, tr = Et;
|
|
1872
|
+
var Jo = Pt, Qo = Ot, er = Tt, tr = Et, nr = Dt;
|
|
1873
1873
|
export {
|
|
1874
|
+
nr as A,
|
|
1874
1875
|
tr as C,
|
|
1875
1876
|
Jo as P,
|
|
1876
1877
|
Qo as R,
|