@eightshift/ui-components 1.3.2 → 1.4.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-DTARR6Ff.js → Button-uYE9D_E3.js} +6 -5
- package/dist/{ColorSwatch-5bZ_yIMB.js → ColorSwatch-Bev-9Vbr.js} +4 -4
- package/dist/{Dialog-DJgS0mAg.js → Dialog-CGE2ficT.js} +17 -15
- package/dist/{FieldError-CviphIN5.js → FieldError-CBPJ4Xx8.js} +2 -2
- package/dist/{FocusScope-BjM5iOQC.js → FocusScope-CVd6C65L.js} +24 -8
- package/dist/{GridList-DjRnMEae.js → GridList-PBJsm70G.js} +156 -116
- package/dist/{Group-BQu67pVS.js → Group-WZgNv9RE.js} +3 -3
- package/dist/Hidden-YSmyVF_5.js +45 -0
- package/dist/{Input-DWRQF0ro.js → Input-CaS4qmLb.js} +10 -9
- package/dist/{Label-BXvY41yE.js → Label-yZgqvhXc.js} +3 -2
- package/dist/ListBox-MZyPpwvj.js +567 -0
- package/dist/{Select-49a62830.esm-BnlXlUnT.js → Select-49a62830.esm-CqLHaIei.js} +1 -1
- package/dist/{SelectionManager-JxXmb3-k.js → SelectionManager-CvRaua4m.js} +1580 -1484
- package/dist/{Separator-CX64zwq8.js → Separator-C7Few7L6.js} +80 -62
- package/dist/{Slider-Clme2C36.js → Slider-D8a63VhT.js} +14 -12
- package/dist/{Text-qjognpzK.js → Text-D8qh3_U7.js} +1 -1
- package/dist/{VisuallyHidden-BZPezMV5.js → VisuallyHidden-DD480kAb.js} +2 -2
- package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
- package/dist/{ariaHideOutside-BZ5z6iCD.js → ariaHideOutside-BzxkODNq.js} +1 -9
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +311 -198
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +274 -9
- package/dist/components/checkbox/checkbox.js +171 -1
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +3 -3
- package/dist/components/color-pickers/solid-color-picker.js +46 -32
- package/dist/components/component-toggle/component-toggle.js +2 -2
- package/dist/components/container-panel/container-panel.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +3 -3
- package/dist/components/draggable-list/draggable-list.js +3671 -6
- package/dist/components/expandable/expandable.js +7 -4
- package/dist/components/index.js +4 -4
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +1519 -489
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +3 -3
- package/dist/components/menu/menu.js +164 -466
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +22 -17
- package/dist/components/option-select/option-select.js +2 -2
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-context.js +5 -0
- package/dist/components/repeater/repeater-item.js +46 -91
- package/dist/components/repeater/repeater.js +5130 -175
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +3 -3
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- 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 +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +5 -5
- 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 +1 -1
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +46 -71
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +7 -7
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/{context-BG_1RnbC.js → context-Bon2Gyx5.js} +1 -1
- package/dist/{default-i18n-BqwLkgZv.js → default-i18n-BqWys-1G.js} +1 -1
- package/dist/{focusSafely-DGZ4R5fj.js → focusSafely-PMGZgZ9-.js} +33 -26
- package/dist/getScrollParent-B3XgpXBL.js +10 -0
- package/dist/icons/icons.js +205 -0
- package/dist/icons/jsx-svg.js +2 -2
- package/dist/{index-CAPcSs9K.js → index-BTCzc3zb.js} +1 -1
- package/dist/{index-a301f526.esm-ByOfDxiG.js → index-a301f526.esm-B9tWL9yi.js} +80 -603
- package/dist/index.js +4 -4
- package/dist/{intlStrings-CkuKCPkT.js → intlStrings-KQxgp5tS.js} +14 -9
- package/dist/{multi-select-components-7vKCF8dG.js → multi-select-components-DTvEidE3.js} +1 -1
- package/dist/react-jsx-parser.min-CAGfntg1.js +13425 -0
- package/dist/{react-select-async.esm-5zW9Dv9E.js → react-select-async.esm-8Rba_3KV.js} +3 -3
- package/dist/{react-select.esm-Bi6uzjbT.js → react-select.esm-DkSeQzOP.js} +3 -3
- package/dist/{textSelection-BLyBtNe2.js → textSelection-DS7-670U.js} +1 -1
- package/dist/{tooltip-DSk8I1SO.js → tooltip-C9mg1CP5.js} +54 -18
- package/dist/{useButton-EJ9c8fmq.js → useButton-BPY4yXUo.js} +3 -3
- package/dist/{useEvent-Cxq_BzP_.js → useEvent-DDLT851Z.js} +1 -1
- package/dist/{useFocusRing-Dg5Y_10S.js → useFocusRing-DsxEaA2J.js} +1 -1
- package/dist/{useFocusable-CQZyQp4q.js → useFocusable-BFKHuYS9.js} +2 -2
- package/dist/{useFormReset-DJMtIgSL.js → useFormReset-BCPbwfnH.js} +1 -1
- package/dist/{useFormValidationState-DDC_nImg.js → useFormValidationState-DC5jbhBW.js} +2 -2
- package/dist/{useHasTabbableChild-M3O3VIil.js → useHasTabbableChild-Byd7ylXD.js} +2 -2
- package/dist/{useLabel-6NqYraET.js → useLabel-DuJhImKc.js} +2 -2
- package/dist/{useLabels-D2RG7TdI.js → useLabels-JaBafrnV.js} +1 -1
- package/dist/{useListData-BpYQj7kK.js → useListData-B5Pk32vd.js} +6 -3
- package/dist/{useListState-IllYYnXV.js → useListState-Csx05BmT.js} +6 -3
- package/dist/{useLocalizedStringFormatter-Cwm_siat.js → useLocalizedStringFormatter-CVIIVTgz.js} +1 -1
- package/dist/useMenuTrigger-CMgzyMKW.js +246 -0
- package/dist/{useNumberFieldState-CVJOJnF1.js → useNumberFieldState-BVFqhboT.js} +12 -11
- package/dist/{useNumberFormatter-DVZRQXk3.js → useNumberFormatter-BEeBSV-N.js} +1 -1
- package/dist/{usePress-CiXj8dLE.js → usePress-CY8MpqYD.js} +58 -16
- package/dist/useSingleSelectListState-CzZUgAt0.js +37 -0
- package/dist/{useToggle-CV-IX6nL.js → useToggle-CJp2Fh_L.js} +4 -4
- package/dist/{useToggleState-DHIdITtQ.js → useToggleState-B4--Ski0.js} +1 -1
- package/dist/{utils-DC-UMp1n.js → utils-B4IdLYb8.js} +48 -85
- package/package.json +24 -21
- package/dist/Checkbox-CiJIVbAP.js +0 -174
- package/dist/ListBox-DTKMdjQC.js +0 -4216
- package/dist/_commonjsHelpers-DWwsNxpa.js +0 -8
- package/dist/button-IxfzzzbP.js +0 -277
- package/dist/react-jsx-parser.min-DhrYeqLL.js +0 -4563
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
1
|
+
import { $ as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-uYE9D_E3.js";
|
|
2
2
|
import { $ as $4e85f108e88277b8$export$b085522c77523c51 } from "./RSPContexts-DQtGvvpM.js";
|
|
3
|
-
import {
|
|
4
|
-
import { e as $bdb11010cef70236$export$f680877a34711e37,
|
|
5
|
-
import {
|
|
6
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
3
|
+
import { o as $ef06256079686ba0$export$f8aeda7b10753fa1, p as $c5a24bc478652b5f$export$7475b2c64539e4cf, c as $880e95eb8b93ba9a$export$ecf600387e221c37, q as $2f04cbc44ee30ce0$export$c826860796309d1b, d as $e1995378a142960e$export$18af5c7a9e9b3664, g as $7135fc7d473fd974$export$4feb769f8ddf26c5, r as $7135fc7d473fd974$export$a164736487e3f0ae, e as $e1995378a142960e$export$bf788dd355e3a401, f as $e1995378a142960e$export$fb8073518f34e6ec } from "./SelectionManager-CvRaua4m.js";
|
|
4
|
+
import { e as $bdb11010cef70236$export$f680877a34711e37, c as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $bdb11010cef70236$export$b4cc09c592e8fdb8, n as $ff5963eb1fccf552$export$e08e3b67e392101e, l as $df56164dff5785e2$export$4338b53315abf666, b as $64fa3d84918910a7$export$4d86445c2cf5e3, j as $64fa3d84918910a7$export$2881499e37b75b9a, q as $64fa3d84918910a7$export$c62b8e45d58ddad9, a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B4IdLYb8.js";
|
|
5
|
+
import { e as $eed445e0843c11d0$export$7c5906fe4f1f2af2, f as $612b8eb6cb90e02d$export$d188a835a7bc5783, g as $612b8eb6cb90e02d$export$f55761759794cf55, h as $612b8eb6cb90e02d$export$d1e8e3fbb7461f6, i as $612b8eb6cb90e02d$export$971707d8a129a1f7 } from "./ListBox-MZyPpwvj.js";
|
|
6
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-D8qh3_U7.js";
|
|
7
7
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
|
|
8
|
-
import React__default, { useRef, useEffect, useMemo,
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { $ as $
|
|
8
|
+
import React__default, { useRef, useEffect, useMemo, forwardRef, useContext, createContext } from "react";
|
|
9
|
+
import { d as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 } from "./usePress-CY8MpqYD.js";
|
|
10
|
+
import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "./getScrollParent-B3XgpXBL.js";
|
|
11
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa, $ as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CVd6C65L.js";
|
|
12
|
+
import { t as $507fabe10e71c6fb$export$98e20ec92f614cfe, h as $6a99195332edec8b$export$80f3e147d781571c, a as $507fabe10e71c6fb$export$b9b3dfddab17db27, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-PMGZgZ9-.js";
|
|
13
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-Bon2Gyx5.js";
|
|
14
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CVIIVTgz.js";
|
|
12
15
|
import { $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-D8h-3GrG.js";
|
|
13
|
-
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "./useHasTabbableChild-
|
|
14
|
-
import { $ as $982254629710d113$export$b95089534ab7c1fd,
|
|
15
|
-
import {
|
|
16
|
-
import { a as $
|
|
17
|
-
import {
|
|
18
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BG_1RnbC.js";
|
|
19
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Dg5Y_10S.js";
|
|
20
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-BZPezMV5.js";
|
|
16
|
+
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "./useHasTabbableChild-Byd7ylXD.js";
|
|
17
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $325a3faab7a68acd$export$a16aca283550c30d, c as $2a25aae57d74318e$export$a05409b8bb224a5a } from "./Separator-C7Few7L6.js";
|
|
18
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DsxEaA2J.js";
|
|
19
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-DD480kAb.js";
|
|
20
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-Csx05BmT.js";
|
|
21
21
|
function $4f58c5f72bcf79f7$export$496315a1608d9602(effect, dependencies) {
|
|
22
22
|
const isInitialMount = useRef(true);
|
|
23
23
|
const lastDeps = useRef(null);
|
|
@@ -613,7 +613,7 @@ function $7cb39d07f245a780$export$70e2eed1a92976ad(props, state) {
|
|
|
613
613
|
let checkboxId = $bdb11010cef70236$export$f680877a34711e37();
|
|
614
614
|
let isDisabled = !state.selectionManager.canSelectItem(key);
|
|
615
615
|
let isSelected = state.selectionManager.isSelected(key);
|
|
616
|
-
let onChange = () => manager.
|
|
616
|
+
let onChange = () => manager.toggleSelection(key);
|
|
617
617
|
const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($835c96616a7cb4f9$exports), "@react-aria/grid");
|
|
618
618
|
return {
|
|
619
619
|
checkboxProps: {
|
|
@@ -626,7 +626,7 @@ function $7cb39d07f245a780$export$70e2eed1a92976ad(props, state) {
|
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
628
|
function $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) {
|
|
629
|
-
let { isVirtualized, keyboardDelegate, onAction, linkBehavior = "action" } = props;
|
|
629
|
+
let { isVirtualized, keyboardDelegate, layoutDelegate, onAction, linkBehavior = "action", keyboardNavigationBehavior = "arrow" } = props;
|
|
630
630
|
if (!props["aria-label"] && !props["aria-labelledby"]) console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
631
631
|
let { listProps } = $982254629710d113$export$b95089534ab7c1fd({
|
|
632
632
|
selectionManager: state.selectionManager,
|
|
@@ -634,6 +634,7 @@ function $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) {
|
|
|
634
634
|
disabledKeys: state.disabledKeys,
|
|
635
635
|
ref,
|
|
636
636
|
keyboardDelegate,
|
|
637
|
+
layoutDelegate,
|
|
637
638
|
isVirtualized,
|
|
638
639
|
selectOnFocus: state.selectionManager.selectionBehavior === "replace",
|
|
639
640
|
shouldFocusWrap: props.shouldFocusWrap,
|
|
@@ -643,7 +644,8 @@ function $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) {
|
|
|
643
644
|
$ce9b18daab526bbd$export$5b9bb410392e3991.set(state, {
|
|
644
645
|
id,
|
|
645
646
|
onAction,
|
|
646
|
-
linkBehavior
|
|
647
|
+
linkBehavior,
|
|
648
|
+
keyboardNavigationBehavior
|
|
647
649
|
});
|
|
648
650
|
let descriptionProps = $5b9b5b5723db6ae1$export$be42ebdab07ae4c2({
|
|
649
651
|
selectionManager: state.selectionManager,
|
|
@@ -691,7 +693,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
|
|
|
691
693
|
var _node_props, _node_props1;
|
|
692
694
|
let { node, isVirtualized, shouldSelectOnPressUp } = props;
|
|
693
695
|
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
694
|
-
let { onAction, linkBehavior } = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state);
|
|
696
|
+
let { onAction, linkBehavior, keyboardNavigationBehavior } = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state);
|
|
695
697
|
let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
696
698
|
let keyWhenFocused = useRef(null);
|
|
697
699
|
let focus = () => {
|
|
@@ -742,66 +744,68 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
|
|
|
742
744
|
}
|
|
743
745
|
}
|
|
744
746
|
switch (e.key) {
|
|
745
|
-
case "ArrowLeft":
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
});
|
|
754
|
-
} else {
|
|
755
|
-
e.preventDefault();
|
|
756
|
-
e.stopPropagation();
|
|
757
|
-
if (direction === "rtl") {
|
|
758
|
-
$6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
759
|
-
$2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
|
|
747
|
+
case "ArrowLeft":
|
|
748
|
+
if (keyboardNavigationBehavior === "arrow") {
|
|
749
|
+
let focusable = direction === "rtl" ? walker.nextNode() : walker.previousNode();
|
|
750
|
+
if (focusable) {
|
|
751
|
+
e.preventDefault();
|
|
752
|
+
e.stopPropagation();
|
|
753
|
+
$6a99195332edec8b$export$80f3e147d781571c(focusable);
|
|
754
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(focusable, {
|
|
760
755
|
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
761
756
|
});
|
|
762
757
|
} else {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
if (
|
|
766
|
-
$6a99195332edec8b$export$80f3e147d781571c(
|
|
767
|
-
$2f04cbc44ee30ce0$export$c826860796309d1b(
|
|
758
|
+
e.preventDefault();
|
|
759
|
+
e.stopPropagation();
|
|
760
|
+
if (direction === "rtl") {
|
|
761
|
+
$6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
762
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
|
|
768
763
|
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
769
764
|
});
|
|
765
|
+
} else {
|
|
766
|
+
walker.currentNode = ref.current;
|
|
767
|
+
let lastElement = $4e8b0456ef72939f$var$last(walker);
|
|
768
|
+
if (lastElement) {
|
|
769
|
+
$6a99195332edec8b$export$80f3e147d781571c(lastElement);
|
|
770
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(lastElement, {
|
|
771
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
772
|
+
});
|
|
773
|
+
}
|
|
770
774
|
}
|
|
771
775
|
}
|
|
772
776
|
}
|
|
773
777
|
break;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
783
|
-
});
|
|
784
|
-
} else {
|
|
785
|
-
e.preventDefault();
|
|
786
|
-
e.stopPropagation();
|
|
787
|
-
if (direction === "ltr") {
|
|
788
|
-
$6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
789
|
-
$2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
|
|
778
|
+
case "ArrowRight":
|
|
779
|
+
if (keyboardNavigationBehavior === "arrow") {
|
|
780
|
+
let focusable = direction === "rtl" ? walker.previousNode() : walker.nextNode();
|
|
781
|
+
if (focusable) {
|
|
782
|
+
e.preventDefault();
|
|
783
|
+
e.stopPropagation();
|
|
784
|
+
$6a99195332edec8b$export$80f3e147d781571c(focusable);
|
|
785
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(focusable, {
|
|
790
786
|
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
791
787
|
});
|
|
792
788
|
} else {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
if (
|
|
796
|
-
$6a99195332edec8b$export$80f3e147d781571c(
|
|
797
|
-
$2f04cbc44ee30ce0$export$c826860796309d1b(
|
|
789
|
+
e.preventDefault();
|
|
790
|
+
e.stopPropagation();
|
|
791
|
+
if (direction === "ltr") {
|
|
792
|
+
$6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
793
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
|
|
798
794
|
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
799
795
|
});
|
|
796
|
+
} else {
|
|
797
|
+
walker.currentNode = ref.current;
|
|
798
|
+
let lastElement = $4e8b0456ef72939f$var$last(walker);
|
|
799
|
+
if (lastElement) {
|
|
800
|
+
$6a99195332edec8b$export$80f3e147d781571c(lastElement);
|
|
801
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(lastElement, {
|
|
802
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
803
|
+
});
|
|
804
|
+
}
|
|
800
805
|
}
|
|
801
806
|
}
|
|
802
807
|
}
|
|
803
808
|
break;
|
|
804
|
-
}
|
|
805
809
|
case "ArrowUp":
|
|
806
810
|
case "ArrowDown":
|
|
807
811
|
if (!e.altKey && ref.current.contains(e.target)) {
|
|
@@ -810,6 +814,15 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
|
|
|
810
814
|
ref.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
|
|
811
815
|
}
|
|
812
816
|
break;
|
|
817
|
+
case "Tab":
|
|
818
|
+
if (keyboardNavigationBehavior === "tab") {
|
|
819
|
+
let walker2 = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, {
|
|
820
|
+
tabbable: true
|
|
821
|
+
});
|
|
822
|
+
walker2.currentNode = document.activeElement;
|
|
823
|
+
let next = e.shiftKey ? walker2.previousNode() : walker2.nextNode();
|
|
824
|
+
if (next) e.stopPropagation();
|
|
825
|
+
}
|
|
813
826
|
}
|
|
814
827
|
};
|
|
815
828
|
let onFocus = (e) => {
|
|
@@ -819,7 +832,8 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
|
|
|
819
832
|
return;
|
|
820
833
|
}
|
|
821
834
|
};
|
|
822
|
-
let
|
|
835
|
+
let syntheticLinkProps = $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(node.props);
|
|
836
|
+
let linkProps = itemStates.hasAction ? syntheticLinkProps : {};
|
|
823
837
|
let rowProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, linkProps, {
|
|
824
838
|
role: "row",
|
|
825
839
|
onKeyDownCapture: onKeyDown,
|
|
@@ -869,34 +883,54 @@ function $e52ffc04a4adbd52$export$e29f2573fabbf7b9(props, state) {
|
|
|
869
883
|
const $72e60046c03fbe42$export$54fe942636b6416d = /* @__PURE__ */ createContext(null);
|
|
870
884
|
function $72e60046c03fbe42$var$GridList(props, ref) {
|
|
871
885
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72e60046c03fbe42$export$54fe942636b6416d);
|
|
872
|
-
|
|
873
|
-
|
|
886
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
887
|
+
content: /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props)
|
|
888
|
+
}, (collection) => /* @__PURE__ */ React__default.createElement($72e60046c03fbe42$var$GridListInner, {
|
|
874
889
|
props,
|
|
875
890
|
collection,
|
|
876
891
|
gridListRef: ref
|
|
877
892
|
}));
|
|
878
893
|
}
|
|
879
894
|
function $72e60046c03fbe42$var$GridListInner({ props, collection, gridListRef: ref }) {
|
|
880
|
-
let { dragAndDropHooks } = props;
|
|
895
|
+
let { dragAndDropHooks, keyboardNavigationBehavior = "arrow", layout = "stack" } = props;
|
|
896
|
+
let { CollectionRoot, isVirtualized, layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
881
897
|
let state = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
882
898
|
...props,
|
|
883
899
|
collection,
|
|
884
900
|
children: void 0
|
|
885
901
|
});
|
|
886
|
-
let
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
children: (item) => {
|
|
890
|
-
switch (item.type) {
|
|
891
|
-
case "item":
|
|
892
|
-
return /* @__PURE__ */ React__default.createElement($72e60046c03fbe42$var$GridListRow, {
|
|
893
|
-
item
|
|
894
|
-
});
|
|
895
|
-
default:
|
|
896
|
-
throw new Error("Unsupported node type in GridList: " + item.type);
|
|
897
|
-
}
|
|
898
|
-
}
|
|
902
|
+
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
903
|
+
usage: "search",
|
|
904
|
+
sensitivity: "base"
|
|
899
905
|
});
|
|
906
|
+
let { disabledBehavior, disabledKeys } = state.selectionManager;
|
|
907
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
908
|
+
let keyboardDelegate = useMemo(() => new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
909
|
+
collection,
|
|
910
|
+
collator,
|
|
911
|
+
ref,
|
|
912
|
+
disabledKeys,
|
|
913
|
+
disabledBehavior,
|
|
914
|
+
layoutDelegate,
|
|
915
|
+
layout,
|
|
916
|
+
direction
|
|
917
|
+
}), [
|
|
918
|
+
collection,
|
|
919
|
+
ref,
|
|
920
|
+
layout,
|
|
921
|
+
disabledKeys,
|
|
922
|
+
disabledBehavior,
|
|
923
|
+
layoutDelegate,
|
|
924
|
+
collator,
|
|
925
|
+
direction
|
|
926
|
+
]);
|
|
927
|
+
let { gridProps } = $f47efb0c3a859cf2$export$664f9155035607eb({
|
|
928
|
+
...props,
|
|
929
|
+
keyboardDelegate,
|
|
930
|
+
// Only tab navigation is supported in grid layout.
|
|
931
|
+
keyboardNavigationBehavior: layout === "grid" ? "tab" : keyboardNavigationBehavior,
|
|
932
|
+
isVirtualized
|
|
933
|
+
}, state, ref);
|
|
900
934
|
let selectionManager = state.selectionManager;
|
|
901
935
|
let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
|
|
902
936
|
let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
|
|
@@ -932,15 +966,18 @@ function $72e60046c03fbe42$var$GridListInner({ props, collection, gridListRef: r
|
|
|
932
966
|
collection,
|
|
933
967
|
selectionManager
|
|
934
968
|
});
|
|
935
|
-
let
|
|
969
|
+
let keyboardDelegate2 = new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
936
970
|
collection,
|
|
937
971
|
disabledKeys: selectionManager.disabledKeys,
|
|
938
972
|
disabledBehavior: selectionManager.disabledBehavior,
|
|
939
973
|
ref
|
|
940
974
|
});
|
|
941
|
-
let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, ref
|
|
975
|
+
let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, ref, {
|
|
976
|
+
layout,
|
|
977
|
+
direction
|
|
978
|
+
});
|
|
942
979
|
droppableCollection = dragAndDropHooks.useDroppableCollection({
|
|
943
|
-
keyboardDelegate,
|
|
980
|
+
keyboardDelegate: keyboardDelegate2,
|
|
944
981
|
dropTargetDelegate
|
|
945
982
|
}, dropState, ref);
|
|
946
983
|
isRootDropTarget = dropState.isDropTarget({
|
|
@@ -953,6 +990,7 @@ function $72e60046c03fbe42$var$GridListInner({ props, collection, gridListRef: r
|
|
|
953
990
|
isEmpty: state.collection.size === 0,
|
|
954
991
|
isFocused,
|
|
955
992
|
isFocusVisible,
|
|
993
|
+
layout,
|
|
956
994
|
state
|
|
957
995
|
};
|
|
958
996
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
@@ -987,7 +1025,8 @@ function $72e60046c03fbe42$var$GridListInner({ props, collection, gridListRef: r
|
|
|
987
1025
|
"data-drop-target": isRootDropTarget || void 0,
|
|
988
1026
|
"data-empty": state.collection.size === 0 || void 0,
|
|
989
1027
|
"data-focused": isFocused || void 0,
|
|
990
|
-
"data-focus-visible": isFocusVisible || void 0
|
|
1028
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
1029
|
+
"data-layout": layout
|
|
991
1030
|
}, /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
992
1031
|
values: [
|
|
993
1032
|
[
|
|
@@ -995,7 +1034,7 @@ function $72e60046c03fbe42$var$GridListInner({ props, collection, gridListRef: r
|
|
|
995
1034
|
state
|
|
996
1035
|
],
|
|
997
1036
|
[
|
|
998
|
-
$
|
|
1037
|
+
$612b8eb6cb90e02d$export$d188a835a7bc5783,
|
|
999
1038
|
{
|
|
1000
1039
|
dragAndDropHooks,
|
|
1001
1040
|
dragState,
|
|
@@ -1003,26 +1042,29 @@ function $72e60046c03fbe42$var$GridListInner({ props, collection, gridListRef: r
|
|
|
1003
1042
|
}
|
|
1004
1043
|
],
|
|
1005
1044
|
[
|
|
1006
|
-
$
|
|
1045
|
+
$612b8eb6cb90e02d$export$f55761759794cf55,
|
|
1007
1046
|
{
|
|
1008
1047
|
render: $72e60046c03fbe42$var$GridListDropIndicatorWrapper
|
|
1009
1048
|
}
|
|
1010
1049
|
]
|
|
1011
1050
|
]
|
|
1012
|
-
}, isListDroppable && /* @__PURE__ */ React__default.createElement($72e60046c03fbe42$var$RootDropIndicator, null),
|
|
1051
|
+
}, isListDroppable && /* @__PURE__ */ React__default.createElement($72e60046c03fbe42$var$RootDropIndicator, null), /* @__PURE__ */ React__default.createElement(CollectionRoot, {
|
|
1052
|
+
collection,
|
|
1053
|
+
scrollRef: ref,
|
|
1054
|
+
persistedKeys: $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState),
|
|
1055
|
+
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
1056
|
+
})), emptyState, dragPreview));
|
|
1013
1057
|
}
|
|
1014
1058
|
const $72e60046c03fbe42$export$a7bfbda1311ca015 = /* @__PURE__ */ forwardRef($72e60046c03fbe42$var$GridList);
|
|
1015
|
-
|
|
1016
|
-
return $7135fc7d473fd974$export$e7c29ae2353b16ea("item", props, ref, props.children);
|
|
1017
|
-
}
|
|
1018
|
-
const $72e60046c03fbe42$export$e96fc9a8407faa6b = /* @__PURE__ */ forwardRef($72e60046c03fbe42$var$GridListItem);
|
|
1019
|
-
function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
1059
|
+
const $72e60046c03fbe42$export$e96fc9a8407faa6b = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", function GridListItem(props, forwardedRef, item) {
|
|
1020
1060
|
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1021
|
-
let { dragAndDropHooks, dragState, dropState } = useContext($
|
|
1022
|
-
let ref = $df56164dff5785e2$export$4338b53315abf666(
|
|
1061
|
+
let { dragAndDropHooks, dragState, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1062
|
+
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
1063
|
+
let { isVirtualized } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1023
1064
|
let { rowProps, gridCellProps, descriptionProps, ...states } = $4e8b0456ef72939f$export$9610e69494fadfd2({
|
|
1024
1065
|
node: item,
|
|
1025
|
-
shouldSelectOnPressUp: !!dragState
|
|
1066
|
+
shouldSelectOnPressUp: !!dragState,
|
|
1067
|
+
isVirtualized
|
|
1026
1068
|
}, state, ref);
|
|
1027
1069
|
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
1028
1070
|
isDisabled: !states.allowsSelection && !states.hasAction,
|
|
@@ -1034,6 +1076,9 @@ function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
|
1034
1076
|
let { checkboxProps } = $e52ffc04a4adbd52$export$e29f2573fabbf7b9({
|
|
1035
1077
|
key: item.key
|
|
1036
1078
|
}, state);
|
|
1079
|
+
let buttonProps = state.selectionManager.disabledBehavior === "all" && states.isDisabled ? {
|
|
1080
|
+
isDisabled: true
|
|
1081
|
+
} : {};
|
|
1037
1082
|
let draggableItem = null;
|
|
1038
1083
|
if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({
|
|
1039
1084
|
key: item.key,
|
|
@@ -1049,7 +1094,6 @@ function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
|
1049
1094
|
dropPosition: "on"
|
|
1050
1095
|
}
|
|
1051
1096
|
}, dropState, dropIndicatorRef);
|
|
1052
|
-
let props = item.props;
|
|
1053
1097
|
let isDragging = dragState && dragState.isDragging(item.key);
|
|
1054
1098
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1055
1099
|
...props,
|
|
@@ -1067,9 +1111,6 @@ function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
|
1067
1111
|
isDropTarget: dropIndicator === null || dropIndicator === void 0 ? void 0 : dropIndicator.isDropTarget
|
|
1068
1112
|
}
|
|
1069
1113
|
});
|
|
1070
|
-
let renderDropIndicator = (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator) || ((target) => /* @__PURE__ */ React__default.createElement($d8f176866e6dc039$export$62ed72bc21f6b8a6, {
|
|
1071
|
-
target
|
|
1072
|
-
}));
|
|
1073
1114
|
let dragButtonRef = useRef(null);
|
|
1074
1115
|
useEffect(() => {
|
|
1075
1116
|
if (dragState && !dragButtonRef.current) console.warn('Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
|
|
@@ -1079,11 +1120,7 @@ function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
|
1079
1120
|
}, [
|
|
1080
1121
|
item.textValue
|
|
1081
1122
|
]);
|
|
1082
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null,
|
|
1083
|
-
type: "item",
|
|
1084
|
-
key: item.key,
|
|
1085
|
-
dropPosition: "before"
|
|
1086
|
-
}), dropIndicator && !dropIndicator.isHidden && /* @__PURE__ */ React__default.createElement("div", {
|
|
1123
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, dropIndicator && !dropIndicator.isHidden && /* @__PURE__ */ React__default.createElement("div", {
|
|
1087
1124
|
role: "row",
|
|
1088
1125
|
style: {
|
|
1089
1126
|
position: "absolute"
|
|
@@ -1128,7 +1165,7 @@ function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
|
1128
1165
|
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
1129
1166
|
{
|
|
1130
1167
|
slots: {
|
|
1131
|
-
[$64fa3d84918910a7$export$c62b8e45d58ddad9]:
|
|
1168
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: buttonProps,
|
|
1132
1169
|
drag: {
|
|
1133
1170
|
...draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragButtonProps,
|
|
1134
1171
|
ref: dragButtonRef,
|
|
@@ -1146,17 +1183,21 @@ function $72e60046c03fbe42$var$GridListRow({ item }) {
|
|
|
1146
1183
|
description: descriptionProps
|
|
1147
1184
|
}
|
|
1148
1185
|
}
|
|
1186
|
+
],
|
|
1187
|
+
[
|
|
1188
|
+
$7135fc7d473fd974$export$4feb769f8ddf26c5,
|
|
1189
|
+
$7135fc7d473fd974$export$a164736487e3f0ae
|
|
1190
|
+
],
|
|
1191
|
+
[
|
|
1192
|
+
$eed445e0843c11d0$export$7c5906fe4f1f2af2,
|
|
1193
|
+
null
|
|
1149
1194
|
]
|
|
1150
1195
|
]
|
|
1151
|
-
}, renderProps.children)))
|
|
1152
|
-
|
|
1153
|
-
key: item.key,
|
|
1154
|
-
dropPosition: "after"
|
|
1155
|
-
}));
|
|
1156
|
-
}
|
|
1196
|
+
}, renderProps.children))));
|
|
1197
|
+
});
|
|
1157
1198
|
function $72e60046c03fbe42$var$GridListDropIndicatorWrapper(props, ref) {
|
|
1158
1199
|
ref = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
1159
|
-
let { dragAndDropHooks, dropState } = useContext($
|
|
1200
|
+
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1160
1201
|
let buttonRef = useRef(null);
|
|
1161
1202
|
let { dropIndicatorProps, isHidden, isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, buttonRef);
|
|
1162
1203
|
if (isHidden) return null;
|
|
@@ -1194,7 +1235,7 @@ function $72e60046c03fbe42$var$GridListDropIndicator(props, ref) {
|
|
|
1194
1235
|
}
|
|
1195
1236
|
const $72e60046c03fbe42$var$GridListDropIndicatorForwardRef = /* @__PURE__ */ forwardRef($72e60046c03fbe42$var$GridListDropIndicator);
|
|
1196
1237
|
function $72e60046c03fbe42$var$RootDropIndicator() {
|
|
1197
|
-
let { dragAndDropHooks, dropState } = useContext($
|
|
1238
|
+
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1198
1239
|
let ref = useRef(null);
|
|
1199
1240
|
let { dropIndicatorProps } = dragAndDropHooks.useDropIndicator({
|
|
1200
1241
|
target: {
|
|
@@ -1222,7 +1263,6 @@ function $72e60046c03fbe42$var$RootDropIndicator() {
|
|
|
1222
1263
|
})));
|
|
1223
1264
|
}
|
|
1224
1265
|
export {
|
|
1225
|
-
$72e60046c03fbe42$export$
|
|
1226
|
-
$72e60046c03fbe42$export$
|
|
1227
|
-
$72e60046c03fbe42$export$54fe942636b6416d as b
|
|
1266
|
+
$72e60046c03fbe42$export$e96fc9a8407faa6b as $,
|
|
1267
|
+
$72e60046c03fbe42$export$a7bfbda1311ca015 as a
|
|
1228
1268
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415,
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, c as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B4IdLYb8.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-PMGZgZ9-.js";
|
|
4
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DsxEaA2J.js";
|
|
5
5
|
const $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ createContext({});
|
|
6
6
|
function $a049562f99e7db0e$var$Group(props, ref) {
|
|
7
7
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as reactDomExports } from "./index-BTCzc3zb.js";
|
|
2
|
+
import React__default, { forwardRef, useContext, createContext } from "react";
|
|
3
|
+
import { d as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-B4IdLYb8.js";
|
|
4
|
+
if (typeof HTMLTemplateElement !== "undefined") {
|
|
5
|
+
const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
6
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
7
|
+
configurable: true,
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
if (this.dataset.reactAriaHidden) return this.content.firstChild;
|
|
11
|
+
else return getFirstChild.call(this);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const $f39a9eba43920ace$export$94b6d0abf7d33e8c = /* @__PURE__ */ createContext(false);
|
|
16
|
+
const $f39a9eba43920ace$var$hiddenFragment = typeof DocumentFragment !== "undefined" ? new DocumentFragment() : null;
|
|
17
|
+
function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) {
|
|
18
|
+
let isHidden = useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
19
|
+
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
20
|
+
if (isHidden)
|
|
21
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, props.children);
|
|
22
|
+
let children = /* @__PURE__ */ React__default.createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, {
|
|
23
|
+
value: true
|
|
24
|
+
}, props.children);
|
|
25
|
+
return isSSR ? /* @__PURE__ */ React__default.createElement("template", {
|
|
26
|
+
"data-react-aria-hidden": true
|
|
27
|
+
}, children) : /* @__PURE__ */ reactDomExports.createPortal(children, $f39a9eba43920ace$var$hiddenFragment);
|
|
28
|
+
}
|
|
29
|
+
function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
|
|
30
|
+
let Wrapper = (props, ref) => {
|
|
31
|
+
let isHidden = useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
32
|
+
if (isHidden) return null;
|
|
33
|
+
return fn(props, ref);
|
|
34
|
+
};
|
|
35
|
+
Wrapper.displayName = fn.displayName || fn.name;
|
|
36
|
+
return forwardRef(Wrapper);
|
|
37
|
+
}
|
|
38
|
+
function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
|
|
39
|
+
return useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
$f39a9eba43920ace$export$86427a43e3e48ebb as $,
|
|
43
|
+
$f39a9eba43920ace$export$8dc98ba7eadeaa56 as a,
|
|
44
|
+
$f39a9eba43920ace$export$b5d7cc18bb8d2b59 as b
|
|
45
|
+
};
|
|
@@ -1,12 +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 {
|
|
2
|
+
import { e as $458b0a5536c1a7cf$export$40bfa8c7b0832715, f as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./focusSafely-PMGZgZ9-.js";
|
|
3
|
+
import { c as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "./utils-B4IdLYb8.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 "./useFormValidationState-
|
|
9
|
-
import { $ as $
|
|
5
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BCPbwfnH.js";
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-CBPJ4Xx8.js";
|
|
7
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-BFKHuYS9.js";
|
|
8
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidationState-DC5jbhBW.js";
|
|
9
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-YSmyVF_5.js";
|
|
10
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DsxEaA2J.js";
|
|
10
11
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
11
12
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
12
13
|
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -45,7 +46,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
45
46
|
]);
|
|
46
47
|
return {
|
|
47
48
|
labelProps,
|
|
48
|
-
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, inputElementType === "input"
|
|
49
|
+
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, inputElementType === "input" ? inputOnlyProps : void 0, {
|
|
49
50
|
disabled: isDisabled,
|
|
50
51
|
readOnly: isReadOnly,
|
|
51
52
|
required: isRequired && validationBehavior === "native",
|
|
@@ -122,7 +123,7 @@ function $3985021b0ad6602f$var$Input(props, ref) {
|
|
|
122
123
|
"data-invalid": isInvalid || void 0
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
|
-
const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $
|
|
126
|
+
const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($3985021b0ad6602f$var$Input);
|
|
126
127
|
export {
|
|
127
128
|
$3985021b0ad6602f$export$37fb8590cf2c088c as $,
|
|
128
129
|
$3985021b0ad6602f$export$f5b8910cec6cf069 as a,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-B4IdLYb8.js";
|
|
2
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-YSmyVF_5.js";
|
|
2
3
|
import React__default, { createContext } from "react";
|
|
3
4
|
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
4
5
|
function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
@@ -10,7 +11,7 @@ function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
|
10
11
|
ref
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
|
-
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $
|
|
14
|
+
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb($01b77f81d0f07f68$var$Label);
|
|
14
15
|
export {
|
|
15
16
|
$01b77f81d0f07f68$export$b04be29aa201d4f5 as $,
|
|
16
17
|
$01b77f81d0f07f68$export$75b6ee27786ba447 as a
|