@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,16 +1,16 @@
|
|
|
1
|
-
import { a as _ } from "./VIIRIBF3-
|
|
2
|
-
import { e as H, C as T } from "./P7GR5CS5-
|
|
3
|
-
import { I as
|
|
4
|
-
import { createContext as
|
|
5
|
-
import { u as q } from "./UQQRIHDV-
|
|
6
|
-
import { u as L } from "./6VRAQV3D-
|
|
7
|
-
import { a as U } from "./YV4JVR4I-
|
|
8
|
-
import { a as x } from "./PFRGBC2K-
|
|
9
|
-
var
|
|
1
|
+
import { a as _ } from "./VIIRIBF3-DylpToFV.js";
|
|
2
|
+
import { e as H, C as T } from "./P7GR5CS5-Dub2zqTX.js";
|
|
3
|
+
import { I as y, s as P, f as k, c as w, a as A, _ as D, i as N, j as F, e as R, U as V, V as W, W as j, m as C, o as f, C as B } from "./LMDWO4NN-DdLnHzru.js";
|
|
4
|
+
import { createContext as K } from "react";
|
|
5
|
+
import { u as q } from "./UQQRIHDV-DIXH69U3.js";
|
|
6
|
+
import { u as L } from "./6VRAQV3D-BoLhl3hf.js";
|
|
7
|
+
import { a as U } from "./YV4JVR4I-BXEaRiAN.js";
|
|
8
|
+
import { a as x } from "./PFRGBC2K-DUhGSIey.js";
|
|
9
|
+
var g = y(
|
|
10
10
|
[T],
|
|
11
11
|
[H]
|
|
12
|
-
), oe =
|
|
13
|
-
|
|
12
|
+
), oe = g.useContext, z = g.useScopedContext;
|
|
13
|
+
K(
|
|
14
14
|
void 0
|
|
15
15
|
);
|
|
16
16
|
var G = "div";
|
|
@@ -23,7 +23,7 @@ function J(a, o, u) {
|
|
|
23
23
|
return r.element === u ? !1 : ((l = r.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
|
|
24
24
|
}), c = (t = i == null ? void 0 : i.element) == null ? void 0 : t.getAttribute("aria-controls");
|
|
25
25
|
if (!c) return !1;
|
|
26
|
-
const n =
|
|
26
|
+
const n = B(a).getElementById(c);
|
|
27
27
|
return n ? x(n) ? !0 : !!n.querySelector("[role=menuitem][aria-expanded=true]") : !1;
|
|
28
28
|
}
|
|
29
29
|
var Q = w(
|
|
@@ -41,17 +41,17 @@ var Q = w(
|
|
|
41
41
|
"focusOnHover",
|
|
42
42
|
"blurOnHoverEnd"
|
|
43
43
|
]);
|
|
44
|
-
const l = _(!0),
|
|
45
|
-
t = t || l ||
|
|
44
|
+
const l = _(!0), M = z();
|
|
45
|
+
t = t || l || M, N(
|
|
46
46
|
t,
|
|
47
47
|
process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
|
|
48
48
|
);
|
|
49
|
-
const m = r.onClick,
|
|
50
|
-
m == null || m(e), !(e.defaultPrevented ||
|
|
49
|
+
const m = r.onClick, b = F(i), p = "hideAll" in t ? t.hideAll : void 0, d = !!p, O = R((e) => {
|
|
50
|
+
m == null || m(e), !(e.defaultPrevented || V(e) || W(e) || !p || e.currentTarget.getAttribute("aria-haspopup") === "menu") && b(e) && p();
|
|
51
51
|
}), h = U(
|
|
52
52
|
t,
|
|
53
53
|
(e) => "contentElement" in e ? e.contentElement : null
|
|
54
|
-
), I =
|
|
54
|
+
), I = j(h, "menuitem");
|
|
55
55
|
return r = C(f({
|
|
56
56
|
role: I
|
|
57
57
|
}, r), {
|
|
@@ -73,8 +73,8 @@ var Q = w(
|
|
|
73
73
|
}
|
|
74
74
|
})), r;
|
|
75
75
|
}
|
|
76
|
-
), ue =
|
|
77
|
-
|
|
76
|
+
), ue = P(
|
|
77
|
+
k(function(o) {
|
|
78
78
|
const u = Q(o);
|
|
79
79
|
return A(G, u);
|
|
80
80
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as I } from "./PFRGBC2K-
|
|
2
|
-
import { c as O, _ as m,
|
|
1
|
+
import { u as I } from "./PFRGBC2K-DUhGSIey.js";
|
|
2
|
+
import { c as O, _ as m, A as p, t as q, E as x, e as _, h as H, k as Y, F as j, G, H as T, m as L, n as V, o as w, f as z, a as J } from "./LMDWO4NN-DdLnHzru.js";
|
|
3
3
|
import { useRef as C, useState as D, useEffect as Q } from "react";
|
|
4
4
|
var W = "button";
|
|
5
5
|
function M(s) {
|
|
@@ -14,45 +14,45 @@ var X = Symbol("command"), Z = O(
|
|
|
14
14
|
Q(() => {
|
|
15
15
|
c.current && R(p(c.current));
|
|
16
16
|
}, []);
|
|
17
|
-
const [U, k] = D(!1), f = C(!1), y = q(r), [E,
|
|
17
|
+
const [U, k] = D(!1), f = C(!1), y = q(r), [E, A] = x(r, X, !0), P = r.onKeyDown, F = _((e) => {
|
|
18
18
|
P == null || P(e);
|
|
19
19
|
const a = e.currentTarget;
|
|
20
20
|
if (e.defaultPrevented || E || y || !H(e) || Y(a) || a.isContentEditable) return;
|
|
21
|
-
const i = d && e.key === "Enter", n = u && e.key === " ",
|
|
22
|
-
if (
|
|
21
|
+
const i = d && e.key === "Enter", n = u && e.key === " ", v = e.key === "Enter" && !d, l = e.key === " " && !u;
|
|
22
|
+
if (v || l) {
|
|
23
23
|
e.preventDefault();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
if (i || n) {
|
|
27
|
-
const
|
|
27
|
+
const S = M(e);
|
|
28
28
|
if (i) {
|
|
29
|
-
if (!
|
|
29
|
+
if (!S) {
|
|
30
30
|
e.preventDefault();
|
|
31
|
-
const
|
|
32
|
-
j() ?
|
|
31
|
+
const b = e, { view: $ } = b, B = m(b, ["view"]), N = () => T(a, B);
|
|
32
|
+
j() ? G(a, "keyup", N) : queueMicrotask(N);
|
|
33
33
|
}
|
|
34
|
-
} else n && (f.current = !0,
|
|
34
|
+
} else n && (f.current = !0, S || (e.preventDefault(), k(!0)));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
37
|
-
if (
|
|
36
|
+
}), g = r.onKeyUp, h = _((e) => {
|
|
37
|
+
if (g == null || g(e), e.defaultPrevented || E || y || e.metaKey) return;
|
|
38
38
|
const a = u && e.key === " ";
|
|
39
39
|
if (f.current && a && (f.current = !1, !M(e))) {
|
|
40
40
|
e.preventDefault(), k(!1);
|
|
41
|
-
const i = e.currentTarget, n = e, { view:
|
|
41
|
+
const i = e.currentTarget, n = e, { view: v } = n, l = m(n, ["view"]);
|
|
42
42
|
queueMicrotask(() => T(i, l));
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
return r =
|
|
45
|
+
return r = L(w(w({
|
|
46
46
|
"data-active": U || void 0,
|
|
47
47
|
type: K ? "button" : void 0
|
|
48
|
-
},
|
|
49
|
-
ref:
|
|
50
|
-
onKeyDown:
|
|
51
|
-
onKeyUp:
|
|
48
|
+
}, A), r), {
|
|
49
|
+
ref: V(c, r.ref),
|
|
50
|
+
onKeyDown: F,
|
|
51
|
+
onKeyUp: h
|
|
52
52
|
}), r = I(r), r;
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
|
|
55
|
+
z(function(t) {
|
|
56
56
|
const o = Z(t);
|
|
57
57
|
return J(W, o);
|
|
58
58
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as K, c as k, s as R, i as X, g as $, d as _, e as Z, b as p } from "./YV4JVR4I-
|
|
2
|
-
import { S, Q as M,
|
|
1
|
+
import { t as K, c as k, s as R, i as X, g as $, d as _, e as Z, b as p } from "./YV4JVR4I-BXEaRiAN.js";
|
|
2
|
+
import { S, Q as M, R as L, a1 as ee, J as te, C as ne, T as re, q as ie, o as se } from "./LMDWO4NN-DdLnHzru.js";
|
|
3
3
|
import { r as U, f as oe } from "./7PRQYBBV-91wrWGjk.js";
|
|
4
4
|
function le(e) {
|
|
5
5
|
var i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as v, s as Z, i as K, f as $, a as ee } from "./5VQZOHHZ-
|
|
2
|
-
import { u as te, C as re } from "./P7GR5CS5-
|
|
3
|
-
import { f as oe, h as ne, u as se } from "./PFRGBC2K-
|
|
4
|
-
import {
|
|
1
|
+
import { g as v, s as Z, i as K, f as $, a as ee } from "./5VQZOHHZ-CNzYHc1X.js";
|
|
2
|
+
import { u as te, C as re } from "./P7GR5CS5-Dub2zqTX.js";
|
|
3
|
+
import { f as oe, h as ne, u as se } from "./PFRGBC2K-DUhGSIey.js";
|
|
4
|
+
import { f as ie, c as ue, a as ae, _ as O, i as ce, u as le, b as B, d as E, g as fe, e as P, h as I, j as de, k as z, l as me, m as pe, n as ve, o as M, p as ge } from "./LMDWO4NN-DdLnHzru.js";
|
|
5
5
|
import { f as ye, r as Ee } from "./7PRQYBBV-91wrWGjk.js";
|
|
6
6
|
import { useRef as R, useEffect as L, useState as Ie, useCallback as Ce } from "react";
|
|
7
7
|
import { jsx as Pe } from "react/jsx-runtime";
|
|
@@ -23,7 +23,7 @@ function H(r, i, l) {
|
|
|
23
23
|
const f = r.getState(), m = (n = v(r, f.activeId)) == null ? void 0 : n.element;
|
|
24
24
|
if (!m) return;
|
|
25
25
|
const s = e, { view: h } = s, w = O(s, ["view"]), c = l == null ? void 0 : l.current;
|
|
26
|
-
m !== c && m.focus(),
|
|
26
|
+
m !== c && m.focus(), ge(m, e.type, w) || e.preventDefault(), e.currentTarget.contains(m) && e.stopPropagation();
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
function he(r) {
|
|
@@ -40,7 +40,7 @@ function ke(r) {
|
|
|
40
40
|
i && f && (l(!1), f.focus({ preventScroll: !0 }));
|
|
41
41
|
}, [n, i]), e;
|
|
42
42
|
}
|
|
43
|
-
var Ae =
|
|
43
|
+
var Ae = ue(
|
|
44
44
|
function(i) {
|
|
45
45
|
var l = i, {
|
|
46
46
|
store: e,
|
|
@@ -54,11 +54,11 @@ var Ae = ie(
|
|
|
54
54
|
"moveOnKeyPress"
|
|
55
55
|
]);
|
|
56
56
|
const h = te();
|
|
57
|
-
e = e || h,
|
|
57
|
+
e = e || h, ce(
|
|
58
58
|
e,
|
|
59
59
|
process.env.NODE_ENV !== "production" && "Composite must receive a `store` prop or be wrapped in a CompositeProvider component."
|
|
60
60
|
);
|
|
61
|
-
const w = R(null), c = R(null), U = ke(e), F = e.useState("moves"), [, V] =
|
|
61
|
+
const w = R(null), c = R(null), U = ke(e), F = e.useState("moves"), [, V] = le(
|
|
62
62
|
n ? e.setBaseElement : null
|
|
63
63
|
);
|
|
64
64
|
L(() => {
|
|
@@ -79,7 +79,7 @@ var Ae = ie(
|
|
|
79
79
|
if (!e || !n || !A) return;
|
|
80
80
|
const o = c.current;
|
|
81
81
|
if (c.current = null, !o) return;
|
|
82
|
-
const a = ((t = v(e, k)) == null ? void 0 : t.element) ||
|
|
82
|
+
const a = ((t = v(e, k)) == null ? void 0 : t.element) || fe(o);
|
|
83
83
|
a !== o && E(o, { relatedTarget: a });
|
|
84
84
|
}, [e, k, A, n]);
|
|
85
85
|
const j = H(
|
|
@@ -107,7 +107,7 @@ var Ae = ie(
|
|
|
107
107
|
if (!u) return;
|
|
108
108
|
const p = (o = v(e, a)) == null ? void 0 : o.element, g = t.relatedTarget, S = K(e, g), d = c.current;
|
|
109
109
|
c.current = null, I(t) && S ? (g === p ? d && d !== g && E(d, t) : p ? E(p, t) : d && E(d, t), t.stopPropagation()) : !K(e, t.target) && p && E(p, t);
|
|
110
|
-
}), D = s.onKeyDown, J =
|
|
110
|
+
}), D = s.onKeyDown, J = de(m), Q = P((t) => {
|
|
111
111
|
var o;
|
|
112
112
|
if (D == null || D(t), t.nativeEvent.isComposing || t.defaultPrevented || !e || !I(t)) return;
|
|
113
113
|
const { orientation: u, renderedItems: a, activeId: p } = e.getState(), g = v(e, p);
|
|
@@ -138,7 +138,7 @@ var Ae = ie(
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
s =
|
|
141
|
+
s = me(
|
|
142
142
|
s,
|
|
143
143
|
(t) => /* @__PURE__ */ Pe(re, { value: e, children: t }),
|
|
144
144
|
[e]
|
|
@@ -148,10 +148,10 @@ var Ae = ie(
|
|
|
148
148
|
if (e && n && t.virtualFocus)
|
|
149
149
|
return (o = v(e, t.activeId)) == null ? void 0 : o.id;
|
|
150
150
|
});
|
|
151
|
-
s =
|
|
151
|
+
s = pe(M({
|
|
152
152
|
"aria-activedescendant": X
|
|
153
153
|
}, s), {
|
|
154
|
-
ref:
|
|
154
|
+
ref: ve(w, V, s.ref),
|
|
155
155
|
onKeyDownCapture: j,
|
|
156
156
|
onKeyUpCapture: N,
|
|
157
157
|
onFocusCapture: q,
|
|
@@ -164,9 +164,9 @@ var Ae = ie(
|
|
|
164
164
|
);
|
|
165
165
|
return s = se(M({ focusable: Y }, s)), s;
|
|
166
166
|
}
|
|
167
|
-
), ze =
|
|
167
|
+
), ze = ie(function(i) {
|
|
168
168
|
const l = Ae(i);
|
|
169
|
-
return
|
|
169
|
+
return ae(Fe, l);
|
|
170
170
|
});
|
|
171
171
|
export {
|
|
172
172
|
ze as C,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-
|
|
2
|
-
import { u as ue } from "./RZ4GPYOB-
|
|
3
|
-
import { a as le, b as fe, c as ce } from "./P7GR5CS5-
|
|
4
|
-
import { u as de } from "./2RSXSRCN-
|
|
5
|
-
import { u as me } from "./YV4JVR4I-
|
|
6
|
-
import {
|
|
1
|
+
import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-CNzYHc1X.js";
|
|
2
|
+
import { u as ue } from "./RZ4GPYOB-c8s_KHUk.js";
|
|
3
|
+
import { a as le, b as fe, c as ce } from "./P7GR5CS5-Dub2zqTX.js";
|
|
4
|
+
import { u as de } from "./2RSXSRCN-Bc3g-z-i.js";
|
|
5
|
+
import { u as me } from "./YV4JVR4I-BXEaRiAN.js";
|
|
6
|
+
import { s as pe, f as be, c as Ie, a as ge, _ as ve, q as we, t as Pe, m as S, o as x, e as T, v as Se, w as D, h as A, x as xe, j as N, y as Ce, z as he, l as Ee, n as ye, r as Te, k as De, A as Ae, B as ke } from "./LMDWO4NN-DdLnHzru.js";
|
|
7
7
|
import { useRef as V, useContext as Oe, useCallback as Re, useMemo as ze } from "react";
|
|
8
8
|
import { jsx as Ke } from "react/jsx-runtime";
|
|
9
9
|
var Fe = "button";
|
|
10
10
|
function _e(o) {
|
|
11
|
-
return D(o) ? !0 : o.tagName === "INPUT" && !
|
|
11
|
+
return D(o) ? !0 : o.tagName === "INPUT" && !Ae(o);
|
|
12
12
|
}
|
|
13
13
|
function Be(o, u = !1) {
|
|
14
14
|
const a = o.clientHeight, { top: t } = o.getBoundingClientRect(), c = Math.max(a * 0.875, a - 40) * 1.5, m = u ? a - c + t : c + t;
|
|
@@ -21,7 +21,7 @@ function He(o, u = !1) {
|
|
|
21
21
|
function L(o, u, a, t = !1) {
|
|
22
22
|
var c;
|
|
23
23
|
if (!u || !a) return;
|
|
24
|
-
const { renderedItems: m } = u.getState(), v =
|
|
24
|
+
const { renderedItems: m } = u.getState(), v = ke(o);
|
|
25
25
|
if (!v) return;
|
|
26
26
|
const C = Be(v, t);
|
|
27
27
|
let f, p;
|
|
@@ -43,7 +43,7 @@ function L(o, u, a, t = !1) {
|
|
|
43
43
|
function Me(o, u) {
|
|
44
44
|
return A(o) ? !1 : j(u, o.target);
|
|
45
45
|
}
|
|
46
|
-
var Ne =
|
|
46
|
+
var Ne = Ie(
|
|
47
47
|
function(u) {
|
|
48
48
|
var a = u, {
|
|
49
49
|
store: t,
|
|
@@ -54,7 +54,7 @@ var Ne = pe(
|
|
|
54
54
|
getItem: f,
|
|
55
55
|
"aria-setsize": p,
|
|
56
56
|
"aria-posinset": b
|
|
57
|
-
} = a, r =
|
|
57
|
+
} = a, r = ve(a, [
|
|
58
58
|
"store",
|
|
59
59
|
"rowId",
|
|
60
60
|
"preventScrollOnKeyDown",
|
|
@@ -66,7 +66,7 @@ var Ne = pe(
|
|
|
66
66
|
]);
|
|
67
67
|
const w = le();
|
|
68
68
|
t = t || w;
|
|
69
|
-
const l =
|
|
69
|
+
const l = we(r.id), I = V(null), s = Oe(fe), k = Pe(r) && !r.accessibleWhenDisabled, {
|
|
70
70
|
rowId: h,
|
|
71
71
|
baseElement: O,
|
|
72
72
|
isActiveItem: U,
|
|
@@ -119,10 +119,10 @@ var Ne = pe(
|
|
|
119
119
|
},
|
|
120
120
|
[l, h, k, f]
|
|
121
121
|
), R = r.onFocus, E = V(!1), Q = T((e) => {
|
|
122
|
-
if (R == null || R(e), e.defaultPrevented ||
|
|
122
|
+
if (R == null || R(e), e.defaultPrevented || Se(e) || !l || !t || Me(e, t)) return;
|
|
123
123
|
const { virtualFocus: n, baseElement: i } = t.getState();
|
|
124
124
|
if (t.setActiveId(l), D(e.currentTarget) && ie(e.currentTarget), !n || !A(e) || _e(e.currentTarget) || !(i != null && i.isConnected)) return;
|
|
125
|
-
|
|
125
|
+
xe() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
|
|
126
126
|
block: "nearest",
|
|
127
127
|
inline: "nearest"
|
|
128
128
|
}), E.current = !0, e.relatedTarget === i || j(t, e.relatedTarget) ? se(i) : i.focus();
|
|
@@ -132,7 +132,7 @@ var Ne = pe(
|
|
|
132
132
|
n != null && n.virtualFocus && E.current && (E.current = !1, e.preventDefault(), e.stopPropagation());
|
|
133
133
|
}), K = r.onKeyDown, Y = N(m), Z = N(v), $ = T((e) => {
|
|
134
134
|
if (K == null || K(e), e.defaultPrevented || !A(e) || !t) return;
|
|
135
|
-
const { currentTarget: n } = e, i = t.getState(), y = t.item(l), d = !!(y != null && y.rowId), P = i.orientation !== "horizontal", g = i.orientation !== "vertical", _ = () => !!(d || g || !i.baseElement || !
|
|
135
|
+
const { currentTarget: n } = e, i = t.getState(), y = t.item(l), d = !!(y != null && y.rowId), P = i.orientation !== "horizontal", g = i.orientation !== "vertical", _ = () => !!(d || g || !i.baseElement || !De(i.baseElement)), B = {
|
|
136
136
|
ArrowUp: (d || P) && t.up,
|
|
137
137
|
ArrowRight: (d || g) && t.next,
|
|
138
138
|
ArrowDown: (d || P) && t.down,
|
|
@@ -150,9 +150,9 @@ var Ne = pe(
|
|
|
150
150
|
}[e.key];
|
|
151
151
|
if (B) {
|
|
152
152
|
if (D(n)) {
|
|
153
|
-
const M =
|
|
153
|
+
const M = Ce(n), ee = g && e.key === "ArrowLeft", te = g && e.key === "ArrowRight", re = P && e.key === "ArrowUp", ne = P && e.key === "ArrowDown";
|
|
154
154
|
if (te || ne) {
|
|
155
|
-
const { length: oe } =
|
|
155
|
+
const { length: oe } = he(n);
|
|
156
156
|
if (M.end !== oe) return;
|
|
157
157
|
} else if ((ee || re) && M.start !== 0) return;
|
|
158
158
|
}
|
|
@@ -166,7 +166,7 @@ var Ne = pe(
|
|
|
166
166
|
() => ({ id: l, baseElement: O }),
|
|
167
167
|
[l, O]
|
|
168
168
|
);
|
|
169
|
-
return r =
|
|
169
|
+
return r = Ee(
|
|
170
170
|
r,
|
|
171
171
|
(e) => /* @__PURE__ */ Ke(ce.Provider, { value: F, children: e }),
|
|
172
172
|
[F]
|
|
@@ -174,7 +174,7 @@ var Ne = pe(
|
|
|
174
174
|
id: l,
|
|
175
175
|
"data-active-item": U || void 0
|
|
176
176
|
}, r), {
|
|
177
|
-
ref:
|
|
177
|
+
ref: ye(I, r.ref),
|
|
178
178
|
tabIndex: G ? r.tabIndex : -1,
|
|
179
179
|
onFocus: Q,
|
|
180
180
|
onBlurCapture: X,
|
|
@@ -184,15 +184,15 @@ var Ne = pe(
|
|
|
184
184
|
}, r), {
|
|
185
185
|
getItem: J,
|
|
186
186
|
shouldRegisterItem: l ? r.shouldRegisterItem : !1
|
|
187
|
-
})),
|
|
187
|
+
})), Te(S(x({}, r), {
|
|
188
188
|
"aria-setsize": W,
|
|
189
189
|
"aria-posinset": q
|
|
190
190
|
}));
|
|
191
191
|
}
|
|
192
|
-
), Ye =
|
|
193
|
-
|
|
192
|
+
), Ye = pe(
|
|
193
|
+
be(function(u) {
|
|
194
194
|
const a = Ne(u);
|
|
195
|
-
return
|
|
195
|
+
return ge(Fe, a);
|
|
196
196
|
})
|
|
197
197
|
);
|
|
198
198
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as o, a as r } from "./MTZPJQMC-
|
|
2
|
-
import { e as a, C } from "./P7GR5CS5-
|
|
3
|
-
import { I as s } from "./LMDWO4NN-
|
|
1
|
+
import { P as o, a as r } from "./MTZPJQMC-RLG1q394.js";
|
|
2
|
+
import { e as a, C } from "./P7GR5CS5-Dub2zqTX.js";
|
|
3
|
+
import { I as s } from "./LMDWO4NN-DdLnHzru.js";
|
|
4
4
|
import { createContext as t } from "react";
|
|
5
5
|
var e = s(
|
|
6
6
|
[r, C],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { u as T } from "./RS7LB2H4-
|
|
2
|
-
import { u as h } from "./2RSXSRCN-
|
|
3
|
-
import { c as v, O as
|
|
4
|
-
import { useRef as C, useState as P, useEffect as
|
|
5
|
-
var
|
|
1
|
+
import { u as T } from "./RS7LB2H4-C0kmTjy8.js";
|
|
2
|
+
import { u as h } from "./2RSXSRCN-Bc3g-z-i.js";
|
|
3
|
+
import { c as v, O as j, A as f, m as p, n as g, o as l, f as E, a as D, _ as w, i as M, j as V, E as A, e as H } from "./LMDWO4NN-DdLnHzru.js";
|
|
4
|
+
import { useRef as C, useState as P, useEffect as _ } from "react";
|
|
5
|
+
var b = "button", N = v(
|
|
6
6
|
function(t) {
|
|
7
|
-
const s = C(null), e =
|
|
7
|
+
const s = C(null), e = j(s, b), [a, o] = P(
|
|
8
8
|
() => !!e && f({ tagName: e, type: t.type })
|
|
9
9
|
);
|
|
10
|
-
return
|
|
10
|
+
return _(() => {
|
|
11
11
|
s.current && o(f(s.current));
|
|
12
|
-
}, []), t = p(
|
|
12
|
+
}, []), t = p(l({
|
|
13
13
|
role: !a && e !== "a" ? "button" : void 0
|
|
14
14
|
}, t), {
|
|
15
15
|
ref: g(s, t.ref)
|
|
@@ -17,32 +17,32 @@ var _ = "button", k = v(
|
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
E(function(t) {
|
|
20
|
-
const s =
|
|
21
|
-
return D(
|
|
20
|
+
const s = N(t);
|
|
21
|
+
return D(b, s);
|
|
22
22
|
});
|
|
23
23
|
var I = "button", $ = Symbol("disclosure"), q = v(
|
|
24
24
|
function(t) {
|
|
25
|
-
var s = t, { store: e, toggleOnClick: a = !0 } = s, o =
|
|
26
|
-
const
|
|
27
|
-
e = e ||
|
|
25
|
+
var s = t, { store: e, toggleOnClick: a = !0 } = s, o = w(s, ["store", "toggleOnClick"]);
|
|
26
|
+
const k = T();
|
|
27
|
+
e = e || k, M(
|
|
28
28
|
e,
|
|
29
29
|
process.env.NODE_ENV !== "production" && "Disclosure must receive a `store` prop or be wrapped in a DisclosureProvider component."
|
|
30
30
|
);
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
let r = n ===
|
|
34
|
-
n != null && n.isConnected || (e == null || e.setDisclosureElement(
|
|
31
|
+
const i = C(null), [B, x] = P(!1), n = e.useState("disclosureElement"), c = e.useState("open");
|
|
32
|
+
_(() => {
|
|
33
|
+
let r = n === i.current;
|
|
34
|
+
n != null && n.isConnected || (e == null || e.setDisclosureElement(i.current), r = !0), x(c && r);
|
|
35
35
|
}, [n, e, c]);
|
|
36
|
-
const d = o.onClick, O =
|
|
36
|
+
const d = o.onClick, O = V(a), [S, y] = A(o, $, !0), R = H((r) => {
|
|
37
37
|
d == null || d(r), !r.defaultPrevented && (S || O(r) && (e == null || e.setDisclosureElement(r.currentTarget), e == null || e.toggle()));
|
|
38
38
|
}), m = e.useState("contentElement");
|
|
39
|
-
return o = p(
|
|
39
|
+
return o = p(l(l({
|
|
40
40
|
"aria-expanded": B,
|
|
41
41
|
"aria-controls": m == null ? void 0 : m.id
|
|
42
42
|
}, y), o), {
|
|
43
|
-
ref: g(
|
|
43
|
+
ref: g(i, o.ref),
|
|
44
44
|
onClick: R
|
|
45
|
-
}), o =
|
|
45
|
+
}), o = N(o), o;
|
|
46
46
|
}
|
|
47
47
|
), K = E(function(t) {
|
|
48
48
|
const s = q(t);
|