@react-spectrum/menu 3.5.2-nightly.3070 → 3.5.2-nightly.3085

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/main.js CHANGED
@@ -144,10 +144,11 @@ function $0c0060e1e7988bbf$var$MenuTrigger(props, ref) {
144
144
  let domRef = $lUcXk$reactspectrumutils.useDOMRef(ref);
145
145
  let menuTriggerRef = domRef || triggerRef;
146
146
  let menuRef = $lUcXk$react.useRef();
147
- let { children: children , align: align = 'start' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , closeOnSelect: closeOnSelect } = props;
147
+ let { children: children , align: align = 'start' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , closeOnSelect: closeOnSelect , trigger: trigger = 'press' } = props;
148
148
  let [menuTrigger, menu] = ($parcel$interopDefault($lUcXk$react)).Children.toArray(children);
149
149
  let state = $lUcXk$reactstatelymenu.useMenuTriggerState(props);
150
150
  let { menuTriggerProps: menuTriggerProps , menuProps: menuProps } = $lUcXk$reactariamenu.useMenuTrigger({
151
+ trigger: trigger
151
152
  }, state, menuTriggerRef);
152
153
  let initialPlacement;
153
154
  switch(direction){
@@ -209,11 +210,17 @@ function $0c0060e1e7988bbf$var$MenuTrigger(props, ref) {
209
210
  onClose: state.close,
210
211
  shouldCloseOnBlur: true
211
212
  }, contents);
212
- return(/*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($lUcXk$react.Fragment, null, /*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($lUcXk$reactariainteractions.PressResponder, {
213
+ return(/*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($lUcXk$react.Fragment, null, /*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($lUcXk$reactspectrumutils.SlotProvider, {
214
+ slots: {
215
+ actionButton: {
216
+ holdAffordance: trigger === 'longPress'
217
+ }
218
+ }
219
+ }, /*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($lUcXk$reactariainteractions.PressResponder, {
213
220
  ...menuTriggerProps,
214
221
  ref: menuTriggerRef,
215
222
  isPressed: state.isOpen
216
- }, menuTrigger), /*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($af3df6ea6d95ba46$export$c7e742effb1c51e2.Provider, {
223
+ }, menuTrigger)), /*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).createElement($af3df6ea6d95ba46$export$c7e742effb1c51e2.Provider, {
217
224
  value: menuContext
218
225
  }, overlay)));
219
226
  }
@@ -600,7 +607,7 @@ function $787afa15dd14ac4c$var$ActionMenu(props, ref) {
600
607
  })));
601
608
  }
602
609
  /**
603
- * Convenience component to display an ActionButton with a Menu.
610
+ * ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
604
611
  */ let $787afa15dd14ac4c$export$ed57a210b9d13bb6 = /*#__PURE__*/ ($parcel$interopDefault($lUcXk$react)).forwardRef($787afa15dd14ac4c$var$ActionMenu);
605
612
 
606
613
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEuBO,KAAK,CAAC,yCAAW,GAAG,sCAAK,CAAC,aAAa,CAAmB,CAAC;AAAA,CAAC;SAEnD,yCAAc,GAAqB,CAAC;IAClD,MAAM,CAAC,uBAAU,CAAC,yCAAW;AAC/B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BD,GAAuC;AACvC,GAA+B;AAC/B,GAA8C;AAC9C,GAAyC;AACzC,GAAoC;AACpC,GAA6B;AAC7B,GAA+B;AAC/B,GAAyC;AACzC,GAAwC;AACxC,GAAmD;AACnD,GAAuC;AACvC,GAAwC;AACxC,GAA+B;AAC/B,GAAmC;AACnC,GAAoC;AACpC,GAA2C;AAC3C,GAAwC;AACxC,GAA4B;AAC5B,GAA4B;AAC5B,GAA4B;AAC5B,GAAgC;AAChC,GAAyB;AACzB,GAA2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BAAM,SAAS,EACzC,WAAW,CAAC,CAAY,eAAI,aAAa,CAAC,CAAa;IAGzD,MAAM,oEACH,yCAAW;QACV,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;0EAC3B,uCAAY;QACX,GAAG,EAAE,GAAG;WACJ,KAAK;WACL,WAAW;0EACd,0DAAI,6EAEN,yCAAI;QACH,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;;AAGhC,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,GAAG,CAAC,yCAAW,iBAAG,sCAAK,CAAC,UAAU,CAAC,gCAAU;","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/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/intl/*.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"],"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 * from './MenuTrigger';\nexport * from './Menu';\nexport * from './ActionMenu';\nexport {Item, Section} from '@react-stately/collections';\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, unwrapDOMRef, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton, useOverlayPosition} from '@react-aria/overlays';\nimport {DOMRef, DOMRefValue} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\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 menuPopoverRef = useRef<DOMRefValue<HTMLDivElement>>();\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 } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let state = useMenuTriggerState(props);\n\n let {menuTriggerProps, menuProps} = useMenuTrigger({}, 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 {overlayProps: positionProps, placement} = useOverlayPosition({\n targetRef: menuTriggerRef,\n overlayRef: unwrapDOMRef(menuPopoverRef),\n scrollRef: menuRef,\n placement: initialPlacement,\n shouldFlip: shouldFlip,\n isOpen: state.isOpen && !isMobile,\n onClose: state.close\n });\n\n let menuContext = {\n ...menuProps,\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 let contents = (\n <FocusScope restoreFocus contain={isMobile}>\n <DismissButton onDismiss={state.close} />\n {menu}\n <DismissButton onDismiss={state.close} />\n </FocusScope>\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 isOpen={state.isOpen} onClose={state.close}>\n {contents}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n isOpen={state.isOpen}\n UNSAFE_style={positionProps.style}\n ref={menuPopoverRef}\n placement={placement}\n hideArrow\n onClose={state.close}\n shouldCloseOnBlur>\n {contents}\n </Popover>\n );\n }\n\n return (\n <Fragment>\n <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>\n {menuTrigger}\n </PressResponder>\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 React, {HTMLAttributes, MutableRefObject, useContext} from 'react';\n\nexport interface MenuContextValue extends HTMLAttributes<HTMLElement> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLUListElement>\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\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 {MenuContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext} 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 state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\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 );\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 {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport {mergeProps} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {Key, 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 {useHover} from '@react-aria/interactions';\nimport {useMenuContext} 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\n let {\n onClose,\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 ref = useRef<HTMLLIElement>();\n let {menuItemProps, labelProps, descriptionProps, keyboardShortcutProps} = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n onClose,\n closeOnSelect,\n isVirtualized,\n onAction\n },\n state,\n ref\n );\n let {hoverProps, isHovered} = useHover({isDisabled});\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, hoverProps)}\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-hovered': isHovered\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'], ...descriptionProps},\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 </SlotProvider>\n </ClearSlots>\n </Grid>\n </li>\n </FocusRing>\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\nimport {classNames} from '@react-spectrum/utils';\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 {[...item.childNodes].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 from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useMessageFormatter} 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 formatMessage = useMessageFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = formatMessage('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 * Convenience component to display an ActionButton with a Menu.\n */\nlet _ActionMenu = React.forwardRef(ActionMenu);\nexport {_ActionMenu as ActionMenu};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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}\n","{\n \"moreActions\": \"Повече действия\"\n}\n","{\n \"moreActions\": \"Další akce\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\"\n}\n","{\n \"moreActions\": \"More actions\"\n}","{\n \"moreActions\": \"Más acciones\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\"\n}\n","{\n \"moreActions\": \"Autres actions\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\"\n}\n","{\n \"moreActions\": \"Altre azioni\"\n}\n","{\n \"moreActions\": \"その他のアクション\"\n}\n","{\n \"moreActions\": \"기타 작업\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\"\n}\n","{\n \"moreActions\": \"Citas darbības\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Meer handelingen\"\n}\n","{\n \"moreActions\": \"Więcej akcji\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\"\n}\n","{\n \"moreActions\": \"Več možnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\"\n}\n","{\n \"moreActions\": \"Більше дій\"\n}\n","{\n \"moreActions\": \"更多操作\"\n}\n","{\n \"moreActions\": \"更多動作\"\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEuBO,KAAK,CAAC,yCAAW,GAAG,sCAAK,CAAC,aAAa,CAAmB,CAAC;AAAA,CAAC;SAEnD,yCAAc,GAAqB,CAAC;IAClD,MAAM,CAAC,uBAAU,CAAC,yCAAW;AAC/B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BD,GAAuC;AACvC,GAA+B;AAC/B,GAA8C;AAC9C,GAAyC;AACzC,GAAoC;AACpC,GAA6B;AAC7B,GAA+B;AAC/B,GAAyC;AACzC,GAAwC;AACxC,GAAmD;AACnD,GAAuC;AACvC,GAAwC;AACxC,GAA+B;AAC/B,GAAmC;AACnC,GAAoC;AACpC,GAA2C;AAC3C,GAAwC;AACxC,GAA4B;AAC5B,GAA4B;AAC5B,GAA4B;AAC5B,GAAgC;AAChC,GAAyB;AACzB,GAA2B;AAC3B,GAA6B;AAvB7B,uCAAuC,GAAG,CAA+B;AACzE,yCAA+B,GAAG,CAAuB;AACzD,yCAA8C,GAAG,CAAsC;AACvF,yCAAyC,GAAG,CAAiC;AAC7E,yCAAoC,GA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CAAC,CAAY,iBAAM,SAAS,EACzC,WAAW,CAAC,CAAY,eAAI,aAAa,CAAC,CAAa;IAGzD,MAAM,oEACH,yCAAW;QACV,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;0EAC3B,uCAAY;QACX,GAAG,EAAE,GAAG;WACJ,KAAK;WACL,WAAW;0EACd,0DAAI,6EAEN,yCAAI;QACH,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;;AAGhC,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,GAAG,CAAC,yCAAW,iBAAG,sCAAK,CAAC,UAAU,CAAC,gCAAU;","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/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/intl/*.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"],"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 * from './MenuTrigger';\nexport * from './Menu';\nexport * from './ActionMenu';\nexport {Item, Section} from '@react-stately/collections';\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, unwrapDOMRef, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton, useOverlayPosition} from '@react-aria/overlays';\nimport {DOMRef, DOMRefValue} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\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 menuPopoverRef = useRef<DOMRefValue<HTMLDivElement>>();\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 {overlayProps: positionProps, placement} = useOverlayPosition({\n targetRef: menuTriggerRef,\n overlayRef: unwrapDOMRef(menuPopoverRef),\n scrollRef: menuRef,\n placement: initialPlacement,\n shouldFlip: shouldFlip,\n isOpen: state.isOpen && !isMobile,\n onClose: state.close\n });\n\n let menuContext = {\n ...menuProps,\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 let contents = (\n <FocusScope restoreFocus contain={isMobile}>\n <DismissButton onDismiss={state.close} />\n {menu}\n <DismissButton onDismiss={state.close} />\n </FocusScope>\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 isOpen={state.isOpen} onClose={state.close}>\n {contents}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n isOpen={state.isOpen}\n UNSAFE_style={positionProps.style}\n ref={menuPopoverRef}\n placement={placement}\n hideArrow\n onClose={state.close}\n shouldCloseOnBlur>\n {contents}\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 React, {HTMLAttributes, MutableRefObject, useContext} from 'react';\n\nexport interface MenuContextValue extends HTMLAttributes<HTMLElement> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLUListElement>\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\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 {MenuContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext} 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 state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\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 );\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 {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport {mergeProps} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {Key, 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 {useHover} from '@react-aria/interactions';\nimport {useMenuContext} 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\n let {\n onClose,\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 ref = useRef<HTMLLIElement>();\n let {menuItemProps, labelProps, descriptionProps, keyboardShortcutProps} = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n onClose,\n closeOnSelect,\n isVirtualized,\n onAction\n },\n state,\n ref\n );\n let {hoverProps, isHovered} = useHover({isDisabled});\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, hoverProps)}\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-hovered': isHovered\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'], ...descriptionProps},\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 </SlotProvider>\n </ClearSlots>\n </Grid>\n </li>\n </FocusRing>\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\nimport {classNames} from '@react-spectrum/utils';\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 {[...item.childNodes].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 from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useMessageFormatter} 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 formatMessage = useMessageFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = formatMessage('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 */\nlet _ActionMenu = React.forwardRef(ActionMenu);\nexport {_ActionMenu as ActionMenu};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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}\n","{\n \"moreActions\": \"Повече действия\"\n}\n","{\n \"moreActions\": \"Další akce\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\"\n}\n","{\n \"moreActions\": \"More actions\"\n}","{\n \"moreActions\": \"Más acciones\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\"\n}\n","{\n \"moreActions\": \"Autres actions\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\"\n}\n","{\n \"moreActions\": \"Altre azioni\"\n}\n","{\n \"moreActions\": \"その他のアクション\"\n}\n","{\n \"moreActions\": \"기타 작업\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\"\n}\n","{\n \"moreActions\": \"Citas darbības\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Meer handelingen\"\n}\n","{\n \"moreActions\": \"Więcej akcji\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\"\n}\n","{\n \"moreActions\": \"Več možnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\"\n}\n","{\n \"moreActions\": \"Більше дій\"\n}\n","{\n \"moreActions\": \"更多操作\"\n}\n","{\n \"moreActions\": \"更多動作\"\n}\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./main.css";
2
2
  import {Item as $a889dbd8c7b66456$re_export$Item, Section as $a889dbd8c7b66456$re_export$Section} from "@react-stately/collections";
3
- import {useDOMRef as $9mVUt$useDOMRef, useIsMobileDevice as $9mVUt$useIsMobileDevice, unwrapDOMRef as $9mVUt$unwrapDOMRef, classNames as $9mVUt$classNames, useStyleProps as $9mVUt$useStyleProps, ClearSlots as $9mVUt$ClearSlots, SlotProvider as $9mVUt$SlotProvider, useSlotProps as $9mVUt$useSlotProps} from "@react-spectrum/utils";
3
+ import {useDOMRef as $9mVUt$useDOMRef, useIsMobileDevice as $9mVUt$useIsMobileDevice, unwrapDOMRef as $9mVUt$unwrapDOMRef, classNames as $9mVUt$classNames, SlotProvider as $9mVUt$SlotProvider, useStyleProps as $9mVUt$useStyleProps, ClearSlots as $9mVUt$ClearSlots, useSlotProps as $9mVUt$useSlotProps} from "@react-spectrum/utils";
4
4
  import {useOverlayPosition as $9mVUt$useOverlayPosition, DismissButton as $9mVUt$DismissButton} from "@react-aria/overlays";
5
5
  import {FocusScope as $9mVUt$FocusScope, FocusRing as $9mVUt$FocusRing} from "@react-aria/focus";
6
6
  import {Tray as $9mVUt$Tray, Popover as $9mVUt$Popover} from "@react-spectrum/overlays";
@@ -125,10 +125,11 @@ function $2e5e43847b8c70c9$var$MenuTrigger(props, ref) {
125
125
  let domRef = $9mVUt$useDOMRef(ref);
126
126
  let menuTriggerRef = domRef || triggerRef;
127
127
  let menuRef = $9mVUt$useRef();
128
- let { children: children , align: align = 'start' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , closeOnSelect: closeOnSelect } = props;
128
+ let { children: children , align: align = 'start' , shouldFlip: shouldFlip = true , direction: direction = 'bottom' , closeOnSelect: closeOnSelect , trigger: trigger = 'press' } = props;
129
129
  let [menuTrigger, menu] = $9mVUt$react.Children.toArray(children);
130
130
  let state = $9mVUt$useMenuTriggerState(props);
131
131
  let { menuTriggerProps: menuTriggerProps , menuProps: menuProps } = $9mVUt$useMenuTrigger({
132
+ trigger: trigger
132
133
  }, state, menuTriggerRef);
133
134
  let initialPlacement;
134
135
  switch(direction){
@@ -190,11 +191,17 @@ function $2e5e43847b8c70c9$var$MenuTrigger(props, ref) {
190
191
  onClose: state.close,
191
192
  shouldCloseOnBlur: true
192
193
  }, contents);
193
- return(/*#__PURE__*/ $9mVUt$react.createElement($9mVUt$Fragment, null, /*#__PURE__*/ $9mVUt$react.createElement($9mVUt$PressResponder, {
194
+ return(/*#__PURE__*/ $9mVUt$react.createElement($9mVUt$Fragment, null, /*#__PURE__*/ $9mVUt$react.createElement($9mVUt$SlotProvider, {
195
+ slots: {
196
+ actionButton: {
197
+ holdAffordance: trigger === 'longPress'
198
+ }
199
+ }
200
+ }, /*#__PURE__*/ $9mVUt$react.createElement($9mVUt$PressResponder, {
194
201
  ...menuTriggerProps,
195
202
  ref: menuTriggerRef,
196
203
  isPressed: state.isOpen
197
- }, menuTrigger), /*#__PURE__*/ $9mVUt$react.createElement($b345e56d3ee58b7b$export$c7e742effb1c51e2.Provider, {
204
+ }, menuTrigger)), /*#__PURE__*/ $9mVUt$react.createElement($b345e56d3ee58b7b$export$c7e742effb1c51e2.Provider, {
198
205
  value: menuContext
199
206
  }, overlay)));
200
207
  }
@@ -581,7 +588,7 @@ function $e4907a377e7e3679$var$ActionMenu(props, ref) {
581
588
  })));
582
589
  }
583
590
  /**
584
- * Convenience component to display an ActionButton with a Menu.
591
+ * ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
585
592
  */ let $e4907a377e7e3679$export$ed57a210b9d13bb6 = /*#__PURE__*/ $9mVUt$react.forwardRef($e4907a377e7e3679$var$ActionMenu);
586
593
 
587
594
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEuBO,KAAK,CAAC,yCAAW,GAAG,YAAK,CAAC,aAAa,CAAmB,CAAC;AAAA,CAAC;SAEnD,yCAAc,GAAqB,CAAC;IAClD,MAAM,CAAC,iBAAU,CAAC,yCAAW;AAC/B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BD,GAAuC;AACvC,GAA+B;AAC/B,GAA8C;AAC9C,GAAyC;AACzC,GAAoC;AACpC,GAA6B;AAC7B,GAA+B;AAC/B,GAAyC;AACzC,GAAwC;AACxC,GAAmD;AACnD,GAAuC;AACvC,GAAwC;AACxC,GAA+B;AAC/B,GAAmC;AACnC,GAAoC;AACpC,GAA2C;AAC3C,GAAwC;AACxC,GAA4B;AAC5B,GAA4B;AAC5B,GAA4B;AAC5B,GAAgC;AAChC,GAAyB;AACzB,GAA2B;AAC3B,GAA6B;AAvB7B,uCAAuC,GAAG,CAA+B;AACzE,yCAA+B,GAAG,CAAuB;AACzD,yCAA8C,GAAG,CAAsC;AACvF,yCAAyC,GAAG,CAAiC;AAC7E,yCAAoC,GAAG,CAA4B;AACnE,yCAA6B,GAAG,CAAqB;AACrD,yCAA+B,G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CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;gDAC3B,mBAAY;QACX,GAAG,EAAE,GAAG;WACJ,KAAK;WACL,WAAW;gDACd,gCAAI,mDAEN,yCAAI;QACH,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;;AAGhC,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,GAAG,CAAC,yCAAW,iBAAG,YAAK,CAAC,UAAU,CAAC,gCAAU;","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/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/intl/*.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"],"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 * from './MenuTrigger';\nexport * from './Menu';\nexport * from './ActionMenu';\nexport {Item, Section} from '@react-stately/collections';\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, unwrapDOMRef, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton, useOverlayPosition} from '@react-aria/overlays';\nimport {DOMRef, DOMRefValue} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\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 menuPopoverRef = useRef<DOMRefValue<HTMLDivElement>>();\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 } = props;\n\n let [menuTrigger, menu] = React.Children.toArray(children);\n let state = useMenuTriggerState(props);\n\n let {menuTriggerProps, menuProps} = useMenuTrigger({}, 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 {overlayProps: positionProps, placement} = useOverlayPosition({\n targetRef: menuTriggerRef,\n overlayRef: unwrapDOMRef(menuPopoverRef),\n scrollRef: menuRef,\n placement: initialPlacement,\n shouldFlip: shouldFlip,\n isOpen: state.isOpen && !isMobile,\n onClose: state.close\n });\n\n let menuContext = {\n ...menuProps,\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 let contents = (\n <FocusScope restoreFocus contain={isMobile}>\n <DismissButton onDismiss={state.close} />\n {menu}\n <DismissButton onDismiss={state.close} />\n </FocusScope>\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 isOpen={state.isOpen} onClose={state.close}>\n {contents}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n isOpen={state.isOpen}\n UNSAFE_style={positionProps.style}\n ref={menuPopoverRef}\n placement={placement}\n hideArrow\n onClose={state.close}\n shouldCloseOnBlur>\n {contents}\n </Popover>\n );\n }\n\n return (\n <Fragment>\n <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>\n {menuTrigger}\n </PressResponder>\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 React, {HTMLAttributes, MutableRefObject, useContext} from 'react';\n\nexport interface MenuContextValue extends HTMLAttributes<HTMLElement> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLUListElement>\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\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 {MenuContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext} 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 state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\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 );\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 {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport {mergeProps} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {Key, 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 {useHover} from '@react-aria/interactions';\nimport {useMenuContext} 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\n let {\n onClose,\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 ref = useRef<HTMLLIElement>();\n let {menuItemProps, labelProps, descriptionProps, keyboardShortcutProps} = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n onClose,\n closeOnSelect,\n isVirtualized,\n onAction\n },\n state,\n ref\n );\n let {hoverProps, isHovered} = useHover({isDisabled});\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, hoverProps)}\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-hovered': isHovered\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'], ...descriptionProps},\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 </SlotProvider>\n </ClearSlots>\n </Grid>\n </li>\n </FocusRing>\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\nimport {classNames} from '@react-spectrum/utils';\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 {[...item.childNodes].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 from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useMessageFormatter} 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 formatMessage = useMessageFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = formatMessage('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 * Convenience component to display an ActionButton with a Menu.\n */\nlet _ActionMenu = React.forwardRef(ActionMenu);\nexport {_ActionMenu as ActionMenu};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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}\n","{\n \"moreActions\": \"Повече действия\"\n}\n","{\n \"moreActions\": \"Další akce\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\"\n}\n","{\n \"moreActions\": \"More actions\"\n}","{\n \"moreActions\": \"Más acciones\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\"\n}\n","{\n \"moreActions\": \"Autres actions\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\"\n}\n","{\n \"moreActions\": \"Altre azioni\"\n}\n","{\n \"moreActions\": \"その他のアクション\"\n}\n","{\n \"moreActions\": \"기타 작업\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\"\n}\n","{\n \"moreActions\": \"Citas darbības\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Meer handelingen\"\n}\n","{\n \"moreActions\": \"Więcej akcji\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\"\n}\n","{\n \"moreActions\": \"Več možnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\"\n}\n","{\n \"moreActions\": \"Більше дій\"\n}\n","{\n \"moreActions\": \"更多操作\"\n}\n","{\n \"moreActions\": \"更多動作\"\n}\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEuBO,KAAK,CAAC,yCAAW,GAAG,YAAK,CAAC,aAAa,CAAmB,CAAC;AAAA,CAAC;SAEnD,yCAAc,GAAqB,CAAC;IAClD,MAAM,CAAC,iBAAU,CAAC,yCAAW;AAC/B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BD,GAAuC;AACvC,GAA+B;AAC/B,GAA8C;AAC9C,GAAyC;AACzC,GAAoC;AACpC,GAA6B;AAC7B,GAA+B;AAC/B,GAAyC;AACzC,GAAwC;AACxC,GAAmD;AACnD,GAAuC;AACvC,GAAwC;AACxC,GAA+B;AAC/B,GAAmC;AACnC,GAAoC;AACpC,GAA2C;AAC3C,GAAwC;AACxC,GAA4B;AAC5B,GAA4B;AAC5B,GAA4B;AAC5B,GAAgC;AAChC,GAAyB;AACzB,GAA2B;AAC3B,GAA6B;AAvB7B,uCAAuC,GAAG,CAA+B;AACzE,yCAA+B,GAAG,CAAuB;AACzD,yCAA8C,GAAG,CAAsC;AACvF,yCAAyC,GAAG,CAAiC;AAC7E,yCAAoC,GAAG,CAA4B;AACnE,yCAA6B,GAAG,CAAqB;AACrD,yCAA+B,GAAG,CAAuB;AACzD,yCAAyC,GAAG,CAAiC;AAC7E,yCAAwC,GAAG,CAAgC;AAC3E,yCAAmD,GAAG,CAA2C;AACjG,yCAAuC,GAAG,CAA+B;AACzE,yCAAwC,GAAG,CAAgC;AAC3E,yCAA+B,GAAG,CAAuB;AACzD,yC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,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;gDAC3B,mBAAY;QACX,GAAG,EAAE,GAAG;WACJ,KAAK;WACL,WAAW;gDACd,gCAAI,mDAEN,yCAAI;QACH,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;;AAGhC,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,GAAG,CAAC,yCAAW,iBAAG,YAAK,CAAC,UAAU,CAAC,gCAAU;","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/MenuSection.tsx","packages/@react-spectrum/menu/src/ActionMenu.tsx","packages/@react-spectrum/menu/intl/*.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"],"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 * from './MenuTrigger';\nexport * from './Menu';\nexport * from './ActionMenu';\nexport {Item, Section} from '@react-stately/collections';\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, unwrapDOMRef, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';\nimport {DismissButton, useOverlayPosition} from '@react-aria/overlays';\nimport {DOMRef, DOMRefValue} from '@react-types/shared';\nimport {FocusScope} from '@react-aria/focus';\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 menuPopoverRef = useRef<DOMRefValue<HTMLDivElement>>();\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 {overlayProps: positionProps, placement} = useOverlayPosition({\n targetRef: menuTriggerRef,\n overlayRef: unwrapDOMRef(menuPopoverRef),\n scrollRef: menuRef,\n placement: initialPlacement,\n shouldFlip: shouldFlip,\n isOpen: state.isOpen && !isMobile,\n onClose: state.close\n });\n\n let menuContext = {\n ...menuProps,\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 let contents = (\n <FocusScope restoreFocus contain={isMobile}>\n <DismissButton onDismiss={state.close} />\n {menu}\n <DismissButton onDismiss={state.close} />\n </FocusScope>\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 isOpen={state.isOpen} onClose={state.close}>\n {contents}\n </Tray>\n );\n } else {\n overlay = (\n <Popover\n isOpen={state.isOpen}\n UNSAFE_style={positionProps.style}\n ref={menuPopoverRef}\n placement={placement}\n hideArrow\n onClose={state.close}\n shouldCloseOnBlur>\n {contents}\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 React, {HTMLAttributes, MutableRefObject, useContext} from 'react';\n\nexport interface MenuContextValue extends HTMLAttributes<HTMLElement> {\n onClose?: () => void,\n closeOnSelect?: boolean,\n shouldFocusWrap?: boolean,\n autoFocus?: boolean | FocusStrategy,\n ref?: MutableRefObject<HTMLUListElement>\n}\n\nexport const MenuContext = React.createContext<MenuContextValue>({});\n\nexport function useMenuContext(): MenuContextValue {\n return useContext(MenuContext);\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 {MenuContext} from './context';\nimport {MenuItem} from './MenuItem';\nimport {MenuSection} from './MenuSection';\nimport {mergeProps, useSyncRef} from '@react-aria/utils';\nimport React, {ReactElement, useContext} 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 state = useTreeState(completeProps);\n let {menuProps} = useMenu(completeProps, state, domRef);\n let {styleProps} = useStyleProps(completeProps);\n useSyncRef(contextProps, domRef);\n\n return (\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 );\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 {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport {mergeProps} from '@react-aria/utils';\nimport {Node} from '@react-types/shared';\nimport React, {Key, 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 {useHover} from '@react-aria/interactions';\nimport {useMenuContext} 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\n let {\n onClose,\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 ref = useRef<HTMLLIElement>();\n let {menuItemProps, labelProps, descriptionProps, keyboardShortcutProps} = useMenuItem(\n {\n isSelected,\n isDisabled,\n 'aria-label': item['aria-label'],\n key,\n onClose,\n closeOnSelect,\n isVirtualized,\n onAction\n },\n state,\n ref\n );\n let {hoverProps, isHovered} = useHover({isDisabled});\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, hoverProps)}\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-hovered': isHovered\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'], ...descriptionProps},\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 </SlotProvider>\n </ClearSlots>\n </Grid>\n </li>\n </FocusRing>\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\nimport {classNames} from '@react-spectrum/utils';\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 {[...item.childNodes].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 from 'react';\nimport {SpectrumActionMenuProps} from '@react-types/menu';\nimport {useMessageFormatter} 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 formatMessage = useMessageFormatter(intlMessages);\n let buttonProps = filterDOMProps(props, {labelable: true});\n if (buttonProps['aria-label'] === undefined) {\n buttonProps['aria-label'] = formatMessage('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 */\nlet _ActionMenu = React.forwardRef(ActionMenu);\nexport {_ActionMenu as ActionMenu};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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}\n","{\n \"moreActions\": \"Повече действия\"\n}\n","{\n \"moreActions\": \"Další akce\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Mehr Aktionen\"\n}\n","{\n \"moreActions\": \"Περισσότερες ενέργειες\"\n}\n","{\n \"moreActions\": \"More actions\"\n}","{\n \"moreActions\": \"Más acciones\"\n}\n","{\n \"moreActions\": \"Veel toiminguid\"\n}\n","{\n \"moreActions\": \"Lisää toimintoja\"\n}\n","{\n \"moreActions\": \"Autres actions\"\n}\n","{\n \"moreActions\": \"פעולות נוספות\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"További lehetőségek\"\n}\n","{\n \"moreActions\": \"Altre azioni\"\n}\n","{\n \"moreActions\": \"その他のアクション\"\n}\n","{\n \"moreActions\": \"기타 작업\"\n}\n","{\n \"moreActions\": \"Daugiau veiksmų\"\n}\n","{\n \"moreActions\": \"Citas darbības\"\n}\n","{\n \"moreActions\": \"Flere handlinger\"\n}\n","{\n \"moreActions\": \"Meer handelingen\"\n}\n","{\n \"moreActions\": \"Więcej akcji\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mais ações\"\n}\n","{\n \"moreActions\": \"Mai multe acțiuni\"\n}\n","{\n \"moreActions\": \"Дополнительные действия\"\n}\n","{\n \"moreActions\": \"Ďalšie akcie\"\n}\n","{\n \"moreActions\": \"Več možnosti\"\n}\n","{\n \"moreActions\": \"Dodatne radnje\"\n}\n","{\n \"moreActions\": \"Fler åtgärder\"\n}\n","{\n \"moreActions\": \"Daha fazla eylem\"\n}\n","{\n \"moreActions\": \"Більше дій\"\n}\n","{\n \"moreActions\": \"更多操作\"\n}\n","{\n \"moreActions\": \"更多動作\"\n}\n"],"names":[],"version":3,"file":"module.js.map"}
package/dist/types.d.ts CHANGED
@@ -13,7 +13,7 @@ export const Menu: <T>(props: SpectrumMenuProps<T> & {
13
13
  ref?: DOMRef<HTMLUListElement>;
14
14
  }) => ReactElement;
15
15
  /**
16
- * Convenience component to display an ActionButton with a Menu.
16
+ * ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
17
17
  */
18
18
  export let ActionMenu: React.ForwardRefExoticComponent<SpectrumActionMenuProps<object> & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
19
19
  export { Item, Section } from '@react-stately/collections';
@@ -1 +1 @@
1
- {"mappings":";;;AC8HA;;;GAGG;AACH,OAAA,IAAI,sHAAsC,CAAC;AGrD3C;;GAEG;AAGH,OAAA,MAAM;UAA2E,OAAO,gBAAgB,CAAC;MAAM,YAAY,CAAC;AC1B5H;;GAEG;AACH,OAAA,IAAI,yLAA0C,CAAC;AC1C/C,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,4BAA4B,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/index.ts","packages/@react-spectrum/menu/src/index.ts"],"sourcesContent":[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 * from './MenuTrigger';\nexport * from './Menu';\nexport * from './ActionMenu';\nexport {Item, Section} from '@react-stately/collections';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;ACiIA;;;GAGG;AACH,OAAA,IAAI,sHAAsC,CAAC;AGxD3C;;GAEG;AAGH,OAAA,MAAM;UAA2E,OAAO,gBAAgB,CAAC;MAAM,YAAY,CAAC;AC1B5H;;GAEG;AACH,OAAA,IAAI,yLAA0C,CAAC;AC1C/C,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,4BAA4B,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/index.ts","packages/@react-spectrum/menu/src/index.ts"],"sourcesContent":[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 * from './MenuTrigger';\nexport * from './Menu';\nexport * from './ActionMenu';\nexport {Item, Section} from '@react-stately/collections';\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.5.2-nightly.3070+3366ae36b",
3
+ "version": "3.5.2-nightly.3085+dfe72ee07",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,34 +32,34 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/focus": "3.0.0-nightly.1379+3366ae36b",
36
- "@react-aria/i18n": "3.0.0-nightly.1379+3366ae36b",
37
- "@react-aria/interactions": "3.0.0-nightly.1379+3366ae36b",
38
- "@react-aria/menu": "3.3.1-nightly.3070+3366ae36b",
39
- "@react-aria/overlays": "3.0.0-nightly.1379+3366ae36b",
40
- "@react-aria/selection": "3.0.0-nightly.1379+3366ae36b",
41
- "@react-aria/separator": "3.0.0-nightly.1379+3366ae36b",
42
- "@react-aria/utils": "3.0.0-nightly.1379+3366ae36b",
43
- "@react-aria/virtualizer": "3.3.6-nightly.3070+3366ae36b",
44
- "@react-spectrum/button": "3.0.0-nightly.1379+3366ae36b",
45
- "@react-spectrum/checkbox": "3.0.0-nightly.1379+3366ae36b",
46
- "@react-spectrum/divider": "3.0.0-nightly.1379+3366ae36b",
47
- "@react-spectrum/layout": "3.2.2-nightly.3070+3366ae36b",
48
- "@react-spectrum/overlays": "3.0.0-nightly.1379+3366ae36b",
49
- "@react-spectrum/text": "3.1.4-nightly.3070+3366ae36b",
50
- "@react-spectrum/utils": "3.0.0-nightly.1379+3366ae36b",
51
- "@react-stately/collections": "3.0.0-nightly.1379+3366ae36b",
52
- "@react-stately/menu": "3.2.4-nightly.3070+3366ae36b",
53
- "@react-stately/tree": "3.0.0-nightly.1379+3366ae36b",
54
- "@react-stately/utils": "3.0.0-nightly.1379+3366ae36b",
55
- "@react-types/menu": "3.4.2-nightly.3070+3366ae36b",
56
- "@react-types/overlays": "3.5.2-nightly.3070+3366ae36b",
57
- "@react-types/shared": "3.0.0-nightly.1379+3366ae36b",
58
- "@spectrum-icons/ui": "3.0.0-nightly.1379+3366ae36b",
59
- "@spectrum-icons/workflow": "3.0.0-nightly.1379+3366ae36b"
35
+ "@react-aria/focus": "3.0.0-nightly.1394+dfe72ee07",
36
+ "@react-aria/i18n": "3.0.0-nightly.1394+dfe72ee07",
37
+ "@react-aria/interactions": "3.0.0-nightly.1394+dfe72ee07",
38
+ "@react-aria/menu": "3.3.1-nightly.3085+dfe72ee07",
39
+ "@react-aria/overlays": "3.0.0-nightly.1394+dfe72ee07",
40
+ "@react-aria/selection": "3.0.0-nightly.1394+dfe72ee07",
41
+ "@react-aria/separator": "3.0.0-nightly.1394+dfe72ee07",
42
+ "@react-aria/utils": "3.0.0-nightly.1394+dfe72ee07",
43
+ "@react-aria/virtualizer": "3.3.6-nightly.3085+dfe72ee07",
44
+ "@react-spectrum/button": "3.0.0-nightly.1394+dfe72ee07",
45
+ "@react-spectrum/checkbox": "3.0.0-nightly.1394+dfe72ee07",
46
+ "@react-spectrum/divider": "3.0.0-nightly.1394+dfe72ee07",
47
+ "@react-spectrum/layout": "3.2.2-nightly.3085+dfe72ee07",
48
+ "@react-spectrum/overlays": "3.0.0-nightly.1394+dfe72ee07",
49
+ "@react-spectrum/text": "3.1.4-nightly.3085+dfe72ee07",
50
+ "@react-spectrum/utils": "3.0.0-nightly.1394+dfe72ee07",
51
+ "@react-stately/collections": "3.0.0-nightly.1394+dfe72ee07",
52
+ "@react-stately/menu": "3.2.4-nightly.3085+dfe72ee07",
53
+ "@react-stately/tree": "3.0.0-nightly.1394+dfe72ee07",
54
+ "@react-stately/utils": "3.0.0-nightly.1394+dfe72ee07",
55
+ "@react-types/menu": "3.4.2-nightly.3085+dfe72ee07",
56
+ "@react-types/overlays": "3.5.2-nightly.3085+dfe72ee07",
57
+ "@react-types/shared": "3.0.0-nightly.1394+dfe72ee07",
58
+ "@spectrum-icons/ui": "3.0.0-nightly.1394+dfe72ee07",
59
+ "@spectrum-icons/workflow": "3.0.0-nightly.1394+dfe72ee07"
60
60
  },
61
61
  "devDependencies": {
62
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1379+3366ae36b"
62
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1394+dfe72ee07"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@react-spectrum/provider": "^3.0.0",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "3366ae36b3ddefbf67bfd084caaf58bb89ed345b"
72
+ "gitHead": "dfe72ee076f7ca27728d0b6b4c1ef86e11191ece"
73
73
  }
@@ -55,7 +55,7 @@ function ActionMenu<T extends object>(props: SpectrumActionMenuProps<T>, ref: Fo
55
55
  }
56
56
 
57
57
  /**
58
- * Convenience component to display an ActionButton with a Menu.
58
+ * ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
59
59
  */
60
60
  let _ActionMenu = React.forwardRef(ActionMenu);
61
61
  export {_ActionMenu as ActionMenu};
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {classNames, unwrapDOMRef, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';
13
+ import {classNames, SlotProvider, unwrapDOMRef, useDOMRef, useIsMobileDevice} from '@react-spectrum/utils';
14
14
  import {DismissButton, useOverlayPosition} from '@react-aria/overlays';
15
15
  import {DOMRef, DOMRefValue} from '@react-types/shared';
16
16
  import {FocusScope} from '@react-aria/focus';
@@ -35,13 +35,14 @@ function MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>)
35
35
  align = 'start',
36
36
  shouldFlip = true,
37
37
  direction = 'bottom',
38
- closeOnSelect
38
+ closeOnSelect,
39
+ trigger = 'press'
39
40
  } = props;
40
41
 
41
42
  let [menuTrigger, menu] = React.Children.toArray(children);
42
43
  let state = useMenuTriggerState(props);
43
44
 
44
- let {menuTriggerProps, menuProps} = useMenuTrigger({}, state, menuTriggerRef);
45
+ let {menuTriggerProps, menuProps} = useMenuTrigger({trigger}, state, menuTriggerRef);
45
46
 
46
47
  let initialPlacement: Placement;
47
48
  switch (direction) {
@@ -114,9 +115,11 @@ function MenuTrigger(props: SpectrumMenuTriggerProps, ref: DOMRef<HTMLElement>)
114
115
 
115
116
  return (
116
117
  <Fragment>
117
- <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>
118
- {menuTrigger}
119
- </PressResponder>
118
+ <SlotProvider slots={{actionButton: {holdAffordance: trigger === 'longPress'}}}>
119
+ <PressResponder {...menuTriggerProps} ref={menuTriggerRef} isPressed={state.isOpen}>
120
+ {menuTrigger}
121
+ </PressResponder>
122
+ </SlotProvider>
120
123
  <MenuContext.Provider value={menuContext}>
121
124
  {overlay}
122
125
  </MenuContext.Provider>