@react-spectrum/menu 3.22.10 → 3.23.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/import.mjs +6 -8
- package/dist/main.js +12 -14
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -8
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +8 -0
- package/package.json +14 -46
- package/src/index.ts +9 -9
- package/dist/ActionMenu.main.js +0 -67
- package/dist/ActionMenu.main.js.map +0 -1
- package/dist/ActionMenu.mjs +0 -62
- package/dist/ActionMenu.module.js +0 -62
- package/dist/ActionMenu.module.js.map +0 -1
- package/dist/ContextualHelpTrigger.main.js +0 -192
- package/dist/ContextualHelpTrigger.main.js.map +0 -1
- package/dist/ContextualHelpTrigger.mjs +0 -187
- package/dist/ContextualHelpTrigger.module.js +0 -187
- package/dist/ContextualHelpTrigger.module.js.map +0 -1
- package/dist/Menu.main.js +0 -235
- package/dist/Menu.main.js.map +0 -1
- package/dist/Menu.mjs +0 -229
- package/dist/Menu.module.js +0 -229
- package/dist/Menu.module.js.map +0 -1
- package/dist/MenuItem.main.js +0 -149
- package/dist/MenuItem.main.js.map +0 -1
- package/dist/MenuItem.mjs +0 -144
- package/dist/MenuItem.module.js +0 -144
- package/dist/MenuItem.module.js.map +0 -1
- package/dist/MenuSection.main.js +0 -81
- package/dist/MenuSection.main.js.map +0 -1
- package/dist/MenuSection.mjs +0 -76
- package/dist/MenuSection.module.js +0 -76
- package/dist/MenuSection.module.js.map +0 -1
- package/dist/MenuTrigger.main.js +0 -128
- package/dist/MenuTrigger.main.js.map +0 -1
- package/dist/MenuTrigger.mjs +0 -123
- package/dist/MenuTrigger.module.js +0 -123
- package/dist/MenuTrigger.module.js.map +0 -1
- package/dist/Popover.main.js +0 -196
- package/dist/Popover.main.js.map +0 -1
- package/dist/Popover.mjs +0 -191
- package/dist/Popover.module.js +0 -191
- package/dist/Popover.module.js.map +0 -1
- package/dist/SubmenuTrigger.main.js +0 -154
- package/dist/SubmenuTrigger.main.js.map +0 -1
- package/dist/SubmenuTrigger.mjs +0 -149
- package/dist/SubmenuTrigger.module.js +0 -149
- package/dist/SubmenuTrigger.module.js.map +0 -1
- package/dist/Underlay.main.js +0 -54
- package/dist/Underlay.main.js.map +0 -1
- package/dist/Underlay.mjs +0 -49
- package/dist/Underlay.module.js +0 -49
- package/dist/Underlay.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -8
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -10
- package/dist/ar-AE.module.js +0 -10
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -8
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -10
- package/dist/bg-BG.module.js +0 -10
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/calculatePosition.main.js +0 -392
- package/dist/calculatePosition.main.js.map +0 -1
- package/dist/calculatePosition.mjs +0 -386
- package/dist/calculatePosition.module.js +0 -386
- package/dist/calculatePosition.module.js.map +0 -1
- package/dist/context.main.js +0 -43
- package/dist/context.main.js.map +0 -1
- package/dist/context.mjs +0 -29
- package/dist/context.module.js +0 -29
- package/dist/context.module.js.map +0 -1
- package/dist/contextualhelp_vars_css.main.js +0 -23
- package/dist/contextualhelp_vars_css.main.js.map +0 -1
- package/dist/contextualhelp_vars_css.mjs +0 -25
- package/dist/contextualhelp_vars_css.module.js +0 -25
- package/dist/contextualhelp_vars_css.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -8
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -10
- package/dist/cs-CZ.module.js +0 -10
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -8
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -10
- package/dist/da-DK.module.js +0 -10
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -8
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -10
- package/dist/de-DE.module.js +0 -10
- package/dist/de-DE.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -8
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -10
- package/dist/el-GR.module.js +0 -10
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -8
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -10
- package/dist/en-US.module.js +0 -10
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -8
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -10
- package/dist/es-ES.module.js +0 -10
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -8
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -10
- package/dist/et-EE.module.js +0 -10
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -8
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -10
- package/dist/fi-FI.module.js +0 -10
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -8
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -10
- package/dist/fr-FR.module.js +0 -10
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -8
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -10
- package/dist/he-IL.module.js +0 -10
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -8
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -10
- package/dist/hr-HR.module.js +0 -10
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -8
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -10
- package/dist/hu-HU.module.js +0 -10
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -8
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -10
- package/dist/it-IT.module.js +0 -10
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -8
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -10
- package/dist/ja-JP.module.js +0 -10
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -8
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -10
- package/dist/ko-KR.module.js +0 -10
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -8
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -10
- package/dist/lt-LT.module.js +0 -10
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -8
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -10
- package/dist/lv-LV.module.js +0 -10
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/menu.2259a533.css +0 -210
- package/dist/menu.2259a533.css.map +0 -1
- package/dist/menu.2ec1fdaf.css +0 -570
- package/dist/menu.2ec1fdaf.css.map +0 -1
- package/dist/menu.359a0c0a.css +0 -131
- package/dist/menu.359a0c0a.css.map +0 -1
- package/dist/menu.57b3a408.css +0 -12
- package/dist/menu.57b3a408.css.map +0 -1
- package/dist/menu.5b49954a.css +0 -30
- package/dist/menu.5b49954a.css.map +0 -1
- package/dist/menu_vars_css.main.js +0 -177
- package/dist/menu_vars_css.main.js.map +0 -1
- package/dist/menu_vars_css.mjs +0 -179
- package/dist/menu_vars_css.module.js +0 -179
- package/dist/menu_vars_css.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -8
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -10
- package/dist/nb-NO.module.js +0 -10
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -8
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -10
- package/dist/nl-NL.module.js +0 -10
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/overlays_css.main.js +0 -35
- package/dist/overlays_css.main.js.map +0 -1
- package/dist/overlays_css.mjs +0 -37
- package/dist/overlays_css.module.js +0 -37
- package/dist/overlays_css.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -8
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -10
- package/dist/pl-PL.module.js +0 -10
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/popover_vars_css.main.js +0 -83
- package/dist/popover_vars_css.main.js.map +0 -1
- package/dist/popover_vars_css.mjs +0 -85
- package/dist/popover_vars_css.module.js +0 -85
- package/dist/popover_vars_css.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -8
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -10
- package/dist/pt-BR.module.js +0 -10
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -8
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -10
- package/dist/pt-PT.module.js +0 -10
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -8
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -10
- package/dist/ro-RO.module.js +0 -10
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -8
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -10
- package/dist/ru-RU.module.js +0 -10
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -8
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -10
- package/dist/sk-SK.module.js +0 -10
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -8
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -10
- package/dist/sl-SI.module.js +0 -10
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -8
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -10
- package/dist/sr-SP.module.js +0 -10
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -8
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -10
- package/dist/sv-SE.module.js +0 -10
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -8
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -10
- package/dist/tr-TR.module.js +0 -10
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -43
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -8
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -10
- package/dist/uk-UA.module.js +0 -10
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/underlay_vars_css.main.js +0 -50
- package/dist/underlay_vars_css.main.js.map +0 -1
- package/dist/underlay_vars_css.mjs +0 -52
- package/dist/underlay_vars_css.module.js +0 -52
- package/dist/underlay_vars_css.module.js.map +0 -1
- package/dist/useCloseOnScroll.main.js +0 -51
- package/dist/useCloseOnScroll.main.js.map +0 -1
- package/dist/useCloseOnScroll.mjs +0 -46
- package/dist/useCloseOnScroll.module.js +0 -46
- package/dist/useCloseOnScroll.module.js.map +0 -1
- package/dist/useOverlayPosition.main.js +0 -225
- package/dist/useOverlayPosition.main.js.map +0 -1
- package/dist/useOverlayPosition.mjs +0 -220
- package/dist/useOverlayPosition.module.js +0 -220
- package/dist/useOverlayPosition.module.js.map +0 -1
- package/dist/usePopover.main.js +0 -73
- package/dist/usePopover.main.js.map +0 -1
- package/dist/usePopover.mjs +0 -68
- package/dist/usePopover.module.js +0 -68
- package/dist/usePopover.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -8
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -10
- package/dist/zh-CN.module.js +0 -10
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -8
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -10
- package/dist/zh-TW.module.js +0 -10
- package/dist/zh-TW.module.js.map +0 -1
- package/src/ActionMenu.tsx +0 -58
- package/src/ContextualHelpTrigger.tsx +0 -194
- package/src/Menu.tsx +0 -228
- package/src/MenuItem.tsx +0 -159
- package/src/MenuSection.tsx +0 -100
- package/src/MenuTrigger.tsx +0 -125
- package/src/Popover.tsx +0 -240
- package/src/SubmenuTrigger.tsx +0 -154
- package/src/Underlay.tsx +0 -43
- package/src/calculatePosition.ts +0 -627
- package/src/context.ts +0 -63
- package/src/overlays.css +0 -32
- package/src/useCloseOnScroll.ts +0 -65
- package/src/useOverlayPosition.ts +0 -327
- package/src/usePopover.ts +0 -136
package/dist/SubmenuTrigger.mjs
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import {MenuContext as $d94604d52c3e3feb$export$c7e742effb1c51e2, SubmenuTriggerContext as $d94604d52c3e3feb$export$8d97fe02339fc0e3, useMenuStateContext as $d94604d52c3e3feb$export$efa3856fc0e85e7f} from "./context.mjs";
|
|
2
|
-
import {Popover as $bf810f3fb07f8592$export$5b6b19405a83ff9d} from "./Popover.mjs";
|
|
3
|
-
import "./menu.2ec1fdaf.css";
|
|
4
|
-
import $byZ4r$menu_vars_cssmodulejs from "./menu_vars_css.mjs";
|
|
5
|
-
import {useIsMobileDevice as $byZ4r$useIsMobileDevice, classNames as $byZ4r$classNames} from "@react-spectrum/utils";
|
|
6
|
-
import {nodeContains as $byZ4r$nodeContains, mergeProps as $byZ4r$mergeProps} from "@react-aria/utils";
|
|
7
|
-
import $byZ4r$react, {useRef as $byZ4r$useRef} from "react";
|
|
8
|
-
import $byZ4r$reactdom from "react-dom";
|
|
9
|
-
import {useLocale as $byZ4r$useLocale} from "@react-aria/i18n";
|
|
10
|
-
import {useSubmenuTrigger as $byZ4r$useSubmenuTrigger} from "@react-aria/menu";
|
|
11
|
-
import {useSubmenuTriggerState as $byZ4r$useSubmenuTriggerState} from "@react-stately/menu";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function $parcel$interopDefault(a) {
|
|
15
|
-
return a && a.__esModule ? a.default : a;
|
|
16
|
-
}
|
|
17
|
-
/*
|
|
18
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
-
*
|
|
23
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
-
* governing permissions and limitations under the License.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
function $3f13e15cf95c3893$var$SubmenuTrigger(props) {
|
|
38
|
-
let triggerRef = (0, $byZ4r$useRef)(null);
|
|
39
|
-
let { children: children, targetKey: targetKey } = props;
|
|
40
|
-
let [menuTrigger, menu] = (0, $byZ4r$react).Children.toArray(children);
|
|
41
|
-
let { popoverContainer: popoverContainer, trayContainerRef: trayContainerRef, menu: parentMenuRef, submenu: menuRef, rootMenuTriggerState: rootMenuTriggerState } = (0, $d94604d52c3e3feb$export$efa3856fc0e85e7f)();
|
|
42
|
-
let submenuTriggerState = (0, $byZ4r$useSubmenuTriggerState)({
|
|
43
|
-
triggerKey: targetKey
|
|
44
|
-
}, rootMenuTriggerState);
|
|
45
|
-
let { submenuTriggerProps: submenuTriggerProps, submenuProps: submenuProps, popoverProps: popoverProps } = (0, $byZ4r$useSubmenuTrigger)({
|
|
46
|
-
parentMenuRef: parentMenuRef,
|
|
47
|
-
submenuRef: menuRef
|
|
48
|
-
}, submenuTriggerState, triggerRef);
|
|
49
|
-
let isMobile = (0, $byZ4r$useIsMobileDevice)();
|
|
50
|
-
let onBackButtonPress = ()=>{
|
|
51
|
-
submenuTriggerState.close();
|
|
52
|
-
if (parentMenuRef.current && !(0, $byZ4r$nodeContains)(parentMenuRef.current, document.activeElement)) parentMenuRef.current.focus();
|
|
53
|
-
};
|
|
54
|
-
let { direction: direction } = (0, $byZ4r$useLocale)();
|
|
55
|
-
let mobileSubmenuKeyDown = (e)=>{
|
|
56
|
-
switch(e.key){
|
|
57
|
-
case 'ArrowLeft':
|
|
58
|
-
var _triggerRef_current;
|
|
59
|
-
if (direction === 'ltr') (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();
|
|
60
|
-
break;
|
|
61
|
-
case 'ArrowRight':
|
|
62
|
-
var _triggerRef_current1;
|
|
63
|
-
if (direction === 'rtl') (_triggerRef_current1 = triggerRef.current) === null || _triggerRef_current1 === void 0 ? void 0 : _triggerRef_current1.focus();
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
let overlay;
|
|
68
|
-
if (isMobile) {
|
|
69
|
-
var _submenuProps;
|
|
70
|
-
delete submenuTriggerProps.onBlur;
|
|
71
|
-
delete submenuTriggerProps.onHoverChange;
|
|
72
|
-
var _autoFocus;
|
|
73
|
-
(_autoFocus = (_submenuProps = submenuProps).autoFocus) !== null && _autoFocus !== void 0 ? _autoFocus : _submenuProps.autoFocus = true;
|
|
74
|
-
if (trayContainerRef.current && submenuTriggerState.isOpen) overlay = /*#__PURE__*/ (0, $byZ4r$reactdom).createPortal(menu, trayContainerRef.current);
|
|
75
|
-
} else {
|
|
76
|
-
let onDismissButtonPress = ()=>{
|
|
77
|
-
var _parentMenuRef_current;
|
|
78
|
-
submenuTriggerState.close();
|
|
79
|
-
(_parentMenuRef_current = parentMenuRef.current) === null || _parentMenuRef_current === void 0 ? void 0 : _parentMenuRef_current.focus();
|
|
80
|
-
};
|
|
81
|
-
overlay = /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $bf810f3fb07f8592$export$5b6b19405a83ff9d), {
|
|
82
|
-
...popoverProps,
|
|
83
|
-
onDismissButtonPress: onDismissButtonPress,
|
|
84
|
-
UNSAFE_className: (0, $byZ4r$classNames)((0, ($parcel$interopDefault($byZ4r$menu_vars_cssmodulejs))), 'spectrum-Submenu-popover'),
|
|
85
|
-
container: popoverContainer,
|
|
86
|
-
containerPadding: 0,
|
|
87
|
-
enableBothDismissButtons: true,
|
|
88
|
-
UNSAFE_style: {
|
|
89
|
-
clipPath: 'unset',
|
|
90
|
-
overflow: 'visible',
|
|
91
|
-
borderWidth: '0px'
|
|
92
|
-
},
|
|
93
|
-
state: submenuTriggerState,
|
|
94
|
-
triggerRef: triggerRef,
|
|
95
|
-
scrollRef: menuRef,
|
|
96
|
-
placement: "end top",
|
|
97
|
-
hideArrow: true
|
|
98
|
-
}, menu);
|
|
99
|
-
}
|
|
100
|
-
let menuContext = {
|
|
101
|
-
...(0, $byZ4r$mergeProps)(submenuProps, {
|
|
102
|
-
ref: menuRef,
|
|
103
|
-
UNSAFE_style: isMobile ? {
|
|
104
|
-
width: '100%',
|
|
105
|
-
maxHeight: 'inherit'
|
|
106
|
-
} : undefined,
|
|
107
|
-
UNSAFE_className: (0, $byZ4r$classNames)((0, ($parcel$interopDefault($byZ4r$menu_vars_cssmodulejs))), {
|
|
108
|
-
'spectrum-Menu-popover': !isMobile
|
|
109
|
-
}),
|
|
110
|
-
...isMobile && {
|
|
111
|
-
onBackButtonPress: onBackButtonPress,
|
|
112
|
-
onKeyDown: mobileSubmenuKeyDown
|
|
113
|
-
}
|
|
114
|
-
})
|
|
115
|
-
};
|
|
116
|
-
return /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $byZ4r$react).Fragment, null, /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $d94604d52c3e3feb$export$8d97fe02339fc0e3).Provider, {
|
|
117
|
-
value: {
|
|
118
|
-
triggerRef: triggerRef,
|
|
119
|
-
...submenuTriggerProps
|
|
120
|
-
}
|
|
121
|
-
}, menuTrigger), /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $d94604d52c3e3feb$export$c7e742effb1c51e2).Provider, {
|
|
122
|
-
value: menuContext
|
|
123
|
-
}, overlay));
|
|
124
|
-
}
|
|
125
|
-
$3f13e15cf95c3893$var$SubmenuTrigger.getCollectionNode = function*(props) {
|
|
126
|
-
let childArray = [];
|
|
127
|
-
(0, $byZ4r$react).Children.forEach(props.children, (child)=>{
|
|
128
|
-
if (/*#__PURE__*/ (0, $byZ4r$react).isValidElement(child)) childArray.push(child);
|
|
129
|
-
});
|
|
130
|
-
let [trigger] = childArray;
|
|
131
|
-
let [, content] = props.children;
|
|
132
|
-
yield {
|
|
133
|
-
element: /*#__PURE__*/ (0, $byZ4r$react).cloneElement(trigger, {
|
|
134
|
-
...trigger.props,
|
|
135
|
-
hasChildItems: true,
|
|
136
|
-
isTrigger: true
|
|
137
|
-
}),
|
|
138
|
-
wrapper: (element)=>/*#__PURE__*/ (0, $byZ4r$react).createElement($3f13e15cf95c3893$var$SubmenuTrigger, {
|
|
139
|
-
key: element.key,
|
|
140
|
-
targetKey: element.key,
|
|
141
|
-
...props
|
|
142
|
-
}, element, content)
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
let $3f13e15cf95c3893$export$ecabc99eeffab7ca = $3f13e15cf95c3893$var$SubmenuTrigger;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
export {$3f13e15cf95c3893$export$ecabc99eeffab7ca as SubmenuTrigger};
|
|
149
|
-
//# sourceMappingURL=SubmenuTrigger.module.js.map
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import {MenuContext as $d94604d52c3e3feb$export$c7e742effb1c51e2, SubmenuTriggerContext as $d94604d52c3e3feb$export$8d97fe02339fc0e3, useMenuStateContext as $d94604d52c3e3feb$export$efa3856fc0e85e7f} from "./context.module.js";
|
|
2
|
-
import {Popover as $bf810f3fb07f8592$export$5b6b19405a83ff9d} from "./Popover.module.js";
|
|
3
|
-
import "./menu.2ec1fdaf.css";
|
|
4
|
-
import $byZ4r$menu_vars_cssmodulejs from "./menu_vars_css.module.js";
|
|
5
|
-
import {useIsMobileDevice as $byZ4r$useIsMobileDevice, classNames as $byZ4r$classNames} from "@react-spectrum/utils";
|
|
6
|
-
import {nodeContains as $byZ4r$nodeContains, mergeProps as $byZ4r$mergeProps} from "@react-aria/utils";
|
|
7
|
-
import $byZ4r$react, {useRef as $byZ4r$useRef} from "react";
|
|
8
|
-
import $byZ4r$reactdom from "react-dom";
|
|
9
|
-
import {useLocale as $byZ4r$useLocale} from "@react-aria/i18n";
|
|
10
|
-
import {useSubmenuTrigger as $byZ4r$useSubmenuTrigger} from "@react-aria/menu";
|
|
11
|
-
import {useSubmenuTriggerState as $byZ4r$useSubmenuTriggerState} from "@react-stately/menu";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function $parcel$interopDefault(a) {
|
|
15
|
-
return a && a.__esModule ? a.default : a;
|
|
16
|
-
}
|
|
17
|
-
/*
|
|
18
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
-
*
|
|
23
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
-
* governing permissions and limitations under the License.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
function $3f13e15cf95c3893$var$SubmenuTrigger(props) {
|
|
38
|
-
let triggerRef = (0, $byZ4r$useRef)(null);
|
|
39
|
-
let { children: children, targetKey: targetKey } = props;
|
|
40
|
-
let [menuTrigger, menu] = (0, $byZ4r$react).Children.toArray(children);
|
|
41
|
-
let { popoverContainer: popoverContainer, trayContainerRef: trayContainerRef, menu: parentMenuRef, submenu: menuRef, rootMenuTriggerState: rootMenuTriggerState } = (0, $d94604d52c3e3feb$export$efa3856fc0e85e7f)();
|
|
42
|
-
let submenuTriggerState = (0, $byZ4r$useSubmenuTriggerState)({
|
|
43
|
-
triggerKey: targetKey
|
|
44
|
-
}, rootMenuTriggerState);
|
|
45
|
-
let { submenuTriggerProps: submenuTriggerProps, submenuProps: submenuProps, popoverProps: popoverProps } = (0, $byZ4r$useSubmenuTrigger)({
|
|
46
|
-
parentMenuRef: parentMenuRef,
|
|
47
|
-
submenuRef: menuRef
|
|
48
|
-
}, submenuTriggerState, triggerRef);
|
|
49
|
-
let isMobile = (0, $byZ4r$useIsMobileDevice)();
|
|
50
|
-
let onBackButtonPress = ()=>{
|
|
51
|
-
submenuTriggerState.close();
|
|
52
|
-
if (parentMenuRef.current && !(0, $byZ4r$nodeContains)(parentMenuRef.current, document.activeElement)) parentMenuRef.current.focus();
|
|
53
|
-
};
|
|
54
|
-
let { direction: direction } = (0, $byZ4r$useLocale)();
|
|
55
|
-
let mobileSubmenuKeyDown = (e)=>{
|
|
56
|
-
switch(e.key){
|
|
57
|
-
case 'ArrowLeft':
|
|
58
|
-
var _triggerRef_current;
|
|
59
|
-
if (direction === 'ltr') (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();
|
|
60
|
-
break;
|
|
61
|
-
case 'ArrowRight':
|
|
62
|
-
var _triggerRef_current1;
|
|
63
|
-
if (direction === 'rtl') (_triggerRef_current1 = triggerRef.current) === null || _triggerRef_current1 === void 0 ? void 0 : _triggerRef_current1.focus();
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
let overlay;
|
|
68
|
-
if (isMobile) {
|
|
69
|
-
var _submenuProps;
|
|
70
|
-
delete submenuTriggerProps.onBlur;
|
|
71
|
-
delete submenuTriggerProps.onHoverChange;
|
|
72
|
-
var _autoFocus;
|
|
73
|
-
(_autoFocus = (_submenuProps = submenuProps).autoFocus) !== null && _autoFocus !== void 0 ? _autoFocus : _submenuProps.autoFocus = true;
|
|
74
|
-
if (trayContainerRef.current && submenuTriggerState.isOpen) overlay = /*#__PURE__*/ (0, $byZ4r$reactdom).createPortal(menu, trayContainerRef.current);
|
|
75
|
-
} else {
|
|
76
|
-
let onDismissButtonPress = ()=>{
|
|
77
|
-
var _parentMenuRef_current;
|
|
78
|
-
submenuTriggerState.close();
|
|
79
|
-
(_parentMenuRef_current = parentMenuRef.current) === null || _parentMenuRef_current === void 0 ? void 0 : _parentMenuRef_current.focus();
|
|
80
|
-
};
|
|
81
|
-
overlay = /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $bf810f3fb07f8592$export$5b6b19405a83ff9d), {
|
|
82
|
-
...popoverProps,
|
|
83
|
-
onDismissButtonPress: onDismissButtonPress,
|
|
84
|
-
UNSAFE_className: (0, $byZ4r$classNames)((0, ($parcel$interopDefault($byZ4r$menu_vars_cssmodulejs))), 'spectrum-Submenu-popover'),
|
|
85
|
-
container: popoverContainer,
|
|
86
|
-
containerPadding: 0,
|
|
87
|
-
enableBothDismissButtons: true,
|
|
88
|
-
UNSAFE_style: {
|
|
89
|
-
clipPath: 'unset',
|
|
90
|
-
overflow: 'visible',
|
|
91
|
-
borderWidth: '0px'
|
|
92
|
-
},
|
|
93
|
-
state: submenuTriggerState,
|
|
94
|
-
triggerRef: triggerRef,
|
|
95
|
-
scrollRef: menuRef,
|
|
96
|
-
placement: "end top",
|
|
97
|
-
hideArrow: true
|
|
98
|
-
}, menu);
|
|
99
|
-
}
|
|
100
|
-
let menuContext = {
|
|
101
|
-
...(0, $byZ4r$mergeProps)(submenuProps, {
|
|
102
|
-
ref: menuRef,
|
|
103
|
-
UNSAFE_style: isMobile ? {
|
|
104
|
-
width: '100%',
|
|
105
|
-
maxHeight: 'inherit'
|
|
106
|
-
} : undefined,
|
|
107
|
-
UNSAFE_className: (0, $byZ4r$classNames)((0, ($parcel$interopDefault($byZ4r$menu_vars_cssmodulejs))), {
|
|
108
|
-
'spectrum-Menu-popover': !isMobile
|
|
109
|
-
}),
|
|
110
|
-
...isMobile && {
|
|
111
|
-
onBackButtonPress: onBackButtonPress,
|
|
112
|
-
onKeyDown: mobileSubmenuKeyDown
|
|
113
|
-
}
|
|
114
|
-
})
|
|
115
|
-
};
|
|
116
|
-
return /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $byZ4r$react).Fragment, null, /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $d94604d52c3e3feb$export$8d97fe02339fc0e3).Provider, {
|
|
117
|
-
value: {
|
|
118
|
-
triggerRef: triggerRef,
|
|
119
|
-
...submenuTriggerProps
|
|
120
|
-
}
|
|
121
|
-
}, menuTrigger), /*#__PURE__*/ (0, $byZ4r$react).createElement((0, $d94604d52c3e3feb$export$c7e742effb1c51e2).Provider, {
|
|
122
|
-
value: menuContext
|
|
123
|
-
}, overlay));
|
|
124
|
-
}
|
|
125
|
-
$3f13e15cf95c3893$var$SubmenuTrigger.getCollectionNode = function*(props) {
|
|
126
|
-
let childArray = [];
|
|
127
|
-
(0, $byZ4r$react).Children.forEach(props.children, (child)=>{
|
|
128
|
-
if (/*#__PURE__*/ (0, $byZ4r$react).isValidElement(child)) childArray.push(child);
|
|
129
|
-
});
|
|
130
|
-
let [trigger] = childArray;
|
|
131
|
-
let [, content] = props.children;
|
|
132
|
-
yield {
|
|
133
|
-
element: /*#__PURE__*/ (0, $byZ4r$react).cloneElement(trigger, {
|
|
134
|
-
...trigger.props,
|
|
135
|
-
hasChildItems: true,
|
|
136
|
-
isTrigger: true
|
|
137
|
-
}),
|
|
138
|
-
wrapper: (element)=>/*#__PURE__*/ (0, $byZ4r$react).createElement($3f13e15cf95c3893$var$SubmenuTrigger, {
|
|
139
|
-
key: element.key,
|
|
140
|
-
targetKey: element.key,
|
|
141
|
-
...props
|
|
142
|
-
}, element, content)
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
let $3f13e15cf95c3893$export$ecabc99eeffab7ca = $3f13e15cf95c3893$var$SubmenuTrigger;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
export {$3f13e15cf95c3893$export$ecabc99eeffab7ca as SubmenuTrigger};
|
|
149
|
-
//# sourceMappingURL=SubmenuTrigger.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"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","sources":["packages/@react-spectrum/menu/src/SubmenuTrigger.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useIsMobileDevice} from '@react-spectrum/utils';\nimport {Key} from '@react-types/shared';\nimport {MenuContext, SubmenuTriggerContext, useMenuStateContext} from './context';\nimport {mergeProps, nodeContains} from '@react-aria/utils';\nimport {Popover} from './Popover';\nimport React, {type JSX, ReactElement, useRef} from 'react';\nimport ReactDOM from 'react-dom';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useLocale} from '@react-aria/i18n';\nimport {useSubmenuTrigger} from '@react-aria/menu';\nimport {useSubmenuTriggerState} from '@react-stately/menu';\n\ninterface SubmenuTriggerProps {\n /**\n * The contents of the SubmenuTrigger - an Item and a Menu.\n */\n children: ReactElement<any>[],\n targetKey: Key\n}\n\nexport interface SpectrumSubmenuTriggerProps extends Omit<SubmenuTriggerProps, 'targetKey'> {}\n\nfunction SubmenuTrigger(props: SubmenuTriggerProps) {\n let triggerRef = useRef<HTMLDivElement>(null);\n let {\n children,\n targetKey\n } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let {popoverContainer, trayContainerRef, menu: parentMenuRef, submenu: menuRef, rootMenuTriggerState} = useMenuStateContext()!;\n let submenuTriggerState = useSubmenuTriggerState({triggerKey: targetKey}, rootMenuTriggerState!);\n let {submenuTriggerProps, submenuProps, popoverProps} = useSubmenuTrigger({\n parentMenuRef,\n submenuRef: menuRef\n }, submenuTriggerState, triggerRef);\n let isMobile = useIsMobileDevice();\n let onBackButtonPress = () => {\n submenuTriggerState.close();\n if (parentMenuRef.current && !nodeContains(parentMenuRef.current, document.activeElement)) {\n parentMenuRef.current.focus();\n }\n };\n\n let {direction} = useLocale();\n let mobileSubmenuKeyDown = (e: KeyboardEvent) => {\n switch (e.key) {\n case 'ArrowLeft':\n if (direction === 'ltr') {\n triggerRef.current?.focus();\n }\n break;\n case 'ArrowRight':\n if (direction === 'rtl') {\n triggerRef.current?.focus();\n }\n break;\n }\n };\n\n let overlay;\n\n if (isMobile) {\n delete submenuTriggerProps.onBlur;\n delete submenuTriggerProps.onHoverChange;\n submenuProps.autoFocus ??= true;\n if (trayContainerRef.current && submenuTriggerState.isOpen) {\n overlay = ReactDOM.createPortal(menu, trayContainerRef.current);\n }\n } else {\n let onDismissButtonPress = () => {\n submenuTriggerState.close();\n parentMenuRef.current?.focus();\n };\n\n overlay = (\n <Popover\n {...popoverProps}\n onDismissButtonPress={onDismissButtonPress}\n UNSAFE_className={classNames(styles, 'spectrum-Submenu-popover')}\n container={popoverContainer!}\n containerPadding={0}\n enableBothDismissButtons\n UNSAFE_style={{clipPath: 'unset', overflow: 'visible', borderWidth: '0px'}}\n state={submenuTriggerState}\n triggerRef={triggerRef}\n scrollRef={menuRef}\n placement=\"end top\"\n hideArrow>\n {menu}\n </Popover>\n );\n }\n\n let menuContext = {\n ...mergeProps(submenuProps, {\n ref: menuRef,\n UNSAFE_style: isMobile ? {\n width: '100%',\n maxHeight: 'inherit'\n } : undefined,\n UNSAFE_className: classNames(styles, {'spectrum-Menu-popover': !isMobile}),\n ...(isMobile && {\n onBackButtonPress,\n onKeyDown: mobileSubmenuKeyDown\n })\n })\n };\n\n return (\n <>\n <SubmenuTriggerContext.Provider value={{triggerRef, ...submenuTriggerProps}}>{menuTrigger}</SubmenuTriggerContext.Provider>\n <MenuContext.Provider value={menuContext}>\n {overlay}\n </MenuContext.Provider>\n </>\n );\n}\n\nSubmenuTrigger.getCollectionNode = function* (props: SpectrumSubmenuTriggerProps) {\n let childArray: ReactElement[] = [];\n React.Children.forEach(props.children, child => {\n if (React.isValidElement(child)) {\n childArray.push(child);\n }\n });\n let [trigger] = childArray;\n let [, content] = props.children as [ReactElement, ReactElement];\n\n yield {\n element: React.cloneElement(trigger, {...trigger.props as any, hasChildItems: true, isTrigger: true}),\n wrapper: (element) => (\n <SubmenuTrigger key={element.key} targetKey={element.key} {...props}>\n {element}\n {content}\n </SubmenuTrigger>\n )\n };\n};\n\nlet _SubmenuTrigger = SubmenuTrigger as unknown as (props: SpectrumSubmenuTriggerProps) => JSX.Element;\nexport {_SubmenuTrigger as SubmenuTrigger};\n"],"names":[],"version":3,"file":"SubmenuTrigger.module.js.map"}
|
package/dist/Underlay.main.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
require("./menu.359a0c0a.css");
|
|
2
|
-
var $42908e91b4c5f428$exports = require("./underlay_vars_css.main.js");
|
|
3
|
-
var $h7ylx$reactspectrumutils = require("@react-spectrum/utils");
|
|
4
|
-
var $h7ylx$reactariautils = require("@react-aria/utils");
|
|
5
|
-
var $h7ylx$react = require("react");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function $parcel$interopDefault(a) {
|
|
9
|
-
return a && a.__esModule ? a.default : a;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function $parcel$export(e, n, v, s) {
|
|
13
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
$parcel$export(module.exports, "Underlay", () => $986adbd937b58c55$export$f360afc887607b02);
|
|
17
|
-
/*
|
|
18
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
-
*
|
|
23
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
-
* governing permissions and limitations under the License.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function $986adbd937b58c55$export$f360afc887607b02({ isOpen: isOpen, isTransparent: isTransparent, ...otherProps }) {
|
|
32
|
-
let pageHeight = undefined;
|
|
33
|
-
if (typeof document !== 'undefined') {
|
|
34
|
-
let scrollingElement = (0, $h7ylx$reactariautils.isScrollable)(document.body) ? document.body : document.scrollingElement || document.documentElement;
|
|
35
|
-
// Prevent Firefox from adding scrollbars when the page has a fractional height.
|
|
36
|
-
let fractionalHeightDifference = scrollingElement.getBoundingClientRect().height % 1;
|
|
37
|
-
pageHeight = scrollingElement.scrollHeight - fractionalHeightDifference;
|
|
38
|
-
}
|
|
39
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($h7ylx$react))).createElement("div", {
|
|
40
|
-
"data-testid": "underlay",
|
|
41
|
-
...otherProps,
|
|
42
|
-
// Cover the entire document so iOS 26 Safari doesn't clip the underlay to the inner viewport.
|
|
43
|
-
style: {
|
|
44
|
-
height: pageHeight
|
|
45
|
-
},
|
|
46
|
-
className: (0, $h7ylx$reactspectrumutils.classNames)((0, ($parcel$interopDefault($42908e91b4c5f428$exports))), 'spectrum-Underlay', {
|
|
47
|
-
'is-open': isOpen,
|
|
48
|
-
'spectrum-Underlay--transparent': isTransparent
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=Underlay.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAYM,SAAS,0CAAS,UAAC,MAAM,iBAAE,aAAa,EAAE,GAAG,YAA0B;IAC5E,IAAI,aAAiC;IACrC,IAAI,OAAO,aAAa,aAAa;QACnC,IAAI,mBAAmB,CAAA,GAAA,kCAAW,EAAE,SAAS,IAAI,IAAI,SAAS,IAAI,GAAG,SAAS,gBAAgB,IAAI,SAAS,eAAe;QAC1H,gFAAgF;QAChF,IAAI,6BAA6B,iBAAiB,qBAAqB,GAAG,MAAM,GAAG;QACnF,aAAa,iBAAiB,YAAY,GAAG;IAC/C;IAEA,qBACE,0DAAC;QACC,eAAY;QACX,GAAG,UAAU;QACd,8FAA8F;QAC9F,OAAO;YAAC,QAAQ;QAAU;QAC1B,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAa,GAAG,qBAAqB;YACzD,WAAW;YACX,kCAAkC;QACpC;;AAEN","sources":["packages/@react-spectrum/menu/src/Underlay.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {isScrollable} from '@react-aria/utils';\nimport React, {JSX} from 'react';\nimport underlayStyles from '@adobe/spectrum-css-temp/components/underlay/vars.css';\n\ninterface UnderlayProps {\n isOpen?: boolean,\n isTransparent?: boolean\n}\n\nexport function Underlay({isOpen, isTransparent, ...otherProps}: UnderlayProps): JSX.Element {\n let pageHeight: number | undefined = undefined;\n if (typeof document !== 'undefined') {\n let scrollingElement = isScrollable(document.body) ? document.body : document.scrollingElement || document.documentElement;\n // Prevent Firefox from adding scrollbars when the page has a fractional height.\n let fractionalHeightDifference = scrollingElement.getBoundingClientRect().height % 1;\n pageHeight = scrollingElement.scrollHeight - fractionalHeightDifference;\n }\n\n return (\n <div\n data-testid=\"underlay\"\n {...otherProps}\n // Cover the entire document so iOS 26 Safari doesn't clip the underlay to the inner viewport.\n style={{height: pageHeight}}\n className={classNames(underlayStyles, 'spectrum-Underlay', {\n 'is-open': isOpen,\n 'spectrum-Underlay--transparent': isTransparent\n })} />\n );\n}\n"],"names":[],"version":3,"file":"Underlay.main.js.map"}
|
package/dist/Underlay.mjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import "./menu.359a0c0a.css";
|
|
2
|
-
import $kr6R3$underlay_vars_cssmodulejs from "./underlay_vars_css.mjs";
|
|
3
|
-
import {classNames as $kr6R3$classNames} from "@react-spectrum/utils";
|
|
4
|
-
import {isScrollable as $kr6R3$isScrollable} from "@react-aria/utils";
|
|
5
|
-
import $kr6R3$react from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function $parcel$interopDefault(a) {
|
|
9
|
-
return a && a.__esModule ? a.default : a;
|
|
10
|
-
}
|
|
11
|
-
/*
|
|
12
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
13
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
15
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
18
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
19
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
20
|
-
* governing permissions and limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function $274a838403463b67$export$f360afc887607b02({ isOpen: isOpen, isTransparent: isTransparent, ...otherProps }) {
|
|
26
|
-
let pageHeight = undefined;
|
|
27
|
-
if (typeof document !== 'undefined') {
|
|
28
|
-
let scrollingElement = (0, $kr6R3$isScrollable)(document.body) ? document.body : document.scrollingElement || document.documentElement;
|
|
29
|
-
// Prevent Firefox from adding scrollbars when the page has a fractional height.
|
|
30
|
-
let fractionalHeightDifference = scrollingElement.getBoundingClientRect().height % 1;
|
|
31
|
-
pageHeight = scrollingElement.scrollHeight - fractionalHeightDifference;
|
|
32
|
-
}
|
|
33
|
-
return /*#__PURE__*/ (0, $kr6R3$react).createElement("div", {
|
|
34
|
-
"data-testid": "underlay",
|
|
35
|
-
...otherProps,
|
|
36
|
-
// Cover the entire document so iOS 26 Safari doesn't clip the underlay to the inner viewport.
|
|
37
|
-
style: {
|
|
38
|
-
height: pageHeight
|
|
39
|
-
},
|
|
40
|
-
className: (0, $kr6R3$classNames)((0, ($parcel$interopDefault($kr6R3$underlay_vars_cssmodulejs))), 'spectrum-Underlay', {
|
|
41
|
-
'is-open': isOpen,
|
|
42
|
-
'spectrum-Underlay--transparent': isTransparent
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export {$274a838403463b67$export$f360afc887607b02 as Underlay};
|
|
49
|
-
//# sourceMappingURL=Underlay.module.js.map
|
package/dist/Underlay.module.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import "./menu.359a0c0a.css";
|
|
2
|
-
import $kr6R3$underlay_vars_cssmodulejs from "./underlay_vars_css.module.js";
|
|
3
|
-
import {classNames as $kr6R3$classNames} from "@react-spectrum/utils";
|
|
4
|
-
import {isScrollable as $kr6R3$isScrollable} from "@react-aria/utils";
|
|
5
|
-
import $kr6R3$react from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function $parcel$interopDefault(a) {
|
|
9
|
-
return a && a.__esModule ? a.default : a;
|
|
10
|
-
}
|
|
11
|
-
/*
|
|
12
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
13
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
15
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
18
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
19
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
20
|
-
* governing permissions and limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function $274a838403463b67$export$f360afc887607b02({ isOpen: isOpen, isTransparent: isTransparent, ...otherProps }) {
|
|
26
|
-
let pageHeight = undefined;
|
|
27
|
-
if (typeof document !== 'undefined') {
|
|
28
|
-
let scrollingElement = (0, $kr6R3$isScrollable)(document.body) ? document.body : document.scrollingElement || document.documentElement;
|
|
29
|
-
// Prevent Firefox from adding scrollbars when the page has a fractional height.
|
|
30
|
-
let fractionalHeightDifference = scrollingElement.getBoundingClientRect().height % 1;
|
|
31
|
-
pageHeight = scrollingElement.scrollHeight - fractionalHeightDifference;
|
|
32
|
-
}
|
|
33
|
-
return /*#__PURE__*/ (0, $kr6R3$react).createElement("div", {
|
|
34
|
-
"data-testid": "underlay",
|
|
35
|
-
...otherProps,
|
|
36
|
-
// Cover the entire document so iOS 26 Safari doesn't clip the underlay to the inner viewport.
|
|
37
|
-
style: {
|
|
38
|
-
height: pageHeight
|
|
39
|
-
},
|
|
40
|
-
className: (0, $kr6R3$classNames)((0, ($parcel$interopDefault($kr6R3$underlay_vars_cssmodulejs))), 'spectrum-Underlay', {
|
|
41
|
-
'is-open': isOpen,
|
|
42
|
-
'spectrum-Underlay--transparent': isTransparent
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export {$274a838403463b67$export$f360afc887607b02 as Underlay};
|
|
49
|
-
//# sourceMappingURL=Underlay.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAYM,SAAS,0CAAS,UAAC,MAAM,iBAAE,aAAa,EAAE,GAAG,YAA0B;IAC5E,IAAI,aAAiC;IACrC,IAAI,OAAO,aAAa,aAAa;QACnC,IAAI,mBAAmB,CAAA,GAAA,mBAAW,EAAE,SAAS,IAAI,IAAI,SAAS,IAAI,GAAG,SAAS,gBAAgB,IAAI,SAAS,eAAe;QAC1H,gFAAgF;QAChF,IAAI,6BAA6B,iBAAiB,qBAAqB,GAAG,MAAM,GAAG;QACnF,aAAa,iBAAiB,YAAY,GAAG;IAC/C;IAEA,qBACE,gCAAC;QACC,eAAY;QACX,GAAG,UAAU;QACd,8FAA8F;QAC9F,OAAO;YAAC,QAAQ;QAAU;QAC1B,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0DAAa,GAAG,qBAAqB;YACzD,WAAW;YACX,kCAAkC;QACpC;;AAEN","sources":["packages/@react-spectrum/menu/src/Underlay.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames} from '@react-spectrum/utils';\nimport {isScrollable} from '@react-aria/utils';\nimport React, {JSX} from 'react';\nimport underlayStyles from '@adobe/spectrum-css-temp/components/underlay/vars.css';\n\ninterface UnderlayProps {\n isOpen?: boolean,\n isTransparent?: boolean\n}\n\nexport function Underlay({isOpen, isTransparent, ...otherProps}: UnderlayProps): JSX.Element {\n let pageHeight: number | undefined = undefined;\n if (typeof document !== 'undefined') {\n let scrollingElement = isScrollable(document.body) ? document.body : document.scrollingElement || document.documentElement;\n // Prevent Firefox from adding scrollbars when the page has a fractional height.\n let fractionalHeightDifference = scrollingElement.getBoundingClientRect().height % 1;\n pageHeight = scrollingElement.scrollHeight - fractionalHeightDifference;\n }\n\n return (\n <div\n data-testid=\"underlay\"\n {...otherProps}\n // Cover the entire document so iOS 26 Safari doesn't clip the underlay to the inner viewport.\n style={{height: pageHeight}}\n className={classNames(underlayStyles, 'spectrum-Underlay', {\n 'is-open': isOpen,\n 'spectrum-Underlay--transparent': isTransparent\n })} />\n );\n}\n"],"names":[],"version":3,"file":"Underlay.module.js.map"}
|
package/dist/ar-AE.main.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"backButton": (args)=>`\u{627}\u{644}\u{631}\u{62C}\u{648}\u{639} \u{625}\u{644}\u{649} ${args.prevMenuButton}`,
|
|
3
|
-
"moreActions": `\u{627}\u{644}\u{645}\u{632}\u{64A}\u{62F} \u{645}\u{646} \u{627}\u{644}\u{625}\u{62C}\u{631}\u{627}\u{621}\u{627}\u{62A}`,
|
|
4
|
-
"unavailable": `\u{63A}\u{64A}\u{631} \u{645}\u{64F}\u{62A}\u{648}\u{641}\u{631}\u{60C} \u{642}\u{64F}\u{645} \u{628}\u{627}\u{644}\u{62A}\u{648}\u{633}\u{64A}\u{639} \u{644}\u{644}\u{62D}\u{635}\u{648}\u{644} \u{639}\u{644}\u{649} \u{627}\u{644}\u{62A}\u{641}\u{627}\u{635}\u{64A}\u{644}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=ar-AE.main.js.map
|
package/dist/ar-AE.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,iEAAW,EAAE,KAAK,cAAc,EAAE;IAC7E,eAAe,CAAC,yHAAmB,CAAC;IACpC,eAAe,CAAC,gRAA4C,CAAC;AAC/D","sources":["packages/@react-spectrum/menu/intl/ar-AE.json"],"sourcesContent":["{\n \"backButton\": \"الرجوع إلى {prevMenuButton}\",\n \"moreActions\": \"المزيد من الإجراءات\",\n \"unavailable\": \"غير مُتوفر، قُم بالتوسيع للحصول على التفاصيل\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
|
package/dist/ar-AE.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var $9c47fa309a7d4d43$exports = {};
|
|
2
|
-
$9c47fa309a7d4d43$exports = {
|
|
3
|
-
"backButton": (args)=>`\u{627}\u{644}\u{631}\u{62C}\u{648}\u{639} \u{625}\u{644}\u{649} ${args.prevMenuButton}`,
|
|
4
|
-
"moreActions": `\u{627}\u{644}\u{645}\u{632}\u{64A}\u{62F} \u{645}\u{646} \u{627}\u{644}\u{625}\u{62C}\u{631}\u{627}\u{621}\u{627}\u{62A}`,
|
|
5
|
-
"unavailable": `\u{63A}\u{64A}\u{631} \u{645}\u{64F}\u{62A}\u{648}\u{641}\u{631}\u{60C} \u{642}\u{64F}\u{645} \u{628}\u{627}\u{644}\u{62A}\u{648}\u{633}\u{64A}\u{639} \u{644}\u{644}\u{62D}\u{635}\u{648}\u{644} \u{639}\u{644}\u{649} \u{627}\u{644}\u{62A}\u{641}\u{627}\u{635}\u{64A}\u{644}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {$9c47fa309a7d4d43$exports as default};
|
|
10
|
-
//# sourceMappingURL=ar-AE.module.js.map
|
package/dist/ar-AE.module.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var $9c47fa309a7d4d43$exports = {};
|
|
2
|
-
$9c47fa309a7d4d43$exports = {
|
|
3
|
-
"backButton": (args)=>`\u{627}\u{644}\u{631}\u{62C}\u{648}\u{639} \u{625}\u{644}\u{649} ${args.prevMenuButton}`,
|
|
4
|
-
"moreActions": `\u{627}\u{644}\u{645}\u{632}\u{64A}\u{62F} \u{645}\u{646} \u{627}\u{644}\u{625}\u{62C}\u{631}\u{627}\u{621}\u{627}\u{62A}`,
|
|
5
|
-
"unavailable": `\u{63A}\u{64A}\u{631} \u{645}\u{64F}\u{62A}\u{648}\u{641}\u{631}\u{60C} \u{642}\u{64F}\u{645} \u{628}\u{627}\u{644}\u{62A}\u{648}\u{633}\u{64A}\u{639} \u{644}\u{644}\u{62D}\u{635}\u{648}\u{644} \u{639}\u{644}\u{649} \u{627}\u{644}\u{62A}\u{641}\u{627}\u{635}\u{64A}\u{644}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {$9c47fa309a7d4d43$exports as default};
|
|
10
|
-
//# sourceMappingURL=ar-AE.module.js.map
|
package/dist/ar-AE.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,iEAAW,EAAE,KAAK,cAAc,EAAE;IAC7E,eAAe,CAAC,yHAAmB,CAAC;IACpC,eAAe,CAAC,gRAA4C,CAAC;AAC/D","sources":["packages/@react-spectrum/menu/intl/ar-AE.json"],"sourcesContent":["{\n \"backButton\": \"الرجوع إلى {prevMenuButton}\",\n \"moreActions\": \"المزيد من الإجراءات\",\n \"unavailable\": \"غير مُتوفر، قُم بالتوسيع للحصول على التفاصيل\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
|
package/dist/bg-BG.main.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"backButton": (args)=>`\u{41D}\u{430}\u{437}\u{430}\u{434} \u{43A}\u{44A}\u{43C} ${args.prevMenuButton}`,
|
|
3
|
-
"moreActions": `\u{41F}\u{43E}\u{432}\u{435}\u{447}\u{435} \u{434}\u{435}\u{439}\u{441}\u{442}\u{432}\u{438}\u{44F}`,
|
|
4
|
-
"unavailable": `\u{41D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{44A}\u{43F}\u{43D}\u{43E}, \u{440}\u{430}\u{437}\u{433}\u{44A}\u{43D}\u{435}\u{442}\u{435} \u{437}\u{430} \u{43F}\u{43E}\u{434}\u{440}\u{43E}\u{431}\u{43D}\u{43E}\u{441}\u{442}\u{438}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=bg-BG.main.js.map
|
package/dist/bg-BG.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,0DAAU,EAAE,KAAK,cAAc,EAAE;IAC5E,eAAe,CAAC,mGAAe,CAAC;IAChC,eAAe,CAAC,oOAAoC,CAAC;AACvD","sources":["packages/@react-spectrum/menu/intl/bg-BG.json"],"sourcesContent":["{\n \"backButton\": \"Назад към {prevMenuButton}\",\n \"moreActions\": \"Повече действия\",\n \"unavailable\": \"Недостъпно, разгънете за подробности\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
|
package/dist/bg-BG.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var $4cd8d8b72a119260$exports = {};
|
|
2
|
-
$4cd8d8b72a119260$exports = {
|
|
3
|
-
"backButton": (args)=>`\u{41D}\u{430}\u{437}\u{430}\u{434} \u{43A}\u{44A}\u{43C} ${args.prevMenuButton}`,
|
|
4
|
-
"moreActions": `\u{41F}\u{43E}\u{432}\u{435}\u{447}\u{435} \u{434}\u{435}\u{439}\u{441}\u{442}\u{432}\u{438}\u{44F}`,
|
|
5
|
-
"unavailable": `\u{41D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{44A}\u{43F}\u{43D}\u{43E}, \u{440}\u{430}\u{437}\u{433}\u{44A}\u{43D}\u{435}\u{442}\u{435} \u{437}\u{430} \u{43F}\u{43E}\u{434}\u{440}\u{43E}\u{431}\u{43D}\u{43E}\u{441}\u{442}\u{438}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {$4cd8d8b72a119260$exports as default};
|
|
10
|
-
//# sourceMappingURL=bg-BG.module.js.map
|
package/dist/bg-BG.module.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var $4cd8d8b72a119260$exports = {};
|
|
2
|
-
$4cd8d8b72a119260$exports = {
|
|
3
|
-
"backButton": (args)=>`\u{41D}\u{430}\u{437}\u{430}\u{434} \u{43A}\u{44A}\u{43C} ${args.prevMenuButton}`,
|
|
4
|
-
"moreActions": `\u{41F}\u{43E}\u{432}\u{435}\u{447}\u{435} \u{434}\u{435}\u{439}\u{441}\u{442}\u{432}\u{438}\u{44F}`,
|
|
5
|
-
"unavailable": `\u{41D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{44A}\u{43F}\u{43D}\u{43E}, \u{440}\u{430}\u{437}\u{433}\u{44A}\u{43D}\u{435}\u{442}\u{435} \u{437}\u{430} \u{43F}\u{43E}\u{434}\u{440}\u{43E}\u{431}\u{43D}\u{43E}\u{441}\u{442}\u{438}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {$4cd8d8b72a119260$exports as default};
|
|
10
|
-
//# sourceMappingURL=bg-BG.module.js.map
|
package/dist/bg-BG.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,cAAc,CAAC,OAAS,CAAC,0DAAU,EAAE,KAAK,cAAc,EAAE;IAC5E,eAAe,CAAC,mGAAe,CAAC;IAChC,eAAe,CAAC,oOAAoC,CAAC;AACvD","sources":["packages/@react-spectrum/menu/intl/bg-BG.json"],"sourcesContent":["{\n \"backButton\": \"Назад към {prevMenuButton}\",\n \"moreActions\": \"Повече действия\",\n \"unavailable\": \"Недостъпно, разгънете за подробности\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
|