@wrdagency/blockout 1.0.26 → 1.0.29
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-Cunv252F.js → 2NBKRL7C-DBbnghCe.js} +16 -16
- package/dist/{2RSXSRCN-dNqvVCu5.js → 2RSXSRCN-BxQ_v-Je.js} +15 -15
- package/dist/{4CMBR7SL-Cf8t3EeF.js → 4CMBR7SL-DezfZPUS.js} +25 -25
- package/dist/{5JTVDSTH-zDMMKAyC.js → 5JTVDSTH-CZ7mfyUK.js} +4 -4
- package/dist/{5VQZOHHZ-BbettT93.js → 5VQZOHHZ-DLX-ulBK.js} +1 -1
- package/dist/{6VRAQV3D-pLV6BqmA.js → 6VRAQV3D-BYmT0QTl.js} +6 -6
- package/dist/{A3WPL2ZJ-DEsxy0M-.js → A3WPL2ZJ-24tGIJIQ.js} +2 -2
- package/dist/{BM6PGYQY-g6WySwtg.js → BM6PGYQY-DCbkDr5N.js} +4 -4
- package/dist/{DG5U6ZEL-9kCi_mGg.js → DG5U6ZEL-DB0iwihy.js} +3 -3
- package/dist/{EM5CXX6A-BAj-o9Ka.js → EM5CXX6A-B4ZS4Hs_.js} +2 -2
- package/dist/{F5MUBM3I-AbDoeFd8.js → F5MUBM3I-75qY3y0N.js} +17 -17
- package/dist/{G7GW6PWC-DeYlSr7f.js → G7GW6PWC-Dk4hVbAk.js} +32 -32
- package/dist/{IWEFDH56-DLJvQd6v.js → IWEFDH56-BACkQ6dc.js} +3 -3
- package/dist/{J2LQO3EC-Cevd6Bvq.js → J2LQO3EC-BXJIaM2U.js} +2 -2
- package/dist/JMHAJKUZ-D5KCN1Aj.js +114 -0
- package/dist/{KFH4SEIX-JLk95eQA.js → KFH4SEIX-DaQeP5D_.js} +13 -13
- package/dist/{LMDWO4NN-BfJb6my4.js → LMDWO4NN-CpSMaD5G.js} +26 -26
- package/dist/MAXQOH4L-BYWBWXpb.js +459 -0
- package/dist/{MR26YJYP-CDaPeerB.js → MR26YJYP-CTh6rCwA.js} +66 -66
- package/dist/{MTZPJQMC-CraWj4on.js → MTZPJQMC-D2i4-LA_.js} +4 -4
- package/dist/{O2PQ2652-BCwdW7qA.js → O2PQ2652-DIoegIkE.js} +3 -3
- package/dist/{P7GR5CS5-DbUZzAnv.js → P7GR5CS5-3RsPGPTy.js} +1 -1
- package/dist/{PFRGBC2K-DmHoUTiZ.js → PFRGBC2K-BdRJd-gU.js} +36 -36
- package/dist/{RS7LB2H4-D1_VRecC.js → RS7LB2H4-COOfOq9w.js} +1 -1
- package/dist/{RZ4GPYOB-rG3RP8Xi.js → RZ4GPYOB-CovncfhJ.js} +5 -5
- package/dist/{S43UC3DV-bOoyE-xW.js → S43UC3DV-HCi6u_G4.js} +8 -8
- package/dist/{T7VMP3TM-DZitNAMz.js → T7VMP3TM-C8D6mVva.js} +19 -19
- package/dist/{TIW3GMFC-DPiX149D.js → TIW3GMFC-BF0w2_9R.js} +16 -16
- package/dist/{TP7N7UIH-D_nR5wDv.js → TP7N7UIH-C4jXJDlO.js} +2 -2
- package/dist/{UQQRIHDV-ULrGYPSq.js → UQQRIHDV-DEGlgATx.js} +10 -10
- package/dist/{UYGDZTLQ-CTQQ8oFQ.js → UYGDZTLQ-HiDKLOW5.js} +2 -2
- package/dist/{VIIRIBF3-C4pOScX8.js → VIIRIBF3-B-djNAU9.js} +3 -3
- package/dist/{WMYDSCNQ-qLZnyPON.js → WMYDSCNQ-pGjWB-Pk.js} +12 -12
- package/dist/{WYCIER3C-BJwD0YDE.js → WYCIER3C-CxfgpZG_.js} +2 -2
- package/dist/{YORGHBM4-6CReFG7i.js → YORGHBM4-D_fOXG5Y.js} +1 -1
- package/dist/{YV4JVR4I-D8_aZ62q.js → YV4JVR4I-CQnJhUSg.js} +26 -26
- package/dist/assets/button.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/static.css +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style10.css +1 -1
- package/dist/assets/style6.css +1 -1
- package/dist/assets/style8.css +1 -1
- package/dist/assets/style9.css +1 -1
- package/dist/{combobox-group-BCdU5rML.js → combobox-group-hNvv1WJm.js} +3 -3
- package/dist/{combobox-popover-D5bLZY4d.js → combobox-popover-BZ_1wNrj.js} +5 -5
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +20 -18
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/icon.js +1 -1
- package/dist/components/button/row.js +4 -4
- package/dist/components/command-palette/dialog.d.ts +9 -0
- package/dist/components/command-palette/dialog.js +34 -0
- package/dist/components/command-palette/index.js +8 -175
- package/dist/components/command-palette/presets.d.ts +4 -0
- package/dist/components/command-palette/presets.js +10 -0
- package/dist/components/command-palette/static.d.ts +19 -0
- package/dist/components/command-palette/static.js +76 -0
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/checkbox-control/index.js +1 -1
- package/dist/components/controls/choice-control/choice.js +1 -1
- package/dist/components/controls/choice-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +2 -2
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/list-control/item.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +1 -1
- package/dist/components/controls/select-control/control.js +1 -1
- package/dist/components/controls/select-control/select.js +33 -32
- package/dist/components/controls/tag-control/ariakit-experimental.js +253 -252
- package/dist/components/controls/tag-control/index.js +9 -8
- package/dist/components/controls/tag-control/props.js +1 -1
- package/dist/components/controls/toggle-control/index.js +1 -1
- package/dist/components/controls/toggle-group-control/index.js +1 -1
- package/dist/components/data-form/status.js +1 -1
- package/dist/components/data-form/submit.js +1 -1
- package/dist/components/data-view/data/filter.js +2 -2
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +2 -2
- package/dist/components/data-view/layouts/grid/item.js +2 -2
- package/dist/components/data-view/layouts/kanban/group.js +2 -2
- package/dist/components/data-view/layouts/kanban/item.js +2 -2
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +2 -2
- package/dist/components/data-view/layouts/list/item.js +2 -2
- package/dist/components/data-view/layouts/table/empty.js +2 -2
- package/dist/components/data-view/layouts/table/group.js +3 -3
- package/dist/components/data-view/layouts/table/item.js +3 -3
- package/dist/components/data-view/layouts/table/root.js +2 -2
- package/dist/components/data-view/layouts/tile/group.js +2 -2
- package/dist/components/data-view/layouts/tile/item.js +2 -2
- package/dist/components/data-view/parts/body/empty.js +1 -1
- package/dist/components/data-view/parts/body/index.js +4 -4
- package/dist/components/data-view/parts/controls/index.js +2 -2
- package/dist/components/data-view/parts/controls/search.js +2 -2
- package/dist/components/data-view/parts/filters/chip.js +1 -1
- package/dist/components/data-view/parts/filters/editor.js +1 -1
- package/dist/components/data-view/parts/footer/actions.js +2 -2
- package/dist/components/data-view/parts/footer/index.js +2 -2
- package/dist/components/data-view/parts/footer/selection.js +2 -2
- package/dist/components/data-view/parts/view-control/index.js +2 -2
- package/dist/components/data-view/root.js +2 -2
- package/dist/components/data-view/slots/group/checkbox.js +3 -3
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/header.js +1 -1
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +1 -1
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +3 -3
- package/dist/components/data-view/slots/item/actions.js +1 -1
- package/dist/components/data-view/slots/item/checkbox.js +2 -2
- package/dist/components/data-view/slots/item/depth.js +3 -3
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +1 -1
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +3 -3
- package/dist/components/data-view/slots/item/tags.js +1 -1
- package/dist/components/data-view/slots/item/thumbnail.js +1 -1
- package/dist/components/data-view/slots/item/title.js +1 -1
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +2 -2
- package/dist/components/data-view/slots/property/field/index.js +1 -1
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +1 -1
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +2 -2
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +5 -5
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/menu/index.js +2 -2
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +1 -1
- package/dist/components/menu/items/submenu.js +3 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/shell/index.js +14 -12
- package/dist/components/shell/navigation-separator.d.ts +6 -0
- package/dist/components/shell/navigation-separator.js +14 -0
- package/dist/components/shell/pane.js +1 -1
- package/dist/components/shell/sidebar-item.d.ts +5 -4
- package/dist/components/shell/sidebar-item.js +26 -20
- package/dist/components/tabs/list.js +1 -1
- package/dist/components/tabs/panel.js +1 -1
- package/dist/components/tabs/root.js +1 -1
- package/dist/components/tabs/tab.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/toolbar/divider.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar/root.js +1 -1
- package/dist/components/window/index.js +2 -2
- package/dist/{composite-provider-DFOFHro7.js → composite-provider-BPIeS4Cg.js} +2 -2
- package/dist/{disclosure-provider-DIT2ijtk.js → disclosure-provider-cEVysvZT.js} +2 -2
- package/dist/{filter-DzrtcAfG.js → filter-DHK0UoZG.js} +1 -1
- package/dist/{index-Bp_FFk15.js → index-BLCPauyN.js} +2 -2
- package/dist/{index-B5z_GwnD.js → index-BnbjJBS4.js} +3 -3
- package/dist/{index-C8OctMj0.js → index-CLl-PPjx.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -56
- package/dist/{item-CGLYiEST.js → item-CmTk8eHD.js} +2 -2
- package/dist/{menu-button-C-h3k7Gh.js → menu-button-GQO5dB3U.js} +33 -33
- package/dist/{menu-separator-CuuhJPnR.js → menu-separator-Z6pSHpX5.js} +3 -3
- package/dist/{picker-BUCg1BqW.js → picker-DyJogHYh.js} +4 -4
- package/dist/{popover-provider-BoZ9PI_r.js → popover-provider-BJEfhgr1.js} +4 -4
- package/dist/presets-BDIhXP0C.js +148 -0
- package/dist/primitives/icon-label/index.d.ts +2 -0
- package/dist/primitives/icon-label/index.js +18 -14
- package/dist/primitives/link/index.d.ts +3 -1
- package/dist/primitives/link/index.js +26 -25
- package/dist/primitives/nav-link/index.d.ts +4 -3
- package/dist/primitives/nav-link/index.js +21 -17
- 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/scroll-area/index.js +1 -1
- package/dist/primitives/tooltip/index.d.ts +2 -0
- package/dist/primitives/tooltip/index.js +36 -24
- package/dist/{select-popover-DmN0T8PP.js → select-popover-Dheunyb0.js} +53 -53
- package/dist/{select-value-DnWKxDD-.js → select-value-B3DYk9eV.js} +2 -2
- package/dist/{tab-BXGTM7Se.js → tab-DejwS4C8.js} +4 -4
- package/dist/{tab-list-BPSxHllS.js → tab-list-CndMWcVv.js} +3 -3
- package/dist/{tab-panel-fbUcLE4f.js → tab-panel-DedzuWUA.js} +7 -7
- package/dist/{tab-provider-x586a8l7.js → tab-provider-B0BoLfST.js} +21 -21
- package/dist/{tag-remove-BdHvB_5c.js → tag-remove-Dz-sGbyZ.js} +35 -35
- package/dist/{toolbar-hQ58P-Nk.js → toolbar-PSaF1mdF.js} +11 -11
- package/dist/{toolbar-separator-CN00-jyc.js → toolbar-separator-DJHiHbGj.js} +3 -3
- package/dist/{tooltip-arrow-BRJ4m2ZL.js → tooltip-arrow-BVwULA6B.js} +9 -9
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +23 -0
- package/package.json +1 -1
- package/dist/MAXQOH4L-DB7jDisS.js +0 -564
- package/dist/assets/index22.css +0 -1
- package/dist/components/command-palette/index.d.ts +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as pe, a as he } from "./O2PQ2652-
|
|
2
|
-
import { c as Pe, f as q, b as He, d as we } from "./YV4JVR4I-
|
|
3
|
-
import {
|
|
4
|
-
import { u as Y, H as
|
|
5
|
-
import { u as
|
|
6
|
-
import { a as _e, u as ye } from "./PFRGBC2K-
|
|
7
|
-
import { useRef as R, useState as ce, useEffect as
|
|
1
|
+
import { c as pe, a as he } from "./O2PQ2652-DIoegIkE.js";
|
|
2
|
+
import { c as Pe, f as q, b as He, d as we } from "./YV4JVR4I-CQnJhUSg.js";
|
|
3
|
+
import { V as B, U as _, W as D, c as oe, _ as X, i as re, a3 as Ee, O as ne, j as $, a2 as K, a0 as M, a4 as Oe, b as Se, l as ge, m as k, n as se, o as y, C as be, P as I, e as U, f as ue, a as ie, t as Fe } from "./LMDWO4NN-CpSMaD5G.js";
|
|
4
|
+
import { u as Y, H as Me } from "./EM5CXX6A-B4ZS4Hs_.js";
|
|
5
|
+
import { u as Te, c as Ae } from "./G7GW6PWC-Dk4hVbAk.js";
|
|
6
|
+
import { a as _e, u as ye } from "./PFRGBC2K-BdRJd-gU.js";
|
|
7
|
+
import { useRef as R, useState as ce, useEffect as O, useContext as Re, createContext as xe, useCallback as ae } from "react";
|
|
8
8
|
import { jsx as Q } from "react/jsx-runtime";
|
|
9
9
|
function Ce(r = {}) {
|
|
10
10
|
var s;
|
|
@@ -27,11 +27,11 @@ function Ce(r = {}) {
|
|
|
27
27
|
function Ne(r, s, t) {
|
|
28
28
|
return q(r, t, "timeout"), q(r, t, "showTimeout"), q(r, t, "hideTimeout"), he(r, s, t);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ze(r = {}) {
|
|
31
31
|
const [s, t] = He(Ce, r);
|
|
32
32
|
return Ne(s, t, r);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function W(r) {
|
|
35
35
|
return [r.clientX, r.clientY];
|
|
36
36
|
}
|
|
37
37
|
function Z(r, s) {
|
|
@@ -65,7 +65,7 @@ function ee(r, s) {
|
|
|
65
65
|
}
|
|
66
66
|
var ke = "div";
|
|
67
67
|
function le(r, s, t, e) {
|
|
68
|
-
return _e(s) ? !0 : r ? !!(
|
|
68
|
+
return _e(s) ? !0 : r ? !!(I(s, r) || t && I(t, r) || e != null && e.some((n) => le(r, n, t))) : !1;
|
|
69
69
|
}
|
|
70
70
|
function je(r) {
|
|
71
71
|
var s = r, {
|
|
@@ -74,13 +74,13 @@ function je(r) {
|
|
|
74
74
|
"store"
|
|
75
75
|
]);
|
|
76
76
|
const [n, u] = ce(!1), i = t.useState("mounted");
|
|
77
|
-
|
|
77
|
+
O(() => {
|
|
78
78
|
i || u(!1);
|
|
79
79
|
}, [i]);
|
|
80
|
-
const a = e.onFocus, c =
|
|
80
|
+
const a = e.onFocus, c = U((d) => {
|
|
81
81
|
a == null || a(d), !d.defaultPrevented && u(!0);
|
|
82
82
|
}), o = R(null);
|
|
83
|
-
return
|
|
83
|
+
return O(() => we(t, ["anchorElement"], (d) => {
|
|
84
84
|
o.current = d.anchorElement;
|
|
85
85
|
}), []), e = k(y({
|
|
86
86
|
autoFocusOnHide: n,
|
|
@@ -89,7 +89,7 @@ function je(r) {
|
|
|
89
89
|
onFocus: c
|
|
90
90
|
}), e;
|
|
91
91
|
}
|
|
92
|
-
var te = xe(null),
|
|
92
|
+
var te = xe(null), Ve = oe(
|
|
93
93
|
function(s) {
|
|
94
94
|
var t = s, {
|
|
95
95
|
store: e,
|
|
@@ -111,30 +111,30 @@ var te = xe(null), Le = oe(
|
|
|
111
111
|
e,
|
|
112
112
|
process.env.NODE_ENV !== "production" && "Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component."
|
|
113
113
|
);
|
|
114
|
-
const h = R(null), [p, H] = ce([]), v = R(0),
|
|
114
|
+
const h = R(null), [p, H] = ce([]), v = R(0), g = R(null), { portalRef: P, domReady: f } = Ee(u, o.portalRef), w = ne(), x = !!a, T = $(a), S = !!c, C = $(
|
|
115
115
|
c
|
|
116
116
|
), j = e.useState("open"), b = e.useState("mounted");
|
|
117
|
-
|
|
118
|
-
if (!f || !b || !x && !
|
|
117
|
+
O(() => {
|
|
118
|
+
if (!f || !b || !x && !S) return;
|
|
119
119
|
const l = h.current;
|
|
120
|
-
return l ?
|
|
121
|
-
|
|
120
|
+
return l ? K(
|
|
121
|
+
M("mousemove", (m) => {
|
|
122
122
|
if (!e || !w()) return;
|
|
123
|
-
const { anchorElement:
|
|
124
|
-
if (le(
|
|
125
|
-
|
|
123
|
+
const { anchorElement: F, hideTimeout: N, timeout: me } = e.getState(), z = g.current, [V] = m.composedPath(), L = F;
|
|
124
|
+
if (le(V, l, L, p)) {
|
|
125
|
+
g.current = V && L && I(L, V) ? W(m) : null, window.clearTimeout(v.current), v.current = 0;
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
if (!v.current) {
|
|
129
|
-
if (
|
|
130
|
-
const
|
|
131
|
-
if (Z(
|
|
132
|
-
if (
|
|
129
|
+
if (z) {
|
|
130
|
+
const J = W(m), ve = ee(l, z);
|
|
131
|
+
if (Z(J, ve)) {
|
|
132
|
+
if (g.current = J, !C(m)) return;
|
|
133
133
|
m.preventDefault(), m.stopPropagation();
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
|
|
137
|
+
T(m) && (v.current = window.setTimeout(() => {
|
|
138
138
|
v.current = 0, e == null || e.hide();
|
|
139
139
|
}, N ?? me));
|
|
140
140
|
}
|
|
@@ -147,42 +147,42 @@ var te = xe(null), Le = oe(
|
|
|
147
147
|
f,
|
|
148
148
|
b,
|
|
149
149
|
x,
|
|
150
|
-
|
|
150
|
+
S,
|
|
151
151
|
p,
|
|
152
152
|
C,
|
|
153
|
-
|
|
154
|
-
]),
|
|
155
|
-
if (!f || !b || !
|
|
153
|
+
T
|
|
154
|
+
]), O(() => {
|
|
155
|
+
if (!f || !b || !S) return;
|
|
156
156
|
const l = (E) => {
|
|
157
157
|
const m = h.current;
|
|
158
158
|
if (!m) return;
|
|
159
|
-
const
|
|
160
|
-
if (!
|
|
161
|
-
const N = ee(m,
|
|
162
|
-
if (Z(
|
|
159
|
+
const F = g.current;
|
|
160
|
+
if (!F) return;
|
|
161
|
+
const N = ee(m, F);
|
|
162
|
+
if (Z(W(E), N)) {
|
|
163
163
|
if (!C(E)) return;
|
|
164
164
|
E.preventDefault(), E.stopPropagation();
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
return
|
|
167
|
+
return K(
|
|
168
168
|
// Note: we may need to add pointer events here in the future.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
M("mouseenter", l, !0),
|
|
170
|
+
M("mouseover", l, !0),
|
|
171
|
+
M("mouseout", l, !0),
|
|
172
|
+
M("mouseleave", l, !0)
|
|
173
173
|
);
|
|
174
|
-
}, [f, b,
|
|
174
|
+
}, [f, b, S, C]), O(() => {
|
|
175
175
|
f && (j || e == null || e.setAutoFocusOnShow(!1));
|
|
176
176
|
}, [e, f, j]);
|
|
177
|
-
const fe =
|
|
178
|
-
|
|
177
|
+
const fe = Oe(j);
|
|
178
|
+
O(() => {
|
|
179
179
|
if (f)
|
|
180
180
|
return () => {
|
|
181
181
|
fe.current || e == null || e.setAutoFocusOnShow(!1);
|
|
182
182
|
};
|
|
183
183
|
}, [e, f]);
|
|
184
184
|
const A = Re(te);
|
|
185
|
-
|
|
185
|
+
Se(() => {
|
|
186
186
|
if (n || !u || !b || !f) return;
|
|
187
187
|
const l = h.current;
|
|
188
188
|
if (l)
|
|
@@ -194,15 +194,15 @@ var te = xe(null), Le = oe(
|
|
|
194
194
|
const E = A == null ? void 0 : A(l);
|
|
195
195
|
return () => {
|
|
196
196
|
H(
|
|
197
|
-
(m) => m.filter((
|
|
197
|
+
(m) => m.filter((F) => F !== l)
|
|
198
198
|
), E == null || E();
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
[A]
|
|
202
202
|
);
|
|
203
|
-
o =
|
|
203
|
+
o = ge(
|
|
204
204
|
o,
|
|
205
|
-
(l) => /* @__PURE__ */ Q(
|
|
205
|
+
(l) => /* @__PURE__ */ Q(Me, { value: e, children: /* @__PURE__ */ Q(te.Provider, { value: G, children: l }) }),
|
|
206
206
|
[e, G]
|
|
207
207
|
), o = k(y({}, o), {
|
|
208
208
|
ref: se(h, o.ref)
|
|
@@ -210,7 +210,7 @@ var te = xe(null), Le = oe(
|
|
|
210
210
|
const de = e.useState(
|
|
211
211
|
(l) => n || l.autoFocusOnShow
|
|
212
212
|
);
|
|
213
|
-
return o =
|
|
213
|
+
return o = Te(k(y({
|
|
214
214
|
store: e,
|
|
215
215
|
modal: n,
|
|
216
216
|
portal: u,
|
|
@@ -226,13 +226,13 @@ var te = xe(null), Le = oe(
|
|
|
226
226
|
}
|
|
227
227
|
})), o;
|
|
228
228
|
}
|
|
229
|
-
),
|
|
229
|
+
), Je = Ae(
|
|
230
230
|
ue(function(s) {
|
|
231
|
-
const t =
|
|
231
|
+
const t = Ve(s);
|
|
232
232
|
return ie(ke, t);
|
|
233
233
|
}),
|
|
234
234
|
Y
|
|
235
|
-
),
|
|
235
|
+
), Le = "a", qe = oe(
|
|
236
236
|
function(s) {
|
|
237
237
|
var t = s, { store: e, showOnHover: n = !0 } = t, u = X(t, ["store", "showOnHover"]);
|
|
238
238
|
const i = Y();
|
|
@@ -240,25 +240,25 @@ var te = xe(null), Le = oe(
|
|
|
240
240
|
e,
|
|
241
241
|
process.env.NODE_ENV !== "production" && "HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component."
|
|
242
242
|
);
|
|
243
|
-
const a =
|
|
244
|
-
|
|
243
|
+
const a = Fe(u), c = R(0);
|
|
244
|
+
O(() => () => window.clearTimeout(c.current), []), O(() => M("mouseleave", (f) => {
|
|
245
245
|
if (!e) return;
|
|
246
246
|
const { anchorElement: w } = e.getState();
|
|
247
247
|
w && f.target === w && (window.clearTimeout(c.current), c.current = 0);
|
|
248
248
|
}, !0), [e]);
|
|
249
|
-
const o = u.onMouseMove, d =
|
|
249
|
+
const o = u.onMouseMove, d = $(n), h = ne(), p = U((P) => {
|
|
250
250
|
if (o == null || o(P), a || !e || P.defaultPrevented || c.current || !h() || !d(P)) return;
|
|
251
251
|
const f = P.currentTarget;
|
|
252
252
|
e.setAnchorElement(f), e.setDisclosureElement(f);
|
|
253
|
-
const { showTimeout: w, timeout: x } = e.getState(),
|
|
253
|
+
const { showTimeout: w, timeout: x } = e.getState(), T = () => {
|
|
254
254
|
c.current = 0, h() && (e == null || e.setAnchorElement(f), e == null || e.show(), queueMicrotask(() => {
|
|
255
255
|
e == null || e.setDisclosureElement(f);
|
|
256
256
|
}));
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
}), H = u.onClick, v =
|
|
257
|
+
}, S = w ?? x;
|
|
258
|
+
S === 0 ? T() : c.current = window.setTimeout(T, S);
|
|
259
|
+
}), H = u.onClick, v = U((P) => {
|
|
260
260
|
H == null || H(P), e && (window.clearTimeout(c.current), c.current = 0);
|
|
261
|
-
}),
|
|
261
|
+
}), g = ae(
|
|
262
262
|
(P) => {
|
|
263
263
|
if (!e) return;
|
|
264
264
|
const { anchorElement: f } = e.getState();
|
|
@@ -267,21 +267,21 @@ var te = xe(null), Le = oe(
|
|
|
267
267
|
[e]
|
|
268
268
|
);
|
|
269
269
|
return u = k(y({}, u), {
|
|
270
|
-
ref: se(
|
|
270
|
+
ref: se(g, u.ref),
|
|
271
271
|
onMouseMove: p,
|
|
272
272
|
onClick: v
|
|
273
273
|
}), u = ye(u), u;
|
|
274
274
|
}
|
|
275
|
-
),
|
|
275
|
+
), Ke = ue(function(s) {
|
|
276
276
|
const t = qe(s);
|
|
277
|
-
return ie(
|
|
277
|
+
return ie(Le, t);
|
|
278
278
|
});
|
|
279
279
|
export {
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
Je as H,
|
|
281
|
+
Ve as a,
|
|
282
282
|
qe as b,
|
|
283
283
|
Ce as c,
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
ze as d,
|
|
285
|
+
Ke as e,
|
|
286
286
|
Ne as u
|
|
287
287
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as e, b as r } from "./RS7LB2H4-
|
|
2
|
-
import {
|
|
1
|
+
import { D as e, b as r } from "./RS7LB2H4-COOfOq9w.js";
|
|
2
|
+
import { L as t } from "./LMDWO4NN-CpSMaD5G.js";
|
|
3
3
|
var o = t(
|
|
4
4
|
[r],
|
|
5
5
|
[e]
|
|
6
6
|
), x = o.useContext, s = o.useScopedContext, P = o.useProviderContext, d = o.ContextProvider, n = o.ScopedContextProvider;
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
d as P,
|
|
9
|
+
n as a,
|
|
10
10
|
P as b,
|
|
11
11
|
s as c,
|
|
12
12
|
x as u
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as v,
|
|
2
|
-
import { m as E, o as f, t as P, c as g, b as h, f as _ } from "./YV4JVR4I-
|
|
3
|
-
import { Y as b,
|
|
1
|
+
import { c as v, a as S } from "./BM6PGYQY-DCbkDr5N.js";
|
|
2
|
+
import { m as E, o as f, t as P, c as g, b as h, f as _ } from "./YV4JVR4I-CQnJhUSg.js";
|
|
3
|
+
import { Y as b, V as u, W as m, U as p, X as w } from "./LMDWO4NN-CpSMaD5G.js";
|
|
4
4
|
function y(t = {}) {
|
|
5
5
|
var o = t, {
|
|
6
6
|
popover: r
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext as st, useRef as ot, useEffect as A, useState as ut, useContext as at, useMemo as it } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { W as ct, g as E, Z as ft, P as lt, $ as j, c as bt, _ as dt, a0 as B, t as pt, e as F, v as vt, A as yt, J as T, h as O, a1 as Ft, T as mt, o as q, m as xt, n as Et, r as At, x as gt, f as ht, a as Tt } from "./LMDWO4NN-CpSMaD5G.js";
|
|
3
3
|
var wt = st(!0), g = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
|
|
4
4
|
function Ct(t) {
|
|
5
5
|
return Number.parseInt(t.getAttribute("tabindex") || "0", 10) < 0;
|
|
@@ -22,7 +22,7 @@ function C(t, e) {
|
|
|
22
22
|
e && r.unshift(t);
|
|
23
23
|
const n = r.filter(m);
|
|
24
24
|
return n.forEach((o, i) => {
|
|
25
|
-
if (
|
|
25
|
+
if (j(o) && o.contentDocument) {
|
|
26
26
|
const f = o.contentDocument.body;
|
|
27
27
|
n.splice(i, 1, ...C(f));
|
|
28
28
|
}
|
|
@@ -33,7 +33,7 @@ function I(t, e, r) {
|
|
|
33
33
|
t.querySelectorAll(g)
|
|
34
34
|
), o = n.filter(x);
|
|
35
35
|
return e && x(t) && o.unshift(t), o.forEach((i, f) => {
|
|
36
|
-
if (
|
|
36
|
+
if (j(i) && i.contentDocument) {
|
|
37
37
|
const a = i.contentDocument.body, l = I(
|
|
38
38
|
a,
|
|
39
39
|
!1,
|
|
@@ -43,7 +43,7 @@ function I(t, e, r) {
|
|
|
43
43
|
}
|
|
44
44
|
}), !o.length && r ? n : o;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ut(t, e, r) {
|
|
47
47
|
const [n] = I(
|
|
48
48
|
t,
|
|
49
49
|
e,
|
|
@@ -73,7 +73,7 @@ function Ht(t, e) {
|
|
|
73
73
|
!1
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Pt(t) {
|
|
77
77
|
for (; t && !m(t); )
|
|
78
78
|
t = t.closest(g);
|
|
79
79
|
return t || null;
|
|
@@ -85,7 +85,7 @@ function R(t) {
|
|
|
85
85
|
const r = e.getAttribute("aria-activedescendant");
|
|
86
86
|
return r ? r === t.id : !1;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Vt(t) {
|
|
89
89
|
const e = E(t);
|
|
90
90
|
if (!e) return !1;
|
|
91
91
|
if (lt(t, e)) return !0;
|
|
@@ -93,19 +93,19 @@ function Pt(t) {
|
|
|
93
93
|
return !r || !("id" in t) ? !1 : r === t.id ? !0 : !!t.querySelector(`#${CSS.escape(r)}`);
|
|
94
94
|
}
|
|
95
95
|
function St(t) {
|
|
96
|
-
!
|
|
96
|
+
!Vt(t) && m(t) && t.focus();
|
|
97
97
|
}
|
|
98
98
|
function kt(t) {
|
|
99
99
|
var e;
|
|
100
100
|
const r = (e = t.getAttribute("tabindex")) != null ? e : "";
|
|
101
101
|
t.setAttribute("data-tabindex", r), t.setAttribute("tabindex", "-1");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Jt(t, e) {
|
|
104
104
|
const r = I(t, e);
|
|
105
105
|
for (const n of r)
|
|
106
106
|
kt(n);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Xt(t) {
|
|
109
109
|
const e = t.querySelectorAll("[data-tabindex]"), r = (n) => {
|
|
110
110
|
const o = n.getAttribute("data-tabindex");
|
|
111
111
|
n.removeAttribute("data-tabindex"), o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
@@ -114,7 +114,7 @@ function Zt(t) {
|
|
|
114
114
|
for (const n of e)
|
|
115
115
|
r(n);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Zt(t, e) {
|
|
118
118
|
"scrollIntoView" in t ? (t.focus({ preventScroll: !0 }), t.scrollIntoView(ct({ block: "nearest", inline: "nearest" }, e))) : t.focus();
|
|
119
119
|
}
|
|
120
120
|
var Kt = "div", N = gt(), Mt = [
|
|
@@ -131,12 +131,12 @@ var Kt = "div", N = gt(), Mt = [
|
|
|
131
131
|
"time",
|
|
132
132
|
"datetime",
|
|
133
133
|
"datetime-local"
|
|
134
|
-
],
|
|
135
|
-
function
|
|
136
|
-
return t ? !!t[
|
|
134
|
+
], U = Symbol("safariFocusAncestor");
|
|
135
|
+
function zt(t) {
|
|
136
|
+
return t ? !!t[U] : !1;
|
|
137
137
|
}
|
|
138
138
|
function G(t, e) {
|
|
139
|
-
t && (t[
|
|
139
|
+
t && (t[U] = e);
|
|
140
140
|
}
|
|
141
141
|
function _t(t) {
|
|
142
142
|
const { tagName: e, readOnly: r, type: n } = t;
|
|
@@ -145,7 +145,7 @@ function _t(t) {
|
|
|
145
145
|
function Lt(t) {
|
|
146
146
|
return "labels" in t ? t.labels : null;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function W(t) {
|
|
149
149
|
return t.tagName.toLowerCase() === "input" && t.type ? t.type === "radio" || t.type === "checkbox" : !1;
|
|
150
150
|
}
|
|
151
151
|
function Bt(t) {
|
|
@@ -189,7 +189,7 @@ var Gt = bt(
|
|
|
189
189
|
}, [n]), N && A(() => {
|
|
190
190
|
if (!n) return;
|
|
191
191
|
const s = l.current;
|
|
192
|
-
if (!s || !
|
|
192
|
+
if (!s || !W(s)) return;
|
|
193
193
|
const u = Lt(s);
|
|
194
194
|
if (!u) return;
|
|
195
195
|
const c = () => queueMicrotask(() => s.focus());
|
|
@@ -218,34 +218,34 @@ var Gt = bt(
|
|
|
218
218
|
), H = w(
|
|
219
219
|
a.onMouseDownCapture,
|
|
220
220
|
b
|
|
221
|
-
),
|
|
222
|
-
if (
|
|
221
|
+
), J = w(a.onClickCapture, b), P = a.onMouseDown, X = F((s) => {
|
|
222
|
+
if (P == null || P(s), s.defaultPrevented || !n) return;
|
|
223
223
|
const u = s.currentTarget;
|
|
224
|
-
if (!N || vt(s) || !yt(u) && !
|
|
224
|
+
if (!N || vt(s) || !yt(u) && !W(u)) return;
|
|
225
225
|
let c = !1;
|
|
226
226
|
const y = () => {
|
|
227
227
|
c = !0;
|
|
228
228
|
}, nt = { capture: !0, once: !0 };
|
|
229
229
|
u.addEventListener("focusin", y, nt);
|
|
230
|
-
const L =
|
|
230
|
+
const L = Pt(u.parentElement);
|
|
231
231
|
G(L, !0), T(u, "mouseup", () => {
|
|
232
232
|
u.removeEventListener("focusin", y, !0), G(L, !1), !c && St(u);
|
|
233
233
|
});
|
|
234
|
-
}),
|
|
234
|
+
}), V = (s, u) => {
|
|
235
235
|
if (u && (s.currentTarget = u), !n) return;
|
|
236
236
|
const c = s.currentTarget;
|
|
237
237
|
c && R(c) && (f == null || f(s), !s.defaultPrevented && (c.dataset.focusVisible = "true", v(!0)));
|
|
238
|
-
}, S = a.onKeyDownCapture,
|
|
238
|
+
}, S = a.onKeyDownCapture, Z = F((s) => {
|
|
239
239
|
if (S == null || S(s), s.defaultPrevented || !n || p || s.metaKey || s.altKey || s.ctrlKey || !O(s)) return;
|
|
240
240
|
const u = s.currentTarget;
|
|
241
|
-
T(u, "focusout", () =>
|
|
242
|
-
}), k = a.onFocusCapture,
|
|
241
|
+
T(u, "focusout", () => V(s, u));
|
|
242
|
+
}), k = a.onFocusCapture, z = F((s) => {
|
|
243
243
|
if (k == null || k(s), s.defaultPrevented || !n) return;
|
|
244
244
|
if (!O(s)) {
|
|
245
245
|
v(!1);
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
const u = s.currentTarget, c = () =>
|
|
248
|
+
const u = s.currentTarget, c = () => V(s, u);
|
|
249
249
|
D || _t(s.target) ? T(s.target, "focusout", c) : v(!1);
|
|
250
250
|
}), K = a.onBlur, Q = F((s) => {
|
|
251
251
|
K == null || K(s), n && Ft(s) && (s.currentTarget.removeAttribute("data-focus-visible"), v(!1));
|
|
@@ -272,11 +272,11 @@ var Gt = bt(
|
|
|
272
272
|
// TODO: Test Focusable contentEditable.
|
|
273
273
|
contentEditable: b ? void 0 : a.contentEditable,
|
|
274
274
|
onKeyPressCapture: $,
|
|
275
|
-
onClickCapture:
|
|
275
|
+
onClickCapture: J,
|
|
276
276
|
onMouseDownCapture: H,
|
|
277
|
-
onMouseDown:
|
|
278
|
-
onKeyDownCapture:
|
|
279
|
-
onFocusCapture:
|
|
277
|
+
onMouseDown: X,
|
|
278
|
+
onKeyDownCapture: Z,
|
|
279
|
+
onFocusCapture: z,
|
|
280
280
|
onBlur: Q
|
|
281
281
|
}), At(a);
|
|
282
282
|
}
|
|
@@ -286,19 +286,19 @@ var Gt = bt(
|
|
|
286
286
|
});
|
|
287
287
|
export {
|
|
288
288
|
wt as F,
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
Vt as a,
|
|
290
|
+
Pt as b,
|
|
291
291
|
$t as c,
|
|
292
292
|
Ht as d,
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
Jt as e,
|
|
294
|
+
Zt as f,
|
|
295
295
|
I as g,
|
|
296
296
|
R as h,
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
zt as i,
|
|
298
|
+
Ut as j,
|
|
299
299
|
m as k,
|
|
300
300
|
St as l,
|
|
301
301
|
Qt as m,
|
|
302
|
-
|
|
302
|
+
Xt as r,
|
|
303
303
|
Gt as u
|
|
304
304
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d } from "./P7GR5CS5-
|
|
2
|
-
import { c as p,
|
|
3
|
-
import { useRef as
|
|
1
|
+
import { d } from "./P7GR5CS5-3RsPGPTy.js";
|
|
2
|
+
import { c as p, G as I, _, q as v, m as C, n as g, o as R, r as h, f as x, a as b } from "./LMDWO4NN-CpSMaD5G.js";
|
|
3
|
+
import { useRef as E, useEffect as P } from "react";
|
|
4
4
|
var V = "div", j = p(
|
|
5
5
|
function(o) {
|
|
6
6
|
var r = o, {
|
|
@@ -17,7 +17,7 @@ var V = "div", j = p(
|
|
|
17
17
|
]);
|
|
18
18
|
const c = d();
|
|
19
19
|
e = e || c;
|
|
20
|
-
const s = v(t.id), m =
|
|
20
|
+
const s = v(t.id), m = E(u);
|
|
21
21
|
return P(() => {
|
|
22
22
|
const i = m.current;
|
|
23
23
|
if (!s || !i || !n) return;
|
|
@@ -29,7 +29,7 @@ var V = "div", j = p(
|
|
|
29
29
|
}
|
|
30
30
|
), y = x(function(o) {
|
|
31
31
|
const r = j(o);
|
|
32
|
-
return
|
|
32
|
+
return b(V, r);
|
|
33
33
|
});
|
|
34
34
|
export {
|
|
35
35
|
y as C,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as C, C as x } from "./P7GR5CS5-
|
|
3
|
-
import {
|
|
1
|
+
import { a as t, P as r } from "./MTZPJQMC-D2i4-LA_.js";
|
|
2
|
+
import { e as C, C as x } from "./P7GR5CS5-3RsPGPTy.js";
|
|
3
|
+
import { L as a } from "./LMDWO4NN-CpSMaD5G.js";
|
|
4
4
|
import { createContext as e } from "react";
|
|
5
5
|
var i = e(
|
|
6
6
|
void 0
|
|
@@ -11,12 +11,12 @@ var i = e(
|
|
|
11
11
|
void 0
|
|
12
12
|
), S = e(!1);
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
u as C,
|
|
15
15
|
b as a,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
S as b,
|
|
17
|
+
i as c,
|
|
18
|
+
n as d,
|
|
19
|
+
P as e,
|
|
20
20
|
c as f,
|
|
21
21
|
p as u
|
|
22
22
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { d as S } from "./5VQZOHHZ-
|
|
2
|
-
import { a as k } from "./P7GR5CS5-
|
|
3
|
-
import { c as E, _ as K, i as v, e as N, D as
|
|
4
|
-
import { useRef as
|
|
5
|
-
var
|
|
1
|
+
import { d as S } from "./5VQZOHHZ-DLX-ulBK.js";
|
|
2
|
+
import { a as k } from "./P7GR5CS5-3RsPGPTy.js";
|
|
3
|
+
import { c as E, _ as K, i as v, e as N, D as P, M as L, m as O, o as R, r as V, k as M, h as W, N as $, f as j, a as q } from "./LMDWO4NN-CpSMaD5G.js";
|
|
4
|
+
import { useRef as z } from "react";
|
|
5
|
+
var A = "div", s = "";
|
|
6
6
|
function d() {
|
|
7
7
|
s = "";
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function B(e) {
|
|
10
10
|
const t = e.target;
|
|
11
|
-
return t &&
|
|
11
|
+
return t && M(t) ? !1 : e.key === " " && s.length ? !0 : e.key.length === 1 && !e.ctrlKey && !e.altKey && !e.metaKey && /^[\p{Letter}\p{Number}]$/u.test(e.key);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
13
|
+
function F(e, t) {
|
|
14
|
+
if (W(e)) return !0;
|
|
15
15
|
const r = e.target;
|
|
16
16
|
return r ? t.some((a) => a.element === r) : !1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function H(e) {
|
|
19
19
|
return e.filter((t) => !t.disabled);
|
|
20
20
|
}
|
|
21
21
|
function l(e, t) {
|
|
@@ -25,7 +25,7 @@ function l(e, t) {
|
|
|
25
25
|
// component that can be used with those as well, we also consider the value
|
|
26
26
|
// property as a fallback for the typeahead text content.
|
|
27
27
|
"value" in e && e.value;
|
|
28
|
-
return o ?
|
|
28
|
+
return o ? $(o).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
|
|
29
29
|
}
|
|
30
30
|
function U(e, t, r) {
|
|
31
31
|
if (!r) return e;
|
|
@@ -42,20 +42,20 @@ var G = E(function(t) {
|
|
|
42
42
|
o,
|
|
43
43
|
process.env.NODE_ENV !== "production" && "CompositeTypeahead must be a Composite component"
|
|
44
44
|
);
|
|
45
|
-
const c = f.onKeyDownCapture, m =
|
|
45
|
+
const c = f.onKeyDownCapture, m = z(0), b = N((i) => {
|
|
46
46
|
if (c == null || c(i), i.defaultPrevented || !a || !o) return;
|
|
47
|
-
if (!
|
|
47
|
+
if (!B(i))
|
|
48
48
|
return d();
|
|
49
49
|
const { renderedItems: p, items: h, activeId: w, id: _ } = o.getState();
|
|
50
|
-
let u =
|
|
50
|
+
let u = H(
|
|
51
51
|
h.length > p.length ? h : p
|
|
52
52
|
);
|
|
53
|
-
const D =
|
|
53
|
+
const D = P(i.currentTarget), I = `[data-offscreen-id="${_}"]`, y = D.querySelectorAll(I);
|
|
54
54
|
for (const n of y) {
|
|
55
55
|
const x = n.ariaDisabled === "true" || "disabled" in n && !!n.disabled;
|
|
56
56
|
u.push({ id: n.id, element: n, disabled: x });
|
|
57
57
|
}
|
|
58
|
-
if (y.length && (u =
|
|
58
|
+
if (y.length && (u = L(u, (n) => n.element)), !F(i, u)) return d();
|
|
59
59
|
i.preventDefault(), window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
60
60
|
s = "";
|
|
61
61
|
}, 500);
|
|
@@ -64,12 +64,12 @@ var G = E(function(t) {
|
|
|
64
64
|
const C = u.find((n) => l(n, s));
|
|
65
65
|
C ? o.move(C.id) : d();
|
|
66
66
|
});
|
|
67
|
-
return f =
|
|
67
|
+
return f = O(R({}, f), {
|
|
68
68
|
onKeyDownCapture: b
|
|
69
69
|
}), V(f);
|
|
70
|
-
}), Z =
|
|
70
|
+
}), Z = j(function(t) {
|
|
71
71
|
const r = G(t);
|
|
72
|
-
return
|
|
72
|
+
return q(A, r);
|
|
73
73
|
});
|
|
74
74
|
export {
|
|
75
75
|
Z as C,
|