@fluentui/react-menu 9.12.11 → 9.12.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. package/CHANGELOG.json +133 -1
  2. package/CHANGELOG.md +37 -2
  3. package/lib/components/Menu/Menu.js.map +1 -1
  4. package/lib/components/Menu/renderMenu.js.map +1 -1
  5. package/lib/components/Menu/useMenu.js +13 -11
  6. package/lib/components/Menu/useMenu.js.map +1 -1
  7. package/lib/components/Menu/useMenuContextValues.js +1 -1
  8. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  9. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  10. package/lib/components/MenuDivider/renderMenuDivider.js +2 -2
  11. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  12. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  13. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  14. package/lib/components/MenuGroup/renderMenuGroup.js +5 -4
  15. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  16. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  17. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  18. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  19. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  20. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -2
  21. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  22. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +1 -1
  23. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  24. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  25. package/lib/components/MenuItem/renderMenuItem.js +10 -2
  26. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  27. package/lib/components/MenuItem/useCharacterSearch.js +5 -4
  28. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  29. package/lib/components/MenuItem/useMenuItem.js +8 -8
  30. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  31. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  32. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +9 -2
  33. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  34. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +4 -4
  35. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  36. package/lib/components/MenuItemLink/MenuItemLink.js.map +1 -1
  37. package/lib/components/MenuItemLink/renderMenuItemLink.js +9 -2
  38. package/lib/components/MenuItemLink/renderMenuItemLink.js.map +1 -1
  39. package/lib/components/MenuItemLink/useMenuItemLink.js.map +1 -1
  40. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  41. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +9 -2
  42. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  43. package/lib/components/MenuItemRadio/useMenuItemRadio.js +4 -4
  44. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  45. package/lib/components/MenuList/MenuList.js.map +1 -1
  46. package/lib/components/MenuList/renderMenuList.js +5 -4
  47. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  48. package/lib/components/MenuList/useMenuList.js +6 -4
  49. package/lib/components/MenuList/useMenuList.js.map +1 -1
  50. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  51. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  52. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  53. package/lib/components/MenuPopover/renderMenuPopover.js +6 -5
  54. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  55. package/lib/components/MenuPopover/useMenuPopover.js +6 -4
  56. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  57. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  58. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +2 -2
  59. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  60. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +8 -6
  61. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  62. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  63. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  64. package/lib/components/MenuTrigger/useMenuTrigger.js +15 -13
  65. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  66. package/lib/contexts/menuContext.js.map +1 -1
  67. package/lib/contexts/menuGroupContext.js.map +1 -1
  68. package/lib/contexts/menuListContext.js.map +1 -1
  69. package/lib/contexts/menuTriggerContext.js.map +1 -1
  70. package/lib/utils/useIsSubmenu.js.map +1 -1
  71. package/lib/utils/useOnMenuEnter.js +1 -1
  72. package/lib/utils/useOnMenuEnter.js.map +1 -1
  73. package/lib-commonjs/Menu.js +2 -2
  74. package/lib-commonjs/Menu.js.map +1 -1
  75. package/lib-commonjs/MenuDivider.js +2 -2
  76. package/lib-commonjs/MenuDivider.js.map +1 -1
  77. package/lib-commonjs/MenuGroup.js +2 -2
  78. package/lib-commonjs/MenuGroup.js.map +1 -1
  79. package/lib-commonjs/MenuGroupHeader.js +2 -2
  80. package/lib-commonjs/MenuGroupHeader.js.map +1 -1
  81. package/lib-commonjs/MenuItem.js +2 -2
  82. package/lib-commonjs/MenuItem.js.map +1 -1
  83. package/lib-commonjs/MenuItemCheckbox.js +2 -2
  84. package/lib-commonjs/MenuItemCheckbox.js.map +1 -1
  85. package/lib-commonjs/MenuItemLink.js +2 -2
  86. package/lib-commonjs/MenuItemLink.js.map +1 -1
  87. package/lib-commonjs/MenuItemRadio.js +2 -2
  88. package/lib-commonjs/MenuItemRadio.js.map +1 -1
  89. package/lib-commonjs/MenuList.js +2 -2
  90. package/lib-commonjs/MenuList.js.map +1 -1
  91. package/lib-commonjs/MenuPopover.js +2 -2
  92. package/lib-commonjs/MenuPopover.js.map +1 -1
  93. package/lib-commonjs/MenuSplitGroup.js +2 -2
  94. package/lib-commonjs/MenuSplitGroup.js.map +1 -1
  95. package/lib-commonjs/MenuTrigger.js +2 -2
  96. package/lib-commonjs/MenuTrigger.js.map +1 -1
  97. package/lib-commonjs/components/Menu/Menu.js +5 -3
  98. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  99. package/lib-commonjs/components/Menu/Menu.types.js +2 -2
  100. package/lib-commonjs/components/Menu/Menu.types.js.map +1 -1
  101. package/lib-commonjs/components/Menu/index.js +6 -6
  102. package/lib-commonjs/components/Menu/index.js.map +1 -1
  103. package/lib-commonjs/components/Menu/renderMenu.js +5 -3
  104. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  105. package/lib-commonjs/components/Menu/useMenu.js +35 -31
  106. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  107. package/lib-commonjs/components/Menu/useMenuContextValues.js +4 -2
  108. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  109. package/lib-commonjs/components/MenuDivider/MenuDivider.js +9 -7
  110. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  111. package/lib-commonjs/components/MenuDivider/index.js +6 -6
  112. package/lib-commonjs/components/MenuDivider/index.js.map +1 -1
  113. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +8 -6
  114. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  115. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +7 -5
  116. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  117. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.styles.js +7 -3
  118. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.styles.js.map +1 -1
  119. package/lib-commonjs/components/MenuGroup/MenuGroup.js +9 -7
  120. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  121. package/lib-commonjs/components/MenuGroup/index.js +7 -7
  122. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  123. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +11 -8
  124. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  125. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +8 -6
  126. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  127. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +6 -4
  128. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  129. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.styles.js +6 -2
  130. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.styles.js.map +1 -1
  131. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +9 -7
  132. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  133. package/lib-commonjs/components/MenuGroupHeader/index.js +6 -6
  134. package/lib-commonjs/components/MenuGroupHeader/index.js.map +1 -1
  135. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +8 -6
  136. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  137. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +8 -6
  138. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  139. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.styles.js +7 -3
  140. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.styles.js.map +1 -1
  141. package/lib-commonjs/components/MenuItem/MenuItem.js +9 -7
  142. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  143. package/lib-commonjs/components/MenuItem/index.js +6 -6
  144. package/lib-commonjs/components/MenuItem/index.js.map +1 -1
  145. package/lib-commonjs/components/MenuItem/renderMenuItem.js +16 -6
  146. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  147. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +10 -7
  148. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  149. package/lib-commonjs/components/MenuItem/useMenuItem.js +31 -29
  150. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  151. package/lib-commonjs/components/MenuItem/useMenuItemStyles.styles.js +7 -3
  152. package/lib-commonjs/components/MenuItem/useMenuItemStyles.styles.js.map +1 -1
  153. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +9 -7
  154. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  155. package/lib-commonjs/components/MenuItemCheckbox/index.js +6 -6
  156. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  157. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +15 -6
  158. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  159. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +13 -11
  160. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  161. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.styles.js +8 -4
  162. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.styles.js.map +1 -1
  163. package/lib-commonjs/components/MenuItemLink/MenuItemLink.js +7 -5
  164. package/lib-commonjs/components/MenuItemLink/MenuItemLink.js.map +1 -1
  165. package/lib-commonjs/components/MenuItemLink/index.js +6 -6
  166. package/lib-commonjs/components/MenuItemLink/index.js.map +1 -1
  167. package/lib-commonjs/components/MenuItemLink/renderMenuItemLink.js +15 -6
  168. package/lib-commonjs/components/MenuItemLink/renderMenuItemLink.js.map +1 -1
  169. package/lib-commonjs/components/MenuItemLink/useMenuItemLink.js +7 -5
  170. package/lib-commonjs/components/MenuItemLink/useMenuItemLink.js.map +1 -1
  171. package/lib-commonjs/components/MenuItemLink/useMenuItemLinkStyles.styles.js +9 -5
  172. package/lib-commonjs/components/MenuItemLink/useMenuItemLinkStyles.styles.js.map +1 -1
  173. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +9 -7
  174. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  175. package/lib-commonjs/components/MenuItemRadio/index.js +6 -6
  176. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  177. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +15 -6
  178. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  179. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +13 -11
  180. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  181. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.styles.js +8 -4
  182. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.styles.js.map +1 -1
  183. package/lib-commonjs/components/MenuList/MenuList.js +9 -7
  184. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  185. package/lib-commonjs/components/MenuList/MenuList.types.js +2 -2
  186. package/lib-commonjs/components/MenuList/MenuList.types.js.map +1 -1
  187. package/lib-commonjs/components/MenuList/index.js +7 -7
  188. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  189. package/lib-commonjs/components/MenuList/renderMenuList.js +11 -8
  190. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  191. package/lib-commonjs/components/MenuList/useMenuList.js +21 -17
  192. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  193. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +4 -2
  194. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  195. package/lib-commonjs/components/MenuList/useMenuListStyles.styles.js +7 -3
  196. package/lib-commonjs/components/MenuList/useMenuListStyles.styles.js.map +1 -1
  197. package/lib-commonjs/components/MenuPopover/MenuPopover.js +9 -7
  198. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  199. package/lib-commonjs/components/MenuPopover/index.js +6 -6
  200. package/lib-commonjs/components/MenuPopover/index.js.map +1 -1
  201. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +13 -10
  202. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  203. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +23 -19
  204. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  205. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.styles.js +7 -3
  206. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.styles.js.map +1 -1
  207. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +9 -7
  208. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  209. package/lib-commonjs/components/MenuSplitGroup/index.js +6 -6
  210. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -1
  211. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +8 -6
  212. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  213. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +21 -17
  214. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  215. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.styles.js +7 -3
  216. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.styles.js.map +1 -1
  217. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +5 -3
  218. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  219. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.js +2 -2
  220. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  221. package/lib-commonjs/components/MenuTrigger/index.js +5 -5
  222. package/lib-commonjs/components/MenuTrigger/index.js.map +1 -1
  223. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +5 -3
  224. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  225. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +33 -29
  226. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  227. package/lib-commonjs/components/index.js +3 -3
  228. package/lib-commonjs/components/index.js.map +1 -1
  229. package/lib-commonjs/contexts/menuContext.js +14 -8
  230. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  231. package/lib-commonjs/contexts/menuGroupContext.js +8 -4
  232. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  233. package/lib-commonjs/contexts/menuListContext.js +14 -8
  234. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  235. package/lib-commonjs/contexts/menuTriggerContext.js +8 -4
  236. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  237. package/lib-commonjs/index.js +225 -83
  238. package/lib-commonjs/index.js.map +1 -1
  239. package/lib-commonjs/selectable/index.js +3 -3
  240. package/lib-commonjs/selectable/index.js.map +1 -1
  241. package/lib-commonjs/selectable/types.js +2 -2
  242. package/lib-commonjs/selectable/types.js.map +1 -1
  243. package/lib-commonjs/selectable/useCheckmarkStyles.styles.js +4 -2
  244. package/lib-commonjs/selectable/useCheckmarkStyles.styles.js.map +1 -1
  245. package/lib-commonjs/utils/index.js +2 -2
  246. package/lib-commonjs/utils/index.js.map +1 -1
  247. package/lib-commonjs/utils/useIsSubmenu.js +5 -3
  248. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  249. package/lib-commonjs/utils/useOnMenuEnter.js +16 -10
  250. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  251. package/package.json +16 -16
@@ -9,93 +9,235 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- MenuProvider: ()=>_menuContext.MenuProvider,
13
- useMenuContext_unstable: ()=>_menuContext.useMenuContext_unstable,
14
- MenuTriggerContextProvider: ()=>_menuTriggerContext.MenuTriggerContextProvider,
15
- useMenuTriggerContext_unstable: ()=>_menuTriggerContext.useMenuTriggerContext_unstable,
16
- MenuGroupContextProvider: ()=>_menuGroupContext.MenuGroupContextProvider,
17
- useMenuGroupContext_unstable: ()=>_menuGroupContext.useMenuGroupContext_unstable,
18
- MenuListProvider: ()=>_menuListContext.MenuListProvider,
19
- useMenuListContext_unstable: ()=>_menuListContext.useMenuListContext_unstable,
20
- Menu: ()=>_menu.Menu,
21
- renderMenu_unstable: ()=>_menu.renderMenu_unstable,
22
- useMenuContextValues_unstable: ()=>_menu.useMenuContextValues_unstable,
23
- useMenu_unstable: ()=>_menu.useMenu_unstable,
24
- MenuDivider: ()=>_menuDivider.MenuDivider,
25
- menuDividerClassNames: ()=>_menuDivider.menuDividerClassNames,
26
- renderMenuDivider_unstable: ()=>_menuDivider.renderMenuDivider_unstable,
27
- useMenuDividerStyles_unstable: ()=>_menuDivider.useMenuDividerStyles_unstable,
28
- useMenuDivider_unstable: ()=>_menuDivider.useMenuDivider_unstable,
29
- MenuGroup: ()=>_menuGroup.MenuGroup,
30
- menuGroupClassNames: ()=>_menuGroup.menuGroupClassNames,
31
- renderMenuGroup_unstable: ()=>_menuGroup.renderMenuGroup_unstable,
32
- useMenuGroupContextValues_unstable: ()=>_menuGroup.useMenuGroupContextValues_unstable,
33
- useMenuGroupStyles_unstable: ()=>_menuGroup.useMenuGroupStyles_unstable,
34
- useMenuGroup_unstable: ()=>_menuGroup.useMenuGroup_unstable,
35
- MenuGroupHeader: ()=>_menuGroupHeader.MenuGroupHeader,
36
- menuGroupHeaderClassNames: ()=>_menuGroupHeader.menuGroupHeaderClassNames,
37
- renderMenuGroupHeader_unstable: ()=>_menuGroupHeader.renderMenuGroupHeader_unstable,
38
- useMenuGroupHeaderStyles_unstable: ()=>_menuGroupHeader.useMenuGroupHeaderStyles_unstable,
39
- useMenuGroupHeader_unstable: ()=>_menuGroupHeader.useMenuGroupHeader_unstable,
40
- MenuItem: ()=>_menuItem.MenuItem,
41
- menuItemClassNames: ()=>_menuItem.menuItemClassNames,
42
- renderMenuItem_unstable: ()=>_menuItem.renderMenuItem_unstable,
43
- useMenuItemStyles_unstable: ()=>_menuItem.useMenuItemStyles_unstable,
44
- useMenuItem_unstable: ()=>_menuItem.useMenuItem_unstable,
45
- MenuItemCheckbox: ()=>_menuItemCheckbox.MenuItemCheckbox,
46
- menuItemCheckboxClassNames: ()=>_menuItemCheckbox.menuItemCheckboxClassNames,
47
- renderMenuItemCheckbox_unstable: ()=>_menuItemCheckbox.renderMenuItemCheckbox_unstable,
48
- useMenuItemCheckboxStyles_unstable: ()=>_menuItemCheckbox.useMenuItemCheckboxStyles_unstable,
49
- useMenuItemCheckbox_unstable: ()=>_menuItemCheckbox.useMenuItemCheckbox_unstable,
50
- MenuItemRadio: ()=>_menuItemRadio.MenuItemRadio,
51
- menuItemRadioClassNames: ()=>_menuItemRadio.menuItemRadioClassNames,
52
- renderMenuItemRadio_unstable: ()=>_menuItemRadio.renderMenuItemRadio_unstable,
53
- useMenuItemRadioStyles_unstable: ()=>_menuItemRadio.useMenuItemRadioStyles_unstable,
54
- useMenuItemRadio_unstable: ()=>_menuItemRadio.useMenuItemRadio_unstable,
55
- MenuList: ()=>_menuList.MenuList,
56
- menuListClassNames: ()=>_menuList.menuListClassNames,
57
- renderMenuList_unstable: ()=>_menuList.renderMenuList_unstable,
58
- useMenuListContextValues_unstable: ()=>_menuList.useMenuListContextValues_unstable,
59
- useMenuListStyles_unstable: ()=>_menuList.useMenuListStyles_unstable,
60
- useMenuList_unstable: ()=>_menuList.useMenuList_unstable,
61
- MenuPopover: ()=>_menuPopover.MenuPopover,
62
- menuPopoverClassNames: ()=>_menuPopover.menuPopoverClassNames,
63
- renderMenuPopover_unstable: ()=>_menuPopover.renderMenuPopover_unstable,
64
- useMenuPopoverStyles_unstable: ()=>_menuPopover.useMenuPopoverStyles_unstable,
65
- useMenuPopover_unstable: ()=>_menuPopover.useMenuPopover_unstable,
66
- MenuSplitGroup: ()=>_menuSplitGroup.MenuSplitGroup,
67
- menuSplitGroupClassNames: ()=>_menuSplitGroup.menuSplitGroupClassNames,
68
- renderMenuSplitGroup_unstable: ()=>_menuSplitGroup.renderMenuSplitGroup_unstable,
69
- useMenuSplitGroupStyles_unstable: ()=>_menuSplitGroup.useMenuSplitGroupStyles_unstable,
70
- useMenuSplitGroup_unstable: ()=>_menuSplitGroup.useMenuSplitGroup_unstable,
71
- MenuTrigger: ()=>_menuTrigger.MenuTrigger,
72
- renderMenuTrigger_unstable: ()=>_menuTrigger.renderMenuTrigger_unstable,
73
- useMenuTrigger_unstable: ()=>_menuTrigger.useMenuTrigger_unstable,
74
- useCheckmarkStyles_unstable: ()=>_index.useCheckmarkStyles_unstable,
75
- MenuItemLink: ()=>_menuItemLink.MenuItemLink,
76
- menuItemLinkClassNames: ()=>_menuItemLink.menuItemLinkClassNames,
77
- renderMenuItemLink_unstable: ()=>_menuItemLink.renderMenuItemLink_unstable,
78
- useMenuItemLinkStyles_unstable: ()=>_menuItemLink.useMenuItemLinkStyles_unstable,
79
- useMenuItemLink_unstable: ()=>_menuItemLink.useMenuItemLink_unstable,
80
- MENU_ENTER_EVENT: ()=>_utils.MENU_ENTER_EVENT,
81
- dispatchMenuEnterEvent: ()=>_utils.dispatchMenuEnterEvent,
82
- useOnMenuMouseEnter: ()=>_utils.useOnMenuMouseEnter
12
+ MenuProvider: function() {
13
+ return _menuContext.MenuProvider;
14
+ },
15
+ useMenuContext_unstable: function() {
16
+ return _menuContext.useMenuContext_unstable;
17
+ },
18
+ MenuTriggerContextProvider: function() {
19
+ return _menuTriggerContext.MenuTriggerContextProvider;
20
+ },
21
+ useMenuTriggerContext_unstable: function() {
22
+ return _menuTriggerContext.useMenuTriggerContext_unstable;
23
+ },
24
+ MenuGroupContextProvider: function() {
25
+ return _menuGroupContext.MenuGroupContextProvider;
26
+ },
27
+ useMenuGroupContext_unstable: function() {
28
+ return _menuGroupContext.useMenuGroupContext_unstable;
29
+ },
30
+ MenuListProvider: function() {
31
+ return _menuListContext.MenuListProvider;
32
+ },
33
+ useMenuListContext_unstable: function() {
34
+ return _menuListContext.useMenuListContext_unstable;
35
+ },
36
+ Menu: function() {
37
+ return _Menu.Menu;
38
+ },
39
+ renderMenu_unstable: function() {
40
+ return _Menu.renderMenu_unstable;
41
+ },
42
+ useMenuContextValues_unstable: function() {
43
+ return _Menu.useMenuContextValues_unstable;
44
+ },
45
+ useMenu_unstable: function() {
46
+ return _Menu.useMenu_unstable;
47
+ },
48
+ MenuDivider: function() {
49
+ return _MenuDivider.MenuDivider;
50
+ },
51
+ menuDividerClassNames: function() {
52
+ return _MenuDivider.menuDividerClassNames;
53
+ },
54
+ renderMenuDivider_unstable: function() {
55
+ return _MenuDivider.renderMenuDivider_unstable;
56
+ },
57
+ useMenuDividerStyles_unstable: function() {
58
+ return _MenuDivider.useMenuDividerStyles_unstable;
59
+ },
60
+ useMenuDivider_unstable: function() {
61
+ return _MenuDivider.useMenuDivider_unstable;
62
+ },
63
+ MenuGroup: function() {
64
+ return _MenuGroup.MenuGroup;
65
+ },
66
+ menuGroupClassNames: function() {
67
+ return _MenuGroup.menuGroupClassNames;
68
+ },
69
+ renderMenuGroup_unstable: function() {
70
+ return _MenuGroup.renderMenuGroup_unstable;
71
+ },
72
+ useMenuGroupContextValues_unstable: function() {
73
+ return _MenuGroup.useMenuGroupContextValues_unstable;
74
+ },
75
+ useMenuGroupStyles_unstable: function() {
76
+ return _MenuGroup.useMenuGroupStyles_unstable;
77
+ },
78
+ useMenuGroup_unstable: function() {
79
+ return _MenuGroup.useMenuGroup_unstable;
80
+ },
81
+ MenuGroupHeader: function() {
82
+ return _MenuGroupHeader.MenuGroupHeader;
83
+ },
84
+ menuGroupHeaderClassNames: function() {
85
+ return _MenuGroupHeader.menuGroupHeaderClassNames;
86
+ },
87
+ renderMenuGroupHeader_unstable: function() {
88
+ return _MenuGroupHeader.renderMenuGroupHeader_unstable;
89
+ },
90
+ useMenuGroupHeaderStyles_unstable: function() {
91
+ return _MenuGroupHeader.useMenuGroupHeaderStyles_unstable;
92
+ },
93
+ useMenuGroupHeader_unstable: function() {
94
+ return _MenuGroupHeader.useMenuGroupHeader_unstable;
95
+ },
96
+ MenuItem: function() {
97
+ return _MenuItem.MenuItem;
98
+ },
99
+ menuItemClassNames: function() {
100
+ return _MenuItem.menuItemClassNames;
101
+ },
102
+ renderMenuItem_unstable: function() {
103
+ return _MenuItem.renderMenuItem_unstable;
104
+ },
105
+ useMenuItemStyles_unstable: function() {
106
+ return _MenuItem.useMenuItemStyles_unstable;
107
+ },
108
+ useMenuItem_unstable: function() {
109
+ return _MenuItem.useMenuItem_unstable;
110
+ },
111
+ MenuItemCheckbox: function() {
112
+ return _MenuItemCheckbox.MenuItemCheckbox;
113
+ },
114
+ menuItemCheckboxClassNames: function() {
115
+ return _MenuItemCheckbox.menuItemCheckboxClassNames;
116
+ },
117
+ renderMenuItemCheckbox_unstable: function() {
118
+ return _MenuItemCheckbox.renderMenuItemCheckbox_unstable;
119
+ },
120
+ useMenuItemCheckboxStyles_unstable: function() {
121
+ return _MenuItemCheckbox.useMenuItemCheckboxStyles_unstable;
122
+ },
123
+ useMenuItemCheckbox_unstable: function() {
124
+ return _MenuItemCheckbox.useMenuItemCheckbox_unstable;
125
+ },
126
+ MenuItemRadio: function() {
127
+ return _MenuItemRadio.MenuItemRadio;
128
+ },
129
+ menuItemRadioClassNames: function() {
130
+ return _MenuItemRadio.menuItemRadioClassNames;
131
+ },
132
+ renderMenuItemRadio_unstable: function() {
133
+ return _MenuItemRadio.renderMenuItemRadio_unstable;
134
+ },
135
+ useMenuItemRadioStyles_unstable: function() {
136
+ return _MenuItemRadio.useMenuItemRadioStyles_unstable;
137
+ },
138
+ useMenuItemRadio_unstable: function() {
139
+ return _MenuItemRadio.useMenuItemRadio_unstable;
140
+ },
141
+ MenuList: function() {
142
+ return _MenuList.MenuList;
143
+ },
144
+ menuListClassNames: function() {
145
+ return _MenuList.menuListClassNames;
146
+ },
147
+ renderMenuList_unstable: function() {
148
+ return _MenuList.renderMenuList_unstable;
149
+ },
150
+ useMenuListContextValues_unstable: function() {
151
+ return _MenuList.useMenuListContextValues_unstable;
152
+ },
153
+ useMenuListStyles_unstable: function() {
154
+ return _MenuList.useMenuListStyles_unstable;
155
+ },
156
+ useMenuList_unstable: function() {
157
+ return _MenuList.useMenuList_unstable;
158
+ },
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
+ useMenuPopoverStyles_unstable: function() {
169
+ return _MenuPopover.useMenuPopoverStyles_unstable;
170
+ },
171
+ useMenuPopover_unstable: function() {
172
+ return _MenuPopover.useMenuPopover_unstable;
173
+ },
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
+ useMenuSplitGroupStyles_unstable: function() {
184
+ return _MenuSplitGroup.useMenuSplitGroupStyles_unstable;
185
+ },
186
+ useMenuSplitGroup_unstable: function() {
187
+ return _MenuSplitGroup.useMenuSplitGroup_unstable;
188
+ },
189
+ MenuTrigger: function() {
190
+ return _MenuTrigger.MenuTrigger;
191
+ },
192
+ renderMenuTrigger_unstable: function() {
193
+ return _MenuTrigger.renderMenuTrigger_unstable;
194
+ },
195
+ useMenuTrigger_unstable: function() {
196
+ return _MenuTrigger.useMenuTrigger_unstable;
197
+ },
198
+ useCheckmarkStyles_unstable: function() {
199
+ return _index.useCheckmarkStyles_unstable;
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;
221
+ },
222
+ useOnMenuMouseEnter: function() {
223
+ return _utils.useOnMenuMouseEnter;
224
+ }
83
225
  });
84
226
  const _menuContext = require("./contexts/menuContext");
85
227
  const _menuTriggerContext = require("./contexts/menuTriggerContext");
86
228
  const _menuGroupContext = require("./contexts/menuGroupContext");
87
229
  const _menuListContext = require("./contexts/menuListContext");
88
- const _menu = require("./Menu");
89
- const _menuDivider = require("./MenuDivider");
90
- const _menuGroup = require("./MenuGroup");
91
- const _menuGroupHeader = require("./MenuGroupHeader");
92
- const _menuItem = require("./MenuItem");
93
- const _menuItemCheckbox = require("./MenuItemCheckbox");
94
- const _menuItemRadio = require("./MenuItemRadio");
95
- const _menuList = require("./MenuList");
96
- const _menuPopover = require("./MenuPopover");
97
- const _menuSplitGroup = require("./MenuSplitGroup");
98
- const _menuTrigger = require("./MenuTrigger");
230
+ const _Menu = require("./Menu");
231
+ const _MenuDivider = require("./MenuDivider");
232
+ const _MenuGroup = require("./MenuGroup");
233
+ const _MenuGroupHeader = require("./MenuGroupHeader");
234
+ const _MenuItem = require("./MenuItem");
235
+ const _MenuItemCheckbox = require("./MenuItemCheckbox");
236
+ const _MenuItemRadio = require("./MenuItemRadio");
237
+ const _MenuList = require("./MenuList");
238
+ const _MenuPopover = require("./MenuPopover");
239
+ const _MenuSplitGroup = require("./MenuSplitGroup");
240
+ const _MenuTrigger = require("./MenuTrigger");
99
241
  const _index = require("./selectable/index");
100
- const _menuItemLink = require("./MenuItemLink");
242
+ const _MenuItemLink = require("./MenuItemLink");
101
243
  const _utils = require("./utils");
@@ -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":["MenuProvider","useMenuContext_unstable","MenuTriggerContextProvider","useMenuTriggerContext_unstable","MenuGroupContextProvider","useMenuGroupContext_unstable","MenuListProvider","useMenuListContext_unstable","Menu","renderMenu_unstable","useMenuContextValues_unstable","useMenu_unstable","MenuDivider","menuDividerClassNames","renderMenuDivider_unstable","useMenuDividerStyles_unstable","useMenuDivider_unstable","MenuGroup","menuGroupClassNames","renderMenuGroup_unstable","useMenuGroupContextValues_unstable","useMenuGroupStyles_unstable","useMenuGroup_unstable","MenuGroupHeader","menuGroupHeaderClassNames","renderMenuGroupHeader_unstable","useMenuGroupHeaderStyles_unstable","useMenuGroupHeader_unstable","MenuItem","menuItemClassNames","renderMenuItem_unstable","useMenuItemStyles_unstable","useMenuItem_unstable","MenuItemCheckbox","menuItemCheckboxClassNames","renderMenuItemCheckbox_unstable","useMenuItemCheckboxStyles_unstable","useMenuItemCheckbox_unstable","MenuItemRadio","menuItemRadioClassNames","renderMenuItemRadio_unstable","useMenuItemRadioStyles_unstable","useMenuItemRadio_unstable","MenuList","menuListClassNames","renderMenuList_unstable","useMenuListContextValues_unstable","useMenuListStyles_unstable","useMenuList_unstable","MenuPopover","menuPopoverClassNames","renderMenuPopover_unstable","useMenuPopoverStyles_unstable","useMenuPopover_unstable","MenuSplitGroup","menuSplitGroupClassNames","renderMenuSplitGroup_unstable","useMenuSplitGroupStyles_unstable","useMenuSplitGroup_unstable","MenuTrigger","renderMenuTrigger_unstable","useMenuTrigger_unstable","useCheckmarkStyles_unstable","MenuItemLink","menuItemLinkClassNames","renderMenuItemLink_unstable","useMenuItemLinkStyles_unstable","useMenuItemLink_unstable","MENU_ENTER_EVENT","dispatchM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ent":["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":["MenuProvider","useMenuContext_unstable","MenuTriggerContextProvider","useMenuTriggerContext_unstable","MenuGroupContextProvider","useMenuGroupContext_unstable","MenuListProvider","useMenuListContext_unstable","Menu","renderMenu_unstable","useMenuContextValues_unstable","useMenu_unstable","MenuDivider","menuDividerClassNames","renderMenuDivider_unstable","useMenuDividerStyles_unstable","useMenuDivider_unstable","MenuGroup","menuGroupClassNames","renderMenuGroup_unstable","useMenuGroupContextValues_unstable","useMenuGroupStyles_unstable","useMenuGroup_unstable","MenuGroupHeader","menuGroupHeaderClassNames","renderMenuGroupHeader_unstable","useMenuGroupHeaderStyles_unstable","useMenuGroupHeader_unstable","MenuItem","menuItemClassNames","renderMenuItem_unstable","useMenuItemStyles_unstable","useMenuItem_unstable","MenuItemCheckbox","menuItemCheckboxClassNames","renderMenuItemCheckbox_unstable","useMenuItemCheckboxStyles_unstable","useMenuItemCheckbox_unstable","MenuItemRadio","menuItemRadioClassNames","renderMenuItemRadio_unstable","useMenuItemRadioStyles_unstable","useMenuItemRadio_unstable","MenuList","menuListClassNames","renderMenuList_unstable","useMenuListContextValues_unstable","useMenuListStyles_unstable","useMenuList_unstable","MenuPopover","menuPopoverClassNames","renderMenuPopover_unstable","useMenuPopoverStyles_unstable","useMenuPopover_unstable","MenuSplitGroup","menuSplitGroupClassNames","renderMenuSplitGroup_unstable","useMenuSplitGroupStyles_unstable","useMenuSplitGroup_unstable","MenuTrigger","renderMenuTrigger_unstable","useMenuTrigger_unstable","useCheckmarkStyles_unstable","MenuItemLink","menuItemLinkClassNames","renderMenuItemLink_unstable","useMenuItemLinkStyles_unstable","useMenuItemLink_unstable","MENU_ENTER_EVENT","dispatchMenuEnterEvent","useOnMenuMouseEnter"],"mappings":";;;;;;;;;;;IA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D"}
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./useCheckmarkStyles.styles"), exports);
7
- _exportStar(require("./types"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./useCheckmarkStyles.styles"), exports);
7
+ _export_star._(require("./types"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './useCheckmarkStyles.styles';\nexport * from './types';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './useCheckmarkStyles.styles';\nexport * from './types';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
6
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
5
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
6
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
@@ -1 +1 @@
1
- {"version":3,"sources":["types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;6DAAuB"}
1
+ {"version":3,"sources":["types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;iEAAuB"}
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useCheckmarkStyles_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useCheckmarkStyles_unstable
7
+ get: function() {
8
+ return useCheckmarkStyles_unstable;
9
+ }
8
10
  });
9
11
  const _react = require("@griffel/react");
10
- const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
12
+ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
11
13
  root: {
12
14
  a9b677: "fjw5fx7",
13
15
  Bqenvij: "fd461yt",
@@ -1 +1 @@
1
- {"version":3,"sources":["useCheckmarkStyles.styles.js"],"sourcesContent":["import { mergeClasses, __styles } from '@griffel/react';\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n a9b677: \"fjw5fx7\",\n Bqenvij: \"fd461yt\",\n Bcdw1i0: \"fd7fpy0\"\n },\n rootChecked: {\n Bcdw1i0: \"f1022m68\"\n }\n}, {\n d: [\".fjw5fx7{width:16px;}\", \".fd461yt{height:16px;}\", \".fd7fpy0{visibility:hidden;}\", \".f1022m68{visibility:visible;}\"]\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 => {\n const styles = useStyles();\n if (state.checkmark) {\n state.checkmark.className = mergeClasses(styles.root, state.checked && styles.rootChecked, state.checkmark.className);\n }\n};\n//# sourceMappingURL=useCheckmarkStyles.styles.js.map"],"names":["useCheckmarkStyles_unstable","useStyles","__styles","root","a9b677","Bqenvij","Bcdw1i0","rootChecked","d","state","styles","checkmark","className","mergeClasses","checked"],"mappings":";;;;+BAkBaA;;aAAAA;;uBAlB0B;AACvC,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCC,MAAM;QACJC,QAAQ;QACRC,SAAS;QACTC,SAAS;IACX;IACAC,aAAa;QACXD,SAAS;IACX;AACF,GAAG;IACDE,GAAG;QAAC;QAAyB;QAA0B;QAAgC;KAAiC;AAC1H;AAMO,MAAMR,8BAA8BS,CAAAA,QAAS;IAClD,MAAMC,SAAST;IACf,IAAIQ,MAAME,SAAS,EAAE;QACnBF,MAAME,SAAS,CAACC,SAAS,GAAGC,IAAAA,mBAAY,EAACH,OAAOP,IAAI,EAAEM,MAAMK,OAAO,IAAIJ,OAAOH,WAAW,EAAEE,MAAME,SAAS,CAACC,SAAS;IACtH,CAAC;AACH,GACA,qDAAqD"}
1
+ {"version":3,"sources":["useCheckmarkStyles.styles.js"],"sourcesContent":["import { mergeClasses, __styles } from '@griffel/react';\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n a9b677: \"fjw5fx7\",\n Bqenvij: \"fd461yt\",\n Bcdw1i0: \"fd7fpy0\"\n },\n rootChecked: {\n Bcdw1i0: \"f1022m68\"\n }\n}, {\n d: [\".fjw5fx7{width:16px;}\", \".fd461yt{height:16px;}\", \".fd7fpy0{visibility:hidden;}\", \".f1022m68{visibility:visible;}\"]\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 => {\n const styles = useStyles();\n if (state.checkmark) {\n state.checkmark.className = mergeClasses(styles.root, state.checked && styles.rootChecked, state.checkmark.className);\n }\n};\n//# sourceMappingURL=useCheckmarkStyles.styles.js.map"],"names":["useCheckmarkStyles_unstable","useStyles","__styles","root","a9b677","Bqenvij","Bcdw1i0","rootChecked","d","state","styles","checkmark","className","mergeClasses","checked"],"mappings":";;;;+BAkBaA;;;eAAAA;;;uBAlB0B;AACvC,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCC,MAAM;QACJC,QAAQ;QACRC,SAAS;QACTC,SAAS;IACX;IACAC,aAAa;QACXD,SAAS;IACX;AACF,GAAG;IACDE,GAAG;QAAC;QAAyB;QAA0B;QAAgC;KAAiC;AAC1H;AAMO,MAAMR,8BAA8BS,CAAAA;IACzC,MAAMC,SAAST;IACf,IAAIQ,MAAME,SAAS,EAAE;QACnBF,MAAME,SAAS,CAACC,SAAS,GAAGC,IAAAA,mBAAY,EAACH,OAAOP,IAAI,EAAEM,MAAMK,OAAO,IAAIJ,OAAOH,WAAW,EAAEE,MAAME,SAAS,CAACC,SAAS;IACtH;AACF,GACA,qDAAqD"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./useOnMenuEnter"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./useOnMenuEnter"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './useOnMenuEnter';\n"],"names":[],"mappings":";;;;;oBAAc"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './useOnMenuEnter';\n"],"names":[],"mappings":";;;;;uBAAc"}
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useIsSubmenu", {
6
6
  enumerable: true,
7
- get: ()=>useIsSubmenu
7
+ get: function() {
8
+ return useIsSubmenu;
9
+ }
8
10
  });
9
- const _reactContextSelector = require("@fluentui/react-context-selector");
11
+ const _reactcontextselector = require("@fluentui/react-context-selector");
10
12
  const _menuContext = require("../contexts/menuContext");
11
13
  const _menuListContext = require("../contexts/menuListContext");
12
14
  function useIsSubmenu() {
13
15
  const menuContextValue = (0, _menuContext.useMenuContext_unstable)((context)=>context.isSubmenu);
14
- const hasMenuListContext = (0, _reactContextSelector.useHasParentContext)(_menuListContext.MenuListContext);
16
+ const hasMenuListContext = (0, _reactcontextselector.useHasParentContext)(_menuListContext.MenuListContext);
15
17
  return menuContextValue || hasMenuListContext;
16
18
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["useIsSubmenu.js"],"sourcesContent":["import { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useMenuContext_unstable } from '../contexts/menuContext';\nimport { MenuListContext } from '../contexts/menuListContext';\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 */ export function useIsSubmenu() {\n const menuContextValue = useMenuContext_unstable((context)=>context.isSubmenu);\n const hasMenuListContext = useHasParentContext(MenuListContext);\n return menuContextValue || hasMenuListContext;\n}\n"],"names":["useIsSubmenu","menuContextValue","useMenuContext_unstable","context","isSubmenu","hasMenuListContext","useHasParentContext","MenuListContext"],"mappings":";;;;+BAUoBA;;aAAAA;;sCAVgB;6BACI;iCACR;AAQrB,SAASA,eAAe;IAC/B,MAAMC,mBAAmBC,IAAAA,oCAAuB,EAAC,CAACC,UAAUA,QAAQC,SAAS;IAC7E,MAAMC,qBAAqBC,IAAAA,yCAAmB,EAACC,gCAAe;IAC9D,OAAON,oBAAoBI;AAC/B"}
1
+ {"version":3,"sources":["useIsSubmenu.js"],"sourcesContent":["import { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useMenuContext_unstable } from '../contexts/menuContext';\nimport { MenuListContext } from '../contexts/menuListContext';\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 */ export function useIsSubmenu() {\n const menuContextValue = useMenuContext_unstable((context)=>context.isSubmenu);\n const hasMenuListContext = useHasParentContext(MenuListContext);\n return menuContextValue || hasMenuListContext;\n}\n"],"names":["useIsSubmenu","menuContextValue","useMenuContext_unstable","context","isSubmenu","hasMenuListContext","useHasParentContext","MenuListContext"],"mappings":";;;;+BAUoBA;;;eAAAA;;;sCAVgB;6BACI;iCACR;AAQrB,SAASA;IAChB,MAAMC,mBAAmBC,IAAAA,oCAAuB,EAAC,CAACC,UAAUA,QAAQC,SAAS;IAC7E,MAAMC,qBAAqBC,IAAAA,yCAAmB,EAACC,gCAAe;IAC9D,OAAON,oBAAoBI;AAC/B"}
@@ -9,26 +9,32 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- MENU_ENTER_EVENT: ()=>MENU_ENTER_EVENT,
13
- useOnMenuMouseEnter: ()=>useOnMenuMouseEnter,
14
- dispatchMenuEnterEvent: ()=>dispatchMenuEnterEvent
12
+ MENU_ENTER_EVENT: function() {
13
+ return MENU_ENTER_EVENT;
14
+ },
15
+ useOnMenuMouseEnter: function() {
16
+ return useOnMenuMouseEnter;
17
+ },
18
+ dispatchMenuEnterEvent: function() {
19
+ return dispatchMenuEnterEvent;
20
+ }
15
21
  });
16
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
17
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
18
- const _reactUtilities = require("@fluentui/react-utilities");
19
- const _reactPortal = require("@fluentui/react-portal");
22
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
23
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
24
+ const _reactutilities = require("@fluentui/react-utilities");
25
+ const _reactportal = require("@fluentui/react-portal");
20
26
  const MENU_ENTER_EVENT = 'fuimenuenter';
21
27
  const useOnMenuMouseEnter = (options)=>{
22
- const { refs , callback , element , disabled } = options;
28
+ const { refs, callback, element, disabled } = options;
23
29
  // Keep mouse event here because this is essentially a custom 'mouseenter' event
24
- const listener = (0, _reactUtilities.useEventCallback)((ev)=>{
30
+ const listener = (0, _reactutilities.useEventCallback)((ev)=>{
25
31
  const popoverRef = refs[0];
26
32
  const someMenuPopover = ev.target;
27
33
  var _popoverRef_current;
28
34
  // someMenu is a child -> will always be contained because of vParents
29
35
  // someMenu is a parent -> will always not be contained because no vParent
30
36
  // someMenu is the current popover -> it will contain itself
31
- const isOutsidePopover = !(0, _reactPortal.elementContains)((_popoverRef_current = popoverRef.current) !== null && _popoverRef_current !== void 0 ? _popoverRef_current : null, someMenuPopover);
37
+ const isOutsidePopover = !(0, _reactportal.elementContains)((_popoverRef_current = popoverRef.current) !== null && _popoverRef_current !== void 0 ? _popoverRef_current : null, someMenuPopover);
32
38
  if (isOutsidePopover && !disabled) {
33
39
  callback(ev);
34
40
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["useOnMenuEnter.js"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { elementContains } from '@fluentui/react-portal';\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","useOnMenuMouseEnter","dispatchMenuEnterEvent","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":";;;;;;;;;;;IAKiBA,gBAAgB,MAAhBA;IAWAC,mBAAmB,MAAnBA;IAoCAC,sBAAsB,MAAtBA;;;6DApDM;gCACU;6BACD;AAGrB,MAAMF,mBAAmB;AAWzB,MAAMC,sBAAsB,CAACE,UAAU;IAC9C,MAAM,EAAEC,KAAI,EAAGC,SAAQ,EAAGC,QAAO,EAAGC,SAAQ,EAAG,GAAGJ;IAClD,gFAAgF;IAChF,MAAMK,WAAWC,IAAAA,gCAAgB,EAAC,CAACC,KAAK;QACpC,MAAMC,aAAaP,IAAI,CAAC,EAAE;QAC1B,MAAMQ,kBAAkBF,GAAGG,MAAM;QACjC,IAAIC;QACJ,sEAAsE;QACtE,0EAA0E;QAC1E,4DAA4D;QAC5D,MAAMC,mBAAmB,CAACC,IAAAA,4BAAe,EAAC,AAACF,CAAAA,sBAAsBH,WAAWM,OAAO,AAAD,MAAO,IAAI,IAAIH,wBAAwB,KAAK,IAAIA,sBAAsB,IAAI,EAAEF;QAC9J,IAAIG,oBAAoB,CAACR,UAAU;YAC/BF,SAASK;QACb,CAAC;IACL;IACAQ,OAAMC,SAAS,CAAC,IAAI;QAChB,kCAAkC;QAClC,IAAIb,WAAW,IAAI,EAAE;YACjB;QACJ,CAAC;QACD,IAAI,CAACC,UAAU;YACXD,QAAQc,gBAAgB,CAACpB,kBAAkBQ;QAC/C,CAAC;QACD,OAAO,IAAI;YACPF,QAAQe,mBAAmB,CAACrB,kBAAkBQ;QAClD;IACJ,GAAG;QACCA;QACAF;QACAC;KACH;AACL;AAKW,MAAML,yBAAyB,CAACoB,IAAIC,cAAc;IACzDD,GAAGE,aAAa,CAAC,IAAIC,YAAYzB,kBAAkB;QAC/C0B,SAAS,IAAI;QACbC,QAAQ;YACJJ;QACJ;IACJ;AACJ"}
1
+ {"version":3,"sources":["useOnMenuEnter.js"],"sourcesContent":["import * as React from 'react';\nimport { useEventCallback } from '@fluentui/react-utilities';\nimport { elementContains } from '@fluentui/react-portal';\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","useOnMenuMouseEnter","dispatchMenuEnterEvent","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":";;;;;;;;;;;IAKiBA,gBAAgB;eAAhBA;;IAWAC,mBAAmB;eAAnBA;;IAoCAC,sBAAsB;eAAtBA;;;;iEApDM;gCACU;6BACD;AAGrB,MAAMF,mBAAmB;AAWzB,MAAMC,sBAAsB,CAACE;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,4BAAe,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,MAAML,yBAAyB,CAACoB,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.12.11",
3
+ "version": "9.12.13",
4
4
  "description": "Fluent UI menu component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -36,25 +36,25 @@
36
36
  "@fluentui/scripts-tasks": "*"
37
37
  },
38
38
  "dependencies": {
39
- "@fluentui/keyboard-keys": "^9.0.3",
40
- "@fluentui/react-aria": "^9.3.33",
41
- "@fluentui/react-context-selector": "^9.1.31",
39
+ "@fluentui/keyboard-keys": "^9.0.4",
40
+ "@fluentui/react-aria": "^9.3.35",
41
+ "@fluentui/react-context-selector": "^9.1.33",
42
42
  "@fluentui/react-icons": "^2.0.207",
43
- "@fluentui/react-portal": "^9.3.10",
44
- "@fluentui/react-positioning": "^9.9.8",
45
- "@fluentui/react-shared-contexts": "^9.7.2",
46
- "@fluentui/react-tabster": "^9.12.5",
47
- "@fluentui/react-theme": "^9.1.11",
48
- "@fluentui/react-utilities": "^9.13.0",
49
- "@fluentui/react-jsx-runtime": "^9.0.3",
43
+ "@fluentui/react-portal": "^9.3.12",
44
+ "@fluentui/react-positioning": "^9.9.10",
45
+ "@fluentui/react-shared-contexts": "^9.7.3",
46
+ "@fluentui/react-tabster": "^9.12.7",
47
+ "@fluentui/react-theme": "^9.1.12",
48
+ "@fluentui/react-utilities": "^9.13.2",
49
+ "@fluentui/react-jsx-runtime": "^9.0.5",
50
50
  "@griffel/react": "^1.5.14",
51
- "@swc/helpers": "^0.4.14"
51
+ "@swc/helpers": "^0.5.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@types/react": ">=16.8.0 <19.0.0",
55
- "@types/react-dom": ">=16.8.0 <19.0.0",
56
- "react": ">=16.8.0 <19.0.0",
57
- "react-dom": ">=16.8.0 <19.0.0",
54
+ "@types/react": ">=16.14.0 <19.0.0",
55
+ "@types/react-dom": ">=16.14.0 <19.0.0",
56
+ "react": ">=16.14.0 <19.0.0",
57
+ "react-dom": ">=16.14.0 <19.0.0",
58
58
  "scheduler": "^0.19.0 || ^0.20.0"
59
59
  },
60
60
  "beachball": {