@fluentui/react-menu 0.0.0-nightly003de9a95220220111.1 → 0.0.0-nightly0bc161458e20220126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +83 -35
- package/CHANGELOG.md +21 -16
- package/dist/react-menu.d.ts +56 -64
- package/lib/components/Menu/Menu.js +6 -6
- package/lib/components/Menu/Menu.js.map +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 +6 -5
- 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/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 +2 -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/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/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 +2 -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/renderMenuItem.d.ts +1 -1
- package/lib/components/MenuItem/renderMenuItem.js +2 -3
- 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 +10 -19
- package/lib/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.js +11 -7
- 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 +2 -3
- 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 +2 -3
- 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/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/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 +2 -2
- package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js +6 -6
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +2 -3
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +4 -8
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +3 -8
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +3 -2
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.d.ts +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.js +7 -6
- package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
- 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 -1
- package/lib/components/MenuTrigger/useMenuTrigger.js +177 -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/selectable/useCheckmarkStyles.d.ts +1 -1
- 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/components/Menu/Menu.js +3 -3
- package/lib-commonjs/components/Menu/Menu.js.map +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 +7 -6
- 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/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 +6 -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/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/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 +6 -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/renderMenuItem.d.ts +1 -1
- package/lib-commonjs/components/MenuItem/renderMenuItem.js +4 -6
- 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 +10 -19
- 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 +18 -14
- 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 +4 -6
- 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 +4 -6
- 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/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/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 +6 -6
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +3 -3
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +4 -6
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +4 -8
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +6 -11
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +8 -6
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -6
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
- 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 -1
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +186 -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/selectable/useCheckmarkStyles.d.ts +1 -1
- 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 +12 -14
- 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,15 +2,15 @@
|
|
|
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, 26 Jan 2022 04:16:47 GMT",
|
|
6
|
+
"tag": "@fluentui/react-menu_v0.0.0-nightly0bc161458e20220126.1",
|
|
7
|
+
"version": "0.0.0-nightly0bc161458e20220126.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": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c",
|
|
14
14
|
"comment": "Release nightly v9"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
@@ -25,12 +25,36 @@
|
|
|
25
25
|
"commit": "6ca0355f6740f836ff4df009687718a380085247",
|
|
26
26
|
"comment": "fix: Focus on first menu item on click"
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"author": "lingfangao@hotmail.com",
|
|
30
|
+
"package": "@fluentui/react-menu",
|
|
31
|
+
"commit": "4f22b6dad04ea37eb53e4af23c73d2de4db512a2",
|
|
32
|
+
"comment": "fix: MenuTrigger should work correctly when `aria-disabled=\"true\"`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "lingfangao@hotmail.com",
|
|
36
|
+
"package": "@fluentui/react-menu",
|
|
37
|
+
"commit": "d2eb57808a403b70845a732a62b55aa64d66b2a0",
|
|
38
|
+
"comment": "Allow `MenuTrigger` to be wrapped by another trigger"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "behowell@microsoft.com",
|
|
42
|
+
"package": "@fluentui/react-menu",
|
|
43
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
|
44
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
|
45
|
+
},
|
|
28
46
|
{
|
|
29
47
|
"author": "Humberto.Morimoto@microsoft.com",
|
|
30
48
|
"package": "@fluentui/react-menu",
|
|
31
49
|
"commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
|
|
32
50
|
"comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
|
|
33
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"author": "behowell@microsoft.com",
|
|
54
|
+
"package": "@fluentui/react-menu",
|
|
55
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
|
56
|
+
"comment": "Remove component's shorthandProps array"
|
|
57
|
+
},
|
|
34
58
|
{
|
|
35
59
|
"author": "olfedias@microsoft.com",
|
|
36
60
|
"package": "@fluentui/react-menu",
|
|
@@ -43,12 +67,30 @@
|
|
|
43
67
|
"commit": "4121754498bba5137f769295e2b7a2899f557278",
|
|
44
68
|
"comment": "fix: Call `useCheckmarkStyles` in `useMenuItemStyles`"
|
|
45
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
72
|
+
"package": "@fluentui/react-menu",
|
|
73
|
+
"commit": "6c32d0180e89674a46daf795de69e5dc6ca71ef7",
|
|
74
|
+
"comment": "Updating based on removal of functions from makeStyles."
|
|
75
|
+
},
|
|
46
76
|
{
|
|
47
77
|
"author": "Humberto.Morimoto@microsoft.com",
|
|
48
78
|
"package": "@fluentui/react-menu",
|
|
49
79
|
"commit": "227e09f59026e2bd243422427d9e230d6aa892ca",
|
|
50
80
|
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
|
51
81
|
},
|
|
82
|
+
{
|
|
83
|
+
"author": "olfedias@microsoft.com",
|
|
84
|
+
"package": "@fluentui/react-menu",
|
|
85
|
+
"commit": "d8fe0da13e1d34028a51e5d740e7bdc78c3a6862",
|
|
86
|
+
"comment": "use Griffel packages"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "behowell@microsoft.com",
|
|
90
|
+
"package": "@fluentui/react-menu",
|
|
91
|
+
"commit": "23b8a6df449d6e76b90ae5ca9bd2285febdff222",
|
|
92
|
+
"comment": "Apply fontSize styling to icon slot"
|
|
93
|
+
},
|
|
52
94
|
{
|
|
53
95
|
"author": "ololubek@microsoft.com",
|
|
54
96
|
"package": "@fluentui/react-menu",
|
|
@@ -61,6 +103,12 @@
|
|
|
61
103
|
"commit": "95a6a32cbffa9d86d6017cf8e0204d4b459ef370",
|
|
62
104
|
"comment": "feat: implement `MenuSplitGroup` component for split menu items"
|
|
63
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
108
|
+
"package": "@fluentui/react-menu",
|
|
109
|
+
"commit": "00a5d945904c896a0664de6ba72c145a255f0848",
|
|
110
|
+
"comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
|
|
111
|
+
},
|
|
64
112
|
{
|
|
65
113
|
"author": "ololubek@microsoft.com",
|
|
66
114
|
"package": "@fluentui/react-menu",
|
|
@@ -76,76 +124,76 @@
|
|
|
76
124
|
{
|
|
77
125
|
"author": "beachball",
|
|
78
126
|
"package": "@fluentui/react-menu",
|
|
79
|
-
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-
|
|
80
|
-
"commit": "
|
|
127
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly0bc161458e20220126.1",
|
|
128
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
81
129
|
},
|
|
82
130
|
{
|
|
83
131
|
"author": "beachball",
|
|
84
132
|
"package": "@fluentui/react-menu",
|
|
85
|
-
"comment": "Bump @fluentui/react-context-selector to v0.0.0-
|
|
86
|
-
"commit": "
|
|
133
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly0bc161458e20220126.1",
|
|
134
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
87
135
|
},
|
|
88
136
|
{
|
|
89
137
|
"author": "beachball",
|
|
90
138
|
"package": "@fluentui/react-menu",
|
|
91
|
-
"comment": "Bump @fluentui/react-
|
|
92
|
-
"commit": "
|
|
139
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightly0bc161458e20220126.1",
|
|
140
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
93
141
|
},
|
|
94
142
|
{
|
|
95
143
|
"author": "beachball",
|
|
96
144
|
"package": "@fluentui/react-menu",
|
|
97
|
-
"comment": "Bump @fluentui/react-
|
|
98
|
-
"commit": "
|
|
145
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightly0bc161458e20220126.1",
|
|
146
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
99
147
|
},
|
|
100
148
|
{
|
|
101
149
|
"author": "beachball",
|
|
102
150
|
"package": "@fluentui/react-menu",
|
|
103
|
-
"comment": "Bump @fluentui/react-
|
|
104
|
-
"commit": "
|
|
151
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly0bc161458e20220126.1",
|
|
152
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
105
153
|
},
|
|
106
154
|
{
|
|
107
155
|
"author": "beachball",
|
|
108
156
|
"package": "@fluentui/react-menu",
|
|
109
|
-
"comment": "Bump @fluentui/react-
|
|
110
|
-
"commit": "
|
|
157
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1",
|
|
158
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
111
159
|
},
|
|
112
160
|
{
|
|
113
161
|
"author": "beachball",
|
|
114
162
|
"package": "@fluentui/react-menu",
|
|
115
|
-
"comment": "Bump @fluentui/react-
|
|
116
|
-
"commit": "
|
|
163
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1",
|
|
164
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
117
165
|
},
|
|
118
166
|
{
|
|
119
167
|
"author": "beachball",
|
|
120
168
|
"package": "@fluentui/react-menu",
|
|
121
|
-
"comment": "Bump @fluentui/react-
|
|
122
|
-
"commit": "
|
|
123
|
-
}
|
|
169
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1",
|
|
170
|
+
"commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"none": [
|
|
124
174
|
{
|
|
125
|
-
"author": "
|
|
175
|
+
"author": "email not defined",
|
|
126
176
|
"package": "@fluentui/react-menu",
|
|
127
|
-
"
|
|
128
|
-
"
|
|
177
|
+
"commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
|
|
178
|
+
"comment": "Add workaround for cypress bug"
|
|
129
179
|
},
|
|
130
180
|
{
|
|
131
|
-
"author": "
|
|
181
|
+
"author": "olfedias@microsoft.com",
|
|
132
182
|
"package": "@fluentui/react-menu",
|
|
133
|
-
"
|
|
134
|
-
"
|
|
183
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
|
184
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
|
135
185
|
},
|
|
136
|
-
{
|
|
137
|
-
"author": "beachball",
|
|
138
|
-
"package": "@fluentui/react-menu",
|
|
139
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1",
|
|
140
|
-
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"none": [
|
|
144
186
|
{
|
|
145
187
|
"author": "elcraig@microsoft.com",
|
|
146
188
|
"package": "@fluentui/react-menu",
|
|
147
189
|
"commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
|
|
148
190
|
"comment": "Update API file to version generated by typescript 4.3"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"author": "martinhochel@microsoft.com",
|
|
194
|
+
"package": "@fluentui/react-menu",
|
|
195
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
|
196
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
|
149
197
|
}
|
|
150
198
|
]
|
|
151
199
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,38 +1,43 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 26 Jan 2022 04:16:47 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightly0bc161458e20220126.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightly0bc161458e20220126.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-
|
|
9
|
+
Wed, 26 Jan 2022 04:16:47 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightly0bc161458e20220126.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by email not defined)
|
|
15
15
|
- fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
|
|
16
16
|
- fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
|
|
17
|
+
- fix: MenuTrigger should work correctly when `aria-disabled="true"` ([PR #21349](https://github.com/microsoft/fluentui/pull/21349) by lingfangao@hotmail.com)
|
|
18
|
+
- Allow `MenuTrigger` to be wrapped by another trigger ([PR #21225](https://github.com/microsoft/fluentui/pull/21225) by lingfangao@hotmail.com)
|
|
19
|
+
- 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)
|
|
17
20
|
- 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)
|
|
21
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
|
18
22
|
- update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
|
|
19
23
|
- fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
|
|
24
|
+
- Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
|
|
20
25
|
- 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)
|
|
26
|
+
- use Griffel packages ([PR #21391](https://github.com/microsoft/fluentui/pull/21391) by olfedias@microsoft.com)
|
|
27
|
+
- Apply fontSize styling to icon slot ([PR #21222](https://github.com/microsoft/fluentui/pull/21222) by behowell@microsoft.com)
|
|
21
28
|
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
|
22
29
|
- feat: implement `MenuSplitGroup` component for split menu items ([PR #21095](https://github.com/microsoft/fluentui/pull/21095) by lingfangao@hotmail.com)
|
|
30
|
+
- 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)
|
|
23
31
|
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
|
24
32
|
- breaking: MenuTrigger must be the first child of the `Menu` ([PR #21096](https://github.com/microsoft/fluentui/pull/21096) by lingfangao@hotmail.com)
|
|
25
|
-
- Bump @fluentui/keyboard-keys to v0.0.0-
|
|
26
|
-
- Bump @fluentui/react-context-selector to v0.0.0-
|
|
27
|
-
- Bump @fluentui/react-
|
|
28
|
-
- Bump @fluentui/react-
|
|
29
|
-
- Bump @fluentui/react-
|
|
30
|
-
- Bump @fluentui/react-
|
|
31
|
-
- Bump @fluentui/react-
|
|
32
|
-
- Bump @fluentui/react-
|
|
33
|
-
- Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
|
34
|
-
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
|
35
|
-
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
|
33
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
34
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
35
|
+
- Bump @fluentui/react-portal to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
36
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
37
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
38
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
39
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
40
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
|
|
36
41
|
|
|
37
42
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
|
|
38
43
|
|
package/dist/react-menu.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export declare type MenuContextValues = {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Define a styled MenuDivider, using the `
|
|
76
|
+
* Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
|
|
77
77
|
*/
|
|
78
78
|
export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
|
|
79
79
|
|
|
@@ -88,7 +88,7 @@ export declare type MenuDividerSlots = {
|
|
|
88
88
|
export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* Define a styled MenuGroup, using the `
|
|
91
|
+
* Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
|
|
92
92
|
*/
|
|
93
93
|
export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
|
|
94
94
|
|
|
@@ -112,7 +112,7 @@ export declare type MenuGroupContextValues = {
|
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Define a styled MenuGroupHeader, using the `
|
|
115
|
+
* Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
|
|
116
116
|
*/
|
|
117
117
|
export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
|
|
118
118
|
|
|
@@ -140,12 +140,12 @@ export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* Define a styled MenuItem, using the `
|
|
143
|
+
* Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
|
|
144
144
|
*/
|
|
145
145
|
export declare const MenuItem: ForwardRefComponent<MenuItemProps>;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* Define a styled MenuItemCheckbox, using the `
|
|
148
|
+
* Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox_unstable` hook.
|
|
149
149
|
*/
|
|
150
150
|
export declare const MenuItemCheckbox: ForwardRefComponent<MenuItemCheckboxProps>;
|
|
151
151
|
|
|
@@ -175,7 +175,7 @@ declare type MenuItemCommons = {
|
|
|
175
175
|
export declare type MenuItemProps = ComponentProps<Partial<MenuItemSlots>> & MenuItemCommons;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* Define a styled MenuItemRadio, using the `
|
|
178
|
+
* Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.
|
|
179
179
|
*/
|
|
180
180
|
export declare const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;
|
|
181
181
|
|
|
@@ -245,15 +245,10 @@ export declare type MenuItemSlots = {
|
|
|
245
245
|
secondaryContent?: IntrinsicShorthandProps<'span'>;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
/**
|
|
249
|
-
* Consts listing which props are shorthand props.
|
|
250
|
-
*/
|
|
251
|
-
export declare const menuItemSlots: Array<keyof MenuItemSlots>;
|
|
252
|
-
|
|
253
248
|
export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemCommons;
|
|
254
249
|
|
|
255
250
|
/**
|
|
256
|
-
* Define a styled MenuList, using the `
|
|
251
|
+
* Define a styled MenuList, using the `useMenuList_unstable` hook.
|
|
257
252
|
*/
|
|
258
253
|
export declare const MenuList: ForwardRefComponent<MenuListProps>;
|
|
259
254
|
|
|
@@ -400,11 +395,6 @@ export declare type MenuSplitGroupCommons = {};
|
|
|
400
395
|
*/
|
|
401
396
|
export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
|
|
402
397
|
|
|
403
|
-
/**
|
|
404
|
-
* Array of all shorthand properties listed in MenuSplitGroupSlots
|
|
405
|
-
*/
|
|
406
|
-
export declare const menuSplitGroupShorthandProps: (keyof MenuSplitGroupSlots)[];
|
|
407
|
-
|
|
408
398
|
export declare type MenuSplitGroupSlots = {
|
|
409
399
|
root: IntrinsicShorthandProps<'div'>;
|
|
410
400
|
};
|
|
@@ -457,12 +447,12 @@ export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
|
|
|
457
447
|
* Wraps a trigger element as an only child
|
|
458
448
|
* and adds the necessary event handling to open a popup menu
|
|
459
449
|
*/
|
|
460
|
-
export declare const MenuTrigger: React_2.
|
|
450
|
+
export declare const MenuTrigger: React_2.ForwardRefExoticComponent<MenuTriggerProps & React_2.RefAttributes<HTMLElement>>;
|
|
461
451
|
|
|
462
452
|
/**
|
|
463
453
|
* Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
|
|
464
454
|
*/
|
|
465
|
-
export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
|
|
455
|
+
export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
|
|
466
456
|
ref?: React_2.Ref<never>;
|
|
467
457
|
'aria-expanded': boolean | undefined;
|
|
468
458
|
};
|
|
@@ -478,66 +468,68 @@ export declare type MenuTriggerProps = {
|
|
|
478
468
|
}) | ((props: MenuTriggerChildProps) => React_2.ReactNode);
|
|
479
469
|
};
|
|
480
470
|
|
|
481
|
-
export declare type MenuTriggerState =
|
|
471
|
+
export declare type MenuTriggerState = {
|
|
472
|
+
children: React_2.ReactNode;
|
|
473
|
+
};
|
|
482
474
|
|
|
483
475
|
/**
|
|
484
476
|
* Render the final JSX of Menu
|
|
485
477
|
*/
|
|
486
|
-
export declare const
|
|
478
|
+
export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
|
|
487
479
|
|
|
488
480
|
/**
|
|
489
481
|
* Redefine the render function to add slots. Reuse the menudivider structure but add
|
|
490
482
|
* slots to children.
|
|
491
483
|
*/
|
|
492
|
-
export declare const
|
|
484
|
+
export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
|
|
493
485
|
|
|
494
486
|
/**
|
|
495
487
|
* Redefine the render function to add slots. Reuse the menugroup structure but add
|
|
496
488
|
* slots to children.
|
|
497
489
|
*/
|
|
498
|
-
export declare const
|
|
490
|
+
export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
|
|
499
491
|
|
|
500
492
|
/**
|
|
501
493
|
* Redefine the render function to add slots. Reuse the menugroupheader structure but add
|
|
502
494
|
* slots to children.
|
|
503
495
|
*/
|
|
504
|
-
export declare const
|
|
496
|
+
export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
|
|
505
497
|
|
|
506
498
|
/**
|
|
507
499
|
* Function that renders the final JSX of the component
|
|
508
500
|
*/
|
|
509
|
-
export declare const
|
|
501
|
+
export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
|
|
510
502
|
|
|
511
503
|
/** Function that renders the final JSX of the component */
|
|
512
|
-
export declare const
|
|
504
|
+
export declare const renderMenuItemCheckbox_unstable: (state: MenuItemCheckboxState) => JSX.Element;
|
|
513
505
|
|
|
514
506
|
/**
|
|
515
507
|
* Redefine the render function to add slots. Reuse the menuitemradio structure but add
|
|
516
508
|
* slots to children.
|
|
517
509
|
*/
|
|
518
|
-
export declare const
|
|
510
|
+
export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
|
|
519
511
|
|
|
520
512
|
/**
|
|
521
513
|
* Function that renders the final JSX of the component
|
|
522
514
|
*/
|
|
523
|
-
export declare const
|
|
515
|
+
export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
|
|
524
516
|
|
|
525
517
|
/**
|
|
526
518
|
* Render the final JSX of MenuPopover
|
|
527
519
|
*/
|
|
528
|
-
export declare const
|
|
520
|
+
export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
|
|
529
521
|
|
|
530
522
|
/**
|
|
531
523
|
* Render the final JSX of MenuSplitGroup
|
|
532
524
|
*/
|
|
533
|
-
export declare const
|
|
525
|
+
export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
|
|
534
526
|
|
|
535
527
|
/**
|
|
536
528
|
* Render the final JSX of MenuTrigger
|
|
537
529
|
*
|
|
538
530
|
* Only renders children
|
|
539
531
|
*/
|
|
540
|
-
export declare const
|
|
532
|
+
export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
|
|
541
533
|
|
|
542
534
|
export declare type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked: boolean) => void;
|
|
543
535
|
|
|
@@ -548,112 +540,112 @@ export declare type UninitializedMenuListState = Omit<MenuListState, 'setFocusBy
|
|
|
548
540
|
*
|
|
549
541
|
* @param state - should contain a `checkmark` slot
|
|
550
542
|
*/
|
|
551
|
-
export declare const
|
|
543
|
+
export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
|
|
552
544
|
|
|
553
545
|
/**
|
|
554
546
|
* Create the state required to render Menu.
|
|
555
547
|
*
|
|
556
548
|
* The returned state can be modified with hooks such as useMenuStyles,
|
|
557
|
-
* before being passed to
|
|
549
|
+
* before being passed to renderMenu_unstable.
|
|
558
550
|
*
|
|
559
551
|
* @param props - props from this instance of Menu
|
|
560
552
|
*/
|
|
561
|
-
export declare const
|
|
553
|
+
export declare const useMenu_unstable: (props: MenuProps) => MenuState;
|
|
562
554
|
|
|
563
|
-
export declare const
|
|
555
|
+
export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
|
|
564
556
|
|
|
565
|
-
export declare function
|
|
557
|
+
export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
|
|
566
558
|
|
|
567
559
|
/**
|
|
568
560
|
* Given user props, returns state and render function for a MenuDivider.
|
|
569
561
|
*/
|
|
570
|
-
export declare const
|
|
562
|
+
export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
|
|
571
563
|
|
|
572
|
-
export declare const
|
|
564
|
+
export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
|
|
573
565
|
|
|
574
566
|
/**
|
|
575
567
|
* Given user props, returns state and render function for a MenuGroup.
|
|
576
568
|
*/
|
|
577
|
-
export declare function
|
|
569
|
+
export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
|
|
578
570
|
|
|
579
|
-
export declare const
|
|
571
|
+
export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
|
|
580
572
|
|
|
581
|
-
export declare function
|
|
573
|
+
export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
|
|
582
574
|
|
|
583
575
|
/**
|
|
584
576
|
* Given user props, returns state and render function for a MenuGroupHeader.
|
|
585
577
|
*/
|
|
586
|
-
export declare function
|
|
578
|
+
export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
|
|
587
579
|
|
|
588
|
-
export declare const
|
|
580
|
+
export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
|
|
589
581
|
|
|
590
|
-
export declare const
|
|
582
|
+
export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
|
|
591
583
|
|
|
592
584
|
/**
|
|
593
585
|
* Returns the props and state required to render the component
|
|
594
586
|
*/
|
|
595
|
-
export declare const
|
|
587
|
+
export declare const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
|
|
596
588
|
|
|
597
589
|
/** Returns the props and state required to render the component */
|
|
598
|
-
export declare const
|
|
590
|
+
export declare const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
|
|
599
591
|
|
|
600
|
-
export declare const
|
|
592
|
+
export declare const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => void;
|
|
601
593
|
|
|
602
594
|
/**
|
|
603
595
|
* Given user props, returns state and render function for a MenuItemRadio.
|
|
604
596
|
*/
|
|
605
|
-
export declare const
|
|
597
|
+
export declare const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
|
|
606
598
|
|
|
607
|
-
export declare const
|
|
599
|
+
export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
|
|
608
600
|
|
|
609
601
|
/** Applies style classnames to slots */
|
|
610
|
-
export declare const
|
|
602
|
+
export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;
|
|
611
603
|
|
|
612
604
|
/**
|
|
613
605
|
* Returns the props and state required to render the component
|
|
614
606
|
*/
|
|
615
|
-
export declare const
|
|
607
|
+
export declare const useMenuList_unstable: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
|
|
616
608
|
|
|
617
|
-
export declare const
|
|
609
|
+
export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
|
|
618
610
|
|
|
619
|
-
export declare function
|
|
611
|
+
export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
|
|
620
612
|
|
|
621
613
|
/**
|
|
622
614
|
* Apply styling to the Menu slots based on the state
|
|
623
615
|
*/
|
|
624
|
-
export declare const
|
|
616
|
+
export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
|
|
625
617
|
|
|
626
618
|
/**
|
|
627
619
|
* Create the state required to render MenuPopover.
|
|
628
620
|
*
|
|
629
|
-
* The returned state can be modified with hooks such as
|
|
630
|
-
* before being passed to
|
|
621
|
+
* The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
|
|
622
|
+
* before being passed to renderMenuPopover_unstable.
|
|
631
623
|
*
|
|
632
624
|
* @param props - props from this instance of MenuPopover
|
|
633
625
|
* @param ref - reference to root HTMLElement of MenuPopover
|
|
634
626
|
*/
|
|
635
|
-
export declare const
|
|
627
|
+
export declare const useMenuPopover_unstable: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
|
|
636
628
|
|
|
637
629
|
/**
|
|
638
630
|
* Apply styling to the Menu slots based on the state
|
|
639
631
|
*/
|
|
640
|
-
export declare const
|
|
632
|
+
export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
|
|
641
633
|
|
|
642
634
|
/**
|
|
643
635
|
* Create the state required to render MenuSplitGroup.
|
|
644
636
|
*
|
|
645
|
-
* The returned state can be modified with hooks such as
|
|
646
|
-
* before being passed to
|
|
637
|
+
* The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
|
|
638
|
+
* before being passed to renderMenuSplitGroup_unstable.
|
|
647
639
|
*
|
|
648
640
|
* @param props - props from this instance of MenuSplitGroup
|
|
649
641
|
* @param ref - reference to root HTMLElement of MenuSplitGroup
|
|
650
642
|
*/
|
|
651
|
-
export declare const
|
|
643
|
+
export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
|
|
652
644
|
|
|
653
645
|
/**
|
|
654
646
|
* Apply styling to the MenuSplitGroup slots based on the state
|
|
655
647
|
*/
|
|
656
|
-
export declare const
|
|
648
|
+
export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
|
|
657
649
|
|
|
658
650
|
/**
|
|
659
651
|
* Create the state required to render MenuTrigger.
|
|
@@ -661,8 +653,8 @@ export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => Me
|
|
|
661
653
|
*
|
|
662
654
|
* @param props - props from this instance of MenuTrigger
|
|
663
655
|
*/
|
|
664
|
-
export declare const
|
|
656
|
+
export declare const useMenuTrigger_unstable: (props: MenuTriggerProps, ref: React_2.Ref<HTMLElement>) => MenuTriggerState;
|
|
665
657
|
|
|
666
|
-
export declare const
|
|
658
|
+
export declare const useMenuTriggerContext_unstable: () => boolean;
|
|
667
659
|
|
|
668
660
|
export { }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useMenu_unstable } from './useMenu';
|
|
2
|
+
import { useMenuContextValues_unstable } from './useMenuContextValues';
|
|
3
|
+
import { renderMenu_unstable } from './renderMenu';
|
|
4
4
|
/**
|
|
5
5
|
* Wrapper component that manages state for a popup MenuList and a MenuTrigger
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export const Menu = props => {
|
|
9
|
-
const state =
|
|
10
|
-
const contextValues =
|
|
11
|
-
return
|
|
9
|
+
const state = useMenu_unstable(props);
|
|
10
|
+
const contextValues = useMenuContextValues_unstable(state);
|
|
11
|
+
return renderMenu_unstable(state, contextValues);
|
|
12
12
|
};
|
|
13
13
|
Menu.displayName = 'Menu';
|
|
14
14
|
//# sourceMappingURL=Menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,mBAAT,QAAoC,cAApC;AAGA;;AAEG;;AACH,OAAO,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,CAA9B;AACA,QAAM,aAAa,GAAG,6BAA6B,CAAC,KAAD,CAAnD;AAEA,SAAO,mBAAmB,CAAC,KAAD,EAAQ,aAAR,CAA1B;AACD,CALM;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
|
|
@@ -2,4 +2,4 @@ import type { MenuContextValues, MenuState } from './Menu.types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Render the final JSX of Menu
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
|