@eightshift/ui-components 8.2.0 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/{Autocomplete-CO9aIsTe.js → Autocomplete-Dqkum3dO.js} +3 -3
- package/dist/{Button-DO3oQfCq.js → Button-DHgs_rCq.js} +3 -3
- package/dist/{Dialog-Bdqjmtt2.js → Dialog-CldDJ_4u.js} +109 -41
- package/dist/{Disclosure-BTSsPhG9.js → Disclosure-BHNgL5Is.js} +4 -4
- package/dist/{FocusScope-Cj6cUR6X.js → FocusScope-CUuL5wjz.js} +6 -3
- package/dist/{ListBox-CBvtIFuB.js → ListBox-CZXso3mJ.js} +9 -37
- package/dist/{RadioGroup-Dxzko0ma.js → RadioGroup-BTByPMrl.js} +8 -8
- package/dist/{SearchField-zY9JqR1c.js → SearchField-DkX1vqMN.js} +5 -5
- package/dist/{Slider-BXc72kE0.js → Slider-Dw-JjfLx.js} +5 -5
- package/dist/{Text-i-ZK4MiL.js → Text-CA2_mHEB.js} +3 -2
- package/dist/{VisuallyHidden-CsM0VnV1.js → VisuallyHidden-ZZwHZDro.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/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
- package/dist/{button-C7mc6eS1.js → button-ldR_tlvk.js} +53 -5
- package/dist/{checkbox-DlG5DILl.js → checkbox-DDyLJRY8.js} +6 -6
- package/dist/{color-swatch-D6xMLGU-.js → color-swatch-DmhdOhe4.js} +1 -1
- package/dist/components/base-control/base-control.d.ts +1 -1
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.d.ts +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 +2 -2
- 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.d.ts +1 -1
- package/dist/components/component-toggle/component-toggle.js +4 -4
- package/dist/components/container-panel/container-panel.js +3 -3
- package/dist/components/contextual-help/contextual-help.js +3 -3
- package/dist/components/draggable/draggable.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +17 -16
- package/dist/components/input-field/input-field.d.ts +1 -1
- package/dist/components/input-field/input-field.js +1 -1
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +1 -1
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.d.ts +8 -29
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/number-picker/number-picker.d.ts +1 -1
- package/dist/components/number-picker/number-picker.js +1 -1
- package/dist/components/option-select/option-select.js +3 -3
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +5 -5
- package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
- package/dist/components/prompt-popover/prompt-popover.js +81 -0
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/repeater/repeater-item.js +2 -2
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +4 -4
- package/dist/components/responsive/responsive-legacy.js +4 -4
- package/dist/components/responsive/responsive.js +4 -4
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/rich-label/rich-label.d.ts +1 -1
- package/dist/components/rich-label/rich-label.js +2 -2
- package/dist/components/select/async-multi-select.js +9 -9
- package/dist/components/select/async-select.js +9 -9
- package/dist/components/select/multi-select.js +10 -10
- package/dist/components/select/shared.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/single-select.js +10 -10
- package/dist/components/select/styles.d.ts +2 -2
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +4 -4
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.d.ts +1 -1
- package/dist/components/smart-image/smart-image.js +2 -2
- package/dist/components/tabs/tabs.d.ts +16 -64
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/toggle/switch.d.ts +1 -1
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/{draggable-BUfOpGSZ.js → draggable-oS68xcYX.js} +1 -1
- package/dist/{gradient-editor-_q3XF10i.js → gradient-editor-DP8ioFX1.js} +5 -5
- package/dist/index.js +17 -16
- package/dist/{input-field-QzBpjm-m.js → input-field-C-XvZeCZ.js} +5 -5
- package/dist/{keyboard-BxnnQA2Z.js → keyboard-Cdqi5ZQQ.js} +1 -1
- package/dist/{link-input-CElQp3lP.js → link-input-DdwuqoMg.js} +18 -18
- package/dist/{modal-BeacK9N_.js → modal-DZco5MDu.js} +7 -7
- package/dist/{number-picker-CK_OHBXw.js → number-picker-XqKW0BNi.js} +5 -5
- package/dist/{react-C6Y6cCOx.js → react-O71mlJXS.js} +56 -51
- package/dist/{shared-DBCipn_m.js → shared-YXMIX2ka.js} +13 -13
- package/dist/{solid-color-picker-2-X3ridX.js → solid-color-picker-D5LEdmDM.js} +30 -15
- package/dist/{switch-B87lQ1V0.js → switch-Bo6nmed_.js} +7 -7
- package/dist/{tabs-DgkJUkIX.js → tabs-DE-qb7Kt.js} +7 -7
- package/dist/{textSelection-5Qk8tLtm.js → textSelection-C17LWYmO.js} +1 -1
- package/dist/{toggle-button-B2-f2rU6.js → toggle-button-Cb4yCEua.js} +36 -6
- package/dist/{tooltip-AzOLps8g.js → tooltip-CT-vzIdz.js} +2 -2
- package/dist/{useButton-BIrfoiY8.js → useButton-V65TBDGM.js} +2 -2
- package/dist/{useCollection-LQlZnc1u.js → useCollection-DqUS7tjk.js} +19 -9
- package/dist/useEvent-C9zwSNzZ.js +18 -0
- package/dist/{useFilter-BFaOw4yi.js → useFilter-C75IzdIZ.js} +1 -1
- package/dist/{useFocusRing-ZXFsftJJ.js → useFocusRing-JidySWlU.js} +1 -1
- package/dist/{useFormReset-DDJhIIfG.js → useFormReset-Sp8-miDa.js} +1 -1
- package/dist/{useFormValidation-BfnJKcdX.js → useFormValidation-CpmQEh8J.js} +1 -1
- package/dist/{useHover-CbyH227W.js → useHover-CaY3sRjL.js} +44 -17
- package/dist/{useListState-I22DfnmE.js → useListState-CzB3v6M9.js} +3 -10
- package/dist/{useNumberFieldState-C1gD0RuW.js → useNumberFieldState-DC3XY3DQ.js} +7 -7
- package/dist/{useOverlayTriggerState-Cpc_IbQf.js → useOverlayTriggerState-BKmSTK_5.js} +5 -3
- package/dist/{usePress-BF7otjax.js → usePress-CUCWcP-m.js} +22 -11
- package/dist/{useTextField-CnTuCBMs.js → useTextField-C3QIkMON.js} +4 -4
- package/dist/{useToggle-Cgv5UXaB.js → useToggle-bbGRUbo4.js} +4 -4
- package/dist/{useToggleState-Cy1E36QZ.js → useToggleState-D_rLMrVW.js} +1 -1
- package/dist/utilities/array-helpers.d.ts +1 -1
- package/package.json +13 -12
- package/dist/useEvent-Bih8lvtM.js +0 -22
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
3
|
-
import { R as $1969ac565cfec8d0$export$de79e2c695e052f3, c as $1e74c67db218ce67$export$f8168d8dd8fd66e6, d as $3e6197669829fe11$export$40bfa8c7b0832715, j as $2add3ce32c6007eb$export$fedb369cb70207f1, k as $2add3ce32c6007eb$export$a11b0059900ceec8, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
3
|
+
import { R as $1969ac565cfec8d0$export$de79e2c695e052f3, c as $1e74c67db218ce67$export$f8168d8dd8fd66e6, d as $3e6197669829fe11$export$40bfa8c7b0832715, j as $2add3ce32c6007eb$export$fedb369cb70207f1, k as $2add3ce32c6007eb$export$a11b0059900ceec8, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
4
4
|
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-Dcg-cEyM.js";
|
|
5
5
|
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
6
6
|
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
|
|
7
7
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
8
|
-
import { n as $2c9edc598a03d523$export$420e68273165f4ec, t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
8
|
+
import { n as $2c9edc598a03d523$export$420e68273165f4ec, t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
9
9
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
|
|
10
|
-
import { a as $62888b2ec35be488$export$4f384c9210e583c3, i as $14554ba6a2007b17$export$2123ff2b87c81ca, n as $cd2fa56213693c5e$export$23f548e970bdf099, r as $757ec6630f26125c$export$e908e06f4b8e3402, t as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c } from "./useNumberFieldState-
|
|
10
|
+
import { a as $62888b2ec35be488$export$4f384c9210e583c3, i as $14554ba6a2007b17$export$2123ff2b87c81ca, n as $cd2fa56213693c5e$export$23f548e970bdf099, r as $757ec6630f26125c$export$e908e06f4b8e3402, t as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c } from "./useNumberFieldState-DC3XY3DQ.js";
|
|
11
11
|
import { r as $240e9101ba2842f5$export$cb6e0bb50bc19463, t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-BeC0ySe4.js";
|
|
12
|
-
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
13
|
-
import { n as $ea3928288112382f$export$a966af930f325cab } from "./VisuallyHidden-
|
|
12
|
+
import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
|
|
13
|
+
import { n as $ea3928288112382f$export$a966af930f325cab } from "./VisuallyHidden-ZZwHZDro.js";
|
|
14
14
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-B_ibsWst.js";
|
|
15
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-
|
|
16
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
17
|
-
import { i as $786ce78c8ff38b91$exports, n as $890783418b00a858$export$4cde5df63f53f473, r as $890783418b00a858$export$6e865ea70d7724f, t as ColorSwatch } from "./color-swatch-
|
|
18
|
-
import { a as $806e559d0c2c64a0$export$6189c2744041d8f8, c as $d806310b82f07e9d$export$e5fda3247f5d67f9, d as $1dfdc54e7eb53ba0$export$36da96379f79f245, l as $4a5dd96ecb58ab11$export$8d15029008292ae, n as $806e559d0c2c64a0$export$1e7083018727fa60, s as $806e559d0c2c64a0$export$f1fce0420cc6d8ee, t as $806e559d0c2c64a0$export$105594979f116971, u as $4b964a467b2bc7ea$export$56b2c08e277f365 } from "./Slider-
|
|
19
|
-
import { a as $3a442827418ebe87$export$f9c6924e160136d1, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./useTextField-
|
|
15
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-CpmQEh8J.js";
|
|
16
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
17
|
+
import { i as $786ce78c8ff38b91$exports, n as $890783418b00a858$export$4cde5df63f53f473, r as $890783418b00a858$export$6e865ea70d7724f, t as ColorSwatch } from "./color-swatch-DmhdOhe4.js";
|
|
18
|
+
import { a as $806e559d0c2c64a0$export$6189c2744041d8f8, c as $d806310b82f07e9d$export$e5fda3247f5d67f9, d as $1dfdc54e7eb53ba0$export$36da96379f79f245, l as $4a5dd96ecb58ab11$export$8d15029008292ae, n as $806e559d0c2c64a0$export$1e7083018727fa60, s as $806e559d0c2c64a0$export$f1fce0420cc6d8ee, t as $806e559d0c2c64a0$export$105594979f116971, u as $4b964a467b2bc7ea$export$56b2c08e277f365 } from "./Slider-Dw-JjfLx.js";
|
|
19
|
+
import { a as $3a442827418ebe87$export$f9c6924e160136d1, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./useTextField-C3QIkMON.js";
|
|
20
20
|
import { BaseControl } from "./components/base-control/base-control.js";
|
|
21
|
-
import { t as __ } from "./build-module-
|
|
21
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
22
22
|
import { dropdownCaretAlt } from "./icons/ui-icons/dropdown-caret-alt.js";
|
|
23
23
|
import { TriggeredPopover } from "./components/popover/popover.js";
|
|
24
24
|
import $3ARPR$react, { createContext, forwardRef, useCallback, useContext, useMemo, useRef, useState } from "react";
|
|
25
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { flushSync } from "react-dom";
|
|
26
27
|
//#region node_modules/react-aria-components/dist/private/ColorThumb.mjs
|
|
27
28
|
var $ceafedee624ffe11$export$c80c0ea2ca5cb846 = createContext(null);
|
|
28
29
|
var $ceafedee624ffe11$export$a3cc47cee1c1ccc = forwardRef(function ColorThumb(props, ref) {
|
|
@@ -621,8 +622,8 @@ var $e3bcd4910eec2b11$export$b2103f68a961418e = forwardRef(function ColorArea(pr
|
|
|
621
622
|
//#endregion
|
|
622
623
|
//#region node_modules/react-aria/dist/private/color/useColorField.mjs
|
|
623
624
|
function $3945427e9f7dd37b$export$77e32ca575a28fdf(props, state, ref) {
|
|
624
|
-
let { isDisabled, isReadOnly, isRequired, isWheelDisabled, validationBehavior = "aria" } = props;
|
|
625
|
-
let { colorValue, inputValue, increment, decrement, incrementToMax, decrementToMin, commit } = state;
|
|
625
|
+
let { isDisabled, isReadOnly, isRequired, isWheelDisabled, validationBehavior = "aria", onKeyDown, onKeyUp } = props;
|
|
626
|
+
let { colorValue, inputValue, increment, decrement, incrementToMax, decrementToMin, commit, commitValidation } = state;
|
|
626
627
|
let inputId = $390e54f620492c70$export$f680877a34711e37();
|
|
627
628
|
let { spinButtonProps } = $757ec6630f26125c$export$e908e06f4b8e3402({
|
|
628
629
|
isDisabled,
|
|
@@ -651,6 +652,18 @@ function $3945427e9f7dd37b$export$77e32ca575a28fdf(props, state, ref) {
|
|
|
651
652
|
onScroll: onWheel,
|
|
652
653
|
isDisabled: isWheelDisabled || isDisabled || isReadOnly || !focusWithin
|
|
653
654
|
}, ref);
|
|
655
|
+
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
|
|
656
|
+
isDisabled: isDisabled || isReadOnly,
|
|
657
|
+
shortcuts: { Enter: () => {
|
|
658
|
+
flushSync(() => {
|
|
659
|
+
commit();
|
|
660
|
+
});
|
|
661
|
+
commitValidation();
|
|
662
|
+
return { shouldPreventDefault: false };
|
|
663
|
+
} },
|
|
664
|
+
onKeyDown,
|
|
665
|
+
onKeyUp
|
|
666
|
+
});
|
|
654
667
|
let onChange = (value) => {
|
|
655
668
|
if (state.validate(value)) state.setInputValue(value);
|
|
656
669
|
};
|
|
@@ -663,10 +676,12 @@ function $3945427e9f7dd37b$export$77e32ca575a28fdf(props, state, ref) {
|
|
|
663
676
|
[$fd2148440a13ec26$export$a763b9476acd3eb]: state,
|
|
664
677
|
type: "text",
|
|
665
678
|
autoComplete: "off",
|
|
666
|
-
onChange
|
|
679
|
+
onChange,
|
|
680
|
+
onKeyDown: void 0,
|
|
681
|
+
onKeyUp: void 0
|
|
667
682
|
}, state, ref);
|
|
668
683
|
$3274bf1495747a7b$export$5add1d006293d136(ref, state.defaultColorValue, state.setColorValue);
|
|
669
|
-
inputProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(inputProps, spinButtonProps, focusWithinProps, {
|
|
684
|
+
inputProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(keyboardProps, inputProps, spinButtonProps, focusWithinProps, {
|
|
670
685
|
role: "textbox",
|
|
671
686
|
"aria-valuemax": null,
|
|
672
687
|
"aria-valuemin": null,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { d as $4064df0d6f9620e1$export$c9058316764c140e, l as $03e8ab2d84d7657a$export$4338b53315abf666, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
3
|
-
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
3
|
+
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
6
|
-
import { t as $ea3928288112382f$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
7
|
-
import { t as $876b6f32ca5a04c3$export$cbe85ee05b554577 } from "./useToggle-
|
|
8
|
-
import { t as $fd3c5e01e837dc20$export$8042c6c013fd5226 } from "./useToggleState-
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
6
|
+
import { t as $ea3928288112382f$export$439d29a4e110a164 } from "./VisuallyHidden-ZZwHZDro.js";
|
|
7
|
+
import { t as $876b6f32ca5a04c3$export$cbe85ee05b554577 } from "./useToggle-bbGRUbo4.js";
|
|
8
|
+
import { t as $fd3c5e01e837dc20$export$8042c6c013fd5226 } from "./useToggleState-D_rLMrVW.js";
|
|
9
9
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
10
|
-
import $3ARPR$react, { createContext, forwardRef, useContext } from "react";
|
|
10
|
+
import $3ARPR$react, { createContext, forwardRef, useContext, useMemo } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
|
|
13
13
|
function $08312b2089c5b722$export$d853f7095ae95f88(props, state, ref) {
|
|
@@ -30,7 +30,7 @@ var $24585aa46d6ffdff$export$5cc1518e1ec171c = createContext(null);
|
|
|
30
30
|
var $24585aa46d6ffdff$export$b5d5cf8927ab7262 = forwardRef(function Switch(props, ref) {
|
|
31
31
|
let { inputRef: userProvidedInputRef = null, ...otherProps } = props;
|
|
32
32
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(otherProps, ref, $24585aa46d6ffdff$export$8699e3b644d5a28a);
|
|
33
|
-
let inputRef = $03e8ab2d84d7657a$export$4338b53315abf666($4064df0d6f9620e1$export$c9058316764c140e(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
33
|
+
let inputRef = $03e8ab2d84d7657a$export$4338b53315abf666(useMemo(() => $4064df0d6f9620e1$export$c9058316764c140e(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null), [userProvidedInputRef, props.inputRef]));
|
|
34
34
|
let state = $fd3c5e01e837dc20$export$8042c6c013fd5226(props);
|
|
35
35
|
let aria = $08312b2089c5b722$export$d853f7095ae95f88({
|
|
36
36
|
...$7230ffa83bc0c2cf$export$ef03459518577ad4(props),
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, l as $03e8ab2d84d7657a$export$4338b53315abf666, 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";
|
|
3
|
-
import { b as $caaf0dd3060ed57c$export$7e924b3091a3bd18, d as $3e6197669829fe11$export$40bfa8c7b0832715, i as $d1116acdf220c2da$export$4c014de7c8940b4c, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
3
|
+
import { b as $caaf0dd3060ed57c$export$7e924b3091a3bd18, d as $3e6197669829fe11$export$40bfa8c7b0832715, i as $d1116acdf220c2da$export$4c014de7c8940b4c, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
4
4
|
import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-Dcg-cEyM.js";
|
|
5
5
|
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
6
|
-
import {
|
|
6
|
+
import { C as $6f0c29017aeec335$export$d68d59712b04d9d1, _ as $42ceafc619f9c3ba$export$bf788dd355e3a401, c as $d667c2af82d35a98$export$d6daf82dcd84e87c, f as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, g as $42ceafc619f9c3ba$export$18af5c7a9e9b3664, i as $b24d1bc31a0f941d$export$a9d04c5684123369, m as $263ab7fc0f95ccdb$export$a164736487e3f0ae, o as $f6ba6936bfd098a0$export$ecf600387e221c37, p as $263ab7fc0f95ccdb$export$90e00781bc59d8f9, y as $42ceafc619f9c3ba$export$fb8073518f34e6ec } from "./useCollection-DqUS7tjk.js";
|
|
7
7
|
import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
|
|
8
8
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
9
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
9
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
10
10
|
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-D1LPCrSc.js";
|
|
11
11
|
import { t as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-CyOcB5ps.js";
|
|
12
|
-
import { r as $535772f9d2c1f38d$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
13
|
-
import {
|
|
12
|
+
import { r as $535772f9d2c1f38d$export$2d6ec8fc375ceafa } from "./FocusScope-CUuL5wjz.js";
|
|
13
|
+
import { t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-CzB3v6M9.js";
|
|
14
14
|
import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-COc9P6ap.js";
|
|
15
15
|
import { RichLabel } from "./components/rich-label/rich-label.js";
|
|
16
16
|
import { t as sprintf } from "./sprintf-xJRAt4p0.js";
|
|
17
|
-
import { t as __ } from "./build-module-
|
|
17
|
+
import { t as __ } from "./build-module-BISCoQjQ.js";
|
|
18
18
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
19
19
|
import { Notice } from "./components/notice/notice.js";
|
|
20
20
|
import $3ARPR$react, { Children, cloneElement, createContext, forwardRef, isValidElement, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
@@ -118,7 +118,7 @@ function $7d951241dadd72e4$export$fae0121b5afe572d(props, state, ref) {
|
|
|
118
118
|
var $a226bee26c88efd7$export$15010ca3c1abe90b = class {
|
|
119
119
|
constructor(collection, direction, orientation, disabledKeys = new Set()) {
|
|
120
120
|
this.collection = collection;
|
|
121
|
-
this.flipDirection = direction === "rtl"
|
|
121
|
+
this.flipDirection = direction === "rtl";
|
|
122
122
|
this.disabledKeys = disabledKeys;
|
|
123
123
|
this.tabDirection = orientation === "horizontal";
|
|
124
124
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as $2add3ce32c6007eb$export$78551043582a6a98,
|
|
1
|
+
import { D as $2add3ce32c6007eb$export$78551043582a6a98, j as $2add3ce32c6007eb$export$fedb369cb70207f1, q as $d447af545b77c9f1$export$b204af158042fbac, u as $081cb5757e08788e$export$24490316f764c430 } from "./useHover-CaY3sRjL.js";
|
|
2
2
|
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
|
|
3
3
|
var $cbf007e418543821$var$state = "default";
|
|
4
4
|
var $cbf007e418543821$var$savedUserSelect = "";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { g as $a4e76a5424781910$export$e08e3b67e392101e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
3
|
-
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
3
|
+
import { t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
|
-
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-
|
|
6
|
-
import { t as $ac4318a9c075bb9f$export$ea18c227d4417cc3 } from "./useButton-
|
|
7
|
-
import { t as $fd3c5e01e837dc20$export$8042c6c013fd5226 } from "./useToggleState-
|
|
5
|
+
import { t as $0c4a58759813079a$export$4e328f61c538687f } from "./useFocusRing-JidySWlU.js";
|
|
6
|
+
import { t as $ac4318a9c075bb9f$export$ea18c227d4417cc3 } from "./useButton-V65TBDGM.js";
|
|
7
|
+
import { t as $fd3c5e01e837dc20$export$8042c6c013fd5226 } from "./useToggleState-D_rLMrVW.js";
|
|
8
8
|
import { t as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-CyOcB5ps.js";
|
|
9
|
-
import { n as Tooltip } from "./tooltip-
|
|
9
|
+
import { n as Tooltip } from "./tooltip-CT-vzIdz.js";
|
|
10
10
|
import { t as cva } from "./dist-DpXluZqJ.js";
|
|
11
11
|
import $3ARPR$react, { createContext, forwardRef, useContext } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -113,7 +113,7 @@ var $75afe627ae0cc0fa$export$d2b052e7b4be1756 = forwardRef(function ToggleButton
|
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region lib/components/toggle-button/toggle-button.tsx
|
|
115
115
|
var componentClasses = cva([
|
|
116
|
-
"es:font-variation-[\"wdth\"_85,\"wght\"_325,\"ROND\"_100,\"GRAD\"_0,\"slnt\"_0] es:not-aria-pressed:hover:font-variation-[\"wdth\"_85,\"wght\"_325,\"ROND\"_100,\"GRAD\"_75,\"slnt\"_0] es:aria-pressed:font-variation-[\"wdth\"_85,\"wght\"_325,\"ROND\"_100,\"GRAD\"_75,\"slnt\"
|
|
116
|
+
"es:font-variation-[\"wdth\"_85,\"wght\"_325,\"ROND\"_100,\"GRAD\"_0,\"slnt\"_0] es:not-aria-pressed:hover:font-variation-[\"wdth\"_85,\"wght\"_325,\"ROND\"_100,\"GRAD\"_75,\"slnt\"_0] es:aria-pressed:font-variation-[\"wdth\"_85,\"wght\"_325,\"ROND\"_100,\"GRAD\"_75,\"slnt\"_0]",
|
|
117
117
|
"es:flex es:items-center es:justify-center",
|
|
118
118
|
"es:transition-plus es:duration-300 es:ease-spring-smooth es:text-13",
|
|
119
119
|
"es:any-focus:outline-hidden",
|
|
@@ -145,6 +145,7 @@ var componentClasses = cva([
|
|
|
145
145
|
type: {
|
|
146
146
|
default: null,
|
|
147
147
|
ghost: null,
|
|
148
|
+
outline: null,
|
|
148
149
|
simple: null
|
|
149
150
|
},
|
|
150
151
|
disabled: {
|
|
@@ -281,6 +282,30 @@ var componentClasses = cva([
|
|
|
281
282
|
"es:focus-visible:bg-accent-50 es:focus-visible:inset-ring es:focus-visible:ring-accent-500/30 es:focus-visible:inset-shadow-accent-300/10 es:focus-visible:inset-ring-accent-500"
|
|
282
283
|
]
|
|
283
284
|
},
|
|
285
|
+
{
|
|
286
|
+
type: "outline",
|
|
287
|
+
disabled: false,
|
|
288
|
+
selected: false,
|
|
289
|
+
class: [
|
|
290
|
+
"es:bg-white",
|
|
291
|
+
"es:bg-linear-to-br es:from-surface-200/0 es:to-surface-200/0 es:text-secondary-700",
|
|
292
|
+
"es:inset-ring es:inset-ring-secondary-700/12",
|
|
293
|
+
"es:hover:from-surface-200/30 es:hover:to-surface-200/50 es:hover:text-accent-950 es:hover:inset-ring-accent-950/6",
|
|
294
|
+
"es:pressed:from-accent-600/5 es:pressed:to-accent-600/15 es:pressed:text-accent-900",
|
|
295
|
+
"es:focus-visible:bg-accent-50 es:focus-visible:text-accent-950 es:focus-visible:inset-ring es:focus-visible:ring-accent-500/30 es:focus-visible:inset-shadow-accent-300/10 es:focus-visible:inset-ring-accent-500"
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
type: "outline",
|
|
300
|
+
disabled: false,
|
|
301
|
+
selected: true,
|
|
302
|
+
class: [
|
|
303
|
+
"es:bg-white",
|
|
304
|
+
"es:bg-linear-to-br es:from-accent-600/70 es:to-accent-600/90 es:text-white",
|
|
305
|
+
"es:inset-ring es:inset-ring-accent-800/10",
|
|
306
|
+
"es:focus-visible:bg-accent-50 es:focus-visible:inset-ring es:focus-visible:ring-accent-500/30 es:focus-visible:inset-shadow-accent-300/10 es:focus-visible:inset-ring-accent-500"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
284
309
|
{
|
|
285
310
|
type: "default",
|
|
286
311
|
disabled: true,
|
|
@@ -295,6 +320,11 @@ var componentClasses = cva([
|
|
|
295
320
|
disabled: true,
|
|
296
321
|
class: ["es:text-secondary-500 es:any-icon:text-secondary-500/50"]
|
|
297
322
|
},
|
|
323
|
+
{
|
|
324
|
+
type: "outline",
|
|
325
|
+
disabled: true,
|
|
326
|
+
class: ["es:text-secondary-500 es:any-icon:text-secondary-500/50", "es:inset-ring es:inset-ring-secondary-100"]
|
|
327
|
+
},
|
|
298
328
|
{
|
|
299
329
|
size: "small",
|
|
300
330
|
iconOnly: false,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-DQoRUQAf.js";
|
|
2
2
|
import { 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";
|
|
3
|
-
import { _ as $8f5a2122b0992be3$export$b9b3dfddab17db27, i as $d1116acdf220c2da$export$4c014de7c8940b4c, p as $8f5a2122b0992be3$export$630ff653c5ada6a9, r as $d1116acdf220c2da$export$13f3202a3e5ddd5, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-
|
|
3
|
+
import { _ as $8f5a2122b0992be3$export$b9b3dfddab17db27, i as $d1116acdf220c2da$export$4c014de7c8940b4c, p as $8f5a2122b0992be3$export$630ff653c5ada6a9, r as $d1116acdf220c2da$export$13f3202a3e5ddd5, t as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-CaY3sRjL.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
|
-
import { a as $4fcfe18fac72dabd$export$2de4954e8ae13b9f, n as $b3526bc71400be8d$export$d39e1813b3bdd0e1, o as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-
|
|
5
|
+
import { a as $4fcfe18fac72dabd$export$2de4954e8ae13b9f, n as $b3526bc71400be8d$export$d39e1813b3bdd0e1, o as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-BKmSTK_5.js";
|
|
6
6
|
import { n as $72abaeab4d80592f$export$9fc1347d4195ccb3 } from "./PortalProvider-Dbcc7pHq.js";
|
|
7
7
|
import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-COc9P6ap.js";
|
|
8
8
|
import $3ARPR$react, { createContext, forwardRef, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { i as $d1116acdf220c2da$export$4c014de7c8940b4c } from "./useHover-
|
|
2
|
+
import { i as $d1116acdf220c2da$export$4c014de7c8940b4c } from "./useHover-CaY3sRjL.js";
|
|
3
3
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
4
|
-
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
+
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-CUCWcP-m.js";
|
|
5
5
|
//#region node_modules/react-aria/dist/private/button/useButton.mjs
|
|
6
6
|
function $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {
|
|
7
7
|
let { elementType = "button", isDisabled, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type = "button" } = props;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { g as $a4e76a5424781910$export$e08e3b67e392101e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, p as $390e54f620492c70$export$f680877a34711e37, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { c as $8b2399d051d06d4c$export$831c820ad60f9d12, o as $b72f3f7b3b5f42c6$export$76e4e37e5339496d, r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129, s as $8b2399d051d06d4c$export$447a38995de2c711, t as $bb39c0fc1c19b34c$export$16792effe837dba3 } from "./keyboard-
|
|
3
|
-
import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98,
|
|
4
|
-
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-
|
|
2
|
+
import { c as $8b2399d051d06d4c$export$831c820ad60f9d12, o as $b72f3f7b3b5f42c6$export$76e4e37e5339496d, r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129, s as $8b2399d051d06d4c$export$447a38995de2c711, t as $bb39c0fc1c19b34c$export$16792effe837dba3 } from "./keyboard-Cdqi5ZQQ.js";
|
|
3
|
+
import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, J as $d447af545b77c9f1$export$f21a1ffae260145a, L as $3b8b240c1bf84ab9$export$bebd5a1431fec25d, 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, a as $d1116acdf220c2da$export$f9762fab77588ecb, d as $3e6197669829fe11$export$40bfa8c7b0832715, j as $2add3ce32c6007eb$export$fedb369cb70207f1, l as $f192c2f16961cbe0$export$80f3e147d781571c, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, p as $8f5a2122b0992be3$export$630ff653c5ada6a9, q as $d447af545b77c9f1$export$b204af158042fbac, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, x as $caaf0dd3060ed57c$export$95185d699e05d4d7, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
4
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-C9zwSNzZ.js";
|
|
5
5
|
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
6
6
|
import { n as $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 } from "./Hidden-C4Saxkx9.js";
|
|
7
|
-
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-
|
|
8
|
-
import { r as $535772f9d2c1f38d$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
9
|
-
import $3ARPR$react, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
|
+
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-CUCWcP-m.js";
|
|
8
|
+
import { r as $535772f9d2c1f38d$export$2d6ec8fc375ceafa } from "./FocusScope-CUuL5wjz.js";
|
|
9
|
+
import $3ARPR$react, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState, version } from "react";
|
|
10
10
|
import { createPortal, flushSync } from "react-dom";
|
|
11
11
|
import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
|
|
12
12
|
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
|
|
@@ -799,11 +799,13 @@ function $76d97191f0f90600$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
|
799
799
|
//#endregion
|
|
800
800
|
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
|
|
801
801
|
function $51a3e22a5186a962$export$53a0910f038337bd(scrollView, element, opts = {}) {
|
|
802
|
-
let { block = "nearest", inline = "nearest" } = opts;
|
|
803
802
|
if (scrollView === element) return;
|
|
803
|
+
$51a3e22a5186a962$export$f064fd83a2c6e9ca(scrollView, element, element.getBoundingClientRect(), opts);
|
|
804
|
+
}
|
|
805
|
+
function $51a3e22a5186a962$export$f064fd83a2c6e9ca(scrollView, element, target, opts = {}) {
|
|
806
|
+
let { block = "nearest", inline = "nearest" } = opts;
|
|
804
807
|
let y = scrollView.scrollTop;
|
|
805
808
|
let x = scrollView.scrollLeft;
|
|
806
|
-
let target = element.getBoundingClientRect();
|
|
807
809
|
let view = scrollView.getBoundingClientRect();
|
|
808
810
|
let itemStyle = window.getComputedStyle(element);
|
|
809
811
|
let viewStyle = window.getComputedStyle(scrollView);
|
|
@@ -1315,6 +1317,7 @@ function $d667c2af82d35a98$export$d6daf82dcd84e87c(options) {
|
|
|
1315
1317
|
}
|
|
1316
1318
|
manager.setFocused(true);
|
|
1317
1319
|
manager.setFocusedKey(focusedKey);
|
|
1320
|
+
if (focusedKey != null && selectOnFocus && !selectedKeys.size && manager.canSelectItem(focusedKey)) manager.replaceSelection(focusedKey);
|
|
1318
1321
|
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $f192c2f16961cbe0$export$80f3e147d781571c(ref.current);
|
|
1319
1322
|
if (manager.collection.size > 0) {
|
|
1320
1323
|
autoFocusRef.current = false;
|
|
@@ -1675,6 +1678,13 @@ function $cd5ea4b915021f1d$var$getAncestors(collection, node) {
|
|
|
1675
1678
|
return parents;
|
|
1676
1679
|
}
|
|
1677
1680
|
//#endregion
|
|
1681
|
+
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
|
|
1682
|
+
function $b24d1bc31a0f941d$export$a9d04c5684123369(value) {
|
|
1683
|
+
const pieces = version.split(".");
|
|
1684
|
+
if (parseInt(pieces[0], 10) >= 19) return value;
|
|
1685
|
+
return value ? "true" : void 0;
|
|
1686
|
+
}
|
|
1687
|
+
//#endregion
|
|
1678
1688
|
//#region node_modules/react-stately/dist/private/selection/Selection.mjs
|
|
1679
1689
|
var $8b2540e09867b15e$export$52baac22726c72bf = class $8b2540e09867b15e$export$52baac22726c72bf extends Set {
|
|
1680
1690
|
constructor(keys, anchorKey, currentKey) {
|
|
@@ -2220,4 +2230,4 @@ function $d03379b88399b8c5$export$6cd28814d92fa9c9(props, factory, context) {
|
|
|
2220
2230
|
]);
|
|
2221
2231
|
}
|
|
2222
2232
|
//#endregion
|
|
2223
|
-
export { $6f0c29017aeec335$export$
|
|
2233
|
+
export { $6f0c29017aeec335$export$d68d59712b04d9d1 as C, $6f0c29017aeec335$export$8258a0665a675899 as S, $42ceafc619f9c3ba$export$bf788dd355e3a401 as _, $cd5ea4b915021f1d$export$1005530eda016c13 as a, $6f0c29017aeec335$export$437f11dc9b403b78 as b, $d667c2af82d35a98$export$d6daf82dcd84e87c as c, $901761b40e390936$export$2bb74740c4e19def as d, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 as f, $42ceafc619f9c3ba$export$18af5c7a9e9b3664 as g, $263ab7fc0f95ccdb$export$d40e14dec8b060a8 as h, $b24d1bc31a0f941d$export$a9d04c5684123369 as i, $f5a4a9a3486154da$export$e32c88dfddc6e1d8 as l, $263ab7fc0f95ccdb$export$a164736487e3f0ae as m, $4a07ac835f260f78$export$6c8a5aaad13c9852 as n, $f6ba6936bfd098a0$export$ecf600387e221c37 as o, $263ab7fc0f95ccdb$export$90e00781bc59d8f9 as p, $60f19cefd567a3e4$export$253fe78d46329472 as r, $7b01448eaad0fe7c$export$c24ed0104d07eab9 as s, $d03379b88399b8c5$export$6cd28814d92fa9c9 as t, $22bbea12c2567021$export$c3d8340acf92597f as u, $42ceafc619f9c3ba$export$e953bb1cd0f19726 as v, $6f0c29017aeec335$export$fd11f34e1d07f134 as w, $6f0c29017aeec335$export$5ae2504e948afce5 as x, $42ceafc619f9c3ba$export$fb8073518f34e6ec as y };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Y as $d447af545b77c9f1$export$f531f92e2a15358f, f as $fe16bffc7a557bf0$export$7f54fc3180508a52 } from "./useHover-CaY3sRjL.js";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
|
|
4
|
+
function $600b3cf69ae46262$export$90fc3a17d93f704c(ref, event, listener, options) {
|
|
5
|
+
let handleEvent = $fe16bffc7a557bf0$export$7f54fc3180508a52(listener);
|
|
6
|
+
let isDisabled = listener == null;
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
if (isDisabled || ref.current == null) return;
|
|
9
|
+
return $d447af545b77c9f1$export$f531f92e2a15358f(ref.current, event, handleEvent, options);
|
|
10
|
+
}, [
|
|
11
|
+
ref,
|
|
12
|
+
event,
|
|
13
|
+
options,
|
|
14
|
+
isDisabled
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { $600b3cf69ae46262$export$90fc3a17d93f704c as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as $673d46fce3e5717d$export$a16aca283550c30d } from "./Dialog-CldDJ_4u.js";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/i18n/useFilter.mjs
|
|
4
4
|
function $ef182bb9912241d8$export$3274cf84b703fff(options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as $a92dc41f639950be$export$525bc4921d56d4a, N as $a92dc41f639950be$export$715c682d09d639cc, P as $a92dc41f639950be$export$c2b7abe5d61ec696, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, _ as $8f5a2122b0992be3$export$b9b3dfddab17db27, c as $1e74c67db218ce67$export$f8168d8dd8fd66e6, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, q as $d447af545b77c9f1$export$b204af158042fbac, v as $8f5a2122b0992be3$export$ec71b4b83ac08ec3, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
2
2
|
import { useCallback, useRef, useState } from "react";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
|
|
4
4
|
function $2c9edc598a03d523$export$420e68273165f4ec(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as $fe16bffc7a557bf0$export$7f54fc3180508a52 } from "./useHover-
|
|
1
|
+
import { f as $fe16bffc7a557bf0$export$7f54fc3180508a52 } from "./useHover-CaY3sRjL.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
|
|
4
4
|
function $3274bf1495747a7b$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a } from "./useHover-
|
|
2
|
+
import { U as $23f2114a1b82827e$export$e58f029f0fbfdb29, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a } from "./useHover-CaY3sRjL.js";
|
|
3
3
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
|
|
5
5
|
var $fd2148440a13ec26$export$aca958c65c314e6c = {
|
|
@@ -32,6 +32,23 @@ function $d447af545b77c9f1$export$f531f92e2a15358f(target, event, listener, opti
|
|
|
32
32
|
for (let eventTarget of eventTargets) eventTarget.removeEventListener(event, listener, options);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
+
function $d447af545b77c9f1$export$37a5fde709c1db82(target, property, value, priority) {
|
|
36
|
+
if (target == null) return () => {};
|
|
37
|
+
let restore = new Array();
|
|
38
|
+
let styleTargets = Array.isArray(target) ? target : [target];
|
|
39
|
+
for (let styleTarget of styleTargets) {
|
|
40
|
+
let initialValue = styleTarget.style.getPropertyValue(property);
|
|
41
|
+
let initialPriority = styleTarget.style.getPropertyPriority(property);
|
|
42
|
+
styleTarget.style.setProperty(property, value, priority);
|
|
43
|
+
restore.unshift(() => {
|
|
44
|
+
if (initialValue) styleTarget.style.setProperty(property, initialValue, initialPriority);
|
|
45
|
+
else styleTarget.style.removeProperty(property);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return () => {
|
|
49
|
+
for (let cleanup of restore) cleanup();
|
|
50
|
+
};
|
|
51
|
+
}
|
|
35
52
|
//#endregion
|
|
36
53
|
//#region node_modules/react-stately/dist/private/flags/flags.mjs
|
|
37
54
|
var $6a20a7989e6c817a$var$_shadowDOM = false;
|
|
@@ -258,15 +275,19 @@ var $a92dc41f639950be$export$fda7da73ab5d4c48 = false;
|
|
|
258
275
|
function $a92dc41f639950be$export$cabe61c495ee3649(target) {
|
|
259
276
|
while (target && !$3b8b240c1bf84ab9$export$4c063cf1350e6fed(target, { skipVisibilityCheck: true })) target = target.parentElement;
|
|
260
277
|
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
261
|
-
let activeElement = ownerWindow.document
|
|
278
|
+
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576(ownerWindow.document);
|
|
262
279
|
if (!activeElement || activeElement === target) return;
|
|
280
|
+
let targetRoot = target?.getRootNode();
|
|
281
|
+
let root = targetRoot != null && $d447af545b77c9f1$export$af51f0f06c0f328a(targetRoot) ? targetRoot : $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
282
|
+
let isFocusMovingToTarget = (focusTarget) => focusTarget === target || focusTarget != null && $23f2114a1b82827e$export$4282f70798064fe0(target, focusTarget);
|
|
283
|
+
let isBlurFromActiveElement = (eventTarget) => eventTarget === activeElement || activeElement != null && eventTarget != null && $23f2114a1b82827e$export$4282f70798064fe0(activeElement, eventTarget);
|
|
263
284
|
$a92dc41f639950be$export$fda7da73ab5d4c48 = true;
|
|
264
285
|
let isRefocusing = false;
|
|
265
286
|
let onBlur = (e) => {
|
|
266
|
-
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e)
|
|
287
|
+
if (isBlurFromActiveElement($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) e.stopImmediatePropagation();
|
|
267
288
|
};
|
|
268
289
|
let onFocusOut = (e) => {
|
|
269
|
-
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e)
|
|
290
|
+
if (isBlurFromActiveElement($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) {
|
|
270
291
|
e.stopImmediatePropagation();
|
|
271
292
|
if (!target && !isRefocusing) {
|
|
272
293
|
isRefocusing = true;
|
|
@@ -276,10 +297,10 @@ function $a92dc41f639950be$export$cabe61c495ee3649(target) {
|
|
|
276
297
|
}
|
|
277
298
|
};
|
|
278
299
|
let onFocus = (e) => {
|
|
279
|
-
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e)
|
|
300
|
+
if (isFocusMovingToTarget($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) e.stopImmediatePropagation();
|
|
280
301
|
};
|
|
281
302
|
let onFocusIn = (e) => {
|
|
282
|
-
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e)
|
|
303
|
+
if (isFocusMovingToTarget($23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || isRefocusing) {
|
|
283
304
|
e.stopImmediatePropagation();
|
|
284
305
|
if (!isRefocusing) {
|
|
285
306
|
isRefocusing = true;
|
|
@@ -288,16 +309,16 @@ function $a92dc41f639950be$export$cabe61c495ee3649(target) {
|
|
|
288
309
|
}
|
|
289
310
|
}
|
|
290
311
|
};
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
312
|
+
root.addEventListener("blur", onBlur, true);
|
|
313
|
+
root.addEventListener("focusout", onFocusOut, true);
|
|
314
|
+
root.addEventListener("focusin", onFocusIn, true);
|
|
315
|
+
root.addEventListener("focus", onFocus, true);
|
|
295
316
|
let cleanup = () => {
|
|
296
317
|
cancelAnimationFrame(raf);
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
318
|
+
root.removeEventListener("blur", onBlur, true);
|
|
319
|
+
root.removeEventListener("focusout", onFocusOut, true);
|
|
320
|
+
root.removeEventListener("focusin", onFocusIn, true);
|
|
321
|
+
root.removeEventListener("focus", onFocus, true);
|
|
301
322
|
$a92dc41f639950be$export$fda7da73ab5d4c48 = false;
|
|
302
323
|
isRefocusing = false;
|
|
303
324
|
};
|
|
@@ -487,9 +508,15 @@ function $8f5a2122b0992be3$var$handleClickEvent(e) {
|
|
|
487
508
|
}
|
|
488
509
|
}
|
|
489
510
|
function $8f5a2122b0992be3$var$handleFocusEvent(e) {
|
|
490
|
-
|
|
491
|
-
let
|
|
492
|
-
|
|
511
|
+
if ($a92dc41f639950be$export$fda7da73ab5d4c48) return;
|
|
512
|
+
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
513
|
+
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(target);
|
|
514
|
+
let ownerDocument = $d447af545b77c9f1$export$b204af158042fbac(target);
|
|
515
|
+
if (target === ownerWindow) {
|
|
516
|
+
$8f5a2122b0992be3$var$hasBlurredWindowRecently = true;
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
if (target === ownerDocument || !e.isTrusted) return;
|
|
493
520
|
if (!$8f5a2122b0992be3$var$hasEventBeforeFocus && !$8f5a2122b0992be3$var$hasBlurredWindowRecently) {
|
|
494
521
|
$8f5a2122b0992be3$var$currentModality = "virtual";
|
|
495
522
|
$8f5a2122b0992be3$var$currentPointerType = "virtual";
|
|
@@ -1164,4 +1191,4 @@ function $e969f22b6713ca4a$export$ae780daf29e6d456(props) {
|
|
|
1164
1191
|
};
|
|
1165
1192
|
}
|
|
1166
1193
|
//#endregion
|
|
1167
|
-
export { $2add3ce32c6007eb$export$e1865c3bedcd822b as A, $23f2114a1b82827e$export$b4f377a2b6254582 as B, $b5c62b033c25b96d$export$29bf1b5f2c56cf63 as C, $2add3ce32c6007eb$export$78551043582a6a98 as D, $2add3ce32c6007eb$export$6446a186d09e379e as E, $a92dc41f639950be$export$cabe61c495ee3649 as F, $d447af545b77c9f1$export$
|
|
1194
|
+
export { $2add3ce32c6007eb$export$e1865c3bedcd822b as A, $23f2114a1b82827e$export$b4f377a2b6254582 as B, $b5c62b033c25b96d$export$29bf1b5f2c56cf63 as C, $2add3ce32c6007eb$export$78551043582a6a98 as D, $2add3ce32c6007eb$export$6446a186d09e379e as E, $a92dc41f639950be$export$cabe61c495ee3649 as F, $d447af545b77c9f1$export$37a5fde709c1db82 as G, $23f2114a1b82827e$export$da7af4355d792141 as H, $3b8b240c1bf84ab9$export$4c063cf1350e6fed as I, $d447af545b77c9f1$export$f21a1ffae260145a as J, $d447af545b77c9f1$export$af51f0f06c0f328a as K, $3b8b240c1bf84ab9$export$bebd5a1431fec25d as L, $a92dc41f639950be$export$525bc4921d56d4a as M, $a92dc41f639950be$export$715c682d09d639cc as N, $2add3ce32c6007eb$export$9ac100e40613ea10 as O, $a92dc41f639950be$export$c2b7abe5d61ec696 as P, $1969ac565cfec8d0$export$de79e2c695e052f3 as R, $caaf0dd3060ed57c$export$9a302a45f65d0572 as S, $2add3ce32c6007eb$export$186c6964ca17d99 as T, $23f2114a1b82827e$export$e58f029f0fbfdb29 as U, $23f2114a1b82827e$export$cd4e5573fbe2b576 as V, $6a20a7989e6c817a$export$98658e8c59125e6a as W, $d447af545b77c9f1$export$f531f92e2a15358f as Y, $8f5a2122b0992be3$export$b9b3dfddab17db27 as _, $d1116acdf220c2da$export$f9762fab77588ecb as a, $caaf0dd3060ed57c$export$7e924b3091a3bd18 as b, $1e74c67db218ce67$export$f8168d8dd8fd66e6 as c, $3e6197669829fe11$export$40bfa8c7b0832715 as d, $fe16bffc7a557bf0$export$7f54fc3180508a52 as f, $8f5a2122b0992be3$export$98e20ec92f614cfe as g, $8f5a2122b0992be3$export$887a228355cf7d95 as h, $d1116acdf220c2da$export$4c014de7c8940b4c as i, $2add3ce32c6007eb$export$fedb369cb70207f1 as j, $2add3ce32c6007eb$export$a11b0059900ceec8 as k, $f192c2f16961cbe0$export$80f3e147d781571c as l, $8f5a2122b0992be3$export$8397ddfc504fdb9a as m, $48a7d519b337145d$export$4eaf04e54aa8eed6 as n, $b7115c395c64f7b5$export$4debdb1a3f0fa79e as o, $8f5a2122b0992be3$export$630ff653c5ada6a9 as p, $d447af545b77c9f1$export$b204af158042fbac as q, $d1116acdf220c2da$export$13f3202a3e5ddd5 as r, $8296dad1a4c5e0dc$export$8f71654801c2f7cd as s, $e969f22b6713ca4a$export$ae780daf29e6d456 as t, $081cb5757e08788e$export$24490316f764c430 as u, $8f5a2122b0992be3$export$ec71b4b83ac08ec3 as v, $b5c62b033c25b96d$export$60278871457622de as w, $caaf0dd3060ed57c$export$95185d699e05d4d7 as x, $caaf0dd3060ed57c$export$13aea1a3cb5e3f1f as y, $23f2114a1b82827e$export$4282f70798064fe0 as z };
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { n as $4a07ac835f260f78$export$6c8a5aaad13c9852, r as $60f19cefd567a3e4$export$253fe78d46329472, t as $d03379b88399b8c5$export$6cd28814d92fa9c9 } from "./useCollection-
|
|
2
|
-
import { useCallback, useEffect, useMemo, useRef
|
|
3
|
-
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
|
|
4
|
-
function $b24d1bc31a0f941d$export$a9d04c5684123369(value) {
|
|
5
|
-
const pieces = version.split(".");
|
|
6
|
-
if (parseInt(pieces[0], 10) >= 19) return value;
|
|
7
|
-
return value ? "true" : void 0;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
1
|
+
import { n as $4a07ac835f260f78$export$6c8a5aaad13c9852, r as $60f19cefd567a3e4$export$253fe78d46329472, t as $d03379b88399b8c5$export$6cd28814d92fa9c9 } from "./useCollection-DqUS7tjk.js";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
10
3
|
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
|
|
11
4
|
var $f664a81d022446b5$export$d085fb9e920b5ca7 = class {
|
|
12
5
|
constructor(nodes) {
|
|
@@ -134,4 +127,4 @@ function $b14b6f590b50af39$var$useFocusedKeyReset(collection, selectionManager)
|
|
|
134
127
|
}, [collection, selectionManager]);
|
|
135
128
|
}
|
|
136
129
|
//#endregion
|
|
137
|
-
export { $
|
|
130
|
+
export { $b14b6f590b50af39$export$ba9d38c0f1bf2b36 as n, $f664a81d022446b5$export$d085fb9e920b5ca7 as r, $b14b6f590b50af39$export$2f645645f7bca764 as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, p as $390e54f620492c70$export$f680877a34711e37, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { T as $2add3ce32c6007eb$export$186c6964ca17d99, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, c as $1e74c67db218ce67$export$f8168d8dd8fd66e6, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, j as $2add3ce32c6007eb$export$fedb369cb70207f1, k as $2add3ce32c6007eb$export$a11b0059900ceec8, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd } from "./useHover-
|
|
3
|
-
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-
|
|
2
|
+
import { T as $2add3ce32c6007eb$export$186c6964ca17d99, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, c as $1e74c67db218ce67$export$f8168d8dd8fd66e6, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, j as $2add3ce32c6007eb$export$fedb369cb70207f1, k as $2add3ce32c6007eb$export$a11b0059900ceec8, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd } from "./useHover-CaY3sRjL.js";
|
|
3
|
+
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-C9zwSNzZ.js";
|
|
4
4
|
import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
|
|
5
5
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
6
|
-
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-
|
|
6
|
+
import { n as $2c9edc598a03d523$export$420e68273165f4ec } from "./useFocusRing-JidySWlU.js";
|
|
7
7
|
import { t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-Bwdv413k.js";
|
|
8
8
|
import { t as $bd90acf18e792be6$export$b7a616150fdb9f44 } from "./useNumberFormatter-DbAt_fC_.js";
|
|
9
9
|
import { r as $240e9101ba2842f5$export$cb6e0bb50bc19463, t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-BeC0ySe4.js";
|
|
10
|
-
import { i as $a46cf152bb926da5$export$d10ae4f68404609a, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9 } from "./Button-
|
|
11
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-
|
|
12
|
-
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-
|
|
13
|
-
import { t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-
|
|
10
|
+
import { i as $a46cf152bb926da5$export$d10ae4f68404609a, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9 } from "./Button-DHgs_rCq.js";
|
|
11
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-CpmQEh8J.js";
|
|
12
|
+
import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
|
|
13
|
+
import { t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-C3QIkMON.js";
|
|
14
14
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { flushSync } from "react-dom";
|
|
16
16
|
//#region node_modules/@internationalized/number/dist/private/NumberParser.mjs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as $c4867b2f328c2698$export$e5c5a5f917a5871c, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, H as $23f2114a1b82827e$export$da7af4355d792141,
|
|
2
|
+
import { B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, H as $23f2114a1b82827e$export$da7af4355d792141, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, Y as $d447af545b77c9f1$export$f531f92e2a15358f, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
|
|
3
3
|
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
4
4
|
import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
|
|
5
5
|
import { t as $240e9101ba2842f5$export$7d15b64cf5a3a4c4 } from "./number-BeC0ySe4.js";
|
|
@@ -73,8 +73,8 @@ function $954926fb6168ae2a$var$getContainerDimensions(containerNode, visualViewp
|
|
|
73
73
|
scroll.top = documentElement.scrollTop || containerNode.scrollTop;
|
|
74
74
|
scroll.left = documentElement.scrollLeft || containerNode.scrollLeft;
|
|
75
75
|
if (visualViewport) {
|
|
76
|
-
top = visualViewport.
|
|
77
|
-
left = visualViewport.
|
|
76
|
+
top = Math.max(0, visualViewport.pageTop - (scroll.top ?? 0));
|
|
77
|
+
left = Math.max(0, visualViewport.pageLeft - (scroll.left ?? 0));
|
|
78
78
|
}
|
|
79
79
|
} else {
|
|
80
80
|
({width: width, height: height, top: top, left: left} = $954926fb6168ae2a$var$getOffset(containerNode, false));
|
|
@@ -483,9 +483,11 @@ function $b3526bc71400be8d$export$d39e1813b3bdd0e1(props) {
|
|
|
483
483
|
};
|
|
484
484
|
$b3526bc71400be8d$var$visualViewport?.addEventListener("resize", onResize);
|
|
485
485
|
$b3526bc71400be8d$var$visualViewport?.addEventListener("scroll", onScroll);
|
|
486
|
+
let cleanup = $d447af545b77c9f1$export$f531f92e2a15358f($23f2114a1b82827e$export$da7af4355d792141(window), "scroll", onScroll);
|
|
486
487
|
return () => {
|
|
487
488
|
$b3526bc71400be8d$var$visualViewport?.removeEventListener("resize", onResize);
|
|
488
489
|
$b3526bc71400be8d$var$visualViewport?.removeEventListener("scroll", onScroll);
|
|
490
|
+
cleanup();
|
|
489
491
|
};
|
|
490
492
|
}, [updatePosition]);
|
|
491
493
|
let close = useCallback(() => {
|