@fluentui/react-menu 0.0.0-nightlyc0273fdc6920211123.1 → 0.0.0-nightlyc49127232120220201.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 (367) hide show
  1. package/CHANGELOG.json +231 -26
  2. package/CHANGELOG.md +55 -20
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +108 -66
  5. package/lib/MenuSplitGroup.d.ts +1 -0
  6. package/lib/MenuSplitGroup.js +2 -0
  7. package/lib/MenuSplitGroup.js.map +1 -0
  8. package/lib/components/Menu/Menu.js +6 -6
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/renderMenu.d.ts +1 -1
  11. package/lib/components/Menu/renderMenu.js +1 -1
  12. package/lib/components/Menu/renderMenu.js.map +1 -1
  13. package/lib/components/Menu/useMenu.d.ts +2 -2
  14. package/lib/components/Menu/useMenu.js +33 -25
  15. package/lib/components/Menu/useMenu.js.map +1 -1
  16. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  17. package/lib/components/Menu/useMenuContextValues.js +1 -1
  18. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  19. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  20. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  21. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  22. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  23. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  24. package/lib/components/MenuDivider/renderMenuDivider.js +3 -2
  25. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  26. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  27. package/lib/components/MenuDivider/useMenuDivider.js +4 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  29. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  30. package/lib/components/MenuDivider/useMenuDividerStyles.js +3 -2
  31. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  32. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  33. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  34. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  35. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  36. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  37. package/lib/components/MenuGroup/renderMenuGroup.js +3 -2
  38. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  39. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  40. package/lib/components/MenuGroup/useMenuGroup.js +4 -1
  41. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  42. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  43. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  44. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  45. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  46. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  47. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  48. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  49. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  50. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  51. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  52. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -2
  54. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +6 -3
  57. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  58. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  59. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +3 -2
  60. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  61. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  62. package/lib/components/MenuItem/MenuItem.js +7 -9
  63. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  64. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  65. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  66. package/lib/components/MenuItem/renderMenuItem.js +9 -4
  67. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  68. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  69. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  70. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  71. package/lib/components/MenuItem/useMenuItem.js +11 -16
  72. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  73. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  74. package/lib/components/MenuItem/useMenuItemStyles.js +27 -24
  75. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  76. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  77. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  78. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  79. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  80. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +8 -4
  81. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  82. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  84. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  85. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  86. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  87. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  88. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  89. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  90. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  91. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  92. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +8 -4
  93. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  94. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  95. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  96. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  97. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  98. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  99. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  100. package/lib/components/MenuList/MenuList.d.ts +1 -1
  101. package/lib/components/MenuList/MenuList.js +9 -9
  102. package/lib/components/MenuList/MenuList.js.map +1 -1
  103. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  104. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  105. package/lib/components/MenuList/renderMenuList.js +3 -2
  106. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  107. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  108. package/lib/components/MenuList/useMenuList.js +11 -8
  109. package/lib/components/MenuList/useMenuList.js.map +1 -1
  110. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  111. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  112. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  113. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  114. package/lib/components/MenuList/useMenuListStyles.js +5 -4
  115. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  116. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  117. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  119. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  120. package/lib/components/MenuPopover/renderMenuPopover.js +5 -3
  121. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  122. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  123. package/lib/components/MenuPopover/useMenuPopover.js +11 -8
  124. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  125. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  126. package/lib/components/MenuPopover/useMenuPopoverStyles.js +8 -4
  127. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  128. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  129. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  130. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  131. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  132. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  133. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  134. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  135. package/lib/components/MenuSplitGroup/index.js +6 -0
  136. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  137. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  138. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  139. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  140. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  141. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  142. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  143. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  144. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  145. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  146. package/lib/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  147. package/lib/components/MenuTrigger/MenuTrigger.js +7 -6
  148. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  149. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +5 -2
  150. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  151. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  152. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  153. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  154. package/lib/components/MenuTrigger/useMenuTrigger.js +177 -5
  155. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  156. package/lib/contexts/menuContext.d.ts +1 -1
  157. package/lib/contexts/menuContext.js +1 -1
  158. package/lib/contexts/menuContext.js.map +1 -1
  159. package/lib/contexts/menuGroupContext.d.ts +1 -1
  160. package/lib/contexts/menuGroupContext.js +1 -1
  161. package/lib/contexts/menuGroupContext.js.map +1 -1
  162. package/lib/contexts/menuListContext.d.ts +1 -1
  163. package/lib/contexts/menuListContext.js +1 -1
  164. package/lib/contexts/menuListContext.js.map +1 -1
  165. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  166. package/lib/contexts/menuTriggerContext.js +1 -1
  167. package/lib/contexts/menuTriggerContext.js.map +1 -1
  168. package/lib/index.d.ts +11 -10
  169. package/lib/index.js +11 -10
  170. package/lib/index.js.map +1 -1
  171. package/lib/selectable/useCheckmarkStyles.d.ts +1 -1
  172. package/lib/selectable/useCheckmarkStyles.js +2 -2
  173. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  174. package/lib/utils/useIsSubmenu.js +2 -2
  175. package/lib/utils/useIsSubmenu.js.map +1 -1
  176. package/lib/utils/useOnMenuEnter.js.map +1 -1
  177. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  178. package/lib-commonjs/MenuSplitGroup.js +10 -0
  179. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  180. package/lib-commonjs/components/Menu/Menu.js +3 -3
  181. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  182. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  183. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  184. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  185. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  186. package/lib-commonjs/components/Menu/useMenu.js +38 -31
  187. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  188. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  189. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  190. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  191. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  192. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  193. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  194. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  195. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  196. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +5 -4
  197. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  198. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  199. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +6 -3
  200. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  201. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  202. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  203. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  204. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  205. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  206. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  207. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  208. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  209. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +5 -4
  210. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  211. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  212. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +6 -3
  213. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  214. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  215. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  216. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  217. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  218. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  219. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  220. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  221. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  222. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  223. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  224. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  225. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +5 -4
  226. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  227. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  228. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +7 -4
  229. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  230. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  231. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  232. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  233. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  234. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -7
  235. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  236. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  237. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  238. package/lib-commonjs/components/MenuItem/renderMenuItem.js +11 -7
  239. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  240. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  241. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  242. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  243. package/lib-commonjs/components/MenuItem/useMenuItem.js +11 -16
  244. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  245. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  246. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +36 -31
  247. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  248. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  249. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  250. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  251. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  252. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +10 -7
  253. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  254. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  255. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  256. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  257. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  258. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  259. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  260. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  261. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  262. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  263. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  264. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +10 -7
  265. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  266. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  267. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  268. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  269. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  270. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  271. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  272. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  273. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  274. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  275. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  276. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  277. package/lib-commonjs/components/MenuList/renderMenuList.js +5 -4
  278. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  279. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  280. package/lib-commonjs/components/MenuList/useMenuList.js +12 -9
  281. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  282. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  283. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  284. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  285. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  286. package/lib-commonjs/components/MenuList/useMenuListStyles.js +9 -8
  287. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  288. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  289. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  290. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  291. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  292. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +7 -5
  293. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  294. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  295. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +12 -9
  296. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  297. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  298. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +13 -8
  299. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  300. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  301. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  302. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  303. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  304. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  305. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  306. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  307. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  308. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  309. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  310. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  311. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  312. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  313. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  314. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  315. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  316. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  317. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  318. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  319. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -6
  320. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  321. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +5 -2
  322. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  323. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  324. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  325. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  326. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +186 -7
  327. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  328. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  329. package/lib-commonjs/contexts/menuContext.js +3 -3
  330. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  331. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  332. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  333. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  334. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  335. package/lib-commonjs/contexts/menuListContext.js +3 -3
  336. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  337. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  338. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  339. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  340. package/lib-commonjs/index.d.ts +11 -10
  341. package/lib-commonjs/index.js +16 -14
  342. package/lib-commonjs/index.js.map +1 -1
  343. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +1 -1
  344. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  345. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  346. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  347. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  348. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  349. package/package.json +15 -16
  350. package/lib/common/isConformant.d.ts +0 -4
  351. package/lib/common/isConformant.js +0 -12
  352. package/lib/common/isConformant.js.map +0 -1
  353. package/lib/common/mockUseMenuContext.d.ts +0 -7
  354. package/lib/common/mockUseMenuContext.js +0 -29
  355. package/lib/common/mockUseMenuContext.js.map +0 -1
  356. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  357. package/lib/components/MenuTrigger/useTriggerElement.js +0 -165
  358. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  359. package/lib-commonjs/common/isConformant.d.ts +0 -4
  360. package/lib-commonjs/common/isConformant.js +0 -23
  361. package/lib-commonjs/common/isConformant.js.map +0 -1
  362. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  363. package/lib-commonjs/common/mockUseMenuContext.js +0 -39
  364. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
  365. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  366. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -180
  367. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -3,7 +3,7 @@ import { ComponentState } from '@fluentui/react-utilities';
3
3
  import type { Context } from '@fluentui/react-context-selector';
4
4
  import type { ContextSelector } from '@fluentui/react-context-selector';
5
5
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
6
- import { IntrinsicShorthandProps } from '@fluentui/react-utilities';
6
+ import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
7
7
  import { PositioningShorthand } from '@fluentui/react-positioning';
8
8
  import * as React_2 from 'react';
9
9
  import { usePopperMouseTarget } from '@fluentui/react-positioning';
@@ -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
 
@@ -82,13 +82,13 @@ export declare const menuDividerClassName = "fui-MenuDivider";
82
82
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
83
83
 
84
84
  export declare type MenuDividerSlots = {
85
- root: IntrinsicShorthandProps<'div'>;
85
+ root: IntrinsicSlotProps<'div'>;
86
86
  };
87
87
 
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
 
@@ -121,7 +121,7 @@ export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
121
121
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
122
122
 
123
123
  export declare type MenuGroupHeaderSlots = {
124
- root: IntrinsicShorthandProps<'div'>;
124
+ root: IntrinsicSlotProps<'div'>;
125
125
  };
126
126
 
127
127
  export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -129,7 +129,7 @@ export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
129
129
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
130
130
 
131
131
  export declare type MenuGroupSlots = {
132
- root: IntrinsicShorthandProps<'div'>;
132
+ root: IntrinsicSlotProps<'div'>;
133
133
  };
134
134
 
135
135
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -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
 
@@ -220,40 +220,35 @@ export declare type MenuItemSelectableState = MenuItemSelectableProps & {
220
220
  };
221
221
 
222
222
  export declare type MenuItemSlots = {
223
- root: IntrinsicShorthandProps<'div'>;
223
+ root: IntrinsicSlotProps<'div'>;
224
224
  /**
225
225
  * Icon slot rendered before children content
226
226
  */
227
- icon?: IntrinsicShorthandProps<'span'>;
227
+ icon?: IntrinsicSlotProps<'span'>;
228
228
  /**
229
229
  * A helper slot for alignment when a menu item is used with selectable menuitems
230
230
  * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
231
231
  */
232
- checkmark?: IntrinsicShorthandProps<'span'>;
232
+ checkmark?: IntrinsicSlotProps<'span'>;
233
233
  /**
234
234
  * Icon slot that shows the indicator for a submenu
235
235
  */
236
- submenuIndicator?: IntrinsicShorthandProps<'span'>;
236
+ submenuIndicator?: IntrinsicSlotProps<'span'>;
237
237
  /**
238
238
  * Component children are placed in this slot
239
239
  * Avoid using the `children` property in this slot in favour of Component children whenever possible
240
240
  */
241
- content: IntrinsicShorthandProps<'span'>;
241
+ content?: IntrinsicSlotProps<'span'>;
242
242
  /**
243
243
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
244
244
  */
245
- secondaryContent?: IntrinsicShorthandProps<'span'>;
245
+ secondaryContent?: IntrinsicSlotProps<'span'>;
246
246
  };
247
247
 
248
- /**
249
- * Consts listing which props are shorthand props.
250
- */
251
- export declare const menuItemSlots: Array<keyof MenuItemSlots>;
252
-
253
248
  export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemCommons;
254
249
 
255
250
  /**
256
- * Define a styled MenuList, using the `useMenuList` hook.
251
+ * Define a styled MenuList, using the `useMenuList_unstable` hook.
257
252
  */
258
253
  export declare const MenuList: ForwardRefComponent<MenuListProps>;
259
254
 
@@ -305,7 +300,7 @@ export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<Menu
305
300
  export declare const MenuListProvider: React_2.Provider<MenuListContextValue> & React_2.FC<React_2.ProviderProps<MenuListContextValue>>;
306
301
 
307
302
  export declare type MenuListSlots = {
308
- root: IntrinsicShorthandProps<'div'>;
303
+ root: IntrinsicSlotProps<'div'>;
309
304
  };
310
305
 
311
306
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -353,7 +348,7 @@ export declare const menuPopoverClassName = "fui-MenuPopover";
353
348
  export declare type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;
354
349
 
355
350
  export declare type MenuPopoverSlots = {
356
- root: IntrinsicShorthandProps<'div'>;
351
+ root: IntrinsicSlotProps<'div'>;
357
352
  };
358
353
 
359
354
  /**
@@ -386,6 +381,29 @@ export declare const MenuProvider: React_2.Provider<MenuContextValue> & React_2.
386
381
 
387
382
  export declare type MenuSlots = {};
388
383
 
384
+ /**
385
+ * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
386
+ */
387
+ export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
388
+
389
+ export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
390
+
391
+ export declare type MenuSplitGroupCommons = {};
392
+
393
+ /**
394
+ * MenuSplitGroup Props
395
+ */
396
+ export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
397
+
398
+ export declare type MenuSplitGroupSlots = {
399
+ root: IntrinsicSlotProps<'div'>;
400
+ };
401
+
402
+ /**
403
+ * State used in rendering MenuSplitGroup
404
+ */
405
+ export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
406
+
389
407
  export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
390
408
  /**
391
409
  * Callback to open/close the popup
@@ -429,13 +447,14 @@ export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
429
447
  * Wraps a trigger element as an only child
430
448
  * and adds the necessary event handling to open a popup menu
431
449
  */
432
- export declare const MenuTrigger: React_2.FC<MenuTriggerProps>;
450
+ export declare const MenuTrigger: React_2.ForwardRefExoticComponent<MenuTriggerProps & React_2.RefAttributes<HTMLElement>>;
433
451
 
434
452
  /**
435
453
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
436
454
  */
437
- export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'>> & {
455
+ export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
438
456
  ref?: React_2.Ref<never>;
457
+ 'aria-expanded': boolean | undefined;
439
458
  };
440
459
 
441
460
  export declare const MenuTriggerContextProvider: React_2.Provider<boolean>;
@@ -449,61 +468,68 @@ export declare type MenuTriggerProps = {
449
468
  }) | ((props: MenuTriggerChildProps) => React_2.ReactNode);
450
469
  };
451
470
 
452
- export declare type MenuTriggerState = MenuTriggerProps;
471
+ export declare type MenuTriggerState = {
472
+ children: React_2.ReactNode;
473
+ };
453
474
 
454
475
  /**
455
476
  * Render the final JSX of Menu
456
477
  */
457
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
478
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
458
479
 
459
480
  /**
460
481
  * Redefine the render function to add slots. Reuse the menudivider structure but add
461
482
  * slots to children.
462
483
  */
463
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
484
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
464
485
 
465
486
  /**
466
487
  * Redefine the render function to add slots. Reuse the menugroup structure but add
467
488
  * slots to children.
468
489
  */
469
- export declare const renderMenuGroup: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
490
+ export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
470
491
 
471
492
  /**
472
493
  * Redefine the render function to add slots. Reuse the menugroupheader structure but add
473
494
  * slots to children.
474
495
  */
475
- export declare const renderMenuGroupHeader: (state: MenuGroupHeaderState) => JSX.Element;
496
+ export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
476
497
 
477
498
  /**
478
499
  * Function that renders the final JSX of the component
479
500
  */
480
- export declare const renderMenuItem: (state: MenuItemState) => JSX.Element;
501
+ export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
481
502
 
482
503
  /** Function that renders the final JSX of the component */
483
- export declare const renderMenuItemCheckbox: (state: MenuItemCheckboxState) => JSX.Element;
504
+ export declare const renderMenuItemCheckbox_unstable: (state: MenuItemCheckboxState) => JSX.Element;
484
505
 
485
506
  /**
486
507
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
487
508
  * slots to children.
488
509
  */
489
- export declare const renderMenuItemRadio: (state: MenuItemRadioState) => JSX.Element;
510
+ export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
490
511
 
491
512
  /**
492
513
  * Function that renders the final JSX of the component
493
514
  */
494
- export declare const renderMenuList: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
515
+ export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
495
516
 
496
517
  /**
497
518
  * Render the final JSX of MenuPopover
498
519
  */
499
- export declare const renderMenuPopover: (state: MenuPopoverState) => JSX.Element;
520
+ export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
521
+
522
+ /**
523
+ * Render the final JSX of MenuSplitGroup
524
+ */
525
+ export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
500
526
 
501
527
  /**
502
528
  * Render the final JSX of MenuTrigger
503
529
  *
504
530
  * Only renders children
505
531
  */
506
- export declare const renderMenuTrigger: (state: MenuTriggerState) => JSX.Element;
532
+ export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
507
533
 
508
534
  export declare type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked: boolean) => void;
509
535
 
@@ -514,96 +540,112 @@ export declare type UninitializedMenuListState = Omit<MenuListState, 'setFocusBy
514
540
  *
515
541
  * @param state - should contain a `checkmark` slot
516
542
  */
517
- export declare const useCheckmarkStyles: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
543
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
518
544
 
519
545
  /**
520
546
  * Create the state required to render Menu.
521
547
  *
522
548
  * The returned state can be modified with hooks such as useMenuStyles,
523
- * before being passed to renderMenu.
549
+ * before being passed to renderMenu_unstable.
524
550
  *
525
551
  * @param props - props from this instance of Menu
526
552
  */
527
- export declare const useMenu: (props: MenuProps) => MenuState;
553
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
528
554
 
529
- export declare const useMenuContext: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
555
+ export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
530
556
 
531
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
557
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
532
558
 
533
559
  /**
534
560
  * Given user props, returns state and render function for a MenuDivider.
535
561
  */
536
- 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;
537
563
 
538
- export declare const useMenuDividerStyles: (state: MenuDividerState) => ComponentState<MenuDividerSlots>;
564
+ export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
539
565
 
540
566
  /**
541
567
  * Given user props, returns state and render function for a MenuGroup.
542
568
  */
543
- 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;
544
570
 
545
- export declare const useMenuGroupContext: () => MenuGroupContextValue;
571
+ export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
546
572
 
547
- export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGroupContextValues;
573
+ export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
548
574
 
549
575
  /**
550
576
  * Given user props, returns state and render function for a MenuGroupHeader.
551
577
  */
552
- 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;
553
579
 
554
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => ComponentState<MenuGroupHeaderSlots>;
580
+ export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
555
581
 
556
- export declare const useMenuGroupStyles: (state: MenuGroupState) => MenuGroupState;
582
+ export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
557
583
 
558
584
  /**
559
585
  * Returns the props and state required to render the component
560
586
  */
561
- 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;
562
588
 
563
589
  /** Returns the props and state required to render the component */
564
- 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;
565
591
 
566
- export declare const useMenuItemCheckboxStyles: (state: MenuItemCheckboxState) => void;
592
+ export declare const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => void;
567
593
 
568
594
  /**
569
595
  * Given user props, returns state and render function for a MenuItemRadio.
570
596
  */
571
- 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;
572
598
 
573
- export declare const useMenuItemRadioStyles: (state: MenuItemRadioState) => void;
599
+ export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
574
600
 
575
601
  /** Applies style classnames to slots */
576
- export declare const useMenuItemStyles: (state: MenuItemState) => void;
602
+ export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;
577
603
 
578
604
  /**
579
605
  * Returns the props and state required to render the component
580
606
  */
581
- 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;
582
608
 
583
- export declare const useMenuListContext: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
609
+ export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
584
610
 
585
- export declare function useMenuListContextValues(state: MenuListState): MenuListContextValues;
611
+ export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
586
612
 
587
613
  /**
588
614
  * Apply styling to the Menu slots based on the state
589
615
  */
590
- export declare const useMenuListStyles: (state: MenuListState) => MenuListState;
616
+ export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
591
617
 
592
618
  /**
593
619
  * Create the state required to render MenuPopover.
594
620
  *
595
- * The returned state can be modified with hooks such as useMenuPopoverStyles,
596
- * 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.
597
623
  *
598
624
  * @param props - props from this instance of MenuPopover
599
625
  * @param ref - reference to root HTMLElement of MenuPopover
600
626
  */
601
- 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;
602
628
 
603
629
  /**
604
630
  * Apply styling to the Menu slots based on the state
605
631
  */
606
- export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopoverState;
632
+ export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
633
+
634
+ /**
635
+ * Create the state required to render MenuSplitGroup.
636
+ *
637
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
638
+ * before being passed to renderMenuSplitGroup_unstable.
639
+ *
640
+ * @param props - props from this instance of MenuSplitGroup
641
+ * @param ref - reference to root HTMLElement of MenuSplitGroup
642
+ */
643
+ export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
644
+
645
+ /**
646
+ * Apply styling to the MenuSplitGroup slots based on the state
647
+ */
648
+ export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
607
649
 
608
650
  /**
609
651
  * Create the state required to render MenuTrigger.
@@ -611,8 +653,8 @@ export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopo
611
653
  *
612
654
  * @param props - props from this instance of MenuTrigger
613
655
  */
614
- export declare const useMenuTrigger: (props: MenuTriggerProps) => MenuTriggerState;
656
+ export declare const useMenuTrigger_unstable: (props: MenuTriggerProps, ref: React_2.Ref<HTMLElement>) => MenuTriggerState;
615
657
 
616
- export declare const useMenuTriggerContext: () => boolean;
658
+ export declare const useMenuTriggerContext_unstable: () => boolean;
617
659
 
618
660
  export { }
@@ -0,0 +1 @@
1
+ export * from './components/MenuSplitGroup/index';
@@ -0,0 +1,2 @@
1
+ export * from './components/MenuSplitGroup/index';
2
+ //# sourceMappingURL=MenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSplitGroup.js","sourceRoot":"","sources":["../src/MenuSplitGroup.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -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,20 +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 { MenuTrigger } from '../MenuTrigger/index';
8
- import { useMenuContext } from '../../contexts/menuContext';
7
+ import { useMenuContext_unstable } from '../../contexts/menuContext';
9
8
  import { MENU_ENTER_EVENT, useOnMenuMouseEnter } from '../../utils/index';
10
9
  import { useIsSubmenu } from '../../utils/useIsSubmenu';
11
10
  /**
12
11
  * Create the state required to render Menu.
13
12
  *
14
13
  * The returned state can be modified with hooks such as useMenuStyles,
15
- * before being passed to renderMenu.
14
+ * before being passed to renderMenu_unstable.
16
15
  *
17
16
  * @param props - props from this instance of Menu
18
17
  */
19
18
 
20
- export const useMenu = props => {
19
+ export const useMenu_unstable = props => {
21
20
  const triggerId = useId('menu');
22
21
  const isSubmenu = useIsSubmenu();
23
22
  const [contextTarget, setContextTarget] = usePopperMouseTarget();
@@ -29,23 +28,28 @@ export const useMenu = props => {
29
28
  };
30
29
  const children = React.Children.toArray(props.children);
31
30
 
32
- if (children.length !== 2 && process.env.NODE_ENV !== 'production') {
33
- // eslint-disable-next-line no-console
34
- console.warn('Menu can only take one MenuTrigger and one MenuList as children');
35
- }
31
+ if (process.env.NODE_ENV !== 'production') {
32
+ if (children.length === 0) {
33
+ // eslint-disable-next-line no-console
34
+ console.warn('Menu must contain at least one child');
35
+ }
36
36
 
37
- const {
38
- menuTrigger,
39
- menuPopover
40
- } = children.reduce((acc, child) => {
41
- if (child.type === MenuTrigger) {
42
- acc.menuTrigger = child;
43
- } else {
44
- acc.menuPopover = child;
37
+ if (children.length > 2) {
38
+ // eslint-disable-next-line no-console
39
+ console.warn('Menu must contain at most two children');
45
40
  }
41
+ }
42
+
43
+ let menuTrigger = undefined;
44
+ let menuPopover = undefined;
45
+
46
+ if (children.length === 2) {
47
+ menuTrigger = children[0];
48
+ menuPopover = children[1];
49
+ } else if (children.length === 1) {
50
+ menuPopover = children[0];
51
+ }
46
52
 
47
- return acc;
48
- }, {});
49
53
  const {
50
54
  targetRef: triggerRef,
51
55
  containerRef: menuPopoverRef
@@ -61,7 +65,8 @@ export const useMenu = props => {
61
65
  menuTrigger,
62
66
  menuPopover,
63
67
  triggerRef,
64
- menuPopoverRef
68
+ menuPopoverRef,
69
+ components: {}
65
70
  }; // TODO Better way to narrow types ?
66
71
 
67
72
  const [open, setOpen] = useMenuOpenState(initialState);
@@ -113,7 +118,7 @@ const useMenuOpenState = state => {
113
118
  const {
114
119
  targetDocument
115
120
  } = useFluent();
116
- const parentSetOpen = useMenuContext(context => context.setOpen);
121
+ const parentSetOpen = useMenuContext_unstable(context => context.setOpen);
117
122
  const onOpenChange = useEventCallback((e, data) => {
118
123
  var _a;
119
124
 
@@ -227,15 +232,18 @@ const useMenuOpenState = state => {
227
232
  prevFocusable === null || prevFocusable === void 0 ? void 0 : prevFocusable.focus();
228
233
  }, [findPrevFocusable, state.triggerRef]);
229
234
  React.useEffect(() => {
230
- var _a;
231
-
232
- if (!shouldHandleKeyboardRef.current) {
233
- return;
235
+ if (open) {
236
+ focusFirst();
234
237
  }
238
+ }, [open, focusFirst]);
239
+ React.useEffect(() => {
240
+ var _a;
235
241
 
236
242
  if (open) {
237
243
  focusFirst();
238
- } else {
244
+ }
245
+
246
+ if (shouldHandleKeyboardRef.current && !open) {
239
247
  if (shouldHandleTabRef.current && !state.isSubmenu) {
240
248
  pressedShiftRef.current ? focusBeforeMenuTrigger() : focusAfterMenuTrigger();
241
249
  } else {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,EAA+B,SAA/B,EAA0C,2BAA1C,QAA6E,6BAA7E;AACA,SAAS,oBAAT,EAA+B,KAA/B,EAAsC,iBAAtC,EAAyD,gBAAzD,QAAiF,2BAAjF;AACA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SAAS,eAAT,QAAgC,wBAAhC;AACA,SAAS,eAAT,QAAgC,yBAAhC;AACA,SAAS,WAAT,QAA4B,sBAA5B;AACA,SAAS,cAAT,QAA+B,4BAA/B;AACA,SAAS,gBAAT,EAA2B,mBAA3B,QAAsD,mBAAtD;AACA,SAAS,YAAT,QAA6B,0BAA7B;AAGA;;;;;;;AAOG;;AACH,OAAO,MAAM,OAAO,GAAI,KAAD,IAAgC;AACrD,QAAM,SAAS,GAAG,KAAK,CAAC,MAAD,CAAvB;AACA,QAAM,SAAS,GAAG,YAAY,EAA9B;AACA,QAAM,CAAC,aAAD,EAAgB,gBAAhB,IAAoC,oBAAoB,EAA9D;AAEA,QAAM,WAAW,GAAG;AAClB,IA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