@eightshift/ui-components 6.1.1 → 6.3.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/dist/{Button-CFnNdpNZ.js → Button-DtRmB6b8.js} +7 -6
- package/dist/{Dialog-D0jMcN-a.js → Dialog-DTIxSDhz.js} +115 -52
- package/dist/{FocusScope-BJhC1-1e.js → FocusScope-CjFQ7cbd.js} +16 -16
- package/dist/{Hidden-Rfj-STx7.js → Hidden-DOH36apC.js} +23 -6
- package/dist/{Input-B4X6-x6r.js → Input-BG9DaxYN.js} +6 -6
- package/dist/{Label-BDlf9vIY.js → Label-_aSf9-8u.js} +1 -1
- package/dist/{ListBox-BaN0n5h3.js → ListBox-DXFyyj_r.js} +15 -12
- package/dist/{OverlayArrow-Dy0qw7WL.js → OverlayArrow-Fuxj-1QM.js} +27 -9
- package/dist/{RadioGroup-CjCAbUr4.js → RadioGroup-DCeiLxLK.js} +9 -9
- package/dist/{SearchField-CafsA525.js → SearchField-B_yKFXRk.js} +11 -11
- package/dist/{SelectionManager-oojq6MOy.js → SelectionManager-B02LcxLr.js} +143 -96
- package/dist/{Slider-BIbaMdUE.js → Slider-bR3fAmim.js} +7 -7
- package/dist/{VisuallyHidden-CqnizvzQ.js → VisuallyHidden-DZnWrkn8.js} +1 -1
- package/dist/assets/style-admin.css +637 -327
- package/dist/assets/style-editor.css +637 -327
- package/dist/assets/style.css +637 -327
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +7 -7
- package/dist/assets/wp-overrides/replace-fonts.css +5 -5
- package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.js +1 -1
- package/dist/components/button/button.js +12 -9
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/color-pickers/solid-color-picker.js +10 -10
- package/dist/components/expandable/expandable.js +5 -5
- package/dist/components/input-field/input-field.js +6 -9
- package/dist/components/link-input/link-input.js +191 -68
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/modal/modal.js +11 -8
- package/dist/components/notice/notice.js +3 -3
- package/dist/components/number-picker/number-picker.js +7 -7
- package/dist/components/options-panel/options-panel.js +6 -6
- package/dist/components/popover/popover.js +8 -7
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/responsive/mini-responsive.js +81 -70
- package/dist/components/responsive/responsive.js +24 -40
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.js +11 -5
- package/dist/components/select/async-multi-select.js +89 -47
- package/dist/components/select/async-select.js +90 -47
- package/dist/components/select/multi-select.js +161 -117
- package/dist/components/select/shared.js +5 -4
- package/dist/components/select/single-select.js +159 -115
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/tabs/tabs.js +39 -8
- package/dist/components/toggle/switch.js +5 -5
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +6 -6
- package/dist/components/tooltip/tooltip.js +11 -9
- package/dist/{proxy-DFlYXk07.js → proxy-CNEXmkdK.js} +205 -137
- package/dist/{shared-CMLCUova.js → shared-CNH8QfV9.js} +50 -15
- package/dist/{textSelection-CeoEP4rL.js → textSelection-DA3VcKpG.js} +1 -1
- package/dist/{useButton-5YL_nmpZ.js → useButton-DyMX0EVr.js} +2 -2
- package/dist/{useEvent-Zze2g7CX.js → useEvent-Bfy68GHZ.js} +1 -1
- package/dist/{useFilter-8S94U4xM.js → useFilter-Bg5C34XC.js} +1 -1
- package/dist/{useFocusRing-rUOwLdTK.js → useFocusRing-B2glEZ25.js} +9 -7
- package/dist/{useFormReset-BxtOoO5Q.js → useFormReset-BoxsKyJ9.js} +1 -1
- package/dist/{useFormValidation-DTmPrTD8.js → useFormValidation-BrbMhS2N.js} +4 -3
- package/dist/{useHover-CmyvqeWX.js → useHover-DkmPQdGE.js} +76 -58
- package/dist/{useListState-B22CApJO.js → useListState-BjnzKozj.js} +3 -3
- package/dist/{useNumberField-CTkI-U9a.js → useNumberField-CsygZKz9.js} +45 -15
- package/dist/{usePress-CNefMs8d.js → usePress-Ck5xMtDr.js} +21 -21
- package/dist/{useToggle-CFFOmZWi.js → useToggle-Ddc7N8pR.js} +4 -4
- package/dist/{useToggleState-BWrKKisg.js → useToggleState-H_lORSWO.js} +1 -1
- package/package.json +22 -21
- package/dist/useSingleSelectListState-CDZGQDLC.js +0 -38
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e, d as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-Cr3pLd9c.js";
|
|
2
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
2
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-_aSf9-8u.js";
|
|
3
3
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
5
5
|
import $dbSRa$react__default, { forwardRef, createContext, useRef, useEffect } from "react";
|
|
6
6
|
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-DzXzKZZZ.js";
|
|
7
7
|
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CG_IQXp9.js";
|
|
8
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
9
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
10
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
11
|
-
import {
|
|
8
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-DOH36apC.js";
|
|
9
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-DyMX0EVr.js";
|
|
10
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-B2glEZ25.js";
|
|
11
|
+
import { y as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-DkmPQdGE.js";
|
|
12
12
|
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
13
13
|
let $319e236875307eab$var$liveAnnouncer = null;
|
|
14
14
|
function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
@@ -225,9 +225,10 @@ const $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /* @__PURE__ */ $f39a9eba43920
|
|
|
225
225
|
}
|
|
226
226
|
}, renderProps.children));
|
|
227
227
|
});
|
|
228
|
+
const $d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
228
229
|
function $d2b4bc8c273e7be6$var$useDisableInteractions(props, isPending) {
|
|
229
230
|
if (isPending) {
|
|
230
|
-
for (const key in props) if (key.startsWith("on") &&
|
|
231
|
+
for (const key in props) if (key.startsWith("on") && !$d2b4bc8c273e7be6$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = void 0;
|
|
231
232
|
props.href = void 0;
|
|
232
233
|
props.target = void 0;
|
|
233
234
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
1
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-DtRmB6b8.js";
|
|
2
2
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $df56164dff5785e2$export$4338b53315abf666, d as $bdb11010cef70236$export$f680877a34711e37, c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, o as $ff5963eb1fccf552$export$e08e3b67e392101e, m as $b5e257d569688ac6$export$535bd6ca7f90a273, j as $bdb11010cef70236$export$b4cc09c592e8fdb8, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$df3a06d6289f983e, h as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$fabf2dc03a41866e, n as $64fa3d84918910a7$export$c62b8e45d58ddad9, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-Cr3pLd9c.js";
|
|
3
3
|
import { c as $4e85f108e88277b8$export$b0d3ecf7112093a7, a as $4e85f108e88277b8$export$698f465ec27e93df, $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-CJ-HBf0L.js";
|
|
4
|
-
import { e as $dd149f63282afbbf$export$f6211563215e3b37, a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, d as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6, b as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./OverlayArrow-
|
|
5
|
-
import {
|
|
4
|
+
import { e as $dd149f63282afbbf$export$f6211563215e3b37, a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, d as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6, b as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./OverlayArrow-Fuxj-1QM.js";
|
|
5
|
+
import { e as $cc38e7bd3fc7b213$export$2bb74740c4e19def, d as $21f1aa98acb08317$export$c57958e35f31ed73, B as $feb5ffebff200149$export$c3d8340acf92597f, o as $ae20dd8cbca75726$export$d6daf82dcd84e87c, s as $c5a24bc478652b5f$export$1005530eda016c13, C as $8a26561d2877236e$export$c24ed0104d07eab9, f as $880e95eb8b93ba9a$export$ecf600387e221c37, a as $7af3f5b51489e0b5$export$253fe78d46329472, b as $7613b1592d41b092$export$6cd28814d92fa9c9, c as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, j as $e1995378a142960e$export$18af5c7a9e9b3664, D as $23b9f4fcf0fe224b$export$5ae2504e948afce5, p as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, g as $e1995378a142960e$export$bf788dd355e3a401, $ as $e1995378a142960e$export$fb8073518f34e6ec, k as $23b9f4fcf0fe224b$export$fd11f34e1d07f134, l as $7135fc7d473fd974$export$4feb769f8ddf26c5, h as $e1995378a142960e$export$e953bb1cd0f19726, i as $23b9f4fcf0fe224b$export$437f11dc9b403b78, m as $7135fc7d473fd974$export$d40e14dec8b060a8, q as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "./SelectionManager-B02LcxLr.js";
|
|
6
6
|
import $dbSRa$react__default, { useRef, useContext, useEffect, useMemo, useState, useCallback, createContext, forwardRef } from "react";
|
|
7
7
|
import { $ as $1d5b8b8664671ef2$export$c9549807523555e0 } from "./SelectionIndicator-D7WMzeAW.js";
|
|
8
8
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
9
9
|
import { $ as $c8a5a149f625efcf$export$758399f318e6385a } from "./SharedElementTransition-CtoWSaF0.js";
|
|
10
10
|
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-CjFEHSfr.js";
|
|
11
|
-
import { a as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
12
|
-
import {
|
|
11
|
+
import { a as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-Ck5xMtDr.js";
|
|
12
|
+
import { J as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $431fbd86ca7dc216$export$b204af158042fbac, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, h as $d4ee10de306f2510$export$4282f70798064fe0, d as $c87311424ea30a05$export$fedb369cb70207f1, j as $d4ee10de306f2510$export$cd4e5573fbe2b576, w as $431fbd86ca7dc216$export$f21a1ffae260145a, p as $f4e2df6bd15f8569$export$98658e8c59125e6a, A as $7215afc6de606d6b$export$de79e2c695e052f3, M as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, y as $6179b936705e76d3$export$ae780daf29e6d456, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, B as $46d819fcbaf35654$export$8f71654801c2f7cd, x as $507fabe10e71c6fb$export$8397ddfc504fdb9a, $ as $f645667febf57a63$export$4c014de7c8940b4c, F as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, Q as $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f, R as $507fabe10e71c6fb$export$98e20ec92f614cfe, D as $d4ee10de306f2510$export$b4f377a2b6254582, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, v as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useHover-DkmPQdGE.js";
|
|
13
13
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CEDs0LsA.js";
|
|
14
14
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
15
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
16
|
-
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
15
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-Bfy68GHZ.js";
|
|
16
|
+
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, d as $dfc540311bf7f109$export$4d0f8be8b12a7ef6, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CjFQ7cbd.js";
|
|
17
17
|
import { a as $96b38030c423d352$export$9fc1347d4195ccb3 } from "./PortalProvider-BQ1X8vGX.js";
|
|
18
18
|
import { $ as $dbSRa$reactdom } from "./index-BL5gdWX4.js";
|
|
19
19
|
import { $ as $d3f049242431219c$export$45fda7c47f93fd48, a as $d3f049242431219c$export$6d3443f2c48bfc20 } from "./animation-Dfl8uEb3.js";
|
|
20
|
-
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-
|
|
21
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
20
|
+
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-DOH36apC.js";
|
|
21
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-B2glEZ25.js";
|
|
22
22
|
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-D8O3gOdV.js";
|
|
23
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
23
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DZnWrkn8.js";
|
|
24
24
|
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
25
25
|
let scrollableNode = node;
|
|
26
26
|
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
@@ -127,10 +127,11 @@ function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
|
127
127
|
}
|
|
128
128
|
function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
|
|
129
129
|
if (event.button > 0) return false;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (
|
|
130
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(event);
|
|
131
|
+
if (target) {
|
|
132
|
+
const ownerDocument = target.ownerDocument;
|
|
133
|
+
if (!ownerDocument || !$d4ee10de306f2510$export$4282f70798064fe0(ownerDocument.documentElement, target)) return false;
|
|
134
|
+
if (target.closest("[data-react-aria-top-layer]")) return false;
|
|
134
135
|
}
|
|
135
136
|
if (!ref.current) return false;
|
|
136
137
|
return !event.composedPath().includes(ref.current);
|
|
@@ -157,7 +158,7 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
|
157
158
|
let onInteractOutsideStart = (e) => {
|
|
158
159
|
const topMostOverlay = $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1];
|
|
159
160
|
lastVisibleOverlay.current = topMostOverlay;
|
|
160
|
-
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e
|
|
161
|
+
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside($d4ee10de306f2510$export$e58f029f0fbfdb29(e))) {
|
|
161
162
|
if (topMostOverlay === ref) {
|
|
162
163
|
e.stopPropagation();
|
|
163
164
|
e.preventDefault();
|
|
@@ -165,7 +166,7 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
|
165
166
|
}
|
|
166
167
|
};
|
|
167
168
|
let onInteractOutside = (e) => {
|
|
168
|
-
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e
|
|
169
|
+
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside($d4ee10de306f2510$export$e58f029f0fbfdb29(e))) {
|
|
169
170
|
if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref) {
|
|
170
171
|
e.stopPropagation();
|
|
171
172
|
e.preventDefault();
|
|
@@ -194,7 +195,7 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
|
194
195
|
}
|
|
195
196
|
});
|
|
196
197
|
let onPointerDownUnderlay = (e) => {
|
|
197
|
-
if (e
|
|
198
|
+
if ($d4ee10de306f2510$export$e58f029f0fbfdb29(e) === e.currentTarget) e.preventDefault();
|
|
198
199
|
};
|
|
199
200
|
return {
|
|
200
201
|
overlayProps: {
|
|
@@ -254,10 +255,11 @@ function $49c51c25361d4cd2$var$preventScrollStandard() {
|
|
|
254
255
|
("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
|
|
255
256
|
}
|
|
256
257
|
function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
258
|
+
let restoreOverflow = $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden");
|
|
257
259
|
let scrollable;
|
|
258
260
|
let allowTouchMove = false;
|
|
259
261
|
let onTouchStart = (e) => {
|
|
260
|
-
let target = e
|
|
262
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
261
263
|
scrollable = $cc38e7bd3fc7b213$export$2bb74740c4e19def(target) ? target : $62d8ded9296f3872$export$cfa2225e87938781(target, true);
|
|
262
264
|
allowTouchMove = false;
|
|
263
265
|
let selection = target.ownerDocument.defaultView.getSelection();
|
|
@@ -282,7 +284,7 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
282
284
|
if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();
|
|
283
285
|
};
|
|
284
286
|
let onBlur = (e) => {
|
|
285
|
-
let target = e
|
|
287
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
286
288
|
let relatedTarget = e.relatedTarget;
|
|
287
289
|
if (relatedTarget && $21f1aa98acb08317$export$c57958e35f31ed73(relatedTarget)) {
|
|
288
290
|
relatedTarget.focus({
|
|
@@ -299,7 +301,8 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
299
301
|
};
|
|
300
302
|
let focus = HTMLElement.prototype.focus;
|
|
301
303
|
HTMLElement.prototype.focus = function(opts) {
|
|
302
|
-
let
|
|
304
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
305
|
+
let wasKeyboardVisible = activeElement != null && $21f1aa98acb08317$export$c57958e35f31ed73(activeElement);
|
|
303
306
|
focus.call(this, {
|
|
304
307
|
...opts,
|
|
305
308
|
preventScroll: true
|
|
@@ -314,6 +317,7 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
314
317
|
capture: true
|
|
315
318
|
}), $49c51c25361d4cd2$var$addEvent(document, "blur", onBlur, true));
|
|
316
319
|
return () => {
|
|
320
|
+
restoreOverflow();
|
|
317
321
|
removeEvents();
|
|
318
322
|
style.remove();
|
|
319
323
|
HTMLElement.prototype.focus = focus;
|
|
@@ -580,6 +584,16 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
|
580
584
|
element.inert = false;
|
|
581
585
|
}
|
|
582
586
|
};
|
|
587
|
+
let shadowRootsToWatch = /* @__PURE__ */ new Set();
|
|
588
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a())
|
|
589
|
+
for (let target of targets) {
|
|
590
|
+
let node = target;
|
|
591
|
+
while (node && node !== root) {
|
|
592
|
+
let root2 = node.getRootNode();
|
|
593
|
+
if ("shadowRoot" in root2) shadowRootsToWatch.add(root2.shadowRoot);
|
|
594
|
+
node = root2.parentNode;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
583
597
|
let walk = (root2) => {
|
|
584
598
|
for (let element of root2.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) visibleNodes.add(element);
|
|
585
599
|
let acceptNode = (node) => {
|
|
@@ -589,7 +603,7 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
|
589
603
|
}
|
|
590
604
|
return NodeFilter.FILTER_ACCEPT;
|
|
591
605
|
};
|
|
592
|
-
let walker =
|
|
606
|
+
let walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6($431fbd86ca7dc216$export$b204af158042fbac(root2), root2, NodeFilter.SHOW_ELEMENT, {
|
|
593
607
|
acceptNode
|
|
594
608
|
});
|
|
595
609
|
let acceptRoot = acceptNode(root2);
|
|
@@ -622,12 +636,44 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
|
622
636
|
if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === "true" || node.dataset.reactAriaTopLayer === "true")) visibleNodes.add(node);
|
|
623
637
|
else if (node instanceof Element) walk(node);
|
|
624
638
|
}
|
|
639
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a()) {
|
|
640
|
+
for (let shadowRoot of shadowRootsToWatch) if (!shadowRoot.isConnected) {
|
|
641
|
+
observer.disconnect();
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
625
645
|
}
|
|
626
646
|
});
|
|
627
647
|
observer.observe(root, {
|
|
628
648
|
childList: true,
|
|
629
649
|
subtree: true
|
|
630
650
|
});
|
|
651
|
+
let shadowObservers = /* @__PURE__ */ new Set();
|
|
652
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a()) for (let shadowRoot of shadowRootsToWatch) {
|
|
653
|
+
let shadowObserver = new MutationObserver((changes) => {
|
|
654
|
+
for (let change of changes) {
|
|
655
|
+
if (change.type !== "childList") continue;
|
|
656
|
+
if (change.target.isConnected && ![
|
|
657
|
+
...visibleNodes,
|
|
658
|
+
...hiddenNodes
|
|
659
|
+
].some((node) => $d4ee10de306f2510$export$4282f70798064fe0(node, change.target))) for (let node of change.addedNodes) {
|
|
660
|
+
if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === "true" || node.dataset.reactAriaTopLayer === "true")) visibleNodes.add(node);
|
|
661
|
+
else if (node instanceof Element) walk(node);
|
|
662
|
+
}
|
|
663
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a()) {
|
|
664
|
+
for (let shadowRoot2 of shadowRootsToWatch) if (!shadowRoot2.isConnected) {
|
|
665
|
+
observer.disconnect();
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
shadowObserver.observe(shadowRoot, {
|
|
672
|
+
childList: true,
|
|
673
|
+
subtree: true
|
|
674
|
+
});
|
|
675
|
+
shadowObservers.add(shadowObserver);
|
|
676
|
+
}
|
|
631
677
|
let observerWrapper = {
|
|
632
678
|
visibleNodes,
|
|
633
679
|
hiddenNodes,
|
|
@@ -644,6 +690,7 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
|
644
690
|
$5e3802645cc19319$var$observerStack.push(observerWrapper);
|
|
645
691
|
return () => {
|
|
646
692
|
observer.disconnect();
|
|
693
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a()) for (let shadowObserver of shadowObservers) shadowObserver.disconnect();
|
|
647
694
|
for (let node of hiddenNodes) {
|
|
648
695
|
let count = $5e3802645cc19319$var$refCountMap.get(node);
|
|
649
696
|
if (count == null) continue;
|
|
@@ -1318,6 +1365,7 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1318
1365
|
"aria-label": props["aria-label"],
|
|
1319
1366
|
"aria-labelledby": labelId,
|
|
1320
1367
|
"aria-describedby": [
|
|
1368
|
+
props["aria-describedby"],
|
|
1321
1369
|
descriptionId,
|
|
1322
1370
|
keyboardId
|
|
1323
1371
|
].filter(Boolean).join(" ") || void 0,
|
|
@@ -1327,7 +1375,8 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1327
1375
|
};
|
|
1328
1376
|
if (selectionManager.selectionMode !== "none" && !isTrigger) ariaProps["aria-checked"] = isSelected;
|
|
1329
1377
|
if (isVirtualized) {
|
|
1330
|
-
|
|
1378
|
+
let index = Number(item === null || item === void 0 ? void 0 : item.index);
|
|
1379
|
+
ariaProps["aria-posinset"] = Number.isNaN(index) ? void 0 : index + 1;
|
|
1331
1380
|
ariaProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
1332
1381
|
}
|
|
1333
1382
|
let isPressedRef = useRef(false);
|
|
@@ -1402,14 +1451,16 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1402
1451
|
pointerType: "keyboard",
|
|
1403
1452
|
key: " "
|
|
1404
1453
|
};
|
|
1405
|
-
e.
|
|
1454
|
+
$d4ee10de306f2510$export$e58f029f0fbfdb29(e).click();
|
|
1455
|
+
$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard");
|
|
1406
1456
|
break;
|
|
1407
1457
|
case "Enter":
|
|
1408
1458
|
interaction.current = {
|
|
1409
1459
|
pointerType: "keyboard",
|
|
1410
1460
|
key: "Enter"
|
|
1411
1461
|
};
|
|
1412
|
-
if (e.
|
|
1462
|
+
if ($d4ee10de306f2510$export$e58f029f0fbfdb29(e).tagName !== "A") $d4ee10de306f2510$export$e58f029f0fbfdb29(e).click();
|
|
1463
|
+
$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard");
|
|
1413
1464
|
break;
|
|
1414
1465
|
default:
|
|
1415
1466
|
if (!isTrigger) e.continuePropagation();
|
|
@@ -1511,7 +1562,7 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
|
|
|
1511
1562
|
}
|
|
1512
1563
|
};
|
|
1513
1564
|
$9daab02d461809db$export$683480f191c0e3ea({
|
|
1514
|
-
ref: submenuRef,
|
|
1565
|
+
ref: isOpen ? submenuRef : void 0,
|
|
1515
1566
|
onResize: updateSubmenuRect
|
|
1516
1567
|
});
|
|
1517
1568
|
let reset = () => {
|
|
@@ -1638,10 +1689,10 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1638
1689
|
cancelOpenTimeout
|
|
1639
1690
|
]);
|
|
1640
1691
|
let submenuKeyDown = (e) => {
|
|
1641
|
-
if (!$d4ee10de306f2510$export$
|
|
1692
|
+
if (!$d4ee10de306f2510$export$b4f377a2b6254582(e.currentTarget)) return;
|
|
1642
1693
|
switch (e.key) {
|
|
1643
1694
|
case "ArrowLeft":
|
|
1644
|
-
if (direction === "ltr" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e
|
|
1695
|
+
if (direction === "ltr" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) {
|
|
1645
1696
|
e.preventDefault();
|
|
1646
1697
|
e.stopPropagation();
|
|
1647
1698
|
onSubmenuClose();
|
|
@@ -1649,7 +1700,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1649
1700
|
}
|
|
1650
1701
|
break;
|
|
1651
1702
|
case "ArrowRight":
|
|
1652
|
-
if (direction === "rtl" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e
|
|
1703
|
+
if (direction === "rtl" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) {
|
|
1653
1704
|
e.preventDefault();
|
|
1654
1705
|
e.stopPropagation();
|
|
1655
1706
|
onSubmenuClose();
|
|
@@ -1657,7 +1708,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1657
1708
|
}
|
|
1658
1709
|
break;
|
|
1659
1710
|
case "Escape":
|
|
1660
|
-
if ($d4ee10de306f2510$export$4282f70798064fe0(submenuRef.current, e
|
|
1711
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(submenuRef.current, $d4ee10de306f2510$export$e58f029f0fbfdb29(e))) {
|
|
1661
1712
|
e.stopPropagation();
|
|
1662
1713
|
onSubmenuClose();
|
|
1663
1714
|
if (!shouldUseVirtualFocus && ref.current) $7215afc6de606d6b$export$de79e2c695e052f3(ref.current);
|
|
@@ -1683,7 +1734,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1683
1734
|
if (direction === "ltr") {
|
|
1684
1735
|
e.preventDefault();
|
|
1685
1736
|
if (!state.isOpen) onSubmenuOpen("first");
|
|
1686
|
-
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) &&
|
|
1737
|
+
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && $d4ee10de306f2510$export$cd4e5573fbe2b576() === (ref === null || ref === void 0 ? void 0 : ref.current)) $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current);
|
|
1687
1738
|
} else if (state.isOpen) onSubmenuClose();
|
|
1688
1739
|
else e.continuePropagation();
|
|
1689
1740
|
}
|
|
@@ -1693,7 +1744,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1693
1744
|
if (direction === "rtl") {
|
|
1694
1745
|
e.preventDefault();
|
|
1695
1746
|
if (!state.isOpen) onSubmenuOpen("first");
|
|
1696
|
-
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) &&
|
|
1747
|
+
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && $d4ee10de306f2510$export$cd4e5573fbe2b576() === (ref === null || ref === void 0 ? void 0 : ref.current)) $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current);
|
|
1697
1748
|
} else if (state.isOpen) onSubmenuClose();
|
|
1698
1749
|
else e.continuePropagation();
|
|
1699
1750
|
}
|
|
@@ -1721,7 +1772,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1721
1772
|
}
|
|
1722
1773
|
};
|
|
1723
1774
|
$e9faafb641e167db$export$90fc3a17d93f704c(parentMenuRef, "focusin", (e) => {
|
|
1724
|
-
if (state.isOpen && $d4ee10de306f2510$export$4282f70798064fe0(parentMenuRef.current, e
|
|
1775
|
+
if (state.isOpen && $d4ee10de306f2510$export$4282f70798064fe0(parentMenuRef.current, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) && $d4ee10de306f2510$export$e58f029f0fbfdb29(e) !== ref.current) onSubmenuClose();
|
|
1725
1776
|
});
|
|
1726
1777
|
let shouldCloseOnInteractOutside = (target) => {
|
|
1727
1778
|
if (target !== ref.current) return true;
|
|
@@ -1758,10 +1809,10 @@ function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
|
1758
1809
|
titleId = props["aria-label"] ? void 0 : titleId;
|
|
1759
1810
|
let isRefocusing = useRef(false);
|
|
1760
1811
|
useEffect(() => {
|
|
1761
|
-
if (ref.current && !$d4ee10de306f2510$export$
|
|
1812
|
+
if (ref.current && !$d4ee10de306f2510$export$b4f377a2b6254582(ref.current)) {
|
|
1762
1813
|
$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1763
1814
|
let timeout = setTimeout(() => {
|
|
1764
|
-
if (
|
|
1815
|
+
if ($d4ee10de306f2510$export$cd4e5573fbe2b576() === ref.current || $d4ee10de306f2510$export$cd4e5573fbe2b576() === document.body) {
|
|
1765
1816
|
isRefocusing.current = true;
|
|
1766
1817
|
if (ref.current) {
|
|
1767
1818
|
ref.current.blur();
|
|
@@ -2017,6 +2068,14 @@ function $875d6693e12af071$var$toggleKey(set, key) {
|
|
|
2017
2068
|
return res;
|
|
2018
2069
|
}
|
|
2019
2070
|
const $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ createContext({});
|
|
2071
|
+
const $72a5793c14baf454$export$8b251419efc915eb = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$5ae2504e948afce5, function Header(props, ref) {
|
|
2072
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb);
|
|
2073
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.header, {
|
|
2074
|
+
className: "react-aria-Header",
|
|
2075
|
+
...props,
|
|
2076
|
+
ref
|
|
2077
|
+
}, props.children);
|
|
2078
|
+
});
|
|
2020
2079
|
const $431f98aba6844401$export$6615d83f6de245ce = /* @__PURE__ */ createContext({});
|
|
2021
2080
|
class $431f98aba6844401$export$7750289ca694c0b5 extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
2022
2081
|
filter(collection, newCollection) {
|
|
@@ -2119,7 +2178,7 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
2119
2178
|
shouldBeDialog
|
|
2120
2179
|
]);
|
|
2121
2180
|
useEffect(() => {
|
|
2122
|
-
if (isDialog && props.trigger !== "SubmenuTrigger" && ref.current && !$d4ee10de306f2510$export$
|
|
2181
|
+
if (isDialog && (props.trigger !== "SubmenuTrigger" || $507fabe10e71c6fb$export$630ff653c5ada6a9() !== "pointer") && ref.current && !$d4ee10de306f2510$export$b4f377a2b6254582(ref.current)) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
2123
2182
|
}, [
|
|
2124
2183
|
isDialog,
|
|
2125
2184
|
ref,
|
|
@@ -2519,11 +2578,13 @@ const $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = /* @__PURE__ */ $e1995378a1429
|
|
|
2519
2578
|
let state = useContext($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
2520
2579
|
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
2521
2580
|
let selectionManager = useContext($3674c52c6b3c5bce$var$SelectionManagerContext);
|
|
2581
|
+
let { isVirtualized } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
2522
2582
|
let { menuItemProps, labelProps, descriptionProps, keyboardShortcutProps, ...states } = $a2e5df62f93c7633$export$9d32628fc2aea7da({
|
|
2523
2583
|
...props,
|
|
2524
2584
|
id,
|
|
2525
2585
|
key: item.key,
|
|
2526
|
-
selectionManager
|
|
2586
|
+
selectionManager,
|
|
2587
|
+
isVirtualized
|
|
2527
2588
|
}, state, ref);
|
|
2528
2589
|
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
2529
2590
|
isDisabled: states.isDisabled
|
|
@@ -2708,20 +2769,22 @@ export {
|
|
|
2708
2769
|
$07b14b47974efb58$export$5b6b19405a83ff9d as f,
|
|
2709
2770
|
$de32f1b87079253c$export$3ddf2d174ce01153 as g,
|
|
2710
2771
|
$de32f1b87079253c$export$2e1e1122cf0cba88 as h,
|
|
2711
|
-
$
|
|
2712
|
-
$
|
|
2713
|
-
$
|
|
2714
|
-
$
|
|
2715
|
-
$
|
|
2716
|
-
$
|
|
2717
|
-
$
|
|
2718
|
-
$
|
|
2719
|
-
$
|
|
2720
|
-
$
|
|
2721
|
-
$
|
|
2722
|
-
$
|
|
2723
|
-
$
|
|
2724
|
-
$
|
|
2725
|
-
$
|
|
2726
|
-
$
|
|
2772
|
+
$72a5793c14baf454$export$8b251419efc915eb as i,
|
|
2773
|
+
$325a3faab7a68acd$export$a16aca283550c30d as j,
|
|
2774
|
+
$a11501f3d1d39e6c$export$ea8f71083e90600f as k,
|
|
2775
|
+
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18 as l,
|
|
2776
|
+
$337b884510726a0d$export$14c98a7594375490 as m,
|
|
2777
|
+
$5e3802645cc19319$export$1c3ebcada18427bf as n,
|
|
2778
|
+
$de32f1b87079253c$export$d2f961adcb0afbe as o,
|
|
2779
|
+
$86ea4cb521eb2e37$export$2317d149ed6f78c4 as p,
|
|
2780
|
+
$337b884510726a0d$export$c6fdb837b070b4ff as q,
|
|
2781
|
+
$62d8ded9296f3872$export$cfa2225e87938781 as r,
|
|
2782
|
+
$982254629710d113$export$b95089534ab7c1fd as s,
|
|
2783
|
+
$453cc9f0df89c0a5$export$77d5aafae4e095b2 as t,
|
|
2784
|
+
$2a25aae57d74318e$export$a05409b8bb224a5a as u,
|
|
2785
|
+
$431f98aba6844401$export$6615d83f6de245ce as v,
|
|
2786
|
+
$72a5793c14baf454$export$e0e4026c12a8bdbb as w,
|
|
2787
|
+
$168583247155ddda$export$dc9c12ed27dd1b49 as x,
|
|
2788
|
+
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98 as y,
|
|
2789
|
+
$07b14b47974efb58$export$9b9a0cd73afb7ca4 as z
|
|
2727
2790
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as $f4e2df6bd15f8569$export$98658e8c59125e6a,
|
|
1
|
+
import { p as $f4e2df6bd15f8569$export$98658e8c59125e6a, h as $d4ee10de306f2510$export$4282f70798064fe0, j as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $431fbd86ca7dc216$export$b204af158042fbac, q as $b4b717babfbb907b$export$bebd5a1431fec25d, r as $b4b717babfbb907b$export$4c063cf1350e6fed, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, s as $c87311424ea30a05$export$a11b0059900ceec8, t as $c87311424ea30a05$export$6446a186d09e379e, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, v as $507fabe10e71c6fb$export$630ff653c5ada6a9, w as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useHover-DkmPQdGE.js";
|
|
2
2
|
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-Cr3pLd9c.js";
|
|
3
3
|
import $dbSRa$react__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
4
4
|
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
@@ -350,22 +350,21 @@ function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {
|
|
|
350
350
|
}
|
|
351
351
|
return true;
|
|
352
352
|
}
|
|
353
|
+
function $9bf71ea28793e738$var$getRadiosInGroup(element) {
|
|
354
|
+
if (!element.form)
|
|
355
|
+
return Array.from($431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)).filter((radio) => !radio.form);
|
|
356
|
+
const radioList = element.form.elements.namedItem(element.name);
|
|
357
|
+
let ownerWindow = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
358
|
+
if (radioList instanceof ownerWindow.RadioNodeList) return Array.from(radioList).filter((el) => el instanceof ownerWindow.HTMLInputElement);
|
|
359
|
+
if (radioList instanceof ownerWindow.HTMLInputElement) return [
|
|
360
|
+
radioList
|
|
361
|
+
];
|
|
362
|
+
return [];
|
|
363
|
+
}
|
|
353
364
|
function $9bf71ea28793e738$var$isTabbableRadio(element) {
|
|
354
365
|
if (element.checked) return true;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
...$431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)
|
|
358
|
-
].filter((radio) => !radio.form);
|
|
359
|
-
else {
|
|
360
|
-
var _element_form_elements, _element_form;
|
|
361
|
-
let radioList = (_element_form = element.form) === null || _element_form === void 0 ? void 0 : (_element_form_elements = _element_form.elements) === null || _element_form_elements === void 0 ? void 0 : _element_form_elements.namedItem(element.name);
|
|
362
|
-
radios = [
|
|
363
|
-
...radioList !== null && radioList !== void 0 ? radioList : []
|
|
364
|
-
];
|
|
365
|
-
}
|
|
366
|
-
if (!radios) return false;
|
|
367
|
-
let anyChecked = radios.some((radio) => radio.checked);
|
|
368
|
-
return !anyChecked;
|
|
366
|
+
const radios = $9bf71ea28793e738$var$getRadiosInGroup(element);
|
|
367
|
+
return radios.length > 0 && !radios.some((radio) => radio.checked);
|
|
369
368
|
}
|
|
370
369
|
function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
371
370
|
let focusedNode = useRef(void 0);
|
|
@@ -828,5 +827,6 @@ export {
|
|
|
828
827
|
$9bf71ea28793e738$export$c5251b9e124bf29 as $,
|
|
829
828
|
$9bf71ea28793e738$export$2d6ec8fc375ceafa as a,
|
|
830
829
|
$9bf71ea28793e738$export$20e40289641fbbb6 as b,
|
|
831
|
-
$9bf71ea28793e738$export$1258395f99bf9cbf as c
|
|
830
|
+
$9bf71ea28793e738$export$1258395f99bf9cbf as c,
|
|
831
|
+
$dfc540311bf7f109$export$4d0f8be8b12a7ef6 as d
|
|
832
832
|
};
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import $dbSRa$react__default, { forwardRef, useContext, createContext } from "react";
|
|
2
2
|
if (typeof HTMLTemplateElement !== "undefined") {
|
|
3
|
-
const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
4
3
|
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
5
4
|
configurable: true,
|
|
6
5
|
enumerable: true,
|
|
7
6
|
get: function() {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
return this.content.firstChild;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "appendChild", {
|
|
11
|
+
configurable: true,
|
|
12
|
+
enumerable: true,
|
|
13
|
+
value: function(node) {
|
|
14
|
+
return this.content.appendChild(node);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "removeChild", {
|
|
18
|
+
configurable: true,
|
|
19
|
+
enumerable: true,
|
|
20
|
+
value: function(node) {
|
|
21
|
+
return this.content.removeChild(node);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "insertBefore", {
|
|
25
|
+
configurable: true,
|
|
26
|
+
enumerable: true,
|
|
27
|
+
value: function(node, child) {
|
|
28
|
+
return this.content.insertBefore(node, child);
|
|
10
29
|
}
|
|
11
30
|
});
|
|
12
31
|
}
|
|
@@ -18,9 +37,7 @@ function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
|
|
|
18
37
|
let children = /* @__PURE__ */ $dbSRa$react__default.createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {
|
|
19
38
|
value: true
|
|
20
39
|
}, props.children);
|
|
21
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement("template",
|
|
22
|
-
"data-react-aria-hidden": true
|
|
23
|
-
}, children);
|
|
40
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement("template", null, children);
|
|
24
41
|
}
|
|
25
42
|
function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
|
|
26
43
|
let Wrapper = (props, ref) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $f645667febf57a63$export$4c014de7c8940b4c, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, y as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-DkmPQdGE.js";
|
|
1
2
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-Cr3pLd9c.js";
|
|
2
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $f645667febf57a63$export$4c014de7c8940b4c, x as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-CmyvqeWX.js";
|
|
4
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BoxsKyJ9.js";
|
|
5
5
|
import $dbSRa$react__default, { useState, forwardRef, createContext } from "react";
|
|
6
6
|
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-BPG0hKfB.js";
|
|
7
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
8
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
9
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
7
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-BrbMhS2N.js";
|
|
8
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-B2glEZ25.js";
|
|
9
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-DOH36apC.js";
|
|
10
10
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
11
11
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
12
12
|
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -46,7 +46,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
46
46
|
"aria-haspopup": props["aria-haspopup"],
|
|
47
47
|
"aria-controls": props["aria-controls"],
|
|
48
48
|
value,
|
|
49
|
-
onChange: (e) => setValue(e.
|
|
49
|
+
onChange: (e) => setValue($d4ee10de306f2510$export$e58f029f0fbfdb29(e).value),
|
|
50
50
|
autoComplete: props.autoComplete,
|
|
51
51
|
autoCapitalize: props.autoCapitalize,
|
|
52
52
|
maxLength: props.maxLength,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-Cr3pLd9c.js";
|
|
2
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
2
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-DOH36apC.js";
|
|
3
3
|
import $dbSRa$react__default, { createContext } from "react";
|
|
4
4
|
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
5
5
|
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Label(props, ref) {
|