@react-aria/overlays 3.19.0 → 3.20.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/ar-AE.main.js +6 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +8 -0
- package/dist/ar-AE.module.js +8 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +6 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +8 -0
- package/dist/bg-BG.module.js +8 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +6 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +8 -0
- package/dist/cs-CZ.module.js +8 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +6 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +8 -0
- package/dist/da-DK.module.js +8 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +6 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +8 -0
- package/dist/de-DE.module.js +8 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +6 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +8 -0
- package/dist/el-GR.module.js +8 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +6 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +8 -0
- package/dist/en-US.module.js +8 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +6 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +8 -0
- package/dist/es-ES.module.js +8 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +6 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +8 -0
- package/dist/et-EE.module.js +8 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +6 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +8 -0
- package/dist/fi-FI.module.js +8 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +6 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +8 -0
- package/dist/fr-FR.module.js +8 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +6 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +8 -0
- package/dist/he-IL.module.js +8 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +6 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +8 -0
- package/dist/hr-HR.module.js +8 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +6 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +8 -0
- package/dist/hu-HU.module.js +8 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +85 -206
- package/dist/it-IT.main.js +6 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +8 -0
- package/dist/it-IT.module.js +8 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +6 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +8 -0
- package/dist/ja-JP.module.js +8 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +6 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +8 -0
- package/dist/ko-KR.module.js +8 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +6 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +8 -0
- package/dist/lt-LT.module.js +8 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +6 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +8 -0
- package/dist/lv-LV.module.js +8 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +85 -206
- package/dist/main.js.map +1 -1
- package/dist/module.js +85 -206
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +6 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +8 -0
- package/dist/nb-NO.module.js +8 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +6 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +8 -0
- package/dist/nl-NL.module.js +8 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +6 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +8 -0
- package/dist/pl-PL.module.js +8 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +6 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +8 -0
- package/dist/pt-BR.module.js +8 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +6 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +8 -0
- package/dist/pt-PT.module.js +8 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +6 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +8 -0
- package/dist/ro-RO.module.js +8 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +6 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +8 -0
- package/dist/ru-RU.module.js +8 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +6 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +8 -0
- package/dist/sk-SK.module.js +8 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +6 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +8 -0
- package/dist/sl-SI.module.js +8 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +6 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +8 -0
- package/dist/sr-SP.module.js +8 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +6 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +8 -0
- package/dist/sv-SE.module.js +8 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +6 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +8 -0
- package/dist/tr-TR.module.js +8 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +6 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +8 -0
- package/dist/uk-UA.module.js +8 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/zh-CN.main.js +6 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +8 -0
- package/dist/zh-CN.module.js +8 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +6 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +8 -0
- package/dist/zh-TW.module.js +8 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +8 -8
- package/src/DismissButton.tsx +3 -2
- package/src/useOverlay.ts +1 -1
- package/src/usePopover.ts +13 -4
- package/src/usePreventScroll.ts +56 -41
package/dist/import.mjs
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
import $773d5888b972f1cf$exports from "./ar-AE.mjs";
|
|
2
|
+
import $d11f19852b941573$exports from "./bg-BG.mjs";
|
|
3
|
+
import $b983974c2ee1efb3$exports from "./cs-CZ.mjs";
|
|
4
|
+
import $5809cc9d4e92de73$exports from "./da-DK.mjs";
|
|
5
|
+
import $c68c2e4fc74398d1$exports from "./de-DE.mjs";
|
|
6
|
+
import $0898b4c153db2b77$exports from "./el-GR.mjs";
|
|
7
|
+
import $6d74810286a15183$exports from "./en-US.mjs";
|
|
8
|
+
import $309d73dc65f78055$exports from "./es-ES.mjs";
|
|
9
|
+
import $44ad94f7205cf593$exports from "./et-EE.mjs";
|
|
10
|
+
import $7c28f5687f0779a9$exports from "./fi-FI.mjs";
|
|
11
|
+
import $e6d75df4b68bd73a$exports from "./fr-FR.mjs";
|
|
12
|
+
import $87505c9dab186d0f$exports from "./he-IL.mjs";
|
|
13
|
+
import $553439c3ffb3e492$exports from "./hr-HR.mjs";
|
|
14
|
+
import $74cf411061b983a2$exports from "./hu-HU.mjs";
|
|
15
|
+
import $e933f298574dc435$exports from "./it-IT.mjs";
|
|
16
|
+
import $ac91fc9fe02f71f6$exports from "./ja-JP.mjs";
|
|
17
|
+
import $52b96f86422025af$exports from "./ko-KR.mjs";
|
|
18
|
+
import $c0d724c3e51dafa6$exports from "./lt-LT.mjs";
|
|
19
|
+
import $c92899672a3fe72e$exports from "./lv-LV.mjs";
|
|
20
|
+
import $9f576b39d8e7a9d6$exports from "./nb-NO.mjs";
|
|
21
|
+
import $9d025808aeec81a7$exports from "./nl-NL.mjs";
|
|
22
|
+
import $fce709921e2c0fa6$exports from "./pl-PL.mjs";
|
|
23
|
+
import $2599cf0c4ab37f59$exports from "./pt-BR.mjs";
|
|
24
|
+
import $3c220ae7ef8a35fd$exports from "./pt-PT.mjs";
|
|
25
|
+
import $93562b5094072f54$exports from "./ro-RO.mjs";
|
|
26
|
+
import $cd9e2abd0d06c7b4$exports from "./ru-RU.mjs";
|
|
27
|
+
import $45375701f409adf1$exports from "./sk-SK.mjs";
|
|
28
|
+
import $27fab53a576de9dd$exports from "./sl-SI.mjs";
|
|
29
|
+
import $4438748d9952e7c7$exports from "./sr-SP.mjs";
|
|
30
|
+
import $0936d7347ef4da4c$exports from "./sv-SE.mjs";
|
|
31
|
+
import $29700c92185d38f8$exports from "./tr-TR.mjs";
|
|
32
|
+
import $662ccaf2be4c25b3$exports from "./uk-UA.mjs";
|
|
33
|
+
import $d80a27deda7cdb3c$exports from "./zh-CN.mjs";
|
|
34
|
+
import $2b2734393847c884$exports from "./zh-TW.mjs";
|
|
1
35
|
import $k7QOs$react, {useState as $k7QOs$useState, useCallback as $k7QOs$useCallback, useRef as $k7QOs$useRef, useEffect as $k7QOs$useEffect, useContext as $k7QOs$useContext, useMemo as $k7QOs$useMemo} from "react";
|
|
2
36
|
import {useLayoutEffect as $k7QOs$useLayoutEffect, useResizeObserver as $k7QOs$useResizeObserver, clamp as $k7QOs$clamp, useId as $k7QOs$useId, isIOS as $k7QOs$isIOS, chain as $k7QOs$chain, getScrollParent as $k7QOs$getScrollParent, useLabels as $k7QOs$useLabels, mergeProps as $k7QOs$mergeProps} from "@react-aria/utils";
|
|
3
37
|
import {useLocale as $k7QOs$useLocale, useLocalizedStringFormatter as $k7QOs$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
@@ -531,7 +565,7 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
|
531
565
|
isOpen,
|
|
532
566
|
ref
|
|
533
567
|
]);
|
|
534
|
-
// Only hide the overlay when it is the topmost visible overlay in the stack
|
|
568
|
+
// Only hide the overlay when it is the topmost visible overlay in the stack
|
|
535
569
|
let onHide = ()=>{
|
|
536
570
|
if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose) onClose();
|
|
537
571
|
};
|
|
@@ -706,8 +740,9 @@ function $49c51c25361d4cd2$var$preventScrollStandard() {
|
|
|
706
740
|
//
|
|
707
741
|
// 1. Prevent default on `touchmove` events that are not in a scrollable element. This prevents touch scrolling
|
|
708
742
|
// on the window.
|
|
709
|
-
// 2.
|
|
710
|
-
// top or bottom.
|
|
743
|
+
// 2. Set `overscroll-behavior: contain` on nested scrollable regions so they do not scroll the page when at
|
|
744
|
+
// the top or bottom. Work around a bug where this does not work when the element does not actually overflow
|
|
745
|
+
// by preventing default in a `touchmove` event.
|
|
711
746
|
// 3. Prevent default on `touchend` events on input elements and handle focusing the element ourselves.
|
|
712
747
|
// 4. When focusing an input, apply a transform to trick Safari into thinking the input is at the top
|
|
713
748
|
// of the page, which prevents it from scrolling the page. After the input is focused, scroll the element
|
|
@@ -719,12 +754,15 @@ function $49c51c25361d4cd2$var$preventScrollStandard() {
|
|
|
719
754
|
// to navigate to an input with the next/previous buttons that's outside a modal.
|
|
720
755
|
function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
721
756
|
let scrollable;
|
|
722
|
-
let
|
|
757
|
+
let restoreScrollableStyles;
|
|
723
758
|
let onTouchStart = (e)=>{
|
|
724
759
|
// Store the nearest scrollable parent element from the element that the user touched.
|
|
725
|
-
scrollable = (0, $k7QOs$getScrollParent)(e.target);
|
|
760
|
+
scrollable = (0, $k7QOs$getScrollParent)(e.target, true);
|
|
726
761
|
if (scrollable === document.documentElement && scrollable === document.body) return;
|
|
727
|
-
|
|
762
|
+
// Prevent scrolling up when at the top and scrolling down when at the bottom
|
|
763
|
+
// of a nested scrollable area, otherwise mobile Safari will start scrolling
|
|
764
|
+
// the window instead.
|
|
765
|
+
if (scrollable instanceof HTMLElement && window.getComputedStyle(scrollable).overscrollBehavior === "auto") restoreScrollableStyles = $49c51c25361d4cd2$var$setStyle(scrollable, "overscrollBehavior", "contain");
|
|
728
766
|
};
|
|
729
767
|
let onTouchMove = (e)=>{
|
|
730
768
|
// Prevent scrolling the window.
|
|
@@ -732,22 +770,20 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
732
770
|
e.preventDefault();
|
|
733
771
|
return;
|
|
734
772
|
}
|
|
735
|
-
//
|
|
736
|
-
//
|
|
737
|
-
// the
|
|
738
|
-
//
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
if (bottom === 0) return;
|
|
743
|
-
if (scrollTop <= 0 && y > lastY || scrollTop >= bottom && y < lastY) e.preventDefault();
|
|
744
|
-
lastY = y;
|
|
773
|
+
// overscroll-behavior should prevent scroll chaining, but currently does not
|
|
774
|
+
// if the element doesn't actually overflow. https://bugs.webkit.org/show_bug.cgi?id=243452
|
|
775
|
+
// This checks that both the width and height do not overflow, otherwise we might
|
|
776
|
+
// block horizontal scrolling too. In that case, adding `touch-action: pan-x` to
|
|
777
|
+
// the element will prevent vertical page scrolling. We can't add that automatically
|
|
778
|
+
// because it must be set before the touchstart event.
|
|
779
|
+
if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();
|
|
745
780
|
};
|
|
746
781
|
let onTouchEnd = (e)=>{
|
|
747
782
|
let target = e.target;
|
|
748
783
|
// Apply this change if we're not already focused on the target element
|
|
749
784
|
if ($49c51c25361d4cd2$var$willOpenKeyboard(target) && target !== document.activeElement) {
|
|
750
785
|
e.preventDefault();
|
|
786
|
+
setupStyles();
|
|
751
787
|
// Apply a transform to trick Safari into thinking the input is at the top of the page
|
|
752
788
|
// so it doesn't try to scroll it into view. When tapping on an input, this needs to
|
|
753
789
|
// be done before the "focus" event, so we have to focus the element ourselves.
|
|
@@ -757,10 +793,12 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
757
793
|
target.style.transform = "";
|
|
758
794
|
});
|
|
759
795
|
}
|
|
796
|
+
if (restoreScrollableStyles) restoreScrollableStyles();
|
|
760
797
|
};
|
|
761
798
|
let onFocus = (e)=>{
|
|
762
799
|
let target = e.target;
|
|
763
800
|
if ($49c51c25361d4cd2$var$willOpenKeyboard(target)) {
|
|
801
|
+
setupStyles();
|
|
764
802
|
// Transform also needs to be applied in the focus event in cases where focus moves
|
|
765
803
|
// other than tapping on an input directly, e.g. the next/previous buttons in the
|
|
766
804
|
// software keyboard. In these cases, it seems applying the transform in the focus event
|
|
@@ -785,19 +823,25 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
785
823
|
});
|
|
786
824
|
}
|
|
787
825
|
};
|
|
788
|
-
let
|
|
789
|
-
|
|
790
|
-
|
|
826
|
+
let restoreStyles = null;
|
|
827
|
+
let setupStyles = ()=>{
|
|
828
|
+
if (restoreStyles) return;
|
|
829
|
+
let onWindowScroll = ()=>{
|
|
830
|
+
// Last resort. If the window scrolled, scroll it back to the top.
|
|
831
|
+
// It should always be at the top because the body will have a negative margin (see below).
|
|
832
|
+
window.scrollTo(0, 0);
|
|
833
|
+
};
|
|
834
|
+
// Record the original scroll position so we can restore it.
|
|
835
|
+
// Then apply a negative margin to the body to offset it by the scroll position. This will
|
|
836
|
+
// enable us to scroll the window to the top, which is required for the rest of this to work.
|
|
837
|
+
let scrollX = window.pageXOffset;
|
|
838
|
+
let scrollY = window.pageYOffset;
|
|
839
|
+
restoreStyles = (0, $k7QOs$chain)($49c51c25361d4cd2$var$addEvent(window, "scroll", onWindowScroll), $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"), $49c51c25361d4cd2$var$setStyle(document.body, "marginTop", `-${scrollY}px`), ()=>{
|
|
840
|
+
window.scrollTo(scrollX, scrollY);
|
|
841
|
+
});
|
|
842
|
+
// Scroll to the top. The negative margin on the body will make this appear the same.
|
|
791
843
|
window.scrollTo(0, 0);
|
|
792
844
|
};
|
|
793
|
-
// Record the original scroll position so we can restore it.
|
|
794
|
-
// Then apply a negative margin to the body to offset it by the scroll position. This will
|
|
795
|
-
// enable us to scroll the window to the top, which is required for the rest of this to work.
|
|
796
|
-
let scrollX = window.pageXOffset;
|
|
797
|
-
let scrollY = window.pageYOffset;
|
|
798
|
-
let restoreStyles = (0, $k7QOs$chain)($49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"), $49c51c25361d4cd2$var$setStyle(document.body, "marginTop", `-${scrollY}px`));
|
|
799
|
-
// Scroll to the top. The negative margin on the body will make this appear the same.
|
|
800
|
-
window.scrollTo(0, 0);
|
|
801
845
|
let removeEvents = (0, $k7QOs$chain)($49c51c25361d4cd2$var$addEvent(document, "touchstart", onTouchStart, {
|
|
802
846
|
passive: false,
|
|
803
847
|
capture: true
|
|
@@ -807,12 +851,12 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
|
807
851
|
}), $49c51c25361d4cd2$var$addEvent(document, "touchend", onTouchEnd, {
|
|
808
852
|
passive: false,
|
|
809
853
|
capture: true
|
|
810
|
-
}), $49c51c25361d4cd2$var$addEvent(document, "focus", onFocus, true)
|
|
854
|
+
}), $49c51c25361d4cd2$var$addEvent(document, "focus", onFocus, true));
|
|
811
855
|
return ()=>{
|
|
812
856
|
// Restore styles and scroll the page back to where it was.
|
|
813
|
-
|
|
857
|
+
restoreScrollableStyles === null || restoreScrollableStyles === void 0 ? void 0 : restoreScrollableStyles();
|
|
858
|
+
restoreStyles === null || restoreStyles === void 0 ? void 0 : restoreStyles();
|
|
814
859
|
removeEvents();
|
|
815
|
-
window.scrollTo(scrollX, scrollY);
|
|
816
860
|
};
|
|
817
861
|
}
|
|
818
862
|
// Sets a CSS property on an element, and returns a function to revert it to the previous value.
|
|
@@ -954,208 +998,38 @@ function $f57aed4a881a3485$export$33ffd74ebf07f060(options) {
|
|
|
954
998
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
955
999
|
* governing permissions and limitations under the License.
|
|
956
1000
|
*/ var $a2f21f5f14f60553$exports = {};
|
|
957
|
-
var $773d5888b972f1cf$exports = {};
|
|
958
|
-
$773d5888b972f1cf$exports = {
|
|
959
|
-
"dismiss": `\u{62A}\u{62C}\u{627}\u{647}\u{644}`
|
|
960
|
-
};
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
var $d11f19852b941573$exports = {};
|
|
964
|
-
$d11f19852b941573$exports = {
|
|
965
|
-
"dismiss": `\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
var $b983974c2ee1efb3$exports = {};
|
|
970
|
-
$b983974c2ee1efb3$exports = {
|
|
971
|
-
"dismiss": `Odstranit`
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
var $5809cc9d4e92de73$exports = {};
|
|
976
|
-
$5809cc9d4e92de73$exports = {
|
|
977
|
-
"dismiss": `Luk`
|
|
978
|
-
};
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
var $c68c2e4fc74398d1$exports = {};
|
|
982
|
-
$c68c2e4fc74398d1$exports = {
|
|
983
|
-
"dismiss": `Schlie\xdfen`
|
|
984
|
-
};
|
|
985
1001
|
|
|
986
1002
|
|
|
987
|
-
var $0898b4c153db2b77$exports = {};
|
|
988
|
-
$0898b4c153db2b77$exports = {
|
|
989
|
-
"dismiss": `\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`
|
|
990
|
-
};
|
|
991
1003
|
|
|
992
1004
|
|
|
993
|
-
var $6d74810286a15183$exports = {};
|
|
994
|
-
$6d74810286a15183$exports = {
|
|
995
|
-
"dismiss": `Dismiss`
|
|
996
|
-
};
|
|
997
1005
|
|
|
998
1006
|
|
|
999
|
-
var $309d73dc65f78055$exports = {};
|
|
1000
|
-
$309d73dc65f78055$exports = {
|
|
1001
|
-
"dismiss": `Descartar`
|
|
1002
|
-
};
|
|
1003
1007
|
|
|
1004
1008
|
|
|
1005
|
-
var $44ad94f7205cf593$exports = {};
|
|
1006
|
-
$44ad94f7205cf593$exports = {
|
|
1007
|
-
"dismiss": `L\xf5peta`
|
|
1008
|
-
};
|
|
1009
1009
|
|
|
1010
1010
|
|
|
1011
|
-
var $7c28f5687f0779a9$exports = {};
|
|
1012
|
-
$7c28f5687f0779a9$exports = {
|
|
1013
|
-
"dismiss": `Hylk\xe4\xe4`
|
|
1014
|
-
};
|
|
1015
1011
|
|
|
1016
1012
|
|
|
1017
|
-
var $e6d75df4b68bd73a$exports = {};
|
|
1018
|
-
$e6d75df4b68bd73a$exports = {
|
|
1019
|
-
"dismiss": `Rejeter`
|
|
1020
|
-
};
|
|
1021
1013
|
|
|
1022
1014
|
|
|
1023
|
-
var $87505c9dab186d0f$exports = {};
|
|
1024
|
-
$87505c9dab186d0f$exports = {
|
|
1025
|
-
"dismiss": `\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`
|
|
1026
|
-
};
|
|
1027
1015
|
|
|
1028
1016
|
|
|
1029
|
-
var $553439c3ffb3e492$exports = {};
|
|
1030
|
-
$553439c3ffb3e492$exports = {
|
|
1031
|
-
"dismiss": `Odbaci`
|
|
1032
|
-
};
|
|
1033
1017
|
|
|
1034
1018
|
|
|
1035
|
-
var $74cf411061b983a2$exports = {};
|
|
1036
|
-
$74cf411061b983a2$exports = {
|
|
1037
|
-
"dismiss": `Elutas\xedt\xe1s`
|
|
1038
|
-
};
|
|
1039
1019
|
|
|
1040
1020
|
|
|
1041
|
-
var $e933f298574dc435$exports = {};
|
|
1042
|
-
$e933f298574dc435$exports = {
|
|
1043
|
-
"dismiss": `Ignora`
|
|
1044
|
-
};
|
|
1045
1021
|
|
|
1046
1022
|
|
|
1047
|
-
var $ac91fc9fe02f71f6$exports = {};
|
|
1048
|
-
$ac91fc9fe02f71f6$exports = {
|
|
1049
|
-
"dismiss": `\u{9589}\u{3058}\u{308B}`
|
|
1050
|
-
};
|
|
1051
1023
|
|
|
1052
1024
|
|
|
1053
|
-
var $52b96f86422025af$exports = {};
|
|
1054
|
-
$52b96f86422025af$exports = {
|
|
1055
|
-
"dismiss": `\u{BB34}\u{C2DC}`
|
|
1056
|
-
};
|
|
1057
1025
|
|
|
1058
1026
|
|
|
1059
|
-
var $c0d724c3e51dafa6$exports = {};
|
|
1060
|
-
$c0d724c3e51dafa6$exports = {
|
|
1061
|
-
"dismiss": `Atmesti`
|
|
1062
|
-
};
|
|
1063
1027
|
|
|
1064
1028
|
|
|
1065
|
-
var $c92899672a3fe72e$exports = {};
|
|
1066
|
-
$c92899672a3fe72e$exports = {
|
|
1067
|
-
"dismiss": `Ner\u{101}d\u{12B}t`
|
|
1068
|
-
};
|
|
1069
1029
|
|
|
1070
1030
|
|
|
1071
|
-
var $9f576b39d8e7a9d6$exports = {};
|
|
1072
|
-
$9f576b39d8e7a9d6$exports = {
|
|
1073
|
-
"dismiss": `Lukk`
|
|
1074
|
-
};
|
|
1075
1031
|
|
|
1076
1032
|
|
|
1077
|
-
var $9d025808aeec81a7$exports = {};
|
|
1078
|
-
$9d025808aeec81a7$exports = {
|
|
1079
|
-
"dismiss": `Negeren`
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
var $fce709921e2c0fa6$exports = {};
|
|
1084
|
-
$fce709921e2c0fa6$exports = {
|
|
1085
|
-
"dismiss": `Zignoruj`
|
|
1086
|
-
};
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
var $2599cf0c4ab37f59$exports = {};
|
|
1090
|
-
$2599cf0c4ab37f59$exports = {
|
|
1091
|
-
"dismiss": `Descartar`
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
var $3c220ae7ef8a35fd$exports = {};
|
|
1096
|
-
$3c220ae7ef8a35fd$exports = {
|
|
1097
|
-
"dismiss": `Dispensar`
|
|
1098
|
-
};
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
var $93562b5094072f54$exports = {};
|
|
1102
|
-
$93562b5094072f54$exports = {
|
|
1103
|
-
"dismiss": `Revocare`
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
var $cd9e2abd0d06c7b4$exports = {};
|
|
1108
|
-
$cd9e2abd0d06c7b4$exports = {
|
|
1109
|
-
"dismiss": `\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`
|
|
1110
|
-
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
var $45375701f409adf1$exports = {};
|
|
1114
|
-
$45375701f409adf1$exports = {
|
|
1115
|
-
"dismiss": `Zru\u{161}i\u{165}`
|
|
1116
|
-
};
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
var $27fab53a576de9dd$exports = {};
|
|
1120
|
-
$27fab53a576de9dd$exports = {
|
|
1121
|
-
"dismiss": `Opusti`
|
|
1122
|
-
};
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
var $4438748d9952e7c7$exports = {};
|
|
1126
|
-
$4438748d9952e7c7$exports = {
|
|
1127
|
-
"dismiss": `Odbaci`
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
var $0936d7347ef4da4c$exports = {};
|
|
1132
|
-
$0936d7347ef4da4c$exports = {
|
|
1133
|
-
"dismiss": `Avvisa`
|
|
1134
|
-
};
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
var $29700c92185d38f8$exports = {};
|
|
1138
|
-
$29700c92185d38f8$exports = {
|
|
1139
|
-
"dismiss": `Kapat`
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
var $662ccaf2be4c25b3$exports = {};
|
|
1144
|
-
$662ccaf2be4c25b3$exports = {
|
|
1145
|
-
"dismiss": `\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
var $d80a27deda7cdb3c$exports = {};
|
|
1150
|
-
$d80a27deda7cdb3c$exports = {
|
|
1151
|
-
"dismiss": `\u{53D6}\u{6D88}`
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
var $2b2734393847c884$exports = {};
|
|
1156
|
-
$2b2734393847c884$exports = {
|
|
1157
|
-
"dismiss": `\u{95DC}\u{9589}`
|
|
1158
|
-
};
|
|
1159
1033
|
|
|
1160
1034
|
|
|
1161
1035
|
$a2f21f5f14f60553$exports = {
|
|
@@ -1202,7 +1076,7 @@ $a2f21f5f14f60553$exports = {
|
|
|
1202
1076
|
|
|
1203
1077
|
function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
|
|
1204
1078
|
let { onDismiss: onDismiss, ...otherProps } = props;
|
|
1205
|
-
let stringFormatter = (0, $k7QOs$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($a2f21f5f14f60553$exports))));
|
|
1079
|
+
let stringFormatter = (0, $k7QOs$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($a2f21f5f14f60553$exports))), "@react-aria/overlays");
|
|
1206
1080
|
let labels = (0, $k7QOs$useLabels)(otherProps, stringFormatter.format("dismiss"));
|
|
1207
1081
|
let onClick = ()=>{
|
|
1208
1082
|
if (onDismiss) onDismiss();
|
|
@@ -1210,7 +1084,11 @@ function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
|
|
|
1210
1084
|
return /*#__PURE__*/ (0, $k7QOs$react).createElement((0, $k7QOs$VisuallyHidden), null, /*#__PURE__*/ (0, $k7QOs$react).createElement("button", {
|
|
1211
1085
|
...labels,
|
|
1212
1086
|
tabIndex: -1,
|
|
1213
|
-
onClick: onClick
|
|
1087
|
+
onClick: onClick,
|
|
1088
|
+
style: {
|
|
1089
|
+
width: 1,
|
|
1090
|
+
height: 1
|
|
1091
|
+
}
|
|
1214
1092
|
}));
|
|
1215
1093
|
}
|
|
1216
1094
|
|
|
@@ -1345,23 +1223,24 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body
|
|
|
1345
1223
|
|
|
1346
1224
|
|
|
1347
1225
|
function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
1348
|
-
let { triggerRef: triggerRef, popoverRef: popoverRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, ...otherProps } = props;
|
|
1226
|
+
let { triggerRef: triggerRef, popoverRef: popoverRef, isNonModal: isNonModal, isKeyboardDismissDisabled: isKeyboardDismissDisabled, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, ...otherProps } = props;
|
|
1349
1227
|
let { overlayProps: overlayProps, underlayProps: underlayProps } = (0, $a11501f3d1d39e6c$export$ea8f71083e90600f)({
|
|
1350
1228
|
isOpen: state.isOpen,
|
|
1351
1229
|
onClose: state.close,
|
|
1352
1230
|
shouldCloseOnBlur: true,
|
|
1353
1231
|
isDismissable: !isNonModal,
|
|
1354
|
-
isKeyboardDismissDisabled: isKeyboardDismissDisabled
|
|
1232
|
+
isKeyboardDismissDisabled: isKeyboardDismissDisabled,
|
|
1233
|
+
shouldCloseOnInteractOutside: shouldCloseOnInteractOutside
|
|
1355
1234
|
}, popoverRef);
|
|
1356
1235
|
let { overlayProps: positionProps, arrowProps: arrowProps, placement: placement } = (0, $2a41e45df1593e64$export$d39e1813b3bdd0e1)({
|
|
1357
1236
|
...otherProps,
|
|
1358
1237
|
targetRef: triggerRef,
|
|
1359
1238
|
overlayRef: popoverRef,
|
|
1360
1239
|
isOpen: state.isOpen,
|
|
1361
|
-
onClose: null
|
|
1240
|
+
onClose: isNonModal ? state.close : null
|
|
1362
1241
|
});
|
|
1363
1242
|
(0, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18)({
|
|
1364
|
-
isDisabled: isNonModal
|
|
1243
|
+
isDisabled: isNonModal || !state.isOpen
|
|
1365
1244
|
});
|
|
1366
1245
|
(0, $k7QOs$useLayoutEffect)(()=>{
|
|
1367
1246
|
if (state.isOpen && !isNonModal && popoverRef.current) return (0, $5e3802645cc19319$export$1c3ebcada18427bf)([
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,MAAM,CAAC;AACvC","sources":["packages/@react-aria/overlays/intl/it-IT.json"],"sourcesContent":["{\n \"dismiss\": \"Ignora\"\n}\n"],"names":[],"version":3,"file":"it-IT.main.js.map"}
|
package/dist/it-IT.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,MAAM,CAAC;AACvC","sources":["packages/@react-aria/overlays/intl/it-IT.json"],"sourcesContent":["{\n \"dismiss\": \"Ignora\"\n}\n"],"names":[],"version":3,"file":"it-IT.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,wBAAG,CAAC;AACpC","sources":["packages/@react-aria/overlays/intl/ja-JP.json"],"sourcesContent":["{\n \"dismiss\": \"閉じる\"\n}\n"],"names":[],"version":3,"file":"ja-JP.main.js.map"}
|
package/dist/ja-JP.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,wBAAG,CAAC;AACpC","sources":["packages/@react-aria/overlays/intl/ja-JP.json"],"sourcesContent":["{\n \"dismiss\": \"閉じる\"\n}\n"],"names":[],"version":3,"file":"ja-JP.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,gBAAE,CAAC;AACnC","sources":["packages/@react-aria/overlays/intl/ko-KR.json"],"sourcesContent":["{\n \"dismiss\": \"무시\"\n}\n"],"names":[],"version":3,"file":"ko-KR.main.js.map"}
|
package/dist/ko-KR.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,gBAAE,CAAC;AACnC","sources":["packages/@react-aria/overlays/intl/ko-KR.json"],"sourcesContent":["{\n \"dismiss\": \"무시\"\n}\n"],"names":[],"version":3,"file":"ko-KR.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,OAAO,CAAC;AACxC","sources":["packages/@react-aria/overlays/intl/lt-LT.json"],"sourcesContent":["{\n \"dismiss\": \"Atmesti\"\n}\n"],"names":[],"version":3,"file":"lt-LT.main.js.map"}
|
package/dist/lt-LT.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,OAAO,CAAC;AACxC","sources":["packages/@react-aria/overlays/intl/lt-LT.json"],"sourcesContent":["{\n \"dismiss\": \"Atmesti\"\n}\n"],"names":[],"version":3,"file":"lt-LT.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,WAAW,CAAC,mBAAO,CAAC;AACxC","sources":["packages/@react-aria/overlays/intl/lv-LV.json"],"sourcesContent":["{\n \"dismiss\": \"Nerādīt\"\n}\n"],"names":[],"version":3,"file":"lv-LV.main.js.map"}
|
package/dist/lv-LV.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,WAAW,CAAC,mBAAO,CAAC;AACxC","sources":["packages/@react-aria/overlays/intl/lv-LV.json"],"sourcesContent":["{\n \"dismiss\": \"Nerādīt\"\n}\n"],"names":[],"version":3,"file":"lv-LV.module.js.map"}
|