@fluentui/react-menu 0.0.0-nightlycc44f3625c20211220.1 → 0.0.0-nightlyd80c90385320220216.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +214 -31
- package/CHANGELOG.md +49 -16
- package/Spec.md +21 -16
- package/dist/react-menu.d.ts +110 -68
- package/lib/MenuSplitGroup.d.ts +1 -0
- package/lib/MenuSplitGroup.js +2 -0
- package/lib/MenuSplitGroup.js.map +1 -0
- package/lib/components/Menu/Menu.js +6 -6
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/Menu.types.d.ts +1 -1
- package/lib/components/Menu/renderMenu.d.ts +1 -1
- package/lib/components/Menu/renderMenu.js +1 -1
- package/lib/components/Menu/renderMenu.js.map +1 -1
- package/lib/components/Menu/useMenu.d.ts +2 -2
- package/lib/components/Menu/useMenu.js +25 -20
- package/lib/components/Menu/useMenu.js.map +1 -1
- package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
- package/lib/components/Menu/useMenuContextValues.js +1 -1
- package/lib/components/Menu/useMenuContextValues.js.map +1 -1
- package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
- package/lib/components/MenuDivider/MenuDivider.js +7 -7
- package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
- package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
- package/lib/components/MenuDivider/renderMenuDivider.js +1 -1
- package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
- package/lib/components/MenuDivider/useMenuDivider.js +4 -1
- package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
- package/lib/components/MenuDivider/useMenuDividerStyles.js +3 -2
- package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
- package/lib/components/MenuGroup/MenuGroup.js +9 -9
- package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
- package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
- package/lib/components/MenuGroup/renderMenuGroup.js +1 -1
- package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
- package/lib/components/MenuGroup/useMenuGroup.js +4 -1
- package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
- package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
- package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
- package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
- package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
- package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +1 -1
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +6 -3
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +3 -2
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.d.ts +1 -1
- package/lib/components/MenuItem/MenuItem.js +7 -7
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
- package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
- package/lib/components/MenuItem/renderMenuItem.js +7 -8
- package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useCharacterSearch.js +2 -2
- package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
- package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
- package/lib/components/MenuItem/useMenuItem.js +11 -16
- package/lib/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.js +20 -24
- package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -7
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
- package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js +6 -7
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
- package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
- package/lib/components/MenuList/MenuList.d.ts +1 -1
- package/lib/components/MenuList/MenuList.js +9 -9
- package/lib/components/MenuList/MenuList.js.map +1 -1
- package/lib/components/MenuList/MenuList.types.d.ts +4 -4
- package/lib/components/MenuList/index.d.ts +1 -1
- package/lib/components/MenuList/index.js +0 -1
- package/lib/components/MenuList/index.js.map +1 -1
- package/lib/components/MenuList/renderMenuList.d.ts +1 -1
- package/lib/components/MenuList/renderMenuList.js +1 -1
- package/lib/components/MenuList/renderMenuList.js.map +1 -1
- package/lib/components/MenuList/useMenuList.d.ts +1 -1
- package/lib/components/MenuList/useMenuList.js +11 -8
- package/lib/components/MenuList/useMenuList.js.map +1 -1
- package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
- package/lib/components/MenuList/useMenuListContextValues.js +1 -1
- package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
- package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
- package/lib/components/MenuList/useMenuListStyles.js +2 -2
- package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.js +6 -6
- package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
- package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
- package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
- package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
- package/lib/components/MenuPopover/useMenuPopover.js +11 -8
- package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
- package/lib/components/MenuPopover/useMenuPopoverStyles.js +3 -2
- package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
- package/lib/components/MenuSplitGroup/index.d.ts +5 -0
- package/lib/components/MenuSplitGroup/index.js +6 -0
- package/lib/components/MenuSplitGroup/index.js.map +1 -0
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
- package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
- package/lib/components/MenuTrigger/MenuTrigger.js +5 -4
- package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +5 -3
- package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
- package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
- package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
- package/lib/components/MenuTrigger/useMenuTrigger.js +167 -5
- package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
- package/lib/contexts/menuContext.d.ts +1 -1
- package/lib/contexts/menuContext.js +1 -1
- package/lib/contexts/menuContext.js.map +1 -1
- package/lib/contexts/menuGroupContext.d.ts +1 -1
- package/lib/contexts/menuGroupContext.js +1 -1
- package/lib/contexts/menuGroupContext.js.map +1 -1
- package/lib/contexts/menuListContext.d.ts +1 -1
- package/lib/contexts/menuListContext.js +1 -1
- package/lib/contexts/menuListContext.js.map +1 -1
- package/lib/contexts/menuTriggerContext.d.ts +1 -1
- package/lib/contexts/menuTriggerContext.js +1 -1
- package/lib/contexts/menuTriggerContext.js.map +1 -1
- package/lib/index.d.ts +11 -10
- package/lib/index.js +11 -10
- package/lib/index.js.map +1 -1
- package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
- package/lib/selectable/useCheckmarkStyles.js +2 -2
- package/lib/selectable/useCheckmarkStyles.js.map +1 -1
- package/lib/utils/useIsSubmenu.js +2 -2
- package/lib/utils/useIsSubmenu.js.map +1 -1
- package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
- package/lib-commonjs/MenuSplitGroup.js +10 -0
- package/lib-commonjs/MenuSplitGroup.js.map +1 -0
- package/lib-commonjs/components/Menu/Menu.js +3 -3
- package/lib-commonjs/components/Menu/Menu.js.map +1 -1
- package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
- package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
- package/lib-commonjs/components/Menu/renderMenu.js +3 -3
- package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
- package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
- package/lib-commonjs/components/Menu/useMenu.js +30 -26
- package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
- package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
- package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
- package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
- package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDivider.js +6 -3
- package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
- package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroup.js +6 -3
- package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +7 -4
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
- package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
- package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
- package/lib-commonjs/components/MenuItem/renderMenuItem.js +9 -11
- package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
- package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
- package/lib-commonjs/components/MenuItem/useMenuItem.js +11 -16
- package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +27 -30
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +8 -10
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +8 -10
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
- package/lib-commonjs/components/MenuList/MenuList.js +5 -5
- package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
- package/lib-commonjs/components/MenuList/index.d.ts +1 -1
- package/lib-commonjs/components/MenuList/index.js +0 -2
- package/lib-commonjs/components/MenuList/index.js.map +1 -1
- package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
- package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
- package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
- package/lib-commonjs/components/MenuList/useMenuList.js +12 -9
- package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
- package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
- package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
- package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
- package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
- package/lib-commonjs/components/MenuPopover/useMenuPopover.js +12 -9
- package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +8 -6
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
- package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
- package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
- package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +3 -2
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +5 -3
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +176 -7
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
- package/lib-commonjs/contexts/menuContext.d.ts +1 -1
- package/lib-commonjs/contexts/menuContext.js +3 -3
- package/lib-commonjs/contexts/menuContext.js.map +1 -1
- package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
- package/lib-commonjs/contexts/menuGroupContext.js +3 -3
- package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
- package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
- package/lib-commonjs/contexts/menuListContext.js +3 -3
- package/lib-commonjs/contexts/menuListContext.js.map +1 -1
- package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
- package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
- package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
- package/lib-commonjs/index.d.ts +11 -10
- package/lib-commonjs/index.js +16 -14
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
- package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
- package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
- package/lib-commonjs/utils/useIsSubmenu.js +1 -1
- package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
- package/package.json +13 -15
- package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
- package/lib/components/MenuTrigger/useTriggerElement.js +0 -166
- package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
- package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
- package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -181
- package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,17 +2,74 @@
|
|
2
2
|
"name": "@fluentui/react-menu",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-menu_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Wed, 16 Feb 2022 04:14:20 GMT",
|
6
|
+
"tag": "@fluentui/react-menu_v0.0.0-nightlyd80c90385320220216.1",
|
7
|
+
"version": "0.0.0-nightlyd80c90385320220216.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-menu",
|
13
|
-
"commit": "
|
13
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-menu",
|
19
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyd80c90385320220216.1",
|
20
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-menu",
|
25
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyd80c90385320220216.1",
|
26
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-menu",
|
31
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightlyd80c90385320220216.1",
|
32
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-menu",
|
37
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyd80c90385320220216.1",
|
38
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-menu",
|
43
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd80c90385320220216.1",
|
44
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-menu",
|
49
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyd80c90385320220216.1",
|
50
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-menu",
|
55
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyd80c90385320220216.1",
|
56
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "beachball",
|
60
|
+
"package": "@fluentui/react-menu",
|
61
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyd80c90385320220216.1",
|
62
|
+
"commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
|
63
|
+
}
|
64
|
+
]
|
65
|
+
}
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"date": "Thu, 10 Feb 2022 08:51:30 GMT",
|
69
|
+
"tag": "@fluentui/react-menu_v9.0.0-rc.1",
|
70
|
+
"version": "9.0.0-rc.1",
|
71
|
+
"comments": {
|
72
|
+
"prerelease": [
|
16
73
|
{
|
17
74
|
"author": "lingfangao@hotmail.com",
|
18
75
|
"package": "@fluentui/react-menu",
|
@@ -25,97 +82,223 @@
|
|
25
82
|
"commit": "6ca0355f6740f836ff4df009687718a380085247",
|
26
83
|
"comment": "fix: Focus on first menu item on click"
|
27
84
|
},
|
85
|
+
{
|
86
|
+
"author": "lingfangao@hotmail.com",
|
87
|
+
"package": "@fluentui/react-menu",
|
88
|
+
"commit": "4f22b6dad04ea37eb53e4af23c73d2de4db512a2",
|
89
|
+
"comment": "fix: MenuTrigger should work correctly when `aria-disabled=\"true\"`"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"author": "olfedias@microsoft.com",
|
93
|
+
"package": "@fluentui/react-menu",
|
94
|
+
"commit": "b23239743c4f5518bcf7dcad496a36fc16bbd2e5",
|
95
|
+
"comment": "update @fluentui/react-icons package"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"author": "lingfangao@hotmail.com",
|
99
|
+
"package": "@fluentui/react-menu",
|
100
|
+
"commit": "d2eb57808a403b70845a732a62b55aa64d66b2a0",
|
101
|
+
"comment": "Allow `MenuTrigger` to be wrapped by another trigger"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"author": "olfedias@microsoft.com",
|
105
|
+
"package": "@fluentui/react-menu",
|
106
|
+
"commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
|
107
|
+
"comment": "update types related to trigger (allow only React.ReactElement & null)"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"author": "behowell@microsoft.com",
|
111
|
+
"package": "@fluentui/react-menu",
|
112
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
113
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
117
|
+
"package": "@fluentui/react-menu",
|
118
|
+
"commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
|
119
|
+
"comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"author": "behowell@microsoft.com",
|
123
|
+
"package": "@fluentui/react-menu",
|
124
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
125
|
+
"comment": "Remove component's shorthandProps array"
|
126
|
+
},
|
28
127
|
{
|
29
128
|
"author": "olfedias@microsoft.com",
|
30
129
|
"package": "@fluentui/react-menu",
|
31
130
|
"commit": "7e0933ed386742df28c416e6b3a6903a0c041f28",
|
32
131
|
"comment": "update styles to not use CSS shorthands"
|
33
132
|
},
|
133
|
+
{
|
134
|
+
"author": "behowell@microsoft.com",
|
135
|
+
"package": "@fluentui/react-menu",
|
136
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
137
|
+
"comment": "Refactor component Slot typings"
|
138
|
+
},
|
34
139
|
{
|
35
140
|
"author": "lingfangao@hotmail.com",
|
36
141
|
"package": "@fluentui/react-menu",
|
37
142
|
"commit": "4121754498bba5137f769295e2b7a2899f557278",
|
38
143
|
"comment": "fix: Call `useCheckmarkStyles` in `useMenuItemStyles`"
|
39
144
|
},
|
145
|
+
{
|
146
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
147
|
+
"package": "@fluentui/react-menu",
|
148
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
149
|
+
"comment": "Updating based on changes to composition types."
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
153
|
+
"package": "@fluentui/react-menu",
|
154
|
+
"commit": "6c32d0180e89674a46daf795de69e5dc6ca71ef7",
|
155
|
+
"comment": "Updating based on removal of functions from makeStyles."
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"author": "behowell@microsoft.com",
|
159
|
+
"package": "@fluentui/react-menu",
|
160
|
+
"commit": "f30e7585a8d2abd9db06c4076f39a779008b0eca",
|
161
|
+
"comment": "Update MenuTrigger and Tooltip to work together"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"author": "lingfangao@hotmail.com",
|
165
|
+
"package": "@fluentui/react-menu",
|
166
|
+
"commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
|
167
|
+
"comment": "Bump Fluent UI packages to 9.0.0-rc"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
171
|
+
"package": "@fluentui/react-menu",
|
172
|
+
"commit": "227e09f59026e2bd243422427d9e230d6aa892ca",
|
173
|
+
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"author": "olfedias@microsoft.com",
|
177
|
+
"package": "@fluentui/react-menu",
|
178
|
+
"commit": "d8fe0da13e1d34028a51e5d740e7bdc78c3a6862",
|
179
|
+
"comment": "use Griffel packages"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"author": "behowell@microsoft.com",
|
183
|
+
"package": "@fluentui/react-menu",
|
184
|
+
"commit": "23b8a6df449d6e76b90ae5ca9bd2285febdff222",
|
185
|
+
"comment": "Apply fontSize styling to icon slot"
|
186
|
+
},
|
40
187
|
{
|
41
188
|
"author": "ololubek@microsoft.com",
|
42
189
|
"package": "@fluentui/react-menu",
|
43
|
-
"commit": "
|
44
|
-
"comment": "
|
190
|
+
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
191
|
+
"comment": "Update react-icons usage to resizable icons"
|
45
192
|
},
|
46
193
|
{
|
47
|
-
"author": "
|
194
|
+
"author": "lingfangao@hotmail.com",
|
48
195
|
"package": "@fluentui/react-menu",
|
49
|
-
"
|
50
|
-
"
|
196
|
+
"commit": "95a6a32cbffa9d86d6017cf8e0204d4b459ef370",
|
197
|
+
"comment": "feat: implement `MenuSplitGroup` component for split menu items"
|
51
198
|
},
|
52
199
|
{
|
53
|
-
"author": "
|
200
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
54
201
|
"package": "@fluentui/react-menu",
|
55
|
-
"
|
56
|
-
"
|
202
|
+
"commit": "00a5d945904c896a0664de6ba72c145a255f0848",
|
203
|
+
"comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
|
57
204
|
},
|
58
205
|
{
|
59
|
-
"author": "
|
206
|
+
"author": "ololubek@microsoft.com",
|
207
|
+
"package": "@fluentui/react-menu",
|
208
|
+
"commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
|
209
|
+
"comment": "(fix): Update react-icons dependency to latest version"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"author": "mgodbolt@microsoft.com",
|
213
|
+
"package": "@fluentui/react-menu",
|
214
|
+
"commit": "839ec14849e112b85aa321d034739ec421199141",
|
215
|
+
"comment": "remove export of commons types"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"author": "lingfangao@hotmail.com",
|
60
219
|
"package": "@fluentui/react-menu",
|
61
|
-
"
|
62
|
-
"
|
220
|
+
"commit": "07d9ed6d1b436b7ca9571c94fbb0bcbdb080f235",
|
221
|
+
"comment": "breaking: MenuTrigger must be the first child of the `Menu`"
|
63
222
|
},
|
64
223
|
{
|
65
224
|
"author": "beachball",
|
66
225
|
"package": "@fluentui/react-menu",
|
67
|
-
"comment": "Bump @fluentui/
|
68
|
-
"commit": "
|
226
|
+
"comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.1",
|
227
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
69
228
|
},
|
70
229
|
{
|
71
230
|
"author": "beachball",
|
72
231
|
"package": "@fluentui/react-menu",
|
73
|
-
"comment": "Bump @fluentui/react-
|
74
|
-
"commit": "
|
232
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.1",
|
233
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
75
234
|
},
|
76
235
|
{
|
77
236
|
"author": "beachball",
|
78
237
|
"package": "@fluentui/react-menu",
|
79
|
-
"comment": "Bump @fluentui/react-
|
80
|
-
"commit": "
|
238
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-rc.1",
|
239
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
81
240
|
},
|
82
241
|
{
|
83
242
|
"author": "beachball",
|
84
243
|
"package": "@fluentui/react-menu",
|
85
|
-
"comment": "Bump @fluentui/react-
|
86
|
-
"commit": "
|
244
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-rc.1",
|
245
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
87
246
|
},
|
88
247
|
{
|
89
248
|
"author": "beachball",
|
90
249
|
"package": "@fluentui/react-menu",
|
91
|
-
"comment": "Bump @fluentui/react-
|
92
|
-
"commit": "
|
250
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
|
251
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
93
252
|
},
|
94
253
|
{
|
95
254
|
"author": "beachball",
|
96
255
|
"package": "@fluentui/react-menu",
|
97
|
-
"comment": "Bump @fluentui/
|
98
|
-
"commit": "
|
256
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
|
257
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
99
258
|
},
|
100
259
|
{
|
101
260
|
"author": "beachball",
|
102
261
|
"package": "@fluentui/react-menu",
|
103
|
-
"comment": "Bump @fluentui/
|
104
|
-
"commit": "
|
262
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
|
263
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
105
264
|
},
|
106
265
|
{
|
107
266
|
"author": "beachball",
|
108
267
|
"package": "@fluentui/react-menu",
|
109
|
-
"comment": "Bump @fluentui/react-conformance-
|
110
|
-
"commit": "
|
268
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
|
269
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
111
270
|
}
|
112
271
|
],
|
113
272
|
"none": [
|
273
|
+
{
|
274
|
+
"author": "email not defined",
|
275
|
+
"package": "@fluentui/react-menu",
|
276
|
+
"commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
|
277
|
+
"comment": "Add workaround for cypress bug"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"author": "olfedias@microsoft.com",
|
281
|
+
"package": "@fluentui/react-menu",
|
282
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
283
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"author": "bsunderhus@microsoft.com",
|
287
|
+
"package": "@fluentui/react-menu",
|
288
|
+
"commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
|
289
|
+
"comment": "Updates components with nullRender changes"
|
290
|
+
},
|
114
291
|
{
|
115
292
|
"author": "elcraig@microsoft.com",
|
116
293
|
"package": "@fluentui/react-menu",
|
117
294
|
"commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
|
118
295
|
"comment": "Update API file to version generated by typescript 4.3"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"author": "martinhochel@microsoft.com",
|
299
|
+
"package": "@fluentui/react-menu",
|
300
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
301
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
119
302
|
}
|
120
303
|
]
|
121
304
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,33 +1,66 @@
|
|
1
1
|
# Change Log - @fluentui/react-menu
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 16 Feb 2022 04:14:20 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyd80c90385320220216.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyd80c90385320220216.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-
|
9
|
+
Wed, 16 Feb 2022 04:14:20 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-rc.1..@fluentui/react-menu_v0.0.0-nightlyd80c90385320220216.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by email not defined)
|
15
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
16
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
17
|
+
- Bump @fluentui/react-portal to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
18
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
19
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
20
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
21
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
22
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
|
23
|
+
|
24
|
+
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-rc.1)
|
25
|
+
|
26
|
+
Thu, 10 Feb 2022 08:51:30 GMT
|
27
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v9.0.0-rc.1)
|
11
28
|
|
12
29
|
### Changes
|
13
30
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by email not defined)
|
15
31
|
- fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
|
16
32
|
- fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
|
33
|
+
- fix: MenuTrigger should work correctly when `aria-disabled="true"` ([PR #21349](https://github.com/microsoft/fluentui/pull/21349) by lingfangao@hotmail.com)
|
34
|
+
- update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
|
35
|
+
- Allow `MenuTrigger` to be wrapped by another trigger ([PR #21225](https://github.com/microsoft/fluentui/pull/21225) by lingfangao@hotmail.com)
|
36
|
+
- update types related to trigger (allow only React.ReactElement & null) ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
|
37
|
+
- BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
|
38
|
+
- Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
|
39
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
17
40
|
- update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
|
41
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
18
42
|
- fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
|
43
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
44
|
+
- Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
|
45
|
+
- Update MenuTrigger and Tooltip to work together ([PR #21495](https://github.com/microsoft/fluentui/pull/21495) by behowell@microsoft.com)
|
46
|
+
- Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
47
|
+
- Replacing use of functions in makeStyles with direct use of tokens. ([PR #21048](https://github.com/microsoft/fluentui/pull/21048) by Humberto.Morimoto@microsoft.com)
|
48
|
+
- use Griffel packages ([PR #21391](https://github.com/microsoft/fluentui/pull/21391) by olfedias@microsoft.com)
|
49
|
+
- Apply fontSize styling to icon slot ([PR #21222](https://github.com/microsoft/fluentui/pull/21222) by behowell@microsoft.com)
|
50
|
+
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
51
|
+
- feat: implement `MenuSplitGroup` component for split menu items ([PR #21095](https://github.com/microsoft/fluentui/pull/21095) by lingfangao@hotmail.com)
|
52
|
+
- Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
|
19
53
|
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
20
|
-
-
|
21
|
-
-
|
22
|
-
- Bump @fluentui/
|
23
|
-
- Bump @fluentui/react-
|
24
|
-
- Bump @fluentui/react-
|
25
|
-
- Bump @fluentui/react-
|
26
|
-
- Bump @fluentui/react-
|
27
|
-
- Bump @fluentui/react-
|
28
|
-
- Bump @fluentui/
|
29
|
-
- Bump @fluentui/
|
30
|
-
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
54
|
+
- remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
|
55
|
+
- breaking: MenuTrigger must be the first child of the `Menu` ([PR #21096](https://github.com/microsoft/fluentui/pull/21096) by lingfangao@hotmail.com)
|
56
|
+
- Bump @fluentui/keyboard-keys to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
57
|
+
- Bump @fluentui/react-context-selector to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
58
|
+
- Bump @fluentui/react-portal to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
59
|
+
- Bump @fluentui/react-positioning to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
60
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
61
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
62
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
63
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
31
64
|
|
32
65
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
|
33
66
|
|
package/Spec.md
CHANGED
@@ -619,7 +619,7 @@ const menu = (
|
|
619
619
|
|
620
620
|
```html
|
621
621
|
<!-- expected DOM output -->
|
622
|
-
<button aria-haspopup="
|
622
|
+
<button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
|
623
623
|
<div role="menu" aria-labelledby="trigger">
|
624
624
|
<div role="menuitem" tabindex="0">Option 1</div>
|
625
625
|
<div role="menuitem" tabindex="-1">Option 2</div>
|
@@ -644,7 +644,7 @@ const menu = (
|
|
644
644
|
|
645
645
|
```html
|
646
646
|
<!-- expected DOM output -->
|
647
|
-
<button aria-haspopup="
|
647
|
+
<button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
|
648
648
|
<div role="menu" aria-labelledby="trigger">
|
649
649
|
<div role="menuitem" tabindex="0">
|
650
650
|
<span role="presentation"><svg>FileIcon</svg></span>
|
@@ -682,7 +682,7 @@ const menu = (
|
|
682
682
|
|
683
683
|
```html
|
684
684
|
<!-- expected DOM output -->
|
685
|
-
<button aria-haspopup="
|
685
|
+
<button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
|
686
686
|
<div role="menu" aria-labelledby="trigger">
|
687
687
|
<div role="menuitem" tabindex="0">Option 1</div>
|
688
688
|
<div role="separator" aria-hidden="true"></div>
|
@@ -719,7 +719,7 @@ const menu = (
|
|
719
719
|
|
720
720
|
```html
|
721
721
|
<!-- expected DOM output -->
|
722
|
-
<button aria-haspopup="
|
722
|
+
<button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
|
723
723
|
<div role="menu" aria-labelledby="trigger">
|
724
724
|
<div role="menuitem" tabindex="0">Option 1</div>
|
725
725
|
<div role="separator" aria-hidden="true"></div>
|
@@ -758,10 +758,10 @@ const menu = (
|
|
758
758
|
|
759
759
|
```html
|
760
760
|
<!-- expected DOM output -->
|
761
|
-
<button aria-haspopup="
|
761
|
+
<button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
|
762
762
|
<div role="menu" aria-labelledby="trigger">
|
763
763
|
<div role="menuitem" tabindex="0">Option 1</div>
|
764
|
-
<div role="menuitem" tabindex="-1" aria-haspopup="
|
764
|
+
<div role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" id="submenu-trigger">Open submenu</div>
|
765
765
|
</div>
|
766
766
|
|
767
767
|
<!-- expected DOM output for submenu -->
|
@@ -843,7 +843,7 @@ const menuSelectableSections = (
|
|
843
843
|
```
|
844
844
|
|
845
845
|
```html
|
846
|
-
<button aria-haspopup="
|
846
|
+
<button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
|
847
847
|
|
848
848
|
<!-- expected DOM output for basic checkbox -->
|
849
849
|
<div role="menu" aria-labelledby="trigger">
|
@@ -882,9 +882,12 @@ const menuSplitbutton= (
|
|
882
882
|
<MenuList>
|
883
883
|
<MenuItem>Option 1</MenuItem>
|
884
884
|
<Menu>
|
885
|
-
<
|
886
|
-
<
|
887
|
-
|
885
|
+
<MenuSplitGroup>
|
886
|
+
<MenuItem>Main action</MenuItem>
|
887
|
+
<MenuTrigger>
|
888
|
+
<MenuItem />
|
889
|
+
</MenuTrigger>
|
890
|
+
</MenuSplitGroup>
|
888
891
|
<MenuItem>Option 1</MenuItem>
|
889
892
|
<MenuItem>Option 2</MenuItem>
|
890
893
|
<MenuItem>Option 3</MenuItem>
|
@@ -897,7 +900,7 @@ const menuSplitbutton= (
|
|
897
900
|
```html
|
898
901
|
<div role="menu" aria-labelledby="trigger">
|
899
902
|
<div role="menuitem" tabindex="0">Option 1</div>
|
900
|
-
<div role="menuitem" tabindex="-1" aria-haspopup="
|
903
|
+
<div role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" id="submenu-trigger">Open submenu</div>
|
901
904
|
</div>
|
902
905
|
|
903
906
|
<!-- expected DOM output -->
|
@@ -905,7 +908,7 @@ const menuSplitbutton= (
|
|
905
908
|
<div role="menuitem" tabindex="0">Option 1</div>
|
906
909
|
<div role="group">
|
907
910
|
<div role="menuitem" tabindex="-1">content slot</div>
|
908
|
-
<div role="menuitem" tabindex="-1" aria-haspopup="
|
911
|
+
<div role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" id="submenu-trgger">
|
909
912
|
<svg>indicator icon</svg>
|
910
913
|
</div>
|
911
914
|
</div>
|
@@ -958,11 +961,13 @@ Below is a set of diagrams that tries to illustrates all the interactions menus
|
|
958
961
|
|
959
962
|
All of the above Mouse events seen previously should apply to the part of the split button that is intended to open a submenu.
|
960
963
|
|
961
|
-
|
962
|
-
|
963
|
-
![Using up/down arrow key](./etc/images/splitbutton-up-down.jpg)
|
964
|
+
> TODO convert these diagrams to excalidraw or smth that is text format
|
965
|
+
> TODO add extra descriptions to diagrams
|
964
966
|
|
965
|
-
|
967
|
+
<img src="./etc/images/menu-interactions/Slide19.PNG" width="700" />
|
968
|
+
<img src="./etc/images/menu-interactions/Slide20.PNG" width="700" />
|
969
|
+
<img src="./etc/images/menu-interactions/Slide21.PNG" width="700" />
|
970
|
+
<img src="./etc/images/menu-interactions/Slide22.PNG" width="700" />
|
966
971
|
|
967
972
|
### MenuItem selection
|
968
973
|
|