@wrdagency/blockout 1.0.23 → 1.0.25
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-Ds7w7Ay7.js → 2NBKRL7C-Cunv252F.js} +10 -10
- package/dist/{2RSXSRCN-BBEFwUiL.js → 2RSXSRCN-dNqvVCu5.js} +6 -6
- package/dist/{4CMBR7SL-_MPrTek0.js → 4CMBR7SL-Cf8t3EeF.js} +24 -24
- package/dist/{5JTVDSTH-Ci6OX9MK.js → 5JTVDSTH-zDMMKAyC.js} +4 -4
- package/dist/{5VQZOHHZ-DpLj3Rqp.js → 5VQZOHHZ-BbettT93.js} +1 -1
- package/dist/{6VRAQV3D-Cnyfi8tq.js → 6VRAQV3D-pLV6BqmA.js} +6 -6
- package/dist/{A3WPL2ZJ-1yF0wSQn.js → A3WPL2ZJ-DEsxy0M-.js} +2 -2
- package/dist/{BM6PGYQY-B6HfecNi.js → BM6PGYQY-g6WySwtg.js} +2 -2
- package/dist/{DG5U6ZEL-ETCdoLWP.js → DG5U6ZEL-9kCi_mGg.js} +3 -3
- package/dist/{EM5CXX6A-CW08TdIG.js → EM5CXX6A-BAj-o9Ka.js} +2 -2
- package/dist/{F5MUBM3I-CSfmQDAz.js → F5MUBM3I-AbDoeFd8.js} +17 -17
- package/dist/{G7GW6PWC-DtkamyQv.js → G7GW6PWC-DeYlSr7f.js} +56 -56
- package/dist/{IWEFDH56-UEiMfbRm.js → IWEFDH56-DLJvQd6v.js} +3 -3
- package/dist/{J2LQO3EC-TlCRyAh7.js → J2LQO3EC-Cevd6Bvq.js} +2 -2
- package/dist/{KFH4SEIX-D9qCWzyY.js → KFH4SEIX-JLk95eQA.js} +3 -3
- package/dist/{LMDWO4NN-BxsnVArz.js → LMDWO4NN-BfJb6my4.js} +29 -29
- package/dist/MAXQOH4L-DB7jDisS.js +564 -0
- package/dist/{MR26YJYP-BSJHEQsl.js → MR26YJYP-CDaPeerB.js} +33 -33
- package/dist/{MTZPJQMC-CNw1MVtu.js → MTZPJQMC-CraWj4on.js} +4 -4
- package/dist/{O2PQ2652-BxRvOru-.js → O2PQ2652-BCwdW7qA.js} +11 -11
- package/dist/{P7GR5CS5-CZKSJ9w8.js → P7GR5CS5-DbUZzAnv.js} +1 -1
- package/dist/{PFRGBC2K-6AvuBT5M.js → PFRGBC2K-DmHoUTiZ.js} +60 -60
- package/dist/{RS7LB2H4-DJkydTnE.js → RS7LB2H4-D1_VRecC.js} +6 -6
- package/dist/{RZ4GPYOB-DPUx6A2B.js → RZ4GPYOB-rG3RP8Xi.js} +5 -5
- package/dist/{S43UC3DV-D5IqpYPC.js → S43UC3DV-bOoyE-xW.js} +6 -6
- package/dist/{T7VMP3TM-DX7RU0Yc.js → T7VMP3TM-DZitNAMz.js} +17 -17
- package/dist/TIW3GMFC-DPiX149D.js +81 -0
- package/dist/{TP7N7UIH-CFp7Hh_A.js → TP7N7UIH-D_nR5wDv.js} +2 -2
- package/dist/{UQQRIHDV-D5fevAL1.js → UQQRIHDV-ULrGYPSq.js} +8 -8
- package/dist/{UYGDZTLQ-CEz9ajCa.js → UYGDZTLQ-CTQQ8oFQ.js} +2 -2
- package/dist/{VIIRIBF3-Co_vwgwZ.js → VIIRIBF3-C4pOScX8.js} +5 -5
- package/dist/{WMYDSCNQ-BIYNTVEx.js → WMYDSCNQ-qLZnyPON.js} +13 -13
- package/dist/{WYCIER3C-C_60hKUt.js → WYCIER3C-BJwD0YDE.js} +2 -2
- package/dist/YORGHBM4-6CReFG7i.js +54 -0
- package/dist/{YV4JVR4I-BLQoWp1E.js → YV4JVR4I-D8_aZ62q.js} +48 -48
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/style10.css +1 -1
- package/dist/assets/style23.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style26.css +1 -1
- package/dist/assets/style27.css +1 -1
- package/dist/assets/style28.css +1 -0
- package/dist/assets/style6.css +1 -1
- package/dist/assets/style8.css +1 -1
- package/dist/assets/style9.css +1 -1
- package/dist/assets/styles5.css +1 -1
- package/dist/combobox-group-BCdU5rML.js +27 -0
- package/dist/combobox-popover-D5bLZY4d.js +95 -0
- 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/index.d.ts +24 -0
- package/dist/components/command-palette/index.js +164 -0
- package/dist/components/command-palette/types.d.ts +10 -0
- package/dist/components/command-palette/types.js +1 -0
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/card-number-control/index.js +1 -1
- 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 +12 -13
- 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 +2 -2
- package/dist/components/controls/select-control/control.js +1 -1
- package/dist/components/controls/select-control/select.js +12 -11
- package/dist/components/controls/tag-control/ariakit-experimental.js +1081 -1162
- 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 +4 -4
- package/dist/components/data-view/data/layout.js +7 -4
- package/dist/components/data-view/data/options.js +142 -102
- package/dist/components/data-view/index.d.ts +3 -2
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +11 -11
- package/dist/components/data-view/layouts/grid/item.js +4 -4
- package/dist/components/data-view/layouts/kanban/group.js +11 -11
- package/dist/components/data-view/layouts/kanban/item.js +4 -4
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +11 -11
- package/dist/components/data-view/layouts/list/item.js +4 -4
- package/dist/components/data-view/layouts/table/empty.js +4 -4
- package/dist/components/data-view/layouts/table/group.js +28 -21
- package/dist/components/data-view/layouts/table/item.js +5 -5
- package/dist/components/data-view/layouts/table/root.js +4 -4
- package/dist/components/data-view/layouts/tile/empty.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/empty.js +6 -0
- package/dist/components/data-view/layouts/tile/group.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/group.js +58 -0
- package/dist/components/data-view/layouts/tile/index.d.ts +3 -0
- package/dist/components/data-view/layouts/tile/index.js +8 -0
- package/dist/components/data-view/layouts/tile/item.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/item.js +81 -0
- package/dist/components/data-view/layouts/tile/root.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/root.js +6 -0
- package/dist/components/data-view/parts/body/empty.js +1 -1
- package/dist/components/data-view/parts/body/index.js +6 -6
- package/dist/components/data-view/parts/controls/index.js +39 -39
- package/dist/components/data-view/parts/controls/search.js +4 -4
- package/dist/components/data-view/parts/filters/chip.js +1 -1
- package/dist/components/data-view/parts/filters/editor.js +3 -3
- package/dist/components/data-view/parts/filters/index.js +1 -1
- package/dist/components/data-view/parts/footer/actions.js +4 -4
- package/dist/components/data-view/parts/footer/index.js +4 -4
- package/dist/components/data-view/parts/footer/selection.js +4 -4
- package/dist/components/data-view/parts/view-control/index.js +4 -4
- package/dist/components/data-view/root.d.ts +5 -3
- package/dist/components/data-view/root.js +51 -47
- package/dist/components/data-view/slots/group/checkbox.js +5 -5
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/header.d.ts +3 -0
- package/dist/components/data-view/slots/group/header.js +12 -0
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +3 -2
- 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 +4 -4
- 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 +2 -2
- 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 +4 -4
- package/dist/components/data-view/slots/property/field/index.js +2 -2
- 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 +4 -4
- package/dist/components/data-view/slots/root/context.d.ts +1 -0
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/data-view/types/view.d.ts +1 -1
- package/dist/components/dialog/index.d.ts +14 -0
- package/dist/components/dialog/index.js +72 -0
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +7 -6
- package/dist/components/filesystem/index.js +1 -1
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +67 -63
- 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/pagination/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/shell/index.js +1 -1
- package/dist/components/shell/pane.js +1 -1
- package/dist/components/tabs/index.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/index.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 +2 -2
- package/dist/components/toolbar/root.js +1 -1
- package/dist/components/window/index.js +2 -2
- package/dist/{composite-provider-K8zU8z0x.js → composite-provider-DFOFHro7.js} +2 -2
- package/dist/disclosure-provider-DIT2ijtk.js +10 -0
- package/dist/{filter-rHYsh8Gq.js → filter-DzrtcAfG.js} +3 -3
- package/dist/{index-Cn5kB2Fd.js → index-B5z_GwnD.js} +5 -5
- package/dist/{index-CXFb4Xny.js → index-Bp_FFk15.js} +16 -14
- package/dist/{index-DRiUXF8g.js → index-C8OctMj0.js} +3 -3
- package/dist/index.js +118 -112
- package/dist/{item-BZJ3JrHw.js → item-CGLYiEST.js} +2 -2
- package/dist/{menu-button-DBjUzoaw.js → menu-button-C-h3k7Gh.js} +26 -26
- package/dist/{menu-separator-H9l1SpSV.js → menu-separator-CuuhJPnR.js} +3 -3
- package/dist/{picker-aBRTIOUU.js → picker-BUCg1BqW.js} +4 -4
- package/dist/{popover-provider-xofWxUiu.js → popover-provider-BoZ9PI_r.js} +4 -4
- package/dist/primitives/index.d.ts +1 -1
- package/dist/primitives/index.js +14 -12
- package/dist/primitives/link/index.js +1 -1
- 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/scroll-area/index.js +1 -1
- package/dist/primitives/tooltip/index.js +1 -1
- package/dist/primitives/typography/index.d.ts +1 -0
- package/dist/primitives/typography/index.js +9 -7
- package/dist/primitives/typography/keyboard.d.ts +8 -0
- package/dist/primitives/typography/keyboard.js +33 -0
- package/dist/{select-popover-BuB2Ioa9.js → select-popover-DmN0T8PP.js} +46 -46
- package/dist/{select-value-C1gT40_5.js → select-value-DnWKxDD-.js} +2 -2
- package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
- package/dist/{style-DzV7-wks.js → style-D1AX7G7x.js} +1 -1
- package/dist/{tab-BbgJF9GJ.js → tab-BXGTM7Se.js} +4 -4
- package/dist/{tab-list-BvZvev5m.js → tab-list-BPSxHllS.js} +3 -3
- package/dist/{tab-panel-QxtN3GO3.js → tab-panel-fbUcLE4f.js} +7 -7
- package/dist/{tab-provider-T_g-bJwY.js → tab-provider-x586a8l7.js} +17 -17
- package/dist/{tag-remove-DVXj7CeY.js → tag-remove-BdHvB_5c.js} +37 -37
- package/dist/{toolbar-Bl6JBFO2.js → toolbar-hQ58P-Nk.js} +5 -5
- package/dist/{toolbar-separator-CN-A8iMa.js → toolbar-separator-CN00-jyc.js} +3 -3
- package/dist/{tooltip-arrow-DSk_atex.js → tooltip-arrow-BRJ4m2ZL.js} +36 -36
- package/package.json +1 -1
- package/dist/combobox-popover-DFcT6u90.js +0 -650
- package/dist/disclosure-provider-CX3wr_3W.js +0 -61
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as _, a as H } from "./VIIRIBF3-
|
|
2
|
-
import { u as T } from "./UQQRIHDV-
|
|
3
|
-
import { u as y } from "./6VRAQV3D-
|
|
4
|
-
import { a as S } from "./YV4JVR4I-
|
|
5
|
-
import { s as k, f as P, c as w, a as A, _ as D, i as N, j as
|
|
6
|
-
import { a as M } from "./PFRGBC2K-
|
|
1
|
+
import { u as _, a as H } from "./VIIRIBF3-C4pOScX8.js";
|
|
2
|
+
import { u as T } from "./UQQRIHDV-ULrGYPSq.js";
|
|
3
|
+
import { u as y } from "./6VRAQV3D-pLV6BqmA.js";
|
|
4
|
+
import { a as S } from "./YV4JVR4I-D8_aZ62q.js";
|
|
5
|
+
import { s as k, f as P, c as w, a as A, _ as D, i as N, j as R, e as F, P as j, Q as B, R as K, m as g, o as p, D as V } from "./LMDWO4NN-BfJb6my4.js";
|
|
6
|
+
import { a as M } from "./PFRGBC2K-DmHoUTiZ.js";
|
|
7
7
|
var W = "div";
|
|
8
8
|
function q(a, o, u) {
|
|
9
9
|
var r;
|
|
@@ -37,16 +37,16 @@ var L = w(
|
|
|
37
37
|
r,
|
|
38
38
|
process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
|
|
39
39
|
);
|
|
40
|
-
const m = n.onClick, b =
|
|
40
|
+
const m = n.onClick, b = R(i), f = "hideAll" in r ? r.hideAll : void 0, d = !!f, h = F((e) => {
|
|
41
41
|
m == null || m(e), !(e.defaultPrevented || j(e) || B(e) || !f || e.currentTarget.getAttribute("aria-haspopup") === "menu") && b(e) && f();
|
|
42
|
-
}),
|
|
42
|
+
}), C = S(
|
|
43
43
|
r,
|
|
44
44
|
(e) => "contentElement" in e ? e.contentElement : null
|
|
45
|
-
), x = K(
|
|
45
|
+
), x = K(C, "menuitem");
|
|
46
46
|
return n = g(p({
|
|
47
47
|
role: x
|
|
48
48
|
}, n), {
|
|
49
|
-
onClick:
|
|
49
|
+
onClick: h
|
|
50
50
|
}), n = y(p({
|
|
51
51
|
store: r,
|
|
52
52
|
preventScrollOnKeyDown: c
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { c as O, _ as m, A as p, t as q,
|
|
1
|
+
import { u as B } from "./PFRGBC2K-DmHoUTiZ.js";
|
|
2
|
+
import { c as O, _ as m, A as p, t as q, F as x, e as N, h as H, k as Y, G as j, H as G, I as _, m as L, n as V, o as T, f as z, a as J } from "./LMDWO4NN-BfJb6my4.js";
|
|
3
3
|
import { useRef as w, useState as D, useEffect as Q } from "react";
|
|
4
4
|
var W = "button";
|
|
5
5
|
function M(a) {
|
|
@@ -28,12 +28,12 @@ var X = Symbol("command"), Z = O(
|
|
|
28
28
|
if (i) {
|
|
29
29
|
if (!S) {
|
|
30
30
|
e.preventDefault();
|
|
31
|
-
const b = e, { view: $ } = b,
|
|
31
|
+
const b = e, { view: $ } = b, h = m(b, ["view"]), C = () => _(s, h);
|
|
32
32
|
j() ? G(s, "keyup", C) : queueMicrotask(C);
|
|
33
33
|
}
|
|
34
34
|
} else n && (f.current = !0, S || (e.preventDefault(), k(!0)));
|
|
35
35
|
}
|
|
36
|
-
}), P = r.onKeyUp,
|
|
36
|
+
}), P = r.onKeyUp, I = N((e) => {
|
|
37
37
|
if (P == null || P(e), e.defaultPrevented || E || y || e.metaKey) return;
|
|
38
38
|
const s = u && e.key === " ";
|
|
39
39
|
if (f.current && s && (f.current = !1, !M(e))) {
|
|
@@ -48,8 +48,8 @@ var X = Symbol("command"), Z = O(
|
|
|
48
48
|
}, A), r), {
|
|
49
49
|
ref: V(c, r.ref),
|
|
50
50
|
onKeyDown: F,
|
|
51
|
-
onKeyUp:
|
|
52
|
-
}), r =
|
|
51
|
+
onKeyUp: I
|
|
52
|
+
}), r = B(r), r;
|
|
53
53
|
}
|
|
54
54
|
), ae = z(function(t) {
|
|
55
55
|
const o = Z(t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as p, c as k, s as M, i as ee, g as U,
|
|
2
|
-
import {
|
|
1
|
+
import { t as p, c as k, s as M, i as ee, g as U, f as _, b as Y, d as te } from "./YV4JVR4I-D8_aZ62q.js";
|
|
2
|
+
import { T as S, U as R, V as L, a2 as ne, N as re, D as ie, W as se, q as oe, o as ae } from "./LMDWO4NN-BfJb6my4.js";
|
|
3
3
|
import { r as $, f as le } from "./7PRQYBBV-91wrWGjk.js";
|
|
4
4
|
function de(e) {
|
|
5
5
|
var r;
|
|
@@ -15,7 +15,7 @@ function de(e) {
|
|
|
15
15
|
function ue(e) {
|
|
16
16
|
return e == null ? void 0 : e.__unstablePrivateStore;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function j(e = {}) {
|
|
19
19
|
var r;
|
|
20
20
|
p(e, e.store);
|
|
21
21
|
const t = (r = e.store) == null ? void 0 : r.getState(), o = S(
|
|
@@ -103,12 +103,12 @@ function Y(e = {}) {
|
|
|
103
103
|
__unstablePrivateStore: c
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function H(e, r, t) {
|
|
107
107
|
return se(r, [t.store]), _(e, t, "items", "setItems"), e;
|
|
108
108
|
}
|
|
109
109
|
function Ee(e = {}) {
|
|
110
|
-
const [r, t] =
|
|
111
|
-
return
|
|
110
|
+
const [r, t] = Y(j, e);
|
|
111
|
+
return H(r, t, e);
|
|
112
112
|
}
|
|
113
113
|
var ce = { id: null };
|
|
114
114
|
function h(e, r) {
|
|
@@ -128,7 +128,7 @@ function me(e, r, t = !1) {
|
|
|
128
128
|
...e.slice(0, o)
|
|
129
129
|
];
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function J(e) {
|
|
132
132
|
const r = [];
|
|
133
133
|
for (const t of e) {
|
|
134
134
|
const o = r.find((s) => {
|
|
@@ -165,7 +165,7 @@ function Ie(e, r, t) {
|
|
|
165
165
|
return e;
|
|
166
166
|
}
|
|
167
167
|
function Se(e) {
|
|
168
|
-
const r =
|
|
168
|
+
const r = J(e), t = K(r), o = [];
|
|
169
169
|
for (let s = 0; s < t; s += 1)
|
|
170
170
|
for (const l of r) {
|
|
171
171
|
const d = l[s];
|
|
@@ -182,7 +182,7 @@ function Se(e) {
|
|
|
182
182
|
}
|
|
183
183
|
function ge(e = {}) {
|
|
184
184
|
var r;
|
|
185
|
-
const t = (r = e.store) == null ? void 0 : r.getState(), o =
|
|
185
|
+
const t = (r = e.store) == null ? void 0 : r.getState(), o = j(e), s = S(
|
|
186
186
|
e.activeId,
|
|
187
187
|
t == null ? void 0 : t.activeId,
|
|
188
188
|
e.defaultActiveId
|
|
@@ -235,24 +235,24 @@ function ge(e = {}) {
|
|
|
235
235
|
includesBaseElement: m = i.includesBaseElement,
|
|
236
236
|
renderedItems: w = i.renderedItems,
|
|
237
237
|
rtl: b = i.rtl
|
|
238
|
-
} = x, y = n === "up" || n === "down",
|
|
238
|
+
} = x, y = n === "up" || n === "down", D = n === "next" || n === "down", Q = D ? b && !y : !b || y, X = g && !a;
|
|
239
239
|
let v = y ? le(
|
|
240
|
-
Ie(
|
|
240
|
+
Ie(J(w), u, X)
|
|
241
241
|
) : w;
|
|
242
242
|
if (v = Q ? $(v) : v, v = y ? Se(v) : v, u == null)
|
|
243
243
|
return (E = h(v)) == null ? void 0 : E.id;
|
|
244
244
|
const B = v.find((I) => I.id === u);
|
|
245
245
|
if (!B)
|
|
246
246
|
return (P = h(v)) == null ? void 0 : P.id;
|
|
247
|
-
const
|
|
247
|
+
const z = v.some((I) => I.rowId), Z = v.indexOf(B), N = v.slice(Z + 1), W = G(N, B.rowId);
|
|
248
248
|
if (a) {
|
|
249
|
-
const I = fe(W, u),
|
|
249
|
+
const I = fe(W, u), C = I.slice(a)[0] || // If we can't find an item, just return the last one.
|
|
250
250
|
I[I.length - 1];
|
|
251
|
-
return
|
|
251
|
+
return C == null ? void 0 : C.id;
|
|
252
252
|
}
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
const I = T && !
|
|
253
|
+
const V = F && (y ? F !== "horizontal" : F !== "vertical"), T = z && f && (y ? f !== "horizontal" : f !== "vertical"), A = D ? (!z || y) && V && m : y ? m : !1;
|
|
254
|
+
if (V) {
|
|
255
|
+
const I = T && !A ? v : G(v, B.rowId), C = me(I, u, A), q = h(C, u);
|
|
256
256
|
return q == null ? void 0 : q.id;
|
|
257
257
|
}
|
|
258
258
|
if (T) {
|
|
@@ -263,13 +263,13 @@ function ge(e = {}) {
|
|
|
263
263
|
// the row. So moving next from the last item will focus on the
|
|
264
264
|
// composite container. On grid composites, horizontal navigation never
|
|
265
265
|
// focuses on the composite container, only vertical.
|
|
266
|
-
|
|
266
|
+
A ? W : N,
|
|
267
267
|
u
|
|
268
268
|
);
|
|
269
|
-
return
|
|
269
|
+
return A ? (I == null ? void 0 : I.id) || null : I == null ? void 0 : I.id;
|
|
270
270
|
}
|
|
271
271
|
const O = h(W, u);
|
|
272
|
-
return !O &&
|
|
272
|
+
return !O && A ? null : O == null ? void 0 : O.id;
|
|
273
273
|
};
|
|
274
274
|
return R(L(L({}, o), d), {
|
|
275
275
|
setBaseElement: (n) => d.setState("baseElement", n),
|
|
@@ -296,19 +296,19 @@ function be(e) {
|
|
|
296
296
|
return ae({ id: r }, e);
|
|
297
297
|
}
|
|
298
298
|
function xe(e, r, t) {
|
|
299
|
-
return e =
|
|
299
|
+
return e = H(e, r, t), _(e, t, "activeId", "setActiveId"), _(e, t, "includesBaseElement"), _(e, t, "virtualFocus"), _(e, t, "orientation"), _(e, t, "rtl"), _(e, t, "focusLoop"), _(e, t, "focusWrap"), _(e, t, "focusShift"), e;
|
|
300
300
|
}
|
|
301
301
|
function ye(e = {}) {
|
|
302
302
|
e = be(e);
|
|
303
|
-
const [r, t] =
|
|
303
|
+
const [r, t] = Y(ge, e);
|
|
304
304
|
return xe(r, t, e);
|
|
305
305
|
}
|
|
306
306
|
export {
|
|
307
|
-
|
|
307
|
+
j as a,
|
|
308
308
|
xe as b,
|
|
309
309
|
ge as c,
|
|
310
310
|
be as d,
|
|
311
|
-
|
|
311
|
+
H as e,
|
|
312
312
|
Ee as f,
|
|
313
313
|
ye as u
|
|
314
314
|
};
|
|
@@ -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 { 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-
|
|
1
|
+
import { g as v, s as Z, i as K, f as $, a as ee } from "./5VQZOHHZ-BbettT93.js";
|
|
2
|
+
import { u as te, C as re } from "./P7GR5CS5-DbUZzAnv.js";
|
|
3
|
+
import { f as oe, h as ne, u as se } from "./PFRGBC2K-DmHoUTiZ.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-BfJb6my4.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { 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-
|
|
1
|
+
import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-BbettT93.js";
|
|
2
|
+
import { u as ue } from "./RZ4GPYOB-rG3RP8Xi.js";
|
|
3
|
+
import { a as le, b as fe, c as ce } from "./P7GR5CS5-DbUZzAnv.js";
|
|
4
|
+
import { u as de } from "./2RSXSRCN-dNqvVCu5.js";
|
|
5
|
+
import { u as me } from "./YV4JVR4I-D8_aZ62q.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-BfJb6my4.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as a, C } from "./P7GR5CS5-
|
|
3
|
-
import {
|
|
1
|
+
import { P as o, a as r } from "./MTZPJQMC-CraWj4on.js";
|
|
2
|
+
import { e as a, C } from "./P7GR5CS5-DbUZzAnv.js";
|
|
3
|
+
import { J as s } from "./LMDWO4NN-BfJb6my4.js";
|
|
4
4
|
import { createContext as t } from "react";
|
|
5
5
|
var e = s(
|
|
6
6
|
[r, C],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as T } from "./RS7LB2H4-
|
|
2
|
-
import { u as h } from "./2RSXSRCN-
|
|
3
|
-
import { c as v,
|
|
1
|
+
import { u as T } from "./RS7LB2H4-D1_VRecC.js";
|
|
2
|
+
import { u as h } from "./2RSXSRCN-dNqvVCu5.js";
|
|
3
|
+
import { c as v, X as j, A as f, m as p, n as g, o as l, f as D, a as E, _ as w, i as M, j as V, F as A, e as F } from "./LMDWO4NN-BfJb6my4.js";
|
|
4
4
|
import { useRef as C, useState as P, useEffect as B } from "react";
|
|
5
5
|
var _ = "button", b = v(
|
|
6
6
|
function(t) {
|
|
@@ -15,10 +15,10 @@ var _ = "button", b = v(
|
|
|
15
15
|
ref: g(s, t.ref)
|
|
16
16
|
}), t = h(t), t;
|
|
17
17
|
}
|
|
18
|
-
),
|
|
18
|
+
), J = D(function(t) {
|
|
19
19
|
const s = b(t);
|
|
20
|
-
return
|
|
21
|
-
}),
|
|
20
|
+
return E(_, s);
|
|
21
|
+
}), H = "button", I = Symbol("disclosure"), X = v(
|
|
22
22
|
function(t) {
|
|
23
23
|
var s = t, { store: e, toggleOnClick: a = !0 } = s, o = w(s, ["store", "toggleOnClick"]);
|
|
24
24
|
const N = T();
|
|
@@ -31,24 +31,24 @@ var _ = "button", b = v(
|
|
|
31
31
|
let r = n === i.current;
|
|
32
32
|
n != null && n.isConnected || (e == null || e.setDisclosureElement(i.current), r = !0), x(c && r);
|
|
33
33
|
}, [n, e, c]);
|
|
34
|
-
const d = o.onClick,
|
|
35
|
-
d == null || d(r), !r.defaultPrevented && (
|
|
34
|
+
const d = o.onClick, S = V(a), [y, O] = A(o, I, !0), R = F((r) => {
|
|
35
|
+
d == null || d(r), !r.defaultPrevented && (y || S(r) && (e == null || e.setDisclosureElement(r.currentTarget), e == null || e.toggle()));
|
|
36
36
|
}), m = e.useState("contentElement");
|
|
37
37
|
return o = p(l(l({
|
|
38
38
|
"aria-expanded": k,
|
|
39
39
|
"aria-controls": m == null ? void 0 : m.id
|
|
40
|
-
},
|
|
40
|
+
}, O), o), {
|
|
41
41
|
ref: g(i, o.ref),
|
|
42
|
-
onClick:
|
|
42
|
+
onClick: R
|
|
43
43
|
}), o = b(o), o;
|
|
44
44
|
}
|
|
45
|
-
),
|
|
46
|
-
const s =
|
|
47
|
-
return
|
|
45
|
+
), K = D(function(t) {
|
|
46
|
+
const s = X(t);
|
|
47
|
+
return E(H, s);
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
J as B,
|
|
51
|
+
K as D,
|
|
52
|
+
X as a,
|
|
53
|
+
b as u
|
|
54
54
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createContext as ze, useRef as q, useContext as Ye, useState as Q, useEffect as C, useCallback as $e, useMemo as Ot, isValidElement as Ft } from "react";
|
|
2
|
-
import { f as K, c as ue, a as ne, m as x, o as y, _ as Me, n as ct, b as N, aj as Qe,
|
|
3
|
-
import { c as He, d as et, r as Nt, e as Vt, F as Ht, i as Lt, g as It, j as kt, k as ye, u as Bt, l as qt } from "./PFRGBC2K-
|
|
2
|
+
import { f as K, c as ue, a as ne, m as x, o as y, _ as Me, n as ct, b as N, aj as Qe, D as F, l as ee, a1 as be, a0 as Xe, a2 as re, L as j, Z as Dt, e as Ce, a8 as At, ad as lt, ah as Tt, ak as Rt, ab as Ne, a3 as ft, q as $t, g as dt, A as Ct, j as Ve, H as Mt, x as _t, i as pt } from "./LMDWO4NN-BfJb6my4.js";
|
|
3
|
+
import { c as He, d as et, r as Nt, e as Vt, F as Ht, i as Lt, g as It, j as kt, k as ye, u as Bt, l as qt } from "./PFRGBC2K-DmHoUTiZ.js";
|
|
4
4
|
import { r as Be } from "./index-Cgx3BqdJ.js";
|
|
5
5
|
import { jsx as E, jsxs as Te, Fragment as Re } from "react/jsx-runtime";
|
|
6
|
-
import { a as te,
|
|
7
|
-
import { u as vt, i as Wt } from "./KFH4SEIX-
|
|
8
|
-
import { u as zt } from "./WYCIER3C-
|
|
9
|
-
import { a as Yt } from "./BM6PGYQY-
|
|
10
|
-
import {
|
|
11
|
-
import { b as mt,
|
|
6
|
+
import { a as te, d as jt } from "./YV4JVR4I-D8_aZ62q.js";
|
|
7
|
+
import { u as vt, i as Wt } from "./KFH4SEIX-JLk95eQA.js";
|
|
8
|
+
import { u as zt } from "./WYCIER3C-BJwD0YDE.js";
|
|
9
|
+
import { a as Yt } from "./BM6PGYQY-g6WySwtg.js";
|
|
10
|
+
import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-D1_VRecC.js";
|
|
11
|
+
import { b as mt, P as Gt } from "./MTZPJQMC-CraWj4on.js";
|
|
12
12
|
import { a as Zt, c as Jt, o as Qt, f as er, s as tr, b as rr, d as nr, l as or } from "./floating-ui.dom-2MezWvgs.js";
|
|
13
13
|
var tt = ze(null), sr = "span", gt = ue(
|
|
14
14
|
function(t) {
|
|
@@ -358,7 +358,7 @@ function yt(e, ...t) {
|
|
|
358
358
|
function pe(e = "", t = !1) {
|
|
359
359
|
return `__ariakit-dialog-${t ? "ancestor" : "outside"}${e ? `-${e}` : ""}`;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Pr(e, t = "") {
|
|
362
362
|
return re(
|
|
363
363
|
ie(e, pe(), !0),
|
|
364
364
|
ie(e, pe(t), !0)
|
|
@@ -386,7 +386,7 @@ function nt(e, t) {
|
|
|
386
386
|
e,
|
|
387
387
|
t,
|
|
388
388
|
(s) => {
|
|
389
|
-
yt(s, ...r) || n.unshift(
|
|
389
|
+
yt(s, ...r) || n.unshift(Pr(s, e));
|
|
390
390
|
},
|
|
391
391
|
(s, u) => {
|
|
392
392
|
u.hasAttribute("data-dialog") && u.id !== e || n.unshift(Et(s, e));
|
|
@@ -396,7 +396,7 @@ function nt(e, t) {
|
|
|
396
396
|
s();
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function wr(e) {
|
|
400
400
|
return e.tagName === "HTML" ? !0 : j(F(e).body, e);
|
|
401
401
|
}
|
|
402
402
|
function xr(e, t) {
|
|
@@ -433,7 +433,7 @@ function Ie({
|
|
|
433
433
|
return a.addEventListener("focusin", m, !0), () => a.removeEventListener("focusin", m, !0);
|
|
434
434
|
}, [e, u, o]), C(() => u ? Xe(t, (m) => {
|
|
435
435
|
const { contentElement: b, disclosureElement: D } = e.getState(), f = m.target;
|
|
436
|
-
!b || !f || !
|
|
436
|
+
!b || !f || !wr(f) || j(b, f) || xr(D, f) || f.hasAttribute("data-focus-trap") || Sr(m, b) || i.current && !Ze(f, b.id) || Lt(f) || s(m);
|
|
437
437
|
}, r) : void 0, [u, r]);
|
|
438
438
|
}
|
|
439
439
|
function ke(e, t) {
|
|
@@ -547,15 +547,15 @@ function Rr(e, ...t) {
|
|
|
547
547
|
const n = e.getAttribute("data-focus-trap");
|
|
548
548
|
return n == null ? !1 : t.length ? n === "" ? !1 : t.some((r) => n === r) : !0;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Pt() {
|
|
551
551
|
return "inert" in HTMLElement.prototype;
|
|
552
552
|
}
|
|
553
553
|
function $r(e) {
|
|
554
554
|
return Ue(e, "aria-hidden", "true");
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function wt(e, t) {
|
|
557
557
|
if (!("style" in e)) return Ne;
|
|
558
|
-
if (
|
|
558
|
+
if (Pt())
|
|
559
559
|
return ie(e, "inert", !0);
|
|
560
560
|
const r = It(e, !0).map((o) => {
|
|
561
561
|
if (t != null && t.some((u) => u && j(u, o))) return Ne;
|
|
@@ -580,7 +580,7 @@ function Cr(e, t) {
|
|
|
580
580
|
e,
|
|
581
581
|
t,
|
|
582
582
|
(s) => {
|
|
583
|
-
yt(s, ...r) || Rr(s, ...r) || n.unshift(
|
|
583
|
+
yt(s, ...r) || Rr(s, ...r) || n.unshift(wt(s, t));
|
|
584
584
|
},
|
|
585
585
|
(s) => {
|
|
586
586
|
s.hasAttribute("role") && (t.some((u) => u && j(u, s)) || n.unshift(Ue(s, "role", "none")));
|
|
@@ -729,30 +729,30 @@ var xt = ue(function(t) {
|
|
|
729
729
|
if (c) return;
|
|
730
730
|
const v = g.current;
|
|
731
731
|
if (!v) return;
|
|
732
|
-
const
|
|
733
|
-
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(
|
|
732
|
+
const w = new Event("close", { bubbles: !1, cancelable: !0 });
|
|
733
|
+
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(w), w.defaultPrevented && p.setOpen(!0);
|
|
734
734
|
}
|
|
735
735
|
}), { portalRef: U, domReady: S } = ft(a, l.portalRef), O = l.preserveTabOrder, G = te(
|
|
736
736
|
p,
|
|
737
737
|
(c) => O && !i && c.mounted
|
|
738
|
-
), T = $t(l.id),
|
|
739
|
-
Tr(k, T, V && !
|
|
740
|
-
const { wrapElement: ae, nestedDialogs:
|
|
738
|
+
), T = $t(l.id), P = te(p, "open"), R = te(p, "mounted"), k = te(p, "contentElement"), Pe = Wt(R, l.hidden, l.alwaysVisible);
|
|
739
|
+
Tr(k, T, V && !Pe), Or(p, D, S);
|
|
740
|
+
const { wrapElement: ae, nestedDialogs: we } = Fr(p);
|
|
741
741
|
l = ee(l, ae, [ae]), N(() => {
|
|
742
|
-
if (!
|
|
742
|
+
if (!P) return;
|
|
743
743
|
const c = g.current, v = dt(c, !0);
|
|
744
744
|
v && v.tagName !== "BODY" && (c && j(c, v) || p.setDisclosureElement(v));
|
|
745
|
-
}, [p,
|
|
745
|
+
}, [p, P]), st && C(() => {
|
|
746
746
|
if (!R) return;
|
|
747
747
|
const { disclosureElement: c } = p.getState();
|
|
748
748
|
if (!c || !Ct(c)) return;
|
|
749
749
|
const v = () => {
|
|
750
|
-
let
|
|
750
|
+
let w = !1;
|
|
751
751
|
const h = () => {
|
|
752
|
-
|
|
752
|
+
w = !0;
|
|
753
753
|
}, $ = { capture: !0, once: !0 };
|
|
754
754
|
c.addEventListener("focusin", h, $), Mt(c, "mouseup", () => {
|
|
755
|
-
c.removeEventListener("focusin", h, !0), !
|
|
755
|
+
c.removeEventListener("focusin", h, !0), !w && qt(c);
|
|
756
756
|
});
|
|
757
757
|
};
|
|
758
758
|
return c.addEventListener("mousedown", v), () => {
|
|
@@ -762,13 +762,13 @@ var xt = ue(function(t) {
|
|
|
762
762
|
if (!R || !S) return;
|
|
763
763
|
const c = g.current;
|
|
764
764
|
if (!c) return;
|
|
765
|
-
const v = lt(c),
|
|
765
|
+
const v = lt(c), w = v.visualViewport || v, h = () => {
|
|
766
766
|
var $, Y;
|
|
767
767
|
const he = (Y = ($ = v.visualViewport) == null ? void 0 : $.height) != null ? Y : v.innerHeight;
|
|
768
768
|
c.style.setProperty("--dialog-viewport-height", `${he}px`);
|
|
769
769
|
};
|
|
770
|
-
return h(),
|
|
771
|
-
|
|
770
|
+
return h(), w.addEventListener("resize", h), () => {
|
|
771
|
+
w.removeEventListener("resize", h);
|
|
772
772
|
};
|
|
773
773
|
}, [R, S]), C(() => {
|
|
774
774
|
if (!i || !R || !S) return;
|
|
@@ -776,12 +776,12 @@ var xt = ue(function(t) {
|
|
|
776
776
|
if (!(!c || c.querySelector("[data-dialog-dismiss]")))
|
|
777
777
|
return vr(c, p.hide);
|
|
778
778
|
}, [p, i, R, S]), N(() => {
|
|
779
|
-
if (!
|
|
779
|
+
if (!Pt() || P || !R || !S) return;
|
|
780
780
|
const c = g.current;
|
|
781
781
|
if (c)
|
|
782
|
-
return
|
|
783
|
-
}, [
|
|
784
|
-
const Z =
|
|
782
|
+
return wt(c);
|
|
783
|
+
}, [P, R, S]);
|
|
784
|
+
const Z = P && S;
|
|
785
785
|
N(() => {
|
|
786
786
|
if (!T || !Z) return;
|
|
787
787
|
const c = g.current;
|
|
@@ -790,10 +790,10 @@ var xt = ue(function(t) {
|
|
|
790
790
|
const ve = Ce(f);
|
|
791
791
|
N(() => {
|
|
792
792
|
if (!T || !Z) return;
|
|
793
|
-
const { disclosureElement: c } = p.getState(), v = g.current,
|
|
793
|
+
const { disclosureElement: c } = p.getState(), v = g.current, w = ve() || [], h = [
|
|
794
794
|
v,
|
|
795
|
-
...
|
|
796
|
-
...
|
|
795
|
+
...w,
|
|
796
|
+
...we.map(($) => $.getState().contentElement)
|
|
797
797
|
];
|
|
798
798
|
return i ? re(
|
|
799
799
|
nt(T, h),
|
|
@@ -804,13 +804,13 @@ var xt = ue(function(t) {
|
|
|
804
804
|
p,
|
|
805
805
|
Z,
|
|
806
806
|
ve,
|
|
807
|
-
|
|
807
|
+
we,
|
|
808
808
|
i,
|
|
809
809
|
A
|
|
810
810
|
]);
|
|
811
811
|
const me = !!H, ge = Ve(H), [xe, B] = Q(!1);
|
|
812
812
|
C(() => {
|
|
813
|
-
if (!
|
|
813
|
+
if (!P || !me || !S || !(k != null && k.isConnected)) return;
|
|
814
814
|
const c = it(I, !0) || // If no initial focus is specified, we try to focus the first element
|
|
815
815
|
// with the autofocus attribute. If it's an Ariakit component, the
|
|
816
816
|
// Focusable component will consume the autoFocus prop and add the
|
|
@@ -827,7 +827,7 @@ var xt = ue(function(t) {
|
|
|
827
827
|
c.focus(), st && v && c.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
828
828
|
}));
|
|
829
829
|
}, [
|
|
830
|
-
|
|
830
|
+
P,
|
|
831
831
|
me,
|
|
832
832
|
S,
|
|
833
833
|
k,
|
|
@@ -838,14 +838,14 @@ var xt = ue(function(t) {
|
|
|
838
838
|
]);
|
|
839
839
|
const W = !!L, _e = Ve(L), [ce, X] = Q(!1);
|
|
840
840
|
C(() => {
|
|
841
|
-
if (
|
|
841
|
+
if (P)
|
|
842
842
|
return X(!0), () => X(!1);
|
|
843
|
-
}, [
|
|
843
|
+
}, [P]);
|
|
844
844
|
const oe = $e(
|
|
845
845
|
(c, v = !0) => {
|
|
846
|
-
const { disclosureElement:
|
|
846
|
+
const { disclosureElement: w } = p.getState();
|
|
847
847
|
if (Hr(c)) return;
|
|
848
|
-
let h = it(M) ||
|
|
848
|
+
let h = it(M) || w;
|
|
849
849
|
if (h != null && h.id) {
|
|
850
850
|
const Y = F(h), he = `[aria-activedescendant="${h.id}"]`, De = Y.querySelector(he);
|
|
851
851
|
De && (h = De);
|
|
@@ -867,10 +867,10 @@ var xt = ue(function(t) {
|
|
|
867
867
|
[p, M, _e]
|
|
868
868
|
), z = q(!1);
|
|
869
869
|
N(() => {
|
|
870
|
-
if (
|
|
870
|
+
if (P || !ce || !W) return;
|
|
871
871
|
const c = g.current;
|
|
872
872
|
z.current = !0, oe(c);
|
|
873
|
-
}, [
|
|
873
|
+
}, [P, ce, S, W, oe]), C(() => {
|
|
874
874
|
if (!ce || !W) return;
|
|
875
875
|
const c = g.current;
|
|
876
876
|
return () => {
|
|
@@ -884,12 +884,12 @@ var xt = ue(function(t) {
|
|
|
884
884
|
const Se = Ve(b);
|
|
885
885
|
C(() => !S || !R ? void 0 : Xe("keydown", (v) => {
|
|
886
886
|
if (v.key !== "Escape" || v.defaultPrevented) return;
|
|
887
|
-
const
|
|
888
|
-
if (!
|
|
887
|
+
const w = g.current;
|
|
888
|
+
if (!w || Ze(w)) return;
|
|
889
889
|
const h = v.target;
|
|
890
890
|
if (!h) return;
|
|
891
891
|
const { disclosureElement: $ } = p.getState();
|
|
892
|
-
!!(h.tagName === "BODY" || j(
|
|
892
|
+
!!(h.tagName === "BODY" || j(w, h) || !$ || j($, h)) && Se(v) && p.hide();
|
|
893
893
|
}, !0), [p, S, R, Se]), l = ee(
|
|
894
894
|
l,
|
|
895
895
|
(c) => /* @__PURE__ */ E(dr, { level: i ? 1 : void 0, children: c }),
|
|
@@ -1084,7 +1084,7 @@ var Xr = ue(
|
|
|
1084
1084
|
r,
|
|
1085
1085
|
process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
|
|
1086
1086
|
);
|
|
1087
|
-
const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"),
|
|
1087
|
+
const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"), P = r.useState("mounted"), R = r.useState("rendered"), k = q(null), [Pe, ae] = Q(!1), { portalRef: we, domReady: Z } = ft(s, d.portalRef), ve = Ce(A), me = Ce(l), ge = !!l;
|
|
1088
1088
|
N(() => {
|
|
1089
1089
|
if (!(O != null && O.isConnected)) return;
|
|
1090
1090
|
O.style.setProperty(
|
|
@@ -1092,7 +1092,7 @@ var Xr = ue(
|
|
|
1092
1092
|
`${_}px`
|
|
1093
1093
|
);
|
|
1094
1094
|
const B = kr(U, ve), W = async () => {
|
|
1095
|
-
if (!
|
|
1095
|
+
if (!P) return;
|
|
1096
1096
|
p || (k.current = k.current || document.createElement("div"));
|
|
1097
1097
|
const X = p || k.current, oe = [
|
|
1098
1098
|
qr(X, { gutter: I, shift: D }),
|
|
@@ -1148,7 +1148,7 @@ var Xr = ue(
|
|
|
1148
1148
|
U,
|
|
1149
1149
|
O,
|
|
1150
1150
|
T,
|
|
1151
|
-
|
|
1151
|
+
P,
|
|
1152
1152
|
Z,
|
|
1153
1153
|
m,
|
|
1154
1154
|
b,
|
|
@@ -1164,7 +1164,7 @@ var Xr = ue(
|
|
|
1164
1164
|
ge,
|
|
1165
1165
|
me
|
|
1166
1166
|
]), N(() => {
|
|
1167
|
-
if (!
|
|
1167
|
+
if (!P || !Z || !(O != null && O.isConnected) || !(G != null && G.isConnected)) return;
|
|
1168
1168
|
const B = () => {
|
|
1169
1169
|
O.style.zIndex = getComputedStyle(G).zIndex;
|
|
1170
1170
|
};
|
|
@@ -1173,7 +1173,7 @@ var Xr = ue(
|
|
|
1173
1173
|
W = requestAnimationFrame(B);
|
|
1174
1174
|
});
|
|
1175
1175
|
return () => cancelAnimationFrame(W);
|
|
1176
|
-
}, [
|
|
1176
|
+
}, [P, Z, O, G]);
|
|
1177
1177
|
const xe = m ? "fixed" : "absolute";
|
|
1178
1178
|
return d = ee(
|
|
1179
1179
|
d,
|
|
@@ -1201,7 +1201,7 @@ var Xr = ue(
|
|
|
1201
1201
|
// we can wait for the popover to be positioned before other components
|
|
1202
1202
|
// move focus into it. For example, this attribute is observed by the
|
|
1203
1203
|
// Combobox component with the autoSelect behavior.
|
|
1204
|
-
"data-placing": !
|
|
1204
|
+
"data-placing": !Pe || void 0
|
|
1205
1205
|
}, d), {
|
|
1206
1206
|
style: y({
|
|
1207
1207
|
position: "relative"
|
|
@@ -1212,9 +1212,9 @@ var Xr = ue(
|
|
|
1212
1212
|
portal: s,
|
|
1213
1213
|
preserveTabOrder: u,
|
|
1214
1214
|
preserveTabOrderAnchor: S || U,
|
|
1215
|
-
autoFocusOnShow:
|
|
1215
|
+
autoFocusOnShow: Pe && i
|
|
1216
1216
|
}, d), {
|
|
1217
|
-
portalRef:
|
|
1217
|
+
portalRef: we
|
|
1218
1218
|
})), d;
|
|
1219
1219
|
}
|
|
1220
1220
|
), ln = St(
|