@midas-ds/components 1.0.3 → 1.1.0
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/{Button-B4vMZbC6.js → Button-DL6nqUco.js} +22 -22
- package/CHANGELOG.md +6 -1
- package/{Checkbox-DnKWanep.js → Checkbox-q0dugR2t.js} +8 -8
- package/{Collection-COLWgm24.js → Collection-KMFfVuzU.js} +2 -2
- package/{Dialog-Cb6toyXO.js → Dialog-D6Bqrpn-.js} +170 -169
- package/Disclosure-dAZYXyTH.js +225 -0
- package/Disclosure.css +1 -0
- package/{FocusScope-C8i7CH6y.js → FocusScope-B7CkxXNC.js} +1 -1
- package/{Form-BQQs3jUk.js → Form-BWBjJC6v.js} +42 -42
- package/{Group-CdwXhx8Q.js → Group-D7_8007y.js} +10 -10
- package/Heading-RCRHv6hd.js +15 -0
- package/{Hidden-DngIphiL.js → Hidden-CVlUgUJM.js} +1 -1
- package/{Link-iAZLB3RI.js → Link-BnQvB-hH.js} +8 -8
- package/{ListBox-BKWkIIm6.js → ListBox-DBBiqvcR.js} +72 -72
- package/{ListKeyboardDelegate-BH-K5hyq.js → ListKeyboardDelegate-gCXy-Xnn.js} +2 -2
- package/{PressResponder-Cz-TRBHO.js → PressResponder-B4g56kDz.js} +5 -5
- package/{RSPContexts-EOiWkKOf.js → RSPContexts-BW2SEIqe.js} +2 -2
- package/{SelectionManager-8o40f7mx.js → SelectionManager-BfXUE1qg.js} +113 -129
- package/{Separator-BlvmQjwz.js → Separator-BBX9m2O2.js} +2 -2
- package/{Tag--W5TgxmK.js → Tag-DWt0koFj.js} +74 -74
- package/Text-BCF0xvqL.js +15 -0
- package/{TextField-DeK_yiK-.js → TextField-CX4eOQf6.js} +33 -33
- package/{TextField.module-0-u4LVPp.js → TextField.module-DdICj682.js} +7 -7
- package/{VisuallyHidden-CFx06Bae.js → VisuallyHidden-Dhr5caPC.js} +1 -1
- package/accordion/Accordion.d.ts +8 -8
- package/accordion/AccordionItem.d.ts +11 -3
- package/accordion/index.d.ts +0 -3
- package/{context-Bnqknrce.js → context-BpJLnOuu.js} +11 -11
- package/global.css +1 -0
- package/index.d.ts +1 -0
- package/index.js +105 -110
- package/index10.js +1 -1
- package/index11.js +1 -1
- package/index12.js +1 -1
- package/index13.js +1 -1
- package/index14.js +1 -1
- package/index15.js +2 -2
- package/index16.js +2 -2
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +2 -2
- package/index2.js +1 -1
- package/index20.js +2 -2
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +1 -1
- package/index25.js +2 -2
- package/index26.js +2 -2
- package/index27.js +2 -2
- package/index28.js +1 -1
- package/index29.js +2 -8
- package/index3.js +1 -1
- package/index30.js +17 -16
- package/index31.js +1 -1
- package/index32.js +1 -1
- package/index33.js +1 -1
- package/index34.js +2 -2
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/index38.js +1 -1
- package/index39.js +1 -1
- package/index4.js +1 -1
- package/index40.js +19 -12
- package/index41.js +61 -14
- package/index42.js +44 -22
- package/index43.js +13 -11
- package/index44.js +25 -4
- package/index45.js +16 -51
- package/index46.js +19 -16
- package/index47.js +49 -27
- package/index48.js +5 -18
- package/index49.js +25 -21
- package/index5.js +1 -1
- package/index50.js +16 -47
- package/index51.js +7 -3
- package/index52.js +18 -18
- package/index53.js +16 -16
- package/index54.js +5 -3
- package/index55.js +7 -20
- package/index56.js +13 -16
- package/index57.js +6 -8
- package/index58.js +5 -8
- package/index59.js +17 -13
- package/index6.js +1 -1
- package/index60.js +20 -7
- package/index61.js +59 -7
- package/index62.js +13 -17
- package/index63.js +9 -20
- package/index64.js +38 -46
- package/index65.js +85 -15
- package/index66.js +74 -11
- package/index67.js +23 -62
- package/index68.js +64 -80
- package/index69.js +68 -62
- package/index7.js +1 -1
- package/index70.js +138 -22
- package/index71.js +66 -65
- package/index72.js +40 -78
- package/index73.js +75 -133
- package/index74.js +69 -68
- package/index75.js +96 -34
- package/index76.js +258 -65
- package/index77.js +715 -63
- package/index78.js +478 -93
- package/index79.js +303 -263
- package/index8.js +1 -1
- package/index80.js +343 -677
- package/index81.js +242 -479
- package/index82.js +1332 -282
- package/index83.js +966 -346
- package/index84.js +344 -210
- package/index85.js +2024 -1286
- package/index86.js +2314 -955
- package/index87.js +6785 -340
- package/index88.js +15 -2099
- package/index89.js +12 -2367
- package/index9.js +1 -1
- package/index90.js +4 -6834
- package/index91.js +7 -15
- package/package.json +1 -1
- package/useControlledState-Kv9K2AYu.js +30 -0
- package/{useDescription-BPs7eRff.js → useDescription-B7stiK3j.js} +1 -1
- package/useEvent-Xk5kn5Ns.js +21 -0
- package/{useField-Dz62UHCP.js → useField-DMzJIIN4.js} +5 -5
- package/{useFilter-ViwzkzZe.js → useFilter-Bt9dbV1U.js} +1 -1
- package/{useFocusRing-BKGhL91C.js → useFocusRing-9PXyKy2A.js} +26 -26
- package/{useFocusable-CRSmYEQc.js → useFocusable-CcEBZe40.js} +1 -1
- package/{useGridSelectionCheckbox-CVEvUCJL.js → useGridSelectionCheckbox-DYgEnElE.js} +3 -3
- package/{useHasTabbableChild-C8y4fwiY.js → useHasTabbableChild-D6DwR81L.js} +5 -5
- package/{useHighlightSelectionDescription-CD74uzLh.js → useHighlightSelectionDescription-WYAbP4No.js} +4 -4
- package/useLabels-9zaZ9oa0.js +17 -0
- package/{useListState-DKnP5TB5.js → useListState-BfTeKTk5.js} +1 -1
- package/{useLocalizedStringFormatter-DsZ-ZWSk.js → useLocalizedStringFormatter-BlCbn-hX.js} +1 -1
- package/{useSingleSelectListState-BHTLh8Ob.js → useSingleSelectListState-DPkaL0la.js} +2 -2
- package/Text-CQPW6xs7.js +0 -15
- package/accordion/AccordionContent.d.ts +0 -3
- package/accordion/AccordionTagContext.d.ts +0 -3
- package/accordion/AccordionTrigger.d.ts +0 -3
- package/index-DK9ZACEc.js +0 -642
- package/index.css +0 -1
- package/index92.js +0 -14
- package/index93.js +0 -6
- package/index94.js +0 -9
- package/useControlledState-DrAoodI6.js +0 -45
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { a as Kn } from "./Button-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import g, { useEffect as Y, useState as
|
|
5
|
-
import { $ as Qn, a as er, b as
|
|
6
|
-
import { $ as or, a as lr, b as ar, c as ir, d as sr } from "./Separator-
|
|
7
|
-
import { $ as ur } from "./Text-
|
|
8
|
-
import { l as dr, d as cr, $ as Ye, a as fr, b as
|
|
9
|
-
import { a as pr, $ as
|
|
10
|
-
import {
|
|
11
|
-
import { $ as Qe } from "./useLocalizedStringFormatter-
|
|
12
|
-
import { a as
|
|
13
|
-
import { c as
|
|
14
|
-
import
|
|
15
|
-
import { b as
|
|
16
|
-
import { $ as
|
|
17
|
-
import { b as tt } from "./ListKeyboardDelegate-
|
|
18
|
-
import {
|
|
1
|
+
import { a as Kn } from "./Button-DL6nqUco.js";
|
|
2
|
+
import { l as V, m as Le, t as On, H as _n, f as zn, k as me, S as Hn, I as we, e as ae, g as Nn, o as q, p as Un, C as fe, n as jn, b as Ve, J as Wn, D as Vn, q as Zn, u as Ie, a as ge, d as ie, B as ne, i as Ze, F as Gn, z as Yn, y as qn, c as Jn, E as Ke } from "./useFocusRing-9PXyKy2A.js";
|
|
3
|
+
import { $ as Xn } from "./RSPContexts-BW2SEIqe.js";
|
|
4
|
+
import g, { useEffect as Y, useState as Z, useCallback as W, useRef as G, useContext as O, createContext as _, useMemo as pe, forwardRef as ke } from "react";
|
|
5
|
+
import { $ as Qn, a as er, b as Ge, e as tr, f as nr, c as rr } from "./Collection-KMFfVuzU.js";
|
|
6
|
+
import { $ as or, a as lr, b as ar, c as ir, d as sr } from "./Separator-BBX9m2O2.js";
|
|
7
|
+
import { $ as ur } from "./Text-BCF0xvqL.js";
|
|
8
|
+
import { l as dr, d as cr, $ as Ye, a as fr, b as qe } from "./SelectionManager-BfXUE1qg.js";
|
|
9
|
+
import { a as pr, $ as Je } from "./PressResponder-B4g56kDz.js";
|
|
10
|
+
import { $ as Xe } from "./useControlledState-Kv9K2AYu.js";
|
|
11
|
+
import { $ as Qe } from "./useLocalizedStringFormatter-BlCbn-hX.js";
|
|
12
|
+
import { a as $r } from "./useFocusable-CcEBZe40.js";
|
|
13
|
+
import { c as br, a as et } from "./FocusScope-B7CkxXNC.js";
|
|
14
|
+
import mr, { flushSync as gr } from "react-dom";
|
|
15
|
+
import { b as xr } from "./Hidden-CVlUgUJM.js";
|
|
16
|
+
import { $ as vr } from "./context-BpJLnOuu.js";
|
|
17
|
+
import { b as tt } from "./ListKeyboardDelegate-gCXy-Xnn.js";
|
|
18
|
+
import { $ as hr } from "./useLabels-9zaZ9oa0.js";
|
|
19
|
+
import { a as yr } from "./VisuallyHidden-Dhr5caPC.js";
|
|
19
20
|
function Pr() {
|
|
20
21
|
return typeof window.ResizeObserver < "u";
|
|
21
22
|
}
|
|
@@ -44,7 +45,7 @@ function De(t) {
|
|
|
44
45
|
]);
|
|
45
46
|
}
|
|
46
47
|
function Er(t, e = !0) {
|
|
47
|
-
let [n, r] =
|
|
48
|
+
let [n, r] = Z(!0), o = n && e;
|
|
48
49
|
return V(() => {
|
|
49
50
|
if (o && t.current && "getAnimations" in t.current)
|
|
50
51
|
for (let l of t.current.getAnimations()) l instanceof CSSTransition && l.cancel();
|
|
@@ -54,7 +55,7 @@ function Er(t, e = !0) {
|
|
|
54
55
|
]), nt(t, o, W(() => r(!1), [])), o;
|
|
55
56
|
}
|
|
56
57
|
function Cr(t, e) {
|
|
57
|
-
let [n, r] =
|
|
58
|
+
let [n, r] = Z(e ? "open" : "closed");
|
|
58
59
|
switch (n) {
|
|
59
60
|
case "open":
|
|
60
61
|
e || r("exiting");
|
|
@@ -83,7 +84,7 @@ function nt(t, e, n) {
|
|
|
83
84
|
}
|
|
84
85
|
let o = !1;
|
|
85
86
|
return Promise.all(r.map((l) => l.finished)).then(() => {
|
|
86
|
-
o ||
|
|
87
|
+
o || gr(() => {
|
|
87
88
|
n();
|
|
88
89
|
});
|
|
89
90
|
}).catch(() => {
|
|
@@ -97,11 +98,11 @@ function nt(t, e, n) {
|
|
|
97
98
|
n
|
|
98
99
|
]);
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function Se(t, e = -1 / 0, n = 1 / 0) {
|
|
101
102
|
return Math.min(Math.max(t, e), n);
|
|
102
103
|
}
|
|
103
104
|
function wr(t) {
|
|
104
|
-
let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = t, l =
|
|
105
|
+
let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = t, l = G({
|
|
105
106
|
isPointerDown: !1,
|
|
106
107
|
ignoreEmulatedMouseEvents: !1
|
|
107
108
|
}), u = Le((i) => {
|
|
@@ -158,7 +159,7 @@ const N = {
|
|
|
158
159
|
}, Dr = {
|
|
159
160
|
top: "left",
|
|
160
161
|
left: "top"
|
|
161
|
-
},
|
|
162
|
+
}, Ae = {
|
|
162
163
|
top: "height",
|
|
163
164
|
left: "width"
|
|
164
165
|
}, rt = {
|
|
@@ -196,7 +197,7 @@ function Oe(t) {
|
|
|
196
197
|
left: u
|
|
197
198
|
};
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function Sr(t) {
|
|
200
201
|
return {
|
|
201
202
|
top: t.scrollTop,
|
|
202
203
|
left: t.scrollLeft,
|
|
@@ -206,10 +207,10 @@ function Ar(t) {
|
|
|
206
207
|
}
|
|
207
208
|
function _e(t, e, n, r, o, l, u) {
|
|
208
209
|
var a;
|
|
209
|
-
let i = (a = o.scroll[t]) !== null && a !== void 0 ? a : 0, d = r[
|
|
210
|
+
let i = (a = o.scroll[t]) !== null && a !== void 0 ? a : 0, d = r[Ae[t]], s = r.scroll[N[t]] + l, f = d + r.scroll[N[t]] - l, $ = e - i + u[t] - r[N[t]], c = e - i + n + u[t] - r[N[t]];
|
|
210
211
|
return $ < s ? s - $ : c > f ? Math.max(f - c, s - $) : 0;
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function Ar(t) {
|
|
213
214
|
let e = window.getComputedStyle(t);
|
|
214
215
|
return {
|
|
215
216
|
top: parseInt(e.marginTop, 10) || 0,
|
|
@@ -218,11 +219,11 @@ function Sr(t) {
|
|
|
218
219
|
right: parseInt(e.marginRight, 10) || 0
|
|
219
220
|
};
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
+
function ze(t) {
|
|
222
223
|
if (de[t]) return de[t];
|
|
223
224
|
let [e, n] = t.split(" "), r = N[e] || "right", o = Dr[r];
|
|
224
225
|
N[n] || (n = "center");
|
|
225
|
-
let l =
|
|
226
|
+
let l = Ae[r], u = Ae[o];
|
|
226
227
|
return de[t] = {
|
|
227
228
|
placement: e,
|
|
228
229
|
crossPlacement: n,
|
|
@@ -239,7 +240,7 @@ function Pe(t, e, n, r, o, l, u, a, i, d) {
|
|
|
239
240
|
var v, w, F, y;
|
|
240
241
|
f === "center" ? b[c] += (((v = t[h]) !== null && v !== void 0 ? v : 0) - ((w = n[h]) !== null && w !== void 0 ? w : 0)) / 2 : f !== c && (b[c] += ((F = t[h]) !== null && F !== void 0 ? F : 0) - ((y = n[h]) !== null && y !== void 0 ? y : 0)), b[c] += l;
|
|
241
242
|
const m = t[c] - n[h] + i + d, I = t[c] + t[h] - i - d;
|
|
242
|
-
if (b[c] =
|
|
243
|
+
if (b[c] = Se(b[c], m, I), s === $) {
|
|
243
244
|
const R = a ? u[p] : e[rt[p]];
|
|
244
245
|
b[$e[$]] = Math.floor(R - t[$] + o);
|
|
245
246
|
} else b[$] = Math.floor(t[$] + t[p] + o);
|
|
@@ -256,7 +257,7 @@ function Mr(t, e, n, r, o, l, u, a) {
|
|
|
256
257
|
) : Math.max(0, s + u - (e.top + ((p = e.scroll.top) !== null && p !== void 0 ? p : 0)) - (((h = o.top) !== null && h !== void 0 ? h : 0) + ((b = o.bottom) !== null && b !== void 0 ? b : 0) + l));
|
|
257
258
|
return Math.min(e.height - l * 2, x);
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
+
function He(t, e, n, r, o, l) {
|
|
260
261
|
let { placement: u, axis: a, size: i } = l;
|
|
261
262
|
var d, s;
|
|
262
263
|
if (u === a) return Math.max(0, n[a] - t[a] - ((d = t.scroll[a]) !== null && d !== void 0 ? d : 0) + e[a] - ((s = r[a]) !== null && s !== void 0 ? s : 0) - r[$e[a]] - o);
|
|
@@ -264,22 +265,22 @@ function ze(t, e, n, r, o, l) {
|
|
|
264
265
|
return Math.max(0, t[i] + t[a] + t.scroll[a] - e[a] - n[a] - n[i] - ((f = r[a]) !== null && f !== void 0 ? f : 0) - r[$e[a]] - o);
|
|
265
266
|
}
|
|
266
267
|
function kr(t, e, n, r, o, l, u, a, i, d, s, f, $, c, p, h) {
|
|
267
|
-
let b =
|
|
268
|
+
let b = ze(t), { size: x, crossAxis: v, crossSize: w, placement: F, crossPlacement: y } = b, m = Pe(e, a, n, b, s, f, d, $, p, h), I = s, R = He(a, d, e, o, l + s, b);
|
|
268
269
|
if (u && r[x] > R) {
|
|
269
|
-
let re =
|
|
270
|
-
|
|
270
|
+
let re = ze(`${$e[F]} ${y}`), he = Pe(e, a, n, re, s, f, d, $, p, h);
|
|
271
|
+
He(a, d, e, o, l + s, re) > R && (b = re, m = he, I = s);
|
|
271
272
|
}
|
|
272
|
-
let
|
|
273
|
-
b.axis === "top" ? b.placement === "top" ?
|
|
273
|
+
let S = "bottom";
|
|
274
|
+
b.axis === "top" ? b.placement === "top" ? S = "top" : b.placement === "bottom" && (S = "bottom") : b.crossAxis === "top" && (b.crossPlacement === "top" ? S = "bottom" : b.crossPlacement === "bottom" && (S = "top"));
|
|
274
275
|
let C = _e(v, m[v], n[w], a, i, l, d);
|
|
275
276
|
m[v] += C;
|
|
276
|
-
let B = Mr(m, a, d, $, o, l, n.height,
|
|
277
|
+
let B = Mr(m, a, d, $, o, l, n.height, S);
|
|
277
278
|
c && c < B && (B = c), n.height = Math.min(n.height, B), m = Pe(e, a, n, b, I, f, d, $, p, h), C = _e(v, m[v], n[w], a, i, l, d), m[v] += C;
|
|
278
279
|
let T = {}, P = e[v] + 0.5 * e[w] - m[v] - o[N[v]];
|
|
279
|
-
const
|
|
280
|
-
var U,
|
|
281
|
-
const
|
|
282
|
-
return T[v] =
|
|
280
|
+
const A = p / 2 + h;
|
|
281
|
+
var U, z, L, M;
|
|
282
|
+
const H = N[v] === "left" ? ((U = o.left) !== null && U !== void 0 ? U : 0) + ((z = o.right) !== null && z !== void 0 ? z : 0) : ((L = o.top) !== null && L !== void 0 ? L : 0) + ((M = o.bottom) !== null && M !== void 0 ? M : 0), J = n[w] - H - p / 2 - h, X = e[v] + p / 2 - (m[v] + o[N[v]]), ve = e[v] + e[w] - p / 2 - (m[v] + o[N[v]]), se = Se(P, X, ve);
|
|
283
|
+
return T[v] = Se(se, A, J), {
|
|
283
284
|
position: m,
|
|
284
285
|
maxHeight: B,
|
|
285
286
|
arrowOffsetLeft: T.left,
|
|
@@ -295,13 +296,13 @@ function Br(t) {
|
|
|
295
296
|
let { marginTop: T, marginLeft: P } = window.getComputedStyle(n);
|
|
296
297
|
x.top += parseInt(T, 10) || 0, x.left += parseInt(P, 10) || 0;
|
|
297
298
|
}
|
|
298
|
-
let v = te(r), w =
|
|
299
|
+
let v = te(r), w = Ar(r);
|
|
299
300
|
var F, y;
|
|
300
301
|
v.width += ((F = w.left) !== null && F !== void 0 ? F : 0) + ((y = w.right) !== null && y !== void 0 ? y : 0);
|
|
301
302
|
var m, I;
|
|
302
303
|
v.height += ((m = w.top) !== null && m !== void 0 ? m : 0) + ((I = w.bottom) !== null && I !== void 0 ? I : 0);
|
|
303
|
-
let R =
|
|
304
|
-
return c.tagName === "HTML" && a.tagName === "BODY" && (C.scroll.top = 0, C.scroll.left = 0), kr(e, x, v, R, w, l, u,
|
|
304
|
+
let R = Sr(o), S = Oe(a), C = Oe(c), B = a.tagName === "BODY" ? te(c) : Ne(c, a);
|
|
305
|
+
return c.tagName === "HTML" && a.tagName === "BODY" && (C.scroll.top = 0, C.scroll.left = 0), kr(e, x, v, R, w, l, u, S, C, B, i, d, b, s, f, $);
|
|
305
306
|
}
|
|
306
307
|
function te(t) {
|
|
307
308
|
let { top: e, left: n, width: r, height: o } = t.getBoundingClientRect(), { scrollTop: l, scrollLeft: u, clientTop: a, clientLeft: i } = document.documentElement;
|
|
@@ -361,7 +362,7 @@ function Fr(t) {
|
|
|
361
362
|
}
|
|
362
363
|
let D = typeof document < "u" ? window.visualViewport : null;
|
|
363
364
|
function Rr(t) {
|
|
364
|
-
let { direction: e } =
|
|
365
|
+
let { direction: e } = vr(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: l = o, placement: u = "bottom", containerPadding: a = 12, shouldFlip: i = !0, boundaryElement: d = typeof document < "u" ? document.body : null, offset: s = 0, crossOffset: f = 0, shouldUpdatePosition: $ = !0, isOpen: c = !0, onClose: p, maxHeight: h, arrowBoundaryOffset: b = 0 } = t, [x, v] = Z(null), w = [
|
|
365
366
|
$,
|
|
366
367
|
u,
|
|
367
368
|
o.current,
|
|
@@ -377,7 +378,7 @@ function Rr(t) {
|
|
|
377
378
|
h,
|
|
378
379
|
b,
|
|
379
380
|
n
|
|
380
|
-
], F =
|
|
381
|
+
], F = G(D == null ? void 0 : D.scale);
|
|
381
382
|
Y(() => {
|
|
382
383
|
c && (F.current = D == null ? void 0 : D.scale);
|
|
383
384
|
}, [
|
|
@@ -388,23 +389,23 @@ function Rr(t) {
|
|
|
388
389
|
let C = null;
|
|
389
390
|
if (l.current && l.current.contains(document.activeElement)) {
|
|
390
391
|
var B;
|
|
391
|
-
let M = (B = document.activeElement) === null || B === void 0 ? void 0 : B.getBoundingClientRect(),
|
|
392
|
+
let M = (B = document.activeElement) === null || B === void 0 ? void 0 : B.getBoundingClientRect(), H = l.current.getBoundingClientRect();
|
|
392
393
|
var T;
|
|
393
394
|
if (C = {
|
|
394
395
|
type: "top",
|
|
395
|
-
offset: ((T = M == null ? void 0 : M.top) !== null && T !== void 0 ? T : 0) -
|
|
396
|
-
}, C.offset >
|
|
396
|
+
offset: ((T = M == null ? void 0 : M.top) !== null && T !== void 0 ? T : 0) - H.top
|
|
397
|
+
}, C.offset > H.height / 2) {
|
|
397
398
|
C.type = "bottom";
|
|
398
399
|
var P;
|
|
399
|
-
C.offset = ((P = M == null ? void 0 : M.bottom) !== null && P !== void 0 ? P : 0) -
|
|
400
|
+
C.offset = ((P = M == null ? void 0 : M.bottom) !== null && P !== void 0 ? P : 0) - H.bottom;
|
|
400
401
|
}
|
|
401
402
|
}
|
|
402
|
-
let
|
|
403
|
+
let A = o.current;
|
|
403
404
|
if (!h && o.current) {
|
|
404
405
|
var U;
|
|
405
|
-
|
|
406
|
-
var
|
|
407
|
-
|
|
406
|
+
A.style.top = "0px", A.style.bottom = "";
|
|
407
|
+
var z;
|
|
408
|
+
A.style.maxHeight = ((z = (U = window.visualViewport) === null || U === void 0 ? void 0 : U.height) !== null && z !== void 0 ? z : window.innerHeight) + "px";
|
|
408
409
|
}
|
|
409
410
|
let L = Br({
|
|
410
411
|
placement: Ir(u, e),
|
|
@@ -421,9 +422,9 @@ function Rr(t) {
|
|
|
421
422
|
arrowBoundaryOffset: b
|
|
422
423
|
});
|
|
423
424
|
if (L.position) {
|
|
424
|
-
if (
|
|
425
|
-
let M = document.activeElement.getBoundingClientRect(),
|
|
426
|
-
l.current.scrollTop +=
|
|
425
|
+
if (A.style.top = "", A.style.bottom = "", A.style.left = "", A.style.right = "", Object.keys(L.position).forEach((M) => A.style[M] = L.position[M] + "px"), A.style.maxHeight = L.maxHeight != null ? L.maxHeight + "px" : "", C && document.activeElement && l.current) {
|
|
426
|
+
let M = document.activeElement.getBoundingClientRect(), H = l.current.getBoundingClientRect(), J = M[C.type] - H[C.type];
|
|
427
|
+
l.current.scrollTop += J - C.offset;
|
|
427
428
|
}
|
|
428
429
|
v(L);
|
|
429
430
|
}
|
|
@@ -435,7 +436,7 @@ function Rr(t) {
|
|
|
435
436
|
ref: r,
|
|
436
437
|
onResize: y
|
|
437
438
|
});
|
|
438
|
-
let m =
|
|
439
|
+
let m = G(!1);
|
|
439
440
|
V(() => {
|
|
440
441
|
let C, B = () => {
|
|
441
442
|
m.current = !0, clearTimeout(C), C = setTimeout(() => {
|
|
@@ -461,7 +462,7 @@ function Rr(t) {
|
|
|
461
462
|
isOpen: c,
|
|
462
463
|
onClose: p && I
|
|
463
464
|
});
|
|
464
|
-
var R,
|
|
465
|
+
var R, S;
|
|
465
466
|
return {
|
|
466
467
|
overlayProps: {
|
|
467
468
|
style: {
|
|
@@ -471,7 +472,7 @@ function Rr(t) {
|
|
|
471
472
|
maxHeight: (R = x == null ? void 0 : x.maxHeight) !== null && R !== void 0 ? R : "100vh"
|
|
472
473
|
}
|
|
473
474
|
},
|
|
474
|
-
placement: (
|
|
475
|
+
placement: (S = x == null ? void 0 : x.placement) !== null && S !== void 0 ? S : null,
|
|
475
476
|
arrowProps: {
|
|
476
477
|
"aria-hidden": "true",
|
|
477
478
|
role: "presentation",
|
|
@@ -517,10 +518,10 @@ function Kr(t, e) {
|
|
|
517
518
|
onInteractOutside: l && o ? s : void 0,
|
|
518
519
|
onInteractOutsideStart: d
|
|
519
520
|
});
|
|
520
|
-
let { focusWithinProps: $ } =
|
|
521
|
+
let { focusWithinProps: $ } = zn({
|
|
521
522
|
isDisabled: !r,
|
|
522
523
|
onBlurWithin: (p) => {
|
|
523
|
-
!p.relatedTarget ||
|
|
524
|
+
!p.relatedTarget || br(p.relatedTarget) || (!a || a(p.relatedTarget)) && (n == null || n());
|
|
524
525
|
}
|
|
525
526
|
}), c = (p) => {
|
|
526
527
|
p.target === p.currentTarget && p.preventDefault();
|
|
@@ -571,17 +572,17 @@ function _r(t = {}) {
|
|
|
571
572
|
let { isDisabled: e } = t;
|
|
572
573
|
V(() => {
|
|
573
574
|
if (!e)
|
|
574
|
-
return ce++, ce === 1 && (
|
|
575
|
+
return ce++, ce === 1 && (Hn() ? Ce = Hr() : Ce = zr()), () => {
|
|
575
576
|
ce--, ce === 0 && Ce();
|
|
576
577
|
};
|
|
577
578
|
}, [
|
|
578
579
|
e
|
|
579
580
|
]);
|
|
580
581
|
}
|
|
581
|
-
function
|
|
582
|
+
function zr() {
|
|
582
583
|
return we(ee(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), ee(document.documentElement, "overflow", "hidden"));
|
|
583
584
|
}
|
|
584
|
-
function
|
|
585
|
+
function Hr() {
|
|
585
586
|
let t, e, n = (d) => {
|
|
586
587
|
t = tt(d.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e = ee(t, "overscrollBehavior", "contain"));
|
|
587
588
|
}, r = (d) => {
|
|
@@ -732,12 +733,12 @@ var Dt = {};
|
|
|
732
733
|
Dt = {
|
|
733
734
|
dismiss: "Negeren"
|
|
734
735
|
};
|
|
735
|
-
var At = {};
|
|
736
|
-
At = {
|
|
737
|
-
dismiss: "Zignoruj"
|
|
738
|
-
};
|
|
739
736
|
var St = {};
|
|
740
737
|
St = {
|
|
738
|
+
dismiss: "Zignoruj"
|
|
739
|
+
};
|
|
740
|
+
var At = {};
|
|
741
|
+
At = {
|
|
741
742
|
dismiss: "Descartar"
|
|
742
743
|
};
|
|
743
744
|
var Mt = {};
|
|
@@ -784,8 +785,8 @@ var _t = {};
|
|
|
784
785
|
_t = {
|
|
785
786
|
dismiss: "關閉"
|
|
786
787
|
};
|
|
787
|
-
var
|
|
788
|
-
|
|
788
|
+
var zt = {};
|
|
789
|
+
zt = {
|
|
789
790
|
"ar-AE": at,
|
|
790
791
|
"bg-BG": it,
|
|
791
792
|
"cs-CZ": st,
|
|
@@ -807,8 +808,8 @@ Ht = {
|
|
|
807
808
|
"lv-LV": Ct,
|
|
808
809
|
"nb-NO": wt,
|
|
809
810
|
"nl-NL": Dt,
|
|
810
|
-
"pl-PL":
|
|
811
|
-
"pt-BR":
|
|
811
|
+
"pl-PL": St,
|
|
812
|
+
"pt-BR": At,
|
|
812
813
|
"pt-PT": Mt,
|
|
813
814
|
"ro-RO": kt,
|
|
814
815
|
"ru-RU": Bt,
|
|
@@ -825,7 +826,7 @@ function Ur(t) {
|
|
|
825
826
|
return t && t.__esModule ? t.default : t;
|
|
826
827
|
}
|
|
827
828
|
function We(t) {
|
|
828
|
-
let { onDismiss: e, ...n } = t, r = Qe(Ur(
|
|
829
|
+
let { onDismiss: e, ...n } = t, r = Qe(Ur(zt), "@react-aria/overlays"), o = hr(n, r.format("dismiss")), l = () => {
|
|
829
830
|
e && e();
|
|
830
831
|
};
|
|
831
832
|
return /* @__PURE__ */ g.createElement(yr, null, /* @__PURE__ */ g.createElement("button", {
|
|
@@ -930,30 +931,30 @@ function Wr(t, e) {
|
|
|
930
931
|
};
|
|
931
932
|
}
|
|
932
933
|
const Vr = /* @__PURE__ */ _({});
|
|
933
|
-
function
|
|
934
|
+
function Zr() {
|
|
934
935
|
var t;
|
|
935
936
|
return (t = O(Vr)) !== null && t !== void 0 ? t : {};
|
|
936
937
|
}
|
|
937
|
-
const
|
|
938
|
-
function
|
|
939
|
-
let e = Nn(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [o, l] =
|
|
938
|
+
const Ht = /* @__PURE__ */ g.createContext(null);
|
|
939
|
+
function Gr(t) {
|
|
940
|
+
let e = Nn(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [o, l] = Z(!1), u = pe(() => ({
|
|
940
941
|
contain: o,
|
|
941
942
|
setContain: l
|
|
942
943
|
}), [
|
|
943
944
|
o,
|
|
944
945
|
l
|
|
945
|
-
]), { getContainer: a } =
|
|
946
|
+
]), { getContainer: a } = Zr();
|
|
946
947
|
if (!t.portalContainer && a && (n = a()), !n) return null;
|
|
947
948
|
let i = t.children;
|
|
948
949
|
return t.disableFocusManagement || (i = /* @__PURE__ */ g.createElement(et, {
|
|
949
950
|
restoreFocus: !0,
|
|
950
951
|
contain: o && !r
|
|
951
|
-
}, i)), i = /* @__PURE__ */ g.createElement(
|
|
952
|
+
}, i)), i = /* @__PURE__ */ g.createElement(Ht.Provider, {
|
|
952
953
|
value: u
|
|
953
|
-
}, /* @__PURE__ */ g.createElement(pr, null, i)), /* @__PURE__ */
|
|
954
|
+
}, /* @__PURE__ */ g.createElement(pr, null, i)), /* @__PURE__ */ mr.createPortal(i, n);
|
|
954
955
|
}
|
|
955
956
|
function Yr() {
|
|
956
|
-
let t = O(
|
|
957
|
+
let t = O(Ht), e = t == null ? void 0 : t.setContain;
|
|
957
958
|
V(() => {
|
|
958
959
|
e == null || e(!0);
|
|
959
960
|
}, [
|
|
@@ -980,28 +981,28 @@ var Vt = {};
|
|
|
980
981
|
Vt = {
|
|
981
982
|
longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"
|
|
982
983
|
};
|
|
983
|
-
var Gt = {};
|
|
984
|
-
Gt = {
|
|
985
|
-
longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"
|
|
986
|
-
};
|
|
987
984
|
var Zt = {};
|
|
988
985
|
Zt = {
|
|
986
|
+
longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"
|
|
987
|
+
};
|
|
988
|
+
var Gt = {};
|
|
989
|
+
Gt = {
|
|
989
990
|
longPressMessage: "Long press or press Alt + ArrowDown to open menu"
|
|
990
991
|
};
|
|
991
992
|
var Yt = {};
|
|
992
993
|
Yt = {
|
|
993
994
|
longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"
|
|
994
995
|
};
|
|
996
|
+
var qt = {};
|
|
997
|
+
qt = {
|
|
998
|
+
longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"
|
|
999
|
+
};
|
|
995
1000
|
var Jt = {};
|
|
996
1001
|
Jt = {
|
|
997
|
-
longPressMessage: "
|
|
1002
|
+
longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"
|
|
998
1003
|
};
|
|
999
1004
|
var Xt = {};
|
|
1000
1005
|
Xt = {
|
|
1001
|
-
longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"
|
|
1002
|
-
};
|
|
1003
|
-
var qt = {};
|
|
1004
|
-
qt = {
|
|
1005
1006
|
longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."
|
|
1006
1007
|
};
|
|
1007
1008
|
var Qt = {};
|
|
@@ -1103,12 +1104,12 @@ En = {
|
|
|
1103
1104
|
"cs-CZ": jt,
|
|
1104
1105
|
"da-DK": Wt,
|
|
1105
1106
|
"de-DE": Vt,
|
|
1106
|
-
"el-GR":
|
|
1107
|
-
"en-US":
|
|
1107
|
+
"el-GR": Zt,
|
|
1108
|
+
"en-US": Gt,
|
|
1108
1109
|
"es-ES": Yt,
|
|
1109
|
-
"et-EE":
|
|
1110
|
-
"fi-FI":
|
|
1111
|
-
"fr-FR":
|
|
1110
|
+
"et-EE": qt,
|
|
1111
|
+
"fi-FI": Jt,
|
|
1112
|
+
"fr-FR": Xt,
|
|
1112
1113
|
"he-IL": Qt,
|
|
1113
1114
|
"hr-HR": en,
|
|
1114
1115
|
"hu-HU": tn,
|
|
@@ -1133,10 +1134,10 @@ En = {
|
|
|
1133
1134
|
"zh-CN": yn,
|
|
1134
1135
|
"zh-TW": Pn
|
|
1135
1136
|
};
|
|
1136
|
-
function
|
|
1137
|
+
function qr(t) {
|
|
1137
1138
|
return t && t.__esModule ? t.default : t;
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function Jr(t, e, n) {
|
|
1140
1141
|
let { type: r = "menu", isDisabled: o, trigger: l = "press" } = t, u = me(), { triggerProps: a, overlayProps: i } = lt({
|
|
1141
1142
|
type: r
|
|
1142
1143
|
}, e, n), d = (c) => {
|
|
@@ -1154,7 +1155,7 @@ function Xr(t, e, n) {
|
|
|
1154
1155
|
default:
|
|
1155
1156
|
"continuePropagation" in c && c.continuePropagation();
|
|
1156
1157
|
}
|
|
1157
|
-
}, s = Qe(
|
|
1158
|
+
}, s = Qe(qr(En), "@react-aria/menu"), { longPressProps: f } = dr({
|
|
1158
1159
|
isDisabled: o || l !== "longPress",
|
|
1159
1160
|
accessibilityDescription: s.format("longPressMessage"),
|
|
1160
1161
|
onLongPressStart() {
|
|
@@ -1188,10 +1189,10 @@ function Xr(t, e, n) {
|
|
|
1188
1189
|
};
|
|
1189
1190
|
}
|
|
1190
1191
|
const Cn = /* @__PURE__ */ new WeakMap();
|
|
1191
|
-
function
|
|
1192
|
+
function Xr(t, e, n) {
|
|
1192
1193
|
let { shouldFocusWrap: r = !0, onKeyDown: o, onKeyUp: l, ...u } = t;
|
|
1193
1194
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
1194
|
-
let a =
|
|
1195
|
+
let a = q(t, {
|
|
1195
1196
|
labelable: !0
|
|
1196
1197
|
}), { listProps: i } = or({
|
|
1197
1198
|
...u,
|
|
@@ -1223,9 +1224,9 @@ function qr(t, e, n) {
|
|
|
1223
1224
|
function Qr(t, e, n) {
|
|
1224
1225
|
let { id: r, key: o, closeOnSelect: l, isVirtualized: u, "aria-haspopup": a, onPressStart: i, onPressUp: d, onPress: s, onPressChange: f, onPressEnd: $, onHoverStart: c, onHoverChange: p, onHoverEnd: h, onKeyDown: b, onKeyUp: x, onFocus: v, onFocusChange: w, onBlur: F, selectionManager: y = e.selectionManager } = t, m = !!a, I = m && t["aria-expanded"] === "true";
|
|
1225
1226
|
var R;
|
|
1226
|
-
let
|
|
1227
|
+
let S = (R = t.isDisabled) !== null && R !== void 0 ? R : y.isDisabled(o);
|
|
1227
1228
|
var C;
|
|
1228
|
-
let B = (C = t.isSelected) !== null && C !== void 0 ? C : y.isSelected(o), T = Cn.get(e), P = e.collection.getItem(o),
|
|
1229
|
+
let B = (C = t.isSelected) !== null && C !== void 0 ? C : y.isSelected(o), T = Cn.get(e), P = e.collection.getItem(o), A = t.onClose || T.onClose, U = Un(), z = (E) => {
|
|
1229
1230
|
var ye;
|
|
1230
1231
|
if (!m) {
|
|
1231
1232
|
if (!(P == null || (ye = P.props) === null || ye === void 0) && ye.onAction ? P.props.onAction() : t.onAction && t.onAction(o), T.onAction) {
|
|
@@ -1236,29 +1237,29 @@ function Qr(t, e, n) {
|
|
|
1236
1237
|
}
|
|
1237
1238
|
}, L = "menuitem";
|
|
1238
1239
|
m || (y.selectionMode === "single" ? L = "menuitemradio" : y.selectionMode === "multiple" && (L = "menuitemcheckbox"));
|
|
1239
|
-
let M = fe(),
|
|
1240
|
+
let M = fe(), H = fe(), J = fe(), X = {
|
|
1240
1241
|
id: r,
|
|
1241
|
-
"aria-disabled":
|
|
1242
|
+
"aria-disabled": S || void 0,
|
|
1242
1243
|
role: L,
|
|
1243
1244
|
"aria-label": t["aria-label"],
|
|
1244
1245
|
"aria-labelledby": M,
|
|
1245
1246
|
"aria-describedby": [
|
|
1246
|
-
|
|
1247
|
-
|
|
1247
|
+
H,
|
|
1248
|
+
J
|
|
1248
1249
|
].filter(Boolean).join(" ") || void 0,
|
|
1249
1250
|
"aria-controls": t["aria-controls"],
|
|
1250
1251
|
"aria-haspopup": a,
|
|
1251
1252
|
"aria-expanded": t["aria-expanded"]
|
|
1252
1253
|
};
|
|
1253
|
-
y.selectionMode !== "none" && !m && (
|
|
1254
|
+
y.selectionMode !== "none" && !m && (X["aria-checked"] = B), u && (X["aria-posinset"] = P == null ? void 0 : P.index, X["aria-setsize"] = lr(e.collection));
|
|
1254
1255
|
let ve = (E) => {
|
|
1255
|
-
E.pointerType === "keyboard" &&
|
|
1256
|
+
E.pointerType === "keyboard" && z(E), i == null || i(E);
|
|
1256
1257
|
}, se = () => {
|
|
1257
|
-
!m &&
|
|
1258
|
+
!m && A && (l ?? (y.selectionMode !== "multiple" || y.isLink(o))) && A();
|
|
1258
1259
|
}, re = (E) => {
|
|
1259
|
-
E.pointerType === "mouse" && (
|
|
1260
|
+
E.pointerType === "mouse" && (z(E), se()), d == null || d(E);
|
|
1260
1261
|
}, he = (E) => {
|
|
1261
|
-
E.pointerType !== "keyboard" && E.pointerType !== "mouse" && (
|
|
1262
|
+
E.pointerType !== "keyboard" && E.pointerType !== "mouse" && (z(E), se()), s == null || s(E);
|
|
1262
1263
|
}, { itemProps: Q, isFocused: Mn } = cr({
|
|
1263
1264
|
id: r,
|
|
1264
1265
|
selectionManager: y,
|
|
@@ -1278,15 +1279,15 @@ function Qr(t, e, n) {
|
|
|
1278
1279
|
onPressUp: re,
|
|
1279
1280
|
onPressChange: f,
|
|
1280
1281
|
onPressEnd: $,
|
|
1281
|
-
isDisabled:
|
|
1282
|
+
isDisabled: S
|
|
1282
1283
|
}), { hoverProps: Tn } = Ve({
|
|
1283
|
-
isDisabled:
|
|
1284
|
+
isDisabled: S,
|
|
1284
1285
|
onHoverStart(E) {
|
|
1285
1286
|
!Wn() && !(I && a === "dialog") && (y.setFocused(!0), y.setFocusedKey(o)), c == null || c(E);
|
|
1286
1287
|
},
|
|
1287
1288
|
onHoverChange: p,
|
|
1288
1289
|
onHoverEnd: h
|
|
1289
|
-
}), { keyboardProps: Fn } =
|
|
1290
|
+
}), { keyboardProps: Fn } = $r({
|
|
1290
1291
|
onKeyDown: (E) => {
|
|
1291
1292
|
if (E.repeat) {
|
|
1292
1293
|
E.continuePropagation();
|
|
@@ -1294,10 +1295,10 @@ function Qr(t, e, n) {
|
|
|
1294
1295
|
}
|
|
1295
1296
|
switch (E.key) {
|
|
1296
1297
|
case " ":
|
|
1297
|
-
!
|
|
1298
|
+
!S && y.selectionMode === "none" && !m && l !== !1 && A && A();
|
|
1298
1299
|
break;
|
|
1299
1300
|
case "Enter":
|
|
1300
|
-
!
|
|
1301
|
+
!S && l !== !1 && !m && A && A();
|
|
1301
1302
|
break;
|
|
1302
1303
|
default:
|
|
1303
1304
|
m || E.continuePropagation(), b == null || b(E);
|
|
@@ -1309,12 +1310,12 @@ function Qr(t, e, n) {
|
|
|
1309
1310
|
onBlur: F,
|
|
1310
1311
|
onFocus: v,
|
|
1311
1312
|
onFocusChange: w
|
|
1312
|
-
}), Re =
|
|
1313
|
+
}), Re = q(P == null ? void 0 : P.props);
|
|
1313
1314
|
delete Re.id;
|
|
1314
|
-
let Ln =
|
|
1315
|
+
let Ln = Zn(P == null ? void 0 : P.props);
|
|
1315
1316
|
return {
|
|
1316
1317
|
menuItemProps: {
|
|
1317
|
-
...
|
|
1318
|
+
...X,
|
|
1318
1319
|
...ae(Re, Ln, m ? {
|
|
1319
1320
|
onFocus: Q.onFocus,
|
|
1320
1321
|
"data-key": Q["data-key"]
|
|
@@ -1326,15 +1327,15 @@ function Qr(t, e, n) {
|
|
|
1326
1327
|
id: M
|
|
1327
1328
|
},
|
|
1328
1329
|
descriptionProps: {
|
|
1329
|
-
id:
|
|
1330
|
+
id: H
|
|
1330
1331
|
},
|
|
1331
1332
|
keyboardShortcutProps: {
|
|
1332
|
-
id:
|
|
1333
|
+
id: J
|
|
1333
1334
|
},
|
|
1334
1335
|
isFocused: Mn,
|
|
1335
1336
|
isSelected: B,
|
|
1336
1337
|
isPressed: Bn,
|
|
1337
|
-
isDisabled:
|
|
1338
|
+
isDisabled: S
|
|
1338
1339
|
};
|
|
1339
1340
|
}
|
|
1340
1341
|
function eo(t) {
|
|
@@ -1360,7 +1361,7 @@ function eo(t) {
|
|
|
1360
1361
|
function to(t, e) {
|
|
1361
1362
|
let { role: n = "dialog" } = t, r = fe();
|
|
1362
1363
|
r = t["aria-label"] ? void 0 : r;
|
|
1363
|
-
let o =
|
|
1364
|
+
let o = G(!1);
|
|
1364
1365
|
return Y(() => {
|
|
1365
1366
|
if (e.current && !e.current.contains(document.activeElement)) {
|
|
1366
1367
|
Ie(e.current);
|
|
@@ -1375,7 +1376,7 @@ function to(t, e) {
|
|
|
1375
1376
|
e
|
|
1376
1377
|
]), Yr(), {
|
|
1377
1378
|
dialogProps: {
|
|
1378
|
-
...
|
|
1379
|
+
...q(t, {
|
|
1379
1380
|
labelable: !0
|
|
1380
1381
|
}),
|
|
1381
1382
|
role: n,
|
|
@@ -1394,7 +1395,7 @@ function to(t, e) {
|
|
|
1394
1395
|
};
|
|
1395
1396
|
}
|
|
1396
1397
|
function wn(t) {
|
|
1397
|
-
let [e, n] =
|
|
1398
|
+
let [e, n] = Xe(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
|
|
1398
1399
|
const r = W(() => {
|
|
1399
1400
|
n(!0);
|
|
1400
1401
|
}, [
|
|
@@ -1418,7 +1419,7 @@ function wn(t) {
|
|
|
1418
1419
|
};
|
|
1419
1420
|
}
|
|
1420
1421
|
function Dn(t) {
|
|
1421
|
-
let e = wn(t), [n, r] =
|
|
1422
|
+
let e = wn(t), [n, r] = Z(null), [o, l] = Z([]), u = () => {
|
|
1422
1423
|
l([]), e.close();
|
|
1423
1424
|
};
|
|
1424
1425
|
return {
|
|
@@ -1495,7 +1496,7 @@ class no {
|
|
|
1495
1496
|
}
|
|
1496
1497
|
}
|
|
1497
1498
|
function ro(t) {
|
|
1498
|
-
let { onExpandedChange: e } = t, [n, r] =
|
|
1499
|
+
let { onExpandedChange: e } = t, [n, r] = Xe(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), o = Ye(t), l = pe(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1499
1500
|
t.disabledKeys
|
|
1500
1501
|
]), u = fr(t, W((i) => new no(i, {
|
|
1501
1502
|
expandedKeys: n
|
|
@@ -1515,7 +1516,7 @@ function ro(t) {
|
|
|
1515
1516
|
r(oo(n, i));
|
|
1516
1517
|
},
|
|
1517
1518
|
setExpandedKeys: r,
|
|
1518
|
-
selectionManager: new
|
|
1519
|
+
selectionManager: new qe(u, o)
|
|
1519
1520
|
};
|
|
1520
1521
|
}
|
|
1521
1522
|
function oo(t, e) {
|
|
@@ -1524,10 +1525,10 @@ function oo(t, e) {
|
|
|
1524
1525
|
}
|
|
1525
1526
|
const lo = /* @__PURE__ */ _({
|
|
1526
1527
|
placement: "bottom"
|
|
1527
|
-
}), Be = /* @__PURE__ */ _(null),
|
|
1528
|
+
}), Be = /* @__PURE__ */ _(null), To = /* @__PURE__ */ ke(function(e, n) {
|
|
1528
1529
|
[e, n] = ge(e, n, Be);
|
|
1529
1530
|
let r = O(xe), o = wn(e), l = e.isOpen != null || e.defaultOpen != null || !r ? o : r, u = Cr(n, l.isOpen) || e.isExiting || !1;
|
|
1530
|
-
if (
|
|
1531
|
+
if (xr()) {
|
|
1531
1532
|
let i = e.children;
|
|
1532
1533
|
return typeof i == "function" && (i = i({
|
|
1533
1534
|
trigger: e.trigger || null,
|
|
@@ -1546,7 +1547,7 @@ const lo = /* @__PURE__ */ _({
|
|
|
1546
1547
|
});
|
|
1547
1548
|
});
|
|
1548
1549
|
function ao({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
1549
|
-
let o =
|
|
1550
|
+
let o = G(null), [l, u] = Z(0);
|
|
1550
1551
|
V(() => {
|
|
1551
1552
|
o.current && t.isOpen && u(o.current.getBoundingClientRect().width);
|
|
1552
1553
|
}, [
|
|
@@ -1571,7 +1572,7 @@ function ao({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
|
1571
1572
|
...i.style,
|
|
1572
1573
|
...p.style
|
|
1573
1574
|
};
|
|
1574
|
-
return /* @__PURE__ */ g.createElement(
|
|
1575
|
+
return /* @__PURE__ */ g.createElement(Gr, {
|
|
1575
1576
|
...r,
|
|
1576
1577
|
isExiting: e,
|
|
1577
1578
|
portalContainer: n
|
|
@@ -1583,7 +1584,7 @@ function ao({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
|
1583
1584
|
inset: 0
|
|
1584
1585
|
}
|
|
1585
1586
|
}), /* @__PURE__ */ g.createElement("div", {
|
|
1586
|
-
...ae(
|
|
1587
|
+
...ae(q(r), i),
|
|
1587
1588
|
...p,
|
|
1588
1589
|
ref: $,
|
|
1589
1590
|
slot: r.slot || void 0,
|
|
@@ -1604,12 +1605,12 @@ function ao({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
|
1604
1605
|
onDismiss: t.close
|
|
1605
1606
|
})));
|
|
1606
1607
|
}
|
|
1607
|
-
const io = /* @__PURE__ */ _({}),
|
|
1608
|
-
function
|
|
1609
|
-
let e = Dn(t), n =
|
|
1608
|
+
const io = /* @__PURE__ */ _({}), Sn = /* @__PURE__ */ _(null), Te = /* @__PURE__ */ _(null), Fe = /* @__PURE__ */ _(null), be = /* @__PURE__ */ _(null);
|
|
1609
|
+
function Fo(t) {
|
|
1610
|
+
let e = Dn(t), n = G(null), { menuTriggerProps: r, menuProps: o } = Jr({
|
|
1610
1611
|
...t,
|
|
1611
1612
|
type: "menu"
|
|
1612
|
-
}, e, n), [l, u] =
|
|
1613
|
+
}, e, n), [l, u] = Z(null), a = W(() => {
|
|
1613
1614
|
n.current && u(n.current.offsetWidth + "px");
|
|
1614
1615
|
}, [
|
|
1615
1616
|
n
|
|
@@ -1618,11 +1619,11 @@ function To(t) {
|
|
|
1618
1619
|
ref: n,
|
|
1619
1620
|
onResize: a
|
|
1620
1621
|
});
|
|
1621
|
-
let i =
|
|
1622
|
+
let i = G(null);
|
|
1622
1623
|
return /* @__PURE__ */ g.createElement(ne, {
|
|
1623
1624
|
values: [
|
|
1624
1625
|
[
|
|
1625
|
-
|
|
1626
|
+
Sn,
|
|
1626
1627
|
{
|
|
1627
1628
|
...o,
|
|
1628
1629
|
ref: i
|
|
@@ -1649,14 +1650,14 @@ function To(t) {
|
|
|
1649
1650
|
}
|
|
1650
1651
|
]
|
|
1651
1652
|
]
|
|
1652
|
-
}, /* @__PURE__ */ g.createElement(
|
|
1653
|
+
}, /* @__PURE__ */ g.createElement(Je, {
|
|
1653
1654
|
...r,
|
|
1654
1655
|
ref: n,
|
|
1655
1656
|
isPressed: e.isOpen
|
|
1656
1657
|
}, t.children));
|
|
1657
1658
|
}
|
|
1658
|
-
const so = /* @__PURE__ */ _(null),
|
|
1659
|
-
return [e, n] = ge(e, n,
|
|
1659
|
+
const so = /* @__PURE__ */ _(null), Ro = /* @__PURE__ */ ke(function(e, n) {
|
|
1660
|
+
return [e, n] = ge(e, n, Sn), /* @__PURE__ */ g.createElement(Qn, {
|
|
1660
1661
|
content: /* @__PURE__ */ g.createElement(er, e)
|
|
1661
1662
|
}, (r) => r.size > 0 && /* @__PURE__ */ g.createElement(uo, {
|
|
1662
1663
|
props: e,
|
|
@@ -1666,7 +1667,7 @@ const so = /* @__PURE__ */ _(null), Fo = /* @__PURE__ */ ke(function(e, n) {
|
|
|
1666
1667
|
});
|
|
1667
1668
|
function uo({ props: t, collection: e, menuRef: n }) {
|
|
1668
1669
|
let { filterFn: r, collectionProps: o, collectionRef: l } = O(ar) || {};
|
|
1669
|
-
n =
|
|
1670
|
+
n = Ze(pe(() => Gn(n, l !== void 0 ? l : null), [
|
|
1670
1671
|
l,
|
|
1671
1672
|
n
|
|
1672
1673
|
]));
|
|
@@ -1677,7 +1678,7 @@ function uo({ props: t, collection: e, menuRef: n }) {
|
|
|
1677
1678
|
...t,
|
|
1678
1679
|
collection: u,
|
|
1679
1680
|
children: void 0
|
|
1680
|
-
}), i = O(Fe), { isVirtualized: d, CollectionRoot: s } = O(
|
|
1681
|
+
}), i = O(Fe), { isVirtualized: d, CollectionRoot: s } = O(Ge), { menuProps: f } = Xr({
|
|
1681
1682
|
...t,
|
|
1682
1683
|
...o,
|
|
1683
1684
|
isVirtualized: d,
|
|
@@ -1689,7 +1690,7 @@ function uo({ props: t, collection: e, menuRef: n }) {
|
|
|
1689
1690
|
values: {}
|
|
1690
1691
|
});
|
|
1691
1692
|
return /* @__PURE__ */ g.createElement(et, null, /* @__PURE__ */ g.createElement("div", {
|
|
1692
|
-
...
|
|
1693
|
+
...q(t),
|
|
1693
1694
|
...f,
|
|
1694
1695
|
...$,
|
|
1695
1696
|
ref: n,
|
|
@@ -1735,7 +1736,7 @@ function uo({ props: t, collection: e, menuRef: n }) {
|
|
|
1735
1736
|
scrollRef: n
|
|
1736
1737
|
}))));
|
|
1737
1738
|
}
|
|
1738
|
-
class co extends
|
|
1739
|
+
class co extends qe {
|
|
1739
1740
|
get focusedKey() {
|
|
1740
1741
|
return this.parent.focusedKey;
|
|
1741
1742
|
}
|
|
@@ -1757,7 +1758,7 @@ class co extends Je {
|
|
|
1757
1758
|
}
|
|
1758
1759
|
function fo(t, e, n, r = "react-aria-MenuSection") {
|
|
1759
1760
|
var o, l;
|
|
1760
|
-
let u = O(Te), { CollectionBranch: a } = O(
|
|
1761
|
+
let u = O(Te), { CollectionBranch: a } = O(Ge), [i, d] = Yn();
|
|
1761
1762
|
var s;
|
|
1762
1763
|
let { headingProps: f, groupProps: $ } = eo({
|
|
1763
1764
|
heading: d,
|
|
@@ -1769,7 +1770,7 @@ function fo(t, e, n, r = "react-aria-MenuSection") {
|
|
|
1769
1770
|
values: {}
|
|
1770
1771
|
}), p = O(be), h = Ye(t), b = t.selectionMode != null ? new co(p, h) : p;
|
|
1771
1772
|
return /* @__PURE__ */ g.createElement("section", {
|
|
1772
|
-
...
|
|
1773
|
+
...q(t),
|
|
1773
1774
|
...$,
|
|
1774
1775
|
...c,
|
|
1775
1776
|
ref: e
|
|
@@ -1792,15 +1793,15 @@ function fo(t, e, n, r = "react-aria-MenuSection") {
|
|
|
1792
1793
|
parent: n
|
|
1793
1794
|
})));
|
|
1794
1795
|
}
|
|
1795
|
-
const Me = /* @__PURE__ */ _(null),
|
|
1796
|
+
const Me = /* @__PURE__ */ _(null), Lo = /* @__PURE__ */ rr("item", function(e, n, r) {
|
|
1796
1797
|
var o;
|
|
1797
1798
|
[e, n] = ge(e, n, Me);
|
|
1798
|
-
let l = (o =
|
|
1799
|
+
let l = (o = qn(Me)) === null || o === void 0 ? void 0 : o.id, u = O(Te), a = Ze(n), i = O(be), { menuItemProps: d, labelProps: s, descriptionProps: f, keyboardShortcutProps: $, ...c } = Qr({
|
|
1799
1800
|
...e,
|
|
1800
1801
|
id: l,
|
|
1801
1802
|
key: r.key,
|
|
1802
1803
|
selectionManager: i
|
|
1803
|
-
}, u, a), { isFocusVisible: p, focusProps: h } =
|
|
1804
|
+
}, u, a), { isFocusVisible: p, focusProps: h } = Jn(), { hoverProps: b, isHovered: x } = Ve({
|
|
1804
1805
|
isDisabled: c.isDisabled
|
|
1805
1806
|
}), v = ie({
|
|
1806
1807
|
...e,
|
|
@@ -1847,9 +1848,9 @@ const Me = /* @__PURE__ */ _(null), Ro = /* @__PURE__ */ rr("item", function(e,
|
|
|
1847
1848
|
]
|
|
1848
1849
|
]
|
|
1849
1850
|
}, v.children));
|
|
1850
|
-
}),
|
|
1851
|
-
function
|
|
1852
|
-
let e = Dn(t), n =
|
|
1851
|
+
}), An = /* @__PURE__ */ _(null), xe = /* @__PURE__ */ _(null);
|
|
1852
|
+
function Io(t) {
|
|
1853
|
+
let e = Dn(t), n = G(null), { triggerProps: r, overlayProps: o } = lt({
|
|
1853
1854
|
type: "dialog"
|
|
1854
1855
|
}, e, n);
|
|
1855
1856
|
return r.id = me(), o["aria-labelledby"] = r.id, /* @__PURE__ */ g.createElement(ne, {
|
|
@@ -1863,7 +1864,7 @@ function Lo(t) {
|
|
|
1863
1864
|
e
|
|
1864
1865
|
],
|
|
1865
1866
|
[
|
|
1866
|
-
|
|
1867
|
+
An,
|
|
1867
1868
|
o
|
|
1868
1869
|
],
|
|
1869
1870
|
[
|
|
@@ -1874,15 +1875,15 @@ function Lo(t) {
|
|
|
1874
1875
|
}
|
|
1875
1876
|
]
|
|
1876
1877
|
]
|
|
1877
|
-
}, /* @__PURE__ */ g.createElement(
|
|
1878
|
+
}, /* @__PURE__ */ g.createElement(Je, {
|
|
1878
1879
|
...r,
|
|
1879
1880
|
ref: n,
|
|
1880
1881
|
isPressed: e.isOpen
|
|
1881
1882
|
}, t.children));
|
|
1882
1883
|
}
|
|
1883
|
-
const
|
|
1884
|
+
const Ko = /* @__PURE__ */ ke(function(e, n) {
|
|
1884
1885
|
let r = e["aria-labelledby"];
|
|
1885
|
-
[e, n] = ge(e, n,
|
|
1886
|
+
[e, n] = ge(e, n, An);
|
|
1886
1887
|
let { dialogProps: o, titleProps: l } = to({
|
|
1887
1888
|
...e,
|
|
1888
1889
|
// Only pass aria-labelledby from props, not context.
|
|
@@ -1901,7 +1902,7 @@ const Io = /* @__PURE__ */ ke(function(e, n) {
|
|
|
1901
1902
|
}
|
|
1902
1903
|
});
|
|
1903
1904
|
return /* @__PURE__ */ g.createElement("section", {
|
|
1904
|
-
...
|
|
1905
|
+
...q(e),
|
|
1905
1906
|
...o,
|
|
1906
1907
|
...a,
|
|
1907
1908
|
ref: n,
|
|
@@ -1909,7 +1910,7 @@ const Io = /* @__PURE__ */ ke(function(e, n) {
|
|
|
1909
1910
|
}, /* @__PURE__ */ g.createElement(ne, {
|
|
1910
1911
|
values: [
|
|
1911
1912
|
[
|
|
1912
|
-
|
|
1913
|
+
Xn,
|
|
1913
1914
|
{
|
|
1914
1915
|
slots: {
|
|
1915
1916
|
[Ke]: {},
|
|
@@ -1935,17 +1936,17 @@ const Io = /* @__PURE__ */ ke(function(e, n) {
|
|
|
1935
1936
|
}, a.children));
|
|
1936
1937
|
});
|
|
1937
1938
|
export {
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1939
|
+
Fo as $,
|
|
1940
|
+
To as a,
|
|
1941
|
+
Ro as b,
|
|
1942
|
+
Lo as c,
|
|
1943
|
+
Io as d,
|
|
1944
|
+
Jr as e,
|
|
1944
1945
|
wn as f,
|
|
1945
1946
|
De as g,
|
|
1946
1947
|
xe as h,
|
|
1947
1948
|
Be as i,
|
|
1948
1949
|
jr as j,
|
|
1949
|
-
|
|
1950
|
-
|
|
1950
|
+
An as k,
|
|
1951
|
+
Ko as l
|
|
1951
1952
|
};
|