@midas-ds/components 10.4.1 → 11.0.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/{AccordionItem-oeN1Cc09.js → AccordionItem-BtDoammf.js} +4 -4
- package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
- package/BadgeContainer-DWVHS5dn.cjs +1 -0
- package/{Breadcrumbs-D8ad6xvL.js → Breadcrumbs-BBzSV4SK.js} +4 -4
- package/{Breadcrumbs-DkJIkGG5.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
- package/{Button-DtSrCAf6.js → Button-BjMaGya2.js} +1 -1
- package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
- package/CHANGELOG.md +23 -0
- package/{Card-BzJ_OEe6.js → Card-BRs1FKX5.js} +3 -3
- package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
- package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
- package/{CheckboxGroup-CcTfzurp.js → CheckboxGroup-CC9QGMuE.js} +7 -8
- package/CheckboxGroup-DhQX10rP.cjs +1 -0
- package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
- package/{ColorSchemeSwitch-y8qKczjQ.js → ColorSchemeSwitch-Cnyb9EKC.js} +1 -1
- package/ComboBox-CiCB2e4W.cjs +1 -0
- package/{ComboBox-CZyP8Dfh.js → ComboBox-Dnk8JMQ6.js} +64 -65
- package/{DateField-BTROlenJ.js → DateField-BAS2v9aI.js} +4 -4
- package/{DateField-1w5J_iyF.cjs → DateField-DleDM0Sy.cjs} +1 -1
- package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
- package/DateInputDivider-ToFY-yjB.cjs +1 -0
- package/{DateRangePicker-DmZP9laM.js → DateRangePicker-Blej-jD0.js} +43 -44
- package/DateRangePicker-CYXWnCTq.cjs +6 -0
- package/{Dialog-DnMwnqiC.cjs → Dialog-B3R3WtL5.cjs} +1 -1
- package/{Dialog-0ZBhhPyd.js → Dialog-BkUw6PlA.js} +6 -6
- package/{Dialog-CtVrVuMr.js → Dialog-DKHo0W9B.js} +443 -468
- package/Dialog-DtHk3eXI.cjs +1 -0
- package/{DragAndDrop-BoEd260f.cjs → DragAndDrop-CSg60YQE.cjs} +1 -1
- package/{DragAndDrop-DkSTL28C.js → DragAndDrop-DOXLfJaA.js} +1 -1
- package/{Dropdown-By91MEV2.cjs → Dropdown-CYakzdJg.cjs} +1 -1
- package/{Dropdown-BEAMfAxj.js → Dropdown-D6WCi_Ll.js} +2 -2
- package/FieldError-Bv3Q6ZP-.cjs +1 -0
- package/FieldError-CDCvUjK5.js +46 -0
- package/{FileUpload-DvQdIZ6k.js → FileUpload-BokzdXVc.js} +448 -562
- package/{FileUpload-vf0oJd0K.cjs → FileUpload-Bz9md5zc.cjs} +2 -2
- package/{FocusScope-D_hwN_TJ.js → FocusScope-BCsrRPqD.js} +1 -1
- package/{Group-CpkUzEAs.js → Group-B0vQfHDy.js} +1 -1
- package/{Heading-NxtGri2i.js → Heading-D2y_kiC0.js} +1 -1
- package/{InfoBanner-yj90XVEP.js → InfoBanner-D05poAe3.js} +1 -1
- package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
- package/{Label-D2GmP8_2.js → Label-JLgFEbP9.js} +4 -4
- package/{Label-E3LhQfNv.cjs → Label-VO6CAFux.cjs} +1 -1
- package/{Layout-Ri7XQHFp.cjs → Layout-BwLxIwtY.cjs} +1 -1
- package/{Layout-BMNgqjXv.js → Layout-CcADAhds.js} +6 -6
- package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
- package/{Link-CVvnCOGP.cjs → Link-ESjrl63P.cjs} +1 -1
- package/{Link-BCVI5W_i.js → Link-ovwNVMfg.js} +12 -11
- package/{LinkButton-Cui-gvAk.js → LinkButton-BkZULm2a.js} +1 -1
- package/{ListBox-BCz5-23H.cjs → ListBox-B0E1hdEt.cjs} +1 -1
- package/{ListBox-C-isJIHL.js → ListBox-CsxDGpCA.js} +11 -11
- package/{ListBoxButton-DNm3gvcT.cjs → ListBoxButton-BsuHFd_O.cjs} +1 -1
- package/{ListBoxButton-C_krklY0.js → ListBoxButton-DawRfuny.js} +1 -1
- package/{ListBoxSection-CfQZoURJ.cjs → ListBoxSection-C-Rz358T.cjs} +1 -1
- package/{ListBoxSection-BVR2xtOH.js → ListBoxSection-Cc2cx0_S.js} +6 -6
- package/{ListKeyboardDelegate-CY6t6y1t.js → ListKeyboardDelegate-C-sPNj0f.js} +2 -2
- package/{ListKeyboardDelegate-CPsZ7D83.cjs → ListKeyboardDelegate-ZKBk2IId.cjs} +1 -1
- package/{OverlayArrow-CfhSYL46.js → OverlayArrow-DB_aVTVM.js} +1 -1
- package/Popover--r4Zr4mO.cjs +1 -0
- package/{Popover-C8VY1YKi.js → Popover-DypW9ift.js} +13 -13
- package/PressResponder-4jE_HLu3.cjs +1 -0
- package/PressResponder-C3APAKsz.js +34 -0
- package/{ProgressBar-Bpq-hyZa.js → ProgressBar-CFgcqHTR.js} +2 -2
- package/{ProgressBar-D4lOEhAh.cjs → ProgressBar-CJFNiudl.cjs} +1 -1
- package/Radio-CMH6pTWD.cjs +1 -0
- package/{Radio-BPcq9kW5.js → Radio-DUBSD0kQ.js} +19 -20
- package/{RangeCalendar-6miAJVoO.js → RangeCalendar-BCruEq9d.js} +16 -15
- package/RangeCalendar-BY82hPRu.cjs +11 -0
- package/{SearchField-DEoGi9xv.cjs → SearchField-QFyuaT-K.cjs} +1 -1
- package/{SearchField-CDyD5iWr.js → SearchField-nwlyszwt.js} +3 -3
- package/Select-C5i-rIDh.cjs +1 -0
- package/{Select-B2wYDnAU.js → Select-DKME5lZp.js} +104 -105
- package/SelectionManager-BJjqIWtf.cjs +1 -0
- package/{SelectionManager-zsWy3vsd.js → SelectionManager-BubxiIKu.js} +25 -24
- package/{Separator-Dn5LYN5I.js → Separator-CEZ5y7tZ.js} +4 -4
- package/{Separator-CxF-3jhR.cjs → Separator-DPLEx950.cjs} +1 -1
- package/{TabList-CheXtBJm.cjs → TabList-BkSWzbDG.cjs} +1 -1
- package/{TabList-D0qzIjSx.js → TabList-QApx8qRC.js} +8 -8
- package/{Table-zKvjzd9t.js → Table-B5Aine4F.js} +35 -34
- package/Table-DGYC-sDq.cjs +16 -0
- package/{Tag-BoqT5nbh.js → Tag-Byva_Xuy.js} +123 -122
- package/Tag-bYq-wf5D.cjs +1 -0
- package/{Text-DlKqpvSa.js → Text-BPcfhYQ9.js} +1 -1
- package/{Text-92cPh38G.js → Text-DcZqSUN9.js} +3 -3
- package/{TextArea-Pxr-eLXe.js → TextArea-BhmdgD1w.js} +8 -8
- package/{TextArea-B5und61h.cjs → TextArea-CY_tzBAJ.cjs} +1 -1
- package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
- package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
- package/{Toast-DfKiA5hp.js → Toast-CWt_mNIg.js} +1 -1
- package/{ToggleButtonGroup-DhlfvYGg.js → ToggleButtonGroup-HjvaTYD4.js} +3 -3
- package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
- package/accordion/index.js +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/FileUpload.d.ts +3 -14
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.d.ts +1 -1
- package/file-upload/index.js +3 -2
- package/{getScrollParent-CsZ9ciml.cjs → getScrollParent-DuKmPmUa.cjs} +1 -1
- package/{getScrollParent-CT_L9LUr.js → getScrollParent-Ru2U2LlM.js} +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +97 -96
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +1 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +1 -0
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/{tokens-BghDnMdO.cjs → tokens-BF-dPard.cjs} +1 -1
- package/{tokens-fEwCQXDv.js → tokens-r1r3wC04.js} +4 -3
- package/tooltip/index.js +1 -1
- package/{useButton-1-Jf-oHj.js → useButton-BoIV3kDJ.js} +5 -5
- package/{useDateFormatter-BVCkxVdw.js → useDateFormatter-C7BJgoDR.js} +1 -1
- package/useDescription-CPo72trh.cjs +1 -0
- package/useDescription-DYfKjGGU.js +32 -0
- package/{useField-BEBXv5Mh.js → useField-CefQB81E.js} +1 -1
- package/{useFilter-e2oIVF_O.cjs → useFilter-BhM2yVO3.cjs} +1 -1
- package/{useFilter-CousKe2K.js → useFilter-DginflOU.js} +1 -1
- package/{useFocusable-ChPA2Jc7.js → useFocusable-BjE42axF.js} +7 -7
- package/{useHasTabbableChild-BE81d_ab.js → useHasTabbableChild-DP62kzkG.js} +1 -1
- package/{useHighlightSelectionDescription-BfR_vGOe.cjs → useHighlightSelectionDescription-DmbDkFGY.cjs} +1 -1
- package/{useHighlightSelectionDescription-D73hrkmn.js → useHighlightSelectionDescription-xr_16pKd.js} +2 -2
- package/{useListState-CebsX_1d.js → useListState-DNB7JWoj.js} +1 -1
- package/{useListState-DymkJGDF.cjs → useListState-wLau6fXo.cjs} +1 -1
- package/{usePress-DuR4pVsE.js → usePress-BW47IcyU.js} +34 -34
- package/{useSingleSelectListState-BLXvGjLI.js → useSingleSelectListState-B0OMoHd_.js} +1 -1
- package/{useSingleSelectListState-BPhlCU26.cjs → useSingleSelectListState-DlO5H9N-.cjs} +1 -1
- package/{useTextField-C-sUypsx.js → useTextField-DjxayZsV.js} +2 -2
- package/{utils-DJhAJHk_.js → utils-KLjWgdLR.js} +5 -5
- package/BadgeContainer-I1XA3OCl.cjs +0 -1
- package/CheckboxGroup-DWxQTABg.cjs +0 -1
- package/ComboBox-Dg2xhkLC.cjs +0 -1
- package/DateInputDivider-3BvwXXa9.cjs +0 -1
- package/DateRangePicker-CX3830ZF.cjs +0 -6
- package/Dialog-CSnN6baf.cjs +0 -1
- package/FieldError-B3YFj-an.js +0 -23
- package/FieldError-BbR-29BM.js +0 -28
- package/FieldError-MVsU-Mgw.cjs +0 -1
- package/FieldError-bRTpchvr.cjs +0 -1
- package/Popover-CnAsw3wI.cjs +0 -1
- package/Radio-CwNbUGah.cjs +0 -1
- package/RangeCalendar-CAI1PRDo.cjs +0 -11
- package/Select-nRN944QZ.cjs +0 -1
- package/SelectionManager-D0jYUYcy.cjs +0 -1
- package/Table-DAhnYYIA.cjs +0 -16
- package/Tag-t-aJVo3W.cjs +0 -1
- package/file-upload/intl/translations.json.d.ts +0 -17
- package/scrollIntoView-BLnsPvFA.js +0 -87
- package/scrollIntoView-joIyo-Jt.cjs +0 -1
|
@@ -1,67 +1,43 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import {
|
|
1
|
+
import { e as Pr } from "./Button-CepQFEit.js";
|
|
2
|
+
import { $ as re, a as j, f as L, c as Er, b as Ke, g as de, h as Dr, d as Cr } from "./utils-KLjWgdLR.js";
|
|
3
3
|
import { $ as Ar } from "./RSPContexts-BW2SEIqe.js";
|
|
4
|
-
import { h as Mr, e as
|
|
5
|
-
import { $ as
|
|
6
|
-
import { $ as
|
|
7
|
-
import f, { useRef as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { $ as
|
|
11
|
-
import { l as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { b as eo, m as ke } from "./utils-CoCR_Fce.js";
|
|
4
|
+
import { h as Mr, e as wr, d as Sr, a as Te, b as kr, c as Br, f as Fr, g as Oe } from "./OverlayArrow-DB_aVTVM.js";
|
|
5
|
+
import { $ as Kr, b as Tr, c as Or, d as Re, e as Rr, g as Ir } from "./Collection-D2jVTmDW.js";
|
|
6
|
+
import { $ as Nr, a as Lr, b as Ce, c as zr, d as _r } from "./Separator-CEZ5y7tZ.js";
|
|
7
|
+
import f, { useRef as k, useEffect as z, useState as B, useMemo as V, useContext as E, useCallback as pe, forwardRef as be, createContext as D } from "react";
|
|
8
|
+
import { $ as Hr } from "./Text-DcZqSUN9.js";
|
|
9
|
+
import { d as Ae, c as oe, $ as W, e as ce, a as G, b as Q } from "./mergeProps-C1U1OIeJ.js";
|
|
10
|
+
import { $ as F } from "./filterDOMProps-D6KHYVBX.js";
|
|
11
|
+
import { l as Ur, d as Vr, $ as Ie, a as Wr, b as Ne } from "./SelectionManager-BubxiIKu.js";
|
|
12
|
+
import { a as jr, $ as Le } from "./PressResponder-C3APAKsz.js";
|
|
13
|
+
import { l as Gr, $ as ze, a as Me, c as qr } from "./useHover-DQvJ3Y-W.js";
|
|
14
|
+
import { b as Zr, m as we } from "./utils-CoCR_Fce.js";
|
|
16
15
|
import { $ as _e } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import { $ as
|
|
23
|
-
import {
|
|
24
|
-
import { $ as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { $ as
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
let
|
|
31
|
-
...e,
|
|
32
|
-
ref: r,
|
|
33
|
-
register() {
|
|
34
|
-
a.current = !0, o && o.register();
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
return Jr(o, r), F(() => {
|
|
38
|
-
a.current || (process.env.NODE_ENV !== "production" && console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), a.current = !0);
|
|
39
|
-
}, []), /* @__PURE__ */ f.createElement(fe.Provider, {
|
|
40
|
-
value: s
|
|
41
|
-
}, t);
|
|
42
|
-
});
|
|
43
|
-
function co({ children: t }) {
|
|
44
|
-
let e = z(() => ({
|
|
45
|
-
register: () => {
|
|
46
|
-
}
|
|
47
|
-
}), []);
|
|
48
|
-
return /* @__PURE__ */ f.createElement(fe.Provider, {
|
|
49
|
-
value: e
|
|
50
|
-
}, t);
|
|
51
|
-
}
|
|
52
|
-
function fo(t) {
|
|
53
|
-
let { ref: e, onInteractOutside: r, isDisabled: a, onInteractOutsideStart: o } = t, s = M({
|
|
16
|
+
import { c as Jr, b as Yr, d as Xr } from "./usePress-BW47IcyU.js";
|
|
17
|
+
import { f as Qr, b as fe } from "./useFocusable-BjE42axF.js";
|
|
18
|
+
import { $ as eo } from "./useControlledState-u436Wbp1.js";
|
|
19
|
+
import { c as to, a as He } from "./FocusScope-BCsrRPqD.js";
|
|
20
|
+
import ro from "react-dom";
|
|
21
|
+
import { $ as oo } from "./SSRProvider-40TXmsUG.js";
|
|
22
|
+
import { b as ao } from "./Hidden-C9KWUR7b.js";
|
|
23
|
+
import { $ as no } from "./context-CGNJ3grH.js";
|
|
24
|
+
import { $ as so } from "./useFocusWithin-T1ifEM_s.js";
|
|
25
|
+
import { $ as Ue } from "./getScrollParent-Ru2U2LlM.js";
|
|
26
|
+
import { $ as lo } from "./useLabels-LrKQiY11.js";
|
|
27
|
+
import { $ as io } from "./VisuallyHidden-CYfmTSCD.js";
|
|
28
|
+
function uo(t) {
|
|
29
|
+
let { ref: e, onInteractOutside: r, isDisabled: a, onInteractOutsideStart: o } = t, s = k({
|
|
54
30
|
isPointerDown: !1,
|
|
55
31
|
ignoreEmulatedMouseEvents: !1
|
|
56
|
-
}), u =
|
|
32
|
+
}), u = Ae((n) => {
|
|
57
33
|
r && Y(n, e) && (o && o(n), s.current.isPointerDown = !0);
|
|
58
|
-
}), i =
|
|
34
|
+
}), i = Ae((n) => {
|
|
59
35
|
r && r(n);
|
|
60
36
|
});
|
|
61
|
-
|
|
37
|
+
z(() => {
|
|
62
38
|
let n = s.current;
|
|
63
39
|
if (a) return;
|
|
64
|
-
const d = e.current, l =
|
|
40
|
+
const d = e.current, l = Zr(d);
|
|
65
41
|
if (typeof PointerEvent < "u") {
|
|
66
42
|
let $ = (p) => {
|
|
67
43
|
n.isPointerDown && Y(p, e) && i(p), n.isPointerDown = !1;
|
|
@@ -94,37 +70,37 @@ function Y(t, e) {
|
|
|
94
70
|
}
|
|
95
71
|
return e.current ? !t.composedPath().includes(e.current) : !1;
|
|
96
72
|
}
|
|
97
|
-
const
|
|
98
|
-
function
|
|
73
|
+
const A = [];
|
|
74
|
+
function co(t, e) {
|
|
99
75
|
let { onClose: r, shouldCloseOnBlur: a, isOpen: o, isDismissable: s = !1, isKeyboardDismissDisabled: u = !1, shouldCloseOnInteractOutside: i } = t;
|
|
100
|
-
|
|
101
|
-
if (o && !
|
|
102
|
-
return
|
|
103
|
-
let b =
|
|
104
|
-
b >= 0 &&
|
|
76
|
+
z(() => {
|
|
77
|
+
if (o && !A.includes(e))
|
|
78
|
+
return A.push(e), () => {
|
|
79
|
+
let b = A.indexOf(e);
|
|
80
|
+
b >= 0 && A.splice(b, 1);
|
|
105
81
|
};
|
|
106
82
|
}, [
|
|
107
83
|
o,
|
|
108
84
|
e
|
|
109
85
|
]);
|
|
110
86
|
let n = () => {
|
|
111
|
-
|
|
87
|
+
A[A.length - 1] === e && r && r();
|
|
112
88
|
}, d = (b) => {
|
|
113
|
-
(!i || i(b.target)) &&
|
|
89
|
+
(!i || i(b.target)) && A[A.length - 1] === e && (b.stopPropagation(), b.preventDefault());
|
|
114
90
|
}, l = (b) => {
|
|
115
|
-
(!i || i(b.target)) && (
|
|
91
|
+
(!i || i(b.target)) && (A[A.length - 1] === e && (b.stopPropagation(), b.preventDefault()), n());
|
|
116
92
|
}, $ = (b) => {
|
|
117
93
|
b.key === "Escape" && !u && !b.nativeEvent.isComposing && (b.stopPropagation(), b.preventDefault(), n());
|
|
118
94
|
};
|
|
119
|
-
|
|
95
|
+
uo({
|
|
120
96
|
ref: e,
|
|
121
97
|
onInteractOutside: s && o ? l : void 0,
|
|
122
98
|
onInteractOutsideStart: d
|
|
123
99
|
});
|
|
124
|
-
let { focusWithinProps: p } =
|
|
100
|
+
let { focusWithinProps: p } = so({
|
|
125
101
|
isDisabled: !a,
|
|
126
102
|
onBlurWithin: (b) => {
|
|
127
|
-
!b.relatedTarget ||
|
|
103
|
+
!b.relatedTarget || to(b.relatedTarget) || (!i || i(b.relatedTarget)) && (r == null || r());
|
|
128
104
|
}
|
|
129
105
|
}), c = (b) => {
|
|
130
106
|
b.target === b.currentTarget && b.preventDefault();
|
|
@@ -139,9 +115,9 @@ function $o(t, e) {
|
|
|
139
115
|
}
|
|
140
116
|
};
|
|
141
117
|
}
|
|
142
|
-
function
|
|
118
|
+
function Ve(t, e, r) {
|
|
143
119
|
let { type: a } = t, { isOpen: o } = e;
|
|
144
|
-
|
|
120
|
+
z(() => {
|
|
145
121
|
r && r.current && Mr.set(r.current, e.close);
|
|
146
122
|
});
|
|
147
123
|
let s;
|
|
@@ -159,7 +135,7 @@ function We(t, e, r) {
|
|
|
159
135
|
}
|
|
160
136
|
};
|
|
161
137
|
}
|
|
162
|
-
const ie = typeof document < "u" && window.visualViewport,
|
|
138
|
+
const ie = typeof document < "u" && window.visualViewport, fo = /* @__PURE__ */ new Set([
|
|
163
139
|
"checkbox",
|
|
164
140
|
"radio",
|
|
165
141
|
"range",
|
|
@@ -171,25 +147,25 @@ const ie = typeof document < "u" && window.visualViewport, po = /* @__PURE__ */
|
|
|
171
147
|
"reset"
|
|
172
148
|
]);
|
|
173
149
|
let X = 0, ue;
|
|
174
|
-
function
|
|
150
|
+
function $o(t = {}) {
|
|
175
151
|
let { isDisabled: e } = t;
|
|
176
|
-
|
|
152
|
+
W(() => {
|
|
177
153
|
if (!e)
|
|
178
|
-
return X++, X === 1 && (
|
|
154
|
+
return X++, X === 1 && (Gr() ? ue = bo() : ue = po()), () => {
|
|
179
155
|
X--, X === 0 && ue();
|
|
180
156
|
};
|
|
181
157
|
}, [
|
|
182
158
|
e
|
|
183
159
|
]);
|
|
184
160
|
}
|
|
185
|
-
function
|
|
161
|
+
function po() {
|
|
186
162
|
let t = window.innerWidth - document.documentElement.clientWidth;
|
|
187
163
|
return ce(t > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
|
|
188
|
-
("scrollbarGutter" in document.documentElement.style ?
|
|
164
|
+
("scrollbarGutter" in document.documentElement.style ? S(document.documentElement, "scrollbarGutter", "stable") : S(document.documentElement, "paddingRight", `${t}px`)), S(document.documentElement, "overflow", "hidden"));
|
|
189
165
|
}
|
|
190
|
-
function
|
|
166
|
+
function bo() {
|
|
191
167
|
let t, e, r = (d) => {
|
|
192
|
-
t = Ue(d.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e =
|
|
168
|
+
t = Ue(d.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e = S(t, "overscrollBehavior", "contain"));
|
|
193
169
|
}, a = (d) => {
|
|
194
170
|
if (!t || t === document.documentElement || t === document.body) {
|
|
195
171
|
d.preventDefault();
|
|
@@ -200,10 +176,10 @@ function go() {
|
|
|
200
176
|
e && e();
|
|
201
177
|
}, s = (d) => {
|
|
202
178
|
let l = d.target;
|
|
203
|
-
|
|
179
|
+
mo(l) && (i(), l.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
204
180
|
l.style.transform = "", ie && (ie.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
205
|
-
|
|
206
|
-
}) : ie.addEventListener("resize", () =>
|
|
181
|
+
Se(l);
|
|
182
|
+
}) : ie.addEventListener("resize", () => Se(l), {
|
|
207
183
|
once: !0
|
|
208
184
|
}));
|
|
209
185
|
}));
|
|
@@ -212,35 +188,35 @@ function go() {
|
|
|
212
188
|
let d = () => {
|
|
213
189
|
window.scrollTo(0, 0);
|
|
214
190
|
}, l = window.pageXOffset, $ = window.pageYOffset;
|
|
215
|
-
u = ce(
|
|
191
|
+
u = ce(H(window, "scroll", d), S(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), S(document.documentElement, "overflow", "hidden"), S(document.body, "marginTop", `-${$}px`), () => {
|
|
216
192
|
window.scrollTo(l, $);
|
|
217
193
|
}), window.scrollTo(0, 0);
|
|
218
|
-
}, n = ce(
|
|
194
|
+
}, n = ce(H(document, "touchstart", r, {
|
|
219
195
|
passive: !1,
|
|
220
196
|
capture: !0
|
|
221
|
-
}),
|
|
197
|
+
}), H(document, "touchmove", a, {
|
|
222
198
|
passive: !1,
|
|
223
199
|
capture: !0
|
|
224
|
-
}),
|
|
200
|
+
}), H(document, "touchend", o, {
|
|
225
201
|
passive: !1,
|
|
226
202
|
capture: !0
|
|
227
|
-
}),
|
|
203
|
+
}), H(document, "focus", s, !0));
|
|
228
204
|
return () => {
|
|
229
205
|
e == null || e(), u == null || u(), n();
|
|
230
206
|
};
|
|
231
207
|
}
|
|
232
|
-
function
|
|
208
|
+
function S(t, e, r) {
|
|
233
209
|
let a = t.style[e];
|
|
234
210
|
return t.style[e] = r, () => {
|
|
235
211
|
t.style[e] = a;
|
|
236
212
|
};
|
|
237
213
|
}
|
|
238
|
-
function
|
|
214
|
+
function H(t, e, r, a) {
|
|
239
215
|
return t.addEventListener(e, r, a), () => {
|
|
240
216
|
t.removeEventListener(e, r, a);
|
|
241
217
|
};
|
|
242
218
|
}
|
|
243
|
-
function
|
|
219
|
+
function Se(t) {
|
|
244
220
|
let e = document.scrollingElement || document.documentElement, r = t;
|
|
245
221
|
for (; r && r !== e; ) {
|
|
246
222
|
let a = Ue(r);
|
|
@@ -251,190 +227,190 @@ function Be(t) {
|
|
|
251
227
|
r = a.parentElement;
|
|
252
228
|
}
|
|
253
229
|
}
|
|
254
|
-
function
|
|
255
|
-
return t instanceof HTMLInputElement && !
|
|
230
|
+
function mo(t) {
|
|
231
|
+
return t instanceof HTMLInputElement && !fo.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
256
232
|
}
|
|
233
|
+
var We = {};
|
|
234
|
+
We = {
|
|
235
|
+
dismiss: "تجاهل"
|
|
236
|
+
};
|
|
257
237
|
var je = {};
|
|
258
238
|
je = {
|
|
259
|
-
dismiss: "
|
|
239
|
+
dismiss: "Отхвърляне"
|
|
260
240
|
};
|
|
261
241
|
var Ge = {};
|
|
262
242
|
Ge = {
|
|
263
|
-
dismiss: "
|
|
243
|
+
dismiss: "Odstranit"
|
|
264
244
|
};
|
|
265
245
|
var qe = {};
|
|
266
246
|
qe = {
|
|
267
|
-
dismiss: "
|
|
247
|
+
dismiss: "Luk"
|
|
268
248
|
};
|
|
269
249
|
var Ze = {};
|
|
270
250
|
Ze = {
|
|
271
|
-
dismiss: "
|
|
251
|
+
dismiss: "Schließen"
|
|
272
252
|
};
|
|
273
253
|
var Je = {};
|
|
274
254
|
Je = {
|
|
275
|
-
dismiss: "
|
|
255
|
+
dismiss: "Απόρριψη"
|
|
276
256
|
};
|
|
277
257
|
var Ye = {};
|
|
278
258
|
Ye = {
|
|
279
|
-
dismiss: "
|
|
259
|
+
dismiss: "Dismiss"
|
|
280
260
|
};
|
|
281
261
|
var Xe = {};
|
|
282
262
|
Xe = {
|
|
283
|
-
dismiss: "
|
|
263
|
+
dismiss: "Descartar"
|
|
284
264
|
};
|
|
285
265
|
var Qe = {};
|
|
286
266
|
Qe = {
|
|
287
|
-
dismiss: "
|
|
267
|
+
dismiss: "Lõpeta"
|
|
288
268
|
};
|
|
289
269
|
var et = {};
|
|
290
270
|
et = {
|
|
291
|
-
dismiss: "
|
|
271
|
+
dismiss: "Hylkää"
|
|
292
272
|
};
|
|
293
273
|
var tt = {};
|
|
294
274
|
tt = {
|
|
295
|
-
dismiss: "
|
|
275
|
+
dismiss: "Rejeter"
|
|
296
276
|
};
|
|
297
277
|
var rt = {};
|
|
298
278
|
rt = {
|
|
299
|
-
dismiss: "
|
|
279
|
+
dismiss: "התעלם"
|
|
300
280
|
};
|
|
301
281
|
var ot = {};
|
|
302
282
|
ot = {
|
|
303
|
-
dismiss: "
|
|
283
|
+
dismiss: "Odbaci"
|
|
304
284
|
};
|
|
305
285
|
var at = {};
|
|
306
286
|
at = {
|
|
307
|
-
dismiss: "
|
|
287
|
+
dismiss: "Elutasítás"
|
|
308
288
|
};
|
|
309
289
|
var nt = {};
|
|
310
290
|
nt = {
|
|
311
|
-
dismiss: "
|
|
291
|
+
dismiss: "Ignora"
|
|
312
292
|
};
|
|
313
293
|
var st = {};
|
|
314
294
|
st = {
|
|
315
|
-
dismiss: "
|
|
295
|
+
dismiss: "閉じる"
|
|
316
296
|
};
|
|
317
297
|
var lt = {};
|
|
318
298
|
lt = {
|
|
319
|
-
dismiss: "
|
|
299
|
+
dismiss: "무시"
|
|
320
300
|
};
|
|
321
301
|
var it = {};
|
|
322
302
|
it = {
|
|
323
|
-
dismiss: "
|
|
303
|
+
dismiss: "Atmesti"
|
|
324
304
|
};
|
|
325
305
|
var ut = {};
|
|
326
306
|
ut = {
|
|
327
|
-
dismiss: "
|
|
307
|
+
dismiss: "Nerādīt"
|
|
328
308
|
};
|
|
329
309
|
var dt = {};
|
|
330
310
|
dt = {
|
|
331
|
-
dismiss: "
|
|
311
|
+
dismiss: "Lukk"
|
|
332
312
|
};
|
|
333
313
|
var ct = {};
|
|
334
314
|
ct = {
|
|
335
|
-
dismiss: "
|
|
315
|
+
dismiss: "Negeren"
|
|
336
316
|
};
|
|
337
317
|
var ft = {};
|
|
338
318
|
ft = {
|
|
339
|
-
dismiss: "
|
|
319
|
+
dismiss: "Zignoruj"
|
|
340
320
|
};
|
|
341
321
|
var $t = {};
|
|
342
322
|
$t = {
|
|
343
|
-
dismiss: "
|
|
323
|
+
dismiss: "Descartar"
|
|
344
324
|
};
|
|
345
325
|
var pt = {};
|
|
346
326
|
pt = {
|
|
347
|
-
dismiss: "
|
|
327
|
+
dismiss: "Dispensar"
|
|
348
328
|
};
|
|
349
329
|
var bt = {};
|
|
350
330
|
bt = {
|
|
351
|
-
dismiss: "
|
|
331
|
+
dismiss: "Revocare"
|
|
352
332
|
};
|
|
353
333
|
var mt = {};
|
|
354
334
|
mt = {
|
|
355
|
-
dismiss: "
|
|
335
|
+
dismiss: "Пропустить"
|
|
356
336
|
};
|
|
357
337
|
var gt = {};
|
|
358
338
|
gt = {
|
|
359
|
-
dismiss: "
|
|
339
|
+
dismiss: "Zrušiť"
|
|
360
340
|
};
|
|
361
341
|
var vt = {};
|
|
362
342
|
vt = {
|
|
363
|
-
dismiss: "
|
|
343
|
+
dismiss: "Opusti"
|
|
364
344
|
};
|
|
365
345
|
var xt = {};
|
|
366
346
|
xt = {
|
|
367
|
-
dismiss: "
|
|
347
|
+
dismiss: "Odbaci"
|
|
368
348
|
};
|
|
369
349
|
var yt = {};
|
|
370
350
|
yt = {
|
|
371
|
-
dismiss: "
|
|
351
|
+
dismiss: "Avvisa"
|
|
372
352
|
};
|
|
373
353
|
var ht = {};
|
|
374
354
|
ht = {
|
|
375
|
-
dismiss: "
|
|
355
|
+
dismiss: "Kapat"
|
|
376
356
|
};
|
|
377
357
|
var Pt = {};
|
|
378
358
|
Pt = {
|
|
379
|
-
dismiss: "
|
|
359
|
+
dismiss: "Скасувати"
|
|
380
360
|
};
|
|
381
361
|
var Et = {};
|
|
382
362
|
Et = {
|
|
383
|
-
dismiss: "
|
|
363
|
+
dismiss: "取消"
|
|
384
364
|
};
|
|
385
365
|
var Dt = {};
|
|
386
366
|
Dt = {
|
|
387
|
-
dismiss: "
|
|
367
|
+
dismiss: "關閉"
|
|
388
368
|
};
|
|
389
369
|
var Ct = {};
|
|
390
370
|
Ct = {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
"
|
|
403
|
-
"
|
|
404
|
-
"
|
|
405
|
-
"
|
|
406
|
-
"
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
"zh-CN": Dt,
|
|
428
|
-
"zh-TW": Ct
|
|
429
|
-
};
|
|
430
|
-
function xo(t) {
|
|
371
|
+
"ar-AE": We,
|
|
372
|
+
"bg-BG": je,
|
|
373
|
+
"cs-CZ": Ge,
|
|
374
|
+
"da-DK": qe,
|
|
375
|
+
"de-DE": Ze,
|
|
376
|
+
"el-GR": Je,
|
|
377
|
+
"en-US": Ye,
|
|
378
|
+
"es-ES": Xe,
|
|
379
|
+
"et-EE": Qe,
|
|
380
|
+
"fi-FI": et,
|
|
381
|
+
"fr-FR": tt,
|
|
382
|
+
"he-IL": rt,
|
|
383
|
+
"hr-HR": ot,
|
|
384
|
+
"hu-HU": at,
|
|
385
|
+
"it-IT": nt,
|
|
386
|
+
"ja-JP": st,
|
|
387
|
+
"ko-KR": lt,
|
|
388
|
+
"lt-LT": it,
|
|
389
|
+
"lv-LV": ut,
|
|
390
|
+
"nb-NO": dt,
|
|
391
|
+
"nl-NL": ct,
|
|
392
|
+
"pl-PL": ft,
|
|
393
|
+
"pt-BR": $t,
|
|
394
|
+
"pt-PT": pt,
|
|
395
|
+
"ro-RO": bt,
|
|
396
|
+
"ru-RU": mt,
|
|
397
|
+
"sk-SK": gt,
|
|
398
|
+
"sl-SI": vt,
|
|
399
|
+
"sr-SP": xt,
|
|
400
|
+
"sv-SE": yt,
|
|
401
|
+
"tr-TR": ht,
|
|
402
|
+
"uk-UA": Pt,
|
|
403
|
+
"zh-CN": Et,
|
|
404
|
+
"zh-TW": Dt
|
|
405
|
+
};
|
|
406
|
+
function go(t) {
|
|
431
407
|
return t && t.__esModule ? t.default : t;
|
|
432
408
|
}
|
|
433
|
-
function
|
|
434
|
-
let { onDismiss: e, ...r } = t, a = _e(
|
|
409
|
+
function ke(t) {
|
|
410
|
+
let { onDismiss: e, ...r } = t, a = _e(go(Ct), "@react-aria/overlays"), o = lo(r, a.format("dismiss")), s = () => {
|
|
435
411
|
e && e();
|
|
436
412
|
};
|
|
437
|
-
return /* @__PURE__ */ f.createElement(
|
|
413
|
+
return /* @__PURE__ */ f.createElement(io, null, /* @__PURE__ */ f.createElement("button", {
|
|
438
414
|
...o,
|
|
439
415
|
tabIndex: -1,
|
|
440
416
|
onClick: s,
|
|
@@ -444,8 +420,8 @@ function Fe(t) {
|
|
|
444
420
|
}
|
|
445
421
|
}));
|
|
446
422
|
}
|
|
447
|
-
let
|
|
448
|
-
function
|
|
423
|
+
let U = /* @__PURE__ */ new WeakMap(), h = [];
|
|
424
|
+
function vo(t, e = document.body) {
|
|
449
425
|
let r = new Set(t), a = /* @__PURE__ */ new Set(), o = (n) => {
|
|
450
426
|
for (let p of n.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) r.add(p);
|
|
451
427
|
let d = (p) => {
|
|
@@ -463,8 +439,8 @@ function yo(t, e = document.body) {
|
|
|
463
439
|
}
|
|
464
440
|
}, s = (n) => {
|
|
465
441
|
var d;
|
|
466
|
-
let l = (d =
|
|
467
|
-
n.getAttribute("aria-hidden") === "true" && l === 0 || (l === 0 && n.setAttribute("aria-hidden", "true"), a.add(n),
|
|
442
|
+
let l = (d = U.get(n)) !== null && d !== void 0 ? d : 0;
|
|
443
|
+
n.getAttribute("aria-hidden") === "true" && l === 0 || (l === 0 && n.setAttribute("aria-hidden", "true"), a.add(n), U.set(n, l + 1));
|
|
468
444
|
};
|
|
469
445
|
h.length && h[h.length - 1].disconnect(), o(e);
|
|
470
446
|
let u = new MutationObserver((n) => {
|
|
@@ -498,40 +474,40 @@ function yo(t, e = document.body) {
|
|
|
498
474
|
return h.push(i), () => {
|
|
499
475
|
u.disconnect();
|
|
500
476
|
for (let n of a) {
|
|
501
|
-
let d =
|
|
502
|
-
d != null && (d === 1 ? (n.removeAttribute("aria-hidden"),
|
|
477
|
+
let d = U.get(n);
|
|
478
|
+
d != null && (d === 1 ? (n.removeAttribute("aria-hidden"), U.delete(n)) : U.set(n, d - 1));
|
|
503
479
|
}
|
|
504
480
|
i === h[h.length - 1] ? (h.pop(), h.length && h[h.length - 1].observe()) : h.splice(h.indexOf(i), 1);
|
|
505
481
|
};
|
|
506
482
|
}
|
|
507
|
-
function
|
|
483
|
+
function xo(t) {
|
|
508
484
|
let e = h[h.length - 1];
|
|
509
485
|
if (e && !e.visibleNodes.has(t))
|
|
510
486
|
return e.visibleNodes.add(t), () => {
|
|
511
487
|
e.visibleNodes.delete(t);
|
|
512
488
|
};
|
|
513
489
|
}
|
|
514
|
-
function
|
|
515
|
-
let { triggerRef: r, popoverRef: a, groupRef: o, isNonModal: s, isKeyboardDismissDisabled: u, shouldCloseOnInteractOutside: i, ...n } = t, d = n.trigger === "SubmenuTrigger", { overlayProps: l, underlayProps: $ } =
|
|
490
|
+
function yo(t, e) {
|
|
491
|
+
let { triggerRef: r, popoverRef: a, groupRef: o, isNonModal: s, isKeyboardDismissDisabled: u, shouldCloseOnInteractOutside: i, ...n } = t, d = n.trigger === "SubmenuTrigger", { overlayProps: l, underlayProps: $ } = co({
|
|
516
492
|
isOpen: e.isOpen,
|
|
517
493
|
onClose: e.close,
|
|
518
494
|
shouldCloseOnBlur: !0,
|
|
519
495
|
isDismissable: !s || d,
|
|
520
496
|
isKeyboardDismissDisabled: u,
|
|
521
497
|
shouldCloseOnInteractOutside: i
|
|
522
|
-
}, o ?? a), { overlayProps: p, arrowProps: c, placement: b } =
|
|
498
|
+
}, o ?? a), { overlayProps: p, arrowProps: c, placement: b } = wr({
|
|
523
499
|
...n,
|
|
524
500
|
targetRef: r,
|
|
525
501
|
overlayRef: a,
|
|
526
502
|
isOpen: e.isOpen,
|
|
527
503
|
onClose: s && !d ? e.close : null
|
|
528
504
|
});
|
|
529
|
-
return
|
|
505
|
+
return $o({
|
|
530
506
|
isDisabled: s || !e.isOpen
|
|
531
|
-
}),
|
|
507
|
+
}), W(() => {
|
|
532
508
|
if (e.isOpen && a.current) {
|
|
533
509
|
var x, g;
|
|
534
|
-
return s ?
|
|
510
|
+
return s ? xo((x = o == null ? void 0 : o.current) !== null && x !== void 0 ? x : a.current) : vo([
|
|
535
511
|
(g = o == null ? void 0 : o.current) !== null && g !== void 0 ? g : a.current
|
|
536
512
|
]);
|
|
537
513
|
}
|
|
@@ -541,21 +517,21 @@ function Po(t, e) {
|
|
|
541
517
|
a,
|
|
542
518
|
o
|
|
543
519
|
]), {
|
|
544
|
-
popoverProps:
|
|
520
|
+
popoverProps: G(l, p),
|
|
545
521
|
arrowProps: c,
|
|
546
522
|
underlayProps: $,
|
|
547
523
|
placement: b
|
|
548
524
|
};
|
|
549
525
|
}
|
|
550
526
|
const At = /* @__PURE__ */ f.createContext(null);
|
|
551
|
-
function
|
|
552
|
-
let e =
|
|
527
|
+
function Be(t) {
|
|
528
|
+
let e = oo(), { portalContainer: r = e ? null : document.body, isExiting: a } = t, [o, s] = B(!1), u = V(() => ({
|
|
553
529
|
contain: o,
|
|
554
530
|
setContain: s
|
|
555
531
|
}), [
|
|
556
532
|
o,
|
|
557
533
|
s
|
|
558
|
-
]), { getContainer: i } =
|
|
534
|
+
]), { getContainer: i } = Sr();
|
|
559
535
|
if (!t.portalContainer && i && (r = i()), !r) return null;
|
|
560
536
|
let n = t.children;
|
|
561
537
|
return t.disableFocusManagement || (n = /* @__PURE__ */ f.createElement(He, {
|
|
@@ -563,11 +539,11 @@ function Ke(t) {
|
|
|
563
539
|
contain: (t.shouldContainFocus || o) && !a
|
|
564
540
|
}, n)), n = /* @__PURE__ */ f.createElement(At.Provider, {
|
|
565
541
|
value: u
|
|
566
|
-
}, /* @__PURE__ */ f.createElement(
|
|
542
|
+
}, /* @__PURE__ */ f.createElement(jr, null, n)), /* @__PURE__ */ ro.createPortal(n, r);
|
|
567
543
|
}
|
|
568
|
-
function
|
|
569
|
-
let t =
|
|
570
|
-
|
|
544
|
+
function ho() {
|
|
545
|
+
let t = E(At), e = t == null ? void 0 : t.setContain;
|
|
546
|
+
W(() => {
|
|
571
547
|
e == null || e(!0);
|
|
572
548
|
}, [
|
|
573
549
|
e
|
|
@@ -577,180 +553,180 @@ var Mt = {};
|
|
|
577
553
|
Mt = {
|
|
578
554
|
longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"
|
|
579
555
|
};
|
|
556
|
+
var wt = {};
|
|
557
|
+
wt = {
|
|
558
|
+
longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"
|
|
559
|
+
};
|
|
580
560
|
var St = {};
|
|
581
561
|
St = {
|
|
582
|
-
longPressMessage: "
|
|
562
|
+
longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"
|
|
583
563
|
};
|
|
584
564
|
var kt = {};
|
|
585
565
|
kt = {
|
|
586
|
-
longPressMessage: "
|
|
566
|
+
longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen"
|
|
587
567
|
};
|
|
588
568
|
var Bt = {};
|
|
589
569
|
Bt = {
|
|
590
|
-
longPressMessage: "
|
|
570
|
+
longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"
|
|
591
571
|
};
|
|
592
572
|
var Ft = {};
|
|
593
573
|
Ft = {
|
|
594
|
-
longPressMessage: "
|
|
574
|
+
longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"
|
|
595
575
|
};
|
|
596
576
|
var Kt = {};
|
|
597
577
|
Kt = {
|
|
598
|
-
longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"
|
|
599
|
-
};
|
|
600
|
-
var Ot = {};
|
|
601
|
-
Ot = {
|
|
602
578
|
longPressMessage: "Long press or press Alt + ArrowDown to open menu"
|
|
603
579
|
};
|
|
604
580
|
var Tt = {};
|
|
605
581
|
Tt = {
|
|
606
582
|
longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"
|
|
607
583
|
};
|
|
584
|
+
var Ot = {};
|
|
585
|
+
Ot = {
|
|
586
|
+
longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"
|
|
587
|
+
};
|
|
608
588
|
var Rt = {};
|
|
609
589
|
Rt = {
|
|
610
|
-
longPressMessage: "
|
|
590
|
+
longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"
|
|
611
591
|
};
|
|
612
592
|
var It = {};
|
|
613
593
|
It = {
|
|
614
|
-
longPressMessage: "
|
|
594
|
+
longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."
|
|
615
595
|
};
|
|
616
596
|
var Nt = {};
|
|
617
597
|
Nt = {
|
|
618
|
-
longPressMessage: "
|
|
598
|
+
longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"
|
|
619
599
|
};
|
|
620
600
|
var Lt = {};
|
|
621
601
|
Lt = {
|
|
622
|
-
longPressMessage: "
|
|
602
|
+
longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"
|
|
623
603
|
};
|
|
624
604
|
var zt = {};
|
|
625
605
|
zt = {
|
|
626
|
-
longPressMessage: "
|
|
606
|
+
longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"
|
|
627
607
|
};
|
|
628
608
|
var _t = {};
|
|
629
609
|
_t = {
|
|
630
|
-
longPressMessage: "
|
|
610
|
+
longPressMessage: "Premere a lungo o premere Alt + Freccia giù per aprire il menu"
|
|
631
611
|
};
|
|
632
612
|
var Ht = {};
|
|
633
613
|
Ht = {
|
|
634
|
-
longPressMessage: "
|
|
614
|
+
longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く"
|
|
635
615
|
};
|
|
636
616
|
var Ut = {};
|
|
637
617
|
Ut = {
|
|
638
|
-
longPressMessage: "
|
|
618
|
+
longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"
|
|
639
619
|
};
|
|
640
620
|
var Vt = {};
|
|
641
621
|
Vt = {
|
|
642
|
-
longPressMessage: "
|
|
622
|
+
longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."
|
|
643
623
|
};
|
|
644
624
|
var Wt = {};
|
|
645
625
|
Wt = {
|
|
646
|
-
longPressMessage: "
|
|
626
|
+
longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"
|
|
647
627
|
};
|
|
648
628
|
var jt = {};
|
|
649
629
|
jt = {
|
|
650
|
-
longPressMessage: "
|
|
630
|
+
longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen"
|
|
651
631
|
};
|
|
652
632
|
var Gt = {};
|
|
653
633
|
Gt = {
|
|
654
|
-
longPressMessage: "
|
|
634
|
+
longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"
|
|
655
635
|
};
|
|
656
636
|
var qt = {};
|
|
657
637
|
qt = {
|
|
658
|
-
longPressMessage: "
|
|
638
|
+
longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"
|
|
659
639
|
};
|
|
660
640
|
var Zt = {};
|
|
661
641
|
Zt = {
|
|
662
|
-
longPressMessage: "
|
|
642
|
+
longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"
|
|
663
643
|
};
|
|
664
644
|
var Jt = {};
|
|
665
645
|
Jt = {
|
|
666
|
-
longPressMessage: "
|
|
646
|
+
longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"
|
|
667
647
|
};
|
|
668
648
|
var Yt = {};
|
|
669
649
|
Yt = {
|
|
670
|
-
longPressMessage: "
|
|
650
|
+
longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"
|
|
671
651
|
};
|
|
672
652
|
var Xt = {};
|
|
673
653
|
Xt = {
|
|
674
|
-
longPressMessage: "
|
|
654
|
+
longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"
|
|
675
655
|
};
|
|
676
656
|
var Qt = {};
|
|
677
657
|
Qt = {
|
|
678
|
-
longPressMessage: "
|
|
658
|
+
longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"
|
|
679
659
|
};
|
|
680
660
|
var er = {};
|
|
681
661
|
er = {
|
|
682
|
-
longPressMessage: "
|
|
662
|
+
longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"
|
|
683
663
|
};
|
|
684
664
|
var tr = {};
|
|
685
665
|
tr = {
|
|
686
|
-
longPressMessage: "
|
|
666
|
+
longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"
|
|
687
667
|
};
|
|
688
668
|
var rr = {};
|
|
689
669
|
rr = {
|
|
690
|
-
longPressMessage: "
|
|
670
|
+
longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"
|
|
691
671
|
};
|
|
692
672
|
var or = {};
|
|
693
673
|
or = {
|
|
694
|
-
longPressMessage: "
|
|
674
|
+
longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"
|
|
695
675
|
};
|
|
696
676
|
var ar = {};
|
|
697
677
|
ar = {
|
|
698
|
-
longPressMessage: "
|
|
678
|
+
longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"
|
|
699
679
|
};
|
|
700
680
|
var nr = {};
|
|
701
681
|
nr = {
|
|
702
|
-
longPressMessage: "
|
|
682
|
+
longPressMessage: "长按或按 Alt + 向下方向键以打开菜单"
|
|
703
683
|
};
|
|
704
684
|
var sr = {};
|
|
705
685
|
sr = {
|
|
706
|
-
longPressMessage: "
|
|
686
|
+
longPressMessage: "長按或按 Alt+向下鍵以開啟功能表"
|
|
707
687
|
};
|
|
708
688
|
var lr = {};
|
|
709
689
|
lr = {
|
|
710
|
-
longPressMessage: "長按或按 Alt+向下鍵以開啟功能表"
|
|
711
|
-
};
|
|
712
|
-
var ir = {};
|
|
713
|
-
ir = {
|
|
714
690
|
"ar-AE": Mt,
|
|
715
|
-
"bg-BG":
|
|
716
|
-
"cs-CZ":
|
|
717
|
-
"da-DK":
|
|
718
|
-
"de-DE":
|
|
719
|
-
"el-GR":
|
|
720
|
-
"en-US":
|
|
691
|
+
"bg-BG": wt,
|
|
692
|
+
"cs-CZ": St,
|
|
693
|
+
"da-DK": kt,
|
|
694
|
+
"de-DE": Bt,
|
|
695
|
+
"el-GR": Ft,
|
|
696
|
+
"en-US": Kt,
|
|
721
697
|
"es-ES": Tt,
|
|
722
|
-
"et-EE":
|
|
723
|
-
"fi-FI":
|
|
724
|
-
"fr-FR":
|
|
725
|
-
"he-IL":
|
|
726
|
-
"hr-HR":
|
|
727
|
-
"hu-HU":
|
|
728
|
-
"it-IT":
|
|
729
|
-
"ja-JP":
|
|
730
|
-
"ko-KR":
|
|
731
|
-
"lt-LT":
|
|
732
|
-
"lv-LV":
|
|
733
|
-
"nb-NO":
|
|
734
|
-
"nl-NL":
|
|
735
|
-
"pl-PL":
|
|
736
|
-
"pt-BR":
|
|
737
|
-
"pt-PT":
|
|
738
|
-
"ro-RO":
|
|
739
|
-
"ru-RU":
|
|
740
|
-
"sk-SK":
|
|
741
|
-
"sl-SI":
|
|
742
|
-
"sr-SP":
|
|
743
|
-
"sv-SE":
|
|
744
|
-
"tr-TR":
|
|
745
|
-
"uk-UA":
|
|
746
|
-
"zh-CN":
|
|
747
|
-
"zh-TW":
|
|
748
|
-
};
|
|
749
|
-
function
|
|
698
|
+
"et-EE": Ot,
|
|
699
|
+
"fi-FI": Rt,
|
|
700
|
+
"fr-FR": It,
|
|
701
|
+
"he-IL": Nt,
|
|
702
|
+
"hr-HR": Lt,
|
|
703
|
+
"hu-HU": zt,
|
|
704
|
+
"it-IT": _t,
|
|
705
|
+
"ja-JP": Ht,
|
|
706
|
+
"ko-KR": Ut,
|
|
707
|
+
"lt-LT": Vt,
|
|
708
|
+
"lv-LV": Wt,
|
|
709
|
+
"nb-NO": jt,
|
|
710
|
+
"nl-NL": Gt,
|
|
711
|
+
"pl-PL": qt,
|
|
712
|
+
"pt-BR": Zt,
|
|
713
|
+
"pt-PT": Jt,
|
|
714
|
+
"ro-RO": Yt,
|
|
715
|
+
"ru-RU": Xt,
|
|
716
|
+
"sk-SK": Qt,
|
|
717
|
+
"sl-SI": er,
|
|
718
|
+
"sr-SP": tr,
|
|
719
|
+
"sv-SE": rr,
|
|
720
|
+
"tr-TR": or,
|
|
721
|
+
"uk-UA": ar,
|
|
722
|
+
"zh-CN": nr,
|
|
723
|
+
"zh-TW": sr
|
|
724
|
+
};
|
|
725
|
+
function Po(t) {
|
|
750
726
|
return t && t.__esModule ? t.default : t;
|
|
751
727
|
}
|
|
752
|
-
function
|
|
753
|
-
let { type: a = "menu", isDisabled: o, trigger: s = "press" } = t, u = oe(), { triggerProps: i, overlayProps: n } =
|
|
728
|
+
function Eo(t, e, r) {
|
|
729
|
+
let { type: a = "menu", isDisabled: o, trigger: s = "press" } = t, u = oe(), { triggerProps: i, overlayProps: n } = Ve({
|
|
754
730
|
type: a
|
|
755
731
|
}, e, r), d = (c) => {
|
|
756
732
|
if (!o && !(s === "longPress" && !c.altKey) && r && r.current)
|
|
@@ -767,7 +743,7 @@ function Co(t, e, r) {
|
|
|
767
743
|
default:
|
|
768
744
|
"continuePropagation" in c && c.continuePropagation();
|
|
769
745
|
}
|
|
770
|
-
}, l = _e(
|
|
746
|
+
}, l = _e(Po(lr), "@react-aria/menu"), { longPressProps: $ } = Ur({
|
|
771
747
|
isDisabled: o || s !== "longPress",
|
|
772
748
|
accessibilityDescription: l.format("longPressMessage"),
|
|
773
749
|
onLongPressStart() {
|
|
@@ -779,10 +755,10 @@ function Co(t, e, r) {
|
|
|
779
755
|
}), p = {
|
|
780
756
|
preventFocusOnPress: !0,
|
|
781
757
|
onPressStart(c) {
|
|
782
|
-
c.pointerType !== "touch" && c.pointerType !== "keyboard" && !o && (
|
|
758
|
+
c.pointerType !== "touch" && c.pointerType !== "keyboard" && !o && (we(c.target), e.open(c.pointerType === "virtual" ? "first" : null));
|
|
783
759
|
},
|
|
784
760
|
onPress(c) {
|
|
785
|
-
c.pointerType === "touch" && !o && (
|
|
761
|
+
c.pointerType === "touch" && !o && (we(c.target), e.toggle());
|
|
786
762
|
}
|
|
787
763
|
};
|
|
788
764
|
return delete i.onPress, {
|
|
@@ -801,13 +777,13 @@ function Co(t, e, r) {
|
|
|
801
777
|
}
|
|
802
778
|
};
|
|
803
779
|
}
|
|
804
|
-
const
|
|
805
|
-
function
|
|
780
|
+
const ir = /* @__PURE__ */ new WeakMap();
|
|
781
|
+
function Do(t, e, r) {
|
|
806
782
|
let { shouldFocusWrap: a = !0, onKeyDown: o, onKeyUp: s, ...u } = t;
|
|
807
783
|
!t["aria-label"] && !t["aria-labelledby"] && process.env.NODE_ENV !== "production" && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
808
|
-
let i =
|
|
784
|
+
let i = F(t, {
|
|
809
785
|
labelable: !0
|
|
810
|
-
}), { listProps: n } =
|
|
786
|
+
}), { listProps: n } = Nr({
|
|
811
787
|
...u,
|
|
812
788
|
ref: r,
|
|
813
789
|
selectionManager: e.selectionManager,
|
|
@@ -816,12 +792,12 @@ function wo(t, e, r) {
|
|
|
816
792
|
shouldFocusWrap: a,
|
|
817
793
|
linkBehavior: "override"
|
|
818
794
|
});
|
|
819
|
-
return
|
|
795
|
+
return ir.set(e, {
|
|
820
796
|
onClose: t.onClose,
|
|
821
797
|
onAction: t.onAction,
|
|
822
798
|
shouldUseVirtualFocus: t.shouldUseVirtualFocus
|
|
823
799
|
}), {
|
|
824
|
-
menuProps:
|
|
800
|
+
menuProps: G(i, {
|
|
825
801
|
onKeyDown: o,
|
|
826
802
|
onKeyUp: s
|
|
827
803
|
}, {
|
|
@@ -834,46 +810,46 @@ function wo(t, e, r) {
|
|
|
834
810
|
})
|
|
835
811
|
};
|
|
836
812
|
}
|
|
837
|
-
function
|
|
838
|
-
let { id: a, key: o, closeOnSelect: s, isVirtualized: u, "aria-haspopup": i, onPressStart: n, onPressUp: d, onPress: l, onPressChange: $, onPressEnd: p, onHoverStart: c, onHoverChange: b, onHoverEnd: x, onKeyDown: g, onKeyUp:
|
|
839
|
-
var
|
|
840
|
-
let C = (
|
|
841
|
-
var
|
|
842
|
-
let Z = (
|
|
813
|
+
function Co(t, e, r) {
|
|
814
|
+
let { id: a, key: o, closeOnSelect: s, isVirtualized: u, "aria-haspopup": i, onPressStart: n, onPressUp: d, onPress: l, onPressChange: $, onPressEnd: p, onHoverStart: c, onHoverChange: b, onHoverEnd: x, onKeyDown: g, onKeyUp: K, onFocus: T, onFocusChange: q, onBlur: M, selectionManager: y = e.selectionManager } = t, P = !!i, _ = P && t["aria-expanded"] === "true";
|
|
815
|
+
var O;
|
|
816
|
+
let C = (O = t.isDisabled) !== null && O !== void 0 ? O : y.isDisabled(o);
|
|
817
|
+
var w;
|
|
818
|
+
let Z = (w = t.isSelected) !== null && w !== void 0 ? w : y.isSelected(o), R = ir.get(e), v = e.collection.getItem(o), I = t.onClose || R.onClose, cr = Jr(), ne = (m) => {
|
|
843
819
|
var le;
|
|
844
|
-
if (!
|
|
845
|
-
if (!(v == null || (le = v.props) === null || le === void 0) && le.onAction ? v.props.onAction() : t.onAction && t.onAction(o),
|
|
846
|
-
let
|
|
847
|
-
|
|
820
|
+
if (!P) {
|
|
821
|
+
if (!(v == null || (le = v.props) === null || le === void 0) && le.onAction ? v.props.onAction() : t.onAction && t.onAction(o), R.onAction) {
|
|
822
|
+
let hr = R.onAction;
|
|
823
|
+
hr(o);
|
|
848
824
|
}
|
|
849
|
-
m.target instanceof HTMLAnchorElement && v &&
|
|
825
|
+
m.target instanceof HTMLAnchorElement && v && cr.open(m.target, m, v.props.href, v.props.routerOptions);
|
|
850
826
|
}
|
|
851
827
|
}, se = "menuitem";
|
|
852
|
-
|
|
853
|
-
let
|
|
828
|
+
P || (y.selectionMode === "single" ? se = "menuitemradio" : y.selectionMode === "multiple" && (se = "menuitemcheckbox"));
|
|
829
|
+
let xe = Q(), ye = Q(), he = Q(), J = {
|
|
854
830
|
id: a,
|
|
855
831
|
"aria-disabled": C || void 0,
|
|
856
832
|
role: se,
|
|
857
833
|
"aria-label": t["aria-label"],
|
|
858
|
-
"aria-labelledby":
|
|
834
|
+
"aria-labelledby": xe,
|
|
859
835
|
"aria-describedby": [
|
|
860
|
-
|
|
861
|
-
|
|
836
|
+
ye,
|
|
837
|
+
he
|
|
862
838
|
].filter(Boolean).join(" ") || void 0,
|
|
863
839
|
"aria-controls": t["aria-controls"],
|
|
864
840
|
"aria-haspopup": i,
|
|
865
841
|
"aria-expanded": t["aria-expanded"]
|
|
866
842
|
};
|
|
867
|
-
y.selectionMode !== "none" && !
|
|
868
|
-
let
|
|
843
|
+
y.selectionMode !== "none" && !P && (J["aria-checked"] = Z), u && (J["aria-posinset"] = v == null ? void 0 : v.index, J["aria-setsize"] = Lr(e.collection));
|
|
844
|
+
let fr = (m) => {
|
|
869
845
|
m.pointerType === "keyboard" && ne(m), n == null || n(m);
|
|
870
|
-
},
|
|
871
|
-
!
|
|
846
|
+
}, Pe = () => {
|
|
847
|
+
!P && I && (s ?? (y.selectionMode !== "multiple" || y.isLink(o))) && I();
|
|
848
|
+
}, $r = (m) => {
|
|
849
|
+
m.pointerType === "mouse" && (ne(m), Pe()), d == null || d(m);
|
|
872
850
|
}, pr = (m) => {
|
|
873
|
-
m.pointerType
|
|
874
|
-
},
|
|
875
|
-
m.pointerType !== "keyboard" && m.pointerType !== "mouse" && (ne(m), De()), l == null || l(m);
|
|
876
|
-
}, { itemProps: L, isFocused: Ce } = Wr({
|
|
851
|
+
m.pointerType !== "keyboard" && m.pointerType !== "mouse" && (ne(m), Pe()), l == null || l(m);
|
|
852
|
+
}, { itemProps: N, isFocused: Ee } = Vr({
|
|
877
853
|
id: a,
|
|
878
854
|
selectionManager: y,
|
|
879
855
|
key: o,
|
|
@@ -885,22 +861,22 @@ function Ao(t, e, r) {
|
|
|
885
861
|
// is slightly different from other collections because
|
|
886
862
|
// actions are performed on key down rather than key up.
|
|
887
863
|
linkBehavior: "none",
|
|
888
|
-
shouldUseVirtualFocus:
|
|
889
|
-
}), { pressProps:
|
|
890
|
-
onPressStart:
|
|
891
|
-
onPress:
|
|
892
|
-
onPressUp:
|
|
864
|
+
shouldUseVirtualFocus: R.shouldUseVirtualFocus
|
|
865
|
+
}), { pressProps: br, isPressed: mr } = Yr({
|
|
866
|
+
onPressStart: fr,
|
|
867
|
+
onPress: pr,
|
|
868
|
+
onPressUp: $r,
|
|
893
869
|
onPressChange: $,
|
|
894
870
|
onPressEnd: p,
|
|
895
871
|
isDisabled: C
|
|
896
|
-
}), { hoverProps:
|
|
872
|
+
}), { hoverProps: gr } = ze({
|
|
897
873
|
isDisabled: C,
|
|
898
874
|
onHoverStart(m) {
|
|
899
|
-
!
|
|
875
|
+
!Me() && !(_ && i) && (y.setFocused(!0), y.setFocusedKey(o)), c == null || c(m);
|
|
900
876
|
},
|
|
901
877
|
onHoverChange: b,
|
|
902
878
|
onHoverEnd: x
|
|
903
|
-
}), { keyboardProps:
|
|
879
|
+
}), { keyboardProps: vr } = Qr({
|
|
904
880
|
onKeyDown: (m) => {
|
|
905
881
|
if (m.repeat) {
|
|
906
882
|
m.continuePropagation();
|
|
@@ -908,64 +884,64 @@ function Ao(t, e, r) {
|
|
|
908
884
|
}
|
|
909
885
|
switch (m.key) {
|
|
910
886
|
case " ":
|
|
911
|
-
!C && y.selectionMode === "none" && !
|
|
887
|
+
!C && y.selectionMode === "none" && !P && s !== !1 && I && I();
|
|
912
888
|
break;
|
|
913
889
|
case "Enter":
|
|
914
|
-
!C && s !== !1 && !
|
|
890
|
+
!C && s !== !1 && !P && I && I();
|
|
915
891
|
break;
|
|
916
892
|
default:
|
|
917
|
-
|
|
893
|
+
P || m.continuePropagation(), g == null || g(m);
|
|
918
894
|
break;
|
|
919
895
|
}
|
|
920
896
|
},
|
|
921
|
-
onKeyUp:
|
|
922
|
-
}), { focusProps:
|
|
923
|
-
onBlur:
|
|
897
|
+
onKeyUp: K
|
|
898
|
+
}), { focusProps: xr } = qr({
|
|
899
|
+
onBlur: M,
|
|
924
900
|
onFocus: T,
|
|
925
901
|
onFocusChange: q
|
|
926
|
-
}),
|
|
927
|
-
delete
|
|
928
|
-
let
|
|
902
|
+
}), De = F(v == null ? void 0 : v.props);
|
|
903
|
+
delete De.id;
|
|
904
|
+
let yr = Xr(v == null ? void 0 : v.props);
|
|
929
905
|
return {
|
|
930
906
|
menuItemProps: {
|
|
931
907
|
...J,
|
|
932
|
-
...
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
onFocus:
|
|
937
|
-
"data-collection":
|
|
938
|
-
"data-key":
|
|
939
|
-
} :
|
|
940
|
-
|
|
908
|
+
...G(
|
|
909
|
+
De,
|
|
910
|
+
yr,
|
|
911
|
+
P ? {
|
|
912
|
+
onFocus: N.onFocus,
|
|
913
|
+
"data-collection": N["data-collection"],
|
|
914
|
+
"data-key": N["data-key"]
|
|
915
|
+
} : N,
|
|
916
|
+
br,
|
|
917
|
+
gr,
|
|
941
918
|
vr,
|
|
942
919
|
xr,
|
|
943
|
-
yr,
|
|
944
920
|
// Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
|
|
945
|
-
|
|
921
|
+
R.shouldUseVirtualFocus || P ? {
|
|
946
922
|
onMouseDown: (m) => m.preventDefault()
|
|
947
923
|
} : void 0
|
|
948
924
|
),
|
|
949
925
|
// If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
|
|
950
|
-
tabIndex:
|
|
926
|
+
tabIndex: N.tabIndex != null && _ && !R.shouldUseVirtualFocus ? -1 : N.tabIndex
|
|
951
927
|
},
|
|
952
928
|
labelProps: {
|
|
953
|
-
id:
|
|
929
|
+
id: xe
|
|
954
930
|
},
|
|
955
931
|
descriptionProps: {
|
|
956
|
-
id:
|
|
932
|
+
id: ye
|
|
957
933
|
},
|
|
958
934
|
keyboardShortcutProps: {
|
|
959
|
-
id:
|
|
935
|
+
id: he
|
|
960
936
|
},
|
|
961
|
-
isFocused:
|
|
962
|
-
isFocusVisible:
|
|
937
|
+
isFocused: Ee,
|
|
938
|
+
isFocusVisible: Ee && y.isFocused && Me() && !_,
|
|
963
939
|
isSelected: Z,
|
|
964
|
-
isPressed:
|
|
940
|
+
isPressed: mr,
|
|
965
941
|
isDisabled: C
|
|
966
942
|
};
|
|
967
943
|
}
|
|
968
|
-
function
|
|
944
|
+
function Ao(t) {
|
|
969
945
|
let { heading: e, "aria-label": r } = t, a = oe();
|
|
970
946
|
return {
|
|
971
947
|
itemProps: {
|
|
@@ -985,15 +961,15 @@ function Mo(t) {
|
|
|
985
961
|
}
|
|
986
962
|
};
|
|
987
963
|
}
|
|
988
|
-
function
|
|
964
|
+
function Mo(t, e) {
|
|
989
965
|
let { role: r = "dialog" } = t, a = Q();
|
|
990
966
|
a = t["aria-label"] ? void 0 : a;
|
|
991
|
-
let o =
|
|
992
|
-
return
|
|
967
|
+
let o = k(!1);
|
|
968
|
+
return z(() => {
|
|
993
969
|
if (e.current && !e.current.contains(document.activeElement)) {
|
|
994
|
-
|
|
970
|
+
fe(e.current);
|
|
995
971
|
let s = setTimeout(() => {
|
|
996
|
-
document.activeElement === e.current && (o.current = !0, e.current && (e.current.blur(),
|
|
972
|
+
document.activeElement === e.current && (o.current = !0, e.current && (e.current.blur(), fe(e.current)), o.current = !1);
|
|
997
973
|
}, 500);
|
|
998
974
|
return () => {
|
|
999
975
|
clearTimeout(s);
|
|
@@ -1001,9 +977,9 @@ function So(t, e) {
|
|
|
1001
977
|
}
|
|
1002
978
|
}, [
|
|
1003
979
|
e
|
|
1004
|
-
]),
|
|
980
|
+
]), ho(), {
|
|
1005
981
|
dialogProps: {
|
|
1006
|
-
...
|
|
982
|
+
...F(t, {
|
|
1007
983
|
labelable: !0
|
|
1008
984
|
}),
|
|
1009
985
|
role: r,
|
|
@@ -1021,7 +997,7 @@ function So(t, e) {
|
|
|
1021
997
|
}
|
|
1022
998
|
};
|
|
1023
999
|
}
|
|
1024
|
-
function
|
|
1000
|
+
function me(t) {
|
|
1025
1001
|
let e = Te(t), [r, a] = B(null), [o, s] = B([]), u = () => {
|
|
1026
1002
|
s([]), e.close();
|
|
1027
1003
|
};
|
|
@@ -1049,7 +1025,7 @@ function ve(t) {
|
|
|
1049
1025
|
}
|
|
1050
1026
|
};
|
|
1051
1027
|
}
|
|
1052
|
-
class
|
|
1028
|
+
class wo {
|
|
1053
1029
|
*[Symbol.iterator]() {
|
|
1054
1030
|
yield* this.iterable;
|
|
1055
1031
|
}
|
|
@@ -1098,15 +1074,15 @@ class ko {
|
|
|
1098
1074
|
this.lastKey = (u = o == null ? void 0 : o.key) !== null && u !== void 0 ? u : null;
|
|
1099
1075
|
}
|
|
1100
1076
|
}
|
|
1101
|
-
function
|
|
1102
|
-
let { onExpandedChange: e } = t, [r, a] =
|
|
1077
|
+
function So(t) {
|
|
1078
|
+
let { onExpandedChange: e } = t, [r, a] = eo(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), o = Ie(t), s = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1103
1079
|
t.disabledKeys
|
|
1104
|
-
]), u =
|
|
1080
|
+
]), u = Wr(t, pe((n) => new wo(n, {
|
|
1105
1081
|
expandedKeys: r
|
|
1106
1082
|
}), [
|
|
1107
1083
|
r
|
|
1108
1084
|
]), null);
|
|
1109
|
-
return
|
|
1085
|
+
return z(() => {
|
|
1110
1086
|
o.focusedKey != null && !u.getItem(o.focusedKey) && o.setFocusedKey(null);
|
|
1111
1087
|
}, [
|
|
1112
1088
|
u,
|
|
@@ -1116,19 +1092,19 @@ function Bo(t) {
|
|
|
1116
1092
|
expandedKeys: r,
|
|
1117
1093
|
disabledKeys: s,
|
|
1118
1094
|
toggleKey: (n) => {
|
|
1119
|
-
a(
|
|
1095
|
+
a(ko(r, n));
|
|
1120
1096
|
},
|
|
1121
1097
|
setExpandedKeys: a,
|
|
1122
|
-
selectionManager: new
|
|
1098
|
+
selectionManager: new Ne(u, o)
|
|
1123
1099
|
};
|
|
1124
1100
|
}
|
|
1125
|
-
function
|
|
1101
|
+
function ko(t, e) {
|
|
1126
1102
|
let r = new Set(t);
|
|
1127
1103
|
return r.has(e) ? r.delete(e) : r.add(e), r;
|
|
1128
1104
|
}
|
|
1129
|
-
const
|
|
1130
|
-
[e, r] = re(e, r,
|
|
1131
|
-
let a =
|
|
1105
|
+
const ge = /* @__PURE__ */ D(null), Fe = /* @__PURE__ */ D(null), da = /* @__PURE__ */ be(function(e, r) {
|
|
1106
|
+
[e, r] = re(e, r, ge);
|
|
1107
|
+
let a = E(ae), o = Te(e), s = e.isOpen != null || e.defaultOpen != null || !a ? o : a, u = kr(r, s.isOpen) || e.isExiting || !1, i = ao(), { direction: n } = no();
|
|
1132
1108
|
if (i) {
|
|
1133
1109
|
let d = e.children;
|
|
1134
1110
|
return typeof d == "function" && (d = d({
|
|
@@ -1139,7 +1115,7 @@ const xe = /* @__PURE__ */ D(null), Oe = /* @__PURE__ */ D(null), ca = /* @__PUR
|
|
|
1139
1115
|
defaultChildren: null
|
|
1140
1116
|
})), /* @__PURE__ */ f.createElement(f.Fragment, null, d);
|
|
1141
1117
|
}
|
|
1142
|
-
return s && !s.isOpen && !u ? null : /* @__PURE__ */ f.createElement(
|
|
1118
|
+
return s && !s.isOpen && !u ? null : /* @__PURE__ */ f.createElement(Bo, {
|
|
1143
1119
|
...e,
|
|
1144
1120
|
triggerRef: e.triggerRef,
|
|
1145
1121
|
state: s,
|
|
@@ -1148,84 +1124,84 @@ const xe = /* @__PURE__ */ D(null), Oe = /* @__PURE__ */ D(null), ca = /* @__PUR
|
|
|
1148
1124
|
dir: n
|
|
1149
1125
|
});
|
|
1150
1126
|
});
|
|
1151
|
-
function
|
|
1152
|
-
let s =
|
|
1153
|
-
|
|
1127
|
+
function Bo({ state: t, isExiting: e, UNSTABLE_portalContainer: r, clearContexts: a, ...o }) {
|
|
1128
|
+
let s = k(null), [u, i] = B(0), n = k(null), d = E(Fe), l = d && o.trigger === "SubmenuTrigger";
|
|
1129
|
+
W(() => {
|
|
1154
1130
|
s.current && t.isOpen && i(s.current.getBoundingClientRect().width);
|
|
1155
1131
|
}, [
|
|
1156
1132
|
t.isOpen,
|
|
1157
1133
|
s
|
|
1158
1134
|
]);
|
|
1159
1135
|
var $;
|
|
1160
|
-
let { popoverProps: p, underlayProps: c, arrowProps: b, placement: x } =
|
|
1136
|
+
let { popoverProps: p, underlayProps: c, arrowProps: b, placement: x } = yo({
|
|
1161
1137
|
...o,
|
|
1162
1138
|
offset: ($ = o.offset) !== null && $ !== void 0 ? $ : 8,
|
|
1163
1139
|
arrowSize: u,
|
|
1164
1140
|
// If this is a submenu/subdialog, use the root popover's container
|
|
1165
1141
|
// to detect outside interaction and add aria-hidden.
|
|
1166
1142
|
groupRef: l ? d : n
|
|
1167
|
-
}, t), g = o.popoverRef,
|
|
1143
|
+
}, t), g = o.popoverRef, K = Br(g, !!x) || o.isEntering || !1, T = j({
|
|
1168
1144
|
...o,
|
|
1169
1145
|
defaultClassName: "react-aria-Popover",
|
|
1170
1146
|
values: {
|
|
1171
1147
|
trigger: o.trigger || null,
|
|
1172
1148
|
placement: x,
|
|
1173
|
-
isEntering:
|
|
1149
|
+
isEntering: K,
|
|
1174
1150
|
isExiting: e
|
|
1175
1151
|
}
|
|
1176
|
-
}), q = !o.isNonModal || o.trigger === "SubmenuTrigger", [
|
|
1177
|
-
|
|
1152
|
+
}), q = !o.isNonModal || o.trigger === "SubmenuTrigger", [M, y] = B(!1);
|
|
1153
|
+
W(() => {
|
|
1178
1154
|
g.current && y(q && !g.current.querySelector("[role=dialog]"));
|
|
1179
1155
|
}, [
|
|
1180
1156
|
g,
|
|
1181
1157
|
q
|
|
1182
|
-
]),
|
|
1183
|
-
|
|
1158
|
+
]), z(() => {
|
|
1159
|
+
M && g.current && !g.current.contains(document.activeElement) && fe(g.current);
|
|
1184
1160
|
}, [
|
|
1185
|
-
|
|
1161
|
+
M,
|
|
1186
1162
|
g
|
|
1187
1163
|
]);
|
|
1188
|
-
let
|
|
1189
|
-
let
|
|
1190
|
-
if (a) for (let Z of a)
|
|
1164
|
+
let P = V(() => {
|
|
1165
|
+
let w = T.children;
|
|
1166
|
+
if (a) for (let Z of a) w = /* @__PURE__ */ f.createElement(Z.Provider, {
|
|
1191
1167
|
value: null
|
|
1192
|
-
},
|
|
1193
|
-
return
|
|
1168
|
+
}, w);
|
|
1169
|
+
return w;
|
|
1194
1170
|
}, [
|
|
1195
1171
|
T.children,
|
|
1196
1172
|
a
|
|
1197
|
-
]),
|
|
1173
|
+
]), _ = {
|
|
1198
1174
|
...p.style,
|
|
1199
1175
|
...T.style
|
|
1200
|
-
},
|
|
1201
|
-
...
|
|
1176
|
+
}, O = /* @__PURE__ */ f.createElement("div", {
|
|
1177
|
+
...G(F(o), p),
|
|
1202
1178
|
...T,
|
|
1203
|
-
role:
|
|
1204
|
-
tabIndex:
|
|
1179
|
+
role: M ? "dialog" : void 0,
|
|
1180
|
+
tabIndex: M ? -1 : void 0,
|
|
1205
1181
|
"aria-label": o["aria-label"],
|
|
1206
1182
|
"aria-labelledby": o["aria-labelledby"],
|
|
1207
1183
|
ref: g,
|
|
1208
1184
|
slot: o.slot || void 0,
|
|
1209
|
-
style:
|
|
1185
|
+
style: _,
|
|
1210
1186
|
dir: o.dir,
|
|
1211
1187
|
"data-trigger": o.trigger,
|
|
1212
1188
|
"data-placement": x,
|
|
1213
|
-
"data-entering":
|
|
1189
|
+
"data-entering": K || void 0,
|
|
1214
1190
|
"data-exiting": e || void 0
|
|
1215
|
-
}, !o.isNonModal && /* @__PURE__ */ f.createElement(
|
|
1191
|
+
}, !o.isNonModal && /* @__PURE__ */ f.createElement(ke, {
|
|
1216
1192
|
onDismiss: t.close
|
|
1217
|
-
}), /* @__PURE__ */ f.createElement(
|
|
1193
|
+
}), /* @__PURE__ */ f.createElement(Fr.Provider, {
|
|
1218
1194
|
value: {
|
|
1219
1195
|
...b,
|
|
1220
1196
|
placement: x,
|
|
1221
1197
|
ref: s
|
|
1222
1198
|
}
|
|
1223
|
-
},
|
|
1199
|
+
}, P), /* @__PURE__ */ f.createElement(ke, {
|
|
1224
1200
|
onDismiss: t.close
|
|
1225
1201
|
}));
|
|
1226
|
-
if (!l) return /* @__PURE__ */ f.createElement(
|
|
1202
|
+
if (!l) return /* @__PURE__ */ f.createElement(Be, {
|
|
1227
1203
|
...o,
|
|
1228
|
-
shouldContainFocus:
|
|
1204
|
+
shouldContainFocus: M,
|
|
1229
1205
|
isExiting: e,
|
|
1230
1206
|
portalContainer: r
|
|
1231
1207
|
}, !o.isNonModal && t.isOpen && /* @__PURE__ */ f.createElement("div", {
|
|
@@ -1240,36 +1216,36 @@ function Ko({ state: t, isExiting: e, UNSTABLE_portalContainer: r, clearContexts
|
|
|
1240
1216
|
style: {
|
|
1241
1217
|
display: "contents"
|
|
1242
1218
|
}
|
|
1243
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1219
|
+
}, /* @__PURE__ */ f.createElement(Fe.Provider, {
|
|
1244
1220
|
value: n
|
|
1245
|
-
},
|
|
1221
|
+
}, O)));
|
|
1246
1222
|
var C;
|
|
1247
|
-
return /* @__PURE__ */ f.createElement(
|
|
1223
|
+
return /* @__PURE__ */ f.createElement(Be, {
|
|
1248
1224
|
...o,
|
|
1249
|
-
shouldContainFocus:
|
|
1225
|
+
shouldContainFocus: M,
|
|
1250
1226
|
isExiting: e,
|
|
1251
1227
|
portalContainer: (C = r ?? (d == null ? void 0 : d.current)) !== null && C !== void 0 ? C : void 0
|
|
1252
|
-
},
|
|
1228
|
+
}, O);
|
|
1253
1229
|
}
|
|
1254
|
-
const
|
|
1255
|
-
function
|
|
1256
|
-
let e =
|
|
1230
|
+
const Fo = /* @__PURE__ */ D({}), ur = /* @__PURE__ */ D(null), ve = /* @__PURE__ */ D(null), ee = /* @__PURE__ */ D(null), te = /* @__PURE__ */ D(null);
|
|
1231
|
+
function ca(t) {
|
|
1232
|
+
let e = me(t), r = k(null), { menuTriggerProps: a, menuProps: o } = Eo({
|
|
1257
1233
|
...t,
|
|
1258
1234
|
type: "menu"
|
|
1259
|
-
}, e, r), [s, u] = B(null), i =
|
|
1235
|
+
}, e, r), [s, u] = B(null), i = pe(() => {
|
|
1260
1236
|
r.current && u(r.current.offsetWidth + "px");
|
|
1261
1237
|
}, [
|
|
1262
1238
|
r
|
|
1263
1239
|
]);
|
|
1264
|
-
|
|
1240
|
+
Oe({
|
|
1265
1241
|
ref: r,
|
|
1266
1242
|
onResize: i
|
|
1267
1243
|
});
|
|
1268
|
-
let n =
|
|
1269
|
-
return /* @__PURE__ */ f.createElement(
|
|
1244
|
+
let n = k(null);
|
|
1245
|
+
return /* @__PURE__ */ f.createElement(L, {
|
|
1270
1246
|
values: [
|
|
1271
1247
|
[
|
|
1272
|
-
|
|
1248
|
+
ur,
|
|
1273
1249
|
{
|
|
1274
1250
|
...o,
|
|
1275
1251
|
ref: n
|
|
@@ -1284,7 +1260,7 @@ function fa(t) {
|
|
|
1284
1260
|
e
|
|
1285
1261
|
],
|
|
1286
1262
|
[
|
|
1287
|
-
|
|
1263
|
+
ge,
|
|
1288
1264
|
{
|
|
1289
1265
|
trigger: "MenuTrigger",
|
|
1290
1266
|
triggerRef: r,
|
|
@@ -1297,40 +1273,40 @@ function fa(t) {
|
|
|
1297
1273
|
}
|
|
1298
1274
|
]
|
|
1299
1275
|
]
|
|
1300
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1276
|
+
}, /* @__PURE__ */ f.createElement(Le, {
|
|
1301
1277
|
...a,
|
|
1302
1278
|
ref: r,
|
|
1303
1279
|
isPressed: e.isOpen
|
|
1304
1280
|
}, t.children));
|
|
1305
1281
|
}
|
|
1306
|
-
const
|
|
1307
|
-
return [e, r] = re(e, r,
|
|
1308
|
-
content: /* @__PURE__ */ f.createElement(
|
|
1309
|
-
}, (a) => /* @__PURE__ */ f.createElement(
|
|
1282
|
+
const Ko = /* @__PURE__ */ D(null), fa = /* @__PURE__ */ be(function(e, r) {
|
|
1283
|
+
return [e, r] = re(e, r, ur), /* @__PURE__ */ f.createElement(Tr, {
|
|
1284
|
+
content: /* @__PURE__ */ f.createElement(Or, e)
|
|
1285
|
+
}, (a) => /* @__PURE__ */ f.createElement(To, {
|
|
1310
1286
|
props: e,
|
|
1311
1287
|
collection: a,
|
|
1312
1288
|
menuRef: r
|
|
1313
1289
|
}));
|
|
1314
1290
|
});
|
|
1315
|
-
function
|
|
1316
|
-
let { filter: a, collectionProps: o, collectionRef: s } =
|
|
1317
|
-
r =
|
|
1291
|
+
function To({ props: t, collection: e, menuRef: r }) {
|
|
1292
|
+
let { filter: a, collectionProps: o, collectionRef: s } = E(Ce) || {};
|
|
1293
|
+
r = Ke(V(() => Dr(r, s !== void 0 ? s : null), [
|
|
1318
1294
|
s,
|
|
1319
1295
|
r
|
|
1320
1296
|
]));
|
|
1321
|
-
let u =
|
|
1297
|
+
let u = V(() => a ? e.UNSTABLE_filter(a) : e, [
|
|
1322
1298
|
e,
|
|
1323
1299
|
a
|
|
1324
|
-
]), i =
|
|
1300
|
+
]), i = So({
|
|
1325
1301
|
...t,
|
|
1326
1302
|
collection: u,
|
|
1327
1303
|
children: void 0
|
|
1328
|
-
}), n =
|
|
1304
|
+
}), n = E(ee), { isVirtualized: d, CollectionRoot: l } = E(Re), { menuProps: $ } = Do({
|
|
1329
1305
|
...t,
|
|
1330
1306
|
...o,
|
|
1331
1307
|
isVirtualized: d,
|
|
1332
1308
|
onClose: t.onClose || (n == null ? void 0 : n.close)
|
|
1333
|
-
}, i, r), p =
|
|
1309
|
+
}, i, r), p = j({
|
|
1334
1310
|
defaultClassName: "react-aria-Menu",
|
|
1335
1311
|
className: t.className,
|
|
1336
1312
|
style: t.style,
|
|
@@ -1344,45 +1320,45 @@ function Ro({ props: t, collection: e, menuRef: r }) {
|
|
|
1344
1320
|
display: "contents"
|
|
1345
1321
|
}
|
|
1346
1322
|
}, t.renderEmptyState())), /* @__PURE__ */ f.createElement(He, null, /* @__PURE__ */ f.createElement("div", {
|
|
1347
|
-
...
|
|
1323
|
+
...F(t),
|
|
1348
1324
|
...$,
|
|
1349
1325
|
...p,
|
|
1350
1326
|
ref: r,
|
|
1351
1327
|
slot: t.slot || void 0,
|
|
1352
1328
|
"data-empty": i.collection.size === 0 || void 0,
|
|
1353
1329
|
onScroll: t.onScroll
|
|
1354
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1330
|
+
}, /* @__PURE__ */ f.createElement(L, {
|
|
1355
1331
|
values: [
|
|
1356
1332
|
[
|
|
1357
|
-
|
|
1333
|
+
ve,
|
|
1358
1334
|
i
|
|
1359
1335
|
],
|
|
1360
1336
|
[
|
|
1361
|
-
|
|
1337
|
+
zr,
|
|
1362
1338
|
{
|
|
1363
1339
|
elementType: "div"
|
|
1364
1340
|
}
|
|
1365
1341
|
],
|
|
1366
1342
|
[
|
|
1367
|
-
|
|
1343
|
+
Rr,
|
|
1368
1344
|
{
|
|
1369
1345
|
name: "MenuSection",
|
|
1370
|
-
render:
|
|
1346
|
+
render: Ro
|
|
1371
1347
|
}
|
|
1372
1348
|
],
|
|
1373
1349
|
[
|
|
1374
|
-
|
|
1350
|
+
Ko,
|
|
1375
1351
|
{
|
|
1376
1352
|
parentMenuRef: r,
|
|
1377
1353
|
shouldUseVirtualFocus: o == null ? void 0 : o.shouldUseVirtualFocus
|
|
1378
1354
|
}
|
|
1379
1355
|
],
|
|
1380
1356
|
[
|
|
1381
|
-
|
|
1357
|
+
$e,
|
|
1382
1358
|
null
|
|
1383
1359
|
],
|
|
1384
1360
|
[
|
|
1385
|
-
|
|
1361
|
+
Ce,
|
|
1386
1362
|
null
|
|
1387
1363
|
],
|
|
1388
1364
|
[
|
|
@@ -1394,16 +1370,16 @@ function Ro({ props: t, collection: e, menuRef: r }) {
|
|
|
1394
1370
|
/* eslint-disable-next-line react-hooks/rules-of-hooks */
|
|
1395
1371
|
[
|
|
1396
1372
|
ee,
|
|
1397
|
-
n ??
|
|
1373
|
+
n ?? me({})
|
|
1398
1374
|
]
|
|
1399
1375
|
]
|
|
1400
1376
|
}, /* @__PURE__ */ f.createElement(l, {
|
|
1401
1377
|
collection: i.collection,
|
|
1402
|
-
persistedKeys:
|
|
1378
|
+
persistedKeys: Ir(i.selectionManager.focusedKey),
|
|
1403
1379
|
scrollRef: r
|
|
1404
1380
|
})), c));
|
|
1405
1381
|
}
|
|
1406
|
-
class
|
|
1382
|
+
class Oo extends Ne {
|
|
1407
1383
|
get focusedKey() {
|
|
1408
1384
|
return this.parent.focusedKey;
|
|
1409
1385
|
}
|
|
@@ -1423,28 +1399,28 @@ class Io extends Le {
|
|
|
1423
1399
|
super(e.collection, r), this.parent = e;
|
|
1424
1400
|
}
|
|
1425
1401
|
}
|
|
1426
|
-
function
|
|
1402
|
+
function Ro(t, e, r, a = "react-aria-MenuSection") {
|
|
1427
1403
|
var o, s;
|
|
1428
|
-
let u =
|
|
1404
|
+
let u = E(ve), { CollectionBranch: i } = E(Re), [n, d] = Cr();
|
|
1429
1405
|
var l;
|
|
1430
|
-
let { headingProps: $, groupProps: p } =
|
|
1406
|
+
let { headingProps: $, groupProps: p } = Ao({
|
|
1431
1407
|
heading: d,
|
|
1432
1408
|
"aria-label": (l = r.props["aria-label"]) !== null && l !== void 0 ? l : void 0
|
|
1433
|
-
}), c =
|
|
1409
|
+
}), c = j({
|
|
1434
1410
|
defaultClassName: a,
|
|
1435
1411
|
className: (o = r.props) === null || o === void 0 ? void 0 : o.className,
|
|
1436
1412
|
style: (s = r.props) === null || s === void 0 ? void 0 : s.style,
|
|
1437
1413
|
values: {}
|
|
1438
|
-
}), b =
|
|
1414
|
+
}), b = E(te), x = Ie(t), g = t.selectionMode != null ? new Oo(b, x) : b;
|
|
1439
1415
|
return /* @__PURE__ */ f.createElement("section", {
|
|
1440
|
-
...
|
|
1416
|
+
...F(t),
|
|
1441
1417
|
...p,
|
|
1442
1418
|
...c,
|
|
1443
1419
|
ref: e
|
|
1444
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1420
|
+
}, /* @__PURE__ */ f.createElement(L, {
|
|
1445
1421
|
values: [
|
|
1446
1422
|
[
|
|
1447
|
-
|
|
1423
|
+
_r,
|
|
1448
1424
|
{
|
|
1449
1425
|
...$,
|
|
1450
1426
|
ref: n
|
|
@@ -1460,17 +1436,17 @@ function No(t, e, r, a = "react-aria-MenuSection") {
|
|
|
1460
1436
|
parent: r
|
|
1461
1437
|
})));
|
|
1462
1438
|
}
|
|
1463
|
-
const
|
|
1439
|
+
const $e = /* @__PURE__ */ D(null), $a = /* @__PURE__ */ Kr("item", function(e, r, a) {
|
|
1464
1440
|
var o;
|
|
1465
|
-
[e, r] = re(e, r,
|
|
1466
|
-
let s = (o =
|
|
1441
|
+
[e, r] = re(e, r, $e);
|
|
1442
|
+
let s = (o = Er($e)) === null || o === void 0 ? void 0 : o.id, u = E(ve), i = Ke(r), n = E(te), { menuItemProps: d, labelProps: l, descriptionProps: $, keyboardShortcutProps: p, ...c } = Co({
|
|
1467
1443
|
...e,
|
|
1468
1444
|
id: s,
|
|
1469
1445
|
key: a.key,
|
|
1470
1446
|
selectionManager: n
|
|
1471
1447
|
}, u, i), { hoverProps: b, isHovered: x } = ze({
|
|
1472
1448
|
isDisabled: c.isDisabled
|
|
1473
|
-
}), g =
|
|
1449
|
+
}), g = j({
|
|
1474
1450
|
...e,
|
|
1475
1451
|
id: void 0,
|
|
1476
1452
|
children: a.rendered,
|
|
@@ -1484,9 +1460,9 @@ const pe = /* @__PURE__ */ D(null), pa = /* @__PURE__ */ Or("item", function(e,
|
|
|
1484
1460
|
hasSubmenu: !!e["aria-haspopup"],
|
|
1485
1461
|
isOpen: e["aria-expanded"] === "true"
|
|
1486
1462
|
}
|
|
1487
|
-
}),
|
|
1488
|
-
return /* @__PURE__ */ f.createElement(
|
|
1489
|
-
...
|
|
1463
|
+
}), K = e.href ? "a" : "div";
|
|
1464
|
+
return /* @__PURE__ */ f.createElement(K, {
|
|
1465
|
+
...G(d, b),
|
|
1490
1466
|
...g,
|
|
1491
1467
|
ref: i,
|
|
1492
1468
|
"data-disabled": c.isDisabled || void 0,
|
|
@@ -1498,10 +1474,10 @@ const pe = /* @__PURE__ */ D(null), pa = /* @__PURE__ */ Or("item", function(e,
|
|
|
1498
1474
|
"data-selection-mode": n.selectionMode === "none" ? void 0 : n.selectionMode,
|
|
1499
1475
|
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
1500
1476
|
"data-open": e["aria-expanded"] === "true" || void 0
|
|
1501
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1477
|
+
}, /* @__PURE__ */ f.createElement(L, {
|
|
1502
1478
|
values: [
|
|
1503
1479
|
[
|
|
1504
|
-
|
|
1480
|
+
Hr,
|
|
1505
1481
|
{
|
|
1506
1482
|
slots: {
|
|
1507
1483
|
[de]: l,
|
|
@@ -1511,24 +1487,24 @@ const pe = /* @__PURE__ */ D(null), pa = /* @__PURE__ */ Or("item", function(e,
|
|
|
1511
1487
|
}
|
|
1512
1488
|
],
|
|
1513
1489
|
[
|
|
1514
|
-
|
|
1490
|
+
Fo,
|
|
1515
1491
|
p
|
|
1516
1492
|
]
|
|
1517
1493
|
]
|
|
1518
1494
|
}, g.children));
|
|
1519
|
-
}),
|
|
1520
|
-
function
|
|
1521
|
-
let e =
|
|
1495
|
+
}), dr = /* @__PURE__ */ D(null), ae = /* @__PURE__ */ D(null);
|
|
1496
|
+
function pa(t) {
|
|
1497
|
+
let e = me(t), r = k(null), { triggerProps: a, overlayProps: o } = Ve({
|
|
1522
1498
|
type: "dialog"
|
|
1523
|
-
}, e, r), [s, u] = B(null), i =
|
|
1499
|
+
}, e, r), [s, u] = B(null), i = pe(() => {
|
|
1524
1500
|
r.current && u(r.current.offsetWidth + "px");
|
|
1525
1501
|
}, [
|
|
1526
1502
|
r
|
|
1527
1503
|
]);
|
|
1528
|
-
return
|
|
1504
|
+
return Oe({
|
|
1529
1505
|
ref: r,
|
|
1530
1506
|
onResize: i
|
|
1531
|
-
}), a.id = oe(), o["aria-labelledby"] = a.id, /* @__PURE__ */ f.createElement(
|
|
1507
|
+
}), a.id = oe(), o["aria-labelledby"] = a.id, /* @__PURE__ */ f.createElement(L, {
|
|
1532
1508
|
values: [
|
|
1533
1509
|
[
|
|
1534
1510
|
ae,
|
|
@@ -1539,11 +1515,11 @@ function ba(t) {
|
|
|
1539
1515
|
e
|
|
1540
1516
|
],
|
|
1541
1517
|
[
|
|
1542
|
-
|
|
1518
|
+
dr,
|
|
1543
1519
|
o
|
|
1544
1520
|
],
|
|
1545
1521
|
[
|
|
1546
|
-
|
|
1522
|
+
ge,
|
|
1547
1523
|
{
|
|
1548
1524
|
trigger: "DialogTrigger",
|
|
1549
1525
|
triggerRef: r,
|
|
@@ -1554,23 +1530,23 @@ function ba(t) {
|
|
|
1554
1530
|
}
|
|
1555
1531
|
]
|
|
1556
1532
|
]
|
|
1557
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1533
|
+
}, /* @__PURE__ */ f.createElement(Le, {
|
|
1558
1534
|
...a,
|
|
1559
1535
|
ref: r,
|
|
1560
1536
|
isPressed: e.isOpen
|
|
1561
1537
|
}, t.children));
|
|
1562
1538
|
}
|
|
1563
|
-
const
|
|
1539
|
+
const ba = /* @__PURE__ */ be(function(e, r) {
|
|
1564
1540
|
let a = e["aria-labelledby"];
|
|
1565
|
-
[e, r] = re(e, r,
|
|
1566
|
-
let { dialogProps: o, titleProps: s } =
|
|
1541
|
+
[e, r] = re(e, r, dr);
|
|
1542
|
+
let { dialogProps: o, titleProps: s } = Mo({
|
|
1567
1543
|
...e,
|
|
1568
1544
|
// Only pass aria-labelledby from props, not context.
|
|
1569
1545
|
// Context is used as a fallback below.
|
|
1570
1546
|
"aria-labelledby": a
|
|
1571
|
-
}, r), u =
|
|
1547
|
+
}, r), u = E(ae);
|
|
1572
1548
|
!o["aria-label"] && !o["aria-labelledby"] && (e["aria-labelledby"] ? o["aria-labelledby"] = e["aria-labelledby"] : process.env.NODE_ENV !== "production" && console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));
|
|
1573
|
-
let i =
|
|
1549
|
+
let i = j({
|
|
1574
1550
|
defaultClassName: "react-aria-Dialog",
|
|
1575
1551
|
className: e.className,
|
|
1576
1552
|
style: e.style,
|
|
@@ -1581,12 +1557,12 @@ const ma = /* @__PURE__ */ ge(function(e, r) {
|
|
|
1581
1557
|
}
|
|
1582
1558
|
});
|
|
1583
1559
|
return /* @__PURE__ */ f.createElement("section", {
|
|
1584
|
-
...
|
|
1560
|
+
...F(e),
|
|
1585
1561
|
...o,
|
|
1586
1562
|
...i,
|
|
1587
1563
|
ref: r,
|
|
1588
1564
|
slot: e.slot || void 0
|
|
1589
|
-
}, /* @__PURE__ */ f.createElement(
|
|
1565
|
+
}, /* @__PURE__ */ f.createElement(L, {
|
|
1590
1566
|
values: [
|
|
1591
1567
|
[
|
|
1592
1568
|
Ar,
|
|
@@ -1601,7 +1577,7 @@ const ma = /* @__PURE__ */ ge(function(e, r) {
|
|
|
1601
1577
|
}
|
|
1602
1578
|
],
|
|
1603
1579
|
[
|
|
1604
|
-
|
|
1580
|
+
Pr,
|
|
1605
1581
|
{
|
|
1606
1582
|
slots: {
|
|
1607
1583
|
[de]: {},
|
|
@@ -1615,22 +1591,21 @@ const ma = /* @__PURE__ */ ge(function(e, r) {
|
|
|
1615
1591
|
}, i.children));
|
|
1616
1592
|
});
|
|
1617
1593
|
export {
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1594
|
+
pa as $,
|
|
1595
|
+
da as a,
|
|
1596
|
+
ca as b,
|
|
1597
|
+
fa as c,
|
|
1598
|
+
$a as d,
|
|
1599
|
+
co as e,
|
|
1600
|
+
$o as f,
|
|
1601
|
+
ho as g,
|
|
1602
|
+
vo as h,
|
|
1627
1603
|
ae as i,
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
Ve as q
|
|
1604
|
+
ke as j,
|
|
1605
|
+
Be as k,
|
|
1606
|
+
ba as l,
|
|
1607
|
+
ge as m,
|
|
1608
|
+
dr as n,
|
|
1609
|
+
Eo as o,
|
|
1610
|
+
me as p
|
|
1636
1611
|
};
|