@eightshift/ui-components 1.9.0 → 2.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/README.md +0 -7
- package/dist/{Button-BMFbEXg1.js → Button-OQ5EIPvt.js} +8 -8
- package/dist/{SelectionManager-D-89MUJW.js → Collection-CJM_asJz.js} +345 -197
- package/dist/{Color-B-cqXgPz.js → Color-B0HgM8f4.js} +1 -1
- package/dist/{ColorSwatch-B6s54Jb3.js → ColorSwatch-Dv3Wxdl_.js} +6 -7
- package/dist/{ComboBox-VR9-vNZv.js → ComboBox-BnlZjJ3T.js} +21 -22
- package/dist/{Dialog-BlYTPzgB.js → Dialog-CIh-hX93.js} +77 -65
- package/dist/{FieldError-DKicm3R0.js → FieldError-D7A6s7O5.js} +2 -2
- package/dist/{FocusScope-EoLYfbMp.js → FocusScope-Cs5_OoeA.js} +6 -4
- package/dist/{Group-D96edUPC.js → Group-D6tr3U_n.js} +5 -6
- package/dist/{Heading-GytTjUsy.js → Heading-DiYTXoIW.js} +3 -4
- package/dist/{Hidden-D3hHnmPI.js → Hidden-DnOd_jPX.js} +2 -2
- package/dist/{Input-BXSxJ_44.js → Input-Se0m3ubj.js} +13 -11
- package/dist/{Label-BtoiUpt8.js → Label-Ca9uelsn.js} +4 -5
- package/dist/{List-Ct3nzFZG.js → List-Br274SP1.js} +16 -8
- package/dist/{ListBox-BMpo-Cem.js → ListBox-D9dFEh5A.js} +36 -23
- package/dist/{OverlayArrow-4epQ99-E.js → OverlayArrow-1jx-ZyCR.js} +75 -13
- package/dist/{Select-aab027f3.esm-C7BxKjSc.js → Select-aab027f3.esm-HFNIFFya.js} +4 -4
- package/dist/{Separator-DUhFmbD-.js → Separator-BhZycTUp.js} +9 -7
- package/dist/{Slider-QNPrj4N9.js → Slider-BZNaJylD.js} +20 -24
- package/dist/{Text-DNDWaukZ.js → Text-aOUPPvTO.js} +3 -4
- package/dist/{VisuallyHidden-BHNhi-ls.js → VisuallyHidden-ClTQo25k.js} +2 -2
- package/dist/assets/index.css +37 -0
- package/dist/assets/style-editor.css +5287 -0
- package/dist/assets/style.css +5293 -1
- package/dist/assets/wp-font-enhancements.css +8 -1
- package/dist/assets/wp-ui-enhancements.css +299 -1
- package/dist/components/animated-visibility/animated-visibility.js +17 -21
- package/dist/components/base-control/base-control.js +7 -7
- package/dist/components/breakpoint-preview/breakpoint-preview.js +50 -50
- package/dist/components/button/button.js +190 -86
- package/dist/components/checkbox/checkbox.js +44 -27
- package/dist/components/color-pickers/color-picker.js +13 -9
- package/dist/components/color-pickers/color-swatch.js +4 -4
- package/dist/components/color-pickers/gradient-editor.js +25 -24
- package/dist/components/color-pickers/solid-color-picker.js +197 -229
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +17 -17
- package/dist/components/draggable/draggable-handle.js +6 -6
- package/dist/components/draggable/draggable.js +1414 -699
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +12 -12
- package/dist/components/expandable/expandable.js +66 -78
- package/dist/components/index.js +2 -3
- package/dist/components/input-field/input-field.js +35 -22
- package/dist/components/layout/hstack.js +1 -1
- package/dist/components/layout/vstack.js +1 -1
- package/dist/components/link-input/link-input.js +69 -57
- package/dist/components/matrix-align/matrix-align.js +34 -86
- package/dist/components/menu/menu.js +22 -23
- package/dist/components/modal/modal.js +24 -25
- package/dist/components/notice/notice.js +32 -32
- package/dist/components/number-picker/number-picker.js +41 -40
- package/dist/components/option-select/option-select.js +9 -4
- package/dist/components/options-panel/options-panel.js +63 -28
- package/dist/components/placeholders/file-placeholder.js +6 -17
- package/dist/components/placeholders/image-placeholder.js +17 -17
- package/dist/components/placeholders/media-placeholder.js +12 -12
- package/dist/components/popover/popover.js +6 -5
- package/dist/components/radio/radio.js +60 -43
- package/dist/components/repeater/repeater-item.js +10 -10
- package/dist/components/repeater/repeater.js +8 -8
- package/dist/components/responsive/mini-responsive.js +41 -41
- package/dist/components/responsive/responsive-legacy.js +33 -33
- package/dist/components/responsive/responsive.js +48 -48
- package/dist/components/responsive-preview/responsive-preview.js +4 -4
- package/dist/components/rich-label/rich-label.js +13 -11
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +3 -3
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/styles.js +21 -21
- package/dist/components/select/v2/async-select.js +37 -47
- package/dist/components/select/v2/shared.js +8 -8
- package/dist/components/select/v2/single-select.js +44 -48
- package/dist/components/slider/column-config-slider.js +25 -25
- package/dist/components/slider/slider.js +173 -182
- package/dist/components/spacer/spacer.js +21 -21
- package/dist/components/tabs/tabs.js +111 -63
- package/dist/components/toggle/switch.js +27 -21
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +160 -83
- package/dist/components/tooltip/tooltip.js +25 -28
- package/dist/{context-KeRYAbEi.js → context-CDOs-GuR.js} +1 -1
- package/dist/{focusSafely-CZY36ssv.js → focusSafely-CiqTTjWy.js} +18 -17
- package/dist/icons/icons.js +52 -0
- package/dist/{index-641ee5b8.esm-DEB-c58F.js → index-641ee5b8.esm-DbdaYaxR.js} +45 -45
- package/dist/index-BRp93Yfa.js +28318 -0
- package/dist/index-CcCn9HWX.js +44 -0
- package/dist/index.js +2 -3
- package/dist/{multi-select-components-DM3GsNfb.js → multi-select-components-CkF3LyTF.js} +4 -4
- package/dist/{react-select-async.esm-Bq3N1-Wi.js → react-select-async.esm-DcVLw9X5.js} +3 -3
- package/dist/{react-select.esm-B38nY7_U.js → react-select.esm-OZ0cmTjg.js} +3 -3
- package/dist/style-editor.js +1 -0
- package/dist/style.js +1 -1
- package/dist/{textSelection-G2G-nukT.js → textSelection-BlTDSskG.js} +2 -2
- package/dist/{useButton-CFtcz1T6.js → useButton-CmLbE5vg.js} +3 -3
- package/dist/{useEvent-B0yfN_Zu.js → useEvent-cLDJlznQ.js} +1 -1
- package/dist/{useFocusRing-DMAlRYjX.js → useFocusRing-CGp3guTX.js} +1 -1
- package/dist/{useFocusable-BlkOMLma.js → useFocusable-087cO5Ct.js} +9 -6
- package/dist/{useFormReset-BAEM0o25.js → useFormReset-NpLM2e3G.js} +1 -1
- package/dist/{useFormValidation-BNzOc2t9.js → useFormValidation-BWwmZQE2.js} +3 -3
- package/dist/{useLabel-D6FSp5_M.js → useLabel-C85N3Hzw.js} +2 -2
- package/dist/{useLabels-CraZ2Sej.js → useLabels-C_2wWraB.js} +1 -1
- package/dist/{useListState-C3dnPq2F.js → useListState-Z7FB_NzO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-B73fhEA7.js → useLocalizedStringFormatter-BQ4TF72x.js} +1 -1
- package/dist/{useNumberField-CQP9-nH5.js → useNumberField-Bm6_BVl9.js} +10 -10
- package/dist/{useNumberFormatter-Cdctl6fg.js → useNumberFormatter-DlUVKkO7.js} +1 -1
- package/dist/{usePress-xTkcGUkt.js → usePress-rg_OQIGW.js} +15 -14
- package/dist/{useSingleSelectListState-BGXQSTy7.js → useSingleSelectListState-Cu3xtEJS.js} +2 -2
- package/dist/{useToggle-Dpw3WpSw.js → useToggle-DzlgBLAJ.js} +4 -4
- package/dist/{useToggleState-BSKwCUIW.js → useToggleState-DhSBQxkp.js} +1 -1
- package/dist/{utils-BSLBwuuO.js → utils-39D0mStj.js} +41 -93
- package/package.json +43 -41
- package/dist/GeistMonoVF.woff2 +0 -0
- package/dist/GeistVF.woff2 +0 -0
- package/dist/assets/fonts.css +0 -1
- package/dist/components/list-box/list-box.js +0 -157
- package/dist/fonts.js +0 -1
- package/dist/index-BYHhzLf-.js +0 -444
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-
|
|
2
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-
|
|
1
|
+
import { f as $bdb11010cef70236$export$f680877a34711e37, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-39D0mStj.js";
|
|
2
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f, a as $3493a52097159720$exports } from "./Color-B0HgM8f4.js";
|
|
3
3
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
4
4
|
import React__default, { useMemo, forwardRef, createContext } from "react";
|
|
5
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
6
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
5
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
6
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BQ4TF72x.js";
|
|
7
7
|
function $parcel$interopDefault(a) {
|
|
8
8
|
return a && a.__esModule ? a.default : a;
|
|
9
9
|
}
|
|
@@ -41,7 +41,7 @@ function $2993fcad7650b98d$export$9060ae606178d849(props) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
const $251c695a52d94a8d$export$83cc445538396800 = /* @__PURE__ */ createContext(null);
|
|
44
|
-
|
|
44
|
+
const $251c695a52d94a8d$export$cae13e90592f246a = /* @__PURE__ */ forwardRef(function ColorSwatch(props, ref) {
|
|
45
45
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $251c695a52d94a8d$export$83cc445538396800);
|
|
46
46
|
let { colorSwatchProps, color } = $2993fcad7650b98d$export$9060ae606178d849(props);
|
|
47
47
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
@@ -58,8 +58,7 @@ function $251c695a52d94a8d$var$ColorSwatch(props, ref) {
|
|
|
58
58
|
slot: props.slot || void 0,
|
|
59
59
|
ref
|
|
60
60
|
});
|
|
61
|
-
}
|
|
62
|
-
const $251c695a52d94a8d$export$cae13e90592f246a = /* @__PURE__ */ forwardRef($251c695a52d94a8d$var$ColorSwatch);
|
|
61
|
+
});
|
|
63
62
|
export {
|
|
64
63
|
$251c695a52d94a8d$export$cae13e90592f246a as $
|
|
65
64
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React__default, { useCallback, useMemo, useRef, useEffect, useState, useReducer, createContext, forwardRef } from "react";
|
|
2
|
-
import { b as $319e236875307eab$export$a9b970dcc4ae71a9, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-
|
|
2
|
+
import { b as $319e236875307eab$export$a9b970dcc4ae71a9, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-OQ5EIPvt.js";
|
|
3
|
+
import { p as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, i as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-39D0mStj.js";
|
|
4
|
+
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-D7A6s7O5.js";
|
|
5
5
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-Cq3fu75_.js";
|
|
6
|
-
import { a as $a049562f99e7db0e$export$f9c6924e160136d1 } from "./Group-
|
|
7
|
-
import { b as $2d73ec29415bd339$export$712718f7aec83d5, a as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-
|
|
8
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
9
|
-
import { d as $b1f0cad8af73213b$export$3585ede4d035bf14, e as $b1f0cad8af73213b$export$9145995848b05025, b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2 } from "./ListBox-
|
|
10
|
-
import {
|
|
11
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
12
|
-
import {
|
|
6
|
+
import { a as $a049562f99e7db0e$export$f9c6924e160136d1 } from "./Group-D6tr3U_n.js";
|
|
7
|
+
import { b as $2d73ec29415bd339$export$712718f7aec83d5, a as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-Se0m3ubj.js";
|
|
8
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-Ca9uelsn.js";
|
|
9
|
+
import { d as $b1f0cad8af73213b$export$3585ede4d035bf14, e as $b1f0cad8af73213b$export$9145995848b05025, b as $eed445e0843c11d0$export$7ff8f37d2d81a48d, c as $eed445e0843c11d0$export$7c5906fe4f1f2af2 } from "./ListBox-D9dFEh5A.js";
|
|
10
|
+
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, k as $5e3802645cc19319$export$1c3ebcada18427bf, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-CIh-hX93.js";
|
|
11
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-aOUPPvTO.js";
|
|
12
|
+
import { i as $ae20dd8cbca75726$export$d6daf82dcd84e87c, m as $c5a24bc478652b5f$export$1005530eda016c13, d as $e1995378a142960e$export$bf788dd355e3a401 } from "./Collection-CJM_asJz.js";
|
|
13
13
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { b as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-
|
|
17
|
-
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "./useSingleSelectListState-
|
|
18
|
-
import { a as $a02d57049d202695$export$d085fb9e920b5ca7 } from "./useListState-
|
|
19
|
-
import {
|
|
20
|
-
import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "./usePress-
|
|
21
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
22
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
14
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-1jx-ZyCR.js";
|
|
15
|
+
import { e as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./Separator-BhZycTUp.js";
|
|
16
|
+
import { b as $e5be200c675c3b3a$export$a763b9476acd3eb, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-BWwmZQE2.js";
|
|
17
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "./useSingleSelectListState-Cu3xtEJS.js";
|
|
18
|
+
import { a as $a02d57049d202695$export$d085fb9e920b5ca7 } from "./useListState-Z7FB_NzO.js";
|
|
19
|
+
import { w as $c87311424ea30a05$export$e1865c3bedcd822b, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CiqTTjWy.js";
|
|
20
|
+
import { b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "./usePress-rg_OQIGW.js";
|
|
21
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-C_2wWraB.js";
|
|
22
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BQ4TF72x.js";
|
|
23
23
|
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
24
24
|
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
25
25
|
usage: "search",
|
|
@@ -1681,7 +1681,7 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
const $d01f2c01039c0eec$export$d414ccceff7063c3 = /* @__PURE__ */ createContext(null);
|
|
1683
1683
|
const $d01f2c01039c0eec$export$c02625b26074192c = /* @__PURE__ */ createContext(null);
|
|
1684
|
-
|
|
1684
|
+
const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef(function ComboBox(props, ref) {
|
|
1685
1685
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);
|
|
1686
1686
|
let { children, isDisabled = false, isInvalid = false, isRequired = false } = props;
|
|
1687
1687
|
let content = useMemo(() => {
|
|
@@ -1712,7 +1712,7 @@ function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
|
1712
1712
|
collection,
|
|
1713
1713
|
comboBoxRef: ref
|
|
1714
1714
|
}));
|
|
1715
|
-
}
|
|
1715
|
+
});
|
|
1716
1716
|
function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
|
|
1717
1717
|
let { name, formValue = "key", allowsCustomValue } = props;
|
|
1718
1718
|
if (allowsCustomValue) formValue = "text";
|
|
@@ -1878,7 +1878,6 @@ function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: r
|
|
|
1878
1878
|
value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ""
|
|
1879
1879
|
}));
|
|
1880
1880
|
}
|
|
1881
|
-
const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef($d01f2c01039c0eec$var$ComboBox);
|
|
1882
1881
|
export {
|
|
1883
1882
|
$f86e6c1ec7da6ebb$export$bc3384a35de93d66 as $,
|
|
1884
1883
|
$d01f2c01039c0eec$export$72b9695b8216309a as a,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
2
|
-
import { m as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, f as $bdb11010cef70236$export$f680877a34711e37, l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c,
|
|
1
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-OQ5EIPvt.js";
|
|
2
|
+
import { m as $df56164dff5785e2$export$4338b53315abf666, d as $3ef42575df84b30b$export$9d1611c77c2fe928, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, f as $bdb11010cef70236$export$f680877a34711e37, l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, p as $ff5963eb1fccf552$export$e08e3b67e392101e, e as $b5e257d569688ac6$export$535bd6ca7f90a273, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, n as $5dc95899b306f630$export$c9058316764c140e, h as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, o as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-39D0mStj.js";
|
|
3
3
|
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2,
|
|
4
|
+
import { g as $dd149f63282afbbf$export$f6211563215e3b37, c as $2a41e45df1593e64$export$d39e1813b3bdd0e1, f as $9daab02d461809db$export$683480f191c0e3ea, a as $fc909762b330b746$export$61c6a8c84e605fb6, b as $d3f049242431219c$export$45fda7c47f93fd48, $ as $d3f049242431219c$export$6d3443f2c48bfc20, d as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./OverlayArrow-1jx-ZyCR.js";
|
|
5
|
+
import { l as $cc38e7bd3fc7b213$export$2bb74740c4e19def, o as $8a26561d2877236e$export$c24ed0104d07eab9, c as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, p as $e1995378a142960e$export$e953bb1cd0f19726, f as $7135fc7d473fd974$export$4feb769f8ddf26c5, d as $e1995378a142960e$export$bf788dd355e3a401, e as $e1995378a142960e$export$fb8073518f34e6ec, g as $7135fc7d473fd974$export$d40e14dec8b060a8, j as $7135fc7d473fd974$export$90e00781bc59d8f9, h as $e1995378a142960e$export$18af5c7a9e9b3664 } from "./Collection-CJM_asJz.js";
|
|
6
|
+
import { b as $982254629710d113$export$b95089534ab7c1fd, c as $453cc9f0df89c0a5$export$77d5aafae4e095b2, d as $d2f53cda644affe3$export$65d2a03b8800d6e3, g as $431f98aba6844401$export$6615d83f6de245ce, h as $72a5793c14baf454$export$e0e4026c12a8bdbb } from "./Separator-BhZycTUp.js";
|
|
7
7
|
import React__default, { useRef, useContext, useEffect, useMemo, createContext, useState, useCallback, forwardRef } from "react";
|
|
8
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
8
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-aOUPPvTO.js";
|
|
9
9
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
10
|
-
import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-
|
|
11
|
-
import {
|
|
12
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
13
|
-
import { b as $46d819fcbaf35654$export$8f71654801c2f7cd } from "./useFocusable-
|
|
14
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
15
|
-
import { $ as $
|
|
16
|
-
import {
|
|
17
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
18
|
-
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-
|
|
19
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
20
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
10
|
+
import { d as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-rg_OQIGW.js";
|
|
11
|
+
import { o as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, g as $431fbd86ca7dc216$export$b204af158042fbac, d as $9ab94262bd0047c7$export$420e68273165f4ec, m as $c87311424ea30a05$export$fedb369cb70207f1, $ as $6179b936705e76d3$export$ae780daf29e6d456, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, y as $507fabe10e71c6fb$export$98e20ec92f614cfe, h as $6a99195332edec8b$export$80f3e147d781571c, e as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./focusSafely-CiqTTjWy.js";
|
|
12
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BQ4TF72x.js";
|
|
13
|
+
import { b as $46d819fcbaf35654$export$8f71654801c2f7cd } from "./useFocusable-087cO5Ct.js";
|
|
14
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CDOs-GuR.js";
|
|
15
|
+
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-Cs5_OoeA.js";
|
|
16
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CGp3guTX.js";
|
|
17
|
+
import { $ as $dbSRa$reactdom } from "./index-BRp93Yfa.js";
|
|
18
|
+
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-DnOd_jPX.js";
|
|
19
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-C_2wWraB.js";
|
|
20
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-ClTQo25k.js";
|
|
21
21
|
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
22
22
|
let scrollableNode = node;
|
|
23
23
|
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
@@ -261,17 +261,7 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
261
261
|
}
|
|
262
262
|
if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();
|
|
263
263
|
};
|
|
264
|
-
let onTouchEnd = (
|
|
265
|
-
let target = e.target;
|
|
266
|
-
if ($49c51c25361d4cd2$var$willOpenKeyboard(target) && target !== document.activeElement) {
|
|
267
|
-
e.preventDefault();
|
|
268
|
-
setupStyles();
|
|
269
|
-
target.style.transform = "translateY(-2000px)";
|
|
270
|
-
target.focus();
|
|
271
|
-
requestAnimationFrame(() => {
|
|
272
|
-
target.style.transform = "";
|
|
273
|
-
});
|
|
274
|
-
}
|
|
264
|
+
let onTouchEnd = () => {
|
|
275
265
|
if (restoreScrollableStyles) restoreScrollableStyles();
|
|
276
266
|
};
|
|
277
267
|
let onFocus = (e) => {
|
|
@@ -648,7 +638,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
|
648
638
|
targetRef: triggerRef,
|
|
649
639
|
overlayRef: popoverRef,
|
|
650
640
|
isOpen: state.isOpen,
|
|
651
|
-
onClose: isNonModal ? state.close :
|
|
641
|
+
onClose: isNonModal ? state.close : null
|
|
652
642
|
});
|
|
653
643
|
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
|
|
654
644
|
isDisabled: isNonModal || !state.isOpen
|
|
@@ -949,7 +939,7 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
|
949
939
|
}
|
|
950
940
|
};
|
|
951
941
|
}
|
|
952
|
-
const $
|
|
942
|
+
const $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
|
|
953
943
|
function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
954
944
|
let { shouldFocusWrap = true, onKeyDown, onKeyUp, ...otherProps } = props;
|
|
955
945
|
if (!props["aria-label"] && !props["aria-labelledby"]) console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
@@ -965,9 +955,10 @@ function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
|
965
955
|
shouldFocusWrap,
|
|
966
956
|
linkBehavior: "override"
|
|
967
957
|
});
|
|
968
|
-
$
|
|
958
|
+
$fc79756100351201$export$6f49b4016bfc8d56.set(state, {
|
|
969
959
|
onClose: props.onClose,
|
|
970
|
-
onAction: props.onAction
|
|
960
|
+
onAction: props.onAction,
|
|
961
|
+
shouldUseVirtualFocus: props.shouldUseVirtualFocus
|
|
971
962
|
});
|
|
972
963
|
return {
|
|
973
964
|
menuProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
|
|
@@ -978,20 +969,20 @@ function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
|
978
969
|
...listProps,
|
|
979
970
|
onKeyDown: (e) => {
|
|
980
971
|
var _listProps_onKeyDown;
|
|
981
|
-
if (e.key !== "Escape") (_listProps_onKeyDown = listProps.onKeyDown) === null || _listProps_onKeyDown === void 0 ? void 0 : _listProps_onKeyDown.call(listProps, e);
|
|
972
|
+
if (e.key !== "Escape" || props.shouldUseVirtualFocus) (_listProps_onKeyDown = listProps.onKeyDown) === null || _listProps_onKeyDown === void 0 ? void 0 : _listProps_onKeyDown.call(listProps, e);
|
|
982
973
|
}
|
|
983
974
|
})
|
|
984
975
|
};
|
|
985
976
|
}
|
|
986
977
|
function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
987
|
-
let { id, key, closeOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart: pressStartProp, onPressUp: pressUpProp, onPress, onPressChange, onPressEnd, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state.selectionManager } = props;
|
|
978
|
+
let { id, key, closeOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart: pressStartProp, onPressUp: pressUpProp, onPress: pressProp, onPressChange, onPressEnd, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state.selectionManager } = props;
|
|
988
979
|
let isTrigger = !!hasPopup;
|
|
989
980
|
let isTriggerExpanded = isTrigger && props["aria-expanded"] === "true";
|
|
990
981
|
var _props_isDisabled;
|
|
991
982
|
let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : selectionManager.isDisabled(key);
|
|
992
983
|
var _props_isSelected;
|
|
993
984
|
let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : selectionManager.isSelected(key);
|
|
994
|
-
let data = $
|
|
985
|
+
let data = $fc79756100351201$export$6f49b4016bfc8d56.get(state);
|
|
995
986
|
let item = state.collection.getItem(key);
|
|
996
987
|
let onClose = props.onClose || data.onClose;
|
|
997
988
|
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
@@ -1037,14 +1028,25 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1037
1028
|
if (e.pointerType === "keyboard") performAction(e);
|
|
1038
1029
|
pressStartProp === null || pressStartProp === void 0 ? void 0 : pressStartProp(e);
|
|
1039
1030
|
};
|
|
1031
|
+
let maybeClose = () => {
|
|
1032
|
+
if (!isTrigger && onClose && (closeOnSelect !== null && closeOnSelect !== void 0 ? closeOnSelect : selectionManager.selectionMode !== "multiple" || selectionManager.isLink(key))) onClose();
|
|
1033
|
+
};
|
|
1040
1034
|
let onPressUp = (e) => {
|
|
1041
|
-
if (e.pointerType
|
|
1035
|
+
if (e.pointerType === "mouse") {
|
|
1042
1036
|
performAction(e);
|
|
1043
|
-
|
|
1037
|
+
maybeClose();
|
|
1044
1038
|
}
|
|
1045
1039
|
pressUpProp === null || pressUpProp === void 0 ? void 0 : pressUpProp(e);
|
|
1046
1040
|
};
|
|
1041
|
+
let onPress = (e) => {
|
|
1042
|
+
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse") {
|
|
1043
|
+
performAction(e);
|
|
1044
|
+
maybeClose();
|
|
1045
|
+
}
|
|
1046
|
+
pressProp === null || pressProp === void 0 ? void 0 : pressProp(e);
|
|
1047
|
+
};
|
|
1047
1048
|
let { itemProps, isFocused } = $880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
1049
|
+
id,
|
|
1048
1050
|
selectionManager,
|
|
1049
1051
|
key,
|
|
1050
1052
|
ref,
|
|
@@ -1054,7 +1056,8 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1054
1056
|
// because we handle it ourselves. The behavior of menus
|
|
1055
1057
|
// is slightly different from other collections because
|
|
1056
1058
|
// actions are performed on key down rather than key up.
|
|
1057
|
-
linkBehavior: "none"
|
|
1059
|
+
linkBehavior: "none",
|
|
1060
|
+
shouldUseVirtualFocus: data.shouldUseVirtualFocus
|
|
1058
1061
|
});
|
|
1059
1062
|
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
1060
1063
|
onPressStart,
|
|
@@ -1650,12 +1653,12 @@ function $875d6693e12af071$var$toggleKey(set, key) {
|
|
|
1650
1653
|
return res;
|
|
1651
1654
|
}
|
|
1652
1655
|
const $07b14b47974efb58$export$9b9a0cd73afb7ca4 = /* @__PURE__ */ createContext(null);
|
|
1653
|
-
|
|
1656
|
+
const $07b14b47974efb58$export$5b6b19405a83ff9d = /* @__PURE__ */ forwardRef(function Popover(props, ref) {
|
|
1654
1657
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $07b14b47974efb58$export$9b9a0cd73afb7ca4);
|
|
1655
1658
|
let contextState = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
1656
1659
|
let localState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
1657
1660
|
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
1658
|
-
let isExiting = $
|
|
1661
|
+
let isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state.isOpen) || props.isExiting || false;
|
|
1659
1662
|
let isHidden = $f39a9eba43920ace$export$b5d7cc18bb8d2b59();
|
|
1660
1663
|
if (isHidden) {
|
|
1661
1664
|
let children = props.children;
|
|
@@ -1676,8 +1679,7 @@ function $07b14b47974efb58$var$Popover(props, ref) {
|
|
|
1676
1679
|
popoverRef: ref,
|
|
1677
1680
|
isExiting
|
|
1678
1681
|
});
|
|
1679
|
-
}
|
|
1680
|
-
const $07b14b47974efb58$export$5b6b19405a83ff9d = /* @__PURE__ */ forwardRef($07b14b47974efb58$var$Popover);
|
|
1682
|
+
});
|
|
1681
1683
|
function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalContainer, ...props }) {
|
|
1682
1684
|
let arrowRef = useRef(null);
|
|
1683
1685
|
let [arrowWidth, setArrowWidth] = useState(0);
|
|
@@ -1694,7 +1696,7 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1694
1696
|
arrowSize: arrowWidth
|
|
1695
1697
|
}, state);
|
|
1696
1698
|
let ref = props.popoverRef;
|
|
1697
|
-
let isEntering = $
|
|
1699
|
+
let isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(ref, !!placement) || props.isEntering || false;
|
|
1698
1700
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1699
1701
|
...props,
|
|
1700
1702
|
defaultClassName: "react-aria-Popover",
|
|
@@ -1854,7 +1856,7 @@ const $3674c52c6b3c5bce$export$ecabc99eeffab7ca = /* @__PURE__ */ $e1995378a1429
|
|
|
1854
1856
|
parent: item
|
|
1855
1857
|
}), props.children[1]);
|
|
1856
1858
|
}, (props) => props.children[0]);
|
|
1857
|
-
|
|
1859
|
+
const $3674c52c6b3c5bce$export$d9b273488cd8ce6f = /* @__PURE__ */ forwardRef(function Menu(props, ref) {
|
|
1858
1860
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3674c52c6b3c5bce$export$c7e742effb1c51e2);
|
|
1859
1861
|
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1860
1862
|
content: /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props)
|
|
@@ -1863,17 +1865,27 @@ function $3674c52c6b3c5bce$var$Menu(props, ref) {
|
|
|
1863
1865
|
collection,
|
|
1864
1866
|
menuRef: ref
|
|
1865
1867
|
}));
|
|
1866
|
-
}
|
|
1868
|
+
});
|
|
1867
1869
|
function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
1870
|
+
let { filterFn, collectionProps: autocompleteMenuProps, collectionRef } = useContext($d2f53cda644affe3$export$65d2a03b8800d6e3) || {};
|
|
1871
|
+
ref = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(ref, collectionRef !== void 0 ? collectionRef : null), [
|
|
1872
|
+
collectionRef,
|
|
1873
|
+
ref
|
|
1874
|
+
]));
|
|
1875
|
+
let filteredCollection = useMemo(() => filterFn ? collection.filter(filterFn) : collection, [
|
|
1876
|
+
collection,
|
|
1877
|
+
filterFn
|
|
1878
|
+
]);
|
|
1868
1879
|
let state = $875d6693e12af071$export$728d6ba534403756({
|
|
1869
1880
|
...props,
|
|
1870
|
-
collection,
|
|
1881
|
+
collection: filteredCollection,
|
|
1871
1882
|
children: void 0
|
|
1872
1883
|
});
|
|
1873
1884
|
let triggerState = useContext($3674c52c6b3c5bce$export$795aec4671cbae19);
|
|
1874
1885
|
let { isVirtualized, CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1875
1886
|
let { menuProps } = $d5336fe17ce95402$export$38eaa17faae8f579({
|
|
1876
1887
|
...props,
|
|
1888
|
+
...autocompleteMenuProps,
|
|
1877
1889
|
isVirtualized,
|
|
1878
1890
|
onClose: props.onClose || (triggerState === null || triggerState === void 0 ? void 0 : triggerState.close)
|
|
1879
1891
|
}, state, ref);
|
|
@@ -1906,7 +1918,7 @@ function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
|
1906
1918
|
$7135fc7d473fd974$export$d40e14dec8b060a8,
|
|
1907
1919
|
{
|
|
1908
1920
|
name: "MenuSection",
|
|
1909
|
-
render: $3674c52c6b3c5bce$var$
|
|
1921
|
+
render: $3674c52c6b3c5bce$var$MenuSectionInner
|
|
1910
1922
|
}
|
|
1911
1923
|
],
|
|
1912
1924
|
[
|
|
@@ -1925,12 +1937,11 @@ function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
|
1925
1937
|
]
|
|
1926
1938
|
]
|
|
1927
1939
|
}, /* @__PURE__ */ React__default.createElement(CollectionRoot, {
|
|
1928
|
-
collection,
|
|
1940
|
+
collection: state.collection,
|
|
1929
1941
|
persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state.selectionManager.focusedKey),
|
|
1930
1942
|
scrollRef: ref
|
|
1931
1943
|
}))));
|
|
1932
1944
|
}
|
|
1933
|
-
const $3674c52c6b3c5bce$export$d9b273488cd8ce6f = /* @__PURE__ */ forwardRef($3674c52c6b3c5bce$var$Menu);
|
|
1934
1945
|
class $3674c52c6b3c5bce$var$GroupSelectionManager extends $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
1935
1946
|
get focusedKey() {
|
|
1936
1947
|
return this.parent.focusedKey;
|
|
@@ -1952,7 +1963,7 @@ class $3674c52c6b3c5bce$var$GroupSelectionManager extends $d496c0a20b6e58ec$expo
|
|
|
1952
1963
|
this.parent = parent;
|
|
1953
1964
|
}
|
|
1954
1965
|
}
|
|
1955
|
-
function $3674c52c6b3c5bce$var$
|
|
1966
|
+
function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className = "react-aria-MenuSection") {
|
|
1956
1967
|
var _section_props, _section_props1;
|
|
1957
1968
|
let state = useContext($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
1958
1969
|
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
@@ -1995,6 +2006,7 @@ function $3674c52c6b3c5bce$var$MenuSection(props, ref, section, className = "rea
|
|
|
1995
2006
|
parent: section
|
|
1996
2007
|
})));
|
|
1997
2008
|
}
|
|
2009
|
+
const $3674c52c6b3c5bce$export$4b1545b4f2016d26 = /* @__PURE__ */ $e1995378a142960e$export$e953bb1cd0f19726("section", $3674c52c6b3c5bce$var$MenuSectionInner);
|
|
1998
2010
|
const $3674c52c6b3c5bce$var$MenuItemContext = /* @__PURE__ */ createContext(null);
|
|
1999
2011
|
const $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", function MenuItem(props, forwardedRef, item) {
|
|
2000
2012
|
var _useSlottedContext;
|
|
@@ -2098,7 +2110,7 @@ function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
|
|
|
2098
2110
|
isPressed: state.isOpen
|
|
2099
2111
|
}, props.children));
|
|
2100
2112
|
}
|
|
2101
|
-
|
|
2113
|
+
const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef(function Dialog(props, ref) {
|
|
2102
2114
|
let originalAriaLabelledby = props["aria-labelledby"];
|
|
2103
2115
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $de32f1b87079253c$export$8b93a07348a7730c);
|
|
2104
2116
|
let { dialogProps, titleProps } = $40df3f8667284809$export$d55e7ee900f34e93({
|
|
@@ -2155,23 +2167,23 @@ function $de32f1b87079253c$var$Dialog(props, ref) {
|
|
|
2155
2167
|
]
|
|
2156
2168
|
]
|
|
2157
2169
|
}, renderProps.children));
|
|
2158
|
-
}
|
|
2159
|
-
const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef($de32f1b87079253c$var$Dialog);
|
|
2170
|
+
});
|
|
2160
2171
|
export {
|
|
2161
2172
|
$07b14b47974efb58$export$5b6b19405a83ff9d as $,
|
|
2162
2173
|
$3674c52c6b3c5bce$export$27d2ad3c5815583e as a,
|
|
2163
2174
|
$3674c52c6b3c5bce$export$d9b273488cd8ce6f as b,
|
|
2164
|
-
$3674c52c6b3c5bce$export$
|
|
2165
|
-
$3674c52c6b3c5bce$export$
|
|
2166
|
-
$
|
|
2167
|
-
$de32f1b87079253c$export$
|
|
2168
|
-
$
|
|
2169
|
-
$
|
|
2170
|
-
$
|
|
2171
|
-
$
|
|
2172
|
-
$
|
|
2173
|
-
$
|
|
2175
|
+
$3674c52c6b3c5bce$export$4b1545b4f2016d26 as c,
|
|
2176
|
+
$3674c52c6b3c5bce$export$2ce376c2cc3355c8 as d,
|
|
2177
|
+
$3674c52c6b3c5bce$export$ecabc99eeffab7ca as e,
|
|
2178
|
+
$de32f1b87079253c$export$3ddf2d174ce01153 as f,
|
|
2179
|
+
$de32f1b87079253c$export$2e1e1122cf0cba88 as g,
|
|
2180
|
+
$a11501f3d1d39e6c$export$ea8f71083e90600f as h,
|
|
2181
|
+
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18 as i,
|
|
2182
|
+
$337b884510726a0d$export$14c98a7594375490 as j,
|
|
2183
|
+
$5e3802645cc19319$export$1c3ebcada18427bf as k,
|
|
2184
|
+
$de32f1b87079253c$export$d2f961adcb0afbe as l,
|
|
2174
2185
|
$86ea4cb521eb2e37$export$2317d149ed6f78c4 as m,
|
|
2175
|
-
$
|
|
2176
|
-
$
|
|
2186
|
+
$337b884510726a0d$export$c6fdb837b070b4ff as n,
|
|
2187
|
+
$168583247155ddda$export$dc9c12ed27dd1b49 as o,
|
|
2188
|
+
$07b14b47974efb58$export$9b9a0cd73afb7ca4 as p
|
|
2177
2189
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
2
|
-
import { k as $bdb11010cef70236$export$b4cc09c592e8fdb8, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-C85N3Hzw.js";
|
|
2
|
+
import { k as $bdb11010cef70236$export$b4cc09c592e8fdb8, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-39D0mStj.js";
|
|
3
3
|
import { createContext } from "react";
|
|
4
4
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
5
5
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as $431fbd86ca7dc216$export$f21a1ffae260145a, g as $431fbd86ca7dc216$export$b204af158042fbac, h as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
2
|
-
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-
|
|
1
|
+
import { f as $431fbd86ca7dc216$export$f21a1ffae260145a, g as $431fbd86ca7dc216$export$b204af158042fbac, h as $6a99195332edec8b$export$80f3e147d781571c, i as $c87311424ea30a05$export$a11b0059900ceec8, j as $c87311424ea30a05$export$6446a186d09e379e, k as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./focusSafely-CiqTTjWy.js";
|
|
2
|
+
import { l as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-39D0mStj.js";
|
|
3
3
|
import React__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
4
4
|
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
5
5
|
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
@@ -195,7 +195,7 @@ const $9bf71ea28793e738$var$focusableElements = [
|
|
|
195
195
|
"embed",
|
|
196
196
|
"audio[controls]",
|
|
197
197
|
"video[controls]",
|
|
198
|
-
|
|
198
|
+
'[contenteditable]:not([contenteditable^="false"])'
|
|
199
199
|
];
|
|
200
200
|
const $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
201
201
|
$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
@@ -255,7 +255,9 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
|
255
255
|
let onBlur = (e) => {
|
|
256
256
|
if (raf.current) cancelAnimationFrame(raf.current);
|
|
257
257
|
raf.current = requestAnimationFrame(() => {
|
|
258
|
-
|
|
258
|
+
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
259
|
+
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) && $c87311424ea30a05$export$a11b0059900ceec8() && $c87311424ea30a05$export$6446a186d09e379e();
|
|
260
|
+
if (!shouldSkipFocusRestore && ownerDocument.activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(ownerDocument.activeElement, scopeRef)) {
|
|
259
261
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
260
262
|
if (ownerDocument.body.contains(e.target)) {
|
|
261
263
|
var _focusedNode_current;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-39D0mStj.js";
|
|
2
2
|
import React__default, { forwardRef, createContext } from "react";
|
|
3
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-
|
|
4
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
3
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-CiqTTjWy.js";
|
|
4
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CGp3guTX.js";
|
|
5
5
|
const $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ createContext({});
|
|
6
|
-
|
|
6
|
+
const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ forwardRef(function Group(props, ref) {
|
|
7
7
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
|
|
8
8
|
let { isDisabled, isInvalid, onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
|
|
9
9
|
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
@@ -41,8 +41,7 @@ function $a049562f99e7db0e$var$Group(props, ref) {
|
|
|
41
41
|
"data-disabled": isDisabled || void 0,
|
|
42
42
|
"data-invalid": isInvalid || void 0
|
|
43
43
|
}, renderProps.children);
|
|
44
|
-
}
|
|
45
|
-
const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ forwardRef($a049562f99e7db0e$var$Group);
|
|
44
|
+
});
|
|
46
45
|
export {
|
|
47
46
|
$a049562f99e7db0e$export$eb2fcfdbd7ba97d4 as $,
|
|
48
47
|
$a049562f99e7db0e$export$f9c6924e160136d1 as a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-2lR5GG9p.js";
|
|
2
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
2
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-39D0mStj.js";
|
|
3
3
|
import React__default, { forwardRef } from "react";
|
|
4
|
-
|
|
4
|
+
const $5cb03073d3f54797$export$a8a3e93435678ff9 = /* @__PURE__ */ forwardRef(function Heading(props, ref) {
|
|
5
5
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581);
|
|
6
6
|
let { children, level = 3, className, ...domProps } = props;
|
|
7
7
|
let Element = `h${level}`;
|
|
@@ -10,8 +10,7 @@ function $5cb03073d3f54797$var$Heading(props, ref) {
|
|
|
10
10
|
ref,
|
|
11
11
|
className: className !== null && className !== void 0 ? className : "react-aria-Heading"
|
|
12
12
|
}, children);
|
|
13
|
-
}
|
|
14
|
-
const $5cb03073d3f54797$export$a8a3e93435678ff9 = /* @__PURE__ */ forwardRef($5cb03073d3f54797$var$Heading);
|
|
13
|
+
});
|
|
15
14
|
export {
|
|
16
15
|
$5cb03073d3f54797$export$a8a3e93435678ff9 as $
|
|
17
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as reactDomExports } from "./index-
|
|
1
|
+
import { r as reactDomExports } from "./index-BRp93Yfa.js";
|
|
2
2
|
import React__default, { forwardRef, useContext, createContext } from "react";
|
|
3
|
-
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-
|
|
3
|
+
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-39D0mStj.js";
|
|
4
4
|
if (typeof HTMLTemplateElement !== "undefined") {
|
|
5
5
|
const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
6
6
|
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React__default, { useEffect, createContext } from "react";
|
|
2
|
-
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-
|
|
3
|
-
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-
|
|
2
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-CiqTTjWy.js";
|
|
3
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-39D0mStj.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
5
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
6
|
-
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-
|
|
7
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
8
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
9
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
10
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
5
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-NpLM2e3G.js";
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-D7A6s7O5.js";
|
|
7
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-087cO5Ct.js";
|
|
8
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-BWwmZQE2.js";
|
|
9
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-DnOd_jPX.js";
|
|
10
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-CGp3guTX.js";
|
|
11
11
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
12
12
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
13
13
|
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -56,6 +56,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
56
56
|
"aria-activedescendant": props["aria-activedescendant"],
|
|
57
57
|
"aria-autocomplete": props["aria-autocomplete"],
|
|
58
58
|
"aria-haspopup": props["aria-haspopup"],
|
|
59
|
+
"aria-controls": props["aria-controls"],
|
|
59
60
|
value,
|
|
60
61
|
onChange: (e) => setValue(e.target.value),
|
|
61
62
|
autoComplete: props.autoComplete,
|
|
@@ -65,6 +66,8 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
65
66
|
name: props.name,
|
|
66
67
|
placeholder: props.placeholder,
|
|
67
68
|
inputMode: props.inputMode,
|
|
69
|
+
autoCorrect: props.autoCorrect,
|
|
70
|
+
spellCheck: props.spellCheck,
|
|
68
71
|
// Clipboard events
|
|
69
72
|
onCopy: props.onCopy,
|
|
70
73
|
onCut: props.onCut,
|
|
@@ -93,7 +96,7 @@ let $3985021b0ad6602f$var$filterHoverProps = (props) => {
|
|
|
93
96
|
let { onHoverStart, onHoverChange, onHoverEnd, ...otherProps } = props;
|
|
94
97
|
return otherProps;
|
|
95
98
|
};
|
|
96
|
-
|
|
99
|
+
const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Input(props, ref) {
|
|
97
100
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3985021b0ad6602f$export$37fb8590cf2c088c);
|
|
98
101
|
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
99
102
|
let { isFocused, isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f({
|
|
@@ -122,8 +125,7 @@ function $3985021b0ad6602f$var$Input(props, ref) {
|
|
|
122
125
|
"data-focus-visible": isFocusVisible || void 0,
|
|
123
126
|
"data-invalid": isInvalid || void 0
|
|
124
127
|
});
|
|
125
|
-
}
|
|
126
|
-
const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($3985021b0ad6602f$var$Input);
|
|
128
|
+
});
|
|
127
129
|
export {
|
|
128
130
|
$3985021b0ad6602f$export$f5b8910cec6cf069 as $,
|
|
129
131
|
$3985021b0ad6602f$export$37fb8590cf2c088c as a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
2
|
-
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-39D0mStj.js";
|
|
2
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-DnOd_jPX.js";
|
|
3
3
|
import 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) {
|
|
6
6
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
7
7
|
let { elementType: ElementType = "label", ...labelProps } = props;
|
|
8
8
|
return /* @__PURE__ */ React__default.createElement(ElementType, {
|
|
@@ -10,8 +10,7 @@ function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
|
10
10
|
...labelProps,
|
|
11
11
|
ref
|
|
12
12
|
});
|
|
13
|
-
}
|
|
14
|
-
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($01b77f81d0f07f68$var$Label);
|
|
13
|
+
});
|
|
15
14
|
export {
|
|
16
15
|
$01b77f81d0f07f68$export$b04be29aa201d4f5 as $,
|
|
17
16
|
$01b77f81d0f07f68$export$75b6ee27786ba447 as a
|