@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,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 R, e as F, P as j, Q as B, R as K, m as g, o as p, D as V } from "./LMDWO4NN-
|
|
6
|
-
import { a as M } from "./PFRGBC2K-
|
|
1
|
+
import { u as _, a as H } from "./VIIRIBF3-CQdc2eWO.js";
|
|
2
|
+
import { u as T } from "./UQQRIHDV-C_0T8mGy.js";
|
|
3
|
+
import { u as y } from "./6VRAQV3D-pTuMqsWW.js";
|
|
4
|
+
import { a as S } from "./YV4JVR4I-BuKFdNa0.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-ZnclRjpA.js";
|
|
6
|
+
import { a as M } from "./PFRGBC2K-BS9YO5-Q.js";
|
|
7
7
|
var W = "div";
|
|
8
8
|
function q(a, o, u) {
|
|
9
9
|
var r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as B } from "./PFRGBC2K-
|
|
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-
|
|
1
|
+
import { u as B } from "./PFRGBC2K-BS9YO5-Q.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-ZnclRjpA.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) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as p, c as k, s as M, i as ee, g as U, f as _, b as
|
|
2
|
-
import {
|
|
1
|
+
import { t as p, c as k, s as M, i as ee, g as U, f as _, b as K, d as te } from "./YV4JVR4I-BuKFdNa0.js";
|
|
2
|
+
import { U as S, V as R, W as L, a2 as ne, K as re, D as ie, X as se, q as oe, o as ae } from "./LMDWO4NN-ZnclRjpA.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 X(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 j(e = {}) {
|
|
|
103
103
|
__unstablePrivateStore: c
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Y(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] = K(X, e);
|
|
111
|
+
return Y(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) => {
|
|
@@ -139,7 +139,7 @@ function J(e) {
|
|
|
139
139
|
}
|
|
140
140
|
return r;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function H(e) {
|
|
143
143
|
let r = 0;
|
|
144
144
|
for (const { length: t } of e)
|
|
145
145
|
t > r && (r = t);
|
|
@@ -153,7 +153,7 @@ function ve(e) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
function Ie(e, r, t) {
|
|
156
|
-
const o =
|
|
156
|
+
const o = H(e);
|
|
157
157
|
for (const s of e)
|
|
158
158
|
for (let l = 0; l < o; l += 1) {
|
|
159
159
|
const d = s[l];
|
|
@@ -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 = H(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 = X(e), s = S(
|
|
186
186
|
e.activeId,
|
|
187
187
|
t == null ? void 0 : t.activeId,
|
|
188
188
|
e.defaultActiveId
|
|
@@ -235,27 +235,27 @@ 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", D = n === "next" || n === "down",
|
|
238
|
+
} = x, y = n === "up" || n === "down", D = n === "next" || n === "down", J = D ? b && !y : !b || y, Q = g && !a;
|
|
239
239
|
let v = y ? le(
|
|
240
|
-
Ie(
|
|
240
|
+
Ie(j(w), u, Q)
|
|
241
241
|
) : w;
|
|
242
|
-
if (v =
|
|
242
|
+
if (v = J ? $(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 z = v.some((I) => I.rowId), Z = v.indexOf(B),
|
|
247
|
+
const z = v.some((I) => I.rowId), Z = v.indexOf(B), V = v.slice(Z + 1), W = G(V, B.rowId);
|
|
248
248
|
if (a) {
|
|
249
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
251
|
return C == null ? void 0 : C.id;
|
|
252
252
|
}
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
const I =
|
|
256
|
-
return
|
|
253
|
+
const N = F && (y ? F !== "horizontal" : F !== "vertical"), q = z && f && (y ? f !== "horizontal" : f !== "vertical"), A = D ? (!z || y) && N && m : y ? m : !1;
|
|
254
|
+
if (N) {
|
|
255
|
+
const I = q && !A ? v : G(v, B.rowId), C = me(I, u, A), T = h(C, u);
|
|
256
|
+
return T == null ? void 0 : T.id;
|
|
257
257
|
}
|
|
258
|
-
if (
|
|
258
|
+
if (q) {
|
|
259
259
|
const I = h(
|
|
260
260
|
// We can use nextItems, which contains all the next items, including
|
|
261
261
|
// items from other rows, to wrap between rows. However, if there is a
|
|
@@ -263,7 +263,7 @@ 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
|
-
A ? W :
|
|
266
|
+
A ? W : V,
|
|
267
267
|
u
|
|
268
268
|
);
|
|
269
269
|
return A ? (I == null ? void 0 : I.id) || null : I == null ? void 0 : I.id;
|
|
@@ -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 = Y(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] = K(ge, e);
|
|
304
304
|
return xe(r, t, e);
|
|
305
305
|
}
|
|
306
306
|
export {
|
|
307
|
-
|
|
307
|
+
X as a,
|
|
308
308
|
xe as b,
|
|
309
309
|
ge as c,
|
|
310
310
|
be as d,
|
|
311
|
-
|
|
311
|
+
Y 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-DADExXg7.js";
|
|
2
|
+
import { u as te, C as re } from "./P7GR5CS5-bOyAbBNR.js";
|
|
3
|
+
import { f as oe, h as ne, u as se } from "./PFRGBC2K-BS9YO5-Q.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-ZnclRjpA.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-DADExXg7.js";
|
|
2
|
+
import { u as ue } from "./RZ4GPYOB-D4dwmRZg.js";
|
|
3
|
+
import { a as le, b as fe, c as ce } from "./P7GR5CS5-bOyAbBNR.js";
|
|
4
|
+
import { u as de } from "./2RSXSRCN-BtBMZ8Lx.js";
|
|
5
|
+
import { u as me } from "./YV4JVR4I-BuKFdNa0.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-ZnclRjpA.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,5 +1,5 @@
|
|
|
1
|
-
import { c as t, a as s } from "./WYCIER3C-
|
|
2
|
-
import { b as a } from "./YV4JVR4I-
|
|
1
|
+
import { c as t, a as s } from "./WYCIER3C-CABEZy1i.js";
|
|
2
|
+
import { b as a } from "./YV4JVR4I-BuKFdNa0.js";
|
|
3
3
|
function u(r = {}) {
|
|
4
4
|
return t(r);
|
|
5
5
|
}
|
|
@@ -11,7 +11,7 @@ function S(r = {}) {
|
|
|
11
11
|
return c(e, o, r);
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as a,
|
|
15
15
|
u as c,
|
|
16
|
-
|
|
16
|
+
S as u
|
|
17
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as a, C } from "./P7GR5CS5-
|
|
3
|
-
import { J as s } from "./LMDWO4NN-
|
|
1
|
+
import { a as o, P as r } from "./MTZPJQMC-CNgogsHX.js";
|
|
2
|
+
import { e as a, C } from "./P7GR5CS5-bOyAbBNR.js";
|
|
3
|
+
import { J as s } from "./LMDWO4NN-ZnclRjpA.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
|
|
2
|
-
import { u as h } from "./2RSXSRCN-
|
|
3
|
-
import { c as v,
|
|
1
|
+
import { u as R } from "./RS7LB2H4-BpSl1D2T.js";
|
|
2
|
+
import { u as h } from "./2RSXSRCN-BtBMZ8Lx.js";
|
|
3
|
+
import { c as v, T 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-ZnclRjpA.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,13 +15,13 @@ var _ = "button", b = v(
|
|
|
15
15
|
ref: g(s, t.ref)
|
|
16
16
|
}), t = h(t), t;
|
|
17
17
|
}
|
|
18
|
-
),
|
|
18
|
+
), K = D(function(t) {
|
|
19
19
|
const s = b(t);
|
|
20
20
|
return E(_, s);
|
|
21
|
-
}), H = "button", I = Symbol("disclosure"),
|
|
21
|
+
}), H = "button", I = Symbol("disclosure"), $ = v(
|
|
22
22
|
function(t) {
|
|
23
23
|
var s = t, { store: e, toggleOnClick: a = !0 } = s, o = w(s, ["store", "toggleOnClick"]);
|
|
24
|
-
const N =
|
|
24
|
+
const N = R();
|
|
25
25
|
e = e || N, M(
|
|
26
26
|
e,
|
|
27
27
|
process.env.NODE_ENV !== "production" && "Disclosure must receive a `store` prop or be wrapped in a DisclosureProvider component."
|
|
@@ -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, S = V(a), [
|
|
35
|
-
d == null || d(r), !r.defaultPrevented && (
|
|
34
|
+
const d = o.onClick, S = V(a), [T, y] = A(o, I, !0), O = F((r) => {
|
|
35
|
+
d == null || d(r), !r.defaultPrevented && (T || 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
|
+
}, y), o), {
|
|
41
41
|
ref: g(i, o.ref),
|
|
42
|
-
onClick:
|
|
42
|
+
onClick: O
|
|
43
43
|
}), o = b(o), o;
|
|
44
44
|
}
|
|
45
|
-
),
|
|
46
|
-
const s =
|
|
45
|
+
), L = D(function(t) {
|
|
46
|
+
const s = $(t);
|
|
47
47
|
return E(H, s);
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
K as B,
|
|
51
|
+
L as D,
|
|
52
|
+
$ as a,
|
|
53
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 {
|
|
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 { c as ue, m as x, o as y, f as K, a as ne, _ 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, N 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-ZnclRjpA.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-BS9YO5-Q.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, d as jt } from "./YV4JVR4I-
|
|
7
|
-
import { u as vt, i as Wt } from "./KFH4SEIX-
|
|
8
|
-
import { u as zt } from "./WYCIER3C-
|
|
9
|
-
import {
|
|
10
|
-
import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-
|
|
11
|
-
import { b as mt,
|
|
6
|
+
import { a as te, d as jt } from "./YV4JVR4I-BuKFdNa0.js";
|
|
7
|
+
import { u as vt, i as Wt } from "./KFH4SEIX-C-0wHvda.js";
|
|
8
|
+
import { u as zt } from "./WYCIER3C-CABEZy1i.js";
|
|
9
|
+
import { u as Yt } from "./BM6PGYQY-DL-j4NGc.js";
|
|
10
|
+
import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-BpSl1D2T.js";
|
|
11
|
+
import { b as mt, a as Gt } from "./MTZPJQMC-CNgogsHX.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 wr(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(wr(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 Pr(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 || !Pr(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 wt() {
|
|
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 Pt(e, t) {
|
|
557
557
|
if (!("style" in e)) return Ne;
|
|
558
|
-
if (
|
|
558
|
+
if (wt())
|
|
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(Pt(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 P = new Event("close", { bubbles: !1, cancelable: !0 });
|
|
733
|
+
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(P), P.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), w = te(p, "open"), R = te(p, "mounted"), k = te(p, "contentElement"), we = Wt(R, l.hidden, l.alwaysVisible);
|
|
739
|
+
Tr(k, T, V && !we), Or(p, D, S);
|
|
740
|
+
const { wrapElement: ae, nestedDialogs: Pe } = Fr(p);
|
|
741
741
|
l = ee(l, ae, [ae]), N(() => {
|
|
742
|
-
if (!
|
|
742
|
+
if (!w) 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, w]), 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 P = !1;
|
|
751
751
|
const h = () => {
|
|
752
|
-
|
|
752
|
+
P = !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), !P && 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), P = 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(), P.addEventListener("resize", h), () => {
|
|
771
|
+
P.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 (!wt() || w || !R || !S) return;
|
|
780
780
|
const c = g.current;
|
|
781
781
|
if (c)
|
|
782
|
-
return
|
|
783
|
-
}, [
|
|
784
|
-
const Z =
|
|
782
|
+
return Pt(c);
|
|
783
|
+
}, [w, R, S]);
|
|
784
|
+
const Z = w && 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, P = ve() || [], h = [
|
|
794
794
|
v,
|
|
795
|
-
...
|
|
796
|
-
...
|
|
795
|
+
...P,
|
|
796
|
+
...Pe.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
|
+
Pe,
|
|
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 (!w || !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
|
+
w,
|
|
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 (w)
|
|
842
842
|
return X(!0), () => X(!1);
|
|
843
|
-
}, [
|
|
843
|
+
}, [w]);
|
|
844
844
|
const oe = $e(
|
|
845
845
|
(c, v = !0) => {
|
|
846
|
-
const { disclosureElement:
|
|
846
|
+
const { disclosureElement: P } = p.getState();
|
|
847
847
|
if (Hr(c)) return;
|
|
848
|
-
let h = it(M) ||
|
|
848
|
+
let h = it(M) || P;
|
|
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 (w || !ce || !W) return;
|
|
871
871
|
const c = g.current;
|
|
872
872
|
z.current = !0, oe(c);
|
|
873
|
-
}, [
|
|
873
|
+
}, [w, 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 P = g.current;
|
|
888
|
+
if (!P || Ze(P)) 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(P, 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"), w = r.useState("mounted"), R = r.useState("rendered"), k = q(null), [we, ae] = Q(!1), { portalRef: Pe, 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 (!w) 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
|
+
w,
|
|
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 (!w || !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
|
+
}, [w, 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": !we || 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: we && i
|
|
1216
1216
|
}, d), {
|
|
1217
|
-
portalRef:
|
|
1217
|
+
portalRef: Pe
|
|
1218
1218
|
})), d;
|
|
1219
1219
|
}
|
|
1220
1220
|
), ln = St(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as m } from "./A3WPL2ZJ-
|
|
2
|
-
import { u } from "./6VRAQV3D-
|
|
3
|
-
import { s as n, f as p, c as b, a as c, _ as f, o as l } from "./LMDWO4NN-
|
|
1
|
+
import { u as m } from "./A3WPL2ZJ-BiXYGxnE.js";
|
|
2
|
+
import { u } from "./6VRAQV3D-pTuMqsWW.js";
|
|
3
|
+
import { s as n, f as p, c as b, a as c, _ as f, o as l } from "./LMDWO4NN-ZnclRjpA.js";
|
|
4
4
|
var T = "button", i = b(
|
|
5
5
|
function(e) {
|
|
6
6
|
var o = e, { store: r } = o, t = f(o, ["store"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as d, b as v } from "./P7GR5CS5-
|
|
2
|
-
import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-
|
|
1
|
+
import { a as d, b as v } from "./P7GR5CS5-bOyAbBNR.js";
|
|
2
|
+
import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-ZnclRjpA.js";
|
|
3
3
|
import { useMemo as S } from "react";
|
|
4
4
|
import { jsx as V } from "react/jsx-runtime";
|
|
5
5
|
var z = "div", N = C(
|