@wrdagency/blockout 1.0.0 → 1.0.1
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/{2NBKRL7C-DHf-2xkD.js → 2NBKRL7C-Cug3TzgR.js} +19 -19
- package/dist/{2RSXSRCN-bkYY_QT6.js → 2RSXSRCN-Bc3g-z-i.js} +19 -19
- package/dist/{4CMBR7SL-BkCeHgv2.js → 4CMBR7SL-xNGezbCB.js} +2 -2
- package/dist/{5JTVDSTH-BiHTUReD.js → 5JTVDSTH-CIreO5bC.js} +15 -15
- package/dist/{5VQZOHHZ-BpLDJOFs.js → 5VQZOHHZ-CNzYHc1X.js} +1 -1
- package/dist/{6VRAQV3D-DIdyGLyW.js → 6VRAQV3D-BoLhl3hf.js} +22 -22
- package/dist/{A3WPL2ZJ-SF-cbtmp.js → A3WPL2ZJ-D0Eh1dEB.js} +2 -2
- package/dist/{BM6PGYQY-D4-MwCVB.js → BM6PGYQY-Bhr7peim.js} +2 -2
- package/dist/{DG5U6ZEL-u5QgMA8f.js → DG5U6ZEL-C7eLVyh-.js} +3 -3
- package/dist/{EM5CXX6A-iTR0FDQv.js → EM5CXX6A-DKxCXPnz.js} +2 -2
- package/dist/{F5MUBM3I-Cv5aLv5o.js → F5MUBM3I-_HauDyEF.js} +21 -21
- package/dist/{G7GW6PWC-FbNigUHQ.js → G7GW6PWC-Crp1Jn-8.js} +56 -56
- package/dist/{J2LQO3EC-DIOM09Y6.js → J2LQO3EC-CcHJqN0I.js} +6 -6
- package/dist/{KFH4SEIX-BuapSU1b.js → KFH4SEIX-D-fCkpQv.js} +19 -19
- package/dist/{LMDWO4NN-DyBcLLfK.js → LMDWO4NN-DdLnHzru.js} +22 -22
- package/dist/{MR26YJYP-BdwVX8xi.js → MR26YJYP-yD1_RvCA.js} +23 -23
- package/dist/{MTZPJQMC-DMklE0XE.js → MTZPJQMC-RLG1q394.js} +2 -2
- package/dist/{O2PQ2652-CRn371N3.js → O2PQ2652-THp22K4G.js} +3 -3
- package/dist/{P7GR5CS5-Btbh4-Mw.js → P7GR5CS5-Dub2zqTX.js} +4 -6
- package/dist/{PFRGBC2K-DobANx7W.js → PFRGBC2K-DUhGSIey.js} +65 -65
- package/dist/{RS7LB2H4-lmOMNc4h.js → RS7LB2H4-C0kmTjy8.js} +1 -1
- package/dist/RZ4GPYOB-c8s_KHUk.js +37 -0
- package/dist/{S43UC3DV-C5JWPIhF.js → S43UC3DV-erT1ucAd.js} +3 -3
- package/dist/{T7VMP3TM-DRNGQJpZ.js → T7VMP3TM-C-Aesx9K.js} +11 -11
- package/dist/TP7N7UIH-mdk33dnV.js +34 -0
- package/dist/{UQQRIHDV-eF2M9Cz2.js → UQQRIHDV-DIXH69U3.js} +13 -13
- package/dist/{UYGDZTLQ-DRLNvYE6.js → UYGDZTLQ-fOwUiOjI.js} +2 -2
- package/dist/{VIIRIBF3-DX-Wjw1-.js → VIIRIBF3-DylpToFV.js} +3 -3
- package/dist/{WMYDSCNQ-YGSwAHQE.js → WMYDSCNQ-D43V-JUe.js} +16 -16
- package/dist/{WYCIER3C-DndYR0iO.js → WYCIER3C-S-jsj0wy.js} +2 -2
- package/dist/{YV4JVR4I-DOlaib2E.js → YV4JVR4I-BXEaRiAN.js} +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/index.js +7 -5
- package/dist/components/button/row.d.ts +7 -0
- package/dist/components/button/row.js +14 -0
- package/dist/components/controls/base-popover-control/index.js +3 -3
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/select-control/control.js +2 -2
- package/dist/components/controls/select-control/select.js +78 -78
- package/dist/components/data-view/data/normalize.js +0 -4
- package/dist/components/data-view/types/fields.d.ts +0 -5
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +30 -30
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +5 -5
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/shell/index.js +8 -4
- package/dist/components/shell/navigation.d.ts +6 -0
- package/dist/components/shell/navigation.js +6 -0
- package/dist/components/shell/root.d.ts +3 -2
- package/dist/components/shell/root.js +19 -6
- package/dist/components/shell/sidebar.d.ts +6 -0
- package/dist/components/shell/sidebar.js +6 -0
- package/dist/components/tabs/list.js +6 -6
- package/dist/components/tabs/panel.js +35 -35
- package/dist/components/tabs/root.js +12 -12
- package/dist/components/tabs/tab.js +15 -15
- package/dist/components/toolbar/divider.js +5 -5
- package/dist/components/toolbar/index.js +3 -3
- package/dist/components/toolbar/root.js +8 -8
- package/dist/components/window/index.js +1 -1
- package/dist/{composite-provider-cs4korvf.js → composite-provider-R5SnRc_G.js} +2 -2
- package/dist/{item-B72AQ4I4.js → item-C5GtZF5t.js} +33 -33
- package/dist/{picker-D0DleQso.js → picker-HwuTWxQw.js} +4 -4
- package/dist/primitives/popover/index.js +1 -1
- package/dist/primitives/popover/root.js +1 -1
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.js +15 -15
- package/dist/{root-j6NM_Xfo.js → root-C7IYlG1s.js} +2 -2
- package/dist/utils/url.js +7 -3
- package/package.json +1 -1
- package/dist/RZ4GPYOB-1GOhO1-l.js +0 -37
- package/dist/TP7N7UIH-DlW_S-4B.js +0 -34
- package/dist/components/button/index.d.ts +0 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createContext as ze, useRef as q, useContext as Ye, useState as Q, useEffect as C, useCallback as $e, useMemo as Ot, isValidElement as Ft } from "react";
|
|
2
|
-
import { c as ue,
|
|
3
|
-
import { b as Le, c as et, r as Nt, d as Vt, F as Lt, i as Ht, g as It, e as kt, j as ye, u as Bt, k as qt } from "./PFRGBC2K-
|
|
2
|
+
import { c as ue, m as x, o as y, f as K, a as ne, _ as Me, n as ct, b as N, ag as Qe, C as F, l as ee, $ as be, Z as Xe, a1 as re, M as j, X as Dt, e as Ce, ad as At, ah as lt, ai as Tt, aj as Rt, aa as Ne, a2 as ft, q as $t, g as dt, A as Ct, j as Ve, G as Mt, x as _t, i as pt } from "./LMDWO4NN-DdLnHzru.js";
|
|
3
|
+
import { b as Le, c as et, r as Nt, d as Vt, F as Lt, i as Ht, g as It, e as kt, j as ye, u as Bt, k as qt } from "./PFRGBC2K-DUhGSIey.js";
|
|
4
4
|
import { r as Be } from "./index-Cgx3BqdJ.js";
|
|
5
5
|
import { jsx as E, jsxs as Te, Fragment as Re } from "react/jsx-runtime";
|
|
6
|
-
import { a as te, e as jt } from "./YV4JVR4I-
|
|
7
|
-
import { u as vt, i as Wt } from "./KFH4SEIX-
|
|
8
|
-
import { u as zt } from "./WYCIER3C-
|
|
9
|
-
import { a as Yt } from "./BM6PGYQY-
|
|
10
|
-
import { b as Ke, D as Xt, d as Kt, e as Ut } from "./RS7LB2H4-
|
|
11
|
-
import { b as mt, P as Gt } from "./MTZPJQMC-
|
|
6
|
+
import { a as te, e as jt } from "./YV4JVR4I-BXEaRiAN.js";
|
|
7
|
+
import { u as vt, i as Wt } from "./KFH4SEIX-D-fCkpQv.js";
|
|
8
|
+
import { u as zt } from "./WYCIER3C-S-jsj0wy.js";
|
|
9
|
+
import { a as Yt } from "./BM6PGYQY-Bhr7peim.js";
|
|
10
|
+
import { b as Ke, D as Xt, d as Kt, e as Ut } from "./RS7LB2H4-C0kmTjy8.js";
|
|
11
|
+
import { b as mt, P as Gt } from "./MTZPJQMC-RLG1q394.js";
|
|
12
12
|
import { a as Zt, c as Jt, o as Qt, f as er, s as tr, b as rr, d as nr, l as or } from "./floating-ui.dom-2MezWvgs.js";
|
|
13
13
|
var tt = ze(null), sr = "span", gt = ue(
|
|
14
14
|
function(t) {
|
|
@@ -360,7 +360,7 @@ function yt(e, ...t) {
|
|
|
360
360
|
function pe(e = "", t = !1) {
|
|
361
361
|
return `__ariakit-dialog-${t ? "ancestor" : "outside"}${e ? `-${e}` : ""}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Pr(e, t = "") {
|
|
364
364
|
return re(
|
|
365
365
|
ie(e, pe(), !0),
|
|
366
366
|
ie(e, pe(t), !0)
|
|
@@ -388,7 +388,7 @@ function nt(e, t) {
|
|
|
388
388
|
e,
|
|
389
389
|
t,
|
|
390
390
|
(s) => {
|
|
391
|
-
yt(s, ...r) || n.unshift(
|
|
391
|
+
yt(s, ...r) || n.unshift(Pr(s, e));
|
|
392
392
|
},
|
|
393
393
|
(s, u) => {
|
|
394
394
|
u.hasAttribute("data-dialog") && u.id !== e || n.unshift(Et(s, e));
|
|
@@ -398,7 +398,7 @@ function nt(e, t) {
|
|
|
398
398
|
s();
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function wr(e) {
|
|
402
402
|
return e.tagName === "HTML" ? !0 : j(F(e).body, e);
|
|
403
403
|
}
|
|
404
404
|
function xr(e, t) {
|
|
@@ -435,7 +435,7 @@ function Ie({
|
|
|
435
435
|
return a.addEventListener("focusin", m, !0), () => a.removeEventListener("focusin", m, !0);
|
|
436
436
|
}, [e, u, o]), C(() => u ? Xe(t, (m) => {
|
|
437
437
|
const { contentElement: b, disclosureElement: D } = e.getState(), f = m.target;
|
|
438
|
-
!b || !f || !
|
|
438
|
+
!b || !f || !wr(f) || j(b, f) || xr(D, f) || f.hasAttribute("data-focus-trap") || Sr(m, b) || i.current && !Ze(f, b.id) || Ht(f) || s(m);
|
|
439
439
|
}, r) : void 0, [u, r]);
|
|
440
440
|
}
|
|
441
441
|
function ke(e, t) {
|
|
@@ -549,15 +549,15 @@ function Rr(e, ...t) {
|
|
|
549
549
|
const n = e.getAttribute("data-focus-trap");
|
|
550
550
|
return n == null ? !1 : t.length ? n === "" ? !1 : t.some((r) => n === r) : !0;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Pt() {
|
|
553
553
|
return "inert" in HTMLElement.prototype;
|
|
554
554
|
}
|
|
555
555
|
function $r(e) {
|
|
556
556
|
return Ue(e, "aria-hidden", "true");
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function wt(e, t) {
|
|
559
559
|
if (!("style" in e)) return Ne;
|
|
560
|
-
if (
|
|
560
|
+
if (Pt())
|
|
561
561
|
return ie(e, "inert", !0);
|
|
562
562
|
const r = It(e, !0).map((o) => {
|
|
563
563
|
if (t != null && t.some((u) => u && j(u, o))) return Ne;
|
|
@@ -582,7 +582,7 @@ function Cr(e, t) {
|
|
|
582
582
|
e,
|
|
583
583
|
t,
|
|
584
584
|
(s) => {
|
|
585
|
-
yt(s, ...r) || Rr(s, ...r) || n.unshift(
|
|
585
|
+
yt(s, ...r) || Rr(s, ...r) || n.unshift(wt(s, t));
|
|
586
586
|
},
|
|
587
587
|
(s) => {
|
|
588
588
|
s.hasAttribute("role") && (t.some((u) => u && j(u, s)) || n.unshift(Ue(s, "role", "none")));
|
|
@@ -731,30 +731,30 @@ var xt = ue(function(t) {
|
|
|
731
731
|
if (c) return;
|
|
732
732
|
const v = g.current;
|
|
733
733
|
if (!v) return;
|
|
734
|
-
const
|
|
735
|
-
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(
|
|
734
|
+
const w = new Event("close", { bubbles: !1, cancelable: !0 });
|
|
735
|
+
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(w), w.defaultPrevented && p.setOpen(!0);
|
|
736
736
|
}
|
|
737
737
|
}), { portalRef: U, domReady: S } = ft(a, l.portalRef), O = l.preserveTabOrder, G = te(
|
|
738
738
|
p,
|
|
739
739
|
(c) => O && !i && c.mounted
|
|
740
|
-
), T = $t(l.id),
|
|
741
|
-
Tr(k, T, V && !
|
|
742
|
-
const { wrapElement: ae, nestedDialogs:
|
|
740
|
+
), T = $t(l.id), P = te(p, "open"), R = te(p, "mounted"), k = te(p, "contentElement"), Pe = Wt(R, l.hidden, l.alwaysVisible);
|
|
741
|
+
Tr(k, T, V && !Pe), Or(p, D, S);
|
|
742
|
+
const { wrapElement: ae, nestedDialogs: we } = Fr(p);
|
|
743
743
|
l = ee(l, ae, [ae]), N(() => {
|
|
744
|
-
if (!
|
|
744
|
+
if (!P) return;
|
|
745
745
|
const c = g.current, v = dt(c, !0);
|
|
746
746
|
v && v.tagName !== "BODY" && (c && j(c, v) || p.setDisclosureElement(v));
|
|
747
|
-
}, [p,
|
|
747
|
+
}, [p, P]), st && C(() => {
|
|
748
748
|
if (!R) return;
|
|
749
749
|
const { disclosureElement: c } = p.getState();
|
|
750
750
|
if (!c || !Ct(c)) return;
|
|
751
751
|
const v = () => {
|
|
752
|
-
let
|
|
752
|
+
let w = !1;
|
|
753
753
|
const h = () => {
|
|
754
|
-
|
|
754
|
+
w = !0;
|
|
755
755
|
}, $ = { capture: !0, once: !0 };
|
|
756
756
|
c.addEventListener("focusin", h, $), Mt(c, "mouseup", () => {
|
|
757
|
-
c.removeEventListener("focusin", h, !0), !
|
|
757
|
+
c.removeEventListener("focusin", h, !0), !w && qt(c);
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
return c.addEventListener("mousedown", v), () => {
|
|
@@ -764,13 +764,13 @@ var xt = ue(function(t) {
|
|
|
764
764
|
if (!R || !S) return;
|
|
765
765
|
const c = g.current;
|
|
766
766
|
if (!c) return;
|
|
767
|
-
const v = lt(c),
|
|
767
|
+
const v = lt(c), w = v.visualViewport || v, h = () => {
|
|
768
768
|
var $, Y;
|
|
769
769
|
const he = (Y = ($ = v.visualViewport) == null ? void 0 : $.height) != null ? Y : v.innerHeight;
|
|
770
770
|
c.style.setProperty("--dialog-viewport-height", `${he}px`);
|
|
771
771
|
};
|
|
772
|
-
return h(),
|
|
773
|
-
|
|
772
|
+
return h(), w.addEventListener("resize", h), () => {
|
|
773
|
+
w.removeEventListener("resize", h);
|
|
774
774
|
};
|
|
775
775
|
}, [R, S]), C(() => {
|
|
776
776
|
if (!i || !R || !S) return;
|
|
@@ -778,12 +778,12 @@ var xt = ue(function(t) {
|
|
|
778
778
|
if (!(!c || c.querySelector("[data-dialog-dismiss]")))
|
|
779
779
|
return vr(c, p.hide);
|
|
780
780
|
}, [p, i, R, S]), N(() => {
|
|
781
|
-
if (!
|
|
781
|
+
if (!Pt() || P || !R || !S) return;
|
|
782
782
|
const c = g.current;
|
|
783
783
|
if (c)
|
|
784
|
-
return
|
|
785
|
-
}, [
|
|
786
|
-
const Z =
|
|
784
|
+
return wt(c);
|
|
785
|
+
}, [P, R, S]);
|
|
786
|
+
const Z = P && S;
|
|
787
787
|
N(() => {
|
|
788
788
|
if (!T || !Z) return;
|
|
789
789
|
const c = g.current;
|
|
@@ -792,10 +792,10 @@ var xt = ue(function(t) {
|
|
|
792
792
|
const ve = Ce(f);
|
|
793
793
|
N(() => {
|
|
794
794
|
if (!T || !Z) return;
|
|
795
|
-
const { disclosureElement: c } = p.getState(), v = g.current,
|
|
795
|
+
const { disclosureElement: c } = p.getState(), v = g.current, w = ve() || [], h = [
|
|
796
796
|
v,
|
|
797
|
-
...
|
|
798
|
-
...
|
|
797
|
+
...w,
|
|
798
|
+
...we.map(($) => $.getState().contentElement)
|
|
799
799
|
];
|
|
800
800
|
return i ? re(
|
|
801
801
|
nt(T, h),
|
|
@@ -806,13 +806,13 @@ var xt = ue(function(t) {
|
|
|
806
806
|
p,
|
|
807
807
|
Z,
|
|
808
808
|
ve,
|
|
809
|
-
|
|
809
|
+
we,
|
|
810
810
|
i,
|
|
811
811
|
A
|
|
812
812
|
]);
|
|
813
813
|
const me = !!L, ge = Ve(L), [xe, B] = Q(!1);
|
|
814
814
|
C(() => {
|
|
815
|
-
if (!
|
|
815
|
+
if (!P || !me || !S || !(k != null && k.isConnected)) return;
|
|
816
816
|
const c = it(I, !0) || // If no initial focus is specified, we try to focus the first element
|
|
817
817
|
// with the autofocus attribute. If it's an Ariakit component, the
|
|
818
818
|
// Focusable component will consume the autoFocus prop and add the
|
|
@@ -829,7 +829,7 @@ var xt = ue(function(t) {
|
|
|
829
829
|
c.focus(), st && v && c.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
830
830
|
}));
|
|
831
831
|
}, [
|
|
832
|
-
|
|
832
|
+
P,
|
|
833
833
|
me,
|
|
834
834
|
S,
|
|
835
835
|
k,
|
|
@@ -840,14 +840,14 @@ var xt = ue(function(t) {
|
|
|
840
840
|
]);
|
|
841
841
|
const W = !!H, _e = Ve(H), [ce, X] = Q(!1);
|
|
842
842
|
C(() => {
|
|
843
|
-
if (
|
|
843
|
+
if (P)
|
|
844
844
|
return X(!0), () => X(!1);
|
|
845
|
-
}, [
|
|
845
|
+
}, [P]);
|
|
846
846
|
const oe = $e(
|
|
847
847
|
(c, v = !0) => {
|
|
848
|
-
const { disclosureElement:
|
|
848
|
+
const { disclosureElement: w } = p.getState();
|
|
849
849
|
if (Lr(c)) return;
|
|
850
|
-
let h = it(M) ||
|
|
850
|
+
let h = it(M) || w;
|
|
851
851
|
if (h != null && h.id) {
|
|
852
852
|
const Y = F(h), he = `[aria-activedescendant="${h.id}"]`, De = Y.querySelector(he);
|
|
853
853
|
De && (h = De);
|
|
@@ -869,10 +869,10 @@ var xt = ue(function(t) {
|
|
|
869
869
|
[p, M, _e]
|
|
870
870
|
), z = q(!1);
|
|
871
871
|
N(() => {
|
|
872
|
-
if (
|
|
872
|
+
if (P || !ce || !W) return;
|
|
873
873
|
const c = g.current;
|
|
874
874
|
z.current = !0, oe(c);
|
|
875
|
-
}, [
|
|
875
|
+
}, [P, ce, S, W, oe]), C(() => {
|
|
876
876
|
if (!ce || !W) return;
|
|
877
877
|
const c = g.current;
|
|
878
878
|
return () => {
|
|
@@ -886,12 +886,12 @@ var xt = ue(function(t) {
|
|
|
886
886
|
const Se = Ve(b);
|
|
887
887
|
C(() => !S || !R ? void 0 : Xe("keydown", (v) => {
|
|
888
888
|
if (v.key !== "Escape" || v.defaultPrevented) return;
|
|
889
|
-
const
|
|
890
|
-
if (!
|
|
889
|
+
const w = g.current;
|
|
890
|
+
if (!w || Ze(w)) return;
|
|
891
891
|
const h = v.target;
|
|
892
892
|
if (!h) return;
|
|
893
893
|
const { disclosureElement: $ } = p.getState();
|
|
894
|
-
!!(h.tagName === "BODY" || j(
|
|
894
|
+
!!(h.tagName === "BODY" || j(w, h) || !$ || j($, h)) && Se(v) && p.hide();
|
|
895
895
|
}, !0), [p, S, R, Se]), l = ee(
|
|
896
896
|
l,
|
|
897
897
|
(c) => /* @__PURE__ */ E(dr, { level: i ? 1 : void 0, children: c }),
|
|
@@ -1087,7 +1087,7 @@ var Xr = ue(
|
|
|
1087
1087
|
r,
|
|
1088
1088
|
process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
|
|
1089
1089
|
);
|
|
1090
|
-
const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"),
|
|
1090
|
+
const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"), P = r.useState("mounted"), R = r.useState("rendered"), k = q(null), [Pe, ae] = Q(!1), { portalRef: we, domReady: Z } = ft(s, d.portalRef), ve = Ce(A), me = Ce(l), ge = !!l;
|
|
1091
1091
|
N(() => {
|
|
1092
1092
|
if (!(O != null && O.isConnected)) return;
|
|
1093
1093
|
O.style.setProperty(
|
|
@@ -1095,7 +1095,7 @@ var Xr = ue(
|
|
|
1095
1095
|
`${_}px`
|
|
1096
1096
|
);
|
|
1097
1097
|
const B = kr(U, ve), W = async () => {
|
|
1098
|
-
if (!
|
|
1098
|
+
if (!P) return;
|
|
1099
1099
|
p || (k.current = k.current || document.createElement("div"));
|
|
1100
1100
|
const X = p || k.current, oe = [
|
|
1101
1101
|
qr(X, { gutter: I, shift: D }),
|
|
@@ -1151,7 +1151,7 @@ var Xr = ue(
|
|
|
1151
1151
|
U,
|
|
1152
1152
|
O,
|
|
1153
1153
|
T,
|
|
1154
|
-
|
|
1154
|
+
P,
|
|
1155
1155
|
Z,
|
|
1156
1156
|
m,
|
|
1157
1157
|
b,
|
|
@@ -1167,7 +1167,7 @@ var Xr = ue(
|
|
|
1167
1167
|
ge,
|
|
1168
1168
|
me
|
|
1169
1169
|
]), N(() => {
|
|
1170
|
-
if (!
|
|
1170
|
+
if (!P || !Z || !(O != null && O.isConnected) || !(G != null && G.isConnected)) return;
|
|
1171
1171
|
const B = () => {
|
|
1172
1172
|
O.style.zIndex = getComputedStyle(G).zIndex;
|
|
1173
1173
|
};
|
|
@@ -1176,7 +1176,7 @@ var Xr = ue(
|
|
|
1176
1176
|
W = requestAnimationFrame(B);
|
|
1177
1177
|
});
|
|
1178
1178
|
return () => cancelAnimationFrame(W);
|
|
1179
|
-
}, [
|
|
1179
|
+
}, [P, Z, O, G]);
|
|
1180
1180
|
const xe = m ? "fixed" : "absolute";
|
|
1181
1181
|
return d = ee(
|
|
1182
1182
|
d,
|
|
@@ -1204,7 +1204,7 @@ var Xr = ue(
|
|
|
1204
1204
|
// we can wait for the popover to be positioned before other components
|
|
1205
1205
|
// move focus into it. For example, this attribute is observed by the
|
|
1206
1206
|
// Combobox component with the autoSelect behavior.
|
|
1207
|
-
"data-placing": !
|
|
1207
|
+
"data-placing": !Pe || void 0
|
|
1208
1208
|
}, d), {
|
|
1209
1209
|
style: y({
|
|
1210
1210
|
position: "relative"
|
|
@@ -1215,9 +1215,9 @@ var Xr = ue(
|
|
|
1215
1215
|
portal: s,
|
|
1216
1216
|
preserveTabOrder: u,
|
|
1217
1217
|
preserveTabOrderAnchor: S || U,
|
|
1218
|
-
autoFocusOnShow:
|
|
1218
|
+
autoFocusOnShow: Pe && i
|
|
1219
1219
|
}, d), {
|
|
1220
|
-
portalRef:
|
|
1220
|
+
portalRef: we
|
|
1221
1221
|
})), d;
|
|
1222
1222
|
}
|
|
1223
1223
|
), an = St(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as d, b as v } from "./P7GR5CS5-
|
|
2
|
-
import {
|
|
1
|
+
import { a as d, b as v } from "./P7GR5CS5-Dub2zqTX.js";
|
|
2
|
+
import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-DdLnHzru.js";
|
|
3
3
|
import { useMemo as S } from "react";
|
|
4
4
|
import { jsx as V } from "react/jsx-runtime";
|
|
5
|
-
var
|
|
5
|
+
var z = "div", N = C(
|
|
6
6
|
function(t) {
|
|
7
7
|
var o = t, {
|
|
8
8
|
store: s,
|
|
@@ -30,9 +30,9 @@ var j = "div", z = l(
|
|
|
30
30
|
[p]
|
|
31
31
|
), e = E({ id: a }, e), x(e);
|
|
32
32
|
}
|
|
33
|
-
), g =
|
|
34
|
-
const o =
|
|
35
|
-
return f(
|
|
33
|
+
), g = l(function(t) {
|
|
34
|
+
const o = N(t);
|
|
35
|
+
return f(z, o);
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
38
|
g as C
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as A, D as z } from "./RS7LB2H4-
|
|
2
|
-
import { a as T } from "./YV4JVR4I-
|
|
3
|
-
import {
|
|
1
|
+
import { u as A, D as z } from "./RS7LB2H4-C0kmTjy8.js";
|
|
2
|
+
import { a as T } from "./YV4JVR4I-BXEaRiAN.js";
|
|
3
|
+
import { f as R, _ as V, o as E, c as B, a as G, i as J, q as K, b as p, l as Q, m as x, n as X, r as Y } from "./LMDWO4NN-DdLnHzru.js";
|
|
4
4
|
import { useRef as Z, useState as $, useMemo as tt } from "react";
|
|
5
5
|
import { r as et } from "./index-Cgx3BqdJ.js";
|
|
6
6
|
import { jsx as g } from "react/jsx-runtime";
|
|
@@ -56,39 +56,39 @@ var at = B(function(e) {
|
|
|
56
56
|
if (typeof l == "number")
|
|
57
57
|
return h(l, f);
|
|
58
58
|
const {
|
|
59
|
-
transitionDuration:
|
|
60
|
-
animationDuration:
|
|
61
|
-
transitionDelay:
|
|
62
|
-
animationDelay:
|
|
59
|
+
transitionDuration: F,
|
|
60
|
+
animationDuration: H,
|
|
61
|
+
transitionDelay: I,
|
|
62
|
+
animationDelay: N
|
|
63
63
|
} = getComputedStyle(m), {
|
|
64
|
-
transitionDuration:
|
|
64
|
+
transitionDuration: j = "0",
|
|
65
65
|
animationDuration: q = "0",
|
|
66
66
|
transitionDelay: M = "0",
|
|
67
67
|
animationDelay: O = "0"
|
|
68
|
-
} = y ? getComputedStyle(y) : {},
|
|
69
|
-
H,
|
|
68
|
+
} = y ? getComputedStyle(y) : {}, W = P(
|
|
70
69
|
I,
|
|
70
|
+
N,
|
|
71
71
|
M,
|
|
72
72
|
O
|
|
73
|
-
),
|
|
74
|
-
w,
|
|
73
|
+
), k = P(
|
|
75
74
|
F,
|
|
76
|
-
|
|
75
|
+
H,
|
|
76
|
+
j,
|
|
77
77
|
q
|
|
78
|
-
),
|
|
79
|
-
if (!
|
|
78
|
+
), b = W + k;
|
|
79
|
+
if (!b) {
|
|
80
80
|
s === "enter" && t.setState("animated", !1), a();
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
const L = 1e3 / 60, U = Math.max(
|
|
83
|
+
const L = 1e3 / 60, U = Math.max(b - L, 0);
|
|
84
84
|
return h(U, f);
|
|
85
85
|
}, [t, l, m, y, u, s]), o = Q(
|
|
86
86
|
o,
|
|
87
87
|
(a) => /* @__PURE__ */ g(z, { value: t, children: a }),
|
|
88
88
|
[t]
|
|
89
89
|
);
|
|
90
|
-
const S = rt(D, o.hidden, i), C = o.style,
|
|
91
|
-
return o =
|
|
90
|
+
const S = rt(D, o.hidden, i), C = o.style, w = tt(() => S ? x(E({}, C), { display: "none" }) : C, [S, C]);
|
|
91
|
+
return o = x(E({
|
|
92
92
|
id: c,
|
|
93
93
|
"data-open": u || void 0,
|
|
94
94
|
"data-enter": s === "enter" || void 0,
|
|
@@ -96,7 +96,7 @@ var at = B(function(e) {
|
|
|
96
96
|
hidden: S
|
|
97
97
|
}, o), {
|
|
98
98
|
ref: X(c ? t.setContentElement : null, d, o.ref),
|
|
99
|
-
style:
|
|
99
|
+
style: w
|
|
100
100
|
}), Y(o);
|
|
101
101
|
}), it = R(function(e) {
|
|
102
102
|
const n = at(e);
|
|
@@ -534,8 +534,8 @@ function Pe(t = [], e = []) {
|
|
|
534
534
|
}
|
|
535
535
|
export {
|
|
536
536
|
re as $,
|
|
537
|
-
|
|
538
|
-
|
|
537
|
+
jt as A,
|
|
538
|
+
gt as B,
|
|
539
539
|
_ as C,
|
|
540
540
|
Tt as D,
|
|
541
541
|
me as E,
|
|
@@ -561,7 +561,7 @@ export {
|
|
|
561
561
|
dt as Y,
|
|
562
562
|
g as Z,
|
|
563
563
|
Z as _,
|
|
564
|
-
|
|
564
|
+
he as a,
|
|
565
565
|
vt as a0,
|
|
566
566
|
xt as a1,
|
|
567
567
|
ge as a2,
|
|
@@ -582,29 +582,29 @@ export {
|
|
|
582
582
|
Ft as ah,
|
|
583
583
|
H as ai,
|
|
584
584
|
kt as aj,
|
|
585
|
-
|
|
585
|
+
m as b,
|
|
586
586
|
_e as c,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
587
|
+
te as d,
|
|
588
|
+
K as e,
|
|
589
|
+
Ee as f,
|
|
590
590
|
lt as g,
|
|
591
|
-
|
|
591
|
+
Gt as h,
|
|
592
592
|
Mt as i,
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
593
|
+
pe as j,
|
|
594
|
+
N as k,
|
|
595
|
+
ve as l,
|
|
596
|
+
p as m,
|
|
597
|
+
Y as n,
|
|
598
|
+
c as o,
|
|
599
|
+
ee as p,
|
|
600
600
|
ue as q,
|
|
601
601
|
At as r,
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
we as s,
|
|
603
|
+
Lt as t,
|
|
604
604
|
se as u,
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
605
|
+
qt as v,
|
|
606
|
+
Bt as w,
|
|
607
|
+
Yt as x,
|
|
608
|
+
Ut as y,
|
|
609
|
+
Wt as z
|
|
610
610
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as pe, a as he } from "./O2PQ2652-
|
|
2
|
-
import { c as Pe, d as q, e as we } from "./YV4JVR4I-
|
|
3
|
-
import { Q as B, S as A, R as
|
|
4
|
-
import { u as G, H as Me } from "./EM5CXX6A-
|
|
5
|
-
import { u as Fe, c as Te } from "./G7GW6PWC-
|
|
6
|
-
import { a as _e, u as Ae } from "./PFRGBC2K-
|
|
1
|
+
import { c as pe, a as he } from "./O2PQ2652-THp22K4G.js";
|
|
2
|
+
import { c as Pe, d as q, e as we } from "./YV4JVR4I-BXEaRiAN.js";
|
|
3
|
+
import { Q as B, S as A, R as D, c as oe, _ as Y, i as re, a2 as He, L as ne, j as I, a1 as z, Z as F, a3 as Ee, b as ge, l as Oe, m as k, n as se, o as R, a4 as Se, M as W, e as X, f as ue, a as ie, t as be } from "./LMDWO4NN-DdLnHzru.js";
|
|
4
|
+
import { u as G, H as Me } from "./EM5CXX6A-DKxCXPnz.js";
|
|
5
|
+
import { u as Fe, c as Te } from "./G7GW6PWC-Crp1Jn-8.js";
|
|
6
|
+
import { a as _e, u as Ae } from "./PFRGBC2K-DUhGSIey.js";
|
|
7
7
|
import { useRef as y, useState as ce, useEffect as g, useContext as Re, createContext as ye, useCallback as ae } from "react";
|
|
8
8
|
import { jsx as J } from "react/jsx-runtime";
|
|
9
9
|
function Ye(n = {}) {
|
|
10
10
|
var u;
|
|
11
|
-
const t = (u = n.store) == null ? void 0 : u.getState(), e = pe(B(
|
|
11
|
+
const t = (u = n.store) == null ? void 0 : u.getState(), e = pe(B(D({}, n), {
|
|
12
12
|
placement: A(
|
|
13
13
|
n.placement,
|
|
14
14
|
t == null ? void 0 : t.placement,
|
|
15
15
|
"bottom"
|
|
16
16
|
)
|
|
17
|
-
})), r = A(n.timeout, t == null ? void 0 : t.timeout, 500), s = B(
|
|
17
|
+
})), r = A(n.timeout, t == null ? void 0 : t.timeout, 500), s = B(D({}, e.getState()), {
|
|
18
18
|
timeout: r,
|
|
19
19
|
showTimeout: A(n.showTimeout, t == null ? void 0 : t.showTimeout),
|
|
20
20
|
hideTimeout: A(n.hideTimeout, t == null ? void 0 : t.hideTimeout),
|
|
21
21
|
autoFocusOnShow: A(t == null ? void 0 : t.autoFocusOnShow, !1)
|
|
22
22
|
}), i = Pe(s, e, n.store);
|
|
23
|
-
return B(
|
|
23
|
+
return B(D(D({}, e), i), {
|
|
24
24
|
setAutoFocusOnShow: (a) => i.setState("autoFocusOnShow", a)
|
|
25
25
|
});
|
|
26
26
|
}
|
|
@@ -61,7 +61,7 @@ function ee(n, u) {
|
|
|
61
61
|
}
|
|
62
62
|
var Ce = "div";
|
|
63
63
|
function le(n, u, t, e) {
|
|
64
|
-
return _e(u) ? !0 : n ? !!(
|
|
64
|
+
return _e(u) ? !0 : n ? !!(W(u, n) || t && W(t, n) || e != null && e.some((r) => le(n, r, t))) : !1;
|
|
65
65
|
}
|
|
66
66
|
function Ne(n) {
|
|
67
67
|
var u = n, {
|
|
@@ -73,19 +73,19 @@ function Ne(n) {
|
|
|
73
73
|
g(() => {
|
|
74
74
|
i || s(!1);
|
|
75
75
|
}, [i]);
|
|
76
|
-
const a = e.onFocus, c =
|
|
76
|
+
const a = e.onFocus, c = X((d) => {
|
|
77
77
|
a == null || a(d), !d.defaultPrevented && s(!0);
|
|
78
78
|
}), o = y(null);
|
|
79
79
|
return g(() => we(t, ["anchorElement"], (d) => {
|
|
80
80
|
o.current = d.anchorElement;
|
|
81
|
-
}), []), e =
|
|
81
|
+
}), []), e = k(R({
|
|
82
82
|
autoFocusOnHide: r,
|
|
83
83
|
finalFocus: o
|
|
84
84
|
}, e), {
|
|
85
85
|
onFocus: c
|
|
86
86
|
}), e;
|
|
87
87
|
}
|
|
88
|
-
var te = ye(null),
|
|
88
|
+
var te = ye(null), De = oe(
|
|
89
89
|
function(u) {
|
|
90
90
|
var t = u, {
|
|
91
91
|
store: e,
|
|
@@ -118,7 +118,7 @@ var te = ye(null), ke = oe(
|
|
|
118
118
|
if (!e || !H()) return;
|
|
119
119
|
const { anchorElement: M, hideTimeout: N, timeout: me } = e.getState(), U = S.current, [L] = m.composedPath(), V = M;
|
|
120
120
|
if (le(L, l, V, p)) {
|
|
121
|
-
S.current = L && V &&
|
|
121
|
+
S.current = L && V && W(V, L) ? $(m) : null, window.clearTimeout(v.current), v.current = 0;
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
124
|
if (!v.current) {
|
|
@@ -200,13 +200,13 @@ var te = ye(null), ke = oe(
|
|
|
200
200
|
o,
|
|
201
201
|
(l) => /* @__PURE__ */ J(Me, { value: e, children: /* @__PURE__ */ J(te.Provider, { value: Q, children: l }) }),
|
|
202
202
|
[e, Q]
|
|
203
|
-
), o =
|
|
203
|
+
), o = k(R({}, o), {
|
|
204
204
|
ref: se(h, o.ref)
|
|
205
205
|
}), o = Ne(R({ store: e }, o));
|
|
206
206
|
const de = e.useState(
|
|
207
207
|
(l) => r || l.autoFocusOnShow
|
|
208
208
|
);
|
|
209
|
-
return o = Fe(
|
|
209
|
+
return o = Fe(k(R({
|
|
210
210
|
store: e,
|
|
211
211
|
modal: r,
|
|
212
212
|
portal: s,
|
|
@@ -225,12 +225,12 @@ var te = ye(null), ke = oe(
|
|
|
225
225
|
);
|
|
226
226
|
Te(
|
|
227
227
|
ue(function(u) {
|
|
228
|
-
const t =
|
|
228
|
+
const t = De(u);
|
|
229
229
|
return ie(Ce, t);
|
|
230
230
|
}),
|
|
231
231
|
G
|
|
232
232
|
);
|
|
233
|
-
var
|
|
233
|
+
var ke = "a", je = oe(
|
|
234
234
|
function(u) {
|
|
235
235
|
var t = u, { store: e, showOnHover: r = !0 } = t, s = Y(t, ["store", "showOnHover"]);
|
|
236
236
|
const i = G();
|
|
@@ -244,7 +244,7 @@ var De = "a", je = oe(
|
|
|
244
244
|
const { anchorElement: H } = e.getState();
|
|
245
245
|
H && f.target === H && (window.clearTimeout(c.current), c.current = 0);
|
|
246
246
|
}, !0), [e]);
|
|
247
|
-
const o = s.onMouseMove, d = I(r), h = ne(), p =
|
|
247
|
+
const o = s.onMouseMove, d = I(r), h = ne(), p = X((P) => {
|
|
248
248
|
if (o == null || o(P), a || !e || P.defaultPrevented || c.current || !h() || !d(P)) return;
|
|
249
249
|
const f = P.currentTarget;
|
|
250
250
|
e.setAnchorElement(f), e.setDisclosureElement(f);
|
|
@@ -254,7 +254,7 @@ var De = "a", je = oe(
|
|
|
254
254
|
}));
|
|
255
255
|
}, O = H ?? x;
|
|
256
256
|
O === 0 ? T() : c.current = window.setTimeout(T, O);
|
|
257
|
-
}), w = s.onClick, v =
|
|
257
|
+
}), w = s.onClick, v = X((P) => {
|
|
258
258
|
w == null || w(P), e && (window.clearTimeout(c.current), c.current = 0);
|
|
259
259
|
}), S = ae(
|
|
260
260
|
(P) => {
|
|
@@ -264,7 +264,7 @@ var De = "a", je = oe(
|
|
|
264
264
|
},
|
|
265
265
|
[e]
|
|
266
266
|
);
|
|
267
|
-
return s =
|
|
267
|
+
return s = k(R({}, s), {
|
|
268
268
|
ref: se(S, s.ref),
|
|
269
269
|
onMouseMove: p,
|
|
270
270
|
onClick: v
|
|
@@ -273,10 +273,10 @@ var De = "a", je = oe(
|
|
|
273
273
|
);
|
|
274
274
|
ue(function(u) {
|
|
275
275
|
const t = je(u);
|
|
276
|
-
return ie(
|
|
276
|
+
return ie(ke, t);
|
|
277
277
|
});
|
|
278
278
|
export {
|
|
279
|
-
|
|
279
|
+
De as a,
|
|
280
280
|
je as b,
|
|
281
281
|
Ye as c,
|
|
282
282
|
Ge as u
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as S, u as v } from "./BM6PGYQY-
|
|
2
|
-
import { m as E, o as P, t as f, c as g, b as h, d as _ } from "./YV4JVR4I-
|
|
3
|
-
import { P as b, Q as u, R as m, S as p, T as w } from "./LMDWO4NN-
|
|
1
|
+
import { c as S, u as v } from "./BM6PGYQY-Bhr7peim.js";
|
|
2
|
+
import { m as E, o as P, t as f, c as g, b as h, d as _ } from "./YV4JVR4I-BXEaRiAN.js";
|
|
3
|
+
import { P as b, Q as u, R as m, S as p, T as w } from "./LMDWO4NN-DdLnHzru.js";
|
|
4
4
|
function y(t = {}) {
|
|
5
5
|
var o = t, {
|
|
6
6
|
popover: r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as t } from "./LMDWO4NN-
|
|
1
|
+
import { I as t } from "./LMDWO4NN-DdLnHzru.js";
|
|
2
2
|
import { createContext as r } from "react";
|
|
3
3
|
var o = t(), x = o.useContext;
|
|
4
4
|
o.useScopedContext;
|
|
@@ -6,19 +6,17 @@ o.useProviderContext;
|
|
|
6
6
|
var C = o.ContextProvider, i = o.ScopedContextProvider, e = t(
|
|
7
7
|
[C],
|
|
8
8
|
[i]
|
|
9
|
-
), s = e.
|
|
10
|
-
e.useScopedContext;
|
|
11
|
-
var a = e.useProviderContext, d = e.ContextProvider, p = e.ScopedContextProvider, c = r(
|
|
9
|
+
), a = e.useContext, s = e.useProviderContext, d = e.ContextProvider, p = e.ScopedContextProvider, c = r(
|
|
12
10
|
void 0
|
|
13
11
|
), m = r(
|
|
14
12
|
void 0
|
|
15
13
|
);
|
|
16
14
|
export {
|
|
17
15
|
d as C,
|
|
18
|
-
|
|
16
|
+
a,
|
|
19
17
|
m as b,
|
|
20
18
|
c,
|
|
21
19
|
x as d,
|
|
22
20
|
p as e,
|
|
23
|
-
|
|
21
|
+
s as u
|
|
24
22
|
};
|