@wrdagency/blockout 1.0.26 → 1.0.27
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-M2oB5mLz.js} +6 -6
- package/dist/{2RSXSRCN-dNqvVCu5.js → 2RSXSRCN-BtBMZ8Lx.js} +2 -2
- package/dist/{4CMBR7SL-Cf8t3EeF.js → 4CMBR7SL-C-0Aig1V.js} +25 -25
- package/dist/{5JTVDSTH-zDMMKAyC.js → 5JTVDSTH-BOGL3M3F.js} +4 -4
- package/dist/{5VQZOHHZ-BbettT93.js → 5VQZOHHZ-DADExXg7.js} +1 -1
- package/dist/{6VRAQV3D-pLV6BqmA.js → 6VRAQV3D-pTuMqsWW.js} +6 -6
- package/dist/{A3WPL2ZJ-DEsxy0M-.js → A3WPL2ZJ-BiXYGxnE.js} +2 -2
- package/dist/{BM6PGYQY-g6WySwtg.js → BM6PGYQY-DL-j4NGc.js} +4 -4
- package/dist/{DG5U6ZEL-9kCi_mGg.js → DG5U6ZEL-Bn6QlO7C.js} +3 -3
- package/dist/{EM5CXX6A-BAj-o9Ka.js → EM5CXX6A-B4C-NFJy.js} +2 -2
- package/dist/{F5MUBM3I-AbDoeFd8.js → F5MUBM3I-D6cacg-c.js} +15 -15
- package/dist/{G7GW6PWC-DeYlSr7f.js → G7GW6PWC-C6qSYISF.js} +56 -56
- package/dist/{IWEFDH56-DLJvQd6v.js → IWEFDH56-Da7lGcXC.js} +3 -3
- package/dist/{J2LQO3EC-Cevd6Bvq.js → J2LQO3EC-XUQS0UAH.js} +2 -2
- package/dist/{KFH4SEIX-JLk95eQA.js → KFH4SEIX-C-0wHvda.js} +13 -13
- package/dist/{LMDWO4NN-BfJb6my4.js → LMDWO4NN-ZnclRjpA.js} +10 -10
- package/dist/{MAXQOH4L-DB7jDisS.js → MAXQOH4L-lpuvS1NR.js} +40 -40
- package/dist/{MR26YJYP-CDaPeerB.js → MR26YJYP-CWddku_H.js} +43 -43
- package/dist/{MTZPJQMC-CraWj4on.js → MTZPJQMC-CNgogsHX.js} +4 -4
- package/dist/{O2PQ2652-BCwdW7qA.js → O2PQ2652-DkPiHeUQ.js} +3 -3
- package/dist/{P7GR5CS5-DbUZzAnv.js → P7GR5CS5-bOyAbBNR.js} +1 -1
- package/dist/{PFRGBC2K-DmHoUTiZ.js → PFRGBC2K-BS9YO5-Q.js} +22 -22
- package/dist/{RS7LB2H4-D1_VRecC.js → RS7LB2H4-BpSl1D2T.js} +1 -1
- package/dist/{RZ4GPYOB-rG3RP8Xi.js → RZ4GPYOB-D4dwmRZg.js} +2 -2
- package/dist/{S43UC3DV-bOoyE-xW.js → S43UC3DV-BVbmEy3J.js} +3 -3
- package/dist/{T7VMP3TM-DZitNAMz.js → T7VMP3TM-BnzhAoaO.js} +11 -11
- package/dist/{TIW3GMFC-DPiX149D.js → TIW3GMFC-C4Bh_hzw.js} +16 -16
- package/dist/{TP7N7UIH-D_nR5wDv.js → TP7N7UIH-Bs0NX7lb.js} +2 -2
- package/dist/{UQQRIHDV-ULrGYPSq.js → UQQRIHDV-C_0T8mGy.js} +12 -12
- package/dist/{UYGDZTLQ-CTQQ8oFQ.js → UYGDZTLQ-BDhCZlZ2.js} +2 -2
- package/dist/{VIIRIBF3-C4pOScX8.js → VIIRIBF3-CQdc2eWO.js} +3 -3
- package/dist/{WMYDSCNQ-qLZnyPON.js → WMYDSCNQ-J1-TanSP.js} +10 -10
- package/dist/{WYCIER3C-BJwD0YDE.js → WYCIER3C-CABEZy1i.js} +2 -2
- package/dist/{YORGHBM4-6CReFG7i.js → YORGHBM4-B1RRY_xR.js} +1 -1
- package/dist/{YV4JVR4I-D8_aZ62q.js → YV4JVR4I-BuKFdNa0.js} +28 -28
- 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/style10.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-Q7OatWHm.js} +3 -3
- package/dist/{combobox-popover-D5bLZY4d.js → combobox-popover-CDfaOt6J.js} +5 -5
- 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 +6 -175
- package/dist/components/command-palette/{index.d.ts → static.d.ts} +3 -5
- package/dist/components/command-palette/static.js +157 -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 +4 -4
- package/dist/components/controls/tag-control/ariakit-experimental.js +77 -77
- package/dist/components/controls/tag-control/index.js +4 -4
- 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.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/pane.js +1 -1
- package/dist/components/shell/sidebar-item.js +1 -1
- 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-VHhinf1k.js} +2 -2
- package/dist/{disclosure-provider-DIT2ijtk.js → disclosure-provider-BUQRx-hY.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.js +1 -1
- package/dist/{item-CGLYiEST.js → item-PTynqLvp.js} +2 -2
- package/dist/{menu-button-C-h3k7Gh.js → menu-button-RmWWFvwE.js} +33 -33
- package/dist/{menu-separator-CuuhJPnR.js → menu-separator-DgYHkDAA.js} +3 -3
- package/dist/{picker-BUCg1BqW.js → picker-DioIiYC0.js} +4 -4
- package/dist/{popover-provider-BoZ9PI_r.js → popover-provider-HlPXIcud.js} +4 -4
- package/dist/primitives/link/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/scroll-area/index.js +1 -1
- package/dist/primitives/tooltip/index.js +1 -1
- package/dist/{select-popover-DmN0T8PP.js → select-popover-P8y2n3bQ.js} +35 -35
- package/dist/{select-value-DnWKxDD-.js → select-value-3BLrBdZV.js} +2 -2
- package/dist/{tab-BXGTM7Se.js → tab-CKUPUgQ2.js} +4 -4
- package/dist/{tab-list-BPSxHllS.js → tab-list-CzsRzSiN.js} +3 -3
- package/dist/{tab-panel-fbUcLE4f.js → tab-panel-YGzJnU1g.js} +7 -7
- package/dist/{tab-provider-x586a8l7.js → tab-provider-CV8qTybg.js} +21 -21
- package/dist/{tag-remove-BdHvB_5c.js → tag-remove-DmlHu_9b.js} +21 -21
- package/dist/{toolbar-hQ58P-Nk.js → toolbar-BlVhTG5v.js} +11 -11
- package/dist/{toolbar-separator-CN00-jyc.js → toolbar-separator-liolx0p8.js} +3 -3
- package/dist/{tooltip-arrow-BRJ4m2ZL.js → tooltip-arrow-CjZ1x0xv.js} +14 -14
- package/package.json +1 -1
- package/dist/assets/index22.css +0 -1
|
@@ -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-BpSl1D2T.js";
|
|
2
|
+
import { a as T } from "./YV4JVR4I-BuKFdNa0.js";
|
|
3
|
+
import { c as B, _ as R, i as G, q as J, b as p, l as K, m as x, o as E, n as Q, r as X, f as V, a as Y } from "./LMDWO4NN-ZnclRjpA.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";
|
|
@@ -25,13 +25,13 @@ function rt(r, e, n) {
|
|
|
25
25
|
return !n && e !== !1 && (!r || !!e);
|
|
26
26
|
}
|
|
27
27
|
var at = B(function(e) {
|
|
28
|
-
var n = e, { store: t, alwaysVisible: i } = n, o =
|
|
28
|
+
var n = e, { store: t, alwaysVisible: i } = n, o = R(n, ["store", "alwaysVisible"]);
|
|
29
29
|
const v = A();
|
|
30
|
-
t = t || v,
|
|
30
|
+
t = t || v, G(
|
|
31
31
|
t,
|
|
32
32
|
process.env.NODE_ENV !== "production" && "DisclosureContent must receive a `store` prop or be wrapped in a DisclosureProvider component."
|
|
33
33
|
);
|
|
34
|
-
const d = Z(null), c =
|
|
34
|
+
const d = Z(null), c = J(o.id), [s, _] = $(null), u = t.useState("open"), D = t.useState("mounted"), l = t.useState("animated"), m = t.useState("contentElement"), y = T(t.disclosure, "contentElement");
|
|
35
35
|
p(() => {
|
|
36
36
|
d.current && (t == null || t.setContentElement(d.current));
|
|
37
37
|
}, [t]), p(() => {
|
|
@@ -82,7 +82,7 @@ var at = B(function(e) {
|
|
|
82
82
|
}
|
|
83
83
|
const L = 1e3 / 60, U = Math.max(b - L, 0);
|
|
84
84
|
return h(U, f);
|
|
85
|
-
}, [t, l, m, y, u, s]), o =
|
|
85
|
+
}, [t, l, m, y, u, s]), o = K(
|
|
86
86
|
o,
|
|
87
87
|
(a) => /* @__PURE__ */ g(z, { value: t, children: a }),
|
|
88
88
|
[t]
|
|
@@ -95,16 +95,16 @@ var at = B(function(e) {
|
|
|
95
95
|
"data-leave": s === "leave" || void 0,
|
|
96
96
|
hidden: S
|
|
97
97
|
}, o), {
|
|
98
|
-
ref:
|
|
98
|
+
ref: Q(c ? t.setContentElement : null, d, o.ref),
|
|
99
99
|
style: w
|
|
100
|
-
}),
|
|
101
|
-
}), it =
|
|
100
|
+
}), X(o);
|
|
101
|
+
}), it = V(function(e) {
|
|
102
102
|
const n = at(e);
|
|
103
|
-
return
|
|
104
|
-
}), pt =
|
|
103
|
+
return Y(nt, n);
|
|
104
|
+
}), pt = V(function(e) {
|
|
105
105
|
var n = e, {
|
|
106
106
|
unmountOnHide: t
|
|
107
|
-
} = n, i =
|
|
107
|
+
} = n, i = R(n, [
|
|
108
108
|
"unmountOnHide"
|
|
109
109
|
]);
|
|
110
110
|
const o = A(), v = i.store || o;
|
|
@@ -568,20 +568,20 @@ export {
|
|
|
568
568
|
ce as H,
|
|
569
569
|
ue as I,
|
|
570
570
|
Se as J,
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
571
|
+
zt as K,
|
|
572
|
+
Mt as L,
|
|
573
|
+
be as M,
|
|
574
|
+
R as N,
|
|
575
|
+
S as O,
|
|
576
576
|
ne as P,
|
|
577
577
|
ee as Q,
|
|
578
578
|
Yt as R,
|
|
579
579
|
vt as S,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
580
|
+
pe as T,
|
|
581
|
+
$t as U,
|
|
582
|
+
rt as V,
|
|
583
|
+
U as W,
|
|
584
|
+
me as X,
|
|
585
585
|
Pt as Y,
|
|
586
586
|
Ut as Z,
|
|
587
587
|
Z as _,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { u as Je } from "./5JTVDSTH-
|
|
2
|
-
import { a as Qe } from "./WMYDSCNQ-
|
|
3
|
-
import { u as
|
|
4
|
-
import { J as ot, Y as nt,
|
|
5
|
-
import { h as le } from "./PFRGBC2K-
|
|
6
|
-
import { m as ht, p as Pt, t as Ot, c as yt, s as
|
|
7
|
-
import { createContext as ke, useRef as z, useState as Le, useEffect as
|
|
8
|
-
import { e as _t, C as Tt } from "./P7GR5CS5-
|
|
9
|
-
import { c as Kt, a as Dt } from "./O2PQ2652-
|
|
10
|
-
import { c as Rt, d as Mt, b as Bt } from "./4CMBR7SL-
|
|
1
|
+
import { u as Je } from "./5JTVDSTH-BOGL3M3F.js";
|
|
2
|
+
import { a as Qe } from "./WMYDSCNQ-J1-TanSP.js";
|
|
3
|
+
import { u as Xe, C as Ye, a as Oe, c as Ge, d as Ze, e as ye, b as et, f as tt } from "./S43UC3DV-BVbmEy3J.js";
|
|
4
|
+
import { J as ot, Y as nt, U as k, V as te, W, a2 as rt, x as st, a7 as ut, m as N, o as y, X as Ie, f as ae, c as ie, a as ce, _ as de, i as fe, a8 as lt, a9 as at, y as Ve, aa as se, ab as it, e as H, B as ct, b as ue, j as L, H as dt, q as Ee, n as we, S as ft, C as mt, a1 as vt, L as pt, s as bt, P as Ct, Q as St, k as gt, l as Ae, ac as xt, r as Vt } from "./LMDWO4NN-ZnclRjpA.js";
|
|
5
|
+
import { h as le } from "./PFRGBC2K-BS9YO5-Q.js";
|
|
6
|
+
import { m as ht, p as Pt, t as Ot, c as yt, s as Y, d as $, g as It, b as Et, f as oe, u as wt } from "./YV4JVR4I-BuKFdNa0.js";
|
|
7
|
+
import { createContext as ke, useRef as z, useState as Le, useEffect as G, useMemo as At, useCallback as kt, useContext as Lt } from "react";
|
|
8
|
+
import { e as _t, C as Tt } from "./P7GR5CS5-bOyAbBNR.js";
|
|
9
|
+
import { c as Kt, a as Dt } from "./O2PQ2652-DkPiHeUQ.js";
|
|
10
|
+
import { c as Rt, d as Mt, b as Bt } from "./4CMBR7SL-C-0Aig1V.js";
|
|
11
11
|
import { jsx as Z } from "react/jsx-runtime";
|
|
12
|
-
import { u as Ft } from "./UQQRIHDV-
|
|
13
|
-
import { u as Ht } from "./6VRAQV3D-
|
|
14
|
-
import { i as Nt } from "./KFH4SEIX-
|
|
12
|
+
import { u as Ft } from "./UQQRIHDV-C_0T8mGy.js";
|
|
13
|
+
import { u as Ht } from "./6VRAQV3D-pTuMqsWW.js";
|
|
14
|
+
import { i as Nt } from "./KFH4SEIX-C-0wHvda.js";
|
|
15
15
|
var xo = ke(null), Vo = ke(
|
|
16
16
|
null
|
|
17
17
|
), ne = ot(
|
|
@@ -82,12 +82,12 @@ function qt(o = {}) {
|
|
|
82
82
|
),
|
|
83
83
|
activeValue: u == null ? void 0 : u.activeValue
|
|
84
84
|
}), l = yt(_, w, I, c);
|
|
85
|
-
return jt &&
|
|
85
|
+
return jt && Y(
|
|
86
86
|
l,
|
|
87
87
|
() => $(l, ["virtualFocus"], () => {
|
|
88
88
|
l.setState("virtualFocus", !1);
|
|
89
89
|
})
|
|
90
|
-
),
|
|
90
|
+
), Y(l, () => {
|
|
91
91
|
if (r)
|
|
92
92
|
return rt(
|
|
93
93
|
$(l, ["selectedValue"], (i) => {
|
|
@@ -97,22 +97,22 @@ function qt(o = {}) {
|
|
|
97
97
|
l.setState("selectedValue", i.values);
|
|
98
98
|
})
|
|
99
99
|
);
|
|
100
|
-
}),
|
|
100
|
+
}), Y(
|
|
101
101
|
l,
|
|
102
102
|
() => $(l, ["resetValueOnHide", "mounted"], (i) => {
|
|
103
103
|
i.resetValueOnHide && (i.mounted || l.setState("value", K));
|
|
104
104
|
})
|
|
105
|
-
),
|
|
105
|
+
), Y(
|
|
106
106
|
l,
|
|
107
107
|
() => $(l, ["open"], (i) => {
|
|
108
108
|
i.open || (l.setState("activeId", T), l.setState("moves", 0));
|
|
109
109
|
})
|
|
110
|
-
),
|
|
110
|
+
), Y(
|
|
111
111
|
l,
|
|
112
112
|
() => $(l, ["moves", "activeId"], (i, A) => {
|
|
113
113
|
i.moves === A.moves && l.setState("activeValue", void 0);
|
|
114
114
|
})
|
|
115
|
-
),
|
|
115
|
+
), Y(
|
|
116
116
|
l,
|
|
117
117
|
() => It(l, ["moves", "renderedItems"], (i, A) => {
|
|
118
118
|
if (i.moves === A.moves) return;
|
|
@@ -159,17 +159,17 @@ function Pe(o, n) {
|
|
|
159
159
|
function Qt(o) {
|
|
160
160
|
return o.type === "input";
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Xt(o) {
|
|
163
163
|
return o === "inline" || o === "list" || o === "both" || o === "none";
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Yt(o) {
|
|
166
166
|
const n = o.find((r) => {
|
|
167
167
|
var e;
|
|
168
168
|
return r.disabled ? !1 : ((e = r.element) == null ? void 0 : e.getAttribute("role")) !== "tab";
|
|
169
169
|
});
|
|
170
170
|
return n == null ? void 0 : n.id;
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var Gt = ie(
|
|
173
173
|
function(n) {
|
|
174
174
|
var r = n, {
|
|
175
175
|
store: e,
|
|
@@ -204,19 +204,19 @@ var Xt = ie(
|
|
|
204
204
|
"moveOnKeyPress",
|
|
205
205
|
"autoComplete"
|
|
206
206
|
]);
|
|
207
|
-
const J =
|
|
207
|
+
const J = Xe();
|
|
208
208
|
e = e || J, fe(
|
|
209
209
|
e,
|
|
210
210
|
process.env.NODE_ENV !== "production" && "Combobox must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
211
211
|
);
|
|
212
212
|
const D = z(null), [Q, h] = lt(), C = z(!1), M = z(!1), P = e.useState(
|
|
213
213
|
(t) => t.virtualFocus && d
|
|
214
|
-
), x = V === "inline" || V === "both", [U,
|
|
214
|
+
), x = V === "inline" || V === "both", [U, X] = Le(x);
|
|
215
215
|
at(() => {
|
|
216
|
-
x &&
|
|
216
|
+
x && X(!0);
|
|
217
217
|
}, [x]);
|
|
218
218
|
const s = e.useState("value"), b = z();
|
|
219
|
-
|
|
219
|
+
G(() => $(e, ["selectedValue", "activeId"], (t, a) => {
|
|
220
220
|
b.current = a.selectedValue;
|
|
221
221
|
}), []);
|
|
222
222
|
const S = e.useState((t) => {
|
|
@@ -238,14 +238,14 @@ var Xt = ie(
|
|
|
238
238
|
}
|
|
239
239
|
return S || s;
|
|
240
240
|
}, [x, U, j, S, P, s]);
|
|
241
|
-
|
|
241
|
+
G(() => {
|
|
242
242
|
const t = D.current;
|
|
243
243
|
if (!t) return;
|
|
244
|
-
const a = () =>
|
|
244
|
+
const a = () => X(!0);
|
|
245
245
|
return t.addEventListener("combobox-item-move", a), () => {
|
|
246
246
|
t.removeEventListener("combobox-item-move", a);
|
|
247
247
|
};
|
|
248
|
-
}, []),
|
|
248
|
+
}, []), G(() => {
|
|
249
249
|
if (!x || !U || !S || !he(
|
|
250
250
|
j,
|
|
251
251
|
S,
|
|
@@ -272,7 +272,7 @@ var Xt = ie(
|
|
|
272
272
|
s
|
|
273
273
|
]);
|
|
274
274
|
const _e = z(null), me = H(u), ve = z(null);
|
|
275
|
-
|
|
275
|
+
G(() => {
|
|
276
276
|
if (!B || !F) return;
|
|
277
277
|
const t = ct(F);
|
|
278
278
|
if (!t) return;
|
|
@@ -304,7 +304,7 @@ var Xt = ie(
|
|
|
304
304
|
return g.observe(E, { attributeFilter: ["data-placing"] }), () => g.disconnect();
|
|
305
305
|
}
|
|
306
306
|
if (P && v) {
|
|
307
|
-
const g = me(j), q = g !== void 0 ? g : (t =
|
|
307
|
+
const g = me(j), q = g !== void 0 ? g : (t = Yt(j)) != null ? t : e.first();
|
|
308
308
|
ve.current = q, e.move(q ?? null);
|
|
309
309
|
} else {
|
|
310
310
|
const g = (a = e.item(R || e.first())) == null ? void 0 : a.element;
|
|
@@ -320,7 +320,7 @@ var Xt = ie(
|
|
|
320
320
|
pe,
|
|
321
321
|
me,
|
|
322
322
|
j
|
|
323
|
-
]),
|
|
323
|
+
]), G(() => {
|
|
324
324
|
if (!x) return;
|
|
325
325
|
const t = D.current;
|
|
326
326
|
if (!t) return;
|
|
@@ -345,7 +345,7 @@ var Xt = ie(
|
|
|
345
345
|
const a = t.currentTarget, { value: v, selectionStart: p, selectionEnd: E } = a, R = t.nativeEvent;
|
|
346
346
|
if (C.current = !0, Qt(R) && (R.isComposing && (C.current = !1, M.current = !0), x)) {
|
|
347
347
|
const g = R.inputType === "insertText" || R.inputType === "insertCompositionText", q = p === v.length;
|
|
348
|
-
|
|
348
|
+
X(g && q);
|
|
349
349
|
}
|
|
350
350
|
if (Ke(t)) {
|
|
351
351
|
const g = v === e.getState().value;
|
|
@@ -366,7 +366,7 @@ var Xt = ie(
|
|
|
366
366
|
a || (t.key === "ArrowUp" || t.key === "ArrowDown") && Ne(t) && (t.preventDefault(), e.show());
|
|
367
367
|
}), xe = m.onBlur, je = H((t) => {
|
|
368
368
|
C.current = !1, xe == null || xe(t), t.defaultPrevented;
|
|
369
|
-
}), qe = Ee(m.id), We =
|
|
369
|
+
}), qe = Ee(m.id), We = Xt(V) ? V : void 0, $e = e.useState((t) => t.activeId === null);
|
|
370
370
|
return m = N(y({
|
|
371
371
|
id: qe,
|
|
372
372
|
role: "combobox",
|
|
@@ -389,16 +389,16 @@ var Xt = ie(
|
|
|
389
389
|
}, m), {
|
|
390
390
|
// Enable inline autocomplete when the user moves from the combobox input
|
|
391
391
|
// to an item.
|
|
392
|
-
moveOnKeyPress: (t) => mt(A, t) ? !1 : (x &&
|
|
392
|
+
moveOnKeyPress: (t) => mt(A, t) ? !1 : (x && X(!0), !0)
|
|
393
393
|
})), m = Qe(y({ store: e }, m)), y({ autoComplete: "off" }, m);
|
|
394
394
|
}
|
|
395
395
|
), yo = ae(function(n) {
|
|
396
|
-
const r =
|
|
396
|
+
const r = Gt(n);
|
|
397
397
|
return ce(Jt, r);
|
|
398
398
|
});
|
|
399
399
|
function Io(o = {}) {
|
|
400
400
|
const n = zt(o);
|
|
401
|
-
return /* @__PURE__ */ Z(
|
|
401
|
+
return /* @__PURE__ */ Z(Ye, { value: n, children: o.children });
|
|
402
402
|
}
|
|
403
403
|
var Zt = "div";
|
|
404
404
|
function eo(o, n) {
|
|
@@ -471,7 +471,7 @@ var oo = ie(
|
|
|
471
471
|
"aria-selected": V
|
|
472
472
|
}, f)), f = Ae(
|
|
473
473
|
f,
|
|
474
|
-
(s) => /* @__PURE__ */ Z(
|
|
474
|
+
(s) => /* @__PURE__ */ Z(Ge.Provider, { value: c, children: /* @__PURE__ */ Z(Ze.Provider, { value: V ?? !1, children: s }) }),
|
|
475
475
|
[c, V]
|
|
476
476
|
);
|
|
477
477
|
const U = Lt(ye);
|
|
@@ -482,7 +482,7 @@ var oo = ie(
|
|
|
482
482
|
onClick: M,
|
|
483
483
|
onKeyDown: x
|
|
484
484
|
});
|
|
485
|
-
const
|
|
485
|
+
const X = L(K);
|
|
486
486
|
return f = Ht(N(y({
|
|
487
487
|
store: e
|
|
488
488
|
}, f), {
|
|
@@ -491,7 +491,7 @@ var oo = ie(
|
|
|
491
491
|
// with the keyboard so the Combobox component can enable inline
|
|
492
492
|
// autocompletion.
|
|
493
493
|
moveOnKeyPress: (s) => {
|
|
494
|
-
if (!
|
|
494
|
+
if (!X(s)) return !1;
|
|
495
495
|
const b = new Event("combobox-item-move"), S = e == null ? void 0 : e.getState().baseElement;
|
|
496
496
|
return S == null || S.dispatchEvent(b), !0;
|
|
497
497
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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 Fe } from "./EM5CXX6A-
|
|
5
|
-
import { u as
|
|
6
|
-
import { a as _e, u as ye } from "./PFRGBC2K-
|
|
1
|
+
import { c as pe, a as he } from "./O2PQ2652-DkPiHeUQ.js";
|
|
2
|
+
import { c as Pe, f as q, b as He, d as we } from "./YV4JVR4I-BuKFdNa0.js";
|
|
3
|
+
import { V as B, U as _, W as D, c as oe, _ as X, i as re, a3 as Ee, M as ne, j as $, a2 as K, a0 as F, a4 as Se, b as ge, l as Oe, m as k, n as se, o as y, C as be, N as I, e as U, f as ue, a as ie, t as Me } from "./LMDWO4NN-ZnclRjpA.js";
|
|
4
|
+
import { u as Y, H as Fe } from "./EM5CXX6A-B4C-NFJy.js";
|
|
5
|
+
import { u as Te, c as Ae } from "./G7GW6PWC-C6qSYISF.js";
|
|
6
|
+
import { a as _e, u as ye } from "./PFRGBC2K-BS9YO5-Q.js";
|
|
7
7
|
import { useRef as R, useState as ce, useEffect as S, 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 = {}) {
|
|
@@ -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, {
|
|
@@ -77,7 +77,7 @@ function je(r) {
|
|
|
77
77
|
S(() => {
|
|
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
83
|
return S(() => we(t, ["anchorElement"], (d) => {
|
|
@@ -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), O = R(null), { portalRef: P, domReady: f } = Ee(u, o.portalRef), w = ne(), x = !!a,
|
|
114
|
+
const h = R(null), [p, H] = ce([]), v = R(0), O = R(null), { portalRef: P, domReady: f } = Ee(u, o.portalRef), w = ne(), x = !!a, T = $(a), g = !!c, C = $(
|
|
115
115
|
c
|
|
116
116
|
), j = e.useState("open"), b = e.useState("mounted");
|
|
117
117
|
S(() => {
|
|
118
118
|
if (!f || !b || !x && !g) return;
|
|
119
119
|
const l = h.current;
|
|
120
|
-
return l ?
|
|
120
|
+
return l ? K(
|
|
121
121
|
F("mousemove", (m) => {
|
|
122
122
|
if (!e || !w()) return;
|
|
123
|
-
const { anchorElement:
|
|
124
|
-
if (le(
|
|
125
|
-
O.current =
|
|
123
|
+
const { anchorElement: M, hideTimeout: N, timeout: me } = e.getState(), z = O.current, [V] = m.composedPath(), L = M;
|
|
124
|
+
if (le(V, l, L, p)) {
|
|
125
|
+
O.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 (O.current =
|
|
129
|
+
if (z) {
|
|
130
|
+
const J = W(m), ve = ee(l, z);
|
|
131
|
+
if (Z(J, ve)) {
|
|
132
|
+
if (O.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
|
}
|
|
@@ -150,21 +150,21 @@ var te = xe(null), Le = oe(
|
|
|
150
150
|
g,
|
|
151
151
|
p,
|
|
152
152
|
C,
|
|
153
|
-
|
|
153
|
+
T
|
|
154
154
|
]), S(() => {
|
|
155
155
|
if (!f || !b || !g) 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 M = O.current;
|
|
160
|
+
if (!M) return;
|
|
161
|
+
const N = ee(m, M);
|
|
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
169
|
F("mouseenter", l, !0),
|
|
170
170
|
F("mouseover", l, !0),
|
|
@@ -194,7 +194,7 @@ 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((M) => M !== l)
|
|
198
198
|
), E == null || E();
|
|
199
199
|
};
|
|
200
200
|
},
|
|
@@ -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,23 +240,23 @@ 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 =
|
|
243
|
+
const a = Me(u), c = R(0);
|
|
244
244
|
S(() => () => window.clearTimeout(c.current), []), S(() => F("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
257
|
}, g = w ?? x;
|
|
258
|
-
g === 0 ?
|
|
259
|
-
}), H = u.onClick, v =
|
|
258
|
+
g === 0 ? T() : c.current = window.setTimeout(T, g);
|
|
259
|
+
}), H = u.onClick, v = U((P) => {
|
|
260
260
|
H == null || H(P), e && (window.clearTimeout(c.current), c.current = 0);
|
|
261
261
|
}), O = ae(
|
|
262
262
|
(P) => {
|
|
@@ -272,16 +272,16 @@ var te = xe(null), Le = oe(
|
|
|
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 { J as t } from "./LMDWO4NN-
|
|
1
|
+
import { D as e, b as r } from "./RS7LB2H4-BpSl1D2T.js";
|
|
2
|
+
import { J as t } from "./LMDWO4NN-ZnclRjpA.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-DL-j4NGc.js";
|
|
2
|
+
import { m as E, o as f, t as P, c as g, b as h, f as _ } from "./YV4JVR4I-BuKFdNa0.js";
|
|
3
|
+
import { Y as b, V as u, W as m, U as p, X as w } from "./LMDWO4NN-ZnclRjpA.js";
|
|
4
4
|
function y(t = {}) {
|
|
5
5
|
var o = t, {
|
|
6
6
|
popover: r
|