@fluentui/react-menu 9.13.1 → 9.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -2
- package/lib/components/MenuDivider/MenuDivider.types.js.map +1 -1
- package/lib/components/MenuGroup/MenuGroup.types.js.map +1 -1
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.types.js.map +1 -1
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
- package/lib/components/MenuItemLink/MenuItemLink.types.js +3 -1
- package/lib/components/MenuItemLink/MenuItemLink.types.js.map +1 -1
- package/lib/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.types.js +3 -1
- package/lib/components/MenuPopover/MenuPopover.types.js.map +1 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +3 -1
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
- package/lib-commonjs/components/MenuItemLink/MenuItemLink.types.js +3 -1
- package/lib-commonjs/components/MenuItemLink/MenuItemLink.types.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.js +3 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.js.map +1 -1
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +3 -1
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
- package/lib-commonjs/index.js +123 -123
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/useOnMenuEnter.js +3 -3
- package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,47 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 15 Mar 2024 21:37:57 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.13.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.13.3)
|
|
8
|
+
|
|
9
|
+
Fri, 15 Mar 2024 21:37:57 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.13.2..@fluentui/react-menu_v9.13.3)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Bump @fluentui/react-aria to v9.10.1 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
15
|
+
- Bump @fluentui/react-context-selector to v9.1.55 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
16
|
+
- Bump @fluentui/react-portal to v9.4.17 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
17
|
+
- Bump @fluentui/react-positioning to v9.14.1 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
18
|
+
- Bump @fluentui/react-shared-contexts to v9.15.1 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
19
|
+
- Bump @fluentui/react-tabster to v9.19.4 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
20
|
+
- Bump @fluentui/react-theme to v9.1.18 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
21
|
+
- Bump @fluentui/react-utilities to v9.18.4 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
22
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.33 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
|
23
|
+
|
|
24
|
+
## [9.13.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.13.2)
|
|
25
|
+
|
|
26
|
+
Thu, 07 Mar 2024 19:33:22 GMT
|
|
27
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.13.1..@fluentui/react-menu_v9.13.2)
|
|
28
|
+
|
|
29
|
+
### Patches
|
|
30
|
+
|
|
31
|
+
- chore: remove invalid peerDependency on scheduler ([PR #30587](https://github.com/microsoft/fluentui/pull/30587) by olfedias@microsoft.com)
|
|
32
|
+
- Bump @fluentui/react-aria to v9.10.0 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
33
|
+
- Bump @fluentui/react-context-selector to v9.1.54 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
34
|
+
- Bump @fluentui/react-portal to v9.4.16 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
35
|
+
- Bump @fluentui/react-positioning to v9.14.0 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
36
|
+
- Bump @fluentui/react-shared-contexts to v9.15.0 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
37
|
+
- Bump @fluentui/react-tabster to v9.19.3 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
38
|
+
- Bump @fluentui/react-theme to v9.1.17 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
39
|
+
- Bump @fluentui/react-utilities to v9.18.3 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
40
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.32 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
|
41
|
+
|
|
7
42
|
## [9.13.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.13.1)
|
|
8
43
|
|
|
9
|
-
Wed, 28 Feb 2024 02:
|
|
44
|
+
Wed, 28 Feb 2024 02:34:19 GMT
|
|
10
45
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.13.0..@fluentui/react-menu_v9.13.1)
|
|
11
46
|
|
|
12
47
|
### Patches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuDivider.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuDividerSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuDividerProps = ComponentProps<MenuDividerSlots>;\n\nexport type MenuDividerState = ComponentState<MenuDividerSlots>;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuDivider.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuDividerSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuDividerProps = ComponentProps<MenuDividerSlots>;\n\nexport type MenuDividerState = ComponentState<MenuDividerSlots>;\n"],"names":[],"mappings":"AAQA,WAAgE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuGroup.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { MenuGroupContextValue } from '../../contexts/menuGroupContext';\n\nexport type MenuGroupSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuGroupProps = ComponentProps<MenuGroupSlots>;\n\nexport type MenuGroupState = ComponentState<MenuGroupSlots> & {\n /**\n * id applied to the DOM element of `MenuGroupHeader`\n */\n headerId: string;\n};\n\nexport type MenuGroupContextValues = {\n menuGroup: MenuGroupContextValue;\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuGroup.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { MenuGroupContextValue } from '../../contexts/menuGroupContext';\n\nexport type MenuGroupSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuGroupProps = ComponentProps<MenuGroupSlots>;\n\nexport type MenuGroupState = ComponentState<MenuGroupSlots> & {\n /**\n * id applied to the DOM element of `MenuGroupHeader`\n */\n headerId: string;\n};\n\nexport type MenuGroupContextValues = {\n menuGroup: MenuGroupContextValue;\n};\n"],"names":[],"mappings":"AAgBA,WAEE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuGroupHeader.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuGroupHeaderSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;\n\nexport type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuGroupHeader.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuGroupHeaderSlots = {\n root: Slot<'div'>;\n};\n\nexport type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;\n\nexport type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;\n"],"names":[],"mappings":"AAQA,WAAwE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuItem.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuItemSlots = {\n root: Slot<'div'>;\n\n /**\n * Icon slot rendered before children content\n */\n icon?: Slot<'span'>;\n\n /**\n * A helper slot for alignment when a menu item is used with selectable menuitems\n * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components\n */\n checkmark?: Slot<'span'>;\n\n /**\n * Icon slot that shows the indicator for a submenu\n */\n submenuIndicator?: Slot<'span'>;\n\n /**\n * Component children are placed in this slot\n * Avoid using the `children` property in this slot in favour of Component children whenever possible\n */\n content?: Slot<'span'>;\n\n /**\n * Secondary content rendered opposite the primary content (e.g Shortcut text)\n */\n secondaryContent?: Slot<'span'>;\n};\n\nexport type MenuItemProps = Omit<ComponentProps<Partial<MenuItemSlots>>, 'content'> &\n Pick<Partial<MenuItemSlots>, 'content'> & {\n /**\n * If the menu item is a trigger for a submenu\n *\n * @default false\n */\n hasSubmenu?: boolean;\n\n /**\n * Clicking on the menu item will not dismiss an open menu\n *\n * @default false\n */\n persistOnClick?: boolean;\n\n disabled?: boolean;\n /**\n * @deprecated this property does nothing.\n * disabled focusable is by default by simply using `disabled` property\n */\n disabledFocusable?: boolean;\n };\n\nexport type MenuItemState = ComponentState<MenuItemSlots> &\n Required<Pick<MenuItemProps, 'disabled' | 'hasSubmenu' | 'persistOnClick'>>;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuItem.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuItemSlots = {\n root: Slot<'div'>;\n\n /**\n * Icon slot rendered before children content\n */\n icon?: Slot<'span'>;\n\n /**\n * A helper slot for alignment when a menu item is used with selectable menuitems\n * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components\n */\n checkmark?: Slot<'span'>;\n\n /**\n * Icon slot that shows the indicator for a submenu\n */\n submenuIndicator?: Slot<'span'>;\n\n /**\n * Component children are placed in this slot\n * Avoid using the `children` property in this slot in favour of Component children whenever possible\n */\n content?: Slot<'span'>;\n\n /**\n * Secondary content rendered opposite the primary content (e.g Shortcut text)\n */\n secondaryContent?: Slot<'span'>;\n};\n\nexport type MenuItemProps = Omit<ComponentProps<Partial<MenuItemSlots>>, 'content'> &\n Pick<Partial<MenuItemSlots>, 'content'> & {\n /**\n * If the menu item is a trigger for a submenu\n *\n * @default false\n */\n hasSubmenu?: boolean;\n\n /**\n * Clicking on the menu item will not dismiss an open menu\n *\n * @default false\n */\n persistOnClick?: boolean;\n\n disabled?: boolean;\n /**\n * @deprecated this property does nothing.\n * disabled focusable is by default by simply using `disabled` property\n */\n disabledFocusable?: boolean;\n };\n\nexport type MenuItemState = ComponentState<MenuItemSlots> &\n Required<Pick<MenuItemProps, 'disabled' | 'hasSubmenu' | 'persistOnClick'>>;\n"],"names":[],"mappings":"AAyDA,WAC8E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuItemCheckbox.types.ts"],"sourcesContent":["import type { MenuItemSelectableProps, MenuItemSelectableState } from '../../selectable/index';\nimport type { MenuItemProps, MenuItemState } from '../MenuItem/MenuItem.types';\n\nexport type MenuItemCheckboxProps = MenuItemProps & MenuItemSelectableProps;\n\nexport type MenuItemCheckboxState = MenuItemState & MenuItemSelectableState;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuItemCheckbox.types.ts"],"sourcesContent":["import type { MenuItemSelectableProps, MenuItemSelectableState } from '../../selectable/index';\nimport type { MenuItemProps, MenuItemState } from '../MenuItem/MenuItem.types';\n\nexport type MenuItemCheckboxProps = MenuItemProps & MenuItemSelectableProps;\n\nexport type MenuItemCheckboxState = MenuItemState & MenuItemSelectableState;\n"],"names":[],"mappings":"AAKA,WAA4E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuItemLink.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { MenuItemProps, MenuItemSlots } from '../MenuItem/MenuItem.types';\n\nexport type MenuItemLinkSlots = {\n root: Slot<'a'>;\n} & Pick<MenuItemSlots, 'icon' | 'content' | 'secondaryContent' | 'checkmark'>;\n\n/**\n * MenuItemLink Props\n */\nexport type MenuItemLinkProps = ComponentProps<MenuItemLinkSlots> & Pick<MenuItemProps, 'disabled'> & { href: string };\n\n/**\n * State used in rendering MenuItemLink\n */\nexport type MenuItemLinkState = ComponentState<MenuItemLinkSlots>;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuItemLink.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { MenuItemProps, MenuItemSlots } from '../MenuItem/MenuItem.types';\n\nexport type MenuItemLinkSlots = {\n root: Slot<'a'>;\n} & Pick<MenuItemSlots, 'icon' | 'content' | 'secondaryContent' | 'checkmark'>;\n\n/**\n * MenuItemLink Props\n */\nexport type MenuItemLinkProps = ComponentProps<MenuItemLinkSlots> & Pick<MenuItemProps, 'disabled'> & { href: string };\n\n/**\n * State used in rendering MenuItemLink\n */\nexport type MenuItemLinkState = ComponentState<MenuItemLinkSlots>;\n"],"names":[],"mappings":"AAYA;;CAEC,GACD,WAAkE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuItemRadio.types.ts"],"sourcesContent":["import type { MenuItemSelectableProps, MenuItemSelectableState } from '../../selectable/index';\nimport type { MenuItemProps, MenuItemState } from '../MenuItem/MenuItem.types';\n\nexport type MenuItemRadioProps = MenuItemProps & MenuItemSelectableProps;\n\nexport type MenuItemRadioState = MenuItemState & MenuItemSelectableState;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuItemRadio.types.ts"],"sourcesContent":["import type { MenuItemSelectableProps, MenuItemSelectableState } from '../../selectable/index';\nimport type { MenuItemProps, MenuItemState } from '../MenuItem/MenuItem.types';\n\nexport type MenuItemRadioProps = MenuItemProps & MenuItemSelectableProps;\n\nexport type MenuItemRadioState = MenuItemState & MenuItemSelectableState;\n"],"names":[],"mappings":"AAKA,WAAyE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuPopover.types.ts"],"sourcesContent":["import type { PortalProps } from '@fluentui/react-portal';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuPopoverSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MenuPopover Props\n */\nexport type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;\n\n/**\n * State used in rendering MenuPopover\n */\nexport type MenuPopoverState = ComponentState<MenuPopoverSlots> &\n Pick<PortalProps, 'mountNode'> & {\n /**\n * Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order\n * This option is disregarded for submenus\n */\n inline: boolean;\n };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuPopover.types.ts"],"sourcesContent":["import type { PortalProps } from '@fluentui/react-portal';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuPopoverSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MenuPopover Props\n */\nexport type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;\n\n/**\n * State used in rendering MenuPopover\n */\nexport type MenuPopoverState = ComponentState<MenuPopoverSlots> &\n Pick<PortalProps, 'mountNode'> & {\n /**\n * Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order\n * This option is disregarded for submenus\n */\n inline: boolean;\n };\n"],"names":[],"mappings":"AAYA;;CAEC,GACD,WAOI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MenuSplitGroup.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuSplitGroupSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MenuSplitGroup Props\n */\nexport type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots>;\n\n/**\n * State used in rendering MenuSplitGroup\n */\nexport type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots>;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["MenuSplitGroup.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type MenuSplitGroupSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * MenuSplitGroup Props\n */\nexport type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots>;\n\n/**\n * State used in rendering MenuSplitGroup\n */\nexport type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots>;\n"],"names":[],"mappings":"AAWA;;CAEC,GACD,WAAsE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["MenuItemLink.types.js"],"sourcesContent":["/**\n * State used in rendering MenuItemLink\n */ export { };\n"],"names":[],"mappings":"AAAA;;CAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["MenuPopover.types.js"],"sourcesContent":["/**\n * State used in rendering MenuPopover\n */ export { };\n"],"names":[],"mappings":"AAAA;;CAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["MenuSplitGroup.types.js"],"sourcesContent":["/**\n * State used in rendering MenuSplitGroup\n */ export { };\n"],"names":[],"mappings":"AAAA;;CAEC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -9,113 +9,158 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
MENU_ENTER_EVENT: function() {
|
|
13
|
+
return _utils.MENU_ENTER_EVENT;
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
return
|
|
15
|
+
Menu: function() {
|
|
16
|
+
return _Menu.Menu;
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
return
|
|
18
|
+
MenuDivider: function() {
|
|
19
|
+
return _MenuDivider.MenuDivider;
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
return
|
|
21
|
+
MenuGroup: function() {
|
|
22
|
+
return _MenuGroup.MenuGroup;
|
|
23
23
|
},
|
|
24
24
|
MenuGroupContextProvider: function() {
|
|
25
25
|
return _menuGroupContext.MenuGroupContextProvider;
|
|
26
26
|
},
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
MenuGroupHeader: function() {
|
|
28
|
+
return _MenuGroupHeader.MenuGroupHeader;
|
|
29
|
+
},
|
|
30
|
+
MenuItem: function() {
|
|
31
|
+
return _MenuItem.MenuItem;
|
|
32
|
+
},
|
|
33
|
+
MenuItemCheckbox: function() {
|
|
34
|
+
return _MenuItemCheckbox.MenuItemCheckbox;
|
|
35
|
+
},
|
|
36
|
+
MenuItemLink: function() {
|
|
37
|
+
return _MenuItemLink.MenuItemLink;
|
|
38
|
+
},
|
|
39
|
+
MenuItemRadio: function() {
|
|
40
|
+
return _MenuItemRadio.MenuItemRadio;
|
|
41
|
+
},
|
|
42
|
+
MenuList: function() {
|
|
43
|
+
return _MenuList.MenuList;
|
|
29
44
|
},
|
|
30
45
|
MenuListProvider: function() {
|
|
31
46
|
return _menuListContext.MenuListProvider;
|
|
32
47
|
},
|
|
33
|
-
|
|
34
|
-
return
|
|
48
|
+
MenuPopover: function() {
|
|
49
|
+
return _MenuPopover.MenuPopover;
|
|
35
50
|
},
|
|
36
|
-
|
|
37
|
-
return
|
|
51
|
+
MenuProvider: function() {
|
|
52
|
+
return _menuContext.MenuProvider;
|
|
38
53
|
},
|
|
39
|
-
|
|
40
|
-
return
|
|
54
|
+
MenuSplitGroup: function() {
|
|
55
|
+
return _MenuSplitGroup.MenuSplitGroup;
|
|
41
56
|
},
|
|
42
|
-
|
|
43
|
-
return
|
|
57
|
+
MenuTrigger: function() {
|
|
58
|
+
return _MenuTrigger.MenuTrigger;
|
|
44
59
|
},
|
|
45
|
-
|
|
46
|
-
return
|
|
60
|
+
MenuTriggerContextProvider: function() {
|
|
61
|
+
return _menuTriggerContext.MenuTriggerContextProvider;
|
|
47
62
|
},
|
|
48
|
-
|
|
49
|
-
return
|
|
63
|
+
dispatchMenuEnterEvent: function() {
|
|
64
|
+
return _utils.dispatchMenuEnterEvent;
|
|
50
65
|
},
|
|
51
66
|
menuDividerClassNames: function() {
|
|
52
67
|
return _MenuDivider.menuDividerClassNames;
|
|
53
68
|
},
|
|
54
|
-
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
useMenuDividerStyles_unstable: function() {
|
|
58
|
-
return _MenuDivider.useMenuDividerStyles_unstable;
|
|
69
|
+
menuGroupClassNames: function() {
|
|
70
|
+
return _MenuGroup.menuGroupClassNames;
|
|
59
71
|
},
|
|
60
|
-
|
|
61
|
-
return
|
|
72
|
+
menuGroupHeaderClassNames: function() {
|
|
73
|
+
return _MenuGroupHeader.menuGroupHeaderClassNames;
|
|
62
74
|
},
|
|
63
|
-
|
|
64
|
-
return
|
|
75
|
+
menuItemCheckboxClassNames: function() {
|
|
76
|
+
return _MenuItemCheckbox.menuItemCheckboxClassNames;
|
|
65
77
|
},
|
|
66
|
-
|
|
67
|
-
return
|
|
78
|
+
menuItemClassNames: function() {
|
|
79
|
+
return _MenuItem.menuItemClassNames;
|
|
68
80
|
},
|
|
69
|
-
|
|
70
|
-
return
|
|
81
|
+
menuItemLinkClassNames: function() {
|
|
82
|
+
return _MenuItemLink.menuItemLinkClassNames;
|
|
71
83
|
},
|
|
72
|
-
|
|
73
|
-
return
|
|
84
|
+
menuItemRadioClassNames: function() {
|
|
85
|
+
return _MenuItemRadio.menuItemRadioClassNames;
|
|
74
86
|
},
|
|
75
|
-
|
|
76
|
-
return
|
|
87
|
+
menuListClassNames: function() {
|
|
88
|
+
return _MenuList.menuListClassNames;
|
|
77
89
|
},
|
|
78
|
-
|
|
79
|
-
return
|
|
90
|
+
menuPopoverClassNames: function() {
|
|
91
|
+
return _MenuPopover.menuPopoverClassNames;
|
|
80
92
|
},
|
|
81
|
-
|
|
82
|
-
return
|
|
93
|
+
menuSplitGroupClassNames: function() {
|
|
94
|
+
return _MenuSplitGroup.menuSplitGroupClassNames;
|
|
83
95
|
},
|
|
84
|
-
|
|
85
|
-
return
|
|
96
|
+
renderMenuDivider_unstable: function() {
|
|
97
|
+
return _MenuDivider.renderMenuDivider_unstable;
|
|
86
98
|
},
|
|
87
99
|
renderMenuGroupHeader_unstable: function() {
|
|
88
100
|
return _MenuGroupHeader.renderMenuGroupHeader_unstable;
|
|
89
101
|
},
|
|
90
|
-
|
|
91
|
-
return
|
|
102
|
+
renderMenuGroup_unstable: function() {
|
|
103
|
+
return _MenuGroup.renderMenuGroup_unstable;
|
|
92
104
|
},
|
|
93
|
-
|
|
94
|
-
return
|
|
105
|
+
renderMenuItemCheckbox_unstable: function() {
|
|
106
|
+
return _MenuItemCheckbox.renderMenuItemCheckbox_unstable;
|
|
95
107
|
},
|
|
96
|
-
|
|
97
|
-
return
|
|
108
|
+
renderMenuItemLink_unstable: function() {
|
|
109
|
+
return _MenuItemLink.renderMenuItemLink_unstable;
|
|
98
110
|
},
|
|
99
|
-
|
|
100
|
-
return
|
|
111
|
+
renderMenuItemRadio_unstable: function() {
|
|
112
|
+
return _MenuItemRadio.renderMenuItemRadio_unstable;
|
|
101
113
|
},
|
|
102
114
|
renderMenuItem_unstable: function() {
|
|
103
115
|
return _MenuItem.renderMenuItem_unstable;
|
|
104
116
|
},
|
|
105
|
-
|
|
106
|
-
return
|
|
117
|
+
renderMenuList_unstable: function() {
|
|
118
|
+
return _MenuList.renderMenuList_unstable;
|
|
107
119
|
},
|
|
108
|
-
|
|
109
|
-
return
|
|
120
|
+
renderMenuPopover_unstable: function() {
|
|
121
|
+
return _MenuPopover.renderMenuPopover_unstable;
|
|
110
122
|
},
|
|
111
|
-
|
|
112
|
-
return
|
|
123
|
+
renderMenuSplitGroup_unstable: function() {
|
|
124
|
+
return _MenuSplitGroup.renderMenuSplitGroup_unstable;
|
|
113
125
|
},
|
|
114
|
-
|
|
115
|
-
return
|
|
126
|
+
renderMenuTrigger_unstable: function() {
|
|
127
|
+
return _MenuTrigger.renderMenuTrigger_unstable;
|
|
116
128
|
},
|
|
117
|
-
|
|
118
|
-
return
|
|
129
|
+
renderMenu_unstable: function() {
|
|
130
|
+
return _Menu.renderMenu_unstable;
|
|
131
|
+
},
|
|
132
|
+
useCheckmarkStyles_unstable: function() {
|
|
133
|
+
return _index.useCheckmarkStyles_unstable;
|
|
134
|
+
},
|
|
135
|
+
useMenuContextValues_unstable: function() {
|
|
136
|
+
return _Menu.useMenuContextValues_unstable;
|
|
137
|
+
},
|
|
138
|
+
useMenuContext_unstable: function() {
|
|
139
|
+
return _menuContext.useMenuContext_unstable;
|
|
140
|
+
},
|
|
141
|
+
useMenuDividerStyles_unstable: function() {
|
|
142
|
+
return _MenuDivider.useMenuDividerStyles_unstable;
|
|
143
|
+
},
|
|
144
|
+
useMenuDivider_unstable: function() {
|
|
145
|
+
return _MenuDivider.useMenuDivider_unstable;
|
|
146
|
+
},
|
|
147
|
+
useMenuGroupContextValues_unstable: function() {
|
|
148
|
+
return _MenuGroup.useMenuGroupContextValues_unstable;
|
|
149
|
+
},
|
|
150
|
+
useMenuGroupContext_unstable: function() {
|
|
151
|
+
return _menuGroupContext.useMenuGroupContext_unstable;
|
|
152
|
+
},
|
|
153
|
+
useMenuGroupHeaderStyles_unstable: function() {
|
|
154
|
+
return _MenuGroupHeader.useMenuGroupHeaderStyles_unstable;
|
|
155
|
+
},
|
|
156
|
+
useMenuGroupHeader_unstable: function() {
|
|
157
|
+
return _MenuGroupHeader.useMenuGroupHeader_unstable;
|
|
158
|
+
},
|
|
159
|
+
useMenuGroupStyles_unstable: function() {
|
|
160
|
+
return _MenuGroup.useMenuGroupStyles_unstable;
|
|
161
|
+
},
|
|
162
|
+
useMenuGroup_unstable: function() {
|
|
163
|
+
return _MenuGroup.useMenuGroup_unstable;
|
|
119
164
|
},
|
|
120
165
|
useMenuItemCheckboxStyles_unstable: function() {
|
|
121
166
|
return _MenuItemCheckbox.useMenuItemCheckboxStyles_unstable;
|
|
@@ -123,14 +168,11 @@ _export(exports, {
|
|
|
123
168
|
useMenuItemCheckbox_unstable: function() {
|
|
124
169
|
return _MenuItemCheckbox.useMenuItemCheckbox_unstable;
|
|
125
170
|
},
|
|
126
|
-
|
|
127
|
-
return
|
|
128
|
-
},
|
|
129
|
-
menuItemRadioClassNames: function() {
|
|
130
|
-
return _MenuItemRadio.menuItemRadioClassNames;
|
|
171
|
+
useMenuItemLinkStyles_unstable: function() {
|
|
172
|
+
return _MenuItemLink.useMenuItemLinkStyles_unstable;
|
|
131
173
|
},
|
|
132
|
-
|
|
133
|
-
return
|
|
174
|
+
useMenuItemLink_unstable: function() {
|
|
175
|
+
return _MenuItemLink.useMenuItemLink_unstable;
|
|
134
176
|
},
|
|
135
177
|
useMenuItemRadioStyles_unstable: function() {
|
|
136
178
|
return _MenuItemRadio.useMenuItemRadioStyles_unstable;
|
|
@@ -138,86 +180,44 @@ _export(exports, {
|
|
|
138
180
|
useMenuItemRadio_unstable: function() {
|
|
139
181
|
return _MenuItemRadio.useMenuItemRadio_unstable;
|
|
140
182
|
},
|
|
141
|
-
|
|
142
|
-
return
|
|
143
|
-
},
|
|
144
|
-
menuListClassNames: function() {
|
|
145
|
-
return _MenuList.menuListClassNames;
|
|
183
|
+
useMenuItemStyles_unstable: function() {
|
|
184
|
+
return _MenuItem.useMenuItemStyles_unstable;
|
|
146
185
|
},
|
|
147
|
-
|
|
148
|
-
return
|
|
186
|
+
useMenuItem_unstable: function() {
|
|
187
|
+
return _MenuItem.useMenuItem_unstable;
|
|
149
188
|
},
|
|
150
189
|
useMenuListContextValues_unstable: function() {
|
|
151
190
|
return _MenuList.useMenuListContextValues_unstable;
|
|
152
191
|
},
|
|
192
|
+
useMenuListContext_unstable: function() {
|
|
193
|
+
return _menuListContext.useMenuListContext_unstable;
|
|
194
|
+
},
|
|
153
195
|
useMenuListStyles_unstable: function() {
|
|
154
196
|
return _MenuList.useMenuListStyles_unstable;
|
|
155
197
|
},
|
|
156
198
|
useMenuList_unstable: function() {
|
|
157
199
|
return _MenuList.useMenuList_unstable;
|
|
158
200
|
},
|
|
159
|
-
MenuPopover: function() {
|
|
160
|
-
return _MenuPopover.MenuPopover;
|
|
161
|
-
},
|
|
162
|
-
menuPopoverClassNames: function() {
|
|
163
|
-
return _MenuPopover.menuPopoverClassNames;
|
|
164
|
-
},
|
|
165
|
-
renderMenuPopover_unstable: function() {
|
|
166
|
-
return _MenuPopover.renderMenuPopover_unstable;
|
|
167
|
-
},
|
|
168
201
|
useMenuPopoverStyles_unstable: function() {
|
|
169
202
|
return _MenuPopover.useMenuPopoverStyles_unstable;
|
|
170
203
|
},
|
|
171
204
|
useMenuPopover_unstable: function() {
|
|
172
205
|
return _MenuPopover.useMenuPopover_unstable;
|
|
173
206
|
},
|
|
174
|
-
MenuSplitGroup: function() {
|
|
175
|
-
return _MenuSplitGroup.MenuSplitGroup;
|
|
176
|
-
},
|
|
177
|
-
menuSplitGroupClassNames: function() {
|
|
178
|
-
return _MenuSplitGroup.menuSplitGroupClassNames;
|
|
179
|
-
},
|
|
180
|
-
renderMenuSplitGroup_unstable: function() {
|
|
181
|
-
return _MenuSplitGroup.renderMenuSplitGroup_unstable;
|
|
182
|
-
},
|
|
183
207
|
useMenuSplitGroupStyles_unstable: function() {
|
|
184
208
|
return _MenuSplitGroup.useMenuSplitGroupStyles_unstable;
|
|
185
209
|
},
|
|
186
210
|
useMenuSplitGroup_unstable: function() {
|
|
187
211
|
return _MenuSplitGroup.useMenuSplitGroup_unstable;
|
|
188
212
|
},
|
|
189
|
-
|
|
190
|
-
return
|
|
191
|
-
},
|
|
192
|
-
renderMenuTrigger_unstable: function() {
|
|
193
|
-
return _MenuTrigger.renderMenuTrigger_unstable;
|
|
213
|
+
useMenuTriggerContext_unstable: function() {
|
|
214
|
+
return _menuTriggerContext.useMenuTriggerContext_unstable;
|
|
194
215
|
},
|
|
195
216
|
useMenuTrigger_unstable: function() {
|
|
196
217
|
return _MenuTrigger.useMenuTrigger_unstable;
|
|
197
218
|
},
|
|
198
|
-
|
|
199
|
-
return
|
|
200
|
-
},
|
|
201
|
-
MenuItemLink: function() {
|
|
202
|
-
return _MenuItemLink.MenuItemLink;
|
|
203
|
-
},
|
|
204
|
-
menuItemLinkClassNames: function() {
|
|
205
|
-
return _MenuItemLink.menuItemLinkClassNames;
|
|
206
|
-
},
|
|
207
|
-
renderMenuItemLink_unstable: function() {
|
|
208
|
-
return _MenuItemLink.renderMenuItemLink_unstable;
|
|
209
|
-
},
|
|
210
|
-
useMenuItemLinkStyles_unstable: function() {
|
|
211
|
-
return _MenuItemLink.useMenuItemLinkStyles_unstable;
|
|
212
|
-
},
|
|
213
|
-
useMenuItemLink_unstable: function() {
|
|
214
|
-
return _MenuItemLink.useMenuItemLink_unstable;
|
|
215
|
-
},
|
|
216
|
-
MENU_ENTER_EVENT: function() {
|
|
217
|
-
return _utils.MENU_ENTER_EVENT;
|
|
218
|
-
},
|
|
219
|
-
dispatchMenuEnterEvent: function() {
|
|
220
|
-
return _utils.dispatchMenuEnterEvent;
|
|
219
|
+
useMenu_unstable: function() {
|
|
220
|
+
return _Menu.useMenu_unstable;
|
|
221
221
|
},
|
|
222
222
|
useOnMenuMouseEnter: function() {
|
|
223
223
|
return _utils.useOnMenuMouseEnter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export { MenuProvider, useMenuContext_unstable } from './contexts/menuContext';\nexport { MenuTriggerContextProvider, useMenuTriggerContext_unstable } from './contexts/menuTriggerContext';\nexport { MenuGroupContextProvider, useMenuGroupContext_unstable } from './contexts/menuGroupContext';\nexport { MenuListProvider, useMenuListContext_unstable } from './contexts/menuListContext';\nexport { Menu, renderMenu_unstable, useMenuContextValues_unstable, useMenu_unstable } from './Menu';\nexport { MenuDivider, menuDividerClassNames, renderMenuDivider_unstable, useMenuDividerStyles_unstable, useMenuDivider_unstable } from './MenuDivider';\nexport { MenuGroup, menuGroupClassNames, renderMenuGroup_unstable, useMenuGroupContextValues_unstable, useMenuGroupStyles_unstable, useMenuGroup_unstable } from './MenuGroup';\nexport { MenuGroupHeader, menuGroupHeaderClassNames, renderMenuGroupHeader_unstable, useMenuGroupHeaderStyles_unstable, useMenuGroupHeader_unstable } from './MenuGroupHeader';\nexport { MenuItem, menuItemClassNames, renderMenuItem_unstable, useMenuItemStyles_unstable, useMenuItem_unstable } from './MenuItem';\nexport { MenuItemCheckbox, menuItemCheckboxClassNames, renderMenuItemCheckbox_unstable, useMenuItemCheckboxStyles_unstable, useMenuItemCheckbox_unstable } from './MenuItemCheckbox';\nexport { MenuItemRadio, menuItemRadioClassNames, renderMenuItemRadio_unstable, useMenuItemRadioStyles_unstable, useMenuItemRadio_unstable } from './MenuItemRadio';\nexport { MenuList, menuListClassNames, renderMenuList_unstable, useMenuListContextValues_unstable, useMenuListStyles_unstable, useMenuList_unstable } from './MenuList';\nexport { MenuPopover, menuPopoverClassNames, renderMenuPopover_unstable, useMenuPopoverStyles_unstable, useMenuPopover_unstable } from './MenuPopover';\nexport { MenuSplitGroup, menuSplitGroupClassNames, renderMenuSplitGroup_unstable, useMenuSplitGroupStyles_unstable, useMenuSplitGroup_unstable } from './MenuSplitGroup';\nexport { MenuTrigger, renderMenuTrigger_unstable, useMenuTrigger_unstable } from './MenuTrigger';\nexport { useCheckmarkStyles_unstable } from './selectable/index';\nexport { MenuItemLink, menuItemLinkClassNames, renderMenuItemLink_unstable, useMenuItemLinkStyles_unstable, useMenuItemLink_unstable } from './MenuItemLink';\nexport { MENU_ENTER_EVENT, dispatchMenuEnterEvent, useOnMenuMouseEnter } from './utils';\n"],"names":["
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { MenuProvider, useMenuContext_unstable } from './contexts/menuContext';\nexport { MenuTriggerContextProvider, useMenuTriggerContext_unstable } from './contexts/menuTriggerContext';\nexport { MenuGroupContextProvider, useMenuGroupContext_unstable } from './contexts/menuGroupContext';\nexport { MenuListProvider, useMenuListContext_unstable } from './contexts/menuListContext';\nexport { Menu, renderMenu_unstable, useMenuContextValues_unstable, useMenu_unstable } from './Menu';\nexport { MenuDivider, menuDividerClassNames, renderMenuDivider_unstable, useMenuDividerStyles_unstable, useMenuDivider_unstable } from './MenuDivider';\nexport { MenuGroup, menuGroupClassNames, renderMenuGroup_unstable, useMenuGroupContextValues_unstable, useMenuGroupStyles_unstable, useMenuGroup_unstable } from './MenuGroup';\nexport { MenuGroupHeader, menuGroupHeaderClassNames, renderMenuGroupHeader_unstable, useMenuGroupHeaderStyles_unstable, useMenuGroupHeader_unstable } from './MenuGroupHeader';\nexport { MenuItem, menuItemClassNames, renderMenuItem_unstable, useMenuItemStyles_unstable, useMenuItem_unstable } from './MenuItem';\nexport { MenuItemCheckbox, menuItemCheckboxClassNames, renderMenuItemCheckbox_unstable, useMenuItemCheckboxStyles_unstable, useMenuItemCheckbox_unstable } from './MenuItemCheckbox';\nexport { MenuItemRadio, menuItemRadioClassNames, renderMenuItemRadio_unstable, useMenuItemRadioStyles_unstable, useMenuItemRadio_unstable } from './MenuItemRadio';\nexport { MenuList, menuListClassNames, renderMenuList_unstable, useMenuListContextValues_unstable, useMenuListStyles_unstable, useMenuList_unstable } from './MenuList';\nexport { MenuPopover, menuPopoverClassNames, renderMenuPopover_unstable, useMenuPopoverStyles_unstable, useMenuPopover_unstable } from './MenuPopover';\nexport { MenuSplitGroup, menuSplitGroupClassNames, renderMenuSplitGroup_unstable, useMenuSplitGroupStyles_unstable, useMenuSplitGroup_unstable } from './MenuSplitGroup';\nexport { MenuTrigger, renderMenuTrigger_unstable, useMenuTrigger_unstable } from './MenuTrigger';\nexport { useCheckmarkStyles_unstable } from './selectable/index';\nexport { MenuItemLink, menuItemLinkClassNames, renderMenuItemLink_unstable, useMenuItemLinkStyles_unstable, useMenuItemLink_unstable } from './MenuItemLink';\nexport { MENU_ENTER_EVENT, dispatchMenuEnterEvent, useOnMenuMouseEnter } from './utils';\n"],"names":["MENU_ENTER_EVENT","Menu","MenuDivider","MenuGroup","MenuGroupContextProvider","MenuGroupHeader","MenuItem","MenuItemCheckbox","MenuItemLink","MenuItemRadio","MenuList","MenuListProvider","MenuPopover","MenuProvider","MenuSplitGroup","MenuTrigger","MenuTriggerContextProvider","dispatchMenuEnterEvent","menuDividerClassNames","menuGroupClassNames","menuGroupHeaderClassNames","menuItemCheckboxClassNames","menuItemClassNames","menuItemLinkClassNames","menuItemRadioClassNames","menuListClassNames","menuPopoverClassNames","menuSplitGroupClassNames","renderMenuDivider_unstable","renderMenuGroupHeader_unstable","renderMenuGroup_unstable","renderMenuItemCheckbox_unstable","renderMenuItemLink_unstable","renderMenuItemRadio_unstable","renderMenuItem_unstable","renderMenuList_unstable","renderMenuPopover_unstable","renderMenuSplitGroup_unstable","renderMenuTrigger_unstable","renderMenu_unstable","useCheckmarkStyles_unstable","useMenuContextValues_unstable","useMenuContext_unstable","useMenuDividerStyles_unstable","useMenuDivider_unstable","useMenuGroupContextValues_unstable","useMenuGroupContext_unstable","useMenuGroupHeaderStyles_unstable","useMenuGroupHeader_unstable","useMenuGroupStyles_unstable","useMenuGroup_unstable","useMenuItemCheckboxStyles_unstable","useMenuItemCheckbox_unstable","useMenuItemLinkStyles_unstable","useMenuItemLink_unstable","useMenuItemRadioStyles_unstable","useMenuItemRadio_unstable","useMenuItemStyles_unstable","useMenuItem_unstable","useMenuListContextValues_unstable","useMenuListContext_unstable","useMenuListStyles_unstable","useMenuList_unstable","useMenuPopoverStyles_unstable","useMenuPopover_unstable","useMenuSplitGroupStyles_unstable","useMenuSplitGroup_unstable","useMenuTriggerContext_unstable","useMenuTrigger_unstable","useMenu_unstable","useOnMenuMouseEnter"],"mappings":"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"}
|
|
@@ -12,11 +12,11 @@ _export(exports, {
|
|
|
12
12
|
MENU_ENTER_EVENT: function() {
|
|
13
13
|
return MENU_ENTER_EVENT;
|
|
14
14
|
},
|
|
15
|
-
useOnMenuMouseEnter: function() {
|
|
16
|
-
return useOnMenuMouseEnter;
|
|
17
|
-
},
|
|
18
15
|
dispatchMenuEnterEvent: function() {
|
|
19
16
|
return dispatchMenuEnterEvent;
|
|
17
|
+
},
|
|
18
|
+
useOnMenuMouseEnter: function() {
|
|
19
|
+
return useOnMenuMouseEnter;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useOnMenuEnter.js"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback, elementContains } from '@fluentui/react-utilities';\n/**\n * Name of the custom event\n */ export const MENU_ENTER_EVENT = 'fuimenuenter';\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 */ export const useOnMenuMouseEnter = (options)=>{\n const { refs, callback, element, disabled } = options;\n // Keep mouse event here because this is essentially a custom 'mouseenter' event\n const listener = useEventCallback((ev)=>{\n const popoverRef = refs[0];\n const someMenuPopover = ev.target;\n var _popoverRef_current;\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 = popoverRef.current) !== null && _popoverRef_current !== void 0 ? _popoverRef_current : null, someMenuPopover);\n if (isOutsidePopover && !disabled) {\n callback(ev);\n }\n });\n React.useEffect(()=>{\n // eslint-disable-next-line eqeqeq\n if (element == null) {\n return;\n }\n if (!disabled) {\n element.addEventListener(MENU_ENTER_EVENT, listener);\n }\n return ()=>{\n element.removeEventListener(MENU_ENTER_EVENT, listener);\n };\n }, [\n listener,\n element,\n 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 */ export const dispatchMenuEnterEvent = (el, nativeEvent)=>{\n el.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT, {\n bubbles: true,\n detail: {\n nativeEvent\n }\n }));\n};\n"],"names":["MENU_ENTER_EVENT","
|
|
1
|
+
{"version":3,"sources":["useOnMenuEnter.js"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback, elementContains } from '@fluentui/react-utilities';\n/**\n * Name of the custom event\n */ export const MENU_ENTER_EVENT = 'fuimenuenter';\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 */ export const useOnMenuMouseEnter = (options)=>{\n const { refs, callback, element, disabled } = options;\n // Keep mouse event here because this is essentially a custom 'mouseenter' event\n const listener = useEventCallback((ev)=>{\n const popoverRef = refs[0];\n const someMenuPopover = ev.target;\n var _popoverRef_current;\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 = popoverRef.current) !== null && _popoverRef_current !== void 0 ? _popoverRef_current : null, someMenuPopover);\n if (isOutsidePopover && !disabled) {\n callback(ev);\n }\n });\n React.useEffect(()=>{\n // eslint-disable-next-line eqeqeq\n if (element == null) {\n return;\n }\n if (!disabled) {\n element.addEventListener(MENU_ENTER_EVENT, listener);\n }\n return ()=>{\n element.removeEventListener(MENU_ENTER_EVENT, listener);\n };\n }, [\n listener,\n element,\n 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 */ export const dispatchMenuEnterEvent = (el, nativeEvent)=>{\n el.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT, {\n bubbles: true,\n detail: {\n nativeEvent\n }\n }));\n};\n"],"names":["MENU_ENTER_EVENT","dispatchMenuEnterEvent","useOnMenuMouseEnter","options","refs","callback","element","disabled","listener","useEventCallback","ev","popoverRef","someMenuPopover","target","_popoverRef_current","isOutsidePopover","elementContains","current","React","useEffect","addEventListener","removeEventListener","el","nativeEvent","dispatchEvent","CustomEvent","bubbles","detail"],"mappings":";;;;;;;;;;;IAIiBA,gBAAgB;eAAhBA;;IA+CAC,sBAAsB;eAAtBA;;IApCAC,mBAAmB;eAAnBA;;;;iEAfM;gCAC2B;AAGvC,MAAMF,mBAAmB;AAWzB,MAAME,sBAAsB,CAACC;IACpC,MAAM,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,QAAQ,EAAE,GAAGJ;IAC9C,gFAAgF;IAChF,MAAMK,WAAWC,IAAAA,gCAAgB,EAAC,CAACC;QAC/B,MAAMC,aAAaP,IAAI,CAAC,EAAE;QAC1B,MAAMQ,kBAAkBF,GAAGG,MAAM;QACjC,IAAIC;QACJ,sEAAsE;QACtE,0EAA0E;QAC1E,4DAA4D;QAC5D,MAAMC,mBAAmB,CAACC,IAAAA,+BAAe,EAAC,AAACF,CAAAA,sBAAsBH,WAAWM,OAAO,AAAD,MAAO,QAAQH,wBAAwB,KAAK,IAAIA,sBAAsB,MAAMF;QAC9J,IAAIG,oBAAoB,CAACR,UAAU;YAC/BF,SAASK;QACb;IACJ;IACAQ,OAAMC,SAAS,CAAC;QACZ,kCAAkC;QAClC,IAAIb,WAAW,MAAM;YACjB;QACJ;QACA,IAAI,CAACC,UAAU;YACXD,QAAQc,gBAAgB,CAACpB,kBAAkBQ;QAC/C;QACA,OAAO;YACHF,QAAQe,mBAAmB,CAACrB,kBAAkBQ;QAClD;IACJ,GAAG;QACCA;QACAF;QACAC;KACH;AACL;AAKW,MAAMN,yBAAyB,CAACqB,IAAIC;IAC3CD,GAAGE,aAAa,CAAC,IAAIC,YAAYzB,kBAAkB;QAC/C0B,SAAS;QACTC,QAAQ;YACJJ;QACJ;IACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-menu",
|
|
3
|
-
"version": "9.13.
|
|
3
|
+
"version": "9.13.3",
|
|
4
4
|
"description": "Fluent UI menu component",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@fluentui/keyboard-keys": "^9.0.7",
|
|
40
|
-
"@fluentui/react-aria": "^9.
|
|
41
|
-
"@fluentui/react-context-selector": "^9.1.
|
|
40
|
+
"@fluentui/react-aria": "^9.10.1",
|
|
41
|
+
"@fluentui/react-context-selector": "^9.1.55",
|
|
42
42
|
"@fluentui/react-icons": "^2.0.224",
|
|
43
|
-
"@fluentui/react-portal": "^9.4.
|
|
44
|
-
"@fluentui/react-positioning": "^9.
|
|
45
|
-
"@fluentui/react-shared-contexts": "^9.
|
|
46
|
-
"@fluentui/react-tabster": "^9.19.
|
|
47
|
-
"@fluentui/react-theme": "^9.1.
|
|
48
|
-
"@fluentui/react-utilities": "^9.18.
|
|
49
|
-
"@fluentui/react-jsx-runtime": "^9.0.
|
|
43
|
+
"@fluentui/react-portal": "^9.4.17",
|
|
44
|
+
"@fluentui/react-positioning": "^9.14.1",
|
|
45
|
+
"@fluentui/react-shared-contexts": "^9.15.1",
|
|
46
|
+
"@fluentui/react-tabster": "^9.19.4",
|
|
47
|
+
"@fluentui/react-theme": "^9.1.18",
|
|
48
|
+
"@fluentui/react-utilities": "^9.18.4",
|
|
49
|
+
"@fluentui/react-jsx-runtime": "^9.0.33",
|
|
50
50
|
"@griffel/react": "^1.5.14",
|
|
51
51
|
"@swc/helpers": "^0.5.1"
|
|
52
52
|
},
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"@types/react": ">=16.14.0 <19.0.0",
|
|
55
55
|
"@types/react-dom": ">=16.9.0 <19.0.0",
|
|
56
56
|
"react": ">=16.14.0 <19.0.0",
|
|
57
|
-
"react-dom": ">=16.14.0 <19.0.0"
|
|
58
|
-
"scheduler": "^0.19.0 || ^0.20.0"
|
|
57
|
+
"react-dom": ">=16.14.0 <19.0.0"
|
|
59
58
|
},
|
|
60
59
|
"beachball": {
|
|
61
60
|
"disallowedChangeTypes": [
|