@eightshift/ui-components 8.1.0 → 8.2.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/{Autocomplete-BUU44AuW.js → Autocomplete-CO9aIsTe.js} +29 -25
- package/dist/{Button-_E2Z5G2l.js → Button-DO3oQfCq.js} +15 -9
- package/dist/{Dialog-3XLIaepk.js → Dialog-Bdqjmtt2.js} +293 -160
- package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BTSsPhG9.js} +33 -29
- package/dist/{FocusScope-BKGWN6UK.js → FocusScope-Cj6cUR6X.js} +8 -6
- package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
- package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
- package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
- package/dist/{ListBox-DepY-52g.js → ListBox-CBvtIFuB.js} +20 -16
- package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
- package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-Dxzko0ma.js} +35 -35
- package/dist/{SearchField-q2Fj0L9K.js → SearchField-zY9JqR1c.js} +29 -26
- package/dist/{Slider-B8icnyOo.js → Slider-BXc72kE0.js} +55 -44
- package/dist/{Text-D4y19vs8.js → Text-i-ZK4MiL.js} +1 -1
- package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-CsM0VnV1.js} +2 -2
- package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
- package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.js} +1 -1
- package/dist/assets/style-admin.css +1 -1
- package/dist/assets/style-editor.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/{button-XSk_8UW7.js → button-C7mc6eS1.js} +15 -12
- package/dist/{checkbox-BYaS9tQ5.js → checkbox-DlG5DILl.js} +8 -8
- package/dist/{color-swatch-6ZEIXej3.js → color-swatch-D6xMLGU-.js} +14 -15
- package/dist/components/animated-visibility/animated-visibility.js +5 -3
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/base-control/container.d.ts +4 -30
- package/dist/components/base-control/container.js +5 -32
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-pickers/color-picker.js +7 -7
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +1 -1
- package/dist/components/component-toggle/component-toggle.js +3 -3
- package/dist/components/container-panel/container-panel.js +11 -11
- package/dist/components/contextual-help/contextual-help.js +2 -2
- package/dist/components/draggable/draggable.d.ts +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.d.ts +3 -3
- package/dist/components/draggable-list/draggable-list.js +8 -8
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.js +16 -16
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.d.ts +3 -28
- package/dist/components/item-collection/item-collection.js +6 -6
- package/dist/components/link-input/link-input.d.ts +0 -2
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +4 -3
- package/dist/components/menu/menu.js +10 -7
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notice/notice.js +8 -8
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.d.ts +1 -1
- package/dist/components/option-select/option-select.js +21 -15
- package/dist/components/options-panel/options-panel.js +4 -4
- package/dist/components/placeholders/file-picker-shell.js +4 -3
- package/dist/components/placeholders/file-placeholder.js +2 -1
- package/dist/components/popover/popover.js +3 -3
- package/dist/components/portal-provider/portal-provider.js +2 -1
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater-context.d.ts +0 -1
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.d.ts +5 -38
- package/dist/components/repeater/repeater.js +7 -10
- package/dist/components/responsive/mini-responsive.d.ts +0 -1
- package/dist/components/responsive/mini-responsive.js +30 -30
- package/dist/components/responsive/responsive-legacy.d.ts +0 -1
- package/dist/components/responsive/responsive-legacy.js +12 -10
- package/dist/components/responsive/responsive.d.ts +0 -1
- package/dist/components/responsive/responsive.js +28 -28
- package/dist/components/responsive-preview/responsive-preview.js +3 -3
- package/dist/components/select/async-multi-select.d.ts +12 -13
- package/dist/components/select/async-multi-select.js +39 -20
- package/dist/components/select/async-select.d.ts +12 -13
- package/dist/components/select/async-select.js +38 -20
- package/dist/components/select/multi-select.d.ts +2 -8
- package/dist/components/select/multi-select.js +19 -19
- package/dist/components/select/shared.d.ts +5 -9
- package/dist/components/select/shared.js +2 -2
- package/dist/components/select/single-select.d.ts +2 -8
- package/dist/components/select/single-select.js +16 -16
- package/dist/components/slider/column-config-slider.js +7 -5
- package/dist/components/slider/slider.js +15 -11
- package/dist/components/smart-image/smart-image.d.ts +0 -1
- package/dist/components/smart-image/smart-image.js +52 -50
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-9MfdTVWP.js → draggable-BUfOpGSZ.js} +129 -124
- package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
- package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-_q3XF10i.js} +38 -29
- package/dist/icons/block-icon.js +1 -1
- package/dist/icons/icon.d.ts +3 -3
- package/dist/icons/icon.js +21 -9
- package/dist/icons/icons.d.ts +210 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/jsx-svg.d.ts +5 -4
- package/dist/icons/jsx-svg.js +1 -1
- package/dist/index.js +16 -16
- package/dist/{input-field-nN6BO0oz.js → input-field-QzBpjm-m.js} +8 -8
- package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
- package/dist/{keyboard-g5Amam-c.js → keyboard-BxnnQA2Z.js} +1 -1
- package/dist/{link-input-BhlPElU8.js → link-input-CElQp3lP.js} +145 -87
- package/dist/{modal-B5axB0Fc.js → modal-BeacK9N_.js} +14 -13
- package/dist/{number-picker-nnOf0XnN.js → number-picker-CK_OHBXw.js} +9 -9
- package/dist/{react-y40Dt3ab.js → react-C6Y6cCOx.js} +194 -215
- package/dist/{shared-Ba_bt4s9.js → shared-DBCipn_m.js} +59 -43
- package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-2-X3ridX.js} +58 -53
- package/dist/{switch-BJ4_OyUm.js → switch-B87lQ1V0.js} +6 -6
- package/dist/{tabs-wAe0AAyu.js → tabs-DgkJUkIX.js} +33 -28
- package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
- package/dist/{textSelection-B_Nv6Jz3.js → textSelection-5Qk8tLtm.js} +3 -3
- package/dist/{toggle-button-BLJdEp8V.js → toggle-button-B2-f2rU6.js} +8 -7
- package/dist/{tooltip-BW9nj5-V.js → tooltip-AzOLps8g.js} +68 -62
- package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
- package/dist/{useButton-CPMVLXoX.js → useButton-BIrfoiY8.js} +3 -3
- package/dist/{useCollection-PzY6FI39.js → useCollection-LQlZnc1u.js} +267 -180
- package/dist/{useEvent-CzuFZ2HT.js → useEvent-Bih8lvtM.js} +1 -1
- package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
- package/dist/{useFilter-CiCjo6Na.js → useFilter-BFaOw4yi.js} +1 -1
- package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-ZXFsftJJ.js} +1 -1
- package/dist/{useFormReset-U6c35PHq.js → useFormReset-DDJhIIfG.js} +1 -1
- package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-BfnJKcdX.js} +2 -2
- package/dist/{useHover-CNsbAR0V.js → useHover-CbyH227W.js} +216 -39
- package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
- package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
- package/dist/{useListState-FLxa7R_U.js → useListState-I22DfnmE.js} +4 -2
- package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
- package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-C1gD0RuW.js} +79 -62
- package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
- package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-Cpc_IbQf.js} +12 -9
- package/dist/{usePress-DRoujMNm.js → usePress-BF7otjax.js} +30 -19
- package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
- package/dist/{useTextField-e8jIFT3s.js → useTextField-CnTuCBMs.js} +6 -6
- package/dist/{useToggle-CR_ZKvr_.js → useToggle-Cgv5UXaB.js} +6 -6
- package/dist/{useToggleState-ButQxGrJ.js → useToggleState-Cy1E36QZ.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +1 -1
- package/dist/utilities/array-helpers.js +4 -3
- package/dist/utilities/debounce-throttle.d.ts +9 -2
- package/dist/utilities/es-dash.d.ts +11 -8
- package/dist/utilities/es-dash.js +1 -1
- package/dist/utilities/index.js +2 -2
- package/dist/utilities/text-helpers.js +1 -1
- package/dist/utilities/web-workers.d.ts +7 -7
- package/dist/utilities/web-workers.js +5 -5
- package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
- package/package.json +21 -25
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { a as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, f as $390e54f620492c70$export$b4cc09c592e8fdb8, g as $a4e76a5424781910$export$e08e3b67e392101e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-
|
|
2
|
-
import { n as $bb39c0fc1c19b34c$export$c57958e35f31ed73 } from "./keyboard-
|
|
3
|
-
import { B as $23f2114a1b82827e$export$b4f377a2b6254582, G as $d447af545b77c9f1$export$
|
|
4
|
-
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df, r as $4b38b5b75ecc6208$export$b0d3ecf7112093a7 } from "./Autocomplete-
|
|
5
|
-
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-
|
|
6
|
-
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-
|
|
7
|
-
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-
|
|
8
|
-
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
9
|
-
import { C as $6f0c29017aeec335$export$fd11f34e1d07f134, S as $6f0c29017aeec335$export$d68d59712b04d9d1, _ as $42ceafc619f9c3ba$export$e953bb1cd0f19726, a as $f6ba6936bfd098a0$export$ecf600387e221c37, b as $6f0c29017aeec335$export$5ae2504e948afce5, d as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, f as $263ab7fc0f95ccdb$export$90e00781bc59d8f9, g as $42ceafc619f9c3ba$export$bf788dd355e3a401, h as $42ceafc619f9c3ba$export$18af5c7a9e9b3664, i as $cd5ea4b915021f1d$export$1005530eda016c13, l as $22bbea12c2567021$export$c3d8340acf92597f, m as $263ab7fc0f95ccdb$export$d40e14dec8b060a8, n as $4a07ac835f260f78$export$6c8a5aaad13c9852, o as $7b01448eaad0fe7c$export$c24ed0104d07eab9, r as $60f19cefd567a3e4$export$253fe78d46329472, s as $d667c2af82d35a98$export$d6daf82dcd84e87c, t as $d03379b88399b8c5$export$6cd28814d92fa9c9, u as $901761b40e390936$export$2bb74740c4e19def, v as $42ceafc619f9c3ba$export$fb8073518f34e6ec, y as $6f0c29017aeec335$export$437f11dc9b403b78 } from "./useCollection-
|
|
1
|
+
import { a as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, f as $390e54f620492c70$export$b4cc09c592e8fdb8, g as $a4e76a5424781910$export$e08e3b67e392101e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
+
import { n as $bb39c0fc1c19b34c$export$c57958e35f31ed73 } from "./keyboard-BxnnQA2Z.js";
|
|
3
|
+
import { B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, G as $d447af545b77c9f1$export$af51f0f06c0f328a, K as $d447af545b77c9f1$export$b204af158042fbac, O as $2add3ce32c6007eb$export$9ac100e40613ea10, R as $1969ac565cfec8d0$export$de79e2c695e052f3, S as $caaf0dd3060ed57c$export$9a302a45f65d0572, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, W as $6a20a7989e6c817a$export$98658e8c59125e6a, _ as $8f5a2122b0992be3$export$b9b3dfddab17db27, a as $d1116acdf220c2da$export$f9762fab77588ecb, b as $caaf0dd3060ed57c$export$7e924b3091a3bd18, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, g as $8f5a2122b0992be3$export$98e20ec92f614cfe, i as $d1116acdf220c2da$export$4c014de7c8940b4c, j as $2add3ce32c6007eb$export$fedb369cb70207f1, l as $f192c2f16961cbe0$export$80f3e147d781571c, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a, o as $b7115c395c64f7b5$export$4debdb1a3f0fa79e, p as $8f5a2122b0992be3$export$630ff653c5ada6a9, q as $d447af545b77c9f1$export$f21a1ffae260145a, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, t as $e969f22b6713ca4a$export$ae780daf29e6d456, y as $caaf0dd3060ed57c$export$13aea1a3cb5e3f1f, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CbyH227W.js";
|
|
4
|
+
import { n as $4b38b5b75ecc6208$export$698f465ec27e93df, r as $4b38b5b75ecc6208$export$b0d3ecf7112093a7 } from "./Autocomplete-CO9aIsTe.js";
|
|
5
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-Bih8lvtM.js";
|
|
6
|
+
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-Dcg-cEyM.js";
|
|
7
|
+
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
8
|
+
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
|
|
9
|
+
import { C as $6f0c29017aeec335$export$fd11f34e1d07f134, S as $6f0c29017aeec335$export$d68d59712b04d9d1, _ as $42ceafc619f9c3ba$export$e953bb1cd0f19726, a as $f6ba6936bfd098a0$export$ecf600387e221c37, b as $6f0c29017aeec335$export$5ae2504e948afce5, d as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, f as $263ab7fc0f95ccdb$export$90e00781bc59d8f9, g as $42ceafc619f9c3ba$export$bf788dd355e3a401, h as $42ceafc619f9c3ba$export$18af5c7a9e9b3664, i as $cd5ea4b915021f1d$export$1005530eda016c13, l as $22bbea12c2567021$export$c3d8340acf92597f, m as $263ab7fc0f95ccdb$export$d40e14dec8b060a8, n as $4a07ac835f260f78$export$6c8a5aaad13c9852, o as $7b01448eaad0fe7c$export$c24ed0104d07eab9, r as $60f19cefd567a3e4$export$253fe78d46329472, s as $d667c2af82d35a98$export$d6daf82dcd84e87c, t as $d03379b88399b8c5$export$6cd28814d92fa9c9, u as $901761b40e390936$export$2bb74740c4e19def, v as $42ceafc619f9c3ba$export$fb8073518f34e6ec, y as $6f0c29017aeec335$export$437f11dc9b403b78 } from "./useCollection-LQlZnc1u.js";
|
|
10
10
|
import { r as $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 } from "./Hidden-C4Saxkx9.js";
|
|
11
11
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
12
|
-
import { n as $24f9a20f226ad820$export$5165eccb35aaadb5, r as $2b2d34ff061957fb$export$2b85b721e524d74b, t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-
|
|
13
|
-
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-
|
|
14
|
-
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
15
|
-
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-
|
|
16
|
-
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
17
|
-
import { t as $ea3928288112382f$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
12
|
+
import { n as $24f9a20f226ad820$export$5165eccb35aaadb5, r as $2b2d34ff061957fb$export$2b85b721e524d74b, t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-BF7otjax.js";
|
|
13
|
+
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-ZXFsftJJ.js";
|
|
14
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DO3oQfCq.js";
|
|
15
|
+
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-BQje2nS2.js";
|
|
16
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-i-ZK4MiL.js";
|
|
17
|
+
import { t as $ea3928288112382f$export$439d29a4e110a164 } from "./VisuallyHidden-CsM0VnV1.js";
|
|
18
18
|
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-D1LPCrSc.js";
|
|
19
19
|
import { t as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-CyOcB5ps.js";
|
|
20
|
-
import { a as $654b97e09f2a30c1$export$4d0f8be8b12a7ef6, n as $535772f9d2c1f38d$export$20e40289641fbbb6, t as $535772f9d2c1f38d$export$1258395f99bf9cbf } from "./FocusScope-
|
|
21
|
-
import { a as $4fcfe18fac72dabd$export$2de4954e8ae13b9f, i as $22e2f5f6490788e8$export$f6211563215e3b37, n as $b3526bc71400be8d$export$d39e1813b3bdd0e1, r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-
|
|
20
|
+
import { a as $654b97e09f2a30c1$export$4d0f8be8b12a7ef6, n as $535772f9d2c1f38d$export$20e40289641fbbb6, t as $535772f9d2c1f38d$export$1258395f99bf9cbf } from "./FocusScope-Cj6cUR6X.js";
|
|
21
|
+
import { a as $4fcfe18fac72dabd$export$2de4954e8ae13b9f, i as $22e2f5f6490788e8$export$f6211563215e3b37, n as $b3526bc71400be8d$export$d39e1813b3bdd0e1, r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-Cpc_IbQf.js";
|
|
22
22
|
import { n as $72abaeab4d80592f$export$9fc1347d4195ccb3 } from "./PortalProvider-Dbcc7pHq.js";
|
|
23
|
-
import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-
|
|
23
|
+
import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-COc9P6ap.js";
|
|
24
24
|
import $3ARPR$react, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
25
25
|
import $3wX5A$reactdom from "react-dom";
|
|
26
26
|
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
|
|
@@ -234,9 +234,10 @@ var $ae8f8d98b2b18f2f$export$a05409b8bb224a5a = class {
|
|
|
234
234
|
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
235
235
|
return this.findNextNonDisabled(key, (key) => this.layoutDelegate[layoutDelegateMethod](key), options?.includeDisabled);
|
|
236
236
|
}
|
|
237
|
-
if (this.layout === "grid")
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
if (this.layout === "grid") {
|
|
238
|
+
if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "rtl", options);
|
|
239
|
+
else return this.findKey(key, (key) => this.getNextColumn(key, this.direction === "rtl", options), this.isSameColumn);
|
|
240
|
+
} else if (this.orientation === "horizontal") return this.getNextColumn(key, this.direction === "rtl", options);
|
|
240
241
|
return null;
|
|
241
242
|
}
|
|
242
243
|
getKeyLeftOf(key, options) {
|
|
@@ -245,9 +246,10 @@ var $ae8f8d98b2b18f2f$export$a05409b8bb224a5a = class {
|
|
|
245
246
|
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
246
247
|
return this.findNextNonDisabled(key, (key) => this.layoutDelegate[layoutDelegateMethod](key), options?.includeDisabled);
|
|
247
248
|
}
|
|
248
|
-
if (this.layout === "grid")
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
if (this.layout === "grid") {
|
|
250
|
+
if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "ltr", options);
|
|
251
|
+
else return this.findKey(key, (key) => this.getNextColumn(key, this.direction === "ltr", options), this.isSameColumn);
|
|
252
|
+
} else if (this.orientation === "horizontal") return this.getNextColumn(key, this.direction === "ltr", options);
|
|
251
253
|
return null;
|
|
252
254
|
}
|
|
253
255
|
getFirstKey() {
|
|
@@ -405,12 +407,14 @@ function $58196c8d6a1f38fc$export$1c3ebcada18427bf(targets, options) {
|
|
|
405
407
|
}
|
|
406
408
|
};
|
|
407
409
|
let shadowRootsToWatch = new Set();
|
|
408
|
-
if ($6a20a7989e6c817a$export$98658e8c59125e6a())
|
|
409
|
-
let
|
|
410
|
-
|
|
411
|
-
let
|
|
412
|
-
|
|
413
|
-
|
|
410
|
+
if ($6a20a7989e6c817a$export$98658e8c59125e6a()) {
|
|
411
|
+
let boundary = root.getRootNode();
|
|
412
|
+
for (let target of targets) {
|
|
413
|
+
let current = target.getRootNode();
|
|
414
|
+
while ($d447af545b77c9f1$export$af51f0f06c0f328a(current) && current !== boundary) {
|
|
415
|
+
shadowRootsToWatch.add(current);
|
|
416
|
+
current = current.host.getRootNode();
|
|
417
|
+
}
|
|
414
418
|
}
|
|
415
419
|
}
|
|
416
420
|
let walk = (root) => {
|
|
@@ -622,13 +626,13 @@ function $77844860df94ba23$export$ea8f71083e90600f(props, ref) {
|
|
|
622
626
|
}
|
|
623
627
|
lastVisibleOverlay.current = void 0;
|
|
624
628
|
};
|
|
625
|
-
let
|
|
626
|
-
if (
|
|
627
|
-
e.stopPropagation();
|
|
628
|
-
e.preventDefault();
|
|
629
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({ shortcuts: { Escape: () => {
|
|
630
|
+
if (!isKeyboardDismissDisabled) {
|
|
629
631
|
onHide();
|
|
632
|
+
return;
|
|
630
633
|
}
|
|
631
|
-
|
|
634
|
+
return false;
|
|
635
|
+
} } });
|
|
632
636
|
$e260d131964da0f9$export$872b660ac5a1ff98({
|
|
633
637
|
ref,
|
|
634
638
|
onInteractOutside: isDismissable && isOpen ? onInteractOutside : void 0,
|
|
@@ -643,7 +647,7 @@ function $77844860df94ba23$export$ea8f71083e90600f(props, ref) {
|
|
|
643
647
|
});
|
|
644
648
|
return {
|
|
645
649
|
overlayProps: {
|
|
646
|
-
|
|
650
|
+
...keyboardProps,
|
|
647
651
|
...focusWithinProps
|
|
648
652
|
},
|
|
649
653
|
underlayProps: {}
|
|
@@ -659,8 +663,10 @@ function $0644e3663365bfe5$export$ee0f7cc6afcd1c18(options = {}) {
|
|
|
659
663
|
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
660
664
|
if (isDisabled) return;
|
|
661
665
|
$0644e3663365bfe5$var$preventScrollCount++;
|
|
662
|
-
if ($0644e3663365bfe5$var$preventScrollCount === 1)
|
|
663
|
-
|
|
666
|
+
if ($0644e3663365bfe5$var$preventScrollCount === 1) {
|
|
667
|
+
if ($2add3ce32c6007eb$export$fedb369cb70207f1() && $2add3ce32c6007eb$export$78551043582a6a98()) $0644e3663365bfe5$var$restore = $0644e3663365bfe5$var$preventScrollMobileWebKit();
|
|
668
|
+
else $0644e3663365bfe5$var$restore = $0644e3663365bfe5$var$preventScrollStandard();
|
|
669
|
+
}
|
|
664
670
|
return () => {
|
|
665
671
|
$0644e3663365bfe5$var$preventScrollCount--;
|
|
666
672
|
if ($0644e3663365bfe5$var$preventScrollCount === 0) $0644e3663365bfe5$var$restore();
|
|
@@ -671,7 +677,7 @@ function $0644e3663365bfe5$var$preventScrollStandard() {
|
|
|
671
677
|
let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
672
678
|
return $a4e76a5424781910$export$e08e3b67e392101e(scrollbarWidth > 0 && ("scrollbarGutter" in document.documentElement.style ? $0644e3663365bfe5$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $0644e3663365bfe5$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $0644e3663365bfe5$var$setStyle(document.documentElement, "overflow", "hidden"));
|
|
673
679
|
}
|
|
674
|
-
function $0644e3663365bfe5$var$
|
|
680
|
+
function $0644e3663365bfe5$var$preventScrollMobileWebKit() {
|
|
675
681
|
let restoreOverflow = $0644e3663365bfe5$var$setStyle(document.documentElement, "overflow", "hidden");
|
|
676
682
|
let scrollable;
|
|
677
683
|
let allowTouchMove = false;
|
|
@@ -790,20 +796,24 @@ function $f8a024fbad3a5a2e$export$542a6fd13ac93354(props, state) {
|
|
|
790
796
|
targetRef: triggerRef,
|
|
791
797
|
overlayRef: popoverRef,
|
|
792
798
|
isOpen: state.isOpen,
|
|
793
|
-
onClose: isNonModal && !isSubmenu ? state.close : null
|
|
799
|
+
onClose: isNonModal && !isSubmenu ? state.close : null,
|
|
800
|
+
getTargetRect: otherProps.getTargetRect ?? (state.point ? () => new DOMRect(state.point.x, state.point.y, 0, 0) : void 0)
|
|
794
801
|
});
|
|
795
802
|
$0644e3663365bfe5$export$ee0f7cc6afcd1c18({ isDisabled: isNonModal || !state.isOpen });
|
|
796
803
|
useEffect(() => {
|
|
797
|
-
if (state.isOpen && popoverRef.current)
|
|
798
|
-
|
|
804
|
+
if (state.isOpen && popoverRef.current) {
|
|
805
|
+
if (isNonModal) return $58196c8d6a1f38fc$export$1020fa7f77e17884(groupRef?.current ?? popoverRef.current);
|
|
806
|
+
else return $58196c8d6a1f38fc$export$1c3ebcada18427bf([groupRef?.current ?? popoverRef.current], { shouldUseInert: true });
|
|
807
|
+
}
|
|
799
808
|
}, [
|
|
800
809
|
isNonModal,
|
|
801
810
|
state.isOpen,
|
|
802
811
|
popoverRef,
|
|
803
812
|
groupRef
|
|
804
813
|
]);
|
|
814
|
+
let { focusWithinProps } = $2c9edc598a03d523$export$420e68273165f4ec(props);
|
|
805
815
|
return {
|
|
806
|
-
popoverProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(overlayProps, positionProps),
|
|
816
|
+
popoverProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(overlayProps, positionProps, focusWithinProps),
|
|
807
817
|
arrowProps,
|
|
808
818
|
underlayProps,
|
|
809
819
|
placement,
|
|
@@ -992,7 +1002,8 @@ function $parcel$interopDefault$1(a) {
|
|
|
992
1002
|
}
|
|
993
1003
|
function $081058010ef8962e$export$2317d149ed6f78c4(props) {
|
|
994
1004
|
let { onDismiss, ...otherProps } = props;
|
|
995
|
-
let
|
|
1005
|
+
let stringFormatter = $cf2482eff2eeeec2$export$f12b703ca79dfbb1($parcel$interopDefault$1($8ad4f9eb0c0f6434$exports), "@react-aria/overlays");
|
|
1006
|
+
let labels = $e8ac3c3f5d4bae7f$export$d6875122194c7b44(otherProps, stringFormatter.format("dismiss"));
|
|
996
1007
|
let onClick = () => {
|
|
997
1008
|
if (onDismiss) onDismiss();
|
|
998
1009
|
};
|
|
@@ -1051,7 +1062,7 @@ function $d7a937236970dc7f$export$c6fdb837b070b4ff(props) {
|
|
|
1051
1062
|
restoreFocus: true,
|
|
1052
1063
|
contain: (props.shouldContainFocus || contain) && !isExiting
|
|
1053
1064
|
}, contents);
|
|
1054
|
-
contents = $3ARPR$react.createElement($d7a937236970dc7f$export$a2200b96afd16271.Provider, { value: contextValue }, $3ARPR$react.createElement($0d47b37c475c5231$export$cf75428e0b9ed1ea, null, contents));
|
|
1065
|
+
contents = $3ARPR$react.createElement($d7a937236970dc7f$export$a2200b96afd16271.Provider, { value: contextValue }, $3ARPR$react.createElement($0d47b37c475c5231$export$cf75428e0b9ed1ea, null, $3ARPR$react.createElement($d1116acdf220c2da$export$f9762fab77588ecb.Provider, { value: null }, contents)));
|
|
1055
1066
|
return $3wX5A$reactdom.createPortal(contents, portalContainer);
|
|
1056
1067
|
}
|
|
1057
1068
|
function $d7a937236970dc7f$export$14c98a7594375490() {
|
|
@@ -1069,7 +1080,8 @@ var $542a13ca2fa5b484$export$5b6b19405a83ff9d = forwardRef(function Popover(prop
|
|
|
1069
1080
|
let contextState = useContext($f2ff30fde7b014be$export$d2f961adcb0afbe);
|
|
1070
1081
|
let localState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
1071
1082
|
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
1072
|
-
let
|
|
1083
|
+
let exitAnimation = $fcc7165e876206c6$export$45fda7c47f93fd48(ref, state.isOpen);
|
|
1084
|
+
let isExiting = props.isExiting || !props.shouldSkipAnimation && exitAnimation || false;
|
|
1073
1085
|
let isHidden = $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59();
|
|
1074
1086
|
let { direction } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
1075
1087
|
if (isHidden) {
|
|
@@ -1105,7 +1117,8 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1105
1117
|
groupRef: isSubPopover ? groupCtx : containerRef
|
|
1106
1118
|
}, state);
|
|
1107
1119
|
let ref = props.popoverRef;
|
|
1108
|
-
let
|
|
1120
|
+
let enterAnimation = $fcc7165e876206c6$export$6d3443f2c48bfc20(ref, !!placement);
|
|
1121
|
+
let isEntering = props.isEntering || !props.shouldSkipAnimation && enterAnimation || false;
|
|
1109
1122
|
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
1110
1123
|
...props,
|
|
1111
1124
|
defaultClassName: "react-aria-Popover",
|
|
@@ -1116,13 +1129,13 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1116
1129
|
isExiting
|
|
1117
1130
|
}
|
|
1118
1131
|
});
|
|
1119
|
-
let shouldBeDialog = !props.isNonModal || props.trigger === "SubmenuTrigger";
|
|
1120
|
-
let [isDialog, setDialog] = useState(
|
|
1132
|
+
let shouldBeDialog = !props.isNonModal || props.trigger === "SubmenuTrigger" || props.trigger === "PreviewTrigger";
|
|
1133
|
+
let [isDialog, setDialog] = useState(props.trigger === "PreviewTrigger");
|
|
1121
1134
|
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
1122
1135
|
if (ref.current) setDialog(shouldBeDialog && !ref.current.querySelector("[role=dialog]"));
|
|
1123
1136
|
}, [ref, shouldBeDialog]);
|
|
1124
1137
|
useEffect(() => {
|
|
1125
|
-
if (isDialog && (props.trigger !== "SubmenuTrigger" || $8f5a2122b0992be3$export$630ff653c5ada6a9() !== "pointer") && ref.current && !$23f2114a1b82827e$export$b4f377a2b6254582(ref.current)) $f192c2f16961cbe0$export$80f3e147d781571c(ref.current);
|
|
1138
|
+
if (isDialog && props.trigger !== "PreviewTrigger" && (props.trigger !== "SubmenuTrigger" || $8f5a2122b0992be3$export$630ff653c5ada6a9() !== "pointer") && ref.current && !$23f2114a1b82827e$export$b4f377a2b6254582(ref.current)) $f192c2f16961cbe0$export$80f3e147d781571c(ref.current);
|
|
1126
1139
|
}, [
|
|
1127
1140
|
isDialog,
|
|
1128
1141
|
ref,
|
|
@@ -1151,6 +1164,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1151
1164
|
let overlay = $3ARPR$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
1152
1165
|
...$bbaa08b3cd72f041$export$9d1611c77c2fe928($8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { global: true }), popoverProps),
|
|
1153
1166
|
...renderProps,
|
|
1167
|
+
id: isDialog ? props.id : void 0,
|
|
1154
1168
|
role: isDialog ? "dialog" : void 0,
|
|
1155
1169
|
tabIndex: isDialog ? -1 : void 0,
|
|
1156
1170
|
"aria-label": props["aria-label"],
|
|
@@ -1170,7 +1184,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1170
1184
|
} }, children), $3ARPR$react.createElement($081058010ef8962e$export$2317d149ed6f78c4, { onDismiss: state.close }));
|
|
1171
1185
|
if (!isSubPopover) return $3ARPR$react.createElement($d7a937236970dc7f$export$c6fdb837b070b4ff, {
|
|
1172
1186
|
...props,
|
|
1173
|
-
shouldContainFocus: isDialog,
|
|
1187
|
+
shouldContainFocus: isDialog && props.trigger !== "PreviewTrigger",
|
|
1174
1188
|
isExiting,
|
|
1175
1189
|
portalContainer: UNSTABLE_portalContainer
|
|
1176
1190
|
}, !props.isNonModal && state.isOpen && $3ARPR$react.createElement("div", {
|
|
@@ -1186,7 +1200,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
1186
1200
|
}, $3ARPR$react.createElement($542a13ca2fa5b484$var$PopoverGroupContext.Provider, { value: containerRef }, overlay)));
|
|
1187
1201
|
return $3ARPR$react.createElement($d7a937236970dc7f$export$c6fdb837b070b4ff, {
|
|
1188
1202
|
...props,
|
|
1189
|
-
shouldContainFocus: isDialog,
|
|
1203
|
+
shouldContainFocus: isDialog && props.trigger !== "PreviewTrigger",
|
|
1190
1204
|
isExiting,
|
|
1191
1205
|
portalContainer: UNSTABLE_portalContainer ?? groupCtx?.current ?? void 0
|
|
1192
1206
|
}, overlay);
|
|
@@ -1370,6 +1384,58 @@ $bdff4dd8fb5956de$exports = {
|
|
|
1370
1384
|
"zh-TW": $a146d231f9c4bbf9$exports
|
|
1371
1385
|
};
|
|
1372
1386
|
//#endregion
|
|
1387
|
+
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
|
|
1388
|
+
function $00dce70c89c7306c$export$2464060fb1e12fa6(props) {
|
|
1389
|
+
let { onContextMenu } = props;
|
|
1390
|
+
let firedContextMenuEvent = useRef(false);
|
|
1391
|
+
let { longPressProps } = $7b01448eaad0fe7c$export$c24ed0104d07eab9({
|
|
1392
|
+
onLongPressStart() {
|
|
1393
|
+
firedContextMenuEvent.current = false;
|
|
1394
|
+
},
|
|
1395
|
+
onLongPress(e) {
|
|
1396
|
+
if (!firedContextMenuEvent.current) onContextMenu?.({
|
|
1397
|
+
target: e.target,
|
|
1398
|
+
x: e.x,
|
|
1399
|
+
y: e.y
|
|
1400
|
+
});
|
|
1401
|
+
else firedContextMenuEvent.current = false;
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
if (!onContextMenu) return { contextMenuProps: {} };
|
|
1405
|
+
return { contextMenuProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928($2add3ce32c6007eb$export$fedb369cb70207f1() ? longPressProps : {}, {
|
|
1406
|
+
onContextMenu(e) {
|
|
1407
|
+
e.stopPropagation();
|
|
1408
|
+
e.preventDefault();
|
|
1409
|
+
firedContextMenuEvent.current = true;
|
|
1410
|
+
let rect = e.currentTarget.getBoundingClientRect();
|
|
1411
|
+
onContextMenu({
|
|
1412
|
+
target: e.currentTarget,
|
|
1413
|
+
x: e.clientX - rect.x,
|
|
1414
|
+
y: e.clientY - rect.y
|
|
1415
|
+
});
|
|
1416
|
+
},
|
|
1417
|
+
onKeyDown(e) {
|
|
1418
|
+
if ($2add3ce32c6007eb$export$9ac100e40613ea10()) {
|
|
1419
|
+
if (e.ctrlKey && e.key === "Enter") {
|
|
1420
|
+
firedContextMenuEvent.current = false;
|
|
1421
|
+
let target = e.currentTarget;
|
|
1422
|
+
e.stopPropagation();
|
|
1423
|
+
setTimeout(() => {
|
|
1424
|
+
if (!firedContextMenuEvent.current) {
|
|
1425
|
+
let rect = target.getBoundingClientRect();
|
|
1426
|
+
onContextMenu({
|
|
1427
|
+
target,
|
|
1428
|
+
x: rect.width / 2,
|
|
1429
|
+
y: rect.height / 2
|
|
1430
|
+
});
|
|
1431
|
+
} else firedContextMenuEvent.current = false;
|
|
1432
|
+
}, 10);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}) };
|
|
1437
|
+
}
|
|
1438
|
+
//#endregion
|
|
1373
1439
|
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
|
|
1374
1440
|
function $f282e36c29c025e8$export$f9d5c8beee7d008d(props, state, ref) {
|
|
1375
1441
|
let { type } = props;
|
|
@@ -1400,25 +1466,39 @@ function $f19b83c1486f45cc$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
|
1400
1466
|
let { type = "menu", isDisabled, trigger = "press" } = props;
|
|
1401
1467
|
let menuTriggerId = $390e54f620492c70$export$f680877a34711e37();
|
|
1402
1468
|
let { triggerProps, overlayProps } = $f282e36c29c025e8$export$f9d5c8beee7d008d({ type }, state, ref);
|
|
1403
|
-
let
|
|
1404
|
-
if (
|
|
1405
|
-
|
|
1406
|
-
if (ref && ref.current) switch (e.key) {
|
|
1407
|
-
case "Enter":
|
|
1408
|
-
case " ": if (trigger === "longPress" || e.isDefaultPrevented()) return;
|
|
1409
|
-
case "ArrowDown":
|
|
1410
|
-
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
1411
|
-
e.preventDefault();
|
|
1412
|
-
state.toggle("first");
|
|
1413
|
-
break;
|
|
1414
|
-
case "ArrowUp":
|
|
1415
|
-
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
1416
|
-
e.preventDefault();
|
|
1417
|
-
state.toggle("last");
|
|
1418
|
-
break;
|
|
1419
|
-
default: if ("continuePropagation" in e) e.continuePropagation();
|
|
1420
|
-
}
|
|
1469
|
+
let open = (shouldOpen, e, focusStrategy = "first") => {
|
|
1470
|
+
if (!shouldOpen || e.isDefaultPrevented()) return false;
|
|
1471
|
+
state.toggle(focusStrategy);
|
|
1421
1472
|
};
|
|
1473
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
|
|
1474
|
+
isDisabled,
|
|
1475
|
+
shortcuts: {
|
|
1476
|
+
Enter: (e) => {
|
|
1477
|
+
return open(trigger !== "longPress", e, "first");
|
|
1478
|
+
},
|
|
1479
|
+
" ": (e) => {
|
|
1480
|
+
return open(trigger !== "longPress", e, "first");
|
|
1481
|
+
},
|
|
1482
|
+
ArrowDown: (e) => {
|
|
1483
|
+
return open(trigger !== "longPress", e, "first");
|
|
1484
|
+
},
|
|
1485
|
+
ArrowUp: (e) => {
|
|
1486
|
+
return open(trigger !== "longPress", e, "last");
|
|
1487
|
+
},
|
|
1488
|
+
"Alt+Enter": (e) => {
|
|
1489
|
+
return open(trigger === "longPress", e, "first");
|
|
1490
|
+
},
|
|
1491
|
+
"Alt+ ": (e) => {
|
|
1492
|
+
return open(trigger === "longPress", e, "first");
|
|
1493
|
+
},
|
|
1494
|
+
"Alt+ArrowDown": (e) => {
|
|
1495
|
+
return open(true, e, "first");
|
|
1496
|
+
},
|
|
1497
|
+
"Alt+ArrowUp": (e) => {
|
|
1498
|
+
return open(true, e, "last");
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
});
|
|
1422
1502
|
let stringFormatter = $cf2482eff2eeeec2$export$f12b703ca79dfbb1($parcel$interopDefault($bdff4dd8fb5956de$exports), "@react-aria/menu");
|
|
1423
1503
|
let { longPressProps } = $7b01448eaad0fe7c$export$c24ed0104d07eab9({
|
|
1424
1504
|
isDisabled: isDisabled || trigger !== "longPress",
|
|
@@ -1446,12 +1526,42 @@ function $f19b83c1486f45cc$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
|
1446
1526
|
}
|
|
1447
1527
|
};
|
|
1448
1528
|
delete triggerProps.onPress;
|
|
1529
|
+
let { contextMenuProps } = $00dce70c89c7306c$export$2464060fb1e12fa6({ onContextMenu(e) {
|
|
1530
|
+
let rect = e.target.getBoundingClientRect();
|
|
1531
|
+
state.setPoint({
|
|
1532
|
+
x: rect.x + e.x,
|
|
1533
|
+
y: rect.y + e.y
|
|
1534
|
+
});
|
|
1535
|
+
state.open();
|
|
1536
|
+
} });
|
|
1537
|
+
useEffect(() => {
|
|
1538
|
+
if (state.isOpen && trigger === "contextMenu") {
|
|
1539
|
+
let onContextMenu = (e) => {
|
|
1540
|
+
if ((e.button === 2 || e.button === 0 && e.ctrlKey === true) && $23f2114a1b82827e$export$e58f029f0fbfdb29(e) === document.body) state.close();
|
|
1541
|
+
};
|
|
1542
|
+
document.addEventListener("mousedown", onContextMenu);
|
|
1543
|
+
return () => document.removeEventListener("mousedown", onContextMenu);
|
|
1544
|
+
}
|
|
1545
|
+
}, [state, trigger]);
|
|
1546
|
+
let interactionProps;
|
|
1547
|
+
if (trigger === "press") interactionProps = {
|
|
1548
|
+
...pressProps,
|
|
1549
|
+
...keyboardProps
|
|
1550
|
+
};
|
|
1551
|
+
else if (trigger === "longPress") interactionProps = {
|
|
1552
|
+
...longPressProps,
|
|
1553
|
+
...keyboardProps
|
|
1554
|
+
};
|
|
1555
|
+
else if (trigger === "contextMenu") {
|
|
1556
|
+
interactionProps = contextMenuProps;
|
|
1557
|
+
let { "aria-haspopup": _a, "aria-expanded": _b, "aria-controls": _c, ...rest } = triggerProps;
|
|
1558
|
+
triggerProps = rest;
|
|
1559
|
+
}
|
|
1449
1560
|
return {
|
|
1450
1561
|
menuTriggerProps: {
|
|
1451
1562
|
...triggerProps,
|
|
1452
|
-
...
|
|
1453
|
-
id: menuTriggerId
|
|
1454
|
-
onKeyDown
|
|
1563
|
+
...interactionProps,
|
|
1564
|
+
id: menuTriggerId
|
|
1455
1565
|
},
|
|
1456
1566
|
menuProps: {
|
|
1457
1567
|
...overlayProps,
|
|
@@ -1598,34 +1708,34 @@ function $1a9c2c840fd36413$export$9d32628fc2aea7da(props, state, ref) {
|
|
|
1598
1708
|
onHoverEnd
|
|
1599
1709
|
});
|
|
1600
1710
|
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
key: "Enter"
|
|
1619
|
-
};
|
|
1620
|
-
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e).tagName !== "A") $23f2114a1b82827e$export$e58f029f0fbfdb29(e).click();
|
|
1711
|
+
shortcuts: {
|
|
1712
|
+
" ": (e) => {
|
|
1713
|
+
interaction.current = {
|
|
1714
|
+
pointerType: "keyboard",
|
|
1715
|
+
key: " "
|
|
1716
|
+
};
|
|
1717
|
+
$23f2114a1b82827e$export$e58f029f0fbfdb29(e).click();
|
|
1718
|
+
$8f5a2122b0992be3$export$8397ddfc504fdb9a("keyboard");
|
|
1719
|
+
},
|
|
1720
|
+
Enter: (e) => {
|
|
1721
|
+
interaction.current = {
|
|
1722
|
+
pointerType: "keyboard",
|
|
1723
|
+
key: "Enter"
|
|
1724
|
+
};
|
|
1725
|
+
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
1726
|
+
if (target.tagName !== "A") {
|
|
1727
|
+
target.click();
|
|
1621
1728
|
$8f5a2122b0992be3$export$8397ddfc504fdb9a("keyboard");
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1729
|
+
return;
|
|
1730
|
+
}
|
|
1731
|
+
$8f5a2122b0992be3$export$8397ddfc504fdb9a("keyboard");
|
|
1732
|
+
return {
|
|
1733
|
+
shouldPreventDefault: false,
|
|
1734
|
+
shouldContinuePropagation: false
|
|
1735
|
+
};
|
|
1627
1736
|
}
|
|
1628
1737
|
},
|
|
1738
|
+
onKeyDown,
|
|
1629
1739
|
onKeyUp
|
|
1630
1740
|
});
|
|
1631
1741
|
let { focusableProps } = $d1116acdf220c2da$export$4c014de7c8940b4c({
|
|
@@ -1812,34 +1922,35 @@ function $8794213c1141208f$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1812
1922
|
cancelOpenTimeout();
|
|
1813
1923
|
};
|
|
1814
1924
|
}, [cancelOpenTimeout]);
|
|
1815
|
-
let
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1925
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({ shortcuts: {
|
|
1926
|
+
ArrowLeft: (e) => {
|
|
1927
|
+
if (!$23f2114a1b82827e$export$b4f377a2b6254582(e.currentTarget)) return false;
|
|
1928
|
+
if (direction === "ltr" && $23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) {
|
|
1929
|
+
onSubmenuClose();
|
|
1930
|
+
if (!shouldUseVirtualFocus && ref.current) $1969ac565cfec8d0$export$de79e2c695e052f3(ref.current);
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
return false;
|
|
1934
|
+
},
|
|
1935
|
+
ArrowRight: (e) => {
|
|
1936
|
+
if (!$23f2114a1b82827e$export$b4f377a2b6254582(e.currentTarget)) return false;
|
|
1937
|
+
if (direction === "rtl" && $23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) {
|
|
1938
|
+
onSubmenuClose();
|
|
1939
|
+
if (!shouldUseVirtualFocus && ref.current) $1969ac565cfec8d0$export$de79e2c695e052f3(ref.current);
|
|
1940
|
+
return;
|
|
1941
|
+
}
|
|
1942
|
+
return false;
|
|
1943
|
+
},
|
|
1944
|
+
Escape: (e) => {
|
|
1945
|
+
if (!$23f2114a1b82827e$export$b4f377a2b6254582(e.currentTarget)) return false;
|
|
1946
|
+
if ($23f2114a1b82827e$export$4282f70798064fe0(submenuRef.current, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) {
|
|
1947
|
+
onSubmenuClose();
|
|
1948
|
+
if (!shouldUseVirtualFocus && ref.current) $1969ac565cfec8d0$export$de79e2c695e052f3(ref.current);
|
|
1949
|
+
return;
|
|
1950
|
+
}
|
|
1951
|
+
return false;
|
|
1841
1952
|
}
|
|
1842
|
-
};
|
|
1953
|
+
} });
|
|
1843
1954
|
let submenuProps = {
|
|
1844
1955
|
id: overlayId,
|
|
1845
1956
|
"aria-labelledby": submenuTriggerId,
|
|
@@ -1847,32 +1958,37 @@ function $8794213c1141208f$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1847
1958
|
...type === "menu" && {
|
|
1848
1959
|
onClose: state.closeAll,
|
|
1849
1960
|
autoFocus: state.focusStrategy ?? void 0,
|
|
1850
|
-
|
|
1961
|
+
...keyboardProps
|
|
1851
1962
|
}
|
|
1852
1963
|
};
|
|
1853
|
-
let
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
if (
|
|
1857
|
-
e.preventDefault();
|
|
1964
|
+
let { keyboardProps: submenuTriggerKeyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({ shortcuts: {
|
|
1965
|
+
ArrowRight: () => {
|
|
1966
|
+
if (!isDisabled) {
|
|
1967
|
+
if (direction === "ltr") {
|
|
1858
1968
|
if (!state.isOpen) onSubmenuOpen("first");
|
|
1859
1969
|
if (type === "menu" && !!submenuRef?.current && $23f2114a1b82827e$export$cd4e5573fbe2b576() === ref?.current) $1969ac565cfec8d0$export$de79e2c695e052f3(submenuRef.current);
|
|
1860
|
-
|
|
1861
|
-
else
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1970
|
+
return;
|
|
1971
|
+
} else if (state.isOpen) {
|
|
1972
|
+
onSubmenuClose();
|
|
1973
|
+
return;
|
|
1974
|
+
} else return false;
|
|
1975
|
+
}
|
|
1976
|
+
return false;
|
|
1977
|
+
},
|
|
1978
|
+
ArrowLeft: () => {
|
|
1979
|
+
if (!isDisabled) {
|
|
1980
|
+
if (direction === "rtl") {
|
|
1866
1981
|
if (!state.isOpen) onSubmenuOpen("first");
|
|
1867
1982
|
if (type === "menu" && !!submenuRef?.current && $23f2114a1b82827e$export$cd4e5573fbe2b576() === ref?.current) $1969ac565cfec8d0$export$de79e2c695e052f3(submenuRef.current);
|
|
1868
|
-
|
|
1869
|
-
else
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1983
|
+
return;
|
|
1984
|
+
} else if (state.isOpen) {
|
|
1985
|
+
onSubmenuClose();
|
|
1986
|
+
return;
|
|
1987
|
+
} else return false;
|
|
1988
|
+
}
|
|
1989
|
+
return false;
|
|
1874
1990
|
}
|
|
1875
|
-
};
|
|
1991
|
+
} });
|
|
1876
1992
|
let onPressStart = (e) => {
|
|
1877
1993
|
if (!isDisabled && (e.pointerType === "virtual" || e.pointerType === "keyboard")) onSubmenuOpen("first");
|
|
1878
1994
|
};
|
|
@@ -1903,6 +2019,8 @@ function $8794213c1141208f$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1903
2019
|
});
|
|
1904
2020
|
return {
|
|
1905
2021
|
submenuTriggerProps: {
|
|
2022
|
+
onKeyDown: submenuTriggerKeyboardProps.onKeyDown,
|
|
2023
|
+
onKeyUp: submenuTriggerKeyboardProps.onKeyUp,
|
|
1906
2024
|
id: submenuTriggerId,
|
|
1907
2025
|
"aria-controls": state.isOpen ? overlayId : void 0,
|
|
1908
2026
|
"aria-haspopup": !isDisabled ? type : void 0,
|
|
@@ -1910,7 +2028,6 @@ function $8794213c1141208f$export$7138b0d059a6e743(props, state, ref) {
|
|
|
1910
2028
|
onPressStart,
|
|
1911
2029
|
onPress,
|
|
1912
2030
|
onHoverChange,
|
|
1913
|
-
onKeyDown: submenuTriggerKeyDown,
|
|
1914
2031
|
isOpen: state.isOpen
|
|
1915
2032
|
},
|
|
1916
2033
|
submenuProps,
|
|
@@ -2006,7 +2123,9 @@ function $5b3242e27644e8f1$export$cfc51cf86138bf98(props, state) {
|
|
|
2006
2123
|
closeAll,
|
|
2007
2124
|
submenuLevel,
|
|
2008
2125
|
setOpen: () => {},
|
|
2009
|
-
toggle
|
|
2126
|
+
toggle,
|
|
2127
|
+
point: null,
|
|
2128
|
+
setPoint: () => {}
|
|
2010
2129
|
}), [
|
|
2011
2130
|
isOpen,
|
|
2012
2131
|
open,
|
|
@@ -2134,7 +2253,8 @@ function $49319ee1285aa241$export$27d2ad3c5815583e(props) {
|
|
|
2134
2253
|
triggerRef: ref,
|
|
2135
2254
|
scrollRef,
|
|
2136
2255
|
placement: "bottom start",
|
|
2137
|
-
"aria-labelledby": menuProps["aria-labelledby"]
|
|
2256
|
+
"aria-labelledby": menuProps["aria-labelledby"],
|
|
2257
|
+
offset: props.trigger === "contextMenu" ? 0 : void 0
|
|
2138
2258
|
}]
|
|
2139
2259
|
] }, $3ARPR$react.createElement($0d47b37c475c5231$export$3351871ee4b288b8, {
|
|
2140
2260
|
...menuTriggerProps,
|
|
@@ -2381,6 +2501,8 @@ function $13150e6629d46e45$export$d55e7ee900f34e93(props, ref) {
|
|
|
2381
2501
|
let { role = "dialog" } = props;
|
|
2382
2502
|
let titleId = $390e54f620492c70$export$b4cc09c592e8fdb8();
|
|
2383
2503
|
titleId = props["aria-label"] ? void 0 : titleId;
|
|
2504
|
+
let contentId = $390e54f620492c70$export$b4cc09c592e8fdb8();
|
|
2505
|
+
contentId = role === "alertdialog" && !props["aria-describedby"] ? contentId : void 0;
|
|
2384
2506
|
let isRefocusing = useRef(false);
|
|
2385
2507
|
useEffect(() => {
|
|
2386
2508
|
if (ref.current && !$23f2114a1b82827e$export$b4f377a2b6254582(ref.current)) {
|
|
@@ -2413,17 +2535,20 @@ function $13150e6629d46e45$export$d55e7ee900f34e93(props, ref) {
|
|
|
2413
2535
|
}
|
|
2414
2536
|
}
|
|
2415
2537
|
});
|
|
2538
|
+
let ariaDescribedby = props["aria-describedby"] ?? contentId;
|
|
2416
2539
|
return {
|
|
2417
2540
|
dialogProps: {
|
|
2418
2541
|
...$8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, { labelable: true }),
|
|
2419
2542
|
role,
|
|
2420
2543
|
tabIndex: -1,
|
|
2421
|
-
"aria-labelledby": props["aria-labelledby"]
|
|
2544
|
+
"aria-labelledby": props["aria-labelledby"] ?? titleId,
|
|
2545
|
+
"aria-describedby": ariaDescribedby,
|
|
2422
2546
|
onBlur: (e) => {
|
|
2423
2547
|
if (isRefocusing.current) e.stopPropagation();
|
|
2424
2548
|
}
|
|
2425
2549
|
},
|
|
2426
|
-
titleProps: { id: titleId }
|
|
2550
|
+
titleProps: { id: titleId },
|
|
2551
|
+
contentProps: { id: contentId }
|
|
2427
2552
|
};
|
|
2428
2553
|
}
|
|
2429
2554
|
//#endregion
|
|
@@ -2443,6 +2568,7 @@ function $f2ff30fde7b014be$export$2e1e1122cf0cba88(props) {
|
|
|
2443
2568
|
[$542a13ca2fa5b484$export$9b9a0cd73afb7ca4, {
|
|
2444
2569
|
trigger: "DialogTrigger",
|
|
2445
2570
|
triggerRef: buttonRef,
|
|
2571
|
+
id: overlayProps.id,
|
|
2446
2572
|
"aria-labelledby": overlayProps["aria-labelledby"]
|
|
2447
2573
|
}]
|
|
2448
2574
|
] }, $3ARPR$react.createElement($0d47b37c475c5231$export$3351871ee4b288b8, {
|
|
@@ -2454,7 +2580,7 @@ function $f2ff30fde7b014be$export$2e1e1122cf0cba88(props) {
|
|
|
2454
2580
|
var $f2ff30fde7b014be$export$3ddf2d174ce01153 = forwardRef(function Dialog(props, ref) {
|
|
2455
2581
|
let originalAriaLabelledby = props["aria-labelledby"];
|
|
2456
2582
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $f2ff30fde7b014be$export$8b93a07348a7730c);
|
|
2457
|
-
let { dialogProps, titleProps } = $13150e6629d46e45$export$d55e7ee900f34e93({
|
|
2583
|
+
let { dialogProps, titleProps, contentProps } = $13150e6629d46e45$export$d55e7ee900f34e93({
|
|
2458
2584
|
...props,
|
|
2459
2585
|
"aria-labelledby": originalAriaLabelledby
|
|
2460
2586
|
}, ref);
|
|
@@ -2476,16 +2602,23 @@ var $f2ff30fde7b014be$export$3ddf2d174ce01153 = forwardRef(function Dialog(props
|
|
|
2476
2602
|
render: props.render,
|
|
2477
2603
|
ref,
|
|
2478
2604
|
slot: props.slot || void 0
|
|
2479
|
-
}, $3ARPR$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
2480
|
-
[$
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2605
|
+
}, $3ARPR$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
2606
|
+
[$2ec61d1d4f780267$export$d688439359537581, { slots: {
|
|
2607
|
+
[$7230ffa83bc0c2cf$export$c62b8e45d58ddad9]: {},
|
|
2608
|
+
title: {
|
|
2609
|
+
...titleProps,
|
|
2610
|
+
level: 2
|
|
2611
|
+
}
|
|
2612
|
+
} }],
|
|
2613
|
+
[$efe09c6d1c304b50$export$9afb8bc826b033ea, { slots: {
|
|
2614
|
+
[$7230ffa83bc0c2cf$export$c62b8e45d58ddad9]: {},
|
|
2615
|
+
description: contentProps
|
|
2616
|
+
} }],
|
|
2617
|
+
[$7705c033048f6da7$export$24d547caef80ccd1, { slots: {
|
|
2618
|
+
[$7230ffa83bc0c2cf$export$c62b8e45d58ddad9]: {},
|
|
2619
|
+
close: { onPress: () => state?.close() }
|
|
2620
|
+
} }]
|
|
2621
|
+
] }, renderProps.children));
|
|
2489
2622
|
});
|
|
2490
2623
|
//#endregion
|
|
2491
2624
|
export { $e28ab3efe3e87743$export$6615d83f6de245ce as C, $3578607fe3d4b096$export$cfa2225e87938781 as E, $e28ab3efe3e87743$export$1ff3c3f08ae963c0 as S, $53e61d82d8b8611d$export$e0e4026c12a8bdbb as T, $58196c8d6a1f38fc$export$1c3ebcada18427bf as _, $49319ee1285aa241$export$2ce376c2cc3355c8 as a, $673d46fce3e5717d$export$a16aca283550c30d as b, $49319ee1285aa241$export$ecabc99eeffab7ca as c, $542a13ca2fa5b484$export$9b9a0cd73afb7ca4 as d, $d7a937236970dc7f$export$14c98a7594375490 as f, $77844860df94ba23$export$ea8f71083e90600f as g, $0644e3663365bfe5$export$ee0f7cc6afcd1c18 as h, $49319ee1285aa241$export$27d2ad3c5815583e as i, $f19b83c1486f45cc$export$dc9c12ed27dd1b49 as l, $081058010ef8962e$export$2317d149ed6f78c4 as m, $f2ff30fde7b014be$export$3ddf2d174ce01153 as n, $49319ee1285aa241$export$4b1545b4f2016d26 as o, $d7a937236970dc7f$export$c6fdb837b070b4ff as p, $f2ff30fde7b014be$export$d2f961adcb0afbe as r, $49319ee1285aa241$export$d9b273488cd8ce6f as s, $f2ff30fde7b014be$export$2e1e1122cf0cba88 as t, $542a13ca2fa5b484$export$5b6b19405a83ff9d as u, $2efe10d3f1f9e31e$export$77d5aafae4e095b2 as v, $53e61d82d8b8611d$export$8b251419efc915eb as w, $ae8f8d98b2b18f2f$export$a05409b8bb224a5a as x, $64903b4b31b6bb2a$export$b95089534ab7c1fd as y };
|