@fluentui/react-menu 9.0.0-rc.1 → 9.0.0-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +527 -1
- package/CHANGELOG.md +262 -127
- package/dist/{react-menu.d.ts → index.d.ts} +164 -105
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/Menu.js.map +1 -1
- package/lib/MenuDivider.js.map +1 -1
- package/lib/MenuGroup.js.map +1 -1
- package/lib/MenuGroupHeader.js.map +1 -1
- package/lib/MenuItem.js.map +1 -1
- package/lib/MenuItemCheckbox.js.map +1 -1
- package/lib/MenuItemRadio.js.map +1 -1
- package/lib/MenuList.js.map +1 -1
- package/lib/MenuPopover.js.map +1 -1
- package/lib/MenuSplitGroup.js.map +1 -1
- package/lib/MenuTrigger.js.map +1 -1
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/Menu.types.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/Menu/renderMenu.js.map +1 -1
- package/lib/components/Menu/useMenu.js +1 -1
- package/lib/components/Menu/useMenu.js.map +1 -1
- package/lib/components/Menu/useMenuContextValues.js +20 -20
- package/lib/components/Menu/useMenuContextValues.js.map +1 -1
- package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib/components/MenuDivider/index.js.map +1 -1
- package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/useMenuDividerStyles.js +8 -1
- package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.types.js.map +1 -1
- package/lib/components/MenuGroup/index.js.map +1 -1
- package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroupStyles.js +8 -1
- package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
- package/lib/components/MenuGroupHeader/index.js.map +1 -1
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.types.js.map +1 -1
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
- package/lib/components/MenuItem/useMenuItem.js +4 -1
- package/lib/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.js +55 -15
- package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
- package/lib/components/MenuItemCheckbox/index.js.map +1 -1
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +29 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
- package/lib/components/MenuItemRadio/index.js.map +1 -1
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +29 -1
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
- package/lib/components/MenuList/MenuList.js.map +1 -1
- package/lib/components/MenuList/MenuList.types.js.map +1 -1
- package/lib/components/MenuList/index.js +1 -0
- package/lib/components/MenuList/index.js.map +1 -1
- package/lib/components/MenuList/renderMenuList.js.map +1 -1
- package/lib/components/MenuList/useMenuList.js +2 -2
- package/lib/components/MenuList/useMenuList.js.map +1 -1
- package/lib/components/MenuList/useMenuListContextValues.js +8 -8
- package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
- package/lib/components/MenuList/useMenuListStyles.js +8 -1
- package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.types.js.map +1 -1
- package/lib/components/MenuPopover/index.js.map +1 -1
- package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopoverStyles.js +8 -1
- package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
- package/lib/components/MenuSplitGroup/index.js.map +1 -1
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +9 -2
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
- package/lib/components/MenuTrigger/index.js.map +1 -1
- package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
- package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/useMenuTrigger.js +1 -0
- package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/contexts/menuContext.js.map +1 -1
- package/lib/contexts/menuGroupContext.js.map +1 -1
- package/lib/contexts/menuListContext.js.map +1 -1
- package/lib/contexts/menuTriggerContext.js +1 -1
- package/lib/contexts/menuTriggerContext.js.map +1 -1
- package/lib/index.js +25 -16
- package/lib/index.js.map +1 -1
- package/lib/selectable/index.js.map +1 -1
- package/lib/selectable/types.js.map +1 -1
- package/lib/selectable/useCheckmarkStyles.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/useIsSubmenu.js.map +1 -1
- package/lib/utils/useOnMenuEnter.js.map +1 -1
- package/lib-commonjs/Menu.js.map +1 -1
- package/lib-commonjs/MenuDivider.js.map +1 -1
- package/lib-commonjs/MenuGroup.js.map +1 -1
- package/lib-commonjs/MenuGroupHeader.js.map +1 -1
- package/lib-commonjs/MenuItem.js.map +1 -1
- package/lib-commonjs/MenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/MenuItemRadio.js.map +1 -1
- package/lib-commonjs/MenuList.js.map +1 -1
- package/lib-commonjs/MenuPopover.js.map +1 -1
- package/lib-commonjs/MenuSplitGroup.js.map +1 -1
- package/lib-commonjs/MenuTrigger.js.map +1 -1
- package/lib-commonjs/components/Menu/Menu.js.map +1 -1
- package/lib-commonjs/components/Menu/Menu.types.js.map +1 -1
- package/lib-commonjs/components/Menu/index.js.map +1 -1
- package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
- package/lib-commonjs/components/Menu/useMenu.js +1 -1
- package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
- package/lib-commonjs/components/Menu/useMenuContextValues.js +20 -20
- package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/index.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +9 -2
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.types.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +9 -2
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/index.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +9 -2
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.types.js.map +1 -1
- package/lib-commonjs/components/MenuItem/index.js.map +1 -1
- package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItem.js +4 -1
- package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +57 -16
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +30 -2
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +30 -2
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.types.js.map +1 -1
- package/lib-commonjs/components/MenuList/index.js +2 -0
- package/lib-commonjs/components/MenuList/index.js.map +1 -1
- package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuList.js +2 -2
- package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListContextValues.js +8 -8
- package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListStyles.js +9 -2
- package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/index.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +9 -2
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +9 -2
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/index.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +1 -1
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +1 -0
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
- package/lib-commonjs/components/index.js.map +1 -1
- package/lib-commonjs/contexts/menuContext.js.map +1 -1
- package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
- package/lib-commonjs/contexts/menuListContext.js.map +1 -1
- package/lib-commonjs/contexts/menuTriggerContext.js +1 -1
- package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
- package/lib-commonjs/index.js +486 -17
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/selectable/index.js.map +1 -1
- package/lib-commonjs/selectable/types.js.map +1 -1
- package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
- package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
- package/package.json +23 -25
- package/lib/Menu.d.ts +0 -1
- package/lib/MenuDivider.d.ts +0 -1
- package/lib/MenuGroup.d.ts +0 -1
- package/lib/MenuGroupHeader.d.ts +0 -1
- package/lib/MenuItem.d.ts +0 -1
- package/lib/MenuItemCheckbox.d.ts +0 -1
- package/lib/MenuItemRadio.d.ts +0 -1
- package/lib/MenuList.d.ts +0 -1
- package/lib/MenuPopover.d.ts +0 -1
- package/lib/MenuSplitGroup.d.ts +0 -1
- package/lib/MenuTrigger.d.ts +0 -1
- package/lib/components/Menu/Menu.d.ts +0 -6
- package/lib/components/Menu/Menu.types.d.ts +0 -113
- package/lib/components/Menu/index.d.ts +0 -5
- package/lib/components/Menu/renderMenu.d.ts +0 -5
- package/lib/components/Menu/useMenu.d.ts +0 -10
- package/lib/components/Menu/useMenuContextValues.d.ts +0 -2
- package/lib/components/MenuDivider/MenuDivider.d.ts +0 -6
- package/lib/components/MenuDivider/MenuDivider.types.d.ts +0 -6
- package/lib/components/MenuDivider/index.d.ts +0 -5
- package/lib/components/MenuDivider/renderMenuDivider.d.ts +0 -6
- package/lib/components/MenuDivider/useMenuDivider.d.ts +0 -6
- package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
- package/lib/components/MenuGroup/MenuGroup.d.ts +0 -6
- package/lib/components/MenuGroup/MenuGroup.types.d.ts +0 -15
- package/lib/components/MenuGroup/index.d.ts +0 -6
- package/lib/components/MenuGroup/renderMenuGroup.d.ts +0 -6
- package/lib/components/MenuGroup/useMenuGroup.d.ts +0 -6
- package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
- package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
- package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
- package/lib/components/MenuGroupHeader/index.d.ts +0 -5
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
- package/lib/components/MenuItem/MenuItem.d.ts +0 -6
- package/lib/components/MenuItem/MenuItem.types.d.ts +0 -43
- package/lib/components/MenuItem/index.d.ts +0 -5
- package/lib/components/MenuItem/renderMenuItem.d.ts +0 -5
- package/lib/components/MenuItem/useCharacterSearch.d.ts +0 -3
- package/lib/components/MenuItem/useMenuItem.d.ts +0 -6
- package/lib/components/MenuItem/useMenuItemStyles.d.ts +0 -4
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
- package/lib/components/MenuItemCheckbox/index.d.ts +0 -5
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
- package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
- package/lib/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
- package/lib/components/MenuItemRadio/index.d.ts +0 -5
- package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
- package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
- package/lib/components/MenuList/MenuList.d.ts +0 -6
- package/lib/components/MenuList/MenuList.types.d.ts +0 -55
- package/lib/components/MenuList/index.d.ts +0 -6
- package/lib/components/MenuList/renderMenuList.d.ts +0 -5
- package/lib/components/MenuList/useMenuList.d.ts +0 -6
- package/lib/components/MenuList/useMenuListContextValues.d.ts +0 -2
- package/lib/components/MenuList/useMenuListStyles.d.ts +0 -6
- package/lib/components/MenuPopover/MenuPopover.d.ts +0 -6
- package/lib/components/MenuPopover/MenuPopover.types.d.ts +0 -18
- package/lib/components/MenuPopover/index.d.ts +0 -5
- package/lib/components/MenuPopover/renderMenuPopover.d.ts +0 -5
- package/lib/components/MenuPopover/useMenuPopover.d.ts +0 -12
- package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
- package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
- package/lib/components/MenuSplitGroup/index.d.ts +0 -5
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
- package/lib/components/MenuTrigger/MenuTrigger.d.ts +0 -8
- package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
- package/lib/components/MenuTrigger/index.d.ts +0 -4
- package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
- package/lib/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
- package/lib/components/index.d.ts +0 -2
- package/lib/contexts/menuContext.d.ts +0 -16
- package/lib/contexts/menuGroupContext.d.ts +0 -13
- package/lib/contexts/menuListContext.d.ts +0 -15
- package/lib/contexts/menuTriggerContext.d.ts +0 -3
- package/lib/index.d.ts +0 -16
- package/lib/selectable/index.d.ts +0 -2
- package/lib/selectable/types.d.ts +0 -34
- package/lib/selectable/useCheckmarkStyles.d.ts +0 -8
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/useIsSubmenu.d.ts +0 -9
- package/lib/utils/useOnMenuEnter.d.ts +0 -23
- package/lib-commonjs/Menu.d.ts +0 -1
- package/lib-commonjs/MenuDivider.d.ts +0 -1
- package/lib-commonjs/MenuGroup.d.ts +0 -1
- package/lib-commonjs/MenuGroupHeader.d.ts +0 -1
- package/lib-commonjs/MenuItem.d.ts +0 -1
- package/lib-commonjs/MenuItemCheckbox.d.ts +0 -1
- package/lib-commonjs/MenuItemRadio.d.ts +0 -1
- package/lib-commonjs/MenuList.d.ts +0 -1
- package/lib-commonjs/MenuPopover.d.ts +0 -1
- package/lib-commonjs/MenuSplitGroup.d.ts +0 -1
- package/lib-commonjs/MenuTrigger.d.ts +0 -1
- package/lib-commonjs/components/Menu/Menu.d.ts +0 -6
- package/lib-commonjs/components/Menu/Menu.types.d.ts +0 -113
- package/lib-commonjs/components/Menu/index.d.ts +0 -5
- package/lib-commonjs/components/Menu/renderMenu.d.ts +0 -5
- package/lib-commonjs/components/Menu/useMenu.d.ts +0 -10
- package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +0 -2
- package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/index.d.ts +0 -5
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
- package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +0 -15
- package/lib-commonjs/components/MenuGroup/index.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/index.d.ts +0 -5
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
- package/lib-commonjs/components/MenuItem/MenuItem.d.ts +0 -6
- package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +0 -43
- package/lib-commonjs/components/MenuItem/index.d.ts +0 -5
- package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +0 -5
- package/lib-commonjs/components/MenuItem/useCharacterSearch.d.ts +0 -3
- package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +0 -6
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +0 -4
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
- package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +0 -5
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
- package/lib-commonjs/components/MenuItemRadio/index.d.ts +0 -5
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
- package/lib-commonjs/components/MenuList/MenuList.d.ts +0 -6
- package/lib-commonjs/components/MenuList/MenuList.types.d.ts +0 -55
- package/lib-commonjs/components/MenuList/index.d.ts +0 -6
- package/lib-commonjs/components/MenuList/renderMenuList.d.ts +0 -5
- package/lib-commonjs/components/MenuList/useMenuList.d.ts +0 -6
- package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +0 -2
- package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +0 -6
- package/lib-commonjs/components/MenuPopover/MenuPopover.d.ts +0 -6
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +0 -18
- package/lib-commonjs/components/MenuPopover/index.d.ts +0 -5
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +0 -5
- package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +0 -12
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
- package/lib-commonjs/components/MenuSplitGroup/index.d.ts +0 -5
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +0 -8
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
- package/lib-commonjs/components/MenuTrigger/index.d.ts +0 -4
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
- package/lib-commonjs/components/index.d.ts +0 -2
- package/lib-commonjs/contexts/menuContext.d.ts +0 -16
- package/lib-commonjs/contexts/menuGroupContext.d.ts +0 -13
- package/lib-commonjs/contexts/menuListContext.d.ts +0 -15
- package/lib-commonjs/contexts/menuTriggerContext.d.ts +0 -3
- package/lib-commonjs/index.d.ts +0 -16
- package/lib-commonjs/selectable/index.d.ts +0 -2
- package/lib-commonjs/selectable/types.d.ts +0 -34
- package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +0 -8
- package/lib-commonjs/utils/index.d.ts +0 -1
- package/lib-commonjs/utils/useIsSubmenu.d.ts +0 -9
- package/lib-commonjs/utils/useOnMenuEnter.d.ts +0 -23
package/lib-commonjs/index.js
CHANGED
@@ -3,38 +3,507 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.useMenuItemRadioStyles_unstable = exports.renderMenuItemRadio_unstable = exports.menuItemRadioClassNames = exports.menuItemRadioClassName = exports.MenuItemRadio = exports.useMenuItemCheckbox_unstable = exports.useMenuItemCheckboxStyles_unstable = exports.renderMenuItemCheckbox_unstable = exports.menuItemCheckboxClassNames = exports.menuItemCheckboxClassName = exports.MenuItemCheckbox = exports.useMenuItem_unstable = exports.useMenuItemStyles_unstable = exports.renderMenuItem_unstable = exports.menuItemClassNames = exports.menuItemClassName = exports.MenuItem = exports.useMenuGroupHeader_unstable = exports.useMenuGroupHeaderStyles_unstable = exports.renderMenuGroupHeader_unstable = exports.menuGroupHeaderClassNames = exports.menuGroupHeaderClassName = exports.MenuGroupHeader = exports.useMenuGroup_unstable = exports.useMenuGroupStyles_unstable = exports.useMenuGroupContextValues_unstable = exports.renderMenuGroup_unstable = exports.menuGroupClassNames = exports.menuGroupClassName = exports.MenuGroup = exports.useMenuDivider_unstable = exports.useMenuDividerStyles_unstable = exports.renderMenuDivider_unstable = exports.menuDividerClassNames = exports.menuDividerClassName = exports.MenuDivider = exports.useMenu_unstable = exports.useMenuContextValues_unstable = exports.renderMenu_unstable = exports.Menu = exports.useMenuListContext_unstable = exports.MenuListProvider = exports.MenuListContext = exports.useMenuGroupContext_unstable = exports.MenuGroupContextProvider = exports.useMenuTriggerContext_unstable = exports.MenuTriggerContextProvider = exports.useMenuContext_unstable = exports.MenuProvider = exports.MenuContext = void 0;
|
7
|
+
exports.useCheckmarkStyles_unstable = exports.useMenuTrigger_unstable = exports.renderMenuTrigger_unstable = exports.MenuTrigger = exports.useMenuSplitGroup_unstable = exports.useMenuSplitGroupStyles_unstable = exports.renderMenuSplitGroup_unstable = exports.menuSplitGroupClassNames = exports.menuSplitGroupClassName = exports.MenuSplitGroup = exports.useMenuPopover_unstable = exports.useMenuPopoverStyles_unstable = exports.renderMenuPopover_unstable = exports.menuPopoverClassNames = exports.menuPopoverClassName = exports.MenuPopover = exports.useMenuList_unstable = exports.useMenuListStyles_unstable = exports.useMenuListContextValues_unstable = exports.renderMenuList_unstable = exports.menuListClassNames = exports.menuListClassName = exports.MenuList = exports.useMenuItemRadio_unstable = void 0;
|
6
8
|
|
7
|
-
|
9
|
+
var menuContext_1 = /*#__PURE__*/require("./contexts/menuContext");
|
8
10
|
|
9
|
-
|
11
|
+
Object.defineProperty(exports, "MenuContext", {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () {
|
14
|
+
return menuContext_1.MenuContext;
|
15
|
+
}
|
16
|
+
});
|
17
|
+
Object.defineProperty(exports, "MenuProvider", {
|
18
|
+
enumerable: true,
|
19
|
+
get: function () {
|
20
|
+
return menuContext_1.MenuProvider;
|
21
|
+
}
|
22
|
+
});
|
23
|
+
Object.defineProperty(exports, "useMenuContext_unstable", {
|
24
|
+
enumerable: true,
|
25
|
+
get: function () {
|
26
|
+
return menuContext_1.useMenuContext_unstable;
|
27
|
+
}
|
28
|
+
});
|
10
29
|
|
11
|
-
|
30
|
+
var menuTriggerContext_1 = /*#__PURE__*/require("./contexts/menuTriggerContext");
|
12
31
|
|
13
|
-
|
32
|
+
Object.defineProperty(exports, "MenuTriggerContextProvider", {
|
33
|
+
enumerable: true,
|
34
|
+
get: function () {
|
35
|
+
return menuTriggerContext_1.MenuTriggerContextProvider;
|
36
|
+
}
|
37
|
+
});
|
38
|
+
Object.defineProperty(exports, "useMenuTriggerContext_unstable", {
|
39
|
+
enumerable: true,
|
40
|
+
get: function () {
|
41
|
+
return menuTriggerContext_1.useMenuTriggerContext_unstable;
|
42
|
+
}
|
43
|
+
});
|
14
44
|
|
15
|
-
|
45
|
+
var menuGroupContext_1 = /*#__PURE__*/require("./contexts/menuGroupContext");
|
16
46
|
|
17
|
-
|
47
|
+
Object.defineProperty(exports, "MenuGroupContextProvider", {
|
48
|
+
enumerable: true,
|
49
|
+
get: function () {
|
50
|
+
return menuGroupContext_1.MenuGroupContextProvider;
|
51
|
+
}
|
52
|
+
});
|
53
|
+
Object.defineProperty(exports, "useMenuGroupContext_unstable", {
|
54
|
+
enumerable: true,
|
55
|
+
get: function () {
|
56
|
+
return menuGroupContext_1.useMenuGroupContext_unstable;
|
57
|
+
}
|
58
|
+
});
|
18
59
|
|
19
|
-
|
60
|
+
var menuListContext_1 = /*#__PURE__*/require("./contexts/menuListContext");
|
20
61
|
|
21
|
-
|
62
|
+
Object.defineProperty(exports, "MenuListContext", {
|
63
|
+
enumerable: true,
|
64
|
+
get: function () {
|
65
|
+
return menuListContext_1.MenuListContext;
|
66
|
+
}
|
67
|
+
});
|
68
|
+
Object.defineProperty(exports, "MenuListProvider", {
|
69
|
+
enumerable: true,
|
70
|
+
get: function () {
|
71
|
+
return menuListContext_1.MenuListProvider;
|
72
|
+
}
|
73
|
+
});
|
74
|
+
Object.defineProperty(exports, "useMenuListContext_unstable", {
|
75
|
+
enumerable: true,
|
76
|
+
get: function () {
|
77
|
+
return menuListContext_1.useMenuListContext_unstable;
|
78
|
+
}
|
79
|
+
});
|
22
80
|
|
23
|
-
|
81
|
+
var Menu_1 = /*#__PURE__*/require("./Menu");
|
24
82
|
|
25
|
-
|
83
|
+
Object.defineProperty(exports, "Menu", {
|
84
|
+
enumerable: true,
|
85
|
+
get: function () {
|
86
|
+
return Menu_1.Menu;
|
87
|
+
}
|
88
|
+
});
|
89
|
+
Object.defineProperty(exports, "renderMenu_unstable", {
|
90
|
+
enumerable: true,
|
91
|
+
get: function () {
|
92
|
+
return Menu_1.renderMenu_unstable;
|
93
|
+
}
|
94
|
+
});
|
95
|
+
Object.defineProperty(exports, "useMenuContextValues_unstable", {
|
96
|
+
enumerable: true,
|
97
|
+
get: function () {
|
98
|
+
return Menu_1.useMenuContextValues_unstable;
|
99
|
+
}
|
100
|
+
});
|
101
|
+
Object.defineProperty(exports, "useMenu_unstable", {
|
102
|
+
enumerable: true,
|
103
|
+
get: function () {
|
104
|
+
return Menu_1.useMenu_unstable;
|
105
|
+
}
|
106
|
+
});
|
26
107
|
|
27
|
-
|
108
|
+
var MenuDivider_1 = /*#__PURE__*/require("./MenuDivider");
|
28
109
|
|
29
|
-
|
110
|
+
Object.defineProperty(exports, "MenuDivider", {
|
111
|
+
enumerable: true,
|
112
|
+
get: function () {
|
113
|
+
return MenuDivider_1.MenuDivider;
|
114
|
+
}
|
115
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
30
116
|
|
31
|
-
|
117
|
+
Object.defineProperty(exports, "menuDividerClassName", {
|
118
|
+
enumerable: true,
|
119
|
+
get: function () {
|
120
|
+
return MenuDivider_1.menuDividerClassName;
|
121
|
+
}
|
122
|
+
});
|
123
|
+
Object.defineProperty(exports, "menuDividerClassNames", {
|
124
|
+
enumerable: true,
|
125
|
+
get: function () {
|
126
|
+
return MenuDivider_1.menuDividerClassNames;
|
127
|
+
}
|
128
|
+
});
|
129
|
+
Object.defineProperty(exports, "renderMenuDivider_unstable", {
|
130
|
+
enumerable: true,
|
131
|
+
get: function () {
|
132
|
+
return MenuDivider_1.renderMenuDivider_unstable;
|
133
|
+
}
|
134
|
+
});
|
135
|
+
Object.defineProperty(exports, "useMenuDividerStyles_unstable", {
|
136
|
+
enumerable: true,
|
137
|
+
get: function () {
|
138
|
+
return MenuDivider_1.useMenuDividerStyles_unstable;
|
139
|
+
}
|
140
|
+
});
|
141
|
+
Object.defineProperty(exports, "useMenuDivider_unstable", {
|
142
|
+
enumerable: true,
|
143
|
+
get: function () {
|
144
|
+
return MenuDivider_1.useMenuDivider_unstable;
|
145
|
+
}
|
146
|
+
});
|
32
147
|
|
33
|
-
|
148
|
+
var MenuGroup_1 = /*#__PURE__*/require("./MenuGroup");
|
34
149
|
|
35
|
-
|
150
|
+
Object.defineProperty(exports, "MenuGroup", {
|
151
|
+
enumerable: true,
|
152
|
+
get: function () {
|
153
|
+
return MenuGroup_1.MenuGroup;
|
154
|
+
}
|
155
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
36
156
|
|
37
|
-
|
157
|
+
Object.defineProperty(exports, "menuGroupClassName", {
|
158
|
+
enumerable: true,
|
159
|
+
get: function () {
|
160
|
+
return MenuGroup_1.menuGroupClassName;
|
161
|
+
}
|
162
|
+
});
|
163
|
+
Object.defineProperty(exports, "menuGroupClassNames", {
|
164
|
+
enumerable: true,
|
165
|
+
get: function () {
|
166
|
+
return MenuGroup_1.menuGroupClassNames;
|
167
|
+
}
|
168
|
+
});
|
169
|
+
Object.defineProperty(exports, "renderMenuGroup_unstable", {
|
170
|
+
enumerable: true,
|
171
|
+
get: function () {
|
172
|
+
return MenuGroup_1.renderMenuGroup_unstable;
|
173
|
+
}
|
174
|
+
});
|
175
|
+
Object.defineProperty(exports, "useMenuGroupContextValues_unstable", {
|
176
|
+
enumerable: true,
|
177
|
+
get: function () {
|
178
|
+
return MenuGroup_1.useMenuGroupContextValues_unstable;
|
179
|
+
}
|
180
|
+
});
|
181
|
+
Object.defineProperty(exports, "useMenuGroupStyles_unstable", {
|
182
|
+
enumerable: true,
|
183
|
+
get: function () {
|
184
|
+
return MenuGroup_1.useMenuGroupStyles_unstable;
|
185
|
+
}
|
186
|
+
});
|
187
|
+
Object.defineProperty(exports, "useMenuGroup_unstable", {
|
188
|
+
enumerable: true,
|
189
|
+
get: function () {
|
190
|
+
return MenuGroup_1.useMenuGroup_unstable;
|
191
|
+
}
|
192
|
+
});
|
193
|
+
|
194
|
+
var MenuGroupHeader_1 = /*#__PURE__*/require("./MenuGroupHeader");
|
195
|
+
|
196
|
+
Object.defineProperty(exports, "MenuGroupHeader", {
|
197
|
+
enumerable: true,
|
198
|
+
get: function () {
|
199
|
+
return MenuGroupHeader_1.MenuGroupHeader;
|
200
|
+
}
|
201
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
202
|
+
|
203
|
+
Object.defineProperty(exports, "menuGroupHeaderClassName", {
|
204
|
+
enumerable: true,
|
205
|
+
get: function () {
|
206
|
+
return MenuGroupHeader_1.menuGroupHeaderClassName;
|
207
|
+
}
|
208
|
+
});
|
209
|
+
Object.defineProperty(exports, "menuGroupHeaderClassNames", {
|
210
|
+
enumerable: true,
|
211
|
+
get: function () {
|
212
|
+
return MenuGroupHeader_1.menuGroupHeaderClassNames;
|
213
|
+
}
|
214
|
+
});
|
215
|
+
Object.defineProperty(exports, "renderMenuGroupHeader_unstable", {
|
216
|
+
enumerable: true,
|
217
|
+
get: function () {
|
218
|
+
return MenuGroupHeader_1.renderMenuGroupHeader_unstable;
|
219
|
+
}
|
220
|
+
});
|
221
|
+
Object.defineProperty(exports, "useMenuGroupHeaderStyles_unstable", {
|
222
|
+
enumerable: true,
|
223
|
+
get: function () {
|
224
|
+
return MenuGroupHeader_1.useMenuGroupHeaderStyles_unstable;
|
225
|
+
}
|
226
|
+
});
|
227
|
+
Object.defineProperty(exports, "useMenuGroupHeader_unstable", {
|
228
|
+
enumerable: true,
|
229
|
+
get: function () {
|
230
|
+
return MenuGroupHeader_1.useMenuGroupHeader_unstable;
|
231
|
+
}
|
232
|
+
});
|
233
|
+
|
234
|
+
var MenuItem_1 = /*#__PURE__*/require("./MenuItem");
|
38
235
|
|
39
|
-
|
236
|
+
Object.defineProperty(exports, "MenuItem", {
|
237
|
+
enumerable: true,
|
238
|
+
get: function () {
|
239
|
+
return MenuItem_1.MenuItem;
|
240
|
+
}
|
241
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
242
|
+
|
243
|
+
Object.defineProperty(exports, "menuItemClassName", {
|
244
|
+
enumerable: true,
|
245
|
+
get: function () {
|
246
|
+
return MenuItem_1.menuItemClassName;
|
247
|
+
}
|
248
|
+
});
|
249
|
+
Object.defineProperty(exports, "menuItemClassNames", {
|
250
|
+
enumerable: true,
|
251
|
+
get: function () {
|
252
|
+
return MenuItem_1.menuItemClassNames;
|
253
|
+
}
|
254
|
+
});
|
255
|
+
Object.defineProperty(exports, "renderMenuItem_unstable", {
|
256
|
+
enumerable: true,
|
257
|
+
get: function () {
|
258
|
+
return MenuItem_1.renderMenuItem_unstable;
|
259
|
+
}
|
260
|
+
});
|
261
|
+
Object.defineProperty(exports, "useMenuItemStyles_unstable", {
|
262
|
+
enumerable: true,
|
263
|
+
get: function () {
|
264
|
+
return MenuItem_1.useMenuItemStyles_unstable;
|
265
|
+
}
|
266
|
+
});
|
267
|
+
Object.defineProperty(exports, "useMenuItem_unstable", {
|
268
|
+
enumerable: true,
|
269
|
+
get: function () {
|
270
|
+
return MenuItem_1.useMenuItem_unstable;
|
271
|
+
}
|
272
|
+
});
|
273
|
+
|
274
|
+
var MenuItemCheckbox_1 = /*#__PURE__*/require("./MenuItemCheckbox");
|
275
|
+
|
276
|
+
Object.defineProperty(exports, "MenuItemCheckbox", {
|
277
|
+
enumerable: true,
|
278
|
+
get: function () {
|
279
|
+
return MenuItemCheckbox_1.MenuItemCheckbox;
|
280
|
+
}
|
281
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
282
|
+
|
283
|
+
Object.defineProperty(exports, "menuItemCheckboxClassName", {
|
284
|
+
enumerable: true,
|
285
|
+
get: function () {
|
286
|
+
return MenuItemCheckbox_1.menuItemCheckboxClassName;
|
287
|
+
}
|
288
|
+
});
|
289
|
+
Object.defineProperty(exports, "menuItemCheckboxClassNames", {
|
290
|
+
enumerable: true,
|
291
|
+
get: function () {
|
292
|
+
return MenuItemCheckbox_1.menuItemCheckboxClassNames;
|
293
|
+
}
|
294
|
+
});
|
295
|
+
Object.defineProperty(exports, "renderMenuItemCheckbox_unstable", {
|
296
|
+
enumerable: true,
|
297
|
+
get: function () {
|
298
|
+
return MenuItemCheckbox_1.renderMenuItemCheckbox_unstable;
|
299
|
+
}
|
300
|
+
});
|
301
|
+
Object.defineProperty(exports, "useMenuItemCheckboxStyles_unstable", {
|
302
|
+
enumerable: true,
|
303
|
+
get: function () {
|
304
|
+
return MenuItemCheckbox_1.useMenuItemCheckboxStyles_unstable;
|
305
|
+
}
|
306
|
+
});
|
307
|
+
Object.defineProperty(exports, "useMenuItemCheckbox_unstable", {
|
308
|
+
enumerable: true,
|
309
|
+
get: function () {
|
310
|
+
return MenuItemCheckbox_1.useMenuItemCheckbox_unstable;
|
311
|
+
}
|
312
|
+
});
|
313
|
+
|
314
|
+
var MenuItemRadio_1 = /*#__PURE__*/require("./MenuItemRadio");
|
315
|
+
|
316
|
+
Object.defineProperty(exports, "MenuItemRadio", {
|
317
|
+
enumerable: true,
|
318
|
+
get: function () {
|
319
|
+
return MenuItemRadio_1.MenuItemRadio;
|
320
|
+
}
|
321
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
322
|
+
|
323
|
+
Object.defineProperty(exports, "menuItemRadioClassName", {
|
324
|
+
enumerable: true,
|
325
|
+
get: function () {
|
326
|
+
return MenuItemRadio_1.menuItemRadioClassName;
|
327
|
+
}
|
328
|
+
});
|
329
|
+
Object.defineProperty(exports, "menuItemRadioClassNames", {
|
330
|
+
enumerable: true,
|
331
|
+
get: function () {
|
332
|
+
return MenuItemRadio_1.menuItemRadioClassNames;
|
333
|
+
}
|
334
|
+
});
|
335
|
+
Object.defineProperty(exports, "renderMenuItemRadio_unstable", {
|
336
|
+
enumerable: true,
|
337
|
+
get: function () {
|
338
|
+
return MenuItemRadio_1.renderMenuItemRadio_unstable;
|
339
|
+
}
|
340
|
+
});
|
341
|
+
Object.defineProperty(exports, "useMenuItemRadioStyles_unstable", {
|
342
|
+
enumerable: true,
|
343
|
+
get: function () {
|
344
|
+
return MenuItemRadio_1.useMenuItemRadioStyles_unstable;
|
345
|
+
}
|
346
|
+
});
|
347
|
+
Object.defineProperty(exports, "useMenuItemRadio_unstable", {
|
348
|
+
enumerable: true,
|
349
|
+
get: function () {
|
350
|
+
return MenuItemRadio_1.useMenuItemRadio_unstable;
|
351
|
+
}
|
352
|
+
});
|
353
|
+
|
354
|
+
var MenuList_1 = /*#__PURE__*/require("./MenuList");
|
355
|
+
|
356
|
+
Object.defineProperty(exports, "MenuList", {
|
357
|
+
enumerable: true,
|
358
|
+
get: function () {
|
359
|
+
return MenuList_1.MenuList;
|
360
|
+
}
|
361
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
362
|
+
|
363
|
+
Object.defineProperty(exports, "menuListClassName", {
|
364
|
+
enumerable: true,
|
365
|
+
get: function () {
|
366
|
+
return MenuList_1.menuListClassName;
|
367
|
+
}
|
368
|
+
});
|
369
|
+
Object.defineProperty(exports, "menuListClassNames", {
|
370
|
+
enumerable: true,
|
371
|
+
get: function () {
|
372
|
+
return MenuList_1.menuListClassNames;
|
373
|
+
}
|
374
|
+
});
|
375
|
+
Object.defineProperty(exports, "renderMenuList_unstable", {
|
376
|
+
enumerable: true,
|
377
|
+
get: function () {
|
378
|
+
return MenuList_1.renderMenuList_unstable;
|
379
|
+
}
|
380
|
+
});
|
381
|
+
Object.defineProperty(exports, "useMenuListContextValues_unstable", {
|
382
|
+
enumerable: true,
|
383
|
+
get: function () {
|
384
|
+
return MenuList_1.useMenuListContextValues_unstable;
|
385
|
+
}
|
386
|
+
});
|
387
|
+
Object.defineProperty(exports, "useMenuListStyles_unstable", {
|
388
|
+
enumerable: true,
|
389
|
+
get: function () {
|
390
|
+
return MenuList_1.useMenuListStyles_unstable;
|
391
|
+
}
|
392
|
+
});
|
393
|
+
Object.defineProperty(exports, "useMenuList_unstable", {
|
394
|
+
enumerable: true,
|
395
|
+
get: function () {
|
396
|
+
return MenuList_1.useMenuList_unstable;
|
397
|
+
}
|
398
|
+
});
|
399
|
+
|
400
|
+
var MenuPopover_1 = /*#__PURE__*/require("./MenuPopover");
|
401
|
+
|
402
|
+
Object.defineProperty(exports, "MenuPopover", {
|
403
|
+
enumerable: true,
|
404
|
+
get: function () {
|
405
|
+
return MenuPopover_1.MenuPopover;
|
406
|
+
}
|
407
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
408
|
+
|
409
|
+
Object.defineProperty(exports, "menuPopoverClassName", {
|
410
|
+
enumerable: true,
|
411
|
+
get: function () {
|
412
|
+
return MenuPopover_1.menuPopoverClassName;
|
413
|
+
}
|
414
|
+
});
|
415
|
+
Object.defineProperty(exports, "menuPopoverClassNames", {
|
416
|
+
enumerable: true,
|
417
|
+
get: function () {
|
418
|
+
return MenuPopover_1.menuPopoverClassNames;
|
419
|
+
}
|
420
|
+
});
|
421
|
+
Object.defineProperty(exports, "renderMenuPopover_unstable", {
|
422
|
+
enumerable: true,
|
423
|
+
get: function () {
|
424
|
+
return MenuPopover_1.renderMenuPopover_unstable;
|
425
|
+
}
|
426
|
+
});
|
427
|
+
Object.defineProperty(exports, "useMenuPopoverStyles_unstable", {
|
428
|
+
enumerable: true,
|
429
|
+
get: function () {
|
430
|
+
return MenuPopover_1.useMenuPopoverStyles_unstable;
|
431
|
+
}
|
432
|
+
});
|
433
|
+
Object.defineProperty(exports, "useMenuPopover_unstable", {
|
434
|
+
enumerable: true,
|
435
|
+
get: function () {
|
436
|
+
return MenuPopover_1.useMenuPopover_unstable;
|
437
|
+
}
|
438
|
+
});
|
439
|
+
|
440
|
+
var MenuSplitGroup_1 = /*#__PURE__*/require("./MenuSplitGroup");
|
441
|
+
|
442
|
+
Object.defineProperty(exports, "MenuSplitGroup", {
|
443
|
+
enumerable: true,
|
444
|
+
get: function () {
|
445
|
+
return MenuSplitGroup_1.MenuSplitGroup;
|
446
|
+
}
|
447
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
448
|
+
|
449
|
+
Object.defineProperty(exports, "menuSplitGroupClassName", {
|
450
|
+
enumerable: true,
|
451
|
+
get: function () {
|
452
|
+
return MenuSplitGroup_1.menuSplitGroupClassName;
|
453
|
+
}
|
454
|
+
});
|
455
|
+
Object.defineProperty(exports, "menuSplitGroupClassNames", {
|
456
|
+
enumerable: true,
|
457
|
+
get: function () {
|
458
|
+
return MenuSplitGroup_1.menuSplitGroupClassNames;
|
459
|
+
}
|
460
|
+
});
|
461
|
+
Object.defineProperty(exports, "renderMenuSplitGroup_unstable", {
|
462
|
+
enumerable: true,
|
463
|
+
get: function () {
|
464
|
+
return MenuSplitGroup_1.renderMenuSplitGroup_unstable;
|
465
|
+
}
|
466
|
+
});
|
467
|
+
Object.defineProperty(exports, "useMenuSplitGroupStyles_unstable", {
|
468
|
+
enumerable: true,
|
469
|
+
get: function () {
|
470
|
+
return MenuSplitGroup_1.useMenuSplitGroupStyles_unstable;
|
471
|
+
}
|
472
|
+
});
|
473
|
+
Object.defineProperty(exports, "useMenuSplitGroup_unstable", {
|
474
|
+
enumerable: true,
|
475
|
+
get: function () {
|
476
|
+
return MenuSplitGroup_1.useMenuSplitGroup_unstable;
|
477
|
+
}
|
478
|
+
});
|
479
|
+
|
480
|
+
var MenuTrigger_1 = /*#__PURE__*/require("./MenuTrigger");
|
481
|
+
|
482
|
+
Object.defineProperty(exports, "MenuTrigger", {
|
483
|
+
enumerable: true,
|
484
|
+
get: function () {
|
485
|
+
return MenuTrigger_1.MenuTrigger;
|
486
|
+
}
|
487
|
+
});
|
488
|
+
Object.defineProperty(exports, "renderMenuTrigger_unstable", {
|
489
|
+
enumerable: true,
|
490
|
+
get: function () {
|
491
|
+
return MenuTrigger_1.renderMenuTrigger_unstable;
|
492
|
+
}
|
493
|
+
});
|
494
|
+
Object.defineProperty(exports, "useMenuTrigger_unstable", {
|
495
|
+
enumerable: true,
|
496
|
+
get: function () {
|
497
|
+
return MenuTrigger_1.useMenuTrigger_unstable;
|
498
|
+
}
|
499
|
+
});
|
500
|
+
|
501
|
+
var index_1 = /*#__PURE__*/require("./selectable/index");
|
502
|
+
|
503
|
+
Object.defineProperty(exports, "useCheckmarkStyles_unstable", {
|
504
|
+
enumerable: true,
|
505
|
+
get: function () {
|
506
|
+
return index_1.useCheckmarkStyles_unstable;
|
507
|
+
}
|
508
|
+
});
|
40
509
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA;;AAEA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,aAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA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A,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,gBAAA,CAAA,gCAAA;AAAgC;AAAhC,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,4BAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,gBAAA,CAAA,0BAAA;AAA0B;AAA1B,CAAA;;AAGF,IAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,aAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,aAAA,CAAA,WAAA;AAAW;AAAX,CAAA;AAAa,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,4BAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,aAAA,CAAA,0BAAA;AAA0B;AAA1B,CAAA;AAA4B,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,yBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,aAAA,CAAA,uBAAA;AAAuB;AAAvB,CAAA;;AAGlD,IAAA,OAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,6BAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,OAAA,CAAA,2BAAA;AAA2B;AAA3B,CAAA","sourcesContent":["export { MenuContext, MenuProvider, useMenuContext_unstable } from './contexts/menuContext';\nexport type { MenuContextValue } from './contexts/menuContext';\nexport { MenuTriggerContextProvider, useMenuTriggerContext_unstable } from './contexts/menuTriggerContext';\nexport { MenuGroupContextProvider, useMenuGroupContext_unstable } from './contexts/menuGroupContext';\nexport type { MenuGroupContextValue } from './contexts/menuGroupContext';\nexport { MenuListContext, MenuListProvider, useMenuListContext_unstable } from './contexts/menuListContext';\nexport type { MenuListContextValue } from './contexts/menuListContext';\n\nexport { Menu, renderMenu_unstable, useMenuContextValues_unstable, useMenu_unstable } from './Menu';\nexport type { MenuContextValues, MenuOpenChangeData, MenuOpenEvents, MenuProps, MenuSlots, MenuState } from './Menu';\nexport {\n MenuDivider,\n // eslint-disable-next-line deprecation/deprecation\n menuDividerClassName,\n menuDividerClassNames,\n renderMenuDivider_unstable,\n useMenuDividerStyles_unstable,\n useMenuDivider_unstable,\n} from './MenuDivider';\nexport type { MenuDividerProps, MenuDividerSlots, MenuDividerState } from './MenuDivider';\nexport {\n MenuGroup,\n // eslint-disable-next-line deprecation/deprecation\n menuGroupClassName,\n menuGroupClassNames,\n renderMenuGroup_unstable,\n useMenuGroupContextValues_unstable,\n useMenuGroupStyles_unstable,\n useMenuGroup_unstable,\n} from './MenuGroup';\nexport type { MenuGroupContextValues, MenuGroupProps, MenuGroupSlots, MenuGroupState } from './MenuGroup';\nexport {\n MenuGroupHeader,\n // eslint-disable-next-line deprecation/deprecation\n menuGroupHeaderClassName,\n menuGroupHeaderClassNames,\n renderMenuGroupHeader_unstable,\n useMenuGroupHeaderStyles_unstable,\n useMenuGroupHeader_unstable,\n} from './MenuGroupHeader';\nexport type { MenuGroupHeaderProps, MenuGroupHeaderSlots, MenuGroupHeaderState } from './MenuGroupHeader';\nexport {\n MenuItem,\n // eslint-disable-next-line deprecation/deprecation\n menuItemClassName,\n menuItemClassNames,\n renderMenuItem_unstable,\n useMenuItemStyles_unstable,\n useMenuItem_unstable,\n} from './MenuItem';\nexport type { MenuItemProps, MenuItemSlots, MenuItemState } from './MenuItem';\nexport {\n MenuItemCheckbox,\n // eslint-disable-next-line deprecation/deprecation\n menuItemCheckboxClassName,\n menuItemCheckboxClassNames,\n renderMenuItemCheckbox_unstable,\n useMenuItemCheckboxStyles_unstable,\n useMenuItemCheckbox_unstable,\n} from './MenuItemCheckbox';\nexport type { MenuItemCheckboxProps, MenuItemCheckboxState } from './MenuItemCheckbox';\nexport {\n MenuItemRadio,\n // eslint-disable-next-line deprecation/deprecation\n menuItemRadioClassName,\n menuItemRadioClassNames,\n renderMenuItemRadio_unstable,\n useMenuItemRadioStyles_unstable,\n useMenuItemRadio_unstable,\n} from './MenuItemRadio';\nexport type { MenuItemRadioProps, MenuItemRadioState } from './MenuItemRadio';\nexport {\n MenuList,\n // eslint-disable-next-line deprecation/deprecation\n menuListClassName,\n menuListClassNames,\n renderMenuList_unstable,\n useMenuListContextValues_unstable,\n useMenuListStyles_unstable,\n useMenuList_unstable,\n} from './MenuList';\nexport type {\n MenuCheckedValueChangeData,\n MenuCheckedValueChangeEvent,\n MenuListContextValues,\n MenuListProps,\n MenuListSlots,\n MenuListState,\n UninitializedMenuListState,\n} from './MenuList';\nexport {\n MenuPopover,\n // eslint-disable-next-line deprecation/deprecation\n menuPopoverClassName,\n menuPopoverClassNames,\n renderMenuPopover_unstable,\n useMenuPopoverStyles_unstable,\n useMenuPopover_unstable,\n} from './MenuPopover';\nexport type { MenuPopoverProps, MenuPopoverSlots, MenuPopoverState } from './MenuPopover';\nexport {\n MenuSplitGroup,\n // eslint-disable-next-line deprecation/deprecation\n menuSplitGroupClassName,\n menuSplitGroupClassNames,\n renderMenuSplitGroup_unstable,\n useMenuSplitGroupStyles_unstable,\n useMenuSplitGroup_unstable,\n} from './MenuSplitGroup';\nexport type { MenuSplitGroupProps, MenuSplitGroupSlots, MenuSplitGroupState } from './MenuSplitGroup';\nexport { MenuTrigger, renderMenuTrigger_unstable, useMenuTrigger_unstable } from './MenuTrigger';\nexport type { MenuTriggerChildProps, MenuTriggerProps, MenuTriggerState } from './MenuTrigger';\n\nexport { useCheckmarkStyles_unstable } from './selectable/index';\nexport type { MenuItemSelectableProps, MenuItemSelectableState, SelectableHandler } from './selectable/index';\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["selectable/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './useCheckmarkStyles';\nexport * from './types';\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["selectable/useCheckmarkStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAIA,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACI,MAAM,2BAA2B,GAAI,KAAD,IAAsE;AAC/G,QAAM,MAAM,GAAG,SAAS,EAAxB;;AACA,MAAI,KAAK,CAAC,SAAV,EAAqB;AACnB,IAAA,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,OAAA,CAAA,YAAA,CAC1B,MAAM,CAAC,IADmB,EAE1B,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFE,EAG1B,KAAK,CAAC,SAAN,CAAgB,SAHU,CAA5B;AAKD;AACF,CATM;;AAAM,OAAA,CAAA,2BAAA,GAA2B,2BAA3B","sourcesContent":["import { mergeClasses, makeStyles } from '@griffel/react';\nimport type { MenuItemSelectableState } from './types';\nimport type { MenuItemState } from '../components/MenuItem/MenuItem.types';\n\nconst useStyles = makeStyles({\n root: {\n width: '16px',\n height: '16px',\n visibility: 'hidden',\n },\n rootChecked: {\n visibility: 'visible',\n },\n});\n\n/**\n * Applies styles to a checkmark slot for selectable menu items\n *\n * @param state - should contain a `checkmark` slot\n */\nexport const useCheckmarkStyles_unstable = (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => {\n const styles = useStyles();\n if (state.checkmark) {\n state.checkmark.className = mergeClasses(\n styles.root,\n state.checked && styles.rootChecked,\n state.checkmark.className,\n );\n }\n};\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["utils/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './useOnMenuEnter';\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["utils/useIsSubmenu.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAEA;;;;;;;AAOG;;;AACH,SAAgB,YAAhB,GAA4B;AAC1B,QAAM,gBAAgB,GAAG,aAAA,CAAA,uBAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,SAA3C,CAAzB;AACA,QAAM,kBAAkB,GAAG,wBAAA,CAAA,mBAAA,CAAoB,iBAAA,CAAA,eAApB,CAA3B;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD;;AALD,OAAA,CAAA,YAAA,GAAA,YAAA","sourcesContent":["import { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useMenuContext_unstable } from '../contexts/menuContext';\nimport { MenuListContext } from '../contexts/menuListContext';\n\n/**\n * A component can be a part of a submenu whether its menu context `isSubmenu` flag is true\n * or whether it is a part of a `MenuList`\n *\n * A simple hook to check box contexts easily\n *\n * @returns whether the component is part of a submenu\n */\nexport function useIsSubmenu() {\n const menuContextValue = useMenuContext_unstable(context => context.isSubmenu);\n const hasMenuListContext = useHasParentContext(MenuListContext);\n\n return menuContextValue || hasMenuListContext;\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["utils/useOnMenuEnter.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAGA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,GAAmB,cAAnB;AAEb;;;;;;;;;;AAUG;;AACI,MAAM,mBAAmB,GAAI,OAAD,IAA8C;AAC/E,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,OAAlB;AAA2B,IAAA;AAA3B,MAAwC,OAA9C,CAD+E,CAG/E;;AACA,QAAM,QAAQ,GAAG,iBAAA,CAAA,gBAAA,CAAkB,EAAD,IAAmB;;;AACnD,UAAM,UAAU,GAAG,IAAI,CAAC,CAAD,CAAvB;AACA,UAAM,eAAe,GAAG,EAAE,CAAC,MAA3B,CAFmD,CAInD;AACA;AACA;;AACA,UAAM,gBAAgB,GAAG,CAAC,cAAA,CAAA,eAAA,CAAgB,CAAA,EAAA,GAAA,UAAU,CAAC,OAAX,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,IAAtC,EAA4C,eAA5C,CAA1B;;AACA,QAAI,gBAAgB,IAAI,CAAC,QAAzB,EAAmC;AACjC,MAAA,QAAQ,CAAC,EAAD,CAAR;AACD;AACF,GAXgB,CAAjB;AAaA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB;AACA,QAAI,OAAO,IAAI,IAAf,EAAqB;AACnB;AACD;;AAUD,QAAI,CAAC,QAAL,EAAe;AACb,MAAA,OAAO,CAAC,gBAAR,CAAyB,OAAA,CAAA,gBAAzB,EAA2C,QAA3C;AACD;;AAED,WAAO,MAAK;AACV,MAAA,OAAO,CAAC,mBAAR,CAA4B,OAAA,CAAA,gBAA5B,EAA8C,QAA9C;AACD,KAFD;AAGD,GArBD,EAqBG,CAAC,QAAD,EAAW,OAAX,EAAoB,QAApB,CArBH;AAsBD,CAvCM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB;AAyCb;;;;AAIG;;AACI,MAAM,sBAAsB,GAAG,CAAC,EAAD,EAAkB,WAAlB,KAA6C;AACjF,EAAA,EAAE,CAAC,aAAH,CAAiB,IAAI,WAAJ,CAAgB,OAAA,CAAA,gBAAhB,EAAkC;AAAE,IAAA,OAAO,EAAE,IAAX;AAAiB,IAAA,MAAM,EAAE;AAAE,MAAA;AAAF;AAAzB,GAAlC,CAAjB;AACD,CAFM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { elementContains } from '@fluentui/react-portal';\nimport type { UseOnClickOrScrollOutsideOptions } from '@fluentui/react-utilities';\n\n/**\n * Name of the custom event\n */\nexport const MENU_ENTER_EVENT = 'fuimenuenter';\n\n/**\n * This hook works similarly to @see {useOnClickOutside}\n *\n * Problem: Trying to behave the same as system menus:\n * When the mouse leaves a stack of nested menus the stack should not dismiss.\n * However if the mouse leaves a stack of menus and enters a parent menu all its children menu should dismiss.\n *\n * We don't use the native mouseenter event because it would trigger too many times in the document\n * Instead, dispatch custom DOM event from the menu so that it can bubble\n * Each nested menu can use the listener to check if the event is from a child or parent menu\n */\nexport const useOnMenuMouseEnter = (options: UseOnClickOrScrollOutsideOptions) => {\n const { refs, callback, element, disabled } = options;\n\n // Keep mouse event here because this is essentially a custom 'mouseenter' event\n const listener = useEventCallback((ev: MouseEvent) => {\n const popoverRef = refs[0];\n const someMenuPopover = ev.target as HTMLElement;\n\n // someMenu is a child -> will always be contained because of vParents\n // someMenu is a parent -> will always not be contained because no vParent\n // someMenu is the current popover -> it will contain itself\n const isOutsidePopover = !elementContains(popoverRef.current ?? null, someMenuPopover);\n if (isOutsidePopover && !disabled) {\n callback(ev);\n }\n });\n\n React.useEffect(() => {\n // eslint-disable-next-line eqeqeq\n if (element == null) {\n return;\n }\n\n /**\n * Because `addEventListener` type override falls back to 2nd definition (evt name is unknown string literal)\n * evt is being typed as a base class of MouseEvent -> `Event`.\n * This type is used to override `listener` calls to make TS happy\n */\n\n type ListenerOverride = (evt: Event) => void;\n\n if (!disabled) {\n element.addEventListener(MENU_ENTER_EVENT, listener as ListenerOverride);\n }\n\n return () => {\n element.removeEventListener(MENU_ENTER_EVENT, listener as ListenerOverride);\n };\n }, [listener, element, disabled]);\n};\n\n/**\n * Dispatches the custom MouseEvent enter event. Similar to calling `el.click()`\n * @param el element for the event target\n * @param nativeEvent the native mouse event this is mapped to\n */\nexport const dispatchMenuEnterEvent = (el: HTMLElement, nativeEvent: MouseEvent) => {\n el.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT, { bubbles: true, detail: { nativeEvent } }));\n};\n"],"sourceRoot":"../src/"}
|