@eightshift/ui-components 6.0.13 → 6.1.1
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-JRIu2BnS.js → Button-CFnNdpNZ.js} +9 -9
- package/dist/{Dialog-Dd1yqNus.js → Dialog-D0jMcN-a.js} +79 -60
- package/dist/{FieldError-DmVwL6Dj.js → FieldError-BPG0hKfB.js} +2 -2
- package/dist/{FocusScope-Dri1oBcH.js → FocusScope-BJhC1-1e.js} +6 -7
- package/dist/{Heading-eA6LXIKB.js → Heading-CY-_gt-U.js} +2 -2
- package/dist/{Input-Cuw9UbNb.js → Input-B4X6-x6r.js} +8 -8
- package/dist/{Label-DPWyf-gp.js → Label-BDlf9vIY.js} +3 -2
- package/dist/{List-CWheI3JH.js → List-CQFXnN4w.js} +1 -1
- package/dist/{ListBox-DT1sFY3e.js → ListBox-BaN0n5h3.js} +30 -28
- package/dist/{OverlayArrow-DVJTTfZM.js → OverlayArrow-Dy0qw7WL.js} +7 -7
- package/dist/{PortalProvider-CHPnqDSH.js → PortalProvider-BQ1X8vGX.js} +1 -1
- package/dist/{RadioGroup-Cp5cdBI_.js → RadioGroup-CjCAbUr4.js} +15 -15
- package/dist/{SearchField-CLhr5PGZ.js → SearchField-CafsA525.js} +12 -12
- package/dist/{SelectionManager-DbBiF5M8.js → SelectionManager-oojq6MOy.js} +38 -34
- package/dist/{SharedElementTransition-B_vnQ1uR.js → SharedElementTransition-CtoWSaF0.js} +1 -1
- package/dist/{Slider-CZV3HhHY.js → Slider-BIbaMdUE.js} +17 -16
- package/dist/{Text-Dae33gHp.js → Text-CjFEHSfr.js} +3 -2
- package/dist/{VisuallyHidden-eaCBtXhE.js → VisuallyHidden-CqnizvzQ.js} +2 -2
- package/dist/{animation-DY7CNkr6.js → animation-Dfl8uEb3.js} +2 -2
- package/dist/assets/style-admin.css +38 -54
- package/dist/assets/style-editor.css +38 -54
- package/dist/assets/style.css +38 -54
- package/dist/{color-swatch-CZj0jHZd.js → color-swatch-bUFkK7ox.js} +6 -6
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +9 -9
- package/dist/components/checkbox/checkbox.js +10 -10
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +27 -23
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +841 -633
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +10 -10
- package/dist/components/index.js +4 -2
- package/dist/components/input-field/input-field.js +10 -10
- package/dist/components/link-input/link-input.js +24 -23
- package/dist/components/matrix-align/matrix-align.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/modal/modal.js +21 -22
- package/dist/components/number-picker/number-picker.js +11 -11
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-picker-shell.js +49 -44
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/portal-provider/portal-provider.js +1 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +1 -1
- package/dist/components/select/async-multi-select.js +53 -32
- package/dist/components/select/async-select.js +8 -8
- package/dist/components/select/multi-select.js +9 -9
- package/dist/components/select/shared.js +4 -4
- package/dist/components/select/single-select.js +9 -9
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/smart-image/image-analysis-worker-next.js +144 -0
- package/dist/components/smart-image/smart-image-next.js +294 -0
- package/dist/components/smart-image/smart-image.js +2 -2
- package/dist/components/smart-image/worker-inline.js +1 -1
- package/dist/components/tabs/tabs.js +17 -16
- package/dist/components/toggle/switch.js +7 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +10 -7
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/{context-DYYO3Ns3.js → context-iUFQCK8m.js} +1 -1
- package/dist/{general-C8Q0dvEx.js → general-BfKmjm56.js} +3 -4
- package/dist/icons/icons.js +2 -2
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/{index-sSixe2j_.js → index-BL5gdWX4.js} +52 -52
- package/dist/index.js +3 -1
- package/dist/{proxy-B_RaYTfe.js → proxy-DFlYXk07.js} +320 -82
- package/dist/{react-jsx-parser.min-B_hvYYa1.js → react-jsx-parser.min-DAh4myol.js} +35 -35
- package/dist/{shared-Bg9lx3pE.js → shared-CMLCUova.js} +29 -26
- package/dist/{textSelection-Cq_Br7RW.js → textSelection-CeoEP4rL.js} +1 -1
- package/dist/{useButton-CeuyDay5.js → useButton-5YL_nmpZ.js} +3 -3
- package/dist/{useEvent-DoWvho2u.js → useEvent-Zze2g7CX.js} +1 -1
- package/dist/{useFilter-DYtfYPua.js → useFilter-8S94U4xM.js} +1 -1
- package/dist/{useFocusRing-WEswknAY.js → useFocusRing-rUOwLdTK.js} +10 -5
- package/dist/{useFormReset-BDF1K4E4.js → useFormReset-BxtOoO5Q.js} +1 -1
- package/dist/{useFormValidation-Dqzjv4jX.js → useFormValidation-DTmPrTD8.js} +3 -3
- package/dist/{useHover-CG39Ci3A.js → useHover-CmyvqeWX.js} +18 -17
- package/dist/{useLabel--3fT2XKM.js → useLabel-DzXzKZZZ.js} +2 -2
- package/dist/{useLabels-vzdDMGCX.js → useLabels-D8O3gOdV.js} +1 -1
- package/dist/{useListState-Bya9g7W8.js → useListState-B22CApJO.js} +1 -1
- package/dist/{useLocalizedStringFormatter-M3L6Ge2c.js → useLocalizedStringFormatter-CEDs0LsA.js} +1 -1
- package/dist/{useNumberField-D6lsi3Vu.js → useNumberField-CTkI-U9a.js} +50 -40
- package/dist/{useNumberFormatter-BWOyCamK.js → useNumberFormatter-CG_IQXp9.js} +1 -1
- package/dist/{usePress-B9w0X4Ur.js → usePress-CNefMs8d.js} +14 -8
- package/dist/{useSingleSelectListState-D9SqGLJ0.js → useSingleSelectListState-CDZGQDLC.js} +2 -2
- package/dist/{useToggle-Deq2xxQV.js → useToggle-CFFOmZWi.js} +4 -4
- package/dist/{useToggleState-j3o1PvdS.js → useToggleState-BWrKKisg.js} +1 -1
- package/dist/utilities/general.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/{utils-HC9_3Crc.js → utils-Cr3pLd9c.js} +77 -38
- package/dist/workers/image-analysis.worker.js +1 -1
- package/package.json +17 -17
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e, d as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-Cr3pLd9c.js";
|
|
2
|
+
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-BDlf9vIY.js";
|
|
3
3
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-7sOvrqo0.js";
|
|
4
4
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
5
5
|
import $dbSRa$react__default, { forwardRef, createContext, useRef, useEffect } from "react";
|
|
6
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel
|
|
7
|
-
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-
|
|
6
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-DzXzKZZZ.js";
|
|
7
|
+
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-CG_IQXp9.js";
|
|
8
8
|
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-Rfj-STx7.js";
|
|
9
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
10
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
11
|
-
import { x as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
9
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-5YL_nmpZ.js";
|
|
10
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-rUOwLdTK.js";
|
|
11
|
+
import { x as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-CmyvqeWX.js";
|
|
12
12
|
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
13
13
|
let $319e236875307eab$var$liveAnnouncer = null;
|
|
14
14
|
function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY) {
|
|
@@ -141,7 +141,7 @@ const $0393f8ab869a0f1a$export$c17561cb55d4db30 = /* @__PURE__ */ forwardRef(fun
|
|
|
141
141
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
142
142
|
global: true
|
|
143
143
|
});
|
|
144
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
144
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
145
145
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, progressBarProps),
|
|
146
146
|
ref,
|
|
147
147
|
slot: props.slot || void 0
|
|
@@ -203,7 +203,7 @@ const $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /* @__PURE__ */ $f39a9eba43920
|
|
|
203
203
|
global: true
|
|
204
204
|
});
|
|
205
205
|
delete DOMProps.onClick;
|
|
206
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
206
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.button, {
|
|
207
207
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, buttonProps, focusProps, hoverProps),
|
|
208
208
|
// When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
|
|
209
209
|
// We do this by changing the button's type to button.
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
2
|
-
import {
|
|
1
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-CFnNdpNZ.js";
|
|
2
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $df56164dff5785e2$export$4338b53315abf666, d as $bdb11010cef70236$export$f680877a34711e37, c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, o as $ff5963eb1fccf552$export$e08e3b67e392101e, m as $b5e257d569688ac6$export$535bd6ca7f90a273, j as $bdb11010cef70236$export$b4cc09c592e8fdb8, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$df3a06d6289f983e, h as $64fa3d84918910a7$export$4d86445c2cf5e3, i as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$fabf2dc03a41866e, n as $64fa3d84918910a7$export$c62b8e45d58ddad9, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 } from "./utils-Cr3pLd9c.js";
|
|
3
3
|
import { c as $4e85f108e88277b8$export$b0d3ecf7112093a7, a as $4e85f108e88277b8$export$698f465ec27e93df, $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-CJ-HBf0L.js";
|
|
4
|
-
import { e as $dd149f63282afbbf$export$f6211563215e3b37, a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, d as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6, b as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./OverlayArrow-
|
|
5
|
-
import { d as $cc38e7bd3fc7b213$export$2bb74740c4e19def, c as $21f1aa98acb08317$export$c57958e35f31ed73, z as $feb5ffebff200149$export$c3d8340acf92597f, m as $ae20dd8cbca75726$export$d6daf82dcd84e87c, q as $c5a24bc478652b5f$export$1005530eda016c13, A as $8a26561d2877236e$export$c24ed0104d07eab9, e as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852,
|
|
4
|
+
import { e as $dd149f63282afbbf$export$f6211563215e3b37, a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, d as $9daab02d461809db$export$683480f191c0e3ea, $ as $fc909762b330b746$export$61c6a8c84e605fb6, b as $44f671af83e7d9e0$export$2de4954e8ae13b9f } from "./OverlayArrow-Dy0qw7WL.js";
|
|
5
|
+
import { d as $cc38e7bd3fc7b213$export$2bb74740c4e19def, c as $21f1aa98acb08317$export$c57958e35f31ed73, z as $feb5ffebff200149$export$c3d8340acf92597f, m as $ae20dd8cbca75726$export$d6daf82dcd84e87c, q as $c5a24bc478652b5f$export$1005530eda016c13, A as $8a26561d2877236e$export$c24ed0104d07eab9, e as $880e95eb8b93ba9a$export$ecf600387e221c37, $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, h as $e1995378a142960e$export$18af5c7a9e9b3664, n as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, f as $e1995378a142960e$export$bf788dd355e3a401, g as $e1995378a142960e$export$fb8073518f34e6ec, i as $23b9f4fcf0fe224b$export$fd11f34e1d07f134, B as $e1995378a142960e$export$e953bb1cd0f19726, C as $23b9f4fcf0fe224b$export$437f11dc9b403b78, j as $7135fc7d473fd974$export$4feb769f8ddf26c5, k as $7135fc7d473fd974$export$d40e14dec8b060a8, o as $7135fc7d473fd974$export$90e00781bc59d8f9 } from "./SelectionManager-oojq6MOy.js";
|
|
6
6
|
import $dbSRa$react__default, { useRef, useContext, useEffect, useMemo, useState, useCallback, createContext, forwardRef } from "react";
|
|
7
7
|
import { $ as $1d5b8b8664671ef2$export$c9549807523555e0 } from "./SelectionIndicator-D7WMzeAW.js";
|
|
8
8
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
9
|
-
import { $ as $c8a5a149f625efcf$export$758399f318e6385a } from "./SharedElementTransition-
|
|
10
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-
|
|
11
|
-
import { a as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
12
|
-
import { I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $431fbd86ca7dc216$export$b204af158042fbac, c as $c87311424ea30a05$export$fedb369cb70207f1, y as $431fbd86ca7dc216$export$f21a1ffae260145a, A as $7215afc6de606d6b$export$de79e2c695e052f3, L as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, x as $6179b936705e76d3$export$ae780daf29e6d456, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, B as $46d819fcbaf35654$export$8f71654801c2f7cd,
|
|
13
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
14
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
15
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
16
|
-
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
17
|
-
import { a as $96b38030c423d352$export$9fc1347d4195ccb3 } from "./PortalProvider-
|
|
18
|
-
import { $ as $dbSRa$reactdom } from "./index-
|
|
19
|
-
import { $ as $d3f049242431219c$export$45fda7c47f93fd48, a as $d3f049242431219c$export$6d3443f2c48bfc20 } from "./animation-
|
|
9
|
+
import { $ as $c8a5a149f625efcf$export$758399f318e6385a } from "./SharedElementTransition-CtoWSaF0.js";
|
|
10
|
+
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-CjFEHSfr.js";
|
|
11
|
+
import { a as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CNefMs8d.js";
|
|
12
|
+
import { I as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $431fbd86ca7dc216$export$b204af158042fbac, g as $d4ee10de306f2510$export$4282f70798064fe0, c as $c87311424ea30a05$export$fedb369cb70207f1, y as $431fbd86ca7dc216$export$f21a1ffae260145a, A as $7215afc6de606d6b$export$de79e2c695e052f3, L as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, x as $6179b936705e76d3$export$ae780daf29e6d456, m as $507fabe10e71c6fb$export$b9b3dfddab17db27, B as $46d819fcbaf35654$export$8f71654801c2f7cd, $ as $f645667febf57a63$export$4c014de7c8940b4c, E as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, P as $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f, Q as $507fabe10e71c6fb$export$98e20ec92f614cfe, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-CmyvqeWX.js";
|
|
13
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CEDs0LsA.js";
|
|
14
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-iUFQCK8m.js";
|
|
15
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-Zze2g7CX.js";
|
|
16
|
+
import { c as $9bf71ea28793e738$export$1258395f99bf9cbf, b as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-BJhC1-1e.js";
|
|
17
|
+
import { a as $96b38030c423d352$export$9fc1347d4195ccb3 } from "./PortalProvider-BQ1X8vGX.js";
|
|
18
|
+
import { $ as $dbSRa$reactdom } from "./index-BL5gdWX4.js";
|
|
19
|
+
import { $ as $d3f049242431219c$export$45fda7c47f93fd48, a as $d3f049242431219c$export$6d3443f2c48bfc20 } from "./animation-Dfl8uEb3.js";
|
|
20
20
|
import { b as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-Rfj-STx7.js";
|
|
21
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-
|
|
22
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
23
|
-
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
21
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-rUOwLdTK.js";
|
|
22
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-D8O3gOdV.js";
|
|
23
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-CqnizvzQ.js";
|
|
24
24
|
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
25
25
|
let scrollableNode = node;
|
|
26
26
|
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
@@ -39,16 +39,15 @@ function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
|
39
39
|
const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /* @__PURE__ */ $dbSRa$react__default.forwardRef(({ children, ...props }, ref) => {
|
|
40
40
|
let isRegistered = useRef(false);
|
|
41
41
|
let prevContext = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
42
|
-
ref = $df56164dff5785e2$export$4338b53315abf666(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));
|
|
43
42
|
let context = $3ef42575df84b30b$export$9d1611c77c2fe928(prevContext || {}, {
|
|
44
43
|
...props,
|
|
45
|
-
ref,
|
|
46
44
|
register() {
|
|
47
45
|
isRegistered.current = true;
|
|
48
46
|
if (prevContext) prevContext.register();
|
|
49
47
|
}
|
|
50
48
|
});
|
|
51
|
-
$
|
|
49
|
+
context.ref = $df56164dff5785e2$export$4338b53315abf666(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));
|
|
50
|
+
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(prevContext, context.ref);
|
|
52
51
|
useEffect(() => {
|
|
53
52
|
if (!isRegistered.current) {
|
|
54
53
|
if (process.env.NODE_ENV !== "production") console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");
|
|
@@ -130,7 +129,7 @@ function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
|
|
|
130
129
|
if (event.button > 0) return false;
|
|
131
130
|
if (event.target) {
|
|
132
131
|
const ownerDocument = event.target.ownerDocument;
|
|
133
|
-
if (!ownerDocument ||
|
|
132
|
+
if (!ownerDocument || !$d4ee10de306f2510$export$4282f70798064fe0(ownerDocument.documentElement, event.target)) return false;
|
|
134
133
|
if (event.target.closest("[data-react-aria-top-layer]")) return false;
|
|
135
134
|
}
|
|
136
135
|
if (!ref.current) return false;
|
|
@@ -139,6 +138,7 @@ function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
|
|
|
139
138
|
const $a11501f3d1d39e6c$var$visibleOverlays = [];
|
|
140
139
|
function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
141
140
|
let { onClose, shouldCloseOnBlur, isOpen, isDismissable = false, isKeyboardDismissDisabled = false, shouldCloseOnInteractOutside } = props;
|
|
141
|
+
let lastVisibleOverlay = useRef(void 0);
|
|
142
142
|
useEffect(() => {
|
|
143
143
|
if (isOpen && !$a11501f3d1d39e6c$var$visibleOverlays.includes(ref)) {
|
|
144
144
|
$a11501f3d1d39e6c$var$visibleOverlays.push(ref);
|
|
@@ -155,8 +155,10 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
|
155
155
|
if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose) onClose();
|
|
156
156
|
};
|
|
157
157
|
let onInteractOutsideStart = (e) => {
|
|
158
|
+
const topMostOverlay = $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1];
|
|
159
|
+
lastVisibleOverlay.current = topMostOverlay;
|
|
158
160
|
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {
|
|
159
|
-
if (
|
|
161
|
+
if (topMostOverlay === ref) {
|
|
160
162
|
e.stopPropagation();
|
|
161
163
|
e.preventDefault();
|
|
162
164
|
}
|
|
@@ -168,8 +170,9 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
|
168
170
|
e.stopPropagation();
|
|
169
171
|
e.preventDefault();
|
|
170
172
|
}
|
|
171
|
-
onHide();
|
|
173
|
+
if (lastVisibleOverlay.current === ref) onHide();
|
|
172
174
|
}
|
|
175
|
+
lastVisibleOverlay.current = void 0;
|
|
173
176
|
};
|
|
174
177
|
let onKeyDown = (e) => {
|
|
175
178
|
if (e.key === "Escape" && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing) {
|
|
@@ -259,6 +262,7 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
259
262
|
allowTouchMove = false;
|
|
260
263
|
let selection = target.ownerDocument.defaultView.getSelection();
|
|
261
264
|
if (selection && !selection.isCollapsed && selection.containsNode(target, true)) allowTouchMove = true;
|
|
265
|
+
if (e.composedPath().some((el) => el instanceof HTMLInputElement && el.type === "range")) allowTouchMove = true;
|
|
262
266
|
if ("selectionStart" in target && "selectionEnd" in target && target.selectionStart < target.selectionEnd && target.ownerDocument.activeElement === target) allowTouchMove = true;
|
|
263
267
|
};
|
|
264
268
|
let style = document.createElement("style");
|
|
@@ -581,7 +585,7 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
|
581
585
|
let acceptNode = (node) => {
|
|
582
586
|
if (hiddenNodes.has(node) || visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
583
587
|
for (let target of visibleNodes) {
|
|
584
|
-
if (node
|
|
588
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(node, target)) return NodeFilter.FILTER_SKIP;
|
|
585
589
|
}
|
|
586
590
|
return NodeFilter.FILTER_ACCEPT;
|
|
587
591
|
};
|
|
@@ -611,10 +615,10 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
|
611
615
|
let observer = new MutationObserver((changes) => {
|
|
612
616
|
for (let change of changes) {
|
|
613
617
|
if (change.type !== "childList") continue;
|
|
614
|
-
if (![
|
|
618
|
+
if (change.target.isConnected && ![
|
|
615
619
|
...visibleNodes,
|
|
616
620
|
...hiddenNodes
|
|
617
|
-
].some((node) => node
|
|
621
|
+
].some((node) => $d4ee10de306f2510$export$4282f70798064fe0(node, change.target))) for (let node of change.addedNodes) {
|
|
618
622
|
if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === "true" || node.dataset.reactAriaTopLayer === "true")) visibleNodes.add(node);
|
|
619
623
|
else if (node instanceof Element) walk(node);
|
|
620
624
|
}
|
|
@@ -1278,7 +1282,7 @@ function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
|
1278
1282
|
};
|
|
1279
1283
|
}
|
|
1280
1284
|
function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
1281
|
-
let { id, key, closeOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart, onPressUp: pressUpProp, onPress, onPressChange: pressChangeProp, onPressEnd, onClick: onClickProp, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state.selectionManager } = props;
|
|
1285
|
+
let { id, key, closeOnSelect, shouldCloseOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart, onPressUp: pressUpProp, onPress, onPressChange: pressChangeProp, onPressEnd, onClick: onClickProp, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state.selectionManager } = props;
|
|
1282
1286
|
let isTrigger = !!hasPopup;
|
|
1283
1287
|
let isTriggerExpanded = isTrigger && props["aria-expanded"] === "true";
|
|
1284
1288
|
var _props_isDisabled;
|
|
@@ -1347,7 +1351,8 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1347
1351
|
performAction();
|
|
1348
1352
|
$ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, item.props.href, item === null || item === void 0 ? void 0 : item.props.routerOptions);
|
|
1349
1353
|
let shouldClose = ((_interaction_current = interaction.current) === null || _interaction_current === void 0 ? void 0 : _interaction_current.pointerType) === "keyboard" ? ((_interaction_current1 = interaction.current) === null || _interaction_current1 === void 0 ? void 0 : _interaction_current1.key) === "Enter" || selectionManager.selectionMode === "none" || selectionManager.isLink(key) : selectionManager.selectionMode !== "multiple" || selectionManager.isLink(key);
|
|
1350
|
-
|
|
1354
|
+
var _ref;
|
|
1355
|
+
shouldClose = (_ref = shouldCloseOnSelect !== null && shouldCloseOnSelect !== void 0 ? shouldCloseOnSelect : closeOnSelect) !== null && _ref !== void 0 ? _ref : shouldClose;
|
|
1351
1356
|
if (onClose && !isTrigger && shouldClose) onClose();
|
|
1352
1357
|
interaction.current = null;
|
|
1353
1358
|
};
|
|
@@ -1414,11 +1419,11 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1414
1419
|
},
|
|
1415
1420
|
onKeyUp
|
|
1416
1421
|
});
|
|
1417
|
-
let {
|
|
1422
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
|
|
1418
1423
|
onBlur,
|
|
1419
1424
|
onFocus,
|
|
1420
1425
|
onFocusChange
|
|
1421
|
-
});
|
|
1426
|
+
}, ref);
|
|
1422
1427
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
|
|
1423
1428
|
delete domProps.id;
|
|
1424
1429
|
let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
|
|
@@ -1436,7 +1441,7 @@ function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1436
1441
|
pressProps,
|
|
1437
1442
|
hoverProps,
|
|
1438
1443
|
keyboardProps,
|
|
1439
|
-
|
|
1444
|
+
focusableProps,
|
|
1440
1445
|
// Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
|
|
1441
1446
|
data.shouldUseVirtualFocus || isTrigger ? {
|
|
1442
1447
|
onMouseDown: (e) => e.preventDefault()
|
|
@@ -1572,7 +1577,7 @@ function $d275435c250248f8$export$85ec83e04c95f50a(options) {
|
|
|
1572
1577
|
reset();
|
|
1573
1578
|
autoCloseTimeout.current = setTimeout(() => {
|
|
1574
1579
|
let target = document.elementFromPoint(mouseX, mouseY);
|
|
1575
|
-
if (target && menu
|
|
1580
|
+
if (target && $d4ee10de306f2510$export$4282f70798064fe0(menu, target)) target.dispatchEvent(new PointerEvent("pointerover", {
|
|
1576
1581
|
bubbles: true,
|
|
1577
1582
|
cancelable: true
|
|
1578
1583
|
}));
|
|
@@ -1633,10 +1638,10 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1633
1638
|
cancelOpenTimeout
|
|
1634
1639
|
]);
|
|
1635
1640
|
let submenuKeyDown = (e) => {
|
|
1636
|
-
if (
|
|
1641
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, document.activeElement)) return;
|
|
1637
1642
|
switch (e.key) {
|
|
1638
1643
|
case "ArrowLeft":
|
|
1639
|
-
if (direction === "ltr" && e.currentTarget
|
|
1644
|
+
if (direction === "ltr" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) {
|
|
1640
1645
|
e.preventDefault();
|
|
1641
1646
|
e.stopPropagation();
|
|
1642
1647
|
onSubmenuClose();
|
|
@@ -1644,7 +1649,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1644
1649
|
}
|
|
1645
1650
|
break;
|
|
1646
1651
|
case "ArrowRight":
|
|
1647
|
-
if (direction === "rtl" && e.currentTarget
|
|
1652
|
+
if (direction === "rtl" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) {
|
|
1648
1653
|
e.preventDefault();
|
|
1649
1654
|
e.stopPropagation();
|
|
1650
1655
|
onSubmenuClose();
|
|
@@ -1652,8 +1657,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1652
1657
|
}
|
|
1653
1658
|
break;
|
|
1654
1659
|
case "Escape":
|
|
1655
|
-
|
|
1656
|
-
if ((_submenuRef_current = submenuRef.current) === null || _submenuRef_current === void 0 ? void 0 : _submenuRef_current.contains(e.target)) {
|
|
1660
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(submenuRef.current, e.target)) {
|
|
1657
1661
|
e.stopPropagation();
|
|
1658
1662
|
onSubmenuClose();
|
|
1659
1663
|
if (!shouldUseVirtualFocus && ref.current) $7215afc6de606d6b$export$de79e2c695e052f3(ref.current);
|
|
@@ -1717,8 +1721,7 @@ function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1717
1721
|
}
|
|
1718
1722
|
};
|
|
1719
1723
|
$e9faafb641e167db$export$90fc3a17d93f704c(parentMenuRef, "focusin", (e) => {
|
|
1720
|
-
|
|
1721
|
-
if (state.isOpen && ((_parentMenuRef_current = parentMenuRef.current) === null || _parentMenuRef_current === void 0 ? void 0 : _parentMenuRef_current.contains(e.target)) && e.target !== ref.current) onSubmenuClose();
|
|
1724
|
+
if (state.isOpen && $d4ee10de306f2510$export$4282f70798064fe0(parentMenuRef.current, e.target) && e.target !== ref.current) onSubmenuClose();
|
|
1722
1725
|
});
|
|
1723
1726
|
let shouldCloseOnInteractOutside = (target) => {
|
|
1724
1727
|
if (target !== ref.current) return true;
|
|
@@ -1755,7 +1758,7 @@ function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
|
1755
1758
|
titleId = props["aria-label"] ? void 0 : titleId;
|
|
1756
1759
|
let isRefocusing = useRef(false);
|
|
1757
1760
|
useEffect(() => {
|
|
1758
|
-
if (ref.current &&
|
|
1761
|
+
if (ref.current && !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, document.activeElement)) {
|
|
1759
1762
|
$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1760
1763
|
let timeout = setTimeout(() => {
|
|
1761
1764
|
if (document.activeElement === ref.current || document.activeElement === document.body) {
|
|
@@ -2032,6 +2035,7 @@ const $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ $e1995378a1429
|
|
|
2032
2035
|
let { elementType, orientation, style, className, slot, ...otherProps } = props;
|
|
2033
2036
|
let Element2 = elementType || "hr";
|
|
2034
2037
|
if (Element2 === "hr" && orientation === "vertical") Element2 = "div";
|
|
2038
|
+
let ElementType = $64fa3d84918910a7$export$df3a06d6289f983e[Element2];
|
|
2035
2039
|
let { separatorProps } = $f4b273590fab9f93$export$52210f68a14655d0({
|
|
2036
2040
|
...otherProps,
|
|
2037
2041
|
elementType,
|
|
@@ -2040,7 +2044,8 @@ const $431f98aba6844401$export$1ff3c3f08ae963c0 = /* @__PURE__ */ $e1995378a1429
|
|
|
2040
2044
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
2041
2045
|
global: true
|
|
2042
2046
|
});
|
|
2043
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
2047
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement(ElementType, {
|
|
2048
|
+
render: props.render,
|
|
2044
2049
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, separatorProps),
|
|
2045
2050
|
style,
|
|
2046
2051
|
className: className !== null && className !== void 0 ? className : "react-aria-Separator",
|
|
@@ -2114,7 +2119,7 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
2114
2119
|
shouldBeDialog
|
|
2115
2120
|
]);
|
|
2116
2121
|
useEffect(() => {
|
|
2117
|
-
if (isDialog && props.trigger !== "SubmenuTrigger" && ref.current &&
|
|
2122
|
+
if (isDialog && props.trigger !== "SubmenuTrigger" && ref.current && !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, document.activeElement)) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
2118
2123
|
}, [
|
|
2119
2124
|
isDialog,
|
|
2120
2125
|
ref,
|
|
@@ -2135,7 +2140,7 @@ function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
2135
2140
|
"--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
|
|
2136
2141
|
...renderProps.style
|
|
2137
2142
|
};
|
|
2138
|
-
let overlay = /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
2143
|
+
let overlay = /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
2139
2144
|
...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
2140
2145
|
global: true
|
|
2141
2146
|
}), popoverProps),
|
|
@@ -2347,9 +2352,9 @@ function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
|
2347
2352
|
onClose: props.onClose || (triggerState === null || triggerState === void 0 ? void 0 : triggerState.close)
|
|
2348
2353
|
}, state, ref);
|
|
2349
2354
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
2355
|
+
...props,
|
|
2356
|
+
children: void 0,
|
|
2350
2357
|
defaultClassName: "react-aria-Menu",
|
|
2351
|
-
className: props.className,
|
|
2352
|
-
style: props.style,
|
|
2353
2358
|
values: {
|
|
2354
2359
|
isEmpty: state.collection.size === 0
|
|
2355
2360
|
}
|
|
@@ -2364,7 +2369,7 @@ function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
|
2364
2369
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
2365
2370
|
global: true
|
|
2366
2371
|
});
|
|
2367
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
2372
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
2368
2373
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuProps),
|
|
2369
2374
|
ref,
|
|
2370
2375
|
slot: props.slot || void 0,
|
|
@@ -2398,7 +2403,9 @@ function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
|
2398
2403
|
],
|
|
2399
2404
|
[
|
|
2400
2405
|
$3674c52c6b3c5bce$var$MenuItemContext,
|
|
2401
|
-
|
|
2406
|
+
{
|
|
2407
|
+
shouldCloseOnSelect: props.shouldCloseOnSelect
|
|
2408
|
+
}
|
|
2402
2409
|
],
|
|
2403
2410
|
[
|
|
2404
2411
|
$4e85f108e88277b8$export$b0d3ecf7112093a7,
|
|
@@ -2448,7 +2455,7 @@ class $3674c52c6b3c5bce$var$GroupSelectionManager extends $d496c0a20b6e58ec$expo
|
|
|
2448
2455
|
}
|
|
2449
2456
|
}
|
|
2450
2457
|
function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className = "react-aria-MenuSection") {
|
|
2451
|
-
var _section_props, _section_props1;
|
|
2458
|
+
var _section_props, _section_props1, _useSlottedContext;
|
|
2452
2459
|
let state = useContext($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
2453
2460
|
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
2454
2461
|
let [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
@@ -2458,19 +2465,24 @@ function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className =
|
|
|
2458
2465
|
"aria-label": (_section_props_arialabel = section.props["aria-label"]) !== null && _section_props_arialabel !== void 0 ? _section_props_arialabel : void 0
|
|
2459
2466
|
});
|
|
2460
2467
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
2468
|
+
...props,
|
|
2469
|
+
id: void 0,
|
|
2470
|
+
children: void 0,
|
|
2461
2471
|
defaultClassName: className,
|
|
2462
2472
|
className: (_section_props = section.props) === null || _section_props === void 0 ? void 0 : _section_props.className,
|
|
2463
2473
|
style: (_section_props1 = section.props) === null || _section_props1 === void 0 ? void 0 : _section_props1.style,
|
|
2464
|
-
values:
|
|
2474
|
+
values: void 0
|
|
2465
2475
|
});
|
|
2466
2476
|
let parent = useContext($3674c52c6b3c5bce$var$SelectionManagerContext);
|
|
2467
2477
|
let selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props);
|
|
2468
2478
|
let manager = props.selectionMode != null ? new $3674c52c6b3c5bce$var$GroupSelectionManager(parent, selectionState) : parent;
|
|
2479
|
+
let closeOnSelect = (_useSlottedContext = $64fa3d84918910a7$export$fabf2dc03a41866e($3674c52c6b3c5bce$var$MenuItemContext)) === null || _useSlottedContext === void 0 ? void 0 : _useSlottedContext.shouldCloseOnSelect;
|
|
2469
2480
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
2470
2481
|
global: true
|
|
2471
2482
|
});
|
|
2472
2483
|
delete DOMProps.id;
|
|
2473
|
-
|
|
2484
|
+
var _props_shouldCloseOnSelect;
|
|
2485
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.section, {
|
|
2474
2486
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
|
|
2475
2487
|
ref
|
|
2476
2488
|
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
@@ -2485,6 +2497,12 @@ function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className =
|
|
|
2485
2497
|
[
|
|
2486
2498
|
$3674c52c6b3c5bce$var$SelectionManagerContext,
|
|
2487
2499
|
manager
|
|
2500
|
+
],
|
|
2501
|
+
[
|
|
2502
|
+
$3674c52c6b3c5bce$var$MenuItemContext,
|
|
2503
|
+
{
|
|
2504
|
+
shouldCloseOnSelect: (_props_shouldCloseOnSelect = props.shouldCloseOnSelect) !== null && _props_shouldCloseOnSelect !== void 0 ? _props_shouldCloseOnSelect : closeOnSelect
|
|
2505
|
+
}
|
|
2488
2506
|
]
|
|
2489
2507
|
]
|
|
2490
2508
|
}, /* @__PURE__ */ $dbSRa$react__default.createElement(CollectionBranch, {
|
|
@@ -2525,7 +2543,7 @@ const $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = /* @__PURE__ */ $e1995378a1429
|
|
|
2525
2543
|
isOpen: props["aria-expanded"] === "true"
|
|
2526
2544
|
}
|
|
2527
2545
|
});
|
|
2528
|
-
let ElementType = props.href ?
|
|
2546
|
+
let ElementType = props.href ? $64fa3d84918910a7$export$df3a06d6289f983e.a : $64fa3d84918910a7$export$df3a06d6289f983e.div;
|
|
2529
2547
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
2530
2548
|
global: true
|
|
2531
2549
|
});
|
|
@@ -2647,8 +2665,9 @@ const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef(fun
|
|
|
2647
2665
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
2648
2666
|
global: true
|
|
2649
2667
|
});
|
|
2650
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
2668
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.section, {
|
|
2651
2669
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, dialogProps),
|
|
2670
|
+
render: props.render,
|
|
2652
2671
|
ref,
|
|
2653
2672
|
slot: props.slot || void 0
|
|
2654
2673
|
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
@@ -2680,13 +2699,13 @@ const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef(fun
|
|
|
2680
2699
|
}, renderProps.children));
|
|
2681
2700
|
});
|
|
2682
2701
|
export {
|
|
2683
|
-
$
|
|
2684
|
-
$3674c52c6b3c5bce$export$
|
|
2685
|
-
$3674c52c6b3c5bce$export$
|
|
2686
|
-
$3674c52c6b3c5bce$export$
|
|
2687
|
-
$
|
|
2688
|
-
$
|
|
2689
|
-
$
|
|
2702
|
+
$3674c52c6b3c5bce$export$27d2ad3c5815583e as $,
|
|
2703
|
+
$3674c52c6b3c5bce$export$d9b273488cd8ce6f as a,
|
|
2704
|
+
$3674c52c6b3c5bce$export$2ce376c2cc3355c8 as b,
|
|
2705
|
+
$3674c52c6b3c5bce$export$4b1545b4f2016d26 as c,
|
|
2706
|
+
$431f98aba6844401$export$1ff3c3f08ae963c0 as d,
|
|
2707
|
+
$3674c52c6b3c5bce$export$ecabc99eeffab7ca as e,
|
|
2708
|
+
$07b14b47974efb58$export$5b6b19405a83ff9d as f,
|
|
2690
2709
|
$de32f1b87079253c$export$3ddf2d174ce01153 as g,
|
|
2691
2710
|
$de32f1b87079253c$export$2e1e1122cf0cba88 as h,
|
|
2692
2711
|
$325a3faab7a68acd$export$a16aca283550c30d as i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel
|
|
2
|
-
import {
|
|
1
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-DzXzKZZZ.js";
|
|
2
|
+
import { j as $bdb11010cef70236$export$b4cc09c592e8fdb8, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-Cr3pLd9c.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 { p as $f4e2df6bd15f8569$export$98658e8c59125e6a,
|
|
2
|
-
import {
|
|
1
|
+
import { p as $f4e2df6bd15f8569$export$98658e8c59125e6a, g as $d4ee10de306f2510$export$4282f70798064fe0, i as $d4ee10de306f2510$export$cd4e5573fbe2b576, d as $431fbd86ca7dc216$export$b204af158042fbac, q as $b4b717babfbb907b$export$bebd5a1431fec25d, r as $b4b717babfbb907b$export$4c063cf1350e6fed, j as $d4ee10de306f2510$export$e58f029f0fbfdb29, s as $c87311424ea30a05$export$a11b0059900ceec8, t as $c87311424ea30a05$export$6446a186d09e379e, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, v as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useHover-CmyvqeWX.js";
|
|
2
|
+
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-Cr3pLd9c.js";
|
|
3
3
|
import $dbSRa$react__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
4
4
|
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
5
5
|
get currentNode() {
|
|
@@ -453,7 +453,7 @@ function $9bf71ea28793e738$var$isElementInAnyScope(element) {
|
|
|
453
453
|
function $9bf71ea28793e738$var$isElementInScope(element, scope) {
|
|
454
454
|
if (!element) return false;
|
|
455
455
|
if (!scope) return false;
|
|
456
|
-
return scope.some((node) => node
|
|
456
|
+
return scope.some((node) => $d4ee10de306f2510$export$4282f70798064fe0(node, element));
|
|
457
457
|
}
|
|
458
458
|
function $9bf71ea28793e738$var$isElementInChildScope(element, scope = null) {
|
|
459
459
|
if (element instanceof Element && element.closest("[data-react-aria-top-layer]")) return true;
|
|
@@ -661,8 +661,7 @@ function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
|
661
661
|
let doc = $431fbd86ca7dc216$export$b204af158042fbac(rootElement);
|
|
662
662
|
let walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root || doc, NodeFilter.SHOW_ELEMENT, {
|
|
663
663
|
acceptNode(node) {
|
|
664
|
-
|
|
665
|
-
if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
|
|
664
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(opts === null || opts === void 0 ? void 0 : opts.from, node)) return NodeFilter.FILTER_REJECT;
|
|
666
665
|
if ((opts === null || opts === void 0 ? void 0 : opts.tabbable) && node.tagName === "INPUT" && node.getAttribute("type") === "radio") {
|
|
667
666
|
if (!$9bf71ea28793e738$var$isTabbableRadio(node)) return NodeFilter.FILTER_REJECT;
|
|
668
667
|
if (walker.currentNode.tagName === "INPUT" && walker.currentNode.type === "radio" && walker.currentNode.name === node.name) return NodeFilter.FILTER_REJECT;
|
|
@@ -685,7 +684,7 @@ function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
|
685
684
|
tabbable,
|
|
686
685
|
accept
|
|
687
686
|
});
|
|
688
|
-
if (root
|
|
687
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(root, node)) walker.currentNode = node;
|
|
689
688
|
let nextNode = walker.nextNode();
|
|
690
689
|
if (!nextNode && wrap) {
|
|
691
690
|
walker.currentNode = root;
|
|
@@ -703,7 +702,7 @@ function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
|
703
702
|
tabbable,
|
|
704
703
|
accept
|
|
705
704
|
});
|
|
706
|
-
if (root
|
|
705
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(root, node)) walker.currentNode = node;
|
|
707
706
|
else {
|
|
708
707
|
let next = $9bf71ea28793e738$var$last(walker);
|
|
709
708
|
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-Cr3pLd9c.js";
|
|
1
2
|
import { $ as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-CJ-HBf0L.js";
|
|
2
|
-
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-HC9_3Crc.js";
|
|
3
3
|
import $dbSRa$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
|
-
let Element = `h${level}
|
|
7
|
+
let Element = $64fa3d84918910a7$export$df3a06d6289f983e[`h${level}`];
|
|
8
8
|
return /* @__PURE__ */ $dbSRa$react__default.createElement(Element, {
|
|
9
9
|
...domProps,
|
|
10
10
|
ref,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, h as $64fa3d84918910a7$export$4d86445c2cf5e3, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-eGTqWSTd.js";
|
|
3
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-
|
|
4
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $f645667febf57a63$export$4c014de7c8940b4c, x as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
3
|
+
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-BxtOoO5Q.js";
|
|
4
|
+
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, $ as $f645667febf57a63$export$4c014de7c8940b4c, x as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-CmyvqeWX.js";
|
|
5
5
|
import $dbSRa$react__default, { useState, forwardRef, createContext } from "react";
|
|
6
|
-
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-
|
|
7
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
8
|
-
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-
|
|
6
|
+
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./FieldError-BPG0hKfB.js";
|
|
7
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-DTmPrTD8.js";
|
|
8
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-rUOwLdTK.js";
|
|
9
9
|
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-Rfj-STx7.js";
|
|
10
10
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
11
11
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
@@ -108,7 +108,7 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /* @__PURE__ */ forwardRef(fun
|
|
|
108
108
|
defaultClassName: "react-aria-Group"
|
|
109
109
|
});
|
|
110
110
|
var _props_role, _props_slot;
|
|
111
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
111
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
112
112
|
...$3ef42575df84b30b$export$9d1611c77c2fe928(otherProps, focusProps, hoverProps),
|
|
113
113
|
...renderProps,
|
|
114
114
|
ref,
|
|
@@ -149,7 +149,7 @@ const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $f39a9eba43920
|
|
|
149
149
|
},
|
|
150
150
|
defaultClassName: "react-aria-Input"
|
|
151
151
|
});
|
|
152
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement(
|
|
152
|
+
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.input, {
|
|
153
153
|
...$3ef42575df84b30b$export$9d1611c77c2fe928($3985021b0ad6602f$var$filterHoverProps(props), focusProps, hoverProps),
|
|
154
154
|
...renderProps,
|
|
155
155
|
ref,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./utils-
|
|
1
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-Cr3pLd9c.js";
|
|
2
2
|
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-Rfj-STx7.js";
|
|
3
3
|
import $dbSRa$react__default, { createContext } from "react";
|
|
4
4
|
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
5
5
|
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Label(props, ref) {
|
|
6
6
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
7
|
-
let { elementType
|
|
7
|
+
let { elementType = "label", ...labelProps } = props;
|
|
8
|
+
let ElementType = $64fa3d84918910a7$export$df3a06d6289f983e[elementType];
|
|
8
9
|
return /* @__PURE__ */ $dbSRa$react__default.createElement(ElementType, {
|
|
9
10
|
className: "react-aria-Label",
|
|
10
11
|
...labelProps,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as $dbSRa$react from "react";
|
|
2
|
-
import { r as reactDomExports } from "./index-
|
|
2
|
+
import { r as reactDomExports } from "./index-BL5gdWX4.js";
|
|
3
3
|
function arrayMove(array, from, to) {
|
|
4
4
|
array = array.slice();
|
|
5
5
|
array.splice(to < 0 ? array.length + to : to, 0, array.splice(from, 1)[0]);
|