@react-spectrum/menu 3.14.1-nightly.4138 → 3.14.1-nightly.4140
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 +13 -10
- package/dist/main.css +1 -1
- package/dist/main.js +13 -10
- package/dist/main.js.map +1 -1
- package/dist/module.js +13 -10
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +29 -29
- package/src/Menu.tsx +4 -4
- package/src/MenuItem.tsx +5 -4
- package/src/MenuSection.tsx +6 -6
- package/src/MenuTrigger.tsx +1 -1
- package/src/context.ts +3 -3
package/dist/import.mjs
CHANGED
|
@@ -83,6 +83,7 @@ $parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu", () => $286d1cb34bb7dc
|
|
|
83
83
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-sectionHeading", () => $286d1cb34bb7dc84$export$c20ea4b35020fbdd, (v) => $286d1cb34bb7dc84$export$c20ea4b35020fbdd = v);
|
|
84
84
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-checkmark", () => $286d1cb34bb7dc84$export$8e15a726e4f7e62d, (v) => $286d1cb34bb7dc84$export$8e15a726e4f7e62d = v);
|
|
85
85
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-item", () => $286d1cb34bb7dc84$export$45faad328e6c532b, (v) => $286d1cb34bb7dc84$export$45faad328e6c532b = v);
|
|
86
|
+
$parcel$export($286d1cb34bb7dc84$exports, "is-disabled", () => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf, (v) => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf = v);
|
|
86
87
|
$parcel$export($286d1cb34bb7dc84$exports, "is-selected", () => $286d1cb34bb7dc84$export$1e0fb04f31d3c22a, (v) => $286d1cb34bb7dc84$export$1e0fb04f31d3c22a = v);
|
|
87
88
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Icon", () => $286d1cb34bb7dc84$export$d374b04f30360026, (v) => $286d1cb34bb7dc84$export$d374b04f30360026 = v);
|
|
88
89
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-itemLabel", () => $286d1cb34bb7dc84$export$1aa6419c5c650567, (v) => $286d1cb34bb7dc84$export$1aa6419c5c650567 = v);
|
|
@@ -101,12 +102,12 @@ $parcel$export($286d1cb34bb7dc84$exports, "is-hovered", () => $286d1cb34bb7dc84$
|
|
|
101
102
|
$parcel$export($286d1cb34bb7dc84$exports, "is-highlighted", () => $286d1cb34bb7dc84$export$451c613d0772eb99, (v) => $286d1cb34bb7dc84$export$451c613d0772eb99 = v);
|
|
102
103
|
$parcel$export($286d1cb34bb7dc84$exports, "is-open", () => $286d1cb34bb7dc84$export$a9781837241c946d, (v) => $286d1cb34bb7dc84$export$a9781837241c946d = v);
|
|
103
104
|
$parcel$export($286d1cb34bb7dc84$exports, "is-active", () => $286d1cb34bb7dc84$export$20fd0f7cd4e6112f, (v) => $286d1cb34bb7dc84$export$20fd0f7cd4e6112f = v);
|
|
104
|
-
$parcel$export($286d1cb34bb7dc84$exports, "is-disabled", () => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf, (v) => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf = v);
|
|
105
105
|
var $286d1cb34bb7dc84$export$d959f30786125b;
|
|
106
106
|
var $286d1cb34bb7dc84$export$fae6af6decd50ac5;
|
|
107
107
|
var $286d1cb34bb7dc84$export$c20ea4b35020fbdd;
|
|
108
108
|
var $286d1cb34bb7dc84$export$8e15a726e4f7e62d;
|
|
109
109
|
var $286d1cb34bb7dc84$export$45faad328e6c532b;
|
|
110
|
+
var $286d1cb34bb7dc84$export$d35bc1e505d1ebbf;
|
|
110
111
|
var $286d1cb34bb7dc84$export$1e0fb04f31d3c22a;
|
|
111
112
|
var $286d1cb34bb7dc84$export$d374b04f30360026;
|
|
112
113
|
var $286d1cb34bb7dc84$export$1aa6419c5c650567;
|
|
@@ -125,12 +126,12 @@ var $286d1cb34bb7dc84$export$b8813cd5d7824ce7;
|
|
|
125
126
|
var $286d1cb34bb7dc84$export$451c613d0772eb99;
|
|
126
127
|
var $286d1cb34bb7dc84$export$a9781837241c946d;
|
|
127
128
|
var $286d1cb34bb7dc84$export$20fd0f7cd4e6112f;
|
|
128
|
-
var $286d1cb34bb7dc84$export$d35bc1e505d1ebbf;
|
|
129
129
|
$286d1cb34bb7dc84$export$d959f30786125b = "spectrum-Menu-popover_7ea47c";
|
|
130
130
|
$286d1cb34bb7dc84$export$fae6af6decd50ac5 = "spectrum-Menu_7ea47c";
|
|
131
131
|
$286d1cb34bb7dc84$export$c20ea4b35020fbdd = "spectrum-Menu-sectionHeading_7ea47c";
|
|
132
132
|
$286d1cb34bb7dc84$export$8e15a726e4f7e62d = "spectrum-Menu-checkmark_7ea47c";
|
|
133
133
|
$286d1cb34bb7dc84$export$45faad328e6c532b = "spectrum-Menu-item_7ea47c";
|
|
134
|
+
$286d1cb34bb7dc84$export$d35bc1e505d1ebbf = "is-disabled_7ea47c";
|
|
134
135
|
$286d1cb34bb7dc84$export$1e0fb04f31d3c22a = "is-selected_7ea47c";
|
|
135
136
|
$286d1cb34bb7dc84$export$d374b04f30360026 = "spectrum-Icon_7ea47c";
|
|
136
137
|
$286d1cb34bb7dc84$export$1aa6419c5c650567 = "spectrum-Menu-itemLabel_7ea47c";
|
|
@@ -149,7 +150,6 @@ $286d1cb34bb7dc84$export$b8813cd5d7824ce7 = "is-hovered_7ea47c";
|
|
|
149
150
|
$286d1cb34bb7dc84$export$451c613d0772eb99 = "is-highlighted_7ea47c";
|
|
150
151
|
$286d1cb34bb7dc84$export$a9781837241c946d = "is-open_7ea47c";
|
|
151
152
|
$286d1cb34bb7dc84$export$20fd0f7cd4e6112f = "is-active_7ea47c";
|
|
152
|
-
$286d1cb34bb7dc84$export$d35bc1e505d1ebbf = "is-disabled_7ea47c";
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
|
|
@@ -551,7 +551,10 @@ function $48fb8f5e1202c980$export$2ce376c2cc3355c8(props) {
|
|
|
551
551
|
let isMenuDialogTrigger = !!menuDialogContext;
|
|
552
552
|
let isUnavailable = false;
|
|
553
553
|
if (isMenuDialogTrigger) isUnavailable = menuDialogContext.isUnavailable;
|
|
554
|
-
let
|
|
554
|
+
let ElementType = item.props.href ? "a" : "div";
|
|
555
|
+
let domProps = (0, $9SHwR$filterDOMProps)(item.props, {
|
|
556
|
+
isLink: !!item.props.href
|
|
557
|
+
});
|
|
555
558
|
let { closeOnSelect: closeOnSelect } = (0, $d94604d52c3e3feb$export$21c7ab35b39f78ec)();
|
|
556
559
|
let { rendered: rendered , key: key } = item;
|
|
557
560
|
let isSelected = state.selectionManager.isSelected(key);
|
|
@@ -583,7 +586,7 @@ function $48fb8f5e1202c980$export$2ce376c2cc3355c8(props) {
|
|
|
583
586
|
let contents = typeof rendered === "string" ? /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$Text), null, rendered) : rendered;
|
|
584
587
|
return /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$FocusRing), {
|
|
585
588
|
focusRingClass: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "focus-ring")
|
|
586
|
-
}, /*#__PURE__*/ (0, $9SHwR$react).createElement(
|
|
589
|
+
}, /*#__PURE__*/ (0, $9SHwR$react).createElement(ElementType, {
|
|
587
590
|
...(0, $9SHwR$mergeProps)(menuItemProps, domProps),
|
|
588
591
|
ref: ref,
|
|
589
592
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu-item", {
|
|
@@ -653,15 +656,15 @@ function $b966e606890cc5ca$export$4b1545b4f2016d26(props) {
|
|
|
653
656
|
"aria-label": item["aria-label"]
|
|
654
657
|
});
|
|
655
658
|
let { separatorProps: separatorProps } = (0, $9SHwR$useSeparator)({
|
|
656
|
-
elementType: "
|
|
659
|
+
elementType: "div"
|
|
657
660
|
});
|
|
658
|
-
return /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$Fragment), null, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
661
|
+
return /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$Fragment), null, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, $9SHwR$react).createElement("div", {
|
|
659
662
|
...separatorProps,
|
|
660
663
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu-divider")
|
|
661
|
-
}), /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
664
|
+
}), /*#__PURE__*/ (0, $9SHwR$react).createElement("div", itemProps, item.rendered && /*#__PURE__*/ (0, $9SHwR$react).createElement("span", {
|
|
662
665
|
...headingProps,
|
|
663
666
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu-sectionHeading")
|
|
664
|
-
}, item.rendered), /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
667
|
+
}, item.rendered), /*#__PURE__*/ (0, $9SHwR$react).createElement("div", {
|
|
665
668
|
...groupProps,
|
|
666
669
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu")
|
|
667
670
|
}, [
|
|
@@ -710,7 +713,7 @@ function $49b26f4b606348f6$var$Menu(props, ref) {
|
|
|
710
713
|
display: "inline-flex",
|
|
711
714
|
borderRadius: "var(--spectrum-alias-border-radius-regular)"
|
|
712
715
|
}
|
|
713
|
-
}, /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
716
|
+
}, /*#__PURE__*/ (0, $9SHwR$react).createElement("div", {
|
|
714
717
|
...menuProps,
|
|
715
718
|
...styleProps,
|
|
716
719
|
ref: domRef,
|
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{font-synthesis:weight}.spectrum-Menu-popover_7ea47c{max-width:320px}[dir=ltr] .spectrum-Menu_7ea47c{text-align:left}[dir=rtl] .spectrum-Menu_7ea47c{text-align:right}.spectrum-Menu_7ea47c{box-sizing:border-box;padding:var(--spectrum-popover-padding-y,var(--spectrum-global-dimension-size-50))0;-webkit-user-select:none;user-select:none;margin:0;list-style-type:none;display:block;overflow-y:auto}.spectrum-Menu_7ea47c .spectrum-Menu-sectionHeading_7ea47c{margin-top:var(--spectrum-global-dimension-size-75);margin-bottom:var(--spectrum-global-dimension-size-40)}.spectrum-Menu_7ea47c:focus{outline:none}.spectrum-Menu-checkmark_7ea47c{opacity:1;padding-top:calc(var(--spectrum-selectlist-option-icon-padding-y) - var(--spectrum-selectlist-option-padding-height));transform:scale(1)}[dir=ltr] .spectrum-Menu-item_7ea47c{border-left:var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25))solid transparent}[dir=rtl] .spectrum-Menu-item_7ea47c{border-right:var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25))solid transparent}.spectrum-Menu-item_7ea47c{cursor:default;box-sizing:border-box;font-size:var(--spectrum-selectlist-option-text-size,var(--spectrum-alias-font-size-default));font-weight:var(--spectrum-selectlist-option-text-font-weight,var(--spectrum-global-font-weight-regular));margin:0;font-style:normal;text-decoration:none;position:relative}.spectrum-Menu-item_7ea47c:focus{outline:none}.spectrum-Menu-item_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c{display:block}[dir=ltr] .spectrum-Menu-item_7ea47c .spectrum-Icon_7ea47c+.spectrum-Menu-itemLabel_7ea47c,[dir=ltr] .spectrum-Menu-item_7ea47c .spectrum-Menu-itemIcon_7ea47c+.spectrum-Menu-itemLabel_7ea47c{margin-left:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-Menu-item_7ea47c .spectrum-Icon_7ea47c+.spectrum-Menu-itemLabel_7ea47c,[dir=rtl] .spectrum-Menu-item_7ea47c .spectrum-Menu-itemIcon_7ea47c+.spectrum-Menu-itemLabel_7ea47c{margin-right:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}.spectrum-Menu-itemLabel_7ea47c{line-height:var(--spectrum-global-font-line-height-small,1.3);word-break:break-word;grid-area:text}.spectrum-Menu-itemLabel--wrapping_7ea47c{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.spectrum-Menu-checkmark_7ea47c{grid-area:checkmark;place-self:flex-start end;display:none}.spectrum-Menu-divider_7ea47c{box-sizing:content-box;height:var(--spectrum-selectlist-divider-size,var(--spectrum-alias-border-size-thick));margin:calc(var(--spectrum-selectlist-divider-padding,3px)/2)var(--spectrum-global-dimension-size-150);border:none;padding:0;overflow:visible}[dir=ltr] .spectrum-Menu-sectionHeading_7ea47c{padding-left:var(--spectrum-global-dimension-size-150)}[dir=rtl] .spectrum-Menu-sectionHeading_7ea47c{padding-right:var(--spectrum-global-dimension-size-150)}[dir=ltr] .spectrum-Menu-sectionHeading_7ea47c{padding-right:var(--spectrum-global-dimension-size-450)}[dir=rtl] .spectrum-Menu-sectionHeading_7ea47c{padding-left:var(--spectrum-global-dimension-size-450)}.spectrum-Menu-sectionHeading_7ea47c{margin:var(--spectrum-global-dimension-size-75)0 0 0;font-size:var(--spectrum-global-dimension-font-size-100);font-weight:var(--spectrum-global-font-weight-bold,700);line-height:var(--spectrum-alias-line-height-medium,var(--spectrum-global-dimension-size-250));padding-top:0;padding-bottom:0;display:block}.spectrum-Menu_7ea47c .spectrum-Menu_7ea47c{margin:0;display:block}.spectrum-Menu-itemGrid_7ea47c{display:-ms-grid;-ms-grid-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr auto auto auto var(--spectrum-global-dimension-size-150);grid-template-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr auto auto auto var(--spectrum-global-dimension-size-150);-ms-grid-rows:var(--spectrum-selectlist-option-padding-height)1fr auto var(--spectrum-selectlist-option-padding-height);grid-template-rows:var(--spectrum-selectlist-option-padding-height)1fr auto var(--spectrum-selectlist-option-padding-height);grid-template-areas:". . . . . . ."".icon text checkmark end keyboard."".icon description checkmark end keyboard."". . . . . . .";display:grid}.spectrum-Menu-item_7ea47c.is-selectable_7ea47c .spectrum-Menu-itemGrid_7ea47c{-ms-grid-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-selectlist-option-icon-padding-x,var(--spectrum-global-dimension-size-150)))auto auto var(--spectrum-global-dimension-size-150);grid-template-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-selectlist-option-icon-padding-x,var(--spectrum-global-dimension-size-150)))auto auto var(--spectrum-global-dimension-size-150)}[dir=ltr] .spectrum-Menu_7ea47c .spectrum-Menu-end_7ea47c{padding-left:var(--spectrum-global-dimension-size-250)}[dir=rtl] .spectrum-Menu_7ea47c .spectrum-Menu-end_7ea47c{padding-right:var(--spectrum-global-dimension-size-250)}.spectrum-Menu_7ea47c .spectrum-Menu-end_7ea47c{grid-area:end;place-self:flex-start end}[dir=ltr] .spectrum-Menu-icon_7ea47c{padding-right:var(--spectrum-global-dimension-size-100)}[dir=rtl] .spectrum-Menu-icon_7ea47c{padding-left:var(--spectrum-global-dimension-size-100)}.spectrum-Menu-icon_7ea47c{padding-top:var(--spectrum-global-dimension-size-10);grid-area:icon}.spectrum-Menu-description_7ea47c{line-height:var(--spectrum-global-font-line-height-small,1.3);font-size:var(--spectrum-global-dimension-size-150);grid-area:description}[dir=ltr] .spectrum-Menu-keyboard_7ea47c{padding-left:var(--spectrum-global-dimension-size-125)}[dir=rtl] .spectrum-Menu-keyboard_7ea47c{padding-right:var(--spectrum-global-dimension-size-125)}.spectrum-Menu-keyboard_7ea47c{grid-area:keyboard;align-self:flex-start;font-family:adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.spectrum-Menu_7ea47c{--spectrum-heading-subtitle3-text-color:var(--spectrum-global-color-gray-900);background-color:var(--spectrum-selectlist-background-color,var(--spectrum-alias-background-color-transparent))}.spectrum-Menu-item_7ea47c{background-color:var(--spectrum-selectlist-option-background-color,var(--spectrum-alias-background-color-transparent));color:var(--spectrum-selectlist-option-text-color,var(--spectrum-alias-text-color))}[dir=ltr] .spectrum-Menu-item_7ea47c.focus-ring_7ea47c,[dir=ltr] .spectrum-Menu-item_7ea47c.is-focused_7ea47c{border-left-color:var(--spectrum-selectlist-option-focus-indicator-color,var(--spectrum-alias-border-color-focus))}[dir=rtl] .spectrum-Menu-item_7ea47c.focus-ring_7ea47c,[dir=rtl] .spectrum-Menu-item_7ea47c.is-focused_7ea47c{border-right-color:var(--spectrum-selectlist-option-focus-indicator-color,var(--spectrum-alias-border-color-focus))}.spectrum-Menu-item_7ea47c.focus-ring_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay));color:var(--spectrum-selectlist-option-text-color-key-focus,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c,.spectrum-Menu-item_7ea47c:focus,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-hover,var(--spectrum-alias-background-color-hover-overlay));color:var(--spectrum-selectlist-option-text-color-hover,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c{color:var(--spectrum-selectlist-option-icon-color-selected,var(--spectrum-alias-icon-color-selected))}.spectrum-Menu-item_7ea47c .is-active_7ea47c,.spectrum-Menu-item_7ea47c:active{background-color:var(--spectrum-selectlist-option-background-color-down,var(--spectrum-alias-background-color-hover-overlay))}.spectrum-Menu-item_7ea47c.is-disabled_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-disabled,var(--spectrum-alias-background-color-transparent));color:var(--spectrum-selectlist-option-text-color-disabled,var(--spectrum-alias-text-color-disabled));cursor:default;background-image:none}.spectrum-Menu-item_7ea47c.is-disabled_7ea47c .spectrum-Menu-description_7ea47c{color:var(--spectrum-selectlist-option-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-Menu-sectionHeading_7ea47c{color:var(--spectrum-heading-subtitle3-text-color,var(--spectrum-global-color-gray-700))}.spectrum-Menu-divider_7ea47c{background-color:var(--spectrum-global-color-gray-300)}.spectrum-Menu-description_7ea47c{color:var(--spectrum-global-color-gray-700)}@media (forced-colors:active){.spectrum-Menu-divider_7ea47c{background-color:CanvasText;forced-color-adjust:none}.spectrum-Menu-item_7ea47c{forced-color-adjust:none;--spectrum-heading-subtitle3-text-color:ButtonText;--spectrum-selectlist-background-color:ButtonFace;--spectrum-selectlist-divider-color:ButtonText;--spectrum-selectlist-option-background-color:ButtonFace;--spectrum-selectlist-option-background-color-disabled:ButtonFace;--spectrum-selectlist-option-background-color-down:ButtonFace;--spectrum-selectlist-option-background-color-hover:Highlight;--spectrum-selectlist-option-background-color-key-focus:Highlight;--spectrum-selectlist-option-focus-indicator-color:Highlight;--spectrum-selectlist-option-icon-color-selected:Highlight;--spectrum-selectlist-option-text-color:ButtonText;--spectrum-selectlist-option-text-color-disabled:GrayText;--spectrum-selectlist-option-text-color-hover:HighlightText;--spectrum-selectlist-option-text-color-key-focus:HighlightText;--spectrum-alias-border-color-focus:Highlight}.spectrum-Menu-item_7ea47c .spectrum-Menu-description_7ea47c{color:var(--spectrum-selectlist-option-text-color,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c,.spectrum-Menu-item_7ea47c:focus,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c,.spectrum-Menu-item_7ea47c.focus-ring_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay));color:var(--spectrum-selectlist-option-text-color-key-focus,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c:focus.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.focus-ring_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c{color:HighlightText}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c:focus .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.focus-ring_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c .spectrum-Menu-description_7ea47c{color:var(--spectrum-selectlist-option-text-color-key-focus,var(--spectrum-alias-text-color));background-color:var(--spectrum-selectlist-option-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay))}}.react-spectrum-ContextualHelp-button_0cd31c{--spectrum-button-primary-height:var(--spectrum-global-dimension-size-250);--spectrum-actionbutton-height:var(--spectrum-global-dimension-size-250);--spectrum-actionbutton-min-width:var(--spectrum-global-dimension-size-250);--spectrum-actionbutton-icon-padding-x:var(--spectrum-global-dimension-size-40)}.react-spectrum-ContextualHelp-button_0cd31c svg{height:var(--spectrum-global-dimension-size-175);width:var(--spectrum-global-dimension-size-175)}.react-spectrum-ContextualHelp-dialog_0cd31c.react-spectrum-ContextualHelp-dialog_0cd31c{width:250px;--spectrum-dialog-padding-x:var(--spectrum-global-dimension-static-size-300,24px);--spectrum-dialog-padding-y:var(--spectrum-global-dimension-static-size-300,24px)}.react-spectrum-ContextualHelp-dialog_0cd31c.react-spectrum-ContextualHelp-dialog_0cd31c .react-spectrum-ContextualHelp-content_0cd31c{margin-top:var(--spectrum-global-dimension-static-size-100,8px)}.react-spectrum-ContextualHelp-dialog_0cd31c.react-spectrum-ContextualHelp-dialog_0cd31c .react-spectrum-ContextualHelp-footer_0cd31c{padding-top:var(--spectrum-global-dimension-static-size-100,8px)}
|
|
1
|
+
:root{font-synthesis:weight}.spectrum-Menu-popover_7ea47c{max-width:320px}[dir=ltr] .spectrum-Menu_7ea47c{text-align:left}[dir=rtl] .spectrum-Menu_7ea47c{text-align:right}.spectrum-Menu_7ea47c{box-sizing:border-box;padding:var(--spectrum-popover-padding-y,var(--spectrum-global-dimension-size-50))0;-webkit-user-select:none;user-select:none;margin:0;list-style-type:none;display:block;overflow-y:auto}.spectrum-Menu_7ea47c .spectrum-Menu-sectionHeading_7ea47c{margin-top:var(--spectrum-global-dimension-size-75);margin-bottom:var(--spectrum-global-dimension-size-40)}.spectrum-Menu_7ea47c:focus{outline:none}.spectrum-Menu-checkmark_7ea47c{opacity:1;padding-top:calc(var(--spectrum-selectlist-option-icon-padding-y) - var(--spectrum-selectlist-option-padding-height));transform:scale(1)}[dir=ltr] .spectrum-Menu-item_7ea47c{border-left:var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25))solid transparent}[dir=rtl] .spectrum-Menu-item_7ea47c{border-right:var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25))solid transparent}.spectrum-Menu-item_7ea47c{cursor:default;box-sizing:border-box;font-size:var(--spectrum-selectlist-option-text-size,var(--spectrum-alias-font-size-default));font-weight:var(--spectrum-selectlist-option-text-font-weight,var(--spectrum-global-font-weight-regular));margin:0;font-style:normal;text-decoration:none;display:block;position:relative}.spectrum-Menu-item_7ea47c[href]{cursor:pointer}.spectrum-Menu-item_7ea47c:focus{outline:none}.spectrum-Menu-item_7ea47c.is-disabled_7ea47c{cursor:default}.spectrum-Menu-item_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c{display:block}[dir=ltr] .spectrum-Menu-item_7ea47c .spectrum-Icon_7ea47c+.spectrum-Menu-itemLabel_7ea47c,[dir=ltr] .spectrum-Menu-item_7ea47c .spectrum-Menu-itemIcon_7ea47c+.spectrum-Menu-itemLabel_7ea47c{margin-left:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-Menu-item_7ea47c .spectrum-Icon_7ea47c+.spectrum-Menu-itemLabel_7ea47c,[dir=rtl] .spectrum-Menu-item_7ea47c .spectrum-Menu-itemIcon_7ea47c+.spectrum-Menu-itemLabel_7ea47c{margin-right:var(--spectrum-selectlist-thumbnail-image-padding-x,var(--spectrum-global-dimension-size-100))}.spectrum-Menu-itemLabel_7ea47c{line-height:var(--spectrum-global-font-line-height-small,1.3);word-break:break-word;grid-area:text}.spectrum-Menu-itemLabel--wrapping_7ea47c{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.spectrum-Menu-checkmark_7ea47c{grid-area:checkmark;place-self:flex-start end;display:none}.spectrum-Menu-divider_7ea47c{box-sizing:content-box;height:var(--spectrum-selectlist-divider-size,var(--spectrum-alias-border-size-thick));margin:calc(var(--spectrum-selectlist-divider-padding,3px)/2)var(--spectrum-global-dimension-size-150);border:none;padding:0;overflow:visible}[dir=ltr] .spectrum-Menu-sectionHeading_7ea47c{padding-left:var(--spectrum-global-dimension-size-150)}[dir=rtl] .spectrum-Menu-sectionHeading_7ea47c{padding-right:var(--spectrum-global-dimension-size-150)}[dir=ltr] .spectrum-Menu-sectionHeading_7ea47c{padding-right:var(--spectrum-global-dimension-size-450)}[dir=rtl] .spectrum-Menu-sectionHeading_7ea47c{padding-left:var(--spectrum-global-dimension-size-450)}.spectrum-Menu-sectionHeading_7ea47c{margin:var(--spectrum-global-dimension-size-75)0 0 0;font-size:var(--spectrum-global-dimension-font-size-100);font-weight:var(--spectrum-global-font-weight-bold,700);line-height:var(--spectrum-alias-line-height-medium,var(--spectrum-global-dimension-size-250));padding-top:0;padding-bottom:0;display:block}.spectrum-Menu_7ea47c .spectrum-Menu_7ea47c{margin:0;display:block}.spectrum-Menu-itemGrid_7ea47c{display:-ms-grid;-ms-grid-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr auto auto auto var(--spectrum-global-dimension-size-150);grid-template-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr auto auto auto var(--spectrum-global-dimension-size-150);-ms-grid-rows:var(--spectrum-selectlist-option-padding-height)1fr auto var(--spectrum-selectlist-option-padding-height);grid-template-rows:var(--spectrum-selectlist-option-padding-height)1fr auto var(--spectrum-selectlist-option-padding-height);grid-template-areas:". . . . . . ."".icon text checkmark end keyboard."".icon description checkmark end keyboard."". . . . . . .";display:grid}.spectrum-Menu-item_7ea47c.is-selectable_7ea47c .spectrum-Menu-itemGrid_7ea47c{-ms-grid-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-selectlist-option-icon-padding-x,var(--spectrum-global-dimension-size-150)))auto auto var(--spectrum-global-dimension-size-150);grid-template-columns:calc(var(--spectrum-global-dimension-size-150) - var(--spectrum-selectlist-border-size-key-focus,var(--spectrum-global-dimension-static-size-25)))auto 1fr calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-selectlist-option-icon-padding-x,var(--spectrum-global-dimension-size-150)))auto auto var(--spectrum-global-dimension-size-150)}[dir=ltr] .spectrum-Menu_7ea47c .spectrum-Menu-end_7ea47c{padding-left:var(--spectrum-global-dimension-size-250)}[dir=rtl] .spectrum-Menu_7ea47c .spectrum-Menu-end_7ea47c{padding-right:var(--spectrum-global-dimension-size-250)}.spectrum-Menu_7ea47c .spectrum-Menu-end_7ea47c{grid-area:end;place-self:flex-start end}[dir=ltr] .spectrum-Menu-icon_7ea47c{padding-right:var(--spectrum-global-dimension-size-100)}[dir=rtl] .spectrum-Menu-icon_7ea47c{padding-left:var(--spectrum-global-dimension-size-100)}.spectrum-Menu-icon_7ea47c{padding-top:var(--spectrum-global-dimension-size-10);grid-area:icon}.spectrum-Menu-description_7ea47c{line-height:var(--spectrum-global-font-line-height-small,1.3);font-size:var(--spectrum-global-dimension-size-150);grid-area:description}[dir=ltr] .spectrum-Menu-keyboard_7ea47c{padding-left:var(--spectrum-global-dimension-size-125)}[dir=rtl] .spectrum-Menu-keyboard_7ea47c{padding-right:var(--spectrum-global-dimension-size-125)}.spectrum-Menu-keyboard_7ea47c{grid-area:keyboard;align-self:flex-start;font-family:adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,Trebuchet MS,Lucida Grande,sans-serif}.spectrum-Menu_7ea47c{--spectrum-heading-subtitle3-text-color:var(--spectrum-global-color-gray-900);background-color:var(--spectrum-selectlist-background-color,var(--spectrum-alias-background-color-transparent))}.spectrum-Menu-item_7ea47c{background-color:var(--spectrum-selectlist-option-background-color,var(--spectrum-alias-background-color-transparent));color:var(--spectrum-selectlist-option-text-color,var(--spectrum-alias-text-color))}[dir=ltr] .spectrum-Menu-item_7ea47c.focus-ring_7ea47c,[dir=ltr] .spectrum-Menu-item_7ea47c.is-focused_7ea47c{border-left-color:var(--spectrum-selectlist-option-focus-indicator-color,var(--spectrum-alias-border-color-focus))}[dir=rtl] .spectrum-Menu-item_7ea47c.focus-ring_7ea47c,[dir=rtl] .spectrum-Menu-item_7ea47c.is-focused_7ea47c{border-right-color:var(--spectrum-selectlist-option-focus-indicator-color,var(--spectrum-alias-border-color-focus))}.spectrum-Menu-item_7ea47c.focus-ring_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay));color:var(--spectrum-selectlist-option-text-color-key-focus,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c,.spectrum-Menu-item_7ea47c:focus,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-hover,var(--spectrum-alias-background-color-hover-overlay));color:var(--spectrum-selectlist-option-text-color-hover,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c{color:var(--spectrum-selectlist-option-icon-color-selected,var(--spectrum-alias-icon-color-selected))}.spectrum-Menu-item_7ea47c .is-active_7ea47c,.spectrum-Menu-item_7ea47c:active{background-color:var(--spectrum-selectlist-option-background-color-down,var(--spectrum-alias-background-color-hover-overlay))}.spectrum-Menu-item_7ea47c.is-disabled_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-disabled,var(--spectrum-alias-background-color-transparent));color:var(--spectrum-selectlist-option-text-color-disabled,var(--spectrum-alias-text-color-disabled));cursor:default;background-image:none}.spectrum-Menu-item_7ea47c.is-disabled_7ea47c .spectrum-Menu-description_7ea47c{color:var(--spectrum-selectlist-option-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-Menu-sectionHeading_7ea47c{color:var(--spectrum-heading-subtitle3-text-color,var(--spectrum-global-color-gray-700))}.spectrum-Menu-divider_7ea47c{background-color:var(--spectrum-global-color-gray-300)}.spectrum-Menu-description_7ea47c{color:var(--spectrum-global-color-gray-700)}@media (forced-colors:active){.spectrum-Menu-divider_7ea47c{background-color:CanvasText;forced-color-adjust:none}.spectrum-Menu-item_7ea47c{forced-color-adjust:none;--spectrum-heading-subtitle3-text-color:ButtonText;--spectrum-selectlist-background-color:ButtonFace;--spectrum-selectlist-divider-color:ButtonText;--spectrum-selectlist-option-background-color:ButtonFace;--spectrum-selectlist-option-background-color-disabled:ButtonFace;--spectrum-selectlist-option-background-color-down:ButtonFace;--spectrum-selectlist-option-background-color-hover:Highlight;--spectrum-selectlist-option-background-color-key-focus:Highlight;--spectrum-selectlist-option-focus-indicator-color:Highlight;--spectrum-selectlist-option-icon-color-selected:Highlight;--spectrum-selectlist-option-text-color:ButtonText;--spectrum-selectlist-option-text-color-disabled:GrayText;--spectrum-selectlist-option-text-color-hover:HighlightText;--spectrum-selectlist-option-text-color-key-focus:HighlightText;--spectrum-alias-border-color-focus:Highlight}.spectrum-Menu-item_7ea47c .spectrum-Menu-description_7ea47c{color:var(--spectrum-selectlist-option-text-color,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c,.spectrum-Menu-item_7ea47c:focus,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c,.spectrum-Menu-item_7ea47c.focus-ring_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c{background-color:var(--spectrum-selectlist-option-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay));color:var(--spectrum-selectlist-option-text-color-key-focus,var(--spectrum-alias-text-color))}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c:focus.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.focus-ring_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c.is-selected_7ea47c .spectrum-Menu-checkmark_7ea47c{color:HighlightText}.spectrum-Menu-item_7ea47c.is-hovered_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c:focus .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.is-highlighted_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.is-open_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.focus-ring_7ea47c .spectrum-Menu-description_7ea47c,.spectrum-Menu-item_7ea47c.is-focused_7ea47c .spectrum-Menu-description_7ea47c{color:var(--spectrum-selectlist-option-text-color-key-focus,var(--spectrum-alias-text-color));background-color:var(--spectrum-selectlist-option-background-color-key-focus,var(--spectrum-alias-background-color-hover-overlay))}}.react-spectrum-ContextualHelp-button_0cd31c{--spectrum-button-primary-height:var(--spectrum-global-dimension-size-250);--spectrum-actionbutton-height:var(--spectrum-global-dimension-size-250);--spectrum-actionbutton-min-width:var(--spectrum-global-dimension-size-250);--spectrum-actionbutton-icon-padding-x:var(--spectrum-global-dimension-size-40)}.react-spectrum-ContextualHelp-button_0cd31c svg{height:var(--spectrum-global-dimension-size-175);width:var(--spectrum-global-dimension-size-175)}.react-spectrum-ContextualHelp-dialog_0cd31c.react-spectrum-ContextualHelp-dialog_0cd31c{width:250px;--spectrum-dialog-padding-x:var(--spectrum-global-dimension-static-size-300,24px);--spectrum-dialog-padding-y:var(--spectrum-global-dimension-static-size-300,24px)}.react-spectrum-ContextualHelp-dialog_0cd31c.react-spectrum-ContextualHelp-dialog_0cd31c .react-spectrum-ContextualHelp-content_0cd31c{margin-top:var(--spectrum-global-dimension-static-size-100,8px)}.react-spectrum-ContextualHelp-dialog_0cd31c.react-spectrum-ContextualHelp-dialog_0cd31c .react-spectrum-ContextualHelp-footer_0cd31c{padding-top:var(--spectrum-global-dimension-static-size-100,8px)}
|
package/dist/main.js
CHANGED
|
@@ -90,6 +90,7 @@ $parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu", () => $3deee0fd2b46e6
|
|
|
90
90
|
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-sectionHeading", () => $3deee0fd2b46e64f$export$c20ea4b35020fbdd, (v) => $3deee0fd2b46e64f$export$c20ea4b35020fbdd = v);
|
|
91
91
|
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-checkmark", () => $3deee0fd2b46e64f$export$8e15a726e4f7e62d, (v) => $3deee0fd2b46e64f$export$8e15a726e4f7e62d = v);
|
|
92
92
|
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-item", () => $3deee0fd2b46e64f$export$45faad328e6c532b, (v) => $3deee0fd2b46e64f$export$45faad328e6c532b = v);
|
|
93
|
+
$parcel$export($3deee0fd2b46e64f$exports, "is-disabled", () => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf, (v) => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf = v);
|
|
93
94
|
$parcel$export($3deee0fd2b46e64f$exports, "is-selected", () => $3deee0fd2b46e64f$export$1e0fb04f31d3c22a, (v) => $3deee0fd2b46e64f$export$1e0fb04f31d3c22a = v);
|
|
94
95
|
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Icon", () => $3deee0fd2b46e64f$export$d374b04f30360026, (v) => $3deee0fd2b46e64f$export$d374b04f30360026 = v);
|
|
95
96
|
$parcel$export($3deee0fd2b46e64f$exports, "spectrum-Menu-itemLabel", () => $3deee0fd2b46e64f$export$1aa6419c5c650567, (v) => $3deee0fd2b46e64f$export$1aa6419c5c650567 = v);
|
|
@@ -108,12 +109,12 @@ $parcel$export($3deee0fd2b46e64f$exports, "is-hovered", () => $3deee0fd2b46e64f$
|
|
|
108
109
|
$parcel$export($3deee0fd2b46e64f$exports, "is-highlighted", () => $3deee0fd2b46e64f$export$451c613d0772eb99, (v) => $3deee0fd2b46e64f$export$451c613d0772eb99 = v);
|
|
109
110
|
$parcel$export($3deee0fd2b46e64f$exports, "is-open", () => $3deee0fd2b46e64f$export$a9781837241c946d, (v) => $3deee0fd2b46e64f$export$a9781837241c946d = v);
|
|
110
111
|
$parcel$export($3deee0fd2b46e64f$exports, "is-active", () => $3deee0fd2b46e64f$export$20fd0f7cd4e6112f, (v) => $3deee0fd2b46e64f$export$20fd0f7cd4e6112f = v);
|
|
111
|
-
$parcel$export($3deee0fd2b46e64f$exports, "is-disabled", () => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf, (v) => $3deee0fd2b46e64f$export$d35bc1e505d1ebbf = v);
|
|
112
112
|
var $3deee0fd2b46e64f$export$d959f30786125b;
|
|
113
113
|
var $3deee0fd2b46e64f$export$fae6af6decd50ac5;
|
|
114
114
|
var $3deee0fd2b46e64f$export$c20ea4b35020fbdd;
|
|
115
115
|
var $3deee0fd2b46e64f$export$8e15a726e4f7e62d;
|
|
116
116
|
var $3deee0fd2b46e64f$export$45faad328e6c532b;
|
|
117
|
+
var $3deee0fd2b46e64f$export$d35bc1e505d1ebbf;
|
|
117
118
|
var $3deee0fd2b46e64f$export$1e0fb04f31d3c22a;
|
|
118
119
|
var $3deee0fd2b46e64f$export$d374b04f30360026;
|
|
119
120
|
var $3deee0fd2b46e64f$export$1aa6419c5c650567;
|
|
@@ -132,12 +133,12 @@ var $3deee0fd2b46e64f$export$b8813cd5d7824ce7;
|
|
|
132
133
|
var $3deee0fd2b46e64f$export$451c613d0772eb99;
|
|
133
134
|
var $3deee0fd2b46e64f$export$a9781837241c946d;
|
|
134
135
|
var $3deee0fd2b46e64f$export$20fd0f7cd4e6112f;
|
|
135
|
-
var $3deee0fd2b46e64f$export$d35bc1e505d1ebbf;
|
|
136
136
|
$3deee0fd2b46e64f$export$d959f30786125b = "spectrum-Menu-popover_7ea47c";
|
|
137
137
|
$3deee0fd2b46e64f$export$fae6af6decd50ac5 = "spectrum-Menu_7ea47c";
|
|
138
138
|
$3deee0fd2b46e64f$export$c20ea4b35020fbdd = "spectrum-Menu-sectionHeading_7ea47c";
|
|
139
139
|
$3deee0fd2b46e64f$export$8e15a726e4f7e62d = "spectrum-Menu-checkmark_7ea47c";
|
|
140
140
|
$3deee0fd2b46e64f$export$45faad328e6c532b = "spectrum-Menu-item_7ea47c";
|
|
141
|
+
$3deee0fd2b46e64f$export$d35bc1e505d1ebbf = "is-disabled_7ea47c";
|
|
141
142
|
$3deee0fd2b46e64f$export$1e0fb04f31d3c22a = "is-selected_7ea47c";
|
|
142
143
|
$3deee0fd2b46e64f$export$d374b04f30360026 = "spectrum-Icon_7ea47c";
|
|
143
144
|
$3deee0fd2b46e64f$export$1aa6419c5c650567 = "spectrum-Menu-itemLabel_7ea47c";
|
|
@@ -156,7 +157,6 @@ $3deee0fd2b46e64f$export$b8813cd5d7824ce7 = "is-hovered_7ea47c";
|
|
|
156
157
|
$3deee0fd2b46e64f$export$451c613d0772eb99 = "is-highlighted_7ea47c";
|
|
157
158
|
$3deee0fd2b46e64f$export$a9781837241c946d = "is-open_7ea47c";
|
|
158
159
|
$3deee0fd2b46e64f$export$20fd0f7cd4e6112f = "is-active_7ea47c";
|
|
159
|
-
$3deee0fd2b46e64f$export$d35bc1e505d1ebbf = "is-disabled_7ea47c";
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
|
|
@@ -558,7 +558,10 @@ function $1d718563708db5b5$export$2ce376c2cc3355c8(props) {
|
|
|
558
558
|
let isMenuDialogTrigger = !!menuDialogContext;
|
|
559
559
|
let isUnavailable = false;
|
|
560
560
|
if (isMenuDialogTrigger) isUnavailable = menuDialogContext.isUnavailable;
|
|
561
|
-
let
|
|
561
|
+
let ElementType = item.props.href ? "a" : "div";
|
|
562
|
+
let domProps = (0, $3ThwF$reactariautils.filterDOMProps)(item.props, {
|
|
563
|
+
isLink: !!item.props.href
|
|
564
|
+
});
|
|
562
565
|
let { closeOnSelect: closeOnSelect } = (0, $cac834c4bc0a51d3$export$21c7ab35b39f78ec)();
|
|
563
566
|
let { rendered: rendered , key: key } = item;
|
|
564
567
|
let isSelected = state.selectionManager.isSelected(key);
|
|
@@ -590,7 +593,7 @@ function $1d718563708db5b5$export$2ce376c2cc3355c8(props) {
|
|
|
590
593
|
let contents = typeof rendered === "string" ? /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement((0, $3ThwF$reactspectrumtext.Text), null, rendered) : rendered;
|
|
591
594
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement((0, $3ThwF$reactariafocus.FocusRing), {
|
|
592
595
|
focusRingClass: (0, $3ThwF$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "focus-ring")
|
|
593
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement(
|
|
596
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement(ElementType, {
|
|
594
597
|
...(0, $3ThwF$reactariautils.mergeProps)(menuItemProps, domProps),
|
|
595
598
|
ref: ref,
|
|
596
599
|
className: (0, $3ThwF$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-item", {
|
|
@@ -660,15 +663,15 @@ function $5793ff412227d2fc$export$4b1545b4f2016d26(props) {
|
|
|
660
663
|
"aria-label": item["aria-label"]
|
|
661
664
|
});
|
|
662
665
|
let { separatorProps: separatorProps } = (0, $3ThwF$reactariaseparator.useSeparator)({
|
|
663
|
-
elementType: "
|
|
666
|
+
elementType: "div"
|
|
664
667
|
});
|
|
665
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement((0, $3ThwF$react.Fragment), null, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("
|
|
668
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement((0, $3ThwF$react.Fragment), null, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("div", {
|
|
666
669
|
...separatorProps,
|
|
667
670
|
className: (0, $3ThwF$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-divider")
|
|
668
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("
|
|
671
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("div", itemProps, item.rendered && /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("span", {
|
|
669
672
|
...headingProps,
|
|
670
673
|
className: (0, $3ThwF$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu-sectionHeading")
|
|
671
|
-
}, item.rendered), /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("
|
|
674
|
+
}, item.rendered), /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("div", {
|
|
672
675
|
...groupProps,
|
|
673
676
|
className: (0, $3ThwF$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3deee0fd2b46e64f$exports))), "spectrum-Menu")
|
|
674
677
|
}, [
|
|
@@ -717,7 +720,7 @@ function $63a7dff9cbe2d046$var$Menu(props, ref) {
|
|
|
717
720
|
display: "inline-flex",
|
|
718
721
|
borderRadius: "var(--spectrum-alias-border-radius-regular)"
|
|
719
722
|
}
|
|
720
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("
|
|
723
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3ThwF$react))).createElement("div", {
|
|
721
724
|
...menuProps,
|
|
722
725
|
...styleProps,
|
|
723
726
|
ref: domRef,
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;AAgBM,MAAM,4CAAc,CAAA,GAAA,sCAAI,EAAE,cAAgC,CAAC;AAE3D,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE;AACpB;AAOO,MAAM,4CAAoB,CAAA,GAAA,sCAAI,EAAE,cAAkD;AAElF,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE;AACpB;AAQO,MAAM,4CAAmB,CAAA,GAAA,sCAAI,EAAE,cAA0C,CAAC;AAE1E,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE;AACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrDA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAvBA,0CAA0C;AAC1C,4CAAkC;AAClC,4CAAiD;AACjD,4CAA4C;AAC5C,4CAAuC;AACvC,4CAAgC;AAChC,4CAAkC;AAClC,4CAA4C;AAC5C,4CAA2C;AAC3C,4CAAsD;AACtD,4CAA0C;AAC1C,4CAA2C;AAC3C,4CAAkC;AAClC,4CAAs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AAA,GAAA,kCAAI;QAAE,OAAO;QAAO,eAAA;qBACnB,0DAAC,CAAA,GAAA,sCAAY;QAAE,WAAW,MAAM;QAC/B,uBACD,0DAAC,CAAA,GAAA,sCAAY;QAAE,WAAW,MAAM;wBAGlC,0DAAC,CAAA,GAAA,oCAAM;QACL,QAAQ;QACR,cAAc;QACd,WAAW,UAAU;QACrB,OAAO;QACP,KAAK;QACL,YAAY;QACZ,WAAU;QACV,QAAQ;QACR,WAAA;QACA,YAAA;QACA,0BAAA;QACA,wBAAA;OACC;AAOf;AAEA,4CAAsB,oBAAoB,UAAU,kBAAqB,KAAmB;IAC1F,IAAI,CAAC,QAAQ,GAAG,CAAA,GAAA,sCAAI,EAAE,SAAS,QAAQ,MAAM;IAC7C,IAAI,GAAG,QAAQ,GAAG,MAAM;IAExB,MAAM;QACJ,uBAAS,CAAA,GAAA,sCAAI,EAAE,aAAa,SAAS;YAAC,GAAG,QAAQ,KAAK;YAAE,eAAe;QAAI;QAC3E,SAAS,CAAC,wBACR,0DAAC;gBAAsB,KAAK,QAAQ;gBAAK,WAAW,QAAQ;gBAAM,GAAG,KAAK;eACvE,SACA;IAGP;AACF;AAEA,IAAI,4CAAQ;;","sources":["packages/@react-spectrum/menu/src/index.ts","packages/@react-spectrum/menu/src/MenuTrigger.tsx","packages/@react-spectrum/menu/src/context.ts","packages/@adobe/spectrum-css-temp/components/menu/vars.css","packages/@react-spectrum/menu/src/Menu.tsx","packages/@react-spectrum/menu/src/MenuItem.tsx","packages/@react-spectrum/menu/src/*.js","packages/@react-spectrum/menu/intl/ar-AE.json","packages/@react-spectrum/menu/intl/bg-BG.json","packages/@react-spectrum/menu/intl/cs-CZ.json","packages/@react-spectrum/menu/intl/da-DK.json","packages/@react-spectrum/menu/intl/de-DE.json","packages/@react-spectrum/menu/intl/el-GR.json","packages/@react-spectrum/menu/intl/en-US.json","packages/@react-spectrum/menu/intl/es-ES.json","packages/@react-spectrum/menu/intl/et-EE.json","packages/@react-spectrum/menu/intl/fi-FI.json","packages/@react-spectrum/menu/intl/fr-FR.json","packages/@react-spectrum/menu/intl/he-IL.json","packages/@react-spectrum/menu/intl/hr-HR.json","packages/@react-spectrum/menu/intl/hu-HU.json","packages/@react-spectrum/menu/intl/it-IT.json","packages/@react-spectrum/menu/intl/ja-JP.json","packages/@react-spectrum/menu/intl/ko-KR.json","packages/@react-spectrum/menu/intl/lt-LT.json","packages/@react-spectrum/menu/intl/lv-LV.json","packages/@react-spectrum/menu/intl/nb-NO.json","packages/@react-spectrum/menu/intl/nl-NL.json","packages/@react-spectrum/menu/intl/pl-PL.json","packages/@react-spectrum/menu/intl/pt-BR.json","packages/@react-spectrum/menu/intl/pt-PT.json","packages/@react-spectrum/menu/intl/ro-RO.json","packages/@react-spectrum/menu/intl/ru-RU.json","packages/@react-spectrum/menu/intl/sk-SK.json","packages/@react-spectrum/menu/intl/sl-SI.json","packages/@react-spectrum/menu/intl/sr-SP.json","packages/@react-spectrum/menu/intl/sv-SE.json","packages/@react-spectrum/menu/intl/tr-TR.json","packages/@react-spectrum/menu/intl/uk-UA.json","packages/@react-spectrum/menu/intl/zh-CN.json","packages/@react-spectrum/menu/intl/zh-TW.json","packages/@react-spectrum/menu/src/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx","packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css"],"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\n/// <reference types=\"css-module-types\" />\n\nexport {MenuTrigger} from './MenuTrigger';\nexport {Menu} from './Menu';\nexport {ActionMenu} from './ActionMenu';\nexport {ContextualHelpTrigger} from './ContextualHelpTrigger';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu';\nexport type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger';\n","/*\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, SlotProvider, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {MenuContext} from './context';\nimport {Placement} from '@react-types/overlays';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder} from '@react-aria/interactions';\nimport React, {forwardRef, Fragment, useRef} from 'react';\nimport {SpectrumMenuTriggerProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenuTrigger} from '@react-aria/menu';\nimport {useMenuTriggerState} from '@react-stately/menu';\n\nfunction MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>) {\n let triggerRef = useRef<HTMLElement>();\n let domRef = useDOMRef(ref);\n let menuTriggerRef = domRef || triggerRef;\n let menuRef = useRef<HTMLUListElement>();\n let {\n children,\n align = 'start',\n shouldFlip = true,\n direction = 'bottom',\n closeOnSelect,\n trigger = 'press'\n } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let state = useMenuTriggerState(props);\n\n let {menuTriggerProps, menuProps} = useMenuTrigger({trigger}, state, menuTriggerRef);\n\n let initialPlacement: Placement;\n switch (direction) {\n case 'left':\n case 'right':\n case 'start':\n case 'end':\n initialPlacement = `${direction} ${align === 'end' ? 'bottom' : 'top'}` as Placement;\n break;\n case 'bottom':\n case 'top':\n default:\n initialPlacement = `${direction} ${align}` as Placement;\n }\n\n let isMobile = useIsMobileDevice();\n let menuContext = {\n ...menuProps,\n state,\n ref: menuRef,\n onClose: state.close,\n closeOnSelect,\n autoFocus: state.focusStrategy || true,\n UNSAFE_style: isMobile ? {\n width: '100%',\n maxHeight: 'inherit'\n } : undefined,\n UNSAFE_className: classNames(styles, {'spectrum-Menu-popover': !isMobile})\n };\n\n // On small screen devices, the menu is rendered in a tray, otherwise a popover.\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray state={state}>\n {menu}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n UNSAFE_style={{clipPath: 'unset', overflow: 'visible'}}\n state={state}\n triggerRef={menuTriggerRef}\n scrollRef={menuRef}\n placement={initialPlacement}\n hideArrow\n shouldFlip={shouldFlip}>\n {menu}\n </Popover>\n );\n }\n\n return (\n <Fragment>\n <SlotProvider slots={{actionButton: {holdAffordance: trigger === 'longPress'}}}>\n <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>\n {menuTrigger}\n </PressResponder>\n </SlotProvider>\n <MenuContext.Provider value={menuContext}>\n {overlay}\n </MenuContext.Provider>\n </Fragment>\n );\n}\n\n/**\n * The MenuTrigger serves as a wrapper around a Menu and its associated trigger,\n * linking the Menu's open state with the trigger's press state.\n */\nlet _MenuTrigger = forwardRef(MenuTrigger);\nexport {_MenuTrigger as MenuTrigger};\n","/*\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 {FocusStrategy} from '@react-types/shared';\nimport {MenuTriggerState} from '@react-stately/menu';\nimport React, {HTMLAttributes, MutableRefObject, RefObject, useContext} from 'react';\nimport {TreeState} from '@react-stately/tree';\n\nexport interface MenuContextValue extends Omit<HTMLAttributes<HTMLElement>, 'autoFocus'> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLUListElement>,\n state?: MenuTriggerState\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\n}\n\nexport interface MenuDialogContextValue {\n isUnavailable?: boolean,\n triggerRef?: MutableRefObject<HTMLLIElement>\n}\n\nexport const MenuDialogContext = React.createContext<MenuDialogContextValue | undefined>(undefined);\n\nexport function useMenuDialogContext(): MenuDialogContextValue {\n return useContext(MenuDialogContext);\n}\n\nexport interface MenuStateContextValue<T> {\n state?: TreeState<T>,\n container?: RefObject<HTMLElement>,\n menu?: RefObject<HTMLUListElement>\n}\n\nexport const MenuStateContext = React.createContext<MenuStateContextValue<any>>({});\n\nexport function useMenuStateContext<T>(): MenuStateContextValue<T> {\n return useContext(MenuStateContext);\n}\n\n","/*\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\n@import './index.css';\n@import './skin.css';\n","/*\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, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\nimport {MenuContext, MenuStateContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext, useRef} from 'react';\nimport {SpectrumMenuProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenu} from '@react-aria/menu';\nimport {useTreeState} from '@react-stately/tree';\n\nfunction Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLUListElement>) {\n let contextProps = useContext(MenuContext);\n let completeProps = {\n ...mergeProps(contextProps, props)\n };\n\n let domRef = useDOMRef(ref);\n let scopedRef = useRef(null);\n let state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\n <MenuStateContext.Provider value={{state, container: scopedRef, menu: domRef}}>\n <FocusScope contain={state.expandedKeys.size > 0}>\n <div style={{overflow: 'hidden', maxHeight: '100%', display: 'inline-flex', borderRadius: 'var(--spectrum-alias-border-radius-regular)'}}>\n <ul\n {...menuProps}\n {...styleProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Menu',\n styleProps.className\n )\n }>\n {[...state.collection].map(item => {\n if (item.type === 'section') {\n return (\n <MenuSection\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n }\n\n let menuItem = (\n <MenuItem\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n\n if (item.wrapper) {\n menuItem = item.wrapper(menuItem);\n }\n\n return menuItem;\n })}\n </ul>\n </div>\n <div ref={scopedRef} />\n </FocusScope>\n </MenuStateContext.Provider>\n );\n}\n\n/**\n * Menus display a list of actions or options that a user can choose.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Menu = React.forwardRef(Menu) as <T>(props: SpectrumMenuProps<T> & {ref?: DOMRef<HTMLUListElement>}) => ReactElement;\nexport {_Menu as Menu};\n","/*\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 CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {DOMAttributes, Node} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, mergeRefs, useObjectRef, useSlotId} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {Key, useMemo, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {TreeState} from '@react-stately/tree';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMenuContext, useMenuDialogContext} from './context';\nimport {useMenuItem} from '@react-aria/menu';\n\ninterface MenuItemProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n isVirtualized?: boolean,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuItem<T>(props: MenuItemProps<T>) {\n let {\n item,\n state,\n isVirtualized,\n onAction\n } = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let menuDialogContext = useMenuDialogContext();\n let {triggerRef} = menuDialogContext || {};\n let isMenuDialogTrigger = !!menuDialogContext;\n let isUnavailable = false;\n\n if (isMenuDialogTrigger) {\n isUnavailable = menuDialogContext.isUnavailable;\n }\n\n let domProps = filterDOMProps(item.props);\n\n let {\n closeOnSelect\n } = useMenuContext();\n\n let {\n rendered,\n key\n } = item;\n\n let isSelected = state.selectionManager.isSelected(key);\n let isDisabled = state.disabledKeys.has(key);\n\n let itemref = useRef<HTMLLIElement>(null);\n let ref = useObjectRef(useMemo(() => mergeRefs(itemref, triggerRef), [itemref, triggerRef]));\n\n let {\n menuItemProps,\n labelProps,\n descriptionProps,\n keyboardShortcutProps\n } = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n closeOnSelect,\n isVirtualized,\n onAction,\n 'aria-haspopup': isMenuDialogTrigger && isUnavailable ? 'dialog' : undefined\n },\n state,\n ref\n );\n let endId = useSlotId();\n let endProps: DOMAttributes = {};\n if (endId) {\n endProps.id = endId;\n menuItemProps['aria-describedby'] = [menuItemProps['aria-describedby'], endId].filter(Boolean).join(' ');\n }\n\n let contents = typeof rendered === 'string'\n ? <Text>{rendered}</Text>\n : rendered;\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <li\n {...mergeProps(menuItemProps, domProps)}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Menu-item',\n {\n 'is-disabled': isDisabled,\n 'is-selected': isSelected,\n 'is-selectable': state.selectionManager.selectionMode !== 'none',\n 'is-open': state.expandedKeys.has(key)\n }\n )}>\n <Grid\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-itemGrid'\n )\n }>\n <ClearSlots>\n <SlotProvider\n slots={{\n text: {UNSAFE_className: styles['spectrum-Menu-itemLabel'], ...labelProps},\n end: {UNSAFE_className: styles['spectrum-Menu-end'], ...endProps},\n icon: {UNSAFE_className: styles['spectrum-Menu-icon'], size: 'S'},\n description: {UNSAFE_className: styles['spectrum-Menu-description'], ...descriptionProps},\n keyboard: {UNSAFE_className: styles['spectrum-Menu-keyboard'], ...keyboardShortcutProps}\n }}>\n {contents}\n {isSelected &&\n <CheckmarkMedium\n slot=\"checkmark\"\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-checkmark'\n )\n } />\n }\n {\n isUnavailable && <InfoOutline slot=\"end\" size=\"XS\" alignSelf=\"center\" aria-label={stringFormatter.format('unavailable')} />\n }\n </SlotProvider>\n </ClearSlots>\n </Grid>\n </li>\n </FocusRing>\n );\n}\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"moreActions\": \"المزيد من الإجراءات\",\n \"unavailable\": \"غير مُتوفر، قُم بالتوسيع للحصول على التفاصيل\"\n}\n","{\n \"moreActions\": \"Повече действия\",\n \"unavailable\": \"Недостъпно, разгънете за подробности\"\n}\n","{\n \"moreActions\": \"Další akce\",\n \"unavailable\": \"Není k dispozici, rozbalením zobrazíte podrobnosti\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Ikke tilgængelig, udvid for detaljer\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\",\n \"unavailable\": \"Nicht verfügbar, für Details erweitern\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\",\n \"unavailable\": \"Μη διαθέσιμο, ανάπτυξη για λεπτομέρειες\"\n}\n","{\n \"moreActions\": \"More actions\",\n \"unavailable\": \"Unavailable, expand for details\"\n}\n","{\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, ampliar para más detalles\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\",\n \"unavailable\": \"Pole kättesaadav, üksikasjade vaatamiseks laiendage\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\",\n \"unavailable\": \"Ei saatavilla, laajenna saadaksesi lisätietoja\"\n}\n","{\n \"moreActions\": \"Autres actions\",\n \"unavailable\": \"Indisponible, développer pour plus de détails\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\",\n \"unavailable\": \"לא זמין, הרחב לפרטים\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširi za detalje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\",\n \"unavailable\": \"Nem érhető el, a részletekért bontsa ki\"\n}\n","{\n \"moreActions\": \"Altre azioni\",\n \"unavailable\": \"Non disponibile, espandi per i dettagli\"\n}\n","{\n \"moreActions\": \"その他のアクション\",\n \"unavailable\": \"利用できません。詳しくは、展開して確認してください\"\n}\n","{\n \"moreActions\": \"기타 액션\",\n \"unavailable\": \"사용할 수 없음, 자세히 보려면 펼치기\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\",\n \"unavailable\": \"Nepasiekiama, norėdami gauti daugiau informacijos, išskleiskite\"\n}\n","{\n \"moreActions\": \"Citas darbības\",\n \"unavailable\": \"Nav pieejams, izvērsiet, lai skatītu sīkāku informāciju\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Utilgjengelig, utvid for detaljer\"\n}\n","{\n \"moreActions\": \"Meer handelingen\",\n \"unavailable\": \"Niet beschikbaar, uitvouwen voor meer informatie\"\n}\n","{\n \"moreActions\": \"Więcej akcji\",\n \"unavailable\": \"Niedostępne, rozwiń, aby zobaczyć szczegóły\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível. Expanda para ver os detalhes\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível, expandir para mais detalhes\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\",\n \"unavailable\": \"Indisponibil, extindeți pentru detalii\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\",\n \"unavailable\": \"Недоступно, разверните для подробностей\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\",\n \"unavailable\": \"Nedostupné, rozbaľte podrobnosti\"\n}\n","{\n \"moreActions\": \"Več možnosti\",\n \"unavailable\": \"Ni na voljo, razširite za podrobnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširite za detalje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\",\n \"unavailable\": \"Ej tillgänglig, expandera för mer information\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\",\n \"unavailable\": \"Kullanılamıyor, ayrıntıları görmek için genişletin\"\n}\n","{\n \"moreActions\": \"Більше дій\",\n \"unavailable\": \"Недоступно, розгорніть для докладнішої інформації\"\n}\n","{\n \"moreActions\": \"更多操作\",\n \"unavailable\": \"不可用,展开以查看详细信息\"\n}\n","{\n \"moreActions\": \"更多動作\",\n \"unavailable\": \"無法使用,展開以取得詳細資料\"\n}\n","/*\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 {getChildNodes} from '@react-stately/collections';\nimport {MenuItem} from './MenuItem';\nimport {Node} from '@react-types/shared';\nimport React, {Fragment, Key} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {TreeState} from '@react-stately/tree';\nimport {useMenuSection} from '@react-aria/menu';\nimport {useSeparator} from '@react-aria/separator';\n\ninterface MenuSectionProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuSection<T>(props: MenuSectionProps<T>) {\n let {item, state, onAction} = props;\n let {itemProps, headingProps, groupProps} = useMenuSection({\n heading: item.rendered,\n 'aria-label': item['aria-label']\n });\n\n let {separatorProps} = useSeparator({\n elementType: 'li'\n });\n\n return (\n <Fragment>\n {item.key !== state.collection.getFirstKey() &&\n <li\n {...separatorProps}\n className={classNames(\n styles,\n 'spectrum-Menu-divider'\n )} />\n }\n <li {...itemProps}>\n {item.rendered &&\n <span\n {...headingProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu-sectionHeading'\n )\n }>\n {item.rendered}\n </span>\n }\n <ul\n {...groupProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu'\n )\n }>\n {[...getChildNodes(item, state.collection)].map(node => {\n let item = (\n <MenuItem\n key={node.key}\n item={node}\n state={state}\n onAction={onAction} />\n );\n\n if (node.wrapper) {\n item = node.wrapper(item);\n }\n\n return item;\n })}\n </ul>\n </li>\n </Fragment>\n );\n}\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusableRef} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Menu} from './Menu';\nimport {MenuTrigger} from './MenuTrigger';\nimport More from '@spectrum-icons/workflow/More';\nimport React, {forwardRef, ReactElement} from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSlotProps} from '@react-spectrum/utils';\n\nfunction ActionMenu<T extends object>(props: SpectrumActionMenuProps<T>, ref: FocusableRef<HTMLButtonElement>) {\n props = useSlotProps(props, 'actionMenu');\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = stringFormatter.format('moreActions');\n }\n\n return (\n <MenuTrigger\n isOpen={props.isOpen}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n align={props.align}\n direction={props.direction}\n shouldFlip={props.shouldFlip}>\n <ActionButton\n ref={ref}\n {...props}\n {...buttonProps}>\n <More />\n </ActionButton>\n <Menu\n children={props.children}\n items={props.items}\n disabledKeys={props.disabledKeys}\n onAction={props.onAction} />\n </MenuTrigger>\n );\n}\n\n/**\n * ActionMenu combines an ActionButton with a Menu for simple \"more actions\" use cases.\n */\nconst _ActionMenu = forwardRef(ActionMenu) as <T>(props: SpectrumActionMenuProps<T> & {ref?: FocusableRef<HTMLButtonElement>}) => ReactElement;\nexport {_ActionMenu as ActionMenu};\n","/*\n * Copyright 2023 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, SlotProvider, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton} from '@react-aria/overlays';\nimport helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css';\nimport {ItemProps} from '@react-types/shared';\nimport {MenuDialogContext, useMenuStateContext} from './context';\nimport {Modal, Popover} from '@react-spectrum/overlays';\nimport React, {Key, ReactElement, useRef} from 'react';\nimport {useOverlayTriggerState} from '@react-stately/overlays';\n\ninterface MenuDialogTriggerProps<T> extends ItemProps<T> {\n /** Whether the menu item is currently unavailable. */\n isUnavailable?: boolean,\n /** The triggering Item and the Dialog, respectively. */\n children: [ReactElement, ReactElement],\n targetKey: Key\n}\n\nexport interface SpectrumMenuDialogTriggerProps<T> extends Omit<MenuDialogTriggerProps<T>, 'targetKey' | 'title' | 'textValue' | 'childItems' | 'hasChildItems'> {}\n\nfunction ContextualHelpTrigger<T>(props: MenuDialogTriggerProps<T>): ReactElement {\n let {isUnavailable} = props;\n\n let triggerRef = useRef<HTMLLIElement>(null);\n let popoverRef = useRef(null);\n let {state: menuState, container, menu} = useMenuStateContext();\n let state = useOverlayTriggerState({isOpen: menuState.expandedKeys.has(props.targetKey), onOpenChange: (val) => {\n if (!val) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n }});\n let slots = {};\n if (isUnavailable) {\n slots = {\n dialog: {UNSAFE_className: classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')},\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n }\n let [trigger] = React.Children.toArray(props.children);\n let [, content] = props.children as [ReactElement, ReactElement];\n\n let isMobile = useIsMobileDevice();\n\n let onExit = () => {\n // if focus was already moved back to a menu item, don't need to do anything\n if (!menu.current.contains(document.activeElement)) {\n // need to return focus to the trigger because hitting Esc causes focus to go to the subdialog, which is then unmounted\n // this leads to blur never being fired nor focus on the body\n triggerRef.current.focus();\n }\n };\n let onBlurWithin = (e) => {\n if (e.relatedTarget && popoverRef.current && !popoverRef.current?.UNSAFE_getDOMNode().contains(e.relatedTarget)) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n };\n return (\n <>\n <MenuDialogContext.Provider value={{isUnavailable, triggerRef}}>{trigger}</MenuDialogContext.Provider>\n <SlotProvider slots={slots}>\n {\n isMobile ? (\n <Modal state={state} isDismissable>\n <DismissButton onDismiss={state.close} />\n {content}\n <DismissButton onDismiss={state.close} />\n </Modal>\n ) : (\n <Popover\n onExit={onExit}\n onBlurWithin={onBlurWithin}\n container={container.current}\n state={state}\n ref={popoverRef}\n triggerRef={triggerRef}\n placement=\"end top\"\n offset={-10}\n hideArrow\n isNonModal\n enableBothDismissButtons\n disableFocusManagement>\n {content}\n </Popover>\n )\n }\n </SlotProvider>\n </>\n );\n}\n\nContextualHelpTrigger.getCollectionNode = function* getCollectionNode<T>(props: ItemProps<T>) {\n let [trigger] = React.Children.toArray(props.children) as ReactElement[];\n let [, content] = props.children as [ReactElement, ReactElement];\n\n yield {\n element: React.cloneElement(trigger, {...trigger.props, hasChildItems: true}),\n wrapper: (element) => (\n <ContextualHelpTrigger key={element.key} targetKey={element.key} {...props}>\n {element}\n {content}\n </ContextualHelpTrigger>\n )\n };\n};\n\nlet _Item = ContextualHelpTrigger as <T>(props: SpectrumMenuDialogTriggerProps<T>) => JSX.Element;\nexport {_Item as ContextualHelpTrigger};\n","/*\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;AAgBM,MAAM,4CAAc,CAAA,GAAA,sCAAI,EAAE,cAAgC,CAAC;AAE3D,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE;AACpB;AAOO,MAAM,4CAAoB,CAAA,GAAA,sCAAI,EAAE,cAAkD;AAElF,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE;AACpB;AAQO,MAAM,4CAAmB,CAAA,GAAA,sCAAI,EAAE,cAA0C,CAAC;AAE1E,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE;AACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrDA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAvBA,0CAA0C;AAC1C,4CAAkC;AAClC,4CAAiD;AACjD,4CAA4C;AAC5C,4CAAuC;AACvC,4CAAgC;AAChC,4CAAgC;AAChC,4CAAkC;AAClC,4CAA4C;AAC5C,4CAA2C;AAC3C,4CAAsD;AACtD,4CAA0C;AAC1C,4CAA2C;AAC3C,4CAAkC;AAClC,4CAAsC;AACtC,4CAAuC;AACvC,4CAA8C;AAC9C,4CAA2C;AAC3C,4CAA+B;A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B,yBACE,0DAAC,CAAA,GAAA,kCAAI;QAAE,OAAO;QAAO,eAAA;qBACnB,0DAAC,CAAA,GAAA,sCAAY;QAAE,WAAW,MAAM;QAC/B,uBACD,0DAAC,CAAA,GAAA,sCAAY;QAAE,WAAW,MAAM;wBAGlC,0DAAC,CAAA,GAAA,oCAAM;QACL,QAAQ;QACR,cAAc;QACd,WAAW,UAAU;QACrB,OAAO;QACP,KAAK;QACL,YAAY;QACZ,WAAU;QACV,QAAQ;QACR,WAAA;QACA,YAAA;QACA,0BAAA;QACA,wBAAA;OACC;AAOf;AAEA,4CAAsB,oBAAoB,UAAU,kBAAqB,KAAmB;IAC1F,IAAI,CAAC,QAAQ,GAAG,CAAA,GAAA,sCAAI,EAAE,SAAS,QAAQ,MAAM;IAC7C,IAAI,GAAG,QAAQ,GAAG,MAAM;IAExB,MAAM;QACJ,uBAAS,CAAA,GAAA,sCAAI,EAAE,aAAa,SAAS;YAAC,GAAG,QAAQ,KAAK;YAAE,eAAe;QAAI;QAC3E,SAAS,CAAC,wBACR,0DAAC;gBAAsB,KAAK,QAAQ;gBAAK,WAAW,QAAQ;gBAAM,GAAG,KAAK;eACvE,SACA;IAGP;AACF;AAEA,IAAI,4CAAQ;;","sources":["packages/@react-spectrum/menu/src/index.ts","packages/@react-spectrum/menu/src/MenuTrigger.tsx","packages/@react-spectrum/menu/src/context.ts","packages/@adobe/spectrum-css-temp/components/menu/vars.css","packages/@react-spectrum/menu/src/Menu.tsx","packages/@react-spectrum/menu/src/MenuItem.tsx","packages/@react-spectrum/menu/src/*.js","packages/@react-spectrum/menu/intl/ar-AE.json","packages/@react-spectrum/menu/intl/bg-BG.json","packages/@react-spectrum/menu/intl/cs-CZ.json","packages/@react-spectrum/menu/intl/da-DK.json","packages/@react-spectrum/menu/intl/de-DE.json","packages/@react-spectrum/menu/intl/el-GR.json","packages/@react-spectrum/menu/intl/en-US.json","packages/@react-spectrum/menu/intl/es-ES.json","packages/@react-spectrum/menu/intl/et-EE.json","packages/@react-spectrum/menu/intl/fi-FI.json","packages/@react-spectrum/menu/intl/fr-FR.json","packages/@react-spectrum/menu/intl/he-IL.json","packages/@react-spectrum/menu/intl/hr-HR.json","packages/@react-spectrum/menu/intl/hu-HU.json","packages/@react-spectrum/menu/intl/it-IT.json","packages/@react-spectrum/menu/intl/ja-JP.json","packages/@react-spectrum/menu/intl/ko-KR.json","packages/@react-spectrum/menu/intl/lt-LT.json","packages/@react-spectrum/menu/intl/lv-LV.json","packages/@react-spectrum/menu/intl/nb-NO.json","packages/@react-spectrum/menu/intl/nl-NL.json","packages/@react-spectrum/menu/intl/pl-PL.json","packages/@react-spectrum/menu/intl/pt-BR.json","packages/@react-spectrum/menu/intl/pt-PT.json","packages/@react-spectrum/menu/intl/ro-RO.json","packages/@react-spectrum/menu/intl/ru-RU.json","packages/@react-spectrum/menu/intl/sk-SK.json","packages/@react-spectrum/menu/intl/sl-SI.json","packages/@react-spectrum/menu/intl/sr-SP.json","packages/@react-spectrum/menu/intl/sv-SE.json","packages/@react-spectrum/menu/intl/tr-TR.json","packages/@react-spectrum/menu/intl/uk-UA.json","packages/@react-spectrum/menu/intl/zh-CN.json","packages/@react-spectrum/menu/intl/zh-TW.json","packages/@react-spectrum/menu/src/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx","packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css"],"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\n/// <reference types=\"css-module-types\" />\n\nexport {MenuTrigger} from './MenuTrigger';\nexport {Menu} from './Menu';\nexport {ActionMenu} from './ActionMenu';\nexport {ContextualHelpTrigger} from './ContextualHelpTrigger';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu';\nexport type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger';\n","/*\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, SlotProvider, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {MenuContext} from './context';\nimport {Placement} from '@react-types/overlays';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder} from '@react-aria/interactions';\nimport React, {forwardRef, Fragment, useRef} from 'react';\nimport {SpectrumMenuTriggerProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenuTrigger} from '@react-aria/menu';\nimport {useMenuTriggerState} from '@react-stately/menu';\n\nfunction MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>) {\n let triggerRef = useRef<HTMLElement>();\n let domRef = useDOMRef(ref);\n let menuTriggerRef = domRef || triggerRef;\n let menuRef = useRef<HTMLDivElement>();\n let {\n children,\n align = 'start',\n shouldFlip = true,\n direction = 'bottom',\n closeOnSelect,\n trigger = 'press'\n } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let state = useMenuTriggerState(props);\n\n let {menuTriggerProps, menuProps} = useMenuTrigger({trigger}, state, menuTriggerRef);\n\n let initialPlacement: Placement;\n switch (direction) {\n case 'left':\n case 'right':\n case 'start':\n case 'end':\n initialPlacement = `${direction} ${align === 'end' ? 'bottom' : 'top'}` as Placement;\n break;\n case 'bottom':\n case 'top':\n default:\n initialPlacement = `${direction} ${align}` as Placement;\n }\n\n let isMobile = useIsMobileDevice();\n let menuContext = {\n ...menuProps,\n state,\n ref: menuRef,\n onClose: state.close,\n closeOnSelect,\n autoFocus: state.focusStrategy || true,\n UNSAFE_style: isMobile ? {\n width: '100%',\n maxHeight: 'inherit'\n } : undefined,\n UNSAFE_className: classNames(styles, {'spectrum-Menu-popover': !isMobile})\n };\n\n // On small screen devices, the menu is rendered in a tray, otherwise a popover.\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray state={state}>\n {menu}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n UNSAFE_style={{clipPath: 'unset', overflow: 'visible'}}\n state={state}\n triggerRef={menuTriggerRef}\n scrollRef={menuRef}\n placement={initialPlacement}\n hideArrow\n shouldFlip={shouldFlip}>\n {menu}\n </Popover>\n );\n }\n\n return (\n <Fragment>\n <SlotProvider slots={{actionButton: {holdAffordance: trigger === 'longPress'}}}>\n <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>\n {menuTrigger}\n </PressResponder>\n </SlotProvider>\n <MenuContext.Provider value={menuContext}>\n {overlay}\n </MenuContext.Provider>\n </Fragment>\n );\n}\n\n/**\n * The MenuTrigger serves as a wrapper around a Menu and its associated trigger,\n * linking the Menu's open state with the trigger's press state.\n */\nlet _MenuTrigger = forwardRef(MenuTrigger);\nexport {_MenuTrigger as MenuTrigger};\n","/*\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 {FocusStrategy} from '@react-types/shared';\nimport {MenuTriggerState} from '@react-stately/menu';\nimport React, {HTMLAttributes, MutableRefObject, RefObject, useContext} from 'react';\nimport {TreeState} from '@react-stately/tree';\n\nexport interface MenuContextValue extends Omit<HTMLAttributes<HTMLElement>, 'autoFocus'> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLDivElement>,\n state?: MenuTriggerState\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\n}\n\nexport interface MenuDialogContextValue {\n isUnavailable?: boolean,\n triggerRef?: MutableRefObject<HTMLElement>\n}\n\nexport const MenuDialogContext = React.createContext<MenuDialogContextValue | undefined>(undefined);\n\nexport function useMenuDialogContext(): MenuDialogContextValue {\n return useContext(MenuDialogContext);\n}\n\nexport interface MenuStateContextValue<T> {\n state?: TreeState<T>,\n container?: RefObject<HTMLElement>,\n menu?: RefObject<HTMLDivElement>\n}\n\nexport const MenuStateContext = React.createContext<MenuStateContextValue<any>>({});\n\nexport function useMenuStateContext<T>(): MenuStateContextValue<T> {\n return useContext(MenuStateContext);\n}\n\n","/*\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\n@import './index.css';\n@import './skin.css';\n","/*\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, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\nimport {MenuContext, MenuStateContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext, useRef} from 'react';\nimport {SpectrumMenuProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenu} from '@react-aria/menu';\nimport {useTreeState} from '@react-stately/tree';\n\nfunction Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLDivElement>) {\n let contextProps = useContext(MenuContext);\n let completeProps = {\n ...mergeProps(contextProps, props)\n };\n\n let domRef = useDOMRef(ref);\n let scopedRef = useRef(null);\n let state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\n <MenuStateContext.Provider value={{state, container: scopedRef, menu: domRef}}>\n <FocusScope contain={state.expandedKeys.size > 0}>\n <div style={{overflow: 'hidden', maxHeight: '100%', display: 'inline-flex', borderRadius: 'var(--spectrum-alias-border-radius-regular)'}}>\n <div\n {...menuProps}\n {...styleProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Menu',\n styleProps.className\n )\n }>\n {[...state.collection].map(item => {\n if (item.type === 'section') {\n return (\n <MenuSection\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n }\n\n let menuItem = (\n <MenuItem\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n\n if (item.wrapper) {\n menuItem = item.wrapper(menuItem);\n }\n\n return menuItem;\n })}\n </div>\n </div>\n <div ref={scopedRef} />\n </FocusScope>\n </MenuStateContext.Provider>\n );\n}\n\n/**\n * Menus display a list of actions or options that a user can choose.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Menu = React.forwardRef(Menu) as <T>(props: SpectrumMenuProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_Menu as Menu};\n","/*\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 CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {DOMAttributes, Node} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, mergeRefs, useObjectRef, useSlotId} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {Key, useMemo, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {TreeState} from '@react-stately/tree';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMenuContext, useMenuDialogContext} from './context';\nimport {useMenuItem} from '@react-aria/menu';\n\ninterface MenuItemProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n isVirtualized?: boolean,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuItem<T>(props: MenuItemProps<T>) {\n let {\n item,\n state,\n isVirtualized,\n onAction\n } = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let menuDialogContext = useMenuDialogContext();\n let {triggerRef} = menuDialogContext || {};\n let isMenuDialogTrigger = !!menuDialogContext;\n let isUnavailable = false;\n\n if (isMenuDialogTrigger) {\n isUnavailable = menuDialogContext.isUnavailable;\n }\n\n let ElementType: React.ElementType = item.props.href ? 'a' : 'div';\n let domProps = filterDOMProps(item.props, {isLink: !!item.props.href});\n\n let {\n closeOnSelect\n } = useMenuContext();\n\n let {\n rendered,\n key\n } = item;\n\n let isSelected = state.selectionManager.isSelected(key);\n let isDisabled = state.disabledKeys.has(key);\n\n let itemref = useRef<any>(null);\n let ref = useObjectRef(useMemo(() => mergeRefs(itemref, triggerRef), [itemref, triggerRef]));\n\n let {\n menuItemProps,\n labelProps,\n descriptionProps,\n keyboardShortcutProps\n } = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n closeOnSelect,\n isVirtualized,\n onAction,\n 'aria-haspopup': isMenuDialogTrigger && isUnavailable ? 'dialog' : undefined\n },\n state,\n ref\n );\n let endId = useSlotId();\n let endProps: DOMAttributes = {};\n if (endId) {\n endProps.id = endId;\n menuItemProps['aria-describedby'] = [menuItemProps['aria-describedby'], endId].filter(Boolean).join(' ');\n }\n\n let contents = typeof rendered === 'string'\n ? <Text>{rendered}</Text>\n : rendered;\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <ElementType\n {...mergeProps(menuItemProps, domProps)}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Menu-item',\n {\n 'is-disabled': isDisabled,\n 'is-selected': isSelected,\n 'is-selectable': state.selectionManager.selectionMode !== 'none',\n 'is-open': state.expandedKeys.has(key)\n }\n )}>\n <Grid\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-itemGrid'\n )\n }>\n <ClearSlots>\n <SlotProvider\n slots={{\n text: {UNSAFE_className: styles['spectrum-Menu-itemLabel'], ...labelProps},\n end: {UNSAFE_className: styles['spectrum-Menu-end'], ...endProps},\n icon: {UNSAFE_className: styles['spectrum-Menu-icon'], size: 'S'},\n description: {UNSAFE_className: styles['spectrum-Menu-description'], ...descriptionProps},\n keyboard: {UNSAFE_className: styles['spectrum-Menu-keyboard'], ...keyboardShortcutProps}\n }}>\n {contents}\n {isSelected &&\n <CheckmarkMedium\n slot=\"checkmark\"\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-checkmark'\n )\n } />\n }\n {\n isUnavailable && <InfoOutline slot=\"end\" size=\"XS\" alignSelf=\"center\" aria-label={stringFormatter.format('unavailable')} />\n }\n </SlotProvider>\n </ClearSlots>\n </Grid>\n </ElementType>\n </FocusRing>\n );\n}\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"moreActions\": \"المزيد من الإجراءات\",\n \"unavailable\": \"غير مُتوفر، قُم بالتوسيع للحصول على التفاصيل\"\n}\n","{\n \"moreActions\": \"Повече действия\",\n \"unavailable\": \"Недостъпно, разгънете за подробности\"\n}\n","{\n \"moreActions\": \"Další akce\",\n \"unavailable\": \"Není k dispozici, rozbalením zobrazíte podrobnosti\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Ikke tilgængelig, udvid for detaljer\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\",\n \"unavailable\": \"Nicht verfügbar, für Details erweitern\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\",\n \"unavailable\": \"Μη διαθέσιμο, ανάπτυξη για λεπτομέρειες\"\n}\n","{\n \"moreActions\": \"More actions\",\n \"unavailable\": \"Unavailable, expand for details\"\n}\n","{\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, ampliar para más detalles\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\",\n \"unavailable\": \"Pole kättesaadav, üksikasjade vaatamiseks laiendage\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\",\n \"unavailable\": \"Ei saatavilla, laajenna saadaksesi lisätietoja\"\n}\n","{\n \"moreActions\": \"Autres actions\",\n \"unavailable\": \"Indisponible, développer pour plus de détails\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\",\n \"unavailable\": \"לא זמין, הרחב לפרטים\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširi za detalje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\",\n \"unavailable\": \"Nem érhető el, a részletekért bontsa ki\"\n}\n","{\n \"moreActions\": \"Altre azioni\",\n \"unavailable\": \"Non disponibile, espandi per i dettagli\"\n}\n","{\n \"moreActions\": \"その他のアクション\",\n \"unavailable\": \"利用できません。詳しくは、展開して確認してください\"\n}\n","{\n \"moreActions\": \"기타 액션\",\n \"unavailable\": \"사용할 수 없음, 자세히 보려면 펼치기\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\",\n \"unavailable\": \"Nepasiekiama, norėdami gauti daugiau informacijos, išskleiskite\"\n}\n","{\n \"moreActions\": \"Citas darbības\",\n \"unavailable\": \"Nav pieejams, izvērsiet, lai skatītu sīkāku informāciju\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Utilgjengelig, utvid for detaljer\"\n}\n","{\n \"moreActions\": \"Meer handelingen\",\n \"unavailable\": \"Niet beschikbaar, uitvouwen voor meer informatie\"\n}\n","{\n \"moreActions\": \"Więcej akcji\",\n \"unavailable\": \"Niedostępne, rozwiń, aby zobaczyć szczegóły\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível. Expanda para ver os detalhes\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível, expandir para mais detalhes\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\",\n \"unavailable\": \"Indisponibil, extindeți pentru detalii\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\",\n \"unavailable\": \"Недоступно, разверните для подробностей\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\",\n \"unavailable\": \"Nedostupné, rozbaľte podrobnosti\"\n}\n","{\n \"moreActions\": \"Več možnosti\",\n \"unavailable\": \"Ni na voljo, razširite za podrobnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširite za detalje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\",\n \"unavailable\": \"Ej tillgänglig, expandera för mer information\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\",\n \"unavailable\": \"Kullanılamıyor, ayrıntıları görmek için genişletin\"\n}\n","{\n \"moreActions\": \"Більше дій\",\n \"unavailable\": \"Недоступно, розгорніть для докладнішої інформації\"\n}\n","{\n \"moreActions\": \"更多操作\",\n \"unavailable\": \"不可用,展开以查看详细信息\"\n}\n","{\n \"moreActions\": \"更多動作\",\n \"unavailable\": \"無法使用,展開以取得詳細資料\"\n}\n","/*\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 {getChildNodes} from '@react-stately/collections';\nimport {MenuItem} from './MenuItem';\nimport {Node} from '@react-types/shared';\nimport React, {Fragment, Key} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {TreeState} from '@react-stately/tree';\nimport {useMenuSection} from '@react-aria/menu';\nimport {useSeparator} from '@react-aria/separator';\n\ninterface MenuSectionProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuSection<T>(props: MenuSectionProps<T>) {\n let {item, state, onAction} = props;\n let {itemProps, headingProps, groupProps} = useMenuSection({\n heading: item.rendered,\n 'aria-label': item['aria-label']\n });\n\n let {separatorProps} = useSeparator({\n elementType: 'div'\n });\n\n return (\n <Fragment>\n {item.key !== state.collection.getFirstKey() &&\n <div\n {...separatorProps}\n className={classNames(\n styles,\n 'spectrum-Menu-divider'\n )} />\n }\n <div {...itemProps}>\n {item.rendered &&\n <span\n {...headingProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu-sectionHeading'\n )\n }>\n {item.rendered}\n </span>\n }\n <div\n {...groupProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu'\n )\n }>\n {[...getChildNodes(item, state.collection)].map(node => {\n let item = (\n <MenuItem\n key={node.key}\n item={node}\n state={state}\n onAction={onAction} />\n );\n\n if (node.wrapper) {\n item = node.wrapper(item);\n }\n\n return item;\n })}\n </div>\n </div>\n </Fragment>\n );\n}\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusableRef} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Menu} from './Menu';\nimport {MenuTrigger} from './MenuTrigger';\nimport More from '@spectrum-icons/workflow/More';\nimport React, {forwardRef, ReactElement} from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSlotProps} from '@react-spectrum/utils';\n\nfunction ActionMenu<T extends object>(props: SpectrumActionMenuProps<T>, ref: FocusableRef<HTMLButtonElement>) {\n props = useSlotProps(props, 'actionMenu');\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = stringFormatter.format('moreActions');\n }\n\n return (\n <MenuTrigger\n isOpen={props.isOpen}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n align={props.align}\n direction={props.direction}\n shouldFlip={props.shouldFlip}>\n <ActionButton\n ref={ref}\n {...props}\n {...buttonProps}>\n <More />\n </ActionButton>\n <Menu\n children={props.children}\n items={props.items}\n disabledKeys={props.disabledKeys}\n onAction={props.onAction} />\n </MenuTrigger>\n );\n}\n\n/**\n * ActionMenu combines an ActionButton with a Menu for simple \"more actions\" use cases.\n */\nconst _ActionMenu = forwardRef(ActionMenu) as <T>(props: SpectrumActionMenuProps<T> & {ref?: FocusableRef<HTMLButtonElement>}) => ReactElement;\nexport {_ActionMenu as ActionMenu};\n","/*\n * Copyright 2023 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, SlotProvider, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton} from '@react-aria/overlays';\nimport helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css';\nimport {ItemProps} from '@react-types/shared';\nimport {MenuDialogContext, useMenuStateContext} from './context';\nimport {Modal, Popover} from '@react-spectrum/overlays';\nimport React, {Key, ReactElement, useRef} from 'react';\nimport {useOverlayTriggerState} from '@react-stately/overlays';\n\ninterface MenuDialogTriggerProps<T> extends ItemProps<T> {\n /** Whether the menu item is currently unavailable. */\n isUnavailable?: boolean,\n /** The triggering Item and the Dialog, respectively. */\n children: [ReactElement, ReactElement],\n targetKey: Key\n}\n\nexport interface SpectrumMenuDialogTriggerProps<T> extends Omit<MenuDialogTriggerProps<T>, 'targetKey' | 'title' | 'textValue' | 'childItems' | 'hasChildItems'> {}\n\nfunction ContextualHelpTrigger<T>(props: MenuDialogTriggerProps<T>): ReactElement {\n let {isUnavailable} = props;\n\n let triggerRef = useRef<HTMLLIElement>(null);\n let popoverRef = useRef(null);\n let {state: menuState, container, menu} = useMenuStateContext();\n let state = useOverlayTriggerState({isOpen: menuState.expandedKeys.has(props.targetKey), onOpenChange: (val) => {\n if (!val) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n }});\n let slots = {};\n if (isUnavailable) {\n slots = {\n dialog: {UNSAFE_className: classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')},\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n }\n let [trigger] = React.Children.toArray(props.children);\n let [, content] = props.children as [ReactElement, ReactElement];\n\n let isMobile = useIsMobileDevice();\n\n let onExit = () => {\n // if focus was already moved back to a menu item, don't need to do anything\n if (!menu.current.contains(document.activeElement)) {\n // need to return focus to the trigger because hitting Esc causes focus to go to the subdialog, which is then unmounted\n // this leads to blur never being fired nor focus on the body\n triggerRef.current.focus();\n }\n };\n let onBlurWithin = (e) => {\n if (e.relatedTarget && popoverRef.current && !popoverRef.current?.UNSAFE_getDOMNode().contains(e.relatedTarget)) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n };\n return (\n <>\n <MenuDialogContext.Provider value={{isUnavailable, triggerRef}}>{trigger}</MenuDialogContext.Provider>\n <SlotProvider slots={slots}>\n {\n isMobile ? (\n <Modal state={state} isDismissable>\n <DismissButton onDismiss={state.close} />\n {content}\n <DismissButton onDismiss={state.close} />\n </Modal>\n ) : (\n <Popover\n onExit={onExit}\n onBlurWithin={onBlurWithin}\n container={container.current}\n state={state}\n ref={popoverRef}\n triggerRef={triggerRef}\n placement=\"end top\"\n offset={-10}\n hideArrow\n isNonModal\n enableBothDismissButtons\n disableFocusManagement>\n {content}\n </Popover>\n )\n }\n </SlotProvider>\n </>\n );\n}\n\nContextualHelpTrigger.getCollectionNode = function* getCollectionNode<T>(props: ItemProps<T>) {\n let [trigger] = React.Children.toArray(props.children) as ReactElement[];\n let [, content] = props.children as [ReactElement, ReactElement];\n\n yield {\n element: React.cloneElement(trigger, {...trigger.props, hasChildItems: true}),\n wrapper: (element) => (\n <ContextualHelpTrigger key={element.key} targetKey={element.key} {...props}>\n {element}\n {content}\n </ContextualHelpTrigger>\n )\n };\n};\n\nlet _Item = ContextualHelpTrigger as <T>(props: SpectrumMenuDialogTriggerProps<T>) => JSX.Element;\nexport {_Item as ContextualHelpTrigger};\n","/*\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -83,6 +83,7 @@ $parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu", () => $286d1cb34bb7dc
|
|
|
83
83
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-sectionHeading", () => $286d1cb34bb7dc84$export$c20ea4b35020fbdd, (v) => $286d1cb34bb7dc84$export$c20ea4b35020fbdd = v);
|
|
84
84
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-checkmark", () => $286d1cb34bb7dc84$export$8e15a726e4f7e62d, (v) => $286d1cb34bb7dc84$export$8e15a726e4f7e62d = v);
|
|
85
85
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-item", () => $286d1cb34bb7dc84$export$45faad328e6c532b, (v) => $286d1cb34bb7dc84$export$45faad328e6c532b = v);
|
|
86
|
+
$parcel$export($286d1cb34bb7dc84$exports, "is-disabled", () => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf, (v) => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf = v);
|
|
86
87
|
$parcel$export($286d1cb34bb7dc84$exports, "is-selected", () => $286d1cb34bb7dc84$export$1e0fb04f31d3c22a, (v) => $286d1cb34bb7dc84$export$1e0fb04f31d3c22a = v);
|
|
87
88
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Icon", () => $286d1cb34bb7dc84$export$d374b04f30360026, (v) => $286d1cb34bb7dc84$export$d374b04f30360026 = v);
|
|
88
89
|
$parcel$export($286d1cb34bb7dc84$exports, "spectrum-Menu-itemLabel", () => $286d1cb34bb7dc84$export$1aa6419c5c650567, (v) => $286d1cb34bb7dc84$export$1aa6419c5c650567 = v);
|
|
@@ -101,12 +102,12 @@ $parcel$export($286d1cb34bb7dc84$exports, "is-hovered", () => $286d1cb34bb7dc84$
|
|
|
101
102
|
$parcel$export($286d1cb34bb7dc84$exports, "is-highlighted", () => $286d1cb34bb7dc84$export$451c613d0772eb99, (v) => $286d1cb34bb7dc84$export$451c613d0772eb99 = v);
|
|
102
103
|
$parcel$export($286d1cb34bb7dc84$exports, "is-open", () => $286d1cb34bb7dc84$export$a9781837241c946d, (v) => $286d1cb34bb7dc84$export$a9781837241c946d = v);
|
|
103
104
|
$parcel$export($286d1cb34bb7dc84$exports, "is-active", () => $286d1cb34bb7dc84$export$20fd0f7cd4e6112f, (v) => $286d1cb34bb7dc84$export$20fd0f7cd4e6112f = v);
|
|
104
|
-
$parcel$export($286d1cb34bb7dc84$exports, "is-disabled", () => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf, (v) => $286d1cb34bb7dc84$export$d35bc1e505d1ebbf = v);
|
|
105
105
|
var $286d1cb34bb7dc84$export$d959f30786125b;
|
|
106
106
|
var $286d1cb34bb7dc84$export$fae6af6decd50ac5;
|
|
107
107
|
var $286d1cb34bb7dc84$export$c20ea4b35020fbdd;
|
|
108
108
|
var $286d1cb34bb7dc84$export$8e15a726e4f7e62d;
|
|
109
109
|
var $286d1cb34bb7dc84$export$45faad328e6c532b;
|
|
110
|
+
var $286d1cb34bb7dc84$export$d35bc1e505d1ebbf;
|
|
110
111
|
var $286d1cb34bb7dc84$export$1e0fb04f31d3c22a;
|
|
111
112
|
var $286d1cb34bb7dc84$export$d374b04f30360026;
|
|
112
113
|
var $286d1cb34bb7dc84$export$1aa6419c5c650567;
|
|
@@ -125,12 +126,12 @@ var $286d1cb34bb7dc84$export$b8813cd5d7824ce7;
|
|
|
125
126
|
var $286d1cb34bb7dc84$export$451c613d0772eb99;
|
|
126
127
|
var $286d1cb34bb7dc84$export$a9781837241c946d;
|
|
127
128
|
var $286d1cb34bb7dc84$export$20fd0f7cd4e6112f;
|
|
128
|
-
var $286d1cb34bb7dc84$export$d35bc1e505d1ebbf;
|
|
129
129
|
$286d1cb34bb7dc84$export$d959f30786125b = "spectrum-Menu-popover_7ea47c";
|
|
130
130
|
$286d1cb34bb7dc84$export$fae6af6decd50ac5 = "spectrum-Menu_7ea47c";
|
|
131
131
|
$286d1cb34bb7dc84$export$c20ea4b35020fbdd = "spectrum-Menu-sectionHeading_7ea47c";
|
|
132
132
|
$286d1cb34bb7dc84$export$8e15a726e4f7e62d = "spectrum-Menu-checkmark_7ea47c";
|
|
133
133
|
$286d1cb34bb7dc84$export$45faad328e6c532b = "spectrum-Menu-item_7ea47c";
|
|
134
|
+
$286d1cb34bb7dc84$export$d35bc1e505d1ebbf = "is-disabled_7ea47c";
|
|
134
135
|
$286d1cb34bb7dc84$export$1e0fb04f31d3c22a = "is-selected_7ea47c";
|
|
135
136
|
$286d1cb34bb7dc84$export$d374b04f30360026 = "spectrum-Icon_7ea47c";
|
|
136
137
|
$286d1cb34bb7dc84$export$1aa6419c5c650567 = "spectrum-Menu-itemLabel_7ea47c";
|
|
@@ -149,7 +150,6 @@ $286d1cb34bb7dc84$export$b8813cd5d7824ce7 = "is-hovered_7ea47c";
|
|
|
149
150
|
$286d1cb34bb7dc84$export$451c613d0772eb99 = "is-highlighted_7ea47c";
|
|
150
151
|
$286d1cb34bb7dc84$export$a9781837241c946d = "is-open_7ea47c";
|
|
151
152
|
$286d1cb34bb7dc84$export$20fd0f7cd4e6112f = "is-active_7ea47c";
|
|
152
|
-
$286d1cb34bb7dc84$export$d35bc1e505d1ebbf = "is-disabled_7ea47c";
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
|
|
@@ -551,7 +551,10 @@ function $48fb8f5e1202c980$export$2ce376c2cc3355c8(props) {
|
|
|
551
551
|
let isMenuDialogTrigger = !!menuDialogContext;
|
|
552
552
|
let isUnavailable = false;
|
|
553
553
|
if (isMenuDialogTrigger) isUnavailable = menuDialogContext.isUnavailable;
|
|
554
|
-
let
|
|
554
|
+
let ElementType = item.props.href ? "a" : "div";
|
|
555
|
+
let domProps = (0, $9SHwR$filterDOMProps)(item.props, {
|
|
556
|
+
isLink: !!item.props.href
|
|
557
|
+
});
|
|
555
558
|
let { closeOnSelect: closeOnSelect } = (0, $d94604d52c3e3feb$export$21c7ab35b39f78ec)();
|
|
556
559
|
let { rendered: rendered , key: key } = item;
|
|
557
560
|
let isSelected = state.selectionManager.isSelected(key);
|
|
@@ -583,7 +586,7 @@ function $48fb8f5e1202c980$export$2ce376c2cc3355c8(props) {
|
|
|
583
586
|
let contents = typeof rendered === "string" ? /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$Text), null, rendered) : rendered;
|
|
584
587
|
return /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$FocusRing), {
|
|
585
588
|
focusRingClass: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "focus-ring")
|
|
586
|
-
}, /*#__PURE__*/ (0, $9SHwR$react).createElement(
|
|
589
|
+
}, /*#__PURE__*/ (0, $9SHwR$react).createElement(ElementType, {
|
|
587
590
|
...(0, $9SHwR$mergeProps)(menuItemProps, domProps),
|
|
588
591
|
ref: ref,
|
|
589
592
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu-item", {
|
|
@@ -653,15 +656,15 @@ function $b966e606890cc5ca$export$4b1545b4f2016d26(props) {
|
|
|
653
656
|
"aria-label": item["aria-label"]
|
|
654
657
|
});
|
|
655
658
|
let { separatorProps: separatorProps } = (0, $9SHwR$useSeparator)({
|
|
656
|
-
elementType: "
|
|
659
|
+
elementType: "div"
|
|
657
660
|
});
|
|
658
|
-
return /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$Fragment), null, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
661
|
+
return /*#__PURE__*/ (0, $9SHwR$react).createElement((0, $9SHwR$Fragment), null, item.key !== state.collection.getFirstKey() && /*#__PURE__*/ (0, $9SHwR$react).createElement("div", {
|
|
659
662
|
...separatorProps,
|
|
660
663
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu-divider")
|
|
661
|
-
}), /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
664
|
+
}), /*#__PURE__*/ (0, $9SHwR$react).createElement("div", itemProps, item.rendered && /*#__PURE__*/ (0, $9SHwR$react).createElement("span", {
|
|
662
665
|
...headingProps,
|
|
663
666
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu-sectionHeading")
|
|
664
|
-
}, item.rendered), /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
667
|
+
}, item.rendered), /*#__PURE__*/ (0, $9SHwR$react).createElement("div", {
|
|
665
668
|
...groupProps,
|
|
666
669
|
className: (0, $9SHwR$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($286d1cb34bb7dc84$exports))), "spectrum-Menu")
|
|
667
670
|
}, [
|
|
@@ -710,7 +713,7 @@ function $49b26f4b606348f6$var$Menu(props, ref) {
|
|
|
710
713
|
display: "inline-flex",
|
|
711
714
|
borderRadius: "var(--spectrum-alias-border-radius-regular)"
|
|
712
715
|
}
|
|
713
|
-
}, /*#__PURE__*/ (0, $9SHwR$react).createElement("
|
|
716
|
+
}, /*#__PURE__*/ (0, $9SHwR$react).createElement("div", {
|
|
714
717
|
...menuProps,
|
|
715
718
|
...styleProps,
|
|
716
719
|
ref: domRef,
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;AAgBM,MA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AAA,YAAI,EAAE,SAAS,QAAQ,MAAM;IAC7C,IAAI,GAAG,QAAQ,GAAG,MAAM;IAExB,MAAM;QACJ,uBAAS,CAAA,GAAA,YAAI,EAAE,aAAa,SAAS;YAAC,GAAG,QAAQ,KAAK;YAAE,eAAe;QAAI;QAC3E,SAAS,CAAC,wBACR,gCAAC;gBAAsB,KAAK,QAAQ;gBAAK,WAAW,QAAQ;gBAAM,GAAG,KAAK;eACvE,SACA;IAGP;AACF;AAEA,IAAI,4CAAQ;;","sources":["packages/@react-spectrum/menu/src/index.ts","packages/@react-spectrum/menu/src/MenuTrigger.tsx","packages/@react-spectrum/menu/src/context.ts","packages/@adobe/spectrum-css-temp/components/menu/vars.css","packages/@react-spectrum/menu/src/Menu.tsx","packages/@react-spectrum/menu/src/MenuItem.tsx","packages/@react-spectrum/menu/src/*.js","packages/@react-spectrum/menu/intl/ar-AE.json","packages/@react-spectrum/menu/intl/bg-BG.json","packages/@react-spectrum/menu/intl/cs-CZ.json","packages/@react-spectrum/menu/intl/da-DK.json","packages/@react-spectrum/menu/intl/de-DE.json","packages/@react-spectrum/menu/intl/el-GR.json","packages/@react-spectrum/menu/intl/en-US.json","packages/@react-spectrum/menu/intl/es-ES.json","packages/@react-spectrum/menu/intl/et-EE.json","packages/@react-spectrum/menu/intl/fi-FI.json","packages/@react-spectrum/menu/intl/fr-FR.json","packages/@react-spectrum/menu/intl/he-IL.json","packages/@react-spectrum/menu/intl/hr-HR.json","packages/@react-spectrum/menu/intl/hu-HU.json","packages/@react-spectrum/menu/intl/it-IT.json","packages/@react-spectrum/menu/intl/ja-JP.json","packages/@react-spectrum/menu/intl/ko-KR.json","packages/@react-spectrum/menu/intl/lt-LT.json","packages/@react-spectrum/menu/intl/lv-LV.json","packages/@react-spectrum/menu/intl/nb-NO.json","packages/@react-spectrum/menu/intl/nl-NL.json","packages/@react-spectrum/menu/intl/pl-PL.json","packages/@react-spectrum/menu/intl/pt-BR.json","packages/@react-spectrum/menu/intl/pt-PT.json","packages/@react-spectrum/menu/intl/ro-RO.json","packages/@react-spectrum/menu/intl/ru-RU.json","packages/@react-spectrum/menu/intl/sk-SK.json","packages/@react-spectrum/menu/intl/sl-SI.json","packages/@react-spectrum/menu/intl/sr-SP.json","packages/@react-spectrum/menu/intl/sv-SE.json","packages/@react-spectrum/menu/intl/tr-TR.json","packages/@react-spectrum/menu/intl/uk-UA.json","packages/@react-spectrum/menu/intl/zh-CN.json","packages/@react-spectrum/menu/intl/zh-TW.json","packages/@react-spectrum/menu/src/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx","packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css"],"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\n/// <reference types=\"css-module-types\" />\n\nexport {MenuTrigger} from './MenuTrigger';\nexport {Menu} from './Menu';\nexport {ActionMenu} from './ActionMenu';\nexport {ContextualHelpTrigger} from './ContextualHelpTrigger';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu';\nexport type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger';\n","/*\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, SlotProvider, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {MenuContext} from './context';\nimport {Placement} from '@react-types/overlays';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder} from '@react-aria/interactions';\nimport React, {forwardRef, Fragment, useRef} from 'react';\nimport {SpectrumMenuTriggerProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenuTrigger} from '@react-aria/menu';\nimport {useMenuTriggerState} from '@react-stately/menu';\n\nfunction MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>) {\n let triggerRef = useRef<HTMLElement>();\n let domRef = useDOMRef(ref);\n let menuTriggerRef = domRef || triggerRef;\n let menuRef = useRef<HTMLUListElement>();\n let {\n children,\n align = 'start',\n shouldFlip = true,\n direction = 'bottom',\n closeOnSelect,\n trigger = 'press'\n } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let state = useMenuTriggerState(props);\n\n let {menuTriggerProps, menuProps} = useMenuTrigger({trigger}, state, menuTriggerRef);\n\n let initialPlacement: Placement;\n switch (direction) {\n case 'left':\n case 'right':\n case 'start':\n case 'end':\n initialPlacement = `${direction} ${align === 'end' ? 'bottom' : 'top'}` as Placement;\n break;\n case 'bottom':\n case 'top':\n default:\n initialPlacement = `${direction} ${align}` as Placement;\n }\n\n let isMobile = useIsMobileDevice();\n let menuContext = {\n ...menuProps,\n state,\n ref: menuRef,\n onClose: state.close,\n closeOnSelect,\n autoFocus: state.focusStrategy || true,\n UNSAFE_style: isMobile ? {\n width: '100%',\n maxHeight: 'inherit'\n } : undefined,\n UNSAFE_className: classNames(styles, {'spectrum-Menu-popover': !isMobile})\n };\n\n // On small screen devices, the menu is rendered in a tray, otherwise a popover.\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray state={state}>\n {menu}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n UNSAFE_style={{clipPath: 'unset', overflow: 'visible'}}\n state={state}\n triggerRef={menuTriggerRef}\n scrollRef={menuRef}\n placement={initialPlacement}\n hideArrow\n shouldFlip={shouldFlip}>\n {menu}\n </Popover>\n );\n }\n\n return (\n <Fragment>\n <SlotProvider slots={{actionButton: {holdAffordance: trigger === 'longPress'}}}>\n <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>\n {menuTrigger}\n </PressResponder>\n </SlotProvider>\n <MenuContext.Provider value={menuContext}>\n {overlay}\n </MenuContext.Provider>\n </Fragment>\n );\n}\n\n/**\n * The MenuTrigger serves as a wrapper around a Menu and its associated trigger,\n * linking the Menu's open state with the trigger's press state.\n */\nlet _MenuTrigger = forwardRef(MenuTrigger);\nexport {_MenuTrigger as MenuTrigger};\n","/*\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 {FocusStrategy} from '@react-types/shared';\nimport {MenuTriggerState} from '@react-stately/menu';\nimport React, {HTMLAttributes, MutableRefObject, RefObject, useContext} from 'react';\nimport {TreeState} from '@react-stately/tree';\n\nexport interface MenuContextValue extends Omit<HTMLAttributes<HTMLElement>, 'autoFocus'> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLUListElement>,\n state?: MenuTriggerState\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\n}\n\nexport interface MenuDialogContextValue {\n isUnavailable?: boolean,\n triggerRef?: MutableRefObject<HTMLLIElement>\n}\n\nexport const MenuDialogContext = React.createContext<MenuDialogContextValue | undefined>(undefined);\n\nexport function useMenuDialogContext(): MenuDialogContextValue {\n return useContext(MenuDialogContext);\n}\n\nexport interface MenuStateContextValue<T> {\n state?: TreeState<T>,\n container?: RefObject<HTMLElement>,\n menu?: RefObject<HTMLUListElement>\n}\n\nexport const MenuStateContext = React.createContext<MenuStateContextValue<any>>({});\n\nexport function useMenuStateContext<T>(): MenuStateContextValue<T> {\n return useContext(MenuStateContext);\n}\n\n","/*\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\n@import './index.css';\n@import './skin.css';\n","/*\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, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\nimport {MenuContext, MenuStateContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext, useRef} from 'react';\nimport {SpectrumMenuProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenu} from '@react-aria/menu';\nimport {useTreeState} from '@react-stately/tree';\n\nfunction Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLUListElement>) {\n let contextProps = useContext(MenuContext);\n let completeProps = {\n ...mergeProps(contextProps, props)\n };\n\n let domRef = useDOMRef(ref);\n let scopedRef = useRef(null);\n let state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\n <MenuStateContext.Provider value={{state, container: scopedRef, menu: domRef}}>\n <FocusScope contain={state.expandedKeys.size > 0}>\n <div style={{overflow: 'hidden', maxHeight: '100%', display: 'inline-flex', borderRadius: 'var(--spectrum-alias-border-radius-regular)'}}>\n <ul\n {...menuProps}\n {...styleProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Menu',\n styleProps.className\n )\n }>\n {[...state.collection].map(item => {\n if (item.type === 'section') {\n return (\n <MenuSection\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n }\n\n let menuItem = (\n <MenuItem\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n\n if (item.wrapper) {\n menuItem = item.wrapper(menuItem);\n }\n\n return menuItem;\n })}\n </ul>\n </div>\n <div ref={scopedRef} />\n </FocusScope>\n </MenuStateContext.Provider>\n );\n}\n\n/**\n * Menus display a list of actions or options that a user can choose.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Menu = React.forwardRef(Menu) as <T>(props: SpectrumMenuProps<T> & {ref?: DOMRef<HTMLUListElement>}) => ReactElement;\nexport {_Menu as Menu};\n","/*\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 CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {DOMAttributes, Node} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, mergeRefs, useObjectRef, useSlotId} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {Key, useMemo, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {TreeState} from '@react-stately/tree';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMenuContext, useMenuDialogContext} from './context';\nimport {useMenuItem} from '@react-aria/menu';\n\ninterface MenuItemProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n isVirtualized?: boolean,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuItem<T>(props: MenuItemProps<T>) {\n let {\n item,\n state,\n isVirtualized,\n onAction\n } = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let menuDialogContext = useMenuDialogContext();\n let {triggerRef} = menuDialogContext || {};\n let isMenuDialogTrigger = !!menuDialogContext;\n let isUnavailable = false;\n\n if (isMenuDialogTrigger) {\n isUnavailable = menuDialogContext.isUnavailable;\n }\n\n let domProps = filterDOMProps(item.props);\n\n let {\n closeOnSelect\n } = useMenuContext();\n\n let {\n rendered,\n key\n } = item;\n\n let isSelected = state.selectionManager.isSelected(key);\n let isDisabled = state.disabledKeys.has(key);\n\n let itemref = useRef<HTMLLIElement>(null);\n let ref = useObjectRef(useMemo(() => mergeRefs(itemref, triggerRef), [itemref, triggerRef]));\n\n let {\n menuItemProps,\n labelProps,\n descriptionProps,\n keyboardShortcutProps\n } = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n closeOnSelect,\n isVirtualized,\n onAction,\n 'aria-haspopup': isMenuDialogTrigger && isUnavailable ? 'dialog' : undefined\n },\n state,\n ref\n );\n let endId = useSlotId();\n let endProps: DOMAttributes = {};\n if (endId) {\n endProps.id = endId;\n menuItemProps['aria-describedby'] = [menuItemProps['aria-describedby'], endId].filter(Boolean).join(' ');\n }\n\n let contents = typeof rendered === 'string'\n ? <Text>{rendered}</Text>\n : rendered;\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <li\n {...mergeProps(menuItemProps, domProps)}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Menu-item',\n {\n 'is-disabled': isDisabled,\n 'is-selected': isSelected,\n 'is-selectable': state.selectionManager.selectionMode !== 'none',\n 'is-open': state.expandedKeys.has(key)\n }\n )}>\n <Grid\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-itemGrid'\n )\n }>\n <ClearSlots>\n <SlotProvider\n slots={{\n text: {UNSAFE_className: styles['spectrum-Menu-itemLabel'], ...labelProps},\n end: {UNSAFE_className: styles['spectrum-Menu-end'], ...endProps},\n icon: {UNSAFE_className: styles['spectrum-Menu-icon'], size: 'S'},\n description: {UNSAFE_className: styles['spectrum-Menu-description'], ...descriptionProps},\n keyboard: {UNSAFE_className: styles['spectrum-Menu-keyboard'], ...keyboardShortcutProps}\n }}>\n {contents}\n {isSelected &&\n <CheckmarkMedium\n slot=\"checkmark\"\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-checkmark'\n )\n } />\n }\n {\n isUnavailable && <InfoOutline slot=\"end\" size=\"XS\" alignSelf=\"center\" aria-label={stringFormatter.format('unavailable')} />\n }\n </SlotProvider>\n </ClearSlots>\n </Grid>\n </li>\n </FocusRing>\n );\n}\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"moreActions\": \"المزيد من الإجراءات\",\n \"unavailable\": \"غير مُتوفر، قُم بالتوسيع للحصول على التفاصيل\"\n}\n","{\n \"moreActions\": \"Повече действия\",\n \"unavailable\": \"Недостъпно, разгънете за подробности\"\n}\n","{\n \"moreActions\": \"Další akce\",\n \"unavailable\": \"Není k dispozici, rozbalením zobrazíte podrobnosti\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Ikke tilgængelig, udvid for detaljer\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\",\n \"unavailable\": \"Nicht verfügbar, für Details erweitern\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\",\n \"unavailable\": \"Μη διαθέσιμο, ανάπτυξη για λεπτομέρειες\"\n}\n","{\n \"moreActions\": \"More actions\",\n \"unavailable\": \"Unavailable, expand for details\"\n}\n","{\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, ampliar para más detalles\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\",\n \"unavailable\": \"Pole kättesaadav, üksikasjade vaatamiseks laiendage\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\",\n \"unavailable\": \"Ei saatavilla, laajenna saadaksesi lisätietoja\"\n}\n","{\n \"moreActions\": \"Autres actions\",\n \"unavailable\": \"Indisponible, développer pour plus de détails\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\",\n \"unavailable\": \"לא זמין, הרחב לפרטים\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširi za detalje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\",\n \"unavailable\": \"Nem érhető el, a részletekért bontsa ki\"\n}\n","{\n \"moreActions\": \"Altre azioni\",\n \"unavailable\": \"Non disponibile, espandi per i dettagli\"\n}\n","{\n \"moreActions\": \"その他のアクション\",\n \"unavailable\": \"利用できません。詳しくは、展開して確認してください\"\n}\n","{\n \"moreActions\": \"기타 액션\",\n \"unavailable\": \"사용할 수 없음, 자세히 보려면 펼치기\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\",\n \"unavailable\": \"Nepasiekiama, norėdami gauti daugiau informacijos, išskleiskite\"\n}\n","{\n \"moreActions\": \"Citas darbības\",\n \"unavailable\": \"Nav pieejams, izvērsiet, lai skatītu sīkāku informāciju\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Utilgjengelig, utvid for detaljer\"\n}\n","{\n \"moreActions\": \"Meer handelingen\",\n \"unavailable\": \"Niet beschikbaar, uitvouwen voor meer informatie\"\n}\n","{\n \"moreActions\": \"Więcej akcji\",\n \"unavailable\": \"Niedostępne, rozwiń, aby zobaczyć szczegóły\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível. Expanda para ver os detalhes\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível, expandir para mais detalhes\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\",\n \"unavailable\": \"Indisponibil, extindeți pentru detalii\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\",\n \"unavailable\": \"Недоступно, разверните для подробностей\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\",\n \"unavailable\": \"Nedostupné, rozbaľte podrobnosti\"\n}\n","{\n \"moreActions\": \"Več možnosti\",\n \"unavailable\": \"Ni na voljo, razširite za podrobnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširite za detalje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\",\n \"unavailable\": \"Ej tillgänglig, expandera för mer information\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\",\n \"unavailable\": \"Kullanılamıyor, ayrıntıları görmek için genişletin\"\n}\n","{\n \"moreActions\": \"Більше дій\",\n \"unavailable\": \"Недоступно, розгорніть для докладнішої інформації\"\n}\n","{\n \"moreActions\": \"更多操作\",\n \"unavailable\": \"不可用,展开以查看详细信息\"\n}\n","{\n \"moreActions\": \"更多動作\",\n \"unavailable\": \"無法使用,展開以取得詳細資料\"\n}\n","/*\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 {getChildNodes} from '@react-stately/collections';\nimport {MenuItem} from './MenuItem';\nimport {Node} from '@react-types/shared';\nimport React, {Fragment, Key} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {TreeState} from '@react-stately/tree';\nimport {useMenuSection} from '@react-aria/menu';\nimport {useSeparator} from '@react-aria/separator';\n\ninterface MenuSectionProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuSection<T>(props: MenuSectionProps<T>) {\n let {item, state, onAction} = props;\n let {itemProps, headingProps, groupProps} = useMenuSection({\n heading: item.rendered,\n 'aria-label': item['aria-label']\n });\n\n let {separatorProps} = useSeparator({\n elementType: 'li'\n });\n\n return (\n <Fragment>\n {item.key !== state.collection.getFirstKey() &&\n <li\n {...separatorProps}\n className={classNames(\n styles,\n 'spectrum-Menu-divider'\n )} />\n }\n <li {...itemProps}>\n {item.rendered &&\n <span\n {...headingProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu-sectionHeading'\n )\n }>\n {item.rendered}\n </span>\n }\n <ul\n {...groupProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu'\n )\n }>\n {[...getChildNodes(item, state.collection)].map(node => {\n let item = (\n <MenuItem\n key={node.key}\n item={node}\n state={state}\n onAction={onAction} />\n );\n\n if (node.wrapper) {\n item = node.wrapper(item);\n }\n\n return item;\n })}\n </ul>\n </li>\n </Fragment>\n );\n}\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusableRef} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Menu} from './Menu';\nimport {MenuTrigger} from './MenuTrigger';\nimport More from '@spectrum-icons/workflow/More';\nimport React, {forwardRef, ReactElement} from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSlotProps} from '@react-spectrum/utils';\n\nfunction ActionMenu<T extends object>(props: SpectrumActionMenuProps<T>, ref: FocusableRef<HTMLButtonElement>) {\n props = useSlotProps(props, 'actionMenu');\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = stringFormatter.format('moreActions');\n }\n\n return (\n <MenuTrigger\n isOpen={props.isOpen}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n align={props.align}\n direction={props.direction}\n shouldFlip={props.shouldFlip}>\n <ActionButton\n ref={ref}\n {...props}\n {...buttonProps}>\n <More />\n </ActionButton>\n <Menu\n children={props.children}\n items={props.items}\n disabledKeys={props.disabledKeys}\n onAction={props.onAction} />\n </MenuTrigger>\n );\n}\n\n/**\n * ActionMenu combines an ActionButton with a Menu for simple \"more actions\" use cases.\n */\nconst _ActionMenu = forwardRef(ActionMenu) as <T>(props: SpectrumActionMenuProps<T> & {ref?: FocusableRef<HTMLButtonElement>}) => ReactElement;\nexport {_ActionMenu as ActionMenu};\n","/*\n * Copyright 2023 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, SlotProvider, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton} from '@react-aria/overlays';\nimport helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css';\nimport {ItemProps} from '@react-types/shared';\nimport {MenuDialogContext, useMenuStateContext} from './context';\nimport {Modal, Popover} from '@react-spectrum/overlays';\nimport React, {Key, ReactElement, useRef} from 'react';\nimport {useOverlayTriggerState} from '@react-stately/overlays';\n\ninterface MenuDialogTriggerProps<T> extends ItemProps<T> {\n /** Whether the menu item is currently unavailable. */\n isUnavailable?: boolean,\n /** The triggering Item and the Dialog, respectively. */\n children: [ReactElement, ReactElement],\n targetKey: Key\n}\n\nexport interface SpectrumMenuDialogTriggerProps<T> extends Omit<MenuDialogTriggerProps<T>, 'targetKey' | 'title' | 'textValue' | 'childItems' | 'hasChildItems'> {}\n\nfunction ContextualHelpTrigger<T>(props: MenuDialogTriggerProps<T>): ReactElement {\n let {isUnavailable} = props;\n\n let triggerRef = useRef<HTMLLIElement>(null);\n let popoverRef = useRef(null);\n let {state: menuState, container, menu} = useMenuStateContext();\n let state = useOverlayTriggerState({isOpen: menuState.expandedKeys.has(props.targetKey), onOpenChange: (val) => {\n if (!val) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n }});\n let slots = {};\n if (isUnavailable) {\n slots = {\n dialog: {UNSAFE_className: classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')},\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n }\n let [trigger] = React.Children.toArray(props.children);\n let [, content] = props.children as [ReactElement, ReactElement];\n\n let isMobile = useIsMobileDevice();\n\n let onExit = () => {\n // if focus was already moved back to a menu item, don't need to do anything\n if (!menu.current.contains(document.activeElement)) {\n // need to return focus to the trigger because hitting Esc causes focus to go to the subdialog, which is then unmounted\n // this leads to blur never being fired nor focus on the body\n triggerRef.current.focus();\n }\n };\n let onBlurWithin = (e) => {\n if (e.relatedTarget && popoverRef.current && !popoverRef.current?.UNSAFE_getDOMNode().contains(e.relatedTarget)) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n };\n return (\n <>\n <MenuDialogContext.Provider value={{isUnavailable, triggerRef}}>{trigger}</MenuDialogContext.Provider>\n <SlotProvider slots={slots}>\n {\n isMobile ? (\n <Modal state={state} isDismissable>\n <DismissButton onDismiss={state.close} />\n {content}\n <DismissButton onDismiss={state.close} />\n </Modal>\n ) : (\n <Popover\n onExit={onExit}\n onBlurWithin={onBlurWithin}\n container={container.current}\n state={state}\n ref={popoverRef}\n triggerRef={triggerRef}\n placement=\"end top\"\n offset={-10}\n hideArrow\n isNonModal\n enableBothDismissButtons\n disableFocusManagement>\n {content}\n </Popover>\n )\n }\n </SlotProvider>\n </>\n );\n}\n\nContextualHelpTrigger.getCollectionNode = function* getCollectionNode<T>(props: ItemProps<T>) {\n let [trigger] = React.Children.toArray(props.children) as ReactElement[];\n let [, content] = props.children as [ReactElement, ReactElement];\n\n yield {\n element: React.cloneElement(trigger, {...trigger.props, hasChildItems: true}),\n wrapper: (element) => (\n <ContextualHelpTrigger key={element.key} targetKey={element.key} {...props}>\n {element}\n {content}\n </ContextualHelpTrigger>\n )\n };\n};\n\nlet _Item = ContextualHelpTrigger as <T>(props: SpectrumMenuDialogTriggerProps<T>) => JSX.Element;\nexport {_Item as ContextualHelpTrigger};\n","/*\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;AAgBM,MAAM,4CAAc,CAAA,GAAA,YAAI,EAAE,cAAgC,CAAC;AAE3D,SAAS;IACd,OAAO,CAAA,GAAA,iBAAS,EAAE;AACpB;AAOO,MAAM,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S,QAAQ,MAAM;IAC7C,IAAI,GAAG,QAAQ,GAAG,MAAM;IAExB,MAAM;QACJ,uBAAS,CAAA,GAAA,YAAI,EAAE,aAAa,SAAS;YAAC,GAAG,QAAQ,KAAK;YAAE,eAAe;QAAI;QAC3E,SAAS,CAAC,wBACR,gCAAC;gBAAsB,KAAK,QAAQ;gBAAK,WAAW,QAAQ;gBAAM,GAAG,KAAK;eACvE,SACA;IAGP;AACF;AAEA,IAAI,4CAAQ;;","sources":["packages/@react-spectrum/menu/src/index.ts","packages/@react-spectrum/menu/src/MenuTrigger.tsx","packages/@react-spectrum/menu/src/context.ts","packages/@adobe/spectrum-css-temp/components/menu/vars.css","packages/@react-spectrum/menu/src/Menu.tsx","packages/@react-spectrum/menu/src/MenuItem.tsx","packages/@react-spectrum/menu/src/*.js","packages/@react-spectrum/menu/intl/ar-AE.json","packages/@react-spectrum/menu/intl/bg-BG.json","packages/@react-spectrum/menu/intl/cs-CZ.json","packages/@react-spectrum/menu/intl/da-DK.json","packages/@react-spectrum/menu/intl/de-DE.json","packages/@react-spectrum/menu/intl/el-GR.json","packages/@react-spectrum/menu/intl/en-US.json","packages/@react-spectrum/menu/intl/es-ES.json","packages/@react-spectrum/menu/intl/et-EE.json","packages/@react-spectrum/menu/intl/fi-FI.json","packages/@react-spectrum/menu/intl/fr-FR.json","packages/@react-spectrum/menu/intl/he-IL.json","packages/@react-spectrum/menu/intl/hr-HR.json","packages/@react-spectrum/menu/intl/hu-HU.json","packages/@react-spectrum/menu/intl/it-IT.json","packages/@react-spectrum/menu/intl/ja-JP.json","packages/@react-spectrum/menu/intl/ko-KR.json","packages/@react-spectrum/menu/intl/lt-LT.json","packages/@react-spectrum/menu/intl/lv-LV.json","packages/@react-spectrum/menu/intl/nb-NO.json","packages/@react-spectrum/menu/intl/nl-NL.json","packages/@react-spectrum/menu/intl/pl-PL.json","packages/@react-spectrum/menu/intl/pt-BR.json","packages/@react-spectrum/menu/intl/pt-PT.json","packages/@react-spectrum/menu/intl/ro-RO.json","packages/@react-spectrum/menu/intl/ru-RU.json","packages/@react-spectrum/menu/intl/sk-SK.json","packages/@react-spectrum/menu/intl/sl-SI.json","packages/@react-spectrum/menu/intl/sr-SP.json","packages/@react-spectrum/menu/intl/sv-SE.json","packages/@react-spectrum/menu/intl/tr-TR.json","packages/@react-spectrum/menu/intl/uk-UA.json","packages/@react-spectrum/menu/intl/zh-CN.json","packages/@react-spectrum/menu/intl/zh-TW.json","packages/@react-spectrum/menu/src/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx","packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css"],"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\n/// <reference types=\"css-module-types\" />\n\nexport {MenuTrigger} from './MenuTrigger';\nexport {Menu} from './Menu';\nexport {ActionMenu} from './ActionMenu';\nexport {ContextualHelpTrigger} from './ContextualHelpTrigger';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu';\nexport type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger';\n","/*\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, SlotProvider, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {MenuContext} from './context';\nimport {Placement} from '@react-types/overlays';\nimport {Popover, Tray} from '@react-spectrum/overlays';\nimport {PressResponder} from '@react-aria/interactions';\nimport React, {forwardRef, Fragment, useRef} from 'react';\nimport {SpectrumMenuTriggerProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenuTrigger} from '@react-aria/menu';\nimport {useMenuTriggerState} from '@react-stately/menu';\n\nfunction MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>) {\n let triggerRef = useRef<HTMLElement>();\n let domRef = useDOMRef(ref);\n let menuTriggerRef = domRef || triggerRef;\n let menuRef = useRef<HTMLDivElement>();\n let {\n children,\n align = 'start',\n shouldFlip = true,\n direction = 'bottom',\n closeOnSelect,\n trigger = 'press'\n } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let state = useMenuTriggerState(props);\n\n let {menuTriggerProps, menuProps} = useMenuTrigger({trigger}, state, menuTriggerRef);\n\n let initialPlacement: Placement;\n switch (direction) {\n case 'left':\n case 'right':\n case 'start':\n case 'end':\n initialPlacement = `${direction} ${align === 'end' ? 'bottom' : 'top'}` as Placement;\n break;\n case 'bottom':\n case 'top':\n default:\n initialPlacement = `${direction} ${align}` as Placement;\n }\n\n let isMobile = useIsMobileDevice();\n let menuContext = {\n ...menuProps,\n state,\n ref: menuRef,\n onClose: state.close,\n closeOnSelect,\n autoFocus: state.focusStrategy || true,\n UNSAFE_style: isMobile ? {\n width: '100%',\n maxHeight: 'inherit'\n } : undefined,\n UNSAFE_className: classNames(styles, {'spectrum-Menu-popover': !isMobile})\n };\n\n // On small screen devices, the menu is rendered in a tray, otherwise a popover.\n let overlay;\n if (isMobile) {\n overlay = (\n <Tray state={state}>\n {menu}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n UNSAFE_style={{clipPath: 'unset', overflow: 'visible'}}\n state={state}\n triggerRef={menuTriggerRef}\n scrollRef={menuRef}\n placement={initialPlacement}\n hideArrow\n shouldFlip={shouldFlip}>\n {menu}\n </Popover>\n );\n }\n\n return (\n <Fragment>\n <SlotProvider slots={{actionButton: {holdAffordance: trigger === 'longPress'}}}>\n <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>\n {menuTrigger}\n </PressResponder>\n </SlotProvider>\n <MenuContext.Provider value={menuContext}>\n {overlay}\n </MenuContext.Provider>\n </Fragment>\n );\n}\n\n/**\n * The MenuTrigger serves as a wrapper around a Menu and its associated trigger,\n * linking the Menu's open state with the trigger's press state.\n */\nlet _MenuTrigger = forwardRef(MenuTrigger);\nexport {_MenuTrigger as MenuTrigger};\n","/*\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 {FocusStrategy} from '@react-types/shared';\nimport {MenuTriggerState} from '@react-stately/menu';\nimport React, {HTMLAttributes, MutableRefObject, RefObject, useContext} from 'react';\nimport {TreeState} from '@react-stately/tree';\n\nexport interface MenuContextValue extends Omit<HTMLAttributes<HTMLElement>, 'autoFocus'> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLDivElement>,\n state?: MenuTriggerState\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\n}\n\nexport interface MenuDialogContextValue {\n isUnavailable?: boolean,\n triggerRef?: MutableRefObject<HTMLElement>\n}\n\nexport const MenuDialogContext = React.createContext<MenuDialogContextValue | undefined>(undefined);\n\nexport function useMenuDialogContext(): MenuDialogContextValue {\n return useContext(MenuDialogContext);\n}\n\nexport interface MenuStateContextValue<T> {\n state?: TreeState<T>,\n container?: RefObject<HTMLElement>,\n menu?: RefObject<HTMLDivElement>\n}\n\nexport const MenuStateContext = React.createContext<MenuStateContextValue<any>>({});\n\nexport function useMenuStateContext<T>(): MenuStateContextValue<T> {\n return useContext(MenuStateContext);\n}\n\n","/*\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\n@import './index.css';\n@import './skin.css';\n","/*\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, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\nimport {MenuContext, MenuStateContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext, useRef} from 'react';\nimport {SpectrumMenuProps} from '@react-types/menu';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {useMenu} from '@react-aria/menu';\nimport {useTreeState} from '@react-stately/tree';\n\nfunction Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLDivElement>) {\n let contextProps = useContext(MenuContext);\n let completeProps = {\n ...mergeProps(contextProps, props)\n };\n\n let domRef = useDOMRef(ref);\n let scopedRef = useRef(null);\n let state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\n <MenuStateContext.Provider value={{state, container: scopedRef, menu: domRef}}>\n <FocusScope contain={state.expandedKeys.size > 0}>\n <div style={{overflow: 'hidden', maxHeight: '100%', display: 'inline-flex', borderRadius: 'var(--spectrum-alias-border-radius-regular)'}}>\n <div\n {...menuProps}\n {...styleProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Menu',\n styleProps.className\n )\n }>\n {[...state.collection].map(item => {\n if (item.type === 'section') {\n return (\n <MenuSection\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n }\n\n let menuItem = (\n <MenuItem\n key={item.key}\n item={item}\n state={state}\n onAction={completeProps.onAction} />\n );\n\n if (item.wrapper) {\n menuItem = item.wrapper(menuItem);\n }\n\n return menuItem;\n })}\n </div>\n </div>\n <div ref={scopedRef} />\n </FocusScope>\n </MenuStateContext.Provider>\n );\n}\n\n/**\n * Menus display a list of actions or options that a user can choose.\n */\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Menu = React.forwardRef(Menu) as <T>(props: SpectrumMenuProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;\nexport {_Menu as Menu};\n","/*\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 CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {DOMAttributes, Node} from '@react-types/shared';\nimport {filterDOMProps, mergeProps, mergeRefs, useObjectRef, useSlotId} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {Key, useMemo, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {TreeState} from '@react-stately/tree';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMenuContext, useMenuDialogContext} from './context';\nimport {useMenuItem} from '@react-aria/menu';\n\ninterface MenuItemProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n isVirtualized?: boolean,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuItem<T>(props: MenuItemProps<T>) {\n let {\n item,\n state,\n isVirtualized,\n onAction\n } = props;\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let menuDialogContext = useMenuDialogContext();\n let {triggerRef} = menuDialogContext || {};\n let isMenuDialogTrigger = !!menuDialogContext;\n let isUnavailable = false;\n\n if (isMenuDialogTrigger) {\n isUnavailable = menuDialogContext.isUnavailable;\n }\n\n let ElementType: React.ElementType = item.props.href ? 'a' : 'div';\n let domProps = filterDOMProps(item.props, {isLink: !!item.props.href});\n\n let {\n closeOnSelect\n } = useMenuContext();\n\n let {\n rendered,\n key\n } = item;\n\n let isSelected = state.selectionManager.isSelected(key);\n let isDisabled = state.disabledKeys.has(key);\n\n let itemref = useRef<any>(null);\n let ref = useObjectRef(useMemo(() => mergeRefs(itemref, triggerRef), [itemref, triggerRef]));\n\n let {\n menuItemProps,\n labelProps,\n descriptionProps,\n keyboardShortcutProps\n } = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n closeOnSelect,\n isVirtualized,\n onAction,\n 'aria-haspopup': isMenuDialogTrigger && isUnavailable ? 'dialog' : undefined\n },\n state,\n ref\n );\n let endId = useSlotId();\n let endProps: DOMAttributes = {};\n if (endId) {\n endProps.id = endId;\n menuItemProps['aria-describedby'] = [menuItemProps['aria-describedby'], endId].filter(Boolean).join(' ');\n }\n\n let contents = typeof rendered === 'string'\n ? <Text>{rendered}</Text>\n : rendered;\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')}>\n <ElementType\n {...mergeProps(menuItemProps, domProps)}\n ref={ref}\n className={classNames(\n styles,\n 'spectrum-Menu-item',\n {\n 'is-disabled': isDisabled,\n 'is-selected': isSelected,\n 'is-selectable': state.selectionManager.selectionMode !== 'none',\n 'is-open': state.expandedKeys.has(key)\n }\n )}>\n <Grid\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-itemGrid'\n )\n }>\n <ClearSlots>\n <SlotProvider\n slots={{\n text: {UNSAFE_className: styles['spectrum-Menu-itemLabel'], ...labelProps},\n end: {UNSAFE_className: styles['spectrum-Menu-end'], ...endProps},\n icon: {UNSAFE_className: styles['spectrum-Menu-icon'], size: 'S'},\n description: {UNSAFE_className: styles['spectrum-Menu-description'], ...descriptionProps},\n keyboard: {UNSAFE_className: styles['spectrum-Menu-keyboard'], ...keyboardShortcutProps}\n }}>\n {contents}\n {isSelected &&\n <CheckmarkMedium\n slot=\"checkmark\"\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Menu-checkmark'\n )\n } />\n }\n {\n isUnavailable && <InfoOutline slot=\"end\" size=\"XS\" alignSelf=\"center\" aria-label={stringFormatter.format('unavailable')} />\n }\n </SlotProvider>\n </ClearSlots>\n </Grid>\n </ElementType>\n </FocusRing>\n );\n}\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"moreActions\": \"المزيد من الإجراءات\",\n \"unavailable\": \"غير مُتوفر، قُم بالتوسيع للحصول على التفاصيل\"\n}\n","{\n \"moreActions\": \"Повече действия\",\n \"unavailable\": \"Недостъпно, разгънете за подробности\"\n}\n","{\n \"moreActions\": \"Další akce\",\n \"unavailable\": \"Není k dispozici, rozbalením zobrazíte podrobnosti\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Ikke tilgængelig, udvid for detaljer\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\",\n \"unavailable\": \"Nicht verfügbar, für Details erweitern\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\",\n \"unavailable\": \"Μη διαθέσιμο, ανάπτυξη για λεπτομέρειες\"\n}\n","{\n \"moreActions\": \"More actions\",\n \"unavailable\": \"Unavailable, expand for details\"\n}\n","{\n \"moreActions\": \"Más acciones\",\n \"unavailable\": \"No disponible, ampliar para más detalles\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\",\n \"unavailable\": \"Pole kättesaadav, üksikasjade vaatamiseks laiendage\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\",\n \"unavailable\": \"Ei saatavilla, laajenna saadaksesi lisätietoja\"\n}\n","{\n \"moreActions\": \"Autres actions\",\n \"unavailable\": \"Indisponible, développer pour plus de détails\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\",\n \"unavailable\": \"לא זמין, הרחב לפרטים\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširi za detalje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\",\n \"unavailable\": \"Nem érhető el, a részletekért bontsa ki\"\n}\n","{\n \"moreActions\": \"Altre azioni\",\n \"unavailable\": \"Non disponibile, espandi per i dettagli\"\n}\n","{\n \"moreActions\": \"その他のアクション\",\n \"unavailable\": \"利用できません。詳しくは、展開して確認してください\"\n}\n","{\n \"moreActions\": \"기타 액션\",\n \"unavailable\": \"사용할 수 없음, 자세히 보려면 펼치기\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\",\n \"unavailable\": \"Nepasiekiama, norėdami gauti daugiau informacijos, išskleiskite\"\n}\n","{\n \"moreActions\": \"Citas darbības\",\n \"unavailable\": \"Nav pieejams, izvērsiet, lai skatītu sīkāku informāciju\"\n}\n","{\n \"moreActions\": \"Flere handlinger\",\n \"unavailable\": \"Utilgjengelig, utvid for detaljer\"\n}\n","{\n \"moreActions\": \"Meer handelingen\",\n \"unavailable\": \"Niet beschikbaar, uitvouwen voor meer informatie\"\n}\n","{\n \"moreActions\": \"Więcej akcji\",\n \"unavailable\": \"Niedostępne, rozwiń, aby zobaczyć szczegóły\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível. Expanda para ver os detalhes\"\n}\n","{\n \"moreActions\": \"Mais ações\",\n \"unavailable\": \"Indisponível, expandir para mais detalhes\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\",\n \"unavailable\": \"Indisponibil, extindeți pentru detalii\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\",\n \"unavailable\": \"Недоступно, разверните для подробностей\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\",\n \"unavailable\": \"Nedostupné, rozbaľte podrobnosti\"\n}\n","{\n \"moreActions\": \"Več možnosti\",\n \"unavailable\": \"Ni na voljo, razširite za podrobnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\",\n \"unavailable\": \"Nije dostupno, proširite za detalje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\",\n \"unavailable\": \"Ej tillgänglig, expandera för mer information\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\",\n \"unavailable\": \"Kullanılamıyor, ayrıntıları görmek için genişletin\"\n}\n","{\n \"moreActions\": \"Більше дій\",\n \"unavailable\": \"Недоступно, розгорніть для докладнішої інформації\"\n}\n","{\n \"moreActions\": \"更多操作\",\n \"unavailable\": \"不可用,展开以查看详细信息\"\n}\n","{\n \"moreActions\": \"更多動作\",\n \"unavailable\": \"無法使用,展開以取得詳細資料\"\n}\n","/*\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 {getChildNodes} from '@react-stately/collections';\nimport {MenuItem} from './MenuItem';\nimport {Node} from '@react-types/shared';\nimport React, {Fragment, Key} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/menu/vars.css';\nimport {TreeState} from '@react-stately/tree';\nimport {useMenuSection} from '@react-aria/menu';\nimport {useSeparator} from '@react-aria/separator';\n\ninterface MenuSectionProps<T> {\n item: Node<T>,\n state: TreeState<T>,\n onAction?: (key: Key) => void\n}\n\n/** @private */\nexport function MenuSection<T>(props: MenuSectionProps<T>) {\n let {item, state, onAction} = props;\n let {itemProps, headingProps, groupProps} = useMenuSection({\n heading: item.rendered,\n 'aria-label': item['aria-label']\n });\n\n let {separatorProps} = useSeparator({\n elementType: 'div'\n });\n\n return (\n <Fragment>\n {item.key !== state.collection.getFirstKey() &&\n <div\n {...separatorProps}\n className={classNames(\n styles,\n 'spectrum-Menu-divider'\n )} />\n }\n <div {...itemProps}>\n {item.rendered &&\n <span\n {...headingProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu-sectionHeading'\n )\n }>\n {item.rendered}\n </span>\n }\n <div\n {...groupProps}\n className={\n classNames(\n styles,\n 'spectrum-Menu'\n )\n }>\n {[...getChildNodes(item, state.collection)].map(node => {\n let item = (\n <MenuItem\n key={node.key}\n item={node}\n state={state}\n onAction={onAction} />\n );\n\n if (node.wrapper) {\n item = node.wrapper(item);\n }\n\n return item;\n })}\n </div>\n </div>\n </Fragment>\n );\n}\n","/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusableRef} from '@react-types/shared';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Menu} from './Menu';\nimport {MenuTrigger} from './MenuTrigger';\nimport More from '@spectrum-icons/workflow/More';\nimport React, {forwardRef, ReactElement} from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useSlotProps} from '@react-spectrum/utils';\n\nfunction ActionMenu<T extends object>(props: SpectrumActionMenuProps<T>, ref: FocusableRef<HTMLButtonElement>) {\n props = useSlotProps(props, 'actionMenu');\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = stringFormatter.format('moreActions');\n }\n\n return (\n <MenuTrigger\n isOpen={props.isOpen}\n defaultOpen={props.defaultOpen}\n onOpenChange={props.onOpenChange}\n align={props.align}\n direction={props.direction}\n shouldFlip={props.shouldFlip}>\n <ActionButton\n ref={ref}\n {...props}\n {...buttonProps}>\n <More />\n </ActionButton>\n <Menu\n children={props.children}\n items={props.items}\n disabledKeys={props.disabledKeys}\n onAction={props.onAction} />\n </MenuTrigger>\n );\n}\n\n/**\n * ActionMenu combines an ActionButton with a Menu for simple \"more actions\" use cases.\n */\nconst _ActionMenu = forwardRef(ActionMenu) as <T>(props: SpectrumActionMenuProps<T> & {ref?: FocusableRef<HTMLButtonElement>}) => ReactElement;\nexport {_ActionMenu as ActionMenu};\n","/*\n * Copyright 2023 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, SlotProvider, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton} from '@react-aria/overlays';\nimport helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css';\nimport {ItemProps} from '@react-types/shared';\nimport {MenuDialogContext, useMenuStateContext} from './context';\nimport {Modal, Popover} from '@react-spectrum/overlays';\nimport React, {Key, ReactElement, useRef} from 'react';\nimport {useOverlayTriggerState} from '@react-stately/overlays';\n\ninterface MenuDialogTriggerProps<T> extends ItemProps<T> {\n /** Whether the menu item is currently unavailable. */\n isUnavailable?: boolean,\n /** The triggering Item and the Dialog, respectively. */\n children: [ReactElement, ReactElement],\n targetKey: Key\n}\n\nexport interface SpectrumMenuDialogTriggerProps<T> extends Omit<MenuDialogTriggerProps<T>, 'targetKey' | 'title' | 'textValue' | 'childItems' | 'hasChildItems'> {}\n\nfunction ContextualHelpTrigger<T>(props: MenuDialogTriggerProps<T>): ReactElement {\n let {isUnavailable} = props;\n\n let triggerRef = useRef<HTMLLIElement>(null);\n let popoverRef = useRef(null);\n let {state: menuState, container, menu} = useMenuStateContext();\n let state = useOverlayTriggerState({isOpen: menuState.expandedKeys.has(props.targetKey), onOpenChange: (val) => {\n if (!val) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n }});\n let slots = {};\n if (isUnavailable) {\n slots = {\n dialog: {UNSAFE_className: classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')},\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n }\n let [trigger] = React.Children.toArray(props.children);\n let [, content] = props.children as [ReactElement, ReactElement];\n\n let isMobile = useIsMobileDevice();\n\n let onExit = () => {\n // if focus was already moved back to a menu item, don't need to do anything\n if (!menu.current.contains(document.activeElement)) {\n // need to return focus to the trigger because hitting Esc causes focus to go to the subdialog, which is then unmounted\n // this leads to blur never being fired nor focus on the body\n triggerRef.current.focus();\n }\n };\n let onBlurWithin = (e) => {\n if (e.relatedTarget && popoverRef.current && !popoverRef.current?.UNSAFE_getDOMNode().contains(e.relatedTarget)) {\n if (menuState.expandedKeys.has(props.targetKey)) {\n menuState.toggleKey(props.targetKey);\n }\n }\n };\n return (\n <>\n <MenuDialogContext.Provider value={{isUnavailable, triggerRef}}>{trigger}</MenuDialogContext.Provider>\n <SlotProvider slots={slots}>\n {\n isMobile ? (\n <Modal state={state} isDismissable>\n <DismissButton onDismiss={state.close} />\n {content}\n <DismissButton onDismiss={state.close} />\n </Modal>\n ) : (\n <Popover\n onExit={onExit}\n onBlurWithin={onBlurWithin}\n container={container.current}\n state={state}\n ref={popoverRef}\n triggerRef={triggerRef}\n placement=\"end top\"\n offset={-10}\n hideArrow\n isNonModal\n enableBothDismissButtons\n disableFocusManagement>\n {content}\n </Popover>\n )\n }\n </SlotProvider>\n </>\n );\n}\n\nContextualHelpTrigger.getCollectionNode = function* getCollectionNode<T>(props: ItemProps<T>) {\n let [trigger] = React.Children.toArray(props.children) as ReactElement[];\n let [, content] = props.children as [ReactElement, ReactElement];\n\n yield {\n element: React.cloneElement(trigger, {...trigger.props, hasChildItems: true}),\n wrapper: (element) => (\n <ContextualHelpTrigger key={element.key} targetKey={element.key} {...props}>\n {element}\n {content}\n </ContextualHelpTrigger>\n )\n };\n};\n\nlet _Item = ContextualHelpTrigger as <T>(props: SpectrumMenuDialogTriggerProps<T>) => JSX.Element;\nexport {_Item as ContextualHelpTrigger};\n","/*\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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export let MenuTrigger: React.ForwardRefExoticComponent<SpectrumMenuTriggerProps
|
|
|
10
10
|
* Menus display a list of actions or options that a user can choose.
|
|
11
11
|
*/
|
|
12
12
|
export const Menu: <T>(props: SpectrumMenuProps<T> & {
|
|
13
|
-
ref?: DOMRef<
|
|
13
|
+
ref?: DOMRef<HTMLDivElement>;
|
|
14
14
|
}) => ReactElement;
|
|
15
15
|
/**
|
|
16
16
|
* ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;AC6GA;;;GAGG;AACH,OAAA,IAAI,oJAAsC,CAAC;AG3B3C;;GAEG;AAGH,OAAA,MAAM;UAA2E,OAAO,
|
|
1
|
+
{"mappings":";;;AC6GA;;;GAGG;AACH,OAAA,IAAI,oJAAsC,CAAC;AG3B3C;;GAEG;AAGH,OAAA,MAAM;UAA2E,OAAO,cAAc,CAAC;MAAM,YAAY,CAAC;ACnC1H;;GAEG;AACH,OAAA,MAAM;UAAuF,aAAa,iBAAiB,CAAC;MAAM,YAAY,CAAC;ACtC/I,iCAAiC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC;IACtD,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wDAAwD;IACxD,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACvC,SAAS,EAAE,GAAG,CAAA;CACf;AAED,gDAAgD,CAAC,CAAE,SAAQ,IAAI,CAAC,uBAAuB,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAC;CAAG;AA4FnK,OAAA,IAAI,wEAAkF,WAAW,CAAC;ACvGlG,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAC,uBAAuB,EAAE,iBAAiB,EAAE,wBAAwB,EAAC,MAAM,mBAAmB,CAAC","sources":["packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/context.ts","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/MenuTrigger.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/MenuItem.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/MenuSection.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/Menu.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx","packages/@react-spectrum/menu/src/packages/@react-spectrum/menu/src/index.ts","packages/@react-spectrum/menu/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,"/*\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\n/// <reference types=\"css-module-types\" />\n\nexport {MenuTrigger} from './MenuTrigger';\nexport {Menu} from './Menu';\nexport {ActionMenu} from './ActionMenu';\nexport {ContextualHelpTrigger} from './ContextualHelpTrigger';\nexport {Item, Section} from '@react-stately/collections';\nexport type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu';\nexport type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/menu",
|
|
3
|
-
"version": "3.14.1-nightly.
|
|
3
|
+
"version": "3.14.1-nightly.4140+24bffc08c",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,36 +36,36 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
40
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
41
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
42
|
-
"@react-aria/menu": "3.10.3-nightly.
|
|
43
|
-
"@react-aria/overlays": "3.0.0-nightly.
|
|
44
|
-
"@react-aria/selection": "3.0.0-nightly.
|
|
45
|
-
"@react-aria/separator": "3.0.0-nightly.
|
|
46
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
47
|
-
"@react-aria/virtualizer": "3.9.3-nightly.
|
|
48
|
-
"@react-spectrum/button": "3.0.0-nightly.
|
|
49
|
-
"@react-spectrum/checkbox": "3.0.0-nightly.
|
|
50
|
-
"@react-spectrum/divider": "3.0.0-nightly.
|
|
51
|
-
"@react-spectrum/layout": "3.5.6-nightly.
|
|
52
|
-
"@react-spectrum/overlays": "3.0.0-nightly.
|
|
53
|
-
"@react-spectrum/text": "3.4.6-nightly.
|
|
54
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
55
|
-
"@react-stately/collections": "3.0.0-nightly.
|
|
56
|
-
"@react-stately/menu": "3.5.6-nightly.
|
|
57
|
-
"@react-stately/overlays": "3.6.3-nightly.
|
|
58
|
-
"@react-stately/tree": "3.0.0-nightly.
|
|
59
|
-
"@react-stately/utils": "3.0.0-nightly.
|
|
60
|
-
"@react-types/menu": "3.9.5-nightly.
|
|
61
|
-
"@react-types/overlays": "3.8.3-nightly.
|
|
62
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
63
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
|
64
|
-
"@spectrum-icons/workflow": "3.0.0-nightly.
|
|
39
|
+
"@react-aria/focus": "3.0.0-nightly.2431+24bffc08c",
|
|
40
|
+
"@react-aria/i18n": "3.0.0-nightly.2431+24bffc08c",
|
|
41
|
+
"@react-aria/interactions": "3.0.0-nightly.2431+24bffc08c",
|
|
42
|
+
"@react-aria/menu": "3.10.3-nightly.4140+24bffc08c",
|
|
43
|
+
"@react-aria/overlays": "3.0.0-nightly.2431+24bffc08c",
|
|
44
|
+
"@react-aria/selection": "3.0.0-nightly.2431+24bffc08c",
|
|
45
|
+
"@react-aria/separator": "3.0.0-nightly.2431+24bffc08c",
|
|
46
|
+
"@react-aria/utils": "3.0.0-nightly.2431+24bffc08c",
|
|
47
|
+
"@react-aria/virtualizer": "3.9.3-nightly.4140+24bffc08c",
|
|
48
|
+
"@react-spectrum/button": "3.0.0-nightly.2431+24bffc08c",
|
|
49
|
+
"@react-spectrum/checkbox": "3.0.0-nightly.2431+24bffc08c",
|
|
50
|
+
"@react-spectrum/divider": "3.0.0-nightly.2431+24bffc08c",
|
|
51
|
+
"@react-spectrum/layout": "3.5.6-nightly.4140+24bffc08c",
|
|
52
|
+
"@react-spectrum/overlays": "3.0.0-nightly.2431+24bffc08c",
|
|
53
|
+
"@react-spectrum/text": "3.4.6-nightly.4140+24bffc08c",
|
|
54
|
+
"@react-spectrum/utils": "3.0.0-nightly.2431+24bffc08c",
|
|
55
|
+
"@react-stately/collections": "3.0.0-nightly.2431+24bffc08c",
|
|
56
|
+
"@react-stately/menu": "3.5.6-nightly.4140+24bffc08c",
|
|
57
|
+
"@react-stately/overlays": "3.6.3-nightly.4140+24bffc08c",
|
|
58
|
+
"@react-stately/tree": "3.0.0-nightly.2431+24bffc08c",
|
|
59
|
+
"@react-stately/utils": "3.0.0-nightly.2431+24bffc08c",
|
|
60
|
+
"@react-types/menu": "3.9.5-nightly.4140+24bffc08c",
|
|
61
|
+
"@react-types/overlays": "3.8.3-nightly.4140+24bffc08c",
|
|
62
|
+
"@react-types/shared": "3.0.0-nightly.2431+24bffc08c",
|
|
63
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2431+24bffc08c",
|
|
64
|
+
"@spectrum-icons/workflow": "3.0.0-nightly.2431+24bffc08c",
|
|
65
65
|
"@swc/helpers": "^0.5.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
68
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2431+24bffc08c"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "24bffc08cd4435d0a75c99326883085c3a90b009"
|
|
79
79
|
}
|
package/src/Menu.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import styles from '@adobe/spectrum-css-temp/components/menu/vars.css';
|
|
|
23
23
|
import {useMenu} from '@react-aria/menu';
|
|
24
24
|
import {useTreeState} from '@react-stately/tree';
|
|
25
25
|
|
|
26
|
-
function Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<
|
|
26
|
+
function Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLDivElement>) {
|
|
27
27
|
let contextProps = useContext(MenuContext);
|
|
28
28
|
let completeProps = {
|
|
29
29
|
...mergeProps(contextProps, props)
|
|
@@ -40,7 +40,7 @@ function Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLULi
|
|
|
40
40
|
<MenuStateContext.Provider value={{state, container: scopedRef, menu: domRef}}>
|
|
41
41
|
<FocusScope contain={state.expandedKeys.size > 0}>
|
|
42
42
|
<div style={{overflow: 'hidden', maxHeight: '100%', display: 'inline-flex', borderRadius: 'var(--spectrum-alias-border-radius-regular)'}}>
|
|
43
|
-
<
|
|
43
|
+
<div
|
|
44
44
|
{...menuProps}
|
|
45
45
|
{...styleProps}
|
|
46
46
|
ref={domRef}
|
|
@@ -76,7 +76,7 @@ function Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLULi
|
|
|
76
76
|
|
|
77
77
|
return menuItem;
|
|
78
78
|
})}
|
|
79
|
-
</
|
|
79
|
+
</div>
|
|
80
80
|
</div>
|
|
81
81
|
<div ref={scopedRef} />
|
|
82
82
|
</FocusScope>
|
|
@@ -89,5 +89,5 @@ function Menu<T extends object>(props: SpectrumMenuProps<T>, ref: DOMRef<HTMLULi
|
|
|
89
89
|
*/
|
|
90
90
|
// forwardRef doesn't support generic parameters, so cast the result to the correct type
|
|
91
91
|
// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref
|
|
92
|
-
const _Menu = React.forwardRef(Menu) as <T>(props: SpectrumMenuProps<T> & {ref?: DOMRef<
|
|
92
|
+
const _Menu = React.forwardRef(Menu) as <T>(props: SpectrumMenuProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement;
|
|
93
93
|
export {_Menu as Menu};
|
package/src/MenuItem.tsx
CHANGED
|
@@ -52,7 +52,8 @@ export function MenuItem<T>(props: MenuItemProps<T>) {
|
|
|
52
52
|
isUnavailable = menuDialogContext.isUnavailable;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
let
|
|
55
|
+
let ElementType: React.ElementType = item.props.href ? 'a' : 'div';
|
|
56
|
+
let domProps = filterDOMProps(item.props, {isLink: !!item.props.href});
|
|
56
57
|
|
|
57
58
|
let {
|
|
58
59
|
closeOnSelect
|
|
@@ -66,7 +67,7 @@ export function MenuItem<T>(props: MenuItemProps<T>) {
|
|
|
66
67
|
let isSelected = state.selectionManager.isSelected(key);
|
|
67
68
|
let isDisabled = state.disabledKeys.has(key);
|
|
68
69
|
|
|
69
|
-
let itemref = useRef<
|
|
70
|
+
let itemref = useRef<any>(null);
|
|
70
71
|
let ref = useObjectRef(useMemo(() => mergeRefs(itemref, triggerRef), [itemref, triggerRef]));
|
|
71
72
|
|
|
72
73
|
let {
|
|
@@ -101,7 +102,7 @@ export function MenuItem<T>(props: MenuItemProps<T>) {
|
|
|
101
102
|
|
|
102
103
|
return (
|
|
103
104
|
<FocusRing focusRingClass={classNames(styles, 'focus-ring')}>
|
|
104
|
-
<
|
|
105
|
+
<ElementType
|
|
105
106
|
{...mergeProps(menuItemProps, domProps)}
|
|
106
107
|
ref={ref}
|
|
107
108
|
className={classNames(
|
|
@@ -147,7 +148,7 @@ export function MenuItem<T>(props: MenuItemProps<T>) {
|
|
|
147
148
|
</SlotProvider>
|
|
148
149
|
</ClearSlots>
|
|
149
150
|
</Grid>
|
|
150
|
-
</
|
|
151
|
+
</ElementType>
|
|
151
152
|
</FocusRing>
|
|
152
153
|
);
|
|
153
154
|
}
|
package/src/MenuSection.tsx
CHANGED
|
@@ -35,20 +35,20 @@ export function MenuSection<T>(props: MenuSectionProps<T>) {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
let {separatorProps} = useSeparator({
|
|
38
|
-
elementType: '
|
|
38
|
+
elementType: 'div'
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
42
|
<Fragment>
|
|
43
43
|
{item.key !== state.collection.getFirstKey() &&
|
|
44
|
-
<
|
|
44
|
+
<div
|
|
45
45
|
{...separatorProps}
|
|
46
46
|
className={classNames(
|
|
47
47
|
styles,
|
|
48
48
|
'spectrum-Menu-divider'
|
|
49
49
|
)} />
|
|
50
50
|
}
|
|
51
|
-
<
|
|
51
|
+
<div {...itemProps}>
|
|
52
52
|
{item.rendered &&
|
|
53
53
|
<span
|
|
54
54
|
{...headingProps}
|
|
@@ -61,7 +61,7 @@ export function MenuSection<T>(props: MenuSectionProps<T>) {
|
|
|
61
61
|
{item.rendered}
|
|
62
62
|
</span>
|
|
63
63
|
}
|
|
64
|
-
<
|
|
64
|
+
<div
|
|
65
65
|
{...groupProps}
|
|
66
66
|
className={
|
|
67
67
|
classNames(
|
|
@@ -84,8 +84,8 @@ export function MenuSection<T>(props: MenuSectionProps<T>) {
|
|
|
84
84
|
|
|
85
85
|
return item;
|
|
86
86
|
})}
|
|
87
|
-
</
|
|
88
|
-
</
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
89
|
</Fragment>
|
|
90
90
|
);
|
|
91
91
|
}
|
package/src/MenuTrigger.tsx
CHANGED
|
@@ -26,7 +26,7 @@ function MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>)
|
|
|
26
26
|
let triggerRef = useRef<HTMLElement>();
|
|
27
27
|
let domRef = useDOMRef(ref);
|
|
28
28
|
let menuTriggerRef = domRef || triggerRef;
|
|
29
|
-
let menuRef = useRef<
|
|
29
|
+
let menuRef = useRef<HTMLDivElement>();
|
|
30
30
|
let {
|
|
31
31
|
children,
|
|
32
32
|
align = 'start',
|
package/src/context.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface MenuContextValue extends Omit<HTMLAttributes<HTMLElement>, 'aut
|
|
|
20
20
|
closeOnSelect?: boolean,
|
|
21
21
|
shouldFocusWrap?: boolean,
|
|
22
22
|
autoFocus?: boolean | FocusStrategy,
|
|
23
|
-
ref?: MutableRefObject<
|
|
23
|
+
ref?: MutableRefObject<HTMLDivElement>,
|
|
24
24
|
state?: MenuTriggerState
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ export function useMenuContext(): MenuContextValue {
|
|
|
32
32
|
|
|
33
33
|
export interface MenuDialogContextValue {
|
|
34
34
|
isUnavailable?: boolean,
|
|
35
|
-
triggerRef?: MutableRefObject<
|
|
35
|
+
triggerRef?: MutableRefObject<HTMLElement>
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export const MenuDialogContext = React.createContext<MenuDialogContextValue | undefined>(undefined);
|
|
@@ -44,7 +44,7 @@ export function useMenuDialogContext(): MenuDialogContextValue {
|
|
|
44
44
|
export interface MenuStateContextValue<T> {
|
|
45
45
|
state?: TreeState<T>,
|
|
46
46
|
container?: RefObject<HTMLElement>,
|
|
47
|
-
menu?: RefObject<
|
|
47
|
+
menu?: RefObject<HTMLDivElement>
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export const MenuStateContext = React.createContext<MenuStateContextValue<any>>({});
|