@fluentui/react-menu 0.0.0-nightly5ab766c40f20220114.1 → 0.0.0-nightly6a6e258c4020220125.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/CHANGELOG.json +56 -26
  2. package/CHANGELOG.md +19 -16
  3. package/dist/react-menu.d.ts +56 -54
  4. package/lib/components/Menu/Menu.js +6 -6
  5. package/lib/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/renderMenu.d.ts +1 -1
  7. package/lib/components/Menu/renderMenu.js +1 -1
  8. package/lib/components/Menu/renderMenu.js.map +1 -1
  9. package/lib/components/Menu/useMenu.d.ts +2 -2
  10. package/lib/components/Menu/useMenu.js +4 -4
  11. package/lib/components/Menu/useMenu.js.map +1 -1
  12. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  13. package/lib/components/Menu/useMenuContextValues.js +1 -1
  14. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  15. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  17. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  18. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  19. package/lib/components/MenuDivider/renderMenuDivider.js +1 -1
  20. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  21. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  22. package/lib/components/MenuDivider/useMenuDivider.js +1 -1
  23. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  24. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  25. package/lib/components/MenuDivider/useMenuDividerStyles.js +1 -1
  26. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  27. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  28. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  29. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  30. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  31. package/lib/components/MenuGroup/renderMenuGroup.js +1 -1
  32. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  33. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/useMenuGroup.js +1 -1
  35. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  37. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  38. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  39. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  40. package/lib/components/MenuGroup/useMenuGroupStyles.js +1 -1
  41. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  42. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  43. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  44. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  45. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  46. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +1 -1
  47. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  48. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  49. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +3 -3
  50. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  51. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  52. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +1 -1
  53. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  54. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  55. package/lib/components/MenuItem/MenuItem.js +7 -7
  56. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  57. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  58. package/lib/components/MenuItem/renderMenuItem.js +1 -1
  59. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  60. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  61. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  62. package/lib/components/MenuItem/useMenuItem.d.ts +1 -1
  63. package/lib/components/MenuItem/useMenuItem.js +9 -9
  64. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  65. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  66. package/lib/components/MenuItem/useMenuItemStyles.js +3 -3
  67. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  68. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  69. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  70. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  71. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  72. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +1 -1
  73. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  74. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  75. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  76. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  77. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  78. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +5 -5
  79. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  80. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  81. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  82. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  83. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  84. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +1 -1
  85. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  86. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  87. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  88. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  89. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  90. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +5 -5
  91. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  92. package/lib/components/MenuList/MenuList.d.ts +1 -1
  93. package/lib/components/MenuList/MenuList.js +9 -9
  94. package/lib/components/MenuList/MenuList.js.map +1 -1
  95. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  96. package/lib/components/MenuList/renderMenuList.js +1 -1
  97. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  98. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  99. package/lib/components/MenuList/useMenuList.js +8 -8
  100. package/lib/components/MenuList/useMenuList.js.map +1 -1
  101. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  102. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  103. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  104. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  105. package/lib/components/MenuList/useMenuListStyles.js +1 -1
  106. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  107. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  108. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  109. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  110. package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
  111. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  112. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  113. package/lib/components/MenuPopover/useMenuPopover.js +8 -8
  114. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  115. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  116. package/lib/components/MenuPopover/useMenuPopoverStyles.js +1 -1
  117. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  118. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +6 -6
  119. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  120. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  121. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +1 -1
  122. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  123. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  124. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +3 -3
  125. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  126. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  127. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +1 -1
  128. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  129. package/lib/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  130. package/lib/components/MenuTrigger/MenuTrigger.js +7 -6
  131. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  132. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  133. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  134. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  135. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  136. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  137. package/lib/components/MenuTrigger/useMenuTrigger.js +177 -5
  138. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  139. package/lib/contexts/menuContext.d.ts +1 -1
  140. package/lib/contexts/menuContext.js +1 -1
  141. package/lib/contexts/menuContext.js.map +1 -1
  142. package/lib/contexts/menuGroupContext.d.ts +1 -1
  143. package/lib/contexts/menuGroupContext.js +1 -1
  144. package/lib/contexts/menuGroupContext.js.map +1 -1
  145. package/lib/contexts/menuListContext.d.ts +1 -1
  146. package/lib/contexts/menuListContext.js +1 -1
  147. package/lib/contexts/menuListContext.js.map +1 -1
  148. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  149. package/lib/contexts/menuTriggerContext.js +1 -1
  150. package/lib/contexts/menuTriggerContext.js.map +1 -1
  151. package/lib/selectable/useCheckmarkStyles.d.ts +1 -1
  152. package/lib/selectable/useCheckmarkStyles.js +1 -1
  153. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  154. package/lib/utils/useIsSubmenu.js +2 -2
  155. package/lib/utils/useIsSubmenu.js.map +1 -1
  156. package/lib-commonjs/components/Menu/Menu.js +3 -3
  157. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  158. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  159. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  160. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  161. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  162. package/lib-commonjs/components/Menu/useMenu.js +5 -5
  163. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  164. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  165. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  166. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  167. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  168. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  169. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  170. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  171. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
  172. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  173. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  174. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +3 -3
  175. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  176. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  177. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +3 -3
  178. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  179. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  180. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  181. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  182. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  183. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
  184. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  185. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  186. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +3 -3
  187. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  188. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  189. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  190. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  191. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  192. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +3 -3
  193. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  194. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  195. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  196. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  197. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  198. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
  199. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  200. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  201. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +4 -4
  202. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  203. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  204. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +3 -3
  205. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  206. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  207. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
  208. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  209. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  210. package/lib-commonjs/components/MenuItem/renderMenuItem.js +3 -3
  211. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  212. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  213. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  214. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +1 -1
  215. package/lib-commonjs/components/MenuItem/useMenuItem.js +8 -8
  216. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  217. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  218. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +4 -4
  219. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  220. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  221. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  222. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  223. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  224. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +3 -3
  225. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  226. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  227. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  228. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  229. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  230. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +5 -5
  231. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  232. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  233. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  234. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  235. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  236. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +3 -3
  237. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  238. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  239. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  240. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  241. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  242. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +5 -5
  243. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  244. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  245. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  246. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  247. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  248. package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
  249. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  250. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  251. package/lib-commonjs/components/MenuList/useMenuList.js +9 -9
  252. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  253. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  254. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  255. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  256. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  257. package/lib-commonjs/components/MenuList/useMenuListStyles.js +3 -3
  258. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  259. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  260. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  261. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  262. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
  263. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  264. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  265. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +9 -9
  266. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  267. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  268. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +3 -3
  269. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  270. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +3 -3
  271. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  272. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  273. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +3 -3
  274. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  275. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  276. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +5 -5
  277. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  278. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  279. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +3 -3
  280. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  281. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  282. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -6
  283. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  284. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  285. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  286. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  287. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  288. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  289. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +186 -7
  290. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  291. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  292. package/lib-commonjs/contexts/menuContext.js +3 -3
  293. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  294. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  295. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  296. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  297. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  298. package/lib-commonjs/contexts/menuListContext.js +3 -3
  299. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  300. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  301. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  302. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  303. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +1 -1
  304. package/lib-commonjs/selectable/useCheckmarkStyles.js +3 -3
  305. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  306. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  307. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  308. package/package.json +14 -14
  309. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  310. package/lib/components/MenuTrigger/useTriggerElement.js +0 -166
  311. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  312. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  313. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -181
  314. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@fluentui/react-menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 14 Jan 2022 04:15:09 GMT",
6
- "tag": "@fluentui/react-menu_v0.0.0-nightly5ab766c40f20220114.1",
7
- "version": "0.0.0-nightly5ab766c40f20220114.1",
5
+ "date": "Tue, 25 Jan 2022 04:17:19 GMT",
6
+ "tag": "@fluentui/react-menu_v0.0.0-nightly6a6e258c4020220125.1",
7
+ "version": "0.0.0-nightly6a6e258c4020220125.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-menu",
13
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd",
13
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
@@ -25,6 +25,24 @@
25
25
  "commit": "6ca0355f6740f836ff4df009687718a380085247",
26
26
  "comment": "fix: Focus on first menu item on click"
27
27
  },
28
+ {
29
+ "author": "lingfangao@hotmail.com",
30
+ "package": "@fluentui/react-menu",
31
+ "commit": "4f22b6dad04ea37eb53e4af23c73d2de4db512a2",
32
+ "comment": "fix: MenuTrigger should work correctly when `aria-disabled=\"true\"`"
33
+ },
34
+ {
35
+ "author": "lingfangao@hotmail.com",
36
+ "package": "@fluentui/react-menu",
37
+ "commit": "d2eb57808a403b70845a732a62b55aa64d66b2a0",
38
+ "comment": "Allow `MenuTrigger` to be wrapped by another trigger"
39
+ },
40
+ {
41
+ "author": "behowell@microsoft.com",
42
+ "package": "@fluentui/react-menu",
43
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
44
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
45
+ },
28
46
  {
29
47
  "author": "Humberto.Morimoto@microsoft.com",
30
48
  "package": "@fluentui/react-menu",
@@ -100,68 +118,68 @@
100
118
  {
101
119
  "author": "beachball",
102
120
  "package": "@fluentui/react-menu",
103
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly5ab766c40f20220114.1",
104
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
121
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly6a6e258c4020220125.1",
122
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
105
123
  },
106
124
  {
107
125
  "author": "beachball",
108
126
  "package": "@fluentui/react-menu",
109
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly5ab766c40f20220114.1",
110
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
127
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly6a6e258c4020220125.1",
128
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
111
129
  },
112
130
  {
113
131
  "author": "beachball",
114
132
  "package": "@fluentui/react-menu",
115
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly5ab766c40f20220114.1",
116
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
133
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
134
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
117
135
  },
118
136
  {
119
137
  "author": "beachball",
120
138
  "package": "@fluentui/react-menu",
121
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightly5ab766c40f20220114.1",
122
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
139
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightly6a6e258c4020220125.1",
140
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
123
141
  },
124
142
  {
125
143
  "author": "beachball",
126
144
  "package": "@fluentui/react-menu",
127
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly5ab766c40f20220114.1",
128
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
145
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly6a6e258c4020220125.1",
146
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
129
147
  },
130
148
  {
131
149
  "author": "beachball",
132
150
  "package": "@fluentui/react-menu",
133
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly5ab766c40f20220114.1",
134
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
151
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly6a6e258c4020220125.1",
152
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
135
153
  },
136
154
  {
137
155
  "author": "beachball",
138
156
  "package": "@fluentui/react-menu",
139
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly5ab766c40f20220114.1",
140
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
157
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly6a6e258c4020220125.1",
158
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
141
159
  },
142
160
  {
143
161
  "author": "beachball",
144
162
  "package": "@fluentui/react-menu",
145
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly5ab766c40f20220114.1",
146
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
163
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly6a6e258c4020220125.1",
164
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
147
165
  },
148
166
  {
149
167
  "author": "beachball",
150
168
  "package": "@fluentui/react-menu",
151
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly5ab766c40f20220114.1",
152
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
169
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
170
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
153
171
  },
154
172
  {
155
173
  "author": "beachball",
156
174
  "package": "@fluentui/react-menu",
157
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly5ab766c40f20220114.1",
158
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
175
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
176
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
159
177
  },
160
178
  {
161
179
  "author": "beachball",
162
180
  "package": "@fluentui/react-menu",
163
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly5ab766c40f20220114.1",
164
- "commit": "afbf0defba27d6180bd53e24443fff8da633f9dd"
181
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
182
+ "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
165
183
  }
166
184
  ],
167
185
  "none": [
@@ -171,11 +189,23 @@
171
189
  "commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
172
190
  "comment": "Add workaround for cypress bug"
173
191
  },
192
+ {
193
+ "author": "olfedias@microsoft.com",
194
+ "package": "@fluentui/react-menu",
195
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
196
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
197
+ },
174
198
  {
175
199
  "author": "elcraig@microsoft.com",
176
200
  "package": "@fluentui/react-menu",
177
201
  "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
178
202
  "comment": "Update API file to version generated by typescript 4.3"
203
+ },
204
+ {
205
+ "author": "martinhochel@microsoft.com",
206
+ "package": "@fluentui/react-menu",
207
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
208
+ "comment": "chore: use storybook runner for all vNext packages"
179
209
  }
180
210
  ]
181
211
  }
package/CHANGELOG.md CHANGED
@@ -1,19 +1,22 @@
1
1
  # Change Log - @fluentui/react-menu
2
2
 
3
- This log was last generated on Fri, 14 Jan 2022 04:15:09 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Jan 2022 04:17:19 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly5ab766c40f20220114.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightly5ab766c40f20220114.1)
7
+ ## [0.0.0-nightly6a6e258c4020220125.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightly6a6e258c4020220125.1)
8
8
 
9
- Fri, 14 Jan 2022 04:15:09 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightly5ab766c40f20220114.1)
9
+ Tue, 25 Jan 2022 04:17:19 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightly6a6e258c4020220125.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by email not defined)
15
15
  - fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
16
16
  - fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
17
+ - fix: MenuTrigger should work correctly when `aria-disabled="true"` ([PR #21349](https://github.com/microsoft/fluentui/pull/21349) by lingfangao@hotmail.com)
18
+ - Allow `MenuTrigger` to be wrapped by another trigger ([PR #21225](https://github.com/microsoft/fluentui/pull/21225) by lingfangao@hotmail.com)
19
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
17
20
  - Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
18
21
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
19
22
  - update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
@@ -26,17 +29,17 @@ Fri, 14 Jan 2022 04:15:09 GMT
26
29
  - Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
27
30
  - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
28
31
  - breaking: MenuTrigger must be the first child of the `Menu` ([PR #21096](https://github.com/microsoft/fluentui/pull/21096) by lingfangao@hotmail.com)
29
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
30
- - Bump @fluentui/react-context-selector to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
31
- - Bump @fluentui/react-make-styles to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
32
- - Bump @fluentui/react-portal to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
33
- - Bump @fluentui/react-positioning to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
34
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
35
- - Bump @fluentui/react-tabster to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
36
- - Bump @fluentui/react-utilities to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
37
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
38
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
39
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly5ab766c40f20220114.1 ([commit](https://github.com/microsoft/fluentui/commit/afbf0defba27d6180bd53e24443fff8da633f9dd) by beachball)
32
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
33
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
34
+ - Bump @fluentui/react-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
35
+ - Bump @fluentui/react-portal to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
36
+ - Bump @fluentui/react-positioning to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
37
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
38
+ - Bump @fluentui/react-tabster to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
39
+ - Bump @fluentui/react-utilities to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
40
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
41
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
42
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
40
43
 
41
44
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
42
45
 
@@ -73,7 +73,7 @@ export declare type MenuContextValues = {
73
73
  };
74
74
 
75
75
  /**
76
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
76
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
77
77
  */
78
78
  export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
79
79
 
@@ -88,7 +88,7 @@ export declare type MenuDividerSlots = {
88
88
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
89
89
 
90
90
  /**
91
- * Define a styled MenuGroup, using the `useMenuGroup` hook.
91
+ * Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
92
92
  */
93
93
  export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
94
94
 
@@ -112,7 +112,7 @@ export declare type MenuGroupContextValues = {
112
112
  };
113
113
 
114
114
  /**
115
- * Define a styled MenuGroupHeader, using the `useMenuGroupHeader` hook.
115
+ * Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
116
116
  */
117
117
  export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
118
118
 
@@ -140,12 +140,12 @@ export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
140
140
  };
141
141
 
142
142
  /**
143
- * Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
143
+ * Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
144
144
  */
145
145
  export declare const MenuItem: ForwardRefComponent<MenuItemProps>;
146
146
 
147
147
  /**
148
- * Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox` hook.
148
+ * Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox_unstable` hook.
149
149
  */
150
150
  export declare const MenuItemCheckbox: ForwardRefComponent<MenuItemCheckboxProps>;
151
151
 
@@ -175,7 +175,7 @@ declare type MenuItemCommons = {
175
175
  export declare type MenuItemProps = ComponentProps<Partial<MenuItemSlots>> & MenuItemCommons;
176
176
 
177
177
  /**
178
- * Define a styled MenuItemRadio, using the `useMenuItemRadio` hook.
178
+ * Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.
179
179
  */
180
180
  export declare const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;
181
181
 
@@ -248,7 +248,7 @@ export declare type MenuItemSlots = {
248
248
  export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemCommons;
249
249
 
250
250
  /**
251
- * Define a styled MenuList, using the `useMenuList` hook.
251
+ * Define a styled MenuList, using the `useMenuList_unstable` hook.
252
252
  */
253
253
  export declare const MenuList: ForwardRefComponent<MenuListProps>;
254
254
 
@@ -447,12 +447,12 @@ export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
447
447
  * Wraps a trigger element as an only child
448
448
  * and adds the necessary event handling to open a popup menu
449
449
  */
450
- export declare const MenuTrigger: React_2.FC<MenuTriggerProps>;
450
+ export declare const MenuTrigger: React_2.ForwardRefExoticComponent<MenuTriggerProps & React_2.RefAttributes<HTMLElement>>;
451
451
 
452
452
  /**
453
453
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
454
454
  */
455
- export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
455
+ export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
456
456
  ref?: React_2.Ref<never>;
457
457
  'aria-expanded': boolean | undefined;
458
458
  };
@@ -468,66 +468,68 @@ export declare type MenuTriggerProps = {
468
468
  }) | ((props: MenuTriggerChildProps) => React_2.ReactNode);
469
469
  };
470
470
 
471
- export declare type MenuTriggerState = MenuTriggerProps;
471
+ export declare type MenuTriggerState = {
472
+ children: React_2.ReactNode;
473
+ };
472
474
 
473
475
  /**
474
476
  * Render the final JSX of Menu
475
477
  */
476
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
478
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
477
479
 
478
480
  /**
479
481
  * Redefine the render function to add slots. Reuse the menudivider structure but add
480
482
  * slots to children.
481
483
  */
482
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
484
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
483
485
 
484
486
  /**
485
487
  * Redefine the render function to add slots. Reuse the menugroup structure but add
486
488
  * slots to children.
487
489
  */
488
- export declare const renderMenuGroup: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
490
+ export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
489
491
 
490
492
  /**
491
493
  * Redefine the render function to add slots. Reuse the menugroupheader structure but add
492
494
  * slots to children.
493
495
  */
494
- export declare const renderMenuGroupHeader: (state: MenuGroupHeaderState) => JSX.Element;
496
+ export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
495
497
 
496
498
  /**
497
499
  * Function that renders the final JSX of the component
498
500
  */
499
- export declare const renderMenuItem: (state: MenuItemState) => JSX.Element;
501
+ export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
500
502
 
501
503
  /** Function that renders the final JSX of the component */
502
- export declare const renderMenuItemCheckbox: (state: MenuItemCheckboxState) => JSX.Element;
504
+ export declare const renderMenuItemCheckbox_unstable: (state: MenuItemCheckboxState) => JSX.Element;
503
505
 
504
506
  /**
505
507
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
506
508
  * slots to children.
507
509
  */
508
- export declare const renderMenuItemRadio: (state: MenuItemRadioState) => JSX.Element;
510
+ export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
509
511
 
510
512
  /**
511
513
  * Function that renders the final JSX of the component
512
514
  */
513
- export declare const renderMenuList: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
515
+ export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
514
516
 
515
517
  /**
516
518
  * Render the final JSX of MenuPopover
517
519
  */
518
- export declare const renderMenuPopover: (state: MenuPopoverState) => JSX.Element;
520
+ export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
519
521
 
520
522
  /**
521
523
  * Render the final JSX of MenuSplitGroup
522
524
  */
523
- export declare const renderMenuSplitGroup: (state: MenuSplitGroupState) => JSX.Element;
525
+ export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
524
526
 
525
527
  /**
526
528
  * Render the final JSX of MenuTrigger
527
529
  *
528
530
  * Only renders children
529
531
  */
530
- export declare const renderMenuTrigger: (state: MenuTriggerState) => JSX.Element;
532
+ export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
531
533
 
532
534
  export declare type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked: boolean) => void;
533
535
 
@@ -538,112 +540,112 @@ export declare type UninitializedMenuListState = Omit<MenuListState, 'setFocusBy
538
540
  *
539
541
  * @param state - should contain a `checkmark` slot
540
542
  */
541
- export declare const useCheckmarkStyles: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
543
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
542
544
 
543
545
  /**
544
546
  * Create the state required to render Menu.
545
547
  *
546
548
  * The returned state can be modified with hooks such as useMenuStyles,
547
- * before being passed to renderMenu.
549
+ * before being passed to renderMenu_unstable.
548
550
  *
549
551
  * @param props - props from this instance of Menu
550
552
  */
551
- export declare const useMenu: (props: MenuProps) => MenuState;
553
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
552
554
 
553
- export declare const useMenuContext: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
555
+ export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
554
556
 
555
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
557
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
556
558
 
557
559
  /**
558
560
  * Given user props, returns state and render function for a MenuDivider.
559
561
  */
560
- export declare const useMenuDivider: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
562
+ export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
561
563
 
562
- export declare const useMenuDividerStyles: (state: MenuDividerState) => MenuDividerState;
564
+ export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
563
565
 
564
566
  /**
565
567
  * Given user props, returns state and render function for a MenuGroup.
566
568
  */
567
- export declare function useMenuGroup(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
569
+ export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
568
570
 
569
- export declare const useMenuGroupContext: () => MenuGroupContextValue;
571
+ export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
570
572
 
571
- export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGroupContextValues;
573
+ export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
572
574
 
573
575
  /**
574
576
  * Given user props, returns state and render function for a MenuGroupHeader.
575
577
  */
576
- export declare function useMenuGroupHeader(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
578
+ export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
577
579
 
578
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
580
+ export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
579
581
 
580
- export declare const useMenuGroupStyles: (state: MenuGroupState) => MenuGroupState;
582
+ export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
581
583
 
582
584
  /**
583
585
  * Returns the props and state required to render the component
584
586
  */
585
- export declare const useMenuItem: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
587
+ export declare const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
586
588
 
587
589
  /** Returns the props and state required to render the component */
588
- export declare const useMenuItemCheckbox: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
590
+ export declare const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
589
591
 
590
- export declare const useMenuItemCheckboxStyles: (state: MenuItemCheckboxState) => void;
592
+ export declare const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => void;
591
593
 
592
594
  /**
593
595
  * Given user props, returns state and render function for a MenuItemRadio.
594
596
  */
595
- export declare const useMenuItemRadio: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
597
+ export declare const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
596
598
 
597
- export declare const useMenuItemRadioStyles: (state: MenuItemRadioState) => void;
599
+ export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
598
600
 
599
601
  /** Applies style classnames to slots */
600
- export declare const useMenuItemStyles: (state: MenuItemState) => void;
602
+ export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;
601
603
 
602
604
  /**
603
605
  * Returns the props and state required to render the component
604
606
  */
605
- export declare const useMenuList: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
607
+ export declare const useMenuList_unstable: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
606
608
 
607
- export declare const useMenuListContext: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
609
+ export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
608
610
 
609
- export declare function useMenuListContextValues(state: MenuListState): MenuListContextValues;
611
+ export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
610
612
 
611
613
  /**
612
614
  * Apply styling to the Menu slots based on the state
613
615
  */
614
- export declare const useMenuListStyles: (state: MenuListState) => MenuListState;
616
+ export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
615
617
 
616
618
  /**
617
619
  * Create the state required to render MenuPopover.
618
620
  *
619
- * The returned state can be modified with hooks such as useMenuPopoverStyles,
620
- * before being passed to renderMenuPopover.
621
+ * The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
622
+ * before being passed to renderMenuPopover_unstable.
621
623
  *
622
624
  * @param props - props from this instance of MenuPopover
623
625
  * @param ref - reference to root HTMLElement of MenuPopover
624
626
  */
625
- export declare const useMenuPopover: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
627
+ export declare const useMenuPopover_unstable: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
626
628
 
627
629
  /**
628
630
  * Apply styling to the Menu slots based on the state
629
631
  */
630
- export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopoverState;
632
+ export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
631
633
 
632
634
  /**
633
635
  * Create the state required to render MenuSplitGroup.
634
636
  *
635
- * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
636
- * before being passed to renderMenuSplitGroup.
637
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
638
+ * before being passed to renderMenuSplitGroup_unstable.
637
639
  *
638
640
  * @param props - props from this instance of MenuSplitGroup
639
641
  * @param ref - reference to root HTMLElement of MenuSplitGroup
640
642
  */
641
- export declare const useMenuSplitGroup: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
643
+ export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
642
644
 
643
645
  /**
644
646
  * Apply styling to the MenuSplitGroup slots based on the state
645
647
  */
646
- export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => MenuSplitGroupState;
648
+ export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
647
649
 
648
650
  /**
649
651
  * Create the state required to render MenuTrigger.
@@ -651,8 +653,8 @@ export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => Me
651
653
  *
652
654
  * @param props - props from this instance of MenuTrigger
653
655
  */
654
- export declare const useMenuTrigger: (props: MenuTriggerProps) => MenuTriggerState;
656
+ export declare const useMenuTrigger_unstable: (props: MenuTriggerProps, ref: React_2.Ref<HTMLElement>) => MenuTriggerState;
655
657
 
656
- export declare const useMenuTriggerContext: () => boolean;
658
+ export declare const useMenuTriggerContext_unstable: () => boolean;
657
659
 
658
660
  export { }
@@ -1,14 +1,14 @@
1
- import { useMenu } from './useMenu';
2
- import { useMenuContextValues } from './useMenuContextValues';
3
- import { renderMenu } from './renderMenu';
1
+ import { useMenu_unstable } from './useMenu';
2
+ import { useMenuContextValues_unstable } from './useMenuContextValues';
3
+ import { renderMenu_unstable } from './renderMenu';
4
4
  /**
5
5
  * Wrapper component that manages state for a popup MenuList and a MenuTrigger
6
6
  */
7
7
 
8
8
  export const Menu = props => {
9
- const state = useMenu(props);
10
- const contextValues = useMenuContextValues(state);
11
- return renderMenu(state, contextValues);
9
+ const state = useMenu_unstable(props);
10
+ const contextValues = useMenuContextValues_unstable(state);
11
+ return renderMenu_unstable(state, contextValues);
12
12
  };
13
13
  Menu.displayName = 'Menu';
14
14
  //# sourceMappingURL=Menu.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,UAAT,QAA2B,cAA3B;AAGA;;AAEG;;AACH,OAAO,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,OAAO,CAAC,KAAD,CAArB;AACA,QAAM,aAAa,GAAG,oBAAoB,CAAC,KAAD,CAA1C;AAEA,SAAO,UAAU,CAAC,KAAD,EAAQ,aAAR,CAAjB;AACD,CALM;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,mBAAT,QAAoC,cAApC;AAGA;;AAEG;;AACH,OAAO,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,CAA9B;AACA,QAAM,aAAa,GAAG,6BAA6B,CAAC,KAAD,CAAnD;AAEA,SAAO,mBAAmB,CAAC,KAAD,EAAQ,aAAR,CAA1B;AACD,CALM;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -2,4 +2,4 @@ import type { MenuContextValues, MenuState } from './Menu.types';
2
2
  /**
3
3
  * Render the final JSX of Menu
4
4
  */
5
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
5
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
@@ -4,7 +4,7 @@ import { MenuProvider } from '../../contexts/menuContext';
4
4
  * Render the final JSX of Menu
5
5
  */
6
6
 
7
- export const renderMenu = (state, contextValues) => {
7
+ export const renderMenu_unstable = (state, contextValues) => {
8
8
  return /*#__PURE__*/React.createElement(MenuProvider, {
9
9
  value: contextValues.menu
10
10
  }, state.menuTrigger, state.open && state.menuPopover);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,4BAA7B;AAGA;;AAEG;;AACH,OAAO,MAAM,UAAU,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AAC/E,sBACE,KAAA,CAAA,aAAA,CAAC,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,4BAA7B;AAGA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AACxF,sBACE,KAAA,CAAA,aAAA,CAAC,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM","sourceRoot":""}
@@ -3,8 +3,8 @@ import type { MenuProps, MenuState } from './Menu.types';
3
3
  * Create the state required to render Menu.
4
4
  *
5
5
  * The returned state can be modified with hooks such as useMenuStyles,
6
- * before being passed to renderMenu.
6
+ * before being passed to renderMenu_unstable.
7
7
  *
8
8
  * @param props - props from this instance of Menu
9
9
  */
10
- export declare const useMenu: (props: MenuProps) => MenuState;
10
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
@@ -4,19 +4,19 @@ import { useControllableState, useId, useOnClickOutside, useEventCallback } from
4
4
  import { useFluent } from '@fluentui/react-shared-contexts';
5
5
  import { elementContains } from '@fluentui/react-portal';
6
6
  import { useFocusFinders } from '@fluentui/react-tabster';
7
- import { useMenuContext } from '../../contexts/menuContext';
7
+ import { useMenuContext_unstable } from '../../contexts/menuContext';
8
8
  import { MENU_ENTER_EVENT, useOnMenuMouseEnter } from '../../utils/index';
9
9
  import { useIsSubmenu } from '../../utils/useIsSubmenu';
10
10
  /**
11
11
  * Create the state required to render Menu.
12
12
  *
13
13
  * The returned state can be modified with hooks such as useMenuStyles,
14
- * before being passed to renderMenu.
14
+ * before being passed to renderMenu_unstable.
15
15
  *
16
16
  * @param props - props from this instance of Menu
17
17
  */
18
18
 
19
- export const useMenu = props => {
19
+ export const useMenu_unstable = props => {
20
20
  const triggerId = useId('menu');
21
21
  const isSubmenu = useIsSubmenu();
22
22
  const [contextTarget, setContextTarget] = usePopperMouseTarget();
@@ -118,7 +118,7 @@ const useMenuOpenState = state => {
118
118
  const {
119
119
  targetDocument
120
120
  } = useFluent();
121
- const parentSetOpen = useMenuContext(context => context.setOpen);
121
+ const parentSetOpen = useMenuContext_unstable(context => context.setOpen);
122
122
  const onOpenChange = useEventCallback((e, data) => {
123
123
  var _a;
124
124