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