@fluentui/react-menu 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.11
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +1053 -27
- package/CHANGELOG.md +371 -137
- package/Spec.md +21 -16
- package/dist/{react-menu.d.ts → index.d.ts} +249 -170
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/Menu.js.map +1 -1
- package/lib/MenuDivider.js.map +1 -1
- package/lib/MenuGroup.js.map +1 -1
- package/lib/MenuGroupHeader.js.map +1 -1
- package/lib/MenuItem.js.map +1 -1
- package/lib/MenuItemCheckbox.js.map +1 -1
- package/lib/MenuItemRadio.js.map +1 -1
- package/lib/MenuList.js.map +1 -1
- package/lib/MenuPopover.js.map +1 -1
- package/lib/MenuSplitGroup.js +2 -0
- package/lib/MenuSplitGroup.js.map +1 -0
- package/lib/MenuTrigger.js.map +1 -1
- package/lib/components/Menu/Menu.js +7 -7
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/Menu.types.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/Menu/renderMenu.js +1 -1
- package/lib/components/Menu/renderMenu.js.map +1 -1
- package/lib/components/Menu/useMenu.js +121 -130
- package/lib/components/Menu/useMenu.js.map +1 -1
- package/lib/components/Menu/useMenuContextValues.js +35 -33
- package/lib/components/Menu/useMenuContextValues.js.map +1 -1
- package/lib/components/MenuDivider/MenuDivider.js +8 -8
- package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib/components/MenuDivider/index.js.map +1 -1
- package/lib/components/MenuDivider/renderMenuDivider.js +7 -7
- package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/useMenuDivider.js +9 -7
- package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
- package/lib/components/MenuDivider/useMenuDividerStyles.js +9 -5
- package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.js +10 -8
- package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.types.js.map +1 -1
- package/lib/components/MenuGroup/index.js +1 -0
- package/lib/components/MenuGroup/index.js.map +1 -1
- package/lib/components/MenuGroup/renderMenuGroup.js +7 -7
- package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroup.js +10 -7
- package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroupContextValues.js +8 -8
- package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
- package/lib/components/MenuGroup/useMenuGroupStyles.js +9 -0
- package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
- package/lib/components/MenuGroupHeader/MenuGroupHeader.js +8 -8
- package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
- package/lib/components/MenuGroupHeader/index.js.map +1 -1
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +7 -7
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +13 -8
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +9 -5
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +8 -10
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.types.js.map +1 -1
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/MenuItem/renderMenuItem.js +12 -8
- package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useCharacterSearch.js +7 -7
- package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
- package/lib/components/MenuItem/useMenuItem.js +37 -44
- package/lib/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.js +56 -17
- package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +8 -8
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
- package/lib/components/MenuItemCheckbox/index.js +1 -0
- package/lib/components/MenuItemCheckbox/index.js.map +1 -1
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +11 -8
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +14 -15
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +31 -5
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.js +8 -8
- package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
- package/lib/components/MenuItemRadio/index.js +1 -0
- package/lib/components/MenuItemRadio/index.js.map +1 -1
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js +11 -8
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadio.js +14 -14
- package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +31 -5
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
- package/lib/components/MenuList/MenuList.js +10 -10
- package/lib/components/MenuList/MenuList.js.map +1 -1
- package/lib/components/MenuList/MenuList.types.js.map +1 -1
- package/lib/components/MenuList/index.js.map +1 -1
- package/lib/components/MenuList/renderMenuList.js +7 -7
- package/lib/components/MenuList/renderMenuList.js.map +1 -1
- package/lib/components/MenuList/useMenuList.js +71 -88
- package/lib/components/MenuList/useMenuList.js.map +1 -1
- package/lib/components/MenuList/useMenuListContextValues.js +19 -17
- package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
- package/lib/components/MenuList/useMenuListStyles.js +11 -7
- package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.js +7 -7
- package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.types.js.map +1 -1
- package/lib/components/MenuPopover/index.js.map +1 -1
- package/lib/components/MenuPopover/renderMenuPopover.js +9 -7
- package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopover.js +35 -41
- package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopoverStyles.js +15 -8
- package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
- package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -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.js +6 -0
- package/lib/components/MenuSplitGroup/index.js.map +1 -0
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
- package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +37 -0
- package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
- package/lib/components/MenuTrigger/MenuTrigger.js +6 -5
- package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
- package/lib/components/MenuTrigger/index.js.map +1 -1
- package/lib/components/MenuTrigger/renderMenuTrigger.js +2 -2
- package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
- package/lib/components/MenuTrigger/useMenuTrigger.js +167 -5
- package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/contexts/menuContext.js +5 -11
- package/lib/contexts/menuContext.js.map +1 -1
- package/lib/contexts/menuGroupContext.js +3 -5
- package/lib/contexts/menuGroupContext.js.map +1 -1
- package/lib/contexts/menuListContext.js +7 -17
- package/lib/contexts/menuListContext.js.map +1 -1
- package/lib/contexts/menuTriggerContext.js +4 -6
- package/lib/contexts/menuTriggerContext.js.map +1 -1
- package/lib/index.js +16 -15
- package/lib/index.js.map +1 -1
- package/lib/selectable/index.js.map +1 -1
- package/lib/selectable/types.js.map +1 -1
- package/lib/selectable/useCheckmarkStyles.js +4 -4
- package/lib/selectable/useCheckmarkStyles.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/useIsSubmenu.js +3 -5
- package/lib/utils/useIsSubmenu.js.map +1 -1
- package/lib/utils/useOnMenuEnter.js +16 -14
- package/lib/utils/useOnMenuEnter.js.map +1 -1
- package/lib-commonjs/Menu.js +1 -1
- package/lib-commonjs/Menu.js.map +1 -1
- package/lib-commonjs/MenuDivider.js +1 -1
- package/lib-commonjs/MenuDivider.js.map +1 -1
- package/lib-commonjs/MenuGroup.js +1 -1
- package/lib-commonjs/MenuGroup.js.map +1 -1
- package/lib-commonjs/MenuGroupHeader.js +1 -1
- package/lib-commonjs/MenuGroupHeader.js.map +1 -1
- package/lib-commonjs/MenuItem.js +1 -1
- package/lib-commonjs/MenuItem.js.map +1 -1
- package/lib-commonjs/MenuItemCheckbox.js +1 -1
- package/lib-commonjs/MenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/MenuItemRadio.js +1 -1
- package/lib-commonjs/MenuItemRadio.js.map +1 -1
- package/lib-commonjs/MenuList.js +1 -1
- package/lib-commonjs/MenuList.js.map +1 -1
- package/lib-commonjs/MenuPopover.js +1 -1
- package/lib-commonjs/MenuPopover.js.map +1 -1
- package/lib-commonjs/MenuSplitGroup.js +10 -0
- package/lib-commonjs/MenuSplitGroup.js.map +1 -0
- package/lib-commonjs/MenuTrigger.js +1 -1
- package/lib-commonjs/MenuTrigger.js.map +1 -1
- package/lib-commonjs/components/Menu/Menu.js +7 -7
- package/lib-commonjs/components/Menu/Menu.js.map +1 -1
- package/lib-commonjs/components/Menu/Menu.types.js.map +1 -1
- package/lib-commonjs/components/Menu/index.js +1 -1
- package/lib-commonjs/components/Menu/index.js.map +1 -1
- package/lib-commonjs/components/Menu/renderMenu.js +5 -5
- package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
- package/lib-commonjs/components/Menu/useMenu.js +131 -142
- package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
- package/lib-commonjs/components/Menu/useMenuContextValues.js +37 -35
- package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.js +9 -9
- package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/index.js +1 -1
- package/lib-commonjs/components/MenuDivider/index.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +11 -12
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDivider.js +12 -11
- package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +13 -7
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.js +12 -9
- package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/MenuGroup.types.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/index.js +3 -1
- package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +12 -13
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroup.js +13 -11
- package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +11 -11
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +20 -0
- package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +9 -9
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/index.js +1 -1
- package/lib-commonjs/components/MenuGroupHeader/index.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +11 -12
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +16 -12
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +13 -7
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.js +9 -12
- package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.types.js.map +1 -1
- package/lib-commonjs/components/MenuItem/index.js +1 -1
- package/lib-commonjs/components/MenuItem/index.js.map +1 -1
- package/lib-commonjs/components/MenuItem/renderMenuItem.js +16 -14
- package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useCharacterSearch.js +7 -7
- package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItem.js +45 -53
- package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +63 -20
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +9 -9
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/index.js +3 -1
- package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +15 -14
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +19 -21
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +35 -7
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +9 -9
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/index.js +3 -1
- package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +15 -14
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +19 -20
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +35 -7
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.js +11 -11
- package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.types.js.map +1 -1
- package/lib-commonjs/components/MenuList/index.js +1 -1
- package/lib-commonjs/components/MenuList/index.js.map +1 -1
- package/lib-commonjs/components/MenuList/renderMenuList.js +12 -13
- package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuList.js +78 -96
- package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListContextValues.js +21 -19
- package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListStyles.js +14 -9
- package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.js +8 -8
- package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/index.js +1 -1
- package/lib-commonjs/components/MenuPopover/index.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +14 -13
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopover.js +43 -50
- package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +19 -10
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- 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.js +6 -0
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -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.js +26 -0
- package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -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.js +49 -0
- package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -5
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/index.js +1 -1
- package/lib-commonjs/components/MenuTrigger/index.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +6 -6
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +175 -7
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
- package/lib-commonjs/components/index.js +1 -1
- package/lib-commonjs/components/index.js.map +1 -1
- package/lib-commonjs/contexts/menuContext.js +6 -12
- package/lib-commonjs/contexts/menuContext.js.map +1 -1
- package/lib-commonjs/contexts/menuGroupContext.js +5 -7
- package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
- package/lib-commonjs/contexts/menuListContext.js +8 -18
- package/lib-commonjs/contexts/menuListContext.js.map +1 -1
- package/lib-commonjs/contexts/menuTriggerContext.js +6 -8
- package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
- package/lib-commonjs/index.js +412 -16
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/selectable/index.js +1 -1
- package/lib-commonjs/selectable/index.js.map +1 -1
- package/lib-commonjs/selectable/types.js.map +1 -1
- package/lib-commonjs/selectable/useCheckmarkStyles.js +7 -7
- package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
- package/lib-commonjs/utils/index.js +1 -1
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/useIsSubmenu.js +5 -7
- package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
- package/lib-commonjs/utils/useOnMenuEnter.js +18 -16
- package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
- package/package.json +25 -29
- package/lib/Menu.d.ts +0 -1
- package/lib/MenuDivider.d.ts +0 -1
- package/lib/MenuGroup.d.ts +0 -1
- package/lib/MenuGroupHeader.d.ts +0 -1
- package/lib/MenuItem.d.ts +0 -1
- package/lib/MenuItemCheckbox.d.ts +0 -1
- package/lib/MenuItemRadio.d.ts +0 -1
- package/lib/MenuList.d.ts +0 -1
- package/lib/MenuPopover.d.ts +0 -1
- package/lib/MenuTrigger.d.ts +0 -1
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib/common/mockUseMenuContext.d.ts +0 -7
- package/lib/common/mockUseMenuContext.js +0 -36
- package/lib/common/mockUseMenuContext.js.map +0 -1
- package/lib/components/Menu/Menu.d.ts +0 -6
- package/lib/components/Menu/Menu.types.d.ts +0 -112
- package/lib/components/Menu/index.d.ts +0 -5
- package/lib/components/Menu/renderMenu.d.ts +0 -5
- package/lib/components/Menu/useMenu.d.ts +0 -10
- package/lib/components/Menu/useMenuContextValues.d.ts +0 -2
- package/lib/components/MenuDivider/MenuDivider.d.ts +0 -6
- package/lib/components/MenuDivider/MenuDivider.types.d.ts +0 -6
- package/lib/components/MenuDivider/index.d.ts +0 -5
- package/lib/components/MenuDivider/renderMenuDivider.d.ts +0 -6
- package/lib/components/MenuDivider/useMenuDivider.d.ts +0 -6
- package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +0 -2
- package/lib/components/MenuGroup/MenuGroup.d.ts +0 -6
- package/lib/components/MenuGroup/MenuGroup.types.d.ts +0 -15
- package/lib/components/MenuGroup/index.d.ts +0 -5
- package/lib/components/MenuGroup/renderMenuGroup.d.ts +0 -6
- package/lib/components/MenuGroup/useMenuGroup.d.ts +0 -6
- package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
- package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
- package/lib/components/MenuGroupHeader/index.d.ts +0 -5
- package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
- package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
- package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -2
- package/lib/components/MenuItem/MenuItem.d.ts +0 -6
- package/lib/components/MenuItem/MenuItem.types.d.ts +0 -43
- package/lib/components/MenuItem/index.d.ts +0 -5
- package/lib/components/MenuItem/renderMenuItem.d.ts +0 -5
- package/lib/components/MenuItem/useCharacterSearch.d.ts +0 -3
- package/lib/components/MenuItem/useMenuItem.d.ts +0 -10
- package/lib/components/MenuItem/useMenuItemStyles.d.ts +0 -3
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
- package/lib/components/MenuItemCheckbox/index.d.ts +0 -4
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
- package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
- package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -2
- package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
- package/lib/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
- package/lib/components/MenuItemRadio/index.d.ts +0 -4
- package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
- package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
- package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -2
- package/lib/components/MenuList/MenuList.d.ts +0 -6
- package/lib/components/MenuList/MenuList.types.d.ts +0 -53
- package/lib/components/MenuList/index.d.ts +0 -6
- package/lib/components/MenuList/renderMenuList.d.ts +0 -5
- package/lib/components/MenuList/useMenuList.d.ts +0 -6
- package/lib/components/MenuList/useMenuListContextValues.d.ts +0 -2
- package/lib/components/MenuList/useMenuListStyles.d.ts +0 -5
- package/lib/components/MenuPopover/MenuPopover.d.ts +0 -6
- package/lib/components/MenuPopover/MenuPopover.types.d.ts +0 -18
- package/lib/components/MenuPopover/index.d.ts +0 -5
- package/lib/components/MenuPopover/renderMenuPopover.d.ts +0 -5
- package/lib/components/MenuPopover/useMenuPopover.d.ts +0 -12
- package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -5
- package/lib/components/MenuTrigger/MenuTrigger.d.ts +0 -7
- package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +0 -16
- package/lib/components/MenuTrigger/index.d.ts +0 -4
- package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
- package/lib/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
- package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
- package/lib/components/MenuTrigger/useTriggerElement.js +0 -179
- package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/contexts/menuContext.d.ts +0 -16
- package/lib/contexts/menuGroupContext.d.ts +0 -13
- package/lib/contexts/menuListContext.d.ts +0 -15
- package/lib/contexts/menuTriggerContext.d.ts +0 -3
- package/lib/index.d.ts +0 -15
- package/lib/selectable/index.d.ts +0 -2
- package/lib/selectable/types.d.ts +0 -34
- package/lib/selectable/useCheckmarkStyles.d.ts +0 -8
- package/lib/utils/DefaultIcons.d.ts +0 -7
- package/lib/utils/DefaultIcons.js +0 -88
- package/lib/utils/DefaultIcons.js.map +0 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/useIsSubmenu.d.ts +0 -9
- package/lib/utils/useOnMenuEnter.d.ts +0 -23
- package/lib-commonjs/Menu.d.ts +0 -1
- package/lib-commonjs/MenuDivider.d.ts +0 -1
- package/lib-commonjs/MenuGroup.d.ts +0 -1
- package/lib-commonjs/MenuGroupHeader.d.ts +0 -1
- package/lib-commonjs/MenuItem.d.ts +0 -1
- package/lib-commonjs/MenuItemCheckbox.d.ts +0 -1
- package/lib-commonjs/MenuItemRadio.d.ts +0 -1
- package/lib-commonjs/MenuList.d.ts +0 -1
- package/lib-commonjs/MenuPopover.d.ts +0 -1
- package/lib-commonjs/MenuTrigger.d.ts +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
- package/lib-commonjs/common/mockUseMenuContext.js +0 -47
- package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
- package/lib-commonjs/components/Menu/Menu.d.ts +0 -6
- package/lib-commonjs/components/Menu/Menu.types.d.ts +0 -112
- package/lib-commonjs/components/Menu/index.d.ts +0 -5
- package/lib-commonjs/components/Menu/renderMenu.d.ts +0 -5
- package/lib-commonjs/components/Menu/useMenu.d.ts +0 -10
- package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +0 -2
- package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/index.d.ts +0 -5
- package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +0 -6
- package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +0 -2
- package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +0 -15
- package/lib-commonjs/components/MenuGroup/index.d.ts +0 -5
- package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +0 -6
- package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/index.d.ts +0 -5
- package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
- package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -2
- package/lib-commonjs/components/MenuItem/MenuItem.d.ts +0 -6
- package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +0 -43
- package/lib-commonjs/components/MenuItem/index.d.ts +0 -5
- package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +0 -5
- package/lib-commonjs/components/MenuItem/useCharacterSearch.d.ts +0 -3
- package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +0 -10
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +0 -3
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
- package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
- package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +0 -4
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
- package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -2
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
- package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
- package/lib-commonjs/components/MenuItemRadio/index.d.ts +0 -4
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
- package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -2
- package/lib-commonjs/components/MenuList/MenuList.d.ts +0 -6
- package/lib-commonjs/components/MenuList/MenuList.types.d.ts +0 -53
- package/lib-commonjs/components/MenuList/index.d.ts +0 -6
- package/lib-commonjs/components/MenuList/renderMenuList.d.ts +0 -5
- package/lib-commonjs/components/MenuList/useMenuList.d.ts +0 -6
- package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +0 -2
- package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +0 -5
- package/lib-commonjs/components/MenuPopover/MenuPopover.d.ts +0 -6
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +0 -18
- package/lib-commonjs/components/MenuPopover/index.d.ts +0 -5
- package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +0 -5
- package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +0 -12
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -5
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +0 -7
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +0 -16
- package/lib-commonjs/components/MenuTrigger/index.d.ts +0 -4
- package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
- package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
- package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
- package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -195
- package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
- package/lib-commonjs/components/index.d.ts +0 -2
- package/lib-commonjs/contexts/menuContext.d.ts +0 -16
- package/lib-commonjs/contexts/menuGroupContext.d.ts +0 -13
- package/lib-commonjs/contexts/menuListContext.d.ts +0 -15
- package/lib-commonjs/contexts/menuTriggerContext.d.ts +0 -3
- package/lib-commonjs/index.d.ts +0 -15
- package/lib-commonjs/selectable/index.d.ts +0 -2
- package/lib-commonjs/selectable/types.d.ts +0 -34
- package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +0 -8
- package/lib-commonjs/utils/DefaultIcons.d.ts +0 -7
- package/lib-commonjs/utils/DefaultIcons.js +0 -100
- package/lib-commonjs/utils/DefaultIcons.js.map +0 -1
- package/lib-commonjs/utils/index.d.ts +0 -1
- package/lib-commonjs/utils/useIsSubmenu.d.ts +0 -9
- package/lib-commonjs/utils/useOnMenuEnter.d.ts +0 -23
@@ -1,53 +1,27 @@
|
|
1
|
-
import { ComponentProps } from '@fluentui/react-utilities';
|
2
|
-
import { ComponentState } from '@fluentui/react-utilities';
|
3
|
-
import type { Context } from '@fluentui/react-context-selector';
|
1
|
+
import type { ComponentProps } from '@fluentui/react-utilities';
|
2
|
+
import type { ComponentState } from '@fluentui/react-utilities';
|
4
3
|
import type { ContextSelector } from '@fluentui/react-context-selector';
|
4
|
+
import type { FluentTriggerComponent } from '@fluentui/react-utilities';
|
5
5
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
6
|
-
import {
|
7
|
-
import { PositioningShorthand } from '@fluentui/react-positioning';
|
6
|
+
import type { PositioningShorthand } from '@fluentui/react-positioning';
|
8
7
|
import * as React_2 from 'react';
|
9
|
-
import {
|
8
|
+
import type { Slot } from '@fluentui/react-utilities';
|
9
|
+
import type { SlotClassNames } from '@fluentui/react-utilities';
|
10
|
+
import { usePositioningMouseTarget } from '@fluentui/react-positioning';
|
10
11
|
|
11
12
|
/**
|
12
13
|
* Wrapper component that manages state for a popup MenuList and a MenuTrigger
|
13
14
|
*/
|
14
15
|
export declare const Menu: React_2.FC<MenuProps>;
|
15
16
|
|
16
|
-
declare type
|
17
|
-
/**
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Call back when the component requests to change value
|
23
|
-
* The `open` value is used as a hint when directly controlling the component
|
24
|
-
*/
|
25
|
-
onOpenChange?: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
|
26
|
-
/**
|
27
|
-
* Whether the popup is open by default
|
28
|
-
*/
|
29
|
-
defaultOpen?: boolean;
|
30
|
-
openOnHover: boolean;
|
31
|
-
/**
|
32
|
-
* Opens the menu on right click (context menu), removes all other menu open interactions
|
33
|
-
*/
|
34
|
-
openOnContext?: boolean;
|
35
|
-
/**
|
36
|
-
* Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order
|
37
|
-
* This option is disregarded for submenus
|
38
|
-
*/
|
39
|
-
inline?: boolean;
|
40
|
-
/**
|
41
|
-
* Do not dismiss the menu when a menu item is clicked
|
42
|
-
*/
|
43
|
-
persistOnItemClick?: boolean;
|
44
|
-
/**
|
45
|
-
* Sets the delay for mouse open/close for the popover one mouse enter/leave
|
46
|
-
*/
|
47
|
-
hoverDelay?: number;
|
17
|
+
export declare type MenuCheckedValueChangeData = {
|
18
|
+
/** The items for this value that are checked */
|
19
|
+
checkedItems: string[];
|
20
|
+
/** The name of the value */
|
21
|
+
name: string;
|
48
22
|
};
|
49
23
|
|
50
|
-
export declare
|
24
|
+
export declare type MenuCheckedValueChangeEvent = React_2.MouseEvent | React_2.KeyboardEvent;
|
51
25
|
|
52
26
|
/**
|
53
27
|
* Context shared between Menu and its children components
|
@@ -64,23 +38,27 @@ export declare type MenuContextValues = {
|
|
64
38
|
};
|
65
39
|
|
66
40
|
/**
|
67
|
-
* Define a styled MenuDivider, using the `
|
41
|
+
* Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
|
68
42
|
*/
|
69
43
|
export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
|
70
44
|
|
45
|
+
export declare const menuDividerClassNames: SlotClassNames<MenuDividerSlots>;
|
46
|
+
|
71
47
|
export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
|
72
48
|
|
73
49
|
export declare type MenuDividerSlots = {
|
74
|
-
root:
|
50
|
+
root: Slot<'div'>;
|
75
51
|
};
|
76
52
|
|
77
53
|
export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
|
78
54
|
|
79
55
|
/**
|
80
|
-
* Define a styled MenuGroup, using the `
|
56
|
+
* Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
|
81
57
|
*/
|
82
58
|
export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
|
83
59
|
|
60
|
+
export declare const menuGroupClassNames: SlotClassNames<MenuGroupSlots>;
|
61
|
+
|
84
62
|
export declare const MenuGroupContextProvider: React_2.Provider<MenuGroupContextValue>;
|
85
63
|
|
86
64
|
/**
|
@@ -99,14 +77,16 @@ export declare type MenuGroupContextValues = {
|
|
99
77
|
};
|
100
78
|
|
101
79
|
/**
|
102
|
-
* Define a styled MenuGroupHeader, using the `
|
80
|
+
* Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
|
103
81
|
*/
|
104
82
|
export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
|
105
83
|
|
84
|
+
export declare const menuGroupHeaderClassNames: SlotClassNames<MenuGroupHeaderSlots>;
|
85
|
+
|
106
86
|
export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
|
107
87
|
|
108
88
|
export declare type MenuGroupHeaderSlots = {
|
109
|
-
root:
|
89
|
+
root: Slot<'div'>;
|
110
90
|
};
|
111
91
|
|
112
92
|
export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
|
@@ -114,7 +94,7 @@ export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
|
|
114
94
|
export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
|
115
95
|
|
116
96
|
export declare type MenuGroupSlots = {
|
117
|
-
root:
|
97
|
+
root: Slot<'div'>;
|
118
98
|
};
|
119
99
|
|
120
100
|
export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
|
@@ -125,41 +105,51 @@ export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
|
|
125
105
|
};
|
126
106
|
|
127
107
|
/**
|
128
|
-
* Define a styled MenuItem, using the `
|
108
|
+
* Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
|
129
109
|
*/
|
130
110
|
export declare const MenuItem: ForwardRefComponent<MenuItemProps>;
|
131
111
|
|
132
112
|
/**
|
133
|
-
* Define a styled MenuItemCheckbox, using the `
|
113
|
+
* Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox_unstable` hook.
|
134
114
|
*/
|
135
115
|
export declare const MenuItemCheckbox: ForwardRefComponent<MenuItemCheckboxProps>;
|
136
116
|
|
117
|
+
export declare const menuItemCheckboxClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>>;
|
118
|
+
|
137
119
|
export declare type MenuItemCheckboxProps = MenuItemProps & MenuItemSelectableProps;
|
138
120
|
|
139
121
|
export declare type MenuItemCheckboxState = MenuItemState & MenuItemSelectableState;
|
140
122
|
|
141
|
-
declare
|
142
|
-
|
143
|
-
|
144
|
-
*/
|
145
|
-
hasSubmenu?: boolean;
|
123
|
+
export declare const menuItemClassNames: SlotClassNames<MenuItemSlots>;
|
124
|
+
|
125
|
+
export declare type MenuItemProps = ComponentProps<Partial<MenuItemSlots>> & {
|
146
126
|
/**
|
147
127
|
* Applies disabled styles to menu item but remains focusable
|
128
|
+
*
|
129
|
+
* @default false
|
148
130
|
*/
|
149
131
|
disabled?: boolean;
|
132
|
+
/**
|
133
|
+
* If the menu item is a trigger for a submenu
|
134
|
+
*
|
135
|
+
* @default false
|
136
|
+
*/
|
137
|
+
hasSubmenu?: boolean;
|
150
138
|
/**
|
151
139
|
* Clicking on the menu item will not dismiss an open menu
|
140
|
+
*
|
141
|
+
* @default false
|
152
142
|
*/
|
153
143
|
persistOnClick?: boolean;
|
154
144
|
};
|
155
145
|
|
156
|
-
export declare type MenuItemProps = ComponentProps<Partial<MenuItemSlots>> & MenuItemCommons;
|
157
|
-
|
158
146
|
/**
|
159
|
-
* Define a styled MenuItemRadio, using the `
|
147
|
+
* Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.
|
160
148
|
*/
|
161
149
|
export declare const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;
|
162
150
|
|
151
|
+
export declare const menuItemRadioClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>>;
|
152
|
+
|
163
153
|
export declare type MenuItemRadioProps = MenuItemProps & MenuItemSelectableProps;
|
164
154
|
|
165
155
|
export declare type MenuItemRadioState = MenuItemState & MenuItemSelectableState;
|
@@ -199,140 +189,131 @@ export declare type MenuItemSelectableState = MenuItemSelectableProps & {
|
|
199
189
|
};
|
200
190
|
|
201
191
|
export declare type MenuItemSlots = {
|
202
|
-
root:
|
192
|
+
root: Slot<'div'>;
|
203
193
|
/**
|
204
194
|
* Icon slot rendered before children content
|
205
195
|
*/
|
206
|
-
icon?:
|
196
|
+
icon?: Slot<'span'>;
|
207
197
|
/**
|
208
198
|
* A helper slot for alignment when a menu item is used with selectable menuitems
|
209
199
|
* Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
|
210
200
|
*/
|
211
|
-
checkmark?:
|
201
|
+
checkmark?: Slot<'span'>;
|
212
202
|
/**
|
213
203
|
* Icon slot that shows the indicator for a submenu
|
214
204
|
*/
|
215
|
-
submenuIndicator?:
|
205
|
+
submenuIndicator?: Slot<'span'>;
|
216
206
|
/**
|
217
207
|
* Component children are placed in this slot
|
218
208
|
* Avoid using the `children` property in this slot in favour of Component children whenever possible
|
219
209
|
*/
|
220
|
-
content
|
210
|
+
content?: Slot<'span'>;
|
221
211
|
/**
|
222
212
|
* Secondary content rendered opposite the primary content (e.g Shortcut text)
|
223
213
|
*/
|
224
|
-
secondaryContent?:
|
214
|
+
secondaryContent?: Slot<'span'>;
|
225
215
|
};
|
226
216
|
|
217
|
+
export declare type MenuItemState = ComponentState<MenuItemSlots> & Pick<MenuItemProps, 'disabled' | 'hasSubmenu' | 'persistOnClick'>;
|
218
|
+
|
227
219
|
/**
|
228
|
-
*
|
220
|
+
* Define a styled MenuList, using the `useMenuList_unstable` hook.
|
229
221
|
*/
|
230
|
-
export declare const
|
222
|
+
export declare const MenuList: ForwardRefComponent<MenuListProps>;
|
231
223
|
|
232
|
-
export declare
|
224
|
+
export declare const menuListClassNames: SlotClassNames<MenuListSlots>;
|
233
225
|
|
234
226
|
/**
|
235
|
-
*
|
227
|
+
* Context shared between MenuList and its children components
|
236
228
|
*/
|
237
|
-
export declare
|
229
|
+
export declare type MenuListContextValue = Pick<MenuListProps, 'checkedValues' | 'onCheckedValueChange' | 'hasIcons' | 'hasCheckmarks'> & {
|
230
|
+
setFocusByFirstCharacter?: (e: React_2.KeyboardEvent<HTMLElement>, itemEl: HTMLElement) => void;
|
231
|
+
toggleCheckbox?: SelectableHandler;
|
232
|
+
selectRadio?: SelectableHandler;
|
233
|
+
};
|
238
234
|
|
239
|
-
export declare type
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
* @param data - A data object with relevant information
|
245
|
-
*/
|
246
|
-
onCheckedValueChange?: (e: React_2.MouseEvent | React_2.KeyboardEvent, data: {
|
247
|
-
/** The name of the value */
|
248
|
-
name: string;
|
249
|
-
/** The items for this value that are checked */
|
250
|
-
checkedItems: string[];
|
251
|
-
}) => void;
|
235
|
+
export declare type MenuListContextValues = {
|
236
|
+
menuList: MenuListContextValue;
|
237
|
+
};
|
238
|
+
|
239
|
+
export declare type MenuListProps = ComponentProps<MenuListSlots> & {
|
252
240
|
/**
|
253
241
|
* Map of all checked values
|
254
242
|
*/
|
255
|
-
checkedValues
|
243
|
+
checkedValues?: Record<string, string[]>;
|
256
244
|
/**
|
257
245
|
* Default values to be checked on mount
|
258
246
|
*/
|
259
247
|
defaultCheckedValues?: Record<string, string[]>;
|
248
|
+
/**
|
249
|
+
* States that menu items can contain selectable items and reserve slots for item alignment
|
250
|
+
*/
|
251
|
+
hasCheckmarks?: boolean;
|
260
252
|
/**
|
261
253
|
* States that menu items can contain icons and reserve slots for item alignment
|
262
254
|
*/
|
263
255
|
hasIcons?: boolean;
|
264
256
|
/**
|
265
|
-
*
|
257
|
+
* Callback when checked items change for value with a name
|
258
|
+
*
|
259
|
+
* @param event - React's original SyntheticEvent
|
260
|
+
* @param data - A data object with relevant information
|
266
261
|
*/
|
267
|
-
|
262
|
+
onCheckedValueChange?: (e: MenuCheckedValueChangeEvent, data: MenuCheckedValueChangeData) => void;
|
268
263
|
};
|
269
264
|
|
270
|
-
export declare const MenuListContext: Context<MenuListContextValue>;
|
271
|
-
|
272
|
-
/**
|
273
|
-
* Context shared between MenuList and its children components
|
274
|
-
*/
|
275
|
-
export declare type MenuListContextValue = Pick<MenuListProps, 'checkedValues' | 'onCheckedValueChange' | 'hasIcons' | 'hasCheckmarks'> & {
|
276
|
-
setFocusByFirstCharacter?: (e: React_2.KeyboardEvent<HTMLElement>, itemEl: HTMLElement) => void;
|
277
|
-
toggleCheckbox?: SelectableHandler;
|
278
|
-
selectRadio?: SelectableHandler;
|
279
|
-
};
|
280
|
-
|
281
|
-
export declare type MenuListContextValues = {
|
282
|
-
menuList: MenuListContextValue;
|
283
|
-
};
|
284
|
-
|
285
|
-
export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<MenuListCommons>;
|
286
|
-
|
287
265
|
export declare const MenuListProvider: React_2.Provider<MenuListContextValue> & React_2.FC<React_2.ProviderProps<MenuListContextValue>>;
|
288
266
|
|
289
267
|
export declare type MenuListSlots = {
|
290
|
-
root:
|
268
|
+
root: Slot<'div'>;
|
291
269
|
};
|
292
270
|
|
293
|
-
export declare type MenuListState = ComponentState<MenuListSlots> &
|
271
|
+
export declare type MenuListState = ComponentState<MenuListSlots> & Pick<MenuListProps, 'defaultCheckedValues' | 'onCheckedValueChange'> & Required<Pick<MenuListProps, 'checkedValues' | 'hasCheckmarks' | 'hasIcons'>> & {
|
272
|
+
/**
|
273
|
+
* Selects a radio item, will de-select the currently selected ratio item
|
274
|
+
*/
|
275
|
+
selectRadio: SelectableHandler;
|
294
276
|
/**
|
295
277
|
* Callback to set focus on the next menu item by first character
|
296
278
|
*/
|
297
279
|
setFocusByFirstCharacter: NonNullable<MenuListContextValue['setFocusByFirstCharacter']>;
|
298
280
|
toggleCheckbox: SelectableHandler;
|
299
|
-
/**
|
300
|
-
* Selects a radio item, will de-select the currently selected ratio item
|
301
|
-
*/
|
302
|
-
selectRadio: SelectableHandler;
|
303
281
|
};
|
304
282
|
|
305
283
|
/**
|
306
284
|
* Data attached to open/close events
|
307
285
|
*/
|
308
|
-
export declare type MenuOpenChangeData =
|
309
|
-
/**
|
310
|
-
* Indicates whether the change of state was a keyboard interaction
|
311
|
-
*/
|
312
|
-
keyboard?: boolean;
|
286
|
+
export declare type MenuOpenChangeData = {
|
313
287
|
/**
|
314
288
|
* indicates whether the request for the open state was bubbled from a nested menu
|
315
289
|
*/
|
316
290
|
bubble?: boolean;
|
291
|
+
/**
|
292
|
+
* Indicates whether the change of state was a keyboard interaction
|
293
|
+
*/
|
294
|
+
keyboard?: boolean;
|
295
|
+
open: boolean;
|
317
296
|
};
|
318
297
|
|
319
298
|
/**
|
320
299
|
* The supported events that will trigger open/close of the menu
|
321
300
|
*/
|
322
|
-
export declare type MenuOpenEvents = MouseEvent | TouchEvent | React_2.
|
301
|
+
export declare type MenuOpenEvents = MouseEvent | TouchEvent | React_2.FocusEvent<HTMLElement> | React_2.KeyboardEvent<HTMLElement> | React_2.MouseEvent<HTMLElement>;
|
323
302
|
|
324
303
|
/**
|
325
304
|
* Popover intended to wrap `MenuList` and adds styling and interaction support specific to menus
|
326
305
|
*/
|
327
306
|
export declare const MenuPopover: ForwardRefComponent<MenuPopoverProps>;
|
328
307
|
|
308
|
+
export declare const menuPopoverClassNames: SlotClassNames<MenuPopoverSlots>;
|
309
|
+
|
329
310
|
/**
|
330
311
|
* MenuPopover Props
|
331
312
|
*/
|
332
313
|
export declare type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;
|
333
314
|
|
334
315
|
export declare type MenuPopoverSlots = {
|
335
|
-
root:
|
316
|
+
root: Slot<'div'>;
|
336
317
|
};
|
337
318
|
|
338
319
|
/**
|
@@ -349,12 +330,58 @@ export declare type MenuPopoverState = ComponentState<MenuPopoverSlots> & {
|
|
349
330
|
/**
|
350
331
|
* Extends and drills down Menulist props to simplify API
|
351
332
|
*/
|
352
|
-
export declare type MenuProps =
|
333
|
+
export declare type MenuProps = ComponentProps<MenuSlots> & Pick<MenuListProps, 'checkedValues' | 'defaultCheckedValues' | 'hasCheckmarks' | 'hasIcons' | 'onCheckedValueChange'> & {
|
353
334
|
/**
|
354
335
|
* Can contain two children including {@link MenuTrigger} and {@link MenuPopover}.
|
355
336
|
* Alternatively can only contain {@link MenuPopover} if using a custom `target`.
|
356
337
|
*/
|
357
338
|
children: [JSX.Element, JSX.Element] | JSX.Element;
|
339
|
+
/**
|
340
|
+
* Whether the popup is open by default
|
341
|
+
*
|
342
|
+
* @default false
|
343
|
+
*/
|
344
|
+
defaultOpen?: boolean;
|
345
|
+
/**
|
346
|
+
* Sets the delay for mouse open/close for the popover one mouse enter/leave
|
347
|
+
*/
|
348
|
+
hoverDelay?: number;
|
349
|
+
/**
|
350
|
+
* Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order
|
351
|
+
* This option is disregarded for submenus
|
352
|
+
*
|
353
|
+
* @default false
|
354
|
+
*/
|
355
|
+
inline?: boolean;
|
356
|
+
/**
|
357
|
+
* Call back when the component requests to change value
|
358
|
+
* The `open` value is used as a hint when directly controlling the component
|
359
|
+
*/
|
360
|
+
onOpenChange?: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
|
361
|
+
/**
|
362
|
+
* Whether the popup is open
|
363
|
+
*
|
364
|
+
* @default false
|
365
|
+
*/
|
366
|
+
open?: boolean;
|
367
|
+
/**
|
368
|
+
* Opens the menu on right click (context menu), removes all other menu open interactions
|
369
|
+
*
|
370
|
+
* @default false
|
371
|
+
*/
|
372
|
+
openOnContext?: boolean;
|
373
|
+
/**
|
374
|
+
* Opens the menu on hover
|
375
|
+
*
|
376
|
+
* @default false
|
377
|
+
*/
|
378
|
+
openOnHover?: boolean;
|
379
|
+
/**
|
380
|
+
* Do not dismiss the menu when a menu item is clicked
|
381
|
+
*
|
382
|
+
* @default false
|
383
|
+
*/
|
384
|
+
persistOnItemClick?: boolean;
|
358
385
|
/**
|
359
386
|
* Configures the positioned menu
|
360
387
|
*/
|
@@ -365,56 +392,78 @@ export declare const MenuProvider: React_2.Provider<MenuContextValue> & React_2.
|
|
365
392
|
|
366
393
|
export declare type MenuSlots = {};
|
367
394
|
|
368
|
-
|
395
|
+
/**
|
396
|
+
* Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
|
397
|
+
*/
|
398
|
+
export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
|
399
|
+
|
400
|
+
export declare const menuSplitGroupClassNames: SlotClassNames<MenuSplitGroupSlots>;
|
401
|
+
|
402
|
+
/**
|
403
|
+
* MenuSplitGroup Props
|
404
|
+
*/
|
405
|
+
export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots>;
|
406
|
+
|
407
|
+
export declare type MenuSplitGroupSlots = {
|
408
|
+
root: Slot<'div'>;
|
409
|
+
};
|
410
|
+
|
411
|
+
/**
|
412
|
+
* State used in rendering MenuSplitGroup
|
413
|
+
*/
|
414
|
+
export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots>;
|
415
|
+
|
416
|
+
export declare type MenuState = ComponentState<MenuSlots> & Pick<MenuProps, 'defaultCheckedValues' | 'hasCheckmarks' | 'hasIcons' | 'inline' | 'onOpenChange' | 'openOnContext' | 'persistOnItemClick'> & Required<Pick<MenuProps, 'checkedValues' | 'onCheckedValueChange' | 'open' | 'openOnHover'>> & {
|
369
417
|
/**
|
370
|
-
*
|
418
|
+
* Anchors the popper to the mouse click for context events
|
371
419
|
*/
|
372
|
-
|
420
|
+
contextTarget: ReturnType<typeof usePositioningMouseTarget>[0];
|
373
421
|
/**
|
374
|
-
*
|
422
|
+
* Whether this menu is a submenu
|
375
423
|
*/
|
376
|
-
|
424
|
+
isSubmenu: boolean;
|
377
425
|
/**
|
378
426
|
* Internal react node that just simplifies handling children
|
379
427
|
*/
|
380
|
-
|
428
|
+
menuPopover: React_2.ReactNode;
|
381
429
|
/**
|
382
430
|
* The ref for the popup
|
383
431
|
*/
|
384
432
|
menuPopoverRef: React_2.MutableRefObject<HTMLElement>;
|
385
433
|
/**
|
386
|
-
*
|
434
|
+
* Internal react node that just simplifies handling children
|
387
435
|
*/
|
388
|
-
|
436
|
+
menuTrigger: React_2.ReactNode;
|
389
437
|
/**
|
390
|
-
*
|
438
|
+
* A callback to set the target of the popper to the mouse click for context events
|
391
439
|
*/
|
392
|
-
|
440
|
+
setContextTarget: ReturnType<typeof usePositioningMouseTarget>[1];
|
393
441
|
/**
|
394
|
-
*
|
442
|
+
* Callback to open/close the popup
|
395
443
|
*/
|
396
|
-
|
444
|
+
setOpen: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
|
397
445
|
/**
|
398
|
-
*
|
446
|
+
* Id for the MenuTrigger element for aria relationship
|
399
447
|
*/
|
400
|
-
|
448
|
+
triggerId: string;
|
401
449
|
/**
|
402
|
-
*
|
450
|
+
* The ref for the MenuTrigger, used for popup positioning
|
403
451
|
*/
|
404
|
-
|
452
|
+
triggerRef: React_2.MutableRefObject<HTMLElement>;
|
405
453
|
};
|
406
454
|
|
407
455
|
/**
|
408
456
|
* Wraps a trigger element as an only child
|
409
457
|
* and adds the necessary event handling to open a popup menu
|
410
458
|
*/
|
411
|
-
export declare const MenuTrigger: React_2.FC<MenuTriggerProps
|
459
|
+
export declare const MenuTrigger: React_2.FC<MenuTriggerProps> & FluentTriggerComponent;
|
412
460
|
|
413
461
|
/**
|
414
462
|
* Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
|
415
463
|
*/
|
416
|
-
export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | '
|
464
|
+
export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
|
417
465
|
ref?: React_2.Ref<never>;
|
466
|
+
'aria-expanded': boolean | undefined;
|
418
467
|
};
|
419
468
|
|
420
469
|
export declare const MenuTriggerContextProvider: React_2.Provider<boolean>;
|
@@ -425,158 +474,188 @@ export declare type MenuTriggerProps = {
|
|
425
474
|
*/
|
426
475
|
children: (React_2.ReactElement & {
|
427
476
|
ref?: React_2.Ref<unknown>;
|
428
|
-
}) | ((props: MenuTriggerChildProps) => React_2.
|
477
|
+
}) | ((props: MenuTriggerChildProps) => React_2.ReactElement | null);
|
429
478
|
};
|
430
479
|
|
431
|
-
export declare type MenuTriggerState =
|
480
|
+
export declare type MenuTriggerState = {
|
481
|
+
children: React_2.ReactElement | null;
|
482
|
+
isSubmenu: boolean;
|
483
|
+
};
|
432
484
|
|
433
485
|
/**
|
434
486
|
* Render the final JSX of Menu
|
435
487
|
*/
|
436
|
-
export declare const
|
488
|
+
export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
|
437
489
|
|
438
490
|
/**
|
439
491
|
* Redefine the render function to add slots. Reuse the menudivider structure but add
|
440
492
|
* slots to children.
|
441
493
|
*/
|
442
|
-
export declare const
|
494
|
+
export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
|
443
495
|
|
444
496
|
/**
|
445
497
|
* Redefine the render function to add slots. Reuse the menugroup structure but add
|
446
498
|
* slots to children.
|
447
499
|
*/
|
448
|
-
export declare const
|
500
|
+
export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
|
449
501
|
|
450
502
|
/**
|
451
503
|
* Redefine the render function to add slots. Reuse the menugroupheader structure but add
|
452
504
|
* slots to children.
|
453
505
|
*/
|
454
|
-
export declare const
|
506
|
+
export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
|
455
507
|
|
456
508
|
/**
|
457
509
|
* Function that renders the final JSX of the component
|
458
510
|
*/
|
459
|
-
export declare const
|
511
|
+
export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
|
460
512
|
|
461
513
|
/** Function that renders the final JSX of the component */
|
462
|
-
export declare const
|
514
|
+
export declare const renderMenuItemCheckbox_unstable: (state: MenuItemCheckboxState) => JSX.Element;
|
463
515
|
|
464
516
|
/**
|
465
517
|
* Redefine the render function to add slots. Reuse the menuitemradio structure but add
|
466
518
|
* slots to children.
|
467
519
|
*/
|
468
|
-
export declare const
|
520
|
+
export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
|
469
521
|
|
470
522
|
/**
|
471
523
|
* Function that renders the final JSX of the component
|
472
524
|
*/
|
473
|
-
export declare const
|
525
|
+
export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
|
474
526
|
|
475
527
|
/**
|
476
528
|
* Render the final JSX of MenuPopover
|
477
529
|
*/
|
478
|
-
export declare const
|
530
|
+
export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
|
531
|
+
|
532
|
+
/**
|
533
|
+
* Render the final JSX of MenuSplitGroup
|
534
|
+
*/
|
535
|
+
export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
|
479
536
|
|
480
537
|
/**
|
481
538
|
* Render the final JSX of MenuTrigger
|
482
539
|
*
|
483
540
|
* Only renders children
|
484
541
|
*/
|
485
|
-
export declare const
|
542
|
+
export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
|
486
543
|
|
487
544
|
export declare type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked: boolean) => void;
|
488
545
|
|
489
|
-
export declare type UninitializedMenuListState = Omit<MenuListState, '
|
546
|
+
export declare type UninitializedMenuListState = Omit<MenuListState, 'checkedValues' | 'selectRadio' | 'setFocusByFirstCharacter' | 'toggleCheckbox'> & Partial<Pick<MenuListState, 'checkedValues'>>;
|
490
547
|
|
491
548
|
/**
|
492
549
|
* Applies styles to a checkmark slot for selectable menu items
|
493
550
|
*
|
494
551
|
* @param state - should contain a `checkmark` slot
|
495
552
|
*/
|
496
|
-
export declare const
|
553
|
+
export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
|
497
554
|
|
498
555
|
/**
|
499
556
|
* Create the state required to render Menu.
|
500
557
|
*
|
501
558
|
* The returned state can be modified with hooks such as useMenuStyles,
|
502
|
-
* before being passed to
|
559
|
+
* before being passed to renderMenu_unstable.
|
503
560
|
*
|
504
561
|
* @param props - props from this instance of Menu
|
505
562
|
*/
|
506
|
-
export declare const
|
563
|
+
export declare const useMenu_unstable: (props: MenuProps) => MenuState;
|
507
564
|
|
508
|
-
export declare const
|
565
|
+
export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
|
509
566
|
|
510
|
-
export declare function
|
567
|
+
export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
|
511
568
|
|
512
569
|
/**
|
513
570
|
* Given user props, returns state and render function for a MenuDivider.
|
514
571
|
*/
|
515
|
-
export declare const
|
572
|
+
export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
|
516
573
|
|
517
|
-
export declare const
|
574
|
+
export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
|
518
575
|
|
519
576
|
/**
|
520
577
|
* Given user props, returns state and render function for a MenuGroup.
|
521
578
|
*/
|
522
|
-
export declare function
|
579
|
+
export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
|
523
580
|
|
524
|
-
export declare const
|
581
|
+
export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
|
525
582
|
|
526
|
-
export declare function
|
583
|
+
export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
|
527
584
|
|
528
585
|
/**
|
529
586
|
* Given user props, returns state and render function for a MenuGroupHeader.
|
530
587
|
*/
|
531
|
-
export declare function
|
588
|
+
export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
|
589
|
+
|
590
|
+
export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
|
532
591
|
|
533
|
-
export declare const
|
592
|
+
export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
|
534
593
|
|
535
594
|
/**
|
536
595
|
* Returns the props and state required to render the component
|
537
596
|
*/
|
538
|
-
export declare const
|
597
|
+
export declare const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
|
539
598
|
|
540
599
|
/** Returns the props and state required to render the component */
|
541
|
-
export declare const
|
600
|
+
export declare const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
|
601
|
+
|
602
|
+
export declare const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => void;
|
542
603
|
|
543
604
|
/**
|
544
605
|
* Given user props, returns state and render function for a MenuItemRadio.
|
545
606
|
*/
|
546
|
-
export declare const
|
607
|
+
export declare const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
|
608
|
+
|
609
|
+
export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
|
547
610
|
|
548
611
|
/** Applies style classnames to slots */
|
549
|
-
export declare const
|
612
|
+
export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;
|
550
613
|
|
551
614
|
/**
|
552
615
|
* Returns the props and state required to render the component
|
553
616
|
*/
|
554
|
-
export declare const
|
617
|
+
export declare const useMenuList_unstable: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
|
555
618
|
|
556
|
-
export declare const
|
619
|
+
export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
|
557
620
|
|
558
|
-
export declare function
|
621
|
+
export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
|
559
622
|
|
560
623
|
/**
|
561
624
|
* Apply styling to the Menu slots based on the state
|
562
625
|
*/
|
563
|
-
export declare const
|
626
|
+
export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
|
564
627
|
|
565
628
|
/**
|
566
629
|
* Create the state required to render MenuPopover.
|
567
630
|
*
|
568
|
-
* The returned state can be modified with hooks such as
|
569
|
-
* before being passed to
|
631
|
+
* The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
|
632
|
+
* before being passed to renderMenuPopover_unstable.
|
570
633
|
*
|
571
634
|
* @param props - props from this instance of MenuPopover
|
572
635
|
* @param ref - reference to root HTMLElement of MenuPopover
|
573
636
|
*/
|
574
|
-
export declare const
|
637
|
+
export declare const useMenuPopover_unstable: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
|
575
638
|
|
576
639
|
/**
|
577
640
|
* Apply styling to the Menu slots based on the state
|
578
641
|
*/
|
579
|
-
export declare const
|
642
|
+
export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
|
643
|
+
|
644
|
+
/**
|
645
|
+
* Create the state required to render MenuSplitGroup.
|
646
|
+
*
|
647
|
+
* The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
|
648
|
+
* before being passed to renderMenuSplitGroup_unstable.
|
649
|
+
*
|
650
|
+
* @param props - props from this instance of MenuSplitGroup
|
651
|
+
* @param ref - reference to root HTMLElement of MenuSplitGroup
|
652
|
+
*/
|
653
|
+
export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
|
654
|
+
|
655
|
+
/**
|
656
|
+
* Apply styling to the MenuSplitGroup slots based on the state
|
657
|
+
*/
|
658
|
+
export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
|
580
659
|
|
581
660
|
/**
|
582
661
|
* Create the state required to render MenuTrigger.
|
@@ -584,8 +663,8 @@ export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopo
|
|
584
663
|
*
|
585
664
|
* @param props - props from this instance of MenuTrigger
|
586
665
|
*/
|
587
|
-
export declare const
|
666
|
+
export declare const useMenuTrigger_unstable: (props: MenuTriggerProps) => MenuTriggerState;
|
588
667
|
|
589
|
-
export declare const
|
668
|
+
export declare const useMenuTriggerContext_unstable: () => boolean;
|
590
669
|
|
591
670
|
export { }
|