@fluentui/react-menu 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (420) hide show
  1. package/CHANGELOG.json +464 -27
  2. package/CHANGELOG.md +102 -20
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +142 -72
  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 +7 -7
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/Menu.types.d.ts +3 -2
  11. package/lib/components/Menu/renderMenu.d.ts +1 -1
  12. package/lib/components/Menu/renderMenu.js +1 -1
  13. package/lib/components/Menu/renderMenu.js.map +1 -1
  14. package/lib/components/Menu/useMenu.d.ts +2 -2
  15. package/lib/components/Menu/useMenu.js +119 -128
  16. package/lib/components/Menu/useMenu.js.map +1 -1
  17. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  18. package/lib/components/Menu/useMenuContextValues.js +35 -33
  19. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  20. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  21. package/lib/components/MenuDivider/MenuDivider.js +8 -8
  22. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  23. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  24. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  25. package/lib/components/MenuDivider/renderMenuDivider.js +7 -7
  26. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  27. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js +9 -7
  29. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  30. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +2 -1
  31. package/lib/components/MenuDivider/useMenuDividerStyles.js +7 -5
  32. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  33. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/MenuGroup.js +10 -8
  35. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  37. package/lib/components/MenuGroup/index.d.ts +1 -0
  38. package/lib/components/MenuGroup/index.js +1 -0
  39. package/lib/components/MenuGroup/index.js.map +1 -1
  40. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  41. package/lib/components/MenuGroup/renderMenuGroup.js +7 -7
  42. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  43. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  44. package/lib/components/MenuGroup/useMenuGroup.js +10 -7
  45. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  46. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  47. package/lib/components/MenuGroup/useMenuGroupContextValues.js +8 -8
  48. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  49. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  50. package/lib/components/MenuGroup/useMenuGroupStyles.js +7 -0
  51. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  52. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +8 -8
  54. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  56. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  57. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +7 -7
  58. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  59. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  60. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +13 -8
  61. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  62. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +2 -1
  63. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +7 -5
  64. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  65. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  66. package/lib/components/MenuItem/MenuItem.js +8 -10
  67. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  68. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  69. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  70. package/lib/components/MenuItem/renderMenuItem.js +12 -8
  71. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  72. package/lib/components/MenuItem/useCharacterSearch.js +7 -7
  73. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  74. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  75. package/lib/components/MenuItem/useMenuItem.js +35 -45
  76. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  77. package/lib/components/MenuItem/useMenuItemStyles.d.ts +2 -1
  78. package/lib/components/MenuItem/useMenuItemStyles.js +31 -27
  79. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  80. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  81. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +8 -8
  82. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  83. package/lib/components/MenuItemCheckbox/index.d.ts +1 -0
  84. package/lib/components/MenuItemCheckbox/index.js +1 -0
  85. package/lib/components/MenuItemCheckbox/index.js.map +1 -1
  86. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  87. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +11 -8
  88. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  89. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  90. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +14 -15
  91. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  92. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  93. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +8 -5
  94. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  95. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  96. package/lib/components/MenuItemRadio/MenuItemRadio.js +8 -8
  97. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  98. package/lib/components/MenuItemRadio/index.d.ts +1 -0
  99. package/lib/components/MenuItemRadio/index.js +1 -0
  100. package/lib/components/MenuItemRadio/index.js.map +1 -1
  101. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  102. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +11 -8
  103. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  104. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  105. package/lib/components/MenuItemRadio/useMenuItemRadio.js +14 -14
  106. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  107. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +2 -1
  108. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +8 -5
  109. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  110. package/lib/components/MenuList/MenuList.d.ts +1 -1
  111. package/lib/components/MenuList/MenuList.js +10 -10
  112. package/lib/components/MenuList/MenuList.js.map +1 -1
  113. package/lib/components/MenuList/MenuList.types.d.ts +12 -10
  114. package/lib/components/MenuList/index.d.ts +1 -1
  115. package/lib/components/MenuList/index.js +0 -1
  116. package/lib/components/MenuList/index.js.map +1 -1
  117. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  118. package/lib/components/MenuList/renderMenuList.js +7 -7
  119. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  120. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  121. package/lib/components/MenuList/useMenuList.js +70 -87
  122. package/lib/components/MenuList/useMenuList.js.map +1 -1
  123. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  124. package/lib/components/MenuList/useMenuListContextValues.js +19 -17
  125. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  126. package/lib/components/MenuList/useMenuListStyles.d.ts +2 -1
  127. package/lib/components/MenuList/useMenuListStyles.js +9 -7
  128. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  129. package/lib/components/MenuPopover/MenuPopover.js +7 -7
  130. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  131. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  132. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  133. package/lib/components/MenuPopover/renderMenuPopover.js +9 -7
  134. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  135. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  136. package/lib/components/MenuPopover/useMenuPopover.js +35 -41
  137. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  138. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +2 -1
  139. package/lib/components/MenuPopover/useMenuPopoverStyles.js +13 -8
  140. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  141. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  142. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  143. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  144. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  145. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  146. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  147. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  148. package/lib/components/MenuSplitGroup/index.js +6 -0
  149. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  150. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  151. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  152. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  153. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  154. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  155. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  156. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  157. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  158. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  159. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  160. package/lib/components/MenuTrigger/MenuTrigger.js +6 -5
  161. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  162. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  163. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  164. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  165. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  166. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  167. package/lib/components/MenuTrigger/useMenuTrigger.js +166 -5
  168. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  169. package/lib/contexts/menuContext.d.ts +1 -1
  170. package/lib/contexts/menuContext.js +5 -11
  171. package/lib/contexts/menuContext.js.map +1 -1
  172. package/lib/contexts/menuGroupContext.d.ts +1 -1
  173. package/lib/contexts/menuGroupContext.js +3 -5
  174. package/lib/contexts/menuGroupContext.js.map +1 -1
  175. package/lib/contexts/menuListContext.d.ts +1 -1
  176. package/lib/contexts/menuListContext.js +7 -17
  177. package/lib/contexts/menuListContext.js.map +1 -1
  178. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  179. package/lib/contexts/menuTriggerContext.js +3 -5
  180. package/lib/contexts/menuTriggerContext.js.map +1 -1
  181. package/lib/index.d.ts +11 -10
  182. package/lib/index.js +11 -10
  183. package/lib/index.js.map +1 -1
  184. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  185. package/lib/selectable/useCheckmarkStyles.js +4 -4
  186. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  187. package/lib/utils/useIsSubmenu.js +3 -5
  188. package/lib/utils/useIsSubmenu.js.map +1 -1
  189. package/lib/utils/useOnMenuEnter.js +16 -14
  190. package/lib/utils/useOnMenuEnter.js.map +1 -1
  191. package/lib-commonjs/Menu.js +1 -1
  192. package/lib-commonjs/MenuDivider.js +1 -1
  193. package/lib-commonjs/MenuGroup.js +1 -1
  194. package/lib-commonjs/MenuGroupHeader.js +1 -1
  195. package/lib-commonjs/MenuItem.js +1 -1
  196. package/lib-commonjs/MenuItemCheckbox.js +1 -1
  197. package/lib-commonjs/MenuItemRadio.js +1 -1
  198. package/lib-commonjs/MenuList.js +1 -1
  199. package/lib-commonjs/MenuPopover.js +1 -1
  200. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  201. package/lib-commonjs/MenuSplitGroup.js +10 -0
  202. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  203. package/lib-commonjs/MenuTrigger.js +1 -1
  204. package/lib-commonjs/components/Menu/Menu.js +7 -7
  205. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  206. package/lib-commonjs/components/Menu/Menu.types.d.ts +3 -2
  207. package/lib-commonjs/components/Menu/index.js +1 -1
  208. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  209. package/lib-commonjs/components/Menu/renderMenu.js +5 -5
  210. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  211. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  212. package/lib-commonjs/components/Menu/useMenu.js +130 -141
  213. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  214. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  215. package/lib-commonjs/components/Menu/useMenuContextValues.js +37 -35
  216. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  217. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  218. package/lib-commonjs/components/MenuDivider/MenuDivider.js +9 -9
  219. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  220. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  221. package/lib-commonjs/components/MenuDivider/index.js +1 -1
  222. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  223. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +11 -12
  224. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  225. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  226. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +12 -11
  227. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  228. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +2 -1
  229. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +11 -7
  230. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  231. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  232. package/lib-commonjs/components/MenuGroup/MenuGroup.js +12 -9
  233. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  234. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  235. package/lib-commonjs/components/MenuGroup/index.d.ts +1 -0
  236. package/lib-commonjs/components/MenuGroup/index.js +3 -1
  237. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  238. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  239. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +12 -13
  240. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  241. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  242. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +13 -11
  243. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  244. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  245. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +11 -11
  246. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  247. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  248. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +18 -0
  249. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  250. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  251. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +9 -9
  252. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  253. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  254. package/lib-commonjs/components/MenuGroupHeader/index.js +1 -1
  255. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  256. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +11 -12
  257. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  258. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  259. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +16 -12
  260. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  261. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +2 -1
  262. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +11 -7
  263. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  264. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  265. package/lib-commonjs/components/MenuItem/MenuItem.js +9 -12
  266. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  267. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  268. package/lib-commonjs/components/MenuItem/index.js +1 -1
  269. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  270. package/lib-commonjs/components/MenuItem/renderMenuItem.js +16 -14
  271. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  272. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +7 -7
  273. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  274. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  275. package/lib-commonjs/components/MenuItem/useMenuItem.js +42 -53
  276. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  277. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +2 -1
  278. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +40 -33
  279. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  280. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  281. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +9 -9
  282. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  283. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +1 -0
  284. package/lib-commonjs/components/MenuItemCheckbox/index.js +3 -1
  285. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  286. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  287. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +15 -14
  288. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  289. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  290. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +19 -21
  291. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  292. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  293. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +12 -7
  294. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  295. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  296. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +9 -9
  297. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  298. package/lib-commonjs/components/MenuItemRadio/index.d.ts +1 -0
  299. package/lib-commonjs/components/MenuItemRadio/index.js +3 -1
  300. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  301. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  302. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +15 -14
  303. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  304. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  305. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +19 -20
  306. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  307. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +2 -1
  308. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +12 -7
  309. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  310. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  311. package/lib-commonjs/components/MenuList/MenuList.js +11 -11
  312. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  313. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +12 -10
  314. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  315. package/lib-commonjs/components/MenuList/index.js +1 -3
  316. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  317. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  318. package/lib-commonjs/components/MenuList/renderMenuList.js +12 -13
  319. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  320. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  321. package/lib-commonjs/components/MenuList/useMenuList.js +77 -95
  322. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  323. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  324. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +21 -19
  325. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  326. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +2 -1
  327. package/lib-commonjs/components/MenuList/useMenuListStyles.js +12 -9
  328. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  329. package/lib-commonjs/components/MenuPopover/MenuPopover.js +8 -8
  330. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  331. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  332. package/lib-commonjs/components/MenuPopover/index.js +1 -1
  333. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  334. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +14 -13
  335. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  336. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  337. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +43 -50
  338. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  339. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +2 -1
  340. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +17 -10
  341. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  342. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  343. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  344. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  345. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  346. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  347. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  348. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  349. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  350. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  351. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  352. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  353. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  354. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  355. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  356. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  357. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  358. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  359. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  360. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  361. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -5
  362. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  363. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  364. package/lib-commonjs/components/MenuTrigger/index.js +1 -1
  365. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  366. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +5 -5
  367. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  368. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  369. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +174 -7
  370. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  371. package/lib-commonjs/components/index.js +1 -1
  372. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  373. package/lib-commonjs/contexts/menuContext.js +6 -12
  374. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  375. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  376. package/lib-commonjs/contexts/menuGroupContext.js +5 -7
  377. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  378. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  379. package/lib-commonjs/contexts/menuListContext.js +8 -18
  380. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  381. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  382. package/lib-commonjs/contexts/menuTriggerContext.js +5 -7
  383. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  384. package/lib-commonjs/index.d.ts +11 -10
  385. package/lib-commonjs/index.js +17 -15
  386. package/lib-commonjs/index.js.map +1 -1
  387. package/lib-commonjs/selectable/index.js +1 -1
  388. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  389. package/lib-commonjs/selectable/useCheckmarkStyles.js +7 -7
  390. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  391. package/lib-commonjs/utils/index.js +1 -1
  392. package/lib-commonjs/utils/useIsSubmenu.js +5 -7
  393. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  394. package/lib-commonjs/utils/useOnMenuEnter.js +18 -16
  395. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  396. package/package.json +15 -17
  397. package/lib/common/isConformant.d.ts +0 -4
  398. package/lib/common/isConformant.js +0 -12
  399. package/lib/common/isConformant.js.map +0 -1
  400. package/lib/common/mockUseMenuContext.d.ts +0 -7
  401. package/lib/common/mockUseMenuContext.js +0 -36
  402. package/lib/common/mockUseMenuContext.js.map +0 -1
  403. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  404. package/lib/components/MenuTrigger/useTriggerElement.js +0 -179
  405. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  406. package/lib/utils/DefaultIcons.d.ts +0 -7
  407. package/lib/utils/DefaultIcons.js +0 -88
  408. package/lib/utils/DefaultIcons.js.map +0 -1
  409. package/lib-commonjs/common/isConformant.d.ts +0 -4
  410. package/lib-commonjs/common/isConformant.js +0 -23
  411. package/lib-commonjs/common/isConformant.js.map +0 -1
  412. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  413. package/lib-commonjs/common/mockUseMenuContext.js +0 -47
  414. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
  415. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  416. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -195
  417. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
  418. package/lib-commonjs/utils/DefaultIcons.d.ts +0 -7
  419. package/lib-commonjs/utils/DefaultIcons.js +0 -100
  420. package/lib-commonjs/utils/DefaultIcons.js.map +0 -1
@@ -2,10 +2,11 @@ import { ComponentProps } from '@fluentui/react-utilities';
2
2
  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
+ import type { FluentTriggerComponent } from '@fluentui/react-utilities';
5
6
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
6
- import { IntrinsicShorthandProps } from '@fluentui/react-utilities';
7
7
  import { PositioningShorthand } from '@fluentui/react-positioning';
8
8
  import * as React_2 from 'react';
9
+ import type { Slot } from '@fluentui/react-utilities';
9
10
  import { usePopperMouseTarget } from '@fluentui/react-positioning';
10
11
 
11
12
  /**
@@ -13,6 +14,15 @@ import { usePopperMouseTarget } from '@fluentui/react-positioning';
13
14
  */
14
15
  export declare const Menu: React_2.FC<MenuProps>;
15
16
 
17
+ export declare type MenuCheckedValueChangeData = {
18
+ /** The name of the value */
19
+ name: string;
20
+ /** The items for this value that are checked */
21
+ checkedItems: string[];
22
+ };
23
+
24
+ export declare type MenuCheckedValueChangeEvent = React_2.MouseEvent | React_2.KeyboardEvent;
25
+
16
26
  declare type MenuCommons = MenuListCommons & {
17
27
  /**
18
28
  * Whether the popup is open
@@ -64,23 +74,27 @@ export declare type MenuContextValues = {
64
74
  };
65
75
 
66
76
  /**
67
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
77
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
68
78
  */
69
79
  export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
70
80
 
81
+ export declare const menuDividerClassName = "fui-MenuDivider";
82
+
71
83
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
72
84
 
73
85
  export declare type MenuDividerSlots = {
74
- root: IntrinsicShorthandProps<'div'>;
86
+ root: Slot<'div'>;
75
87
  };
76
88
 
77
89
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
78
90
 
79
91
  /**
80
- * Define a styled MenuGroup, using the `useMenuGroup` hook.
92
+ * Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
81
93
  */
82
94
  export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
83
95
 
96
+ export declare const menuGroupClassName = "fui-MenuGroup";
97
+
84
98
  export declare const MenuGroupContextProvider: React_2.Provider<MenuGroupContextValue>;
85
99
 
86
100
  /**
@@ -99,14 +113,16 @@ export declare type MenuGroupContextValues = {
99
113
  };
100
114
 
101
115
  /**
102
- * Define a styled MenuGroupHeader, using the `useMenuGroupHeader` hook.
116
+ * Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
103
117
  */
104
118
  export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
105
119
 
120
+ export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
121
+
106
122
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
107
123
 
108
124
  export declare type MenuGroupHeaderSlots = {
109
- root: IntrinsicShorthandProps<'div'>;
125
+ root: Slot<'div'>;
110
126
  };
111
127
 
112
128
  export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -114,7 +130,7 @@ export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
114
130
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
115
131
 
116
132
  export declare type MenuGroupSlots = {
117
- root: IntrinsicShorthandProps<'div'>;
133
+ root: Slot<'div'>;
118
134
  };
119
135
 
120
136
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -125,19 +141,23 @@ export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
125
141
  };
126
142
 
127
143
  /**
128
- * Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
144
+ * Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
129
145
  */
130
146
  export declare const MenuItem: ForwardRefComponent<MenuItemProps>;
131
147
 
132
148
  /**
133
- * Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox` hook.
149
+ * Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox_unstable` hook.
134
150
  */
135
151
  export declare const MenuItemCheckbox: ForwardRefComponent<MenuItemCheckboxProps>;
136
152
 
153
+ export declare const menuItemCheckboxClassName = "fui-MenuItemCheckbox";
154
+
137
155
  export declare type MenuItemCheckboxProps = MenuItemProps & MenuItemSelectableProps;
138
156
 
139
157
  export declare type MenuItemCheckboxState = MenuItemState & MenuItemSelectableState;
140
158
 
159
+ export declare const menuItemClassName = "fui-MenuItem";
160
+
141
161
  declare type MenuItemCommons = {
142
162
  /**
143
163
  * If the menu item is a trigger for a submenu
@@ -156,10 +176,12 @@ declare type MenuItemCommons = {
156
176
  export declare type MenuItemProps = ComponentProps<Partial<MenuItemSlots>> & MenuItemCommons;
157
177
 
158
178
  /**
159
- * Define a styled MenuItemRadio, using the `useMenuItemRadio` hook.
179
+ * Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.
160
180
  */
161
181
  export declare const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;
162
182
 
183
+ export declare const menuItemRadioClassName = "fui-MenuItemRadio";
184
+
163
185
  export declare type MenuItemRadioProps = MenuItemProps & MenuItemSelectableProps;
164
186
 
165
187
  export declare type MenuItemRadioState = MenuItemState & MenuItemSelectableState;
@@ -199,56 +221,48 @@ export declare type MenuItemSelectableState = MenuItemSelectableProps & {
199
221
  };
200
222
 
201
223
  export declare type MenuItemSlots = {
202
- root: IntrinsicShorthandProps<'div'>;
224
+ root: Slot<'div'>;
203
225
  /**
204
226
  * Icon slot rendered before children content
205
227
  */
206
- icon?: IntrinsicShorthandProps<'span'>;
228
+ icon?: Slot<'span'>;
207
229
  /**
208
230
  * A helper slot for alignment when a menu item is used with selectable menuitems
209
231
  * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
210
232
  */
211
- checkmark?: IntrinsicShorthandProps<'span'>;
233
+ checkmark?: Slot<'span'>;
212
234
  /**
213
235
  * Icon slot that shows the indicator for a submenu
214
236
  */
215
- submenuIndicator?: IntrinsicShorthandProps<'span'>;
237
+ submenuIndicator?: Slot<'span'>;
216
238
  /**
217
239
  * Component children are placed in this slot
218
240
  * Avoid using the `children` property in this slot in favour of Component children whenever possible
219
241
  */
220
- content: IntrinsicShorthandProps<'span'>;
242
+ content?: Slot<'span'>;
221
243
  /**
222
244
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
223
245
  */
224
- secondaryContent?: IntrinsicShorthandProps<'span'>;
246
+ secondaryContent?: Slot<'span'>;
225
247
  };
226
248
 
227
- /**
228
- * Consts listing which props are shorthand props.
229
- */
230
- export declare const menuItemSlots: Array<keyof MenuItemSlots>;
231
-
232
249
  export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemCommons;
233
250
 
234
251
  /**
235
- * Define a styled MenuList, using the `useMenuList` hook.
252
+ * Define a styled MenuList, using the `useMenuList_unstable` hook.
236
253
  */
237
254
  export declare const MenuList: ForwardRefComponent<MenuListProps>;
238
255
 
239
- export declare type MenuListCommons = {
256
+ export declare const menuListClassName = "fui-MenuList";
257
+
258
+ declare type MenuListCommons = {
240
259
  /**
241
260
  * Callback when checked items change for value with a name
242
261
  *
243
262
  * @param event - React's original SyntheticEvent
244
263
  * @param data - A data object with relevant information
245
264
  */
246
- onCheckedValueChange?: (e: React_2.MouseEvent | React_2.KeyboardEvent, data: {
247
- /** The name of the value */
248
- name: string;
249
- /** The items for this value that are checked */
250
- checkedItems: string[];
251
- }) => void;
265
+ onCheckedValueChange?: (e: MenuCheckedValueChangeEvent, data: MenuCheckedValueChangeData) => void;
252
266
  /**
253
267
  * Map of all checked values
254
268
  */
@@ -287,7 +301,7 @@ export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<Menu
287
301
  export declare const MenuListProvider: React_2.Provider<MenuListContextValue> & React_2.FC<React_2.ProviderProps<MenuListContextValue>>;
288
302
 
289
303
  export declare type MenuListSlots = {
290
- root: IntrinsicShorthandProps<'div'>;
304
+ root: Slot<'div'>;
291
305
  };
292
306
 
293
307
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -305,7 +319,8 @@ export declare type MenuListState = ComponentState<MenuListSlots> & MenuListComm
305
319
  /**
306
320
  * Data attached to open/close events
307
321
  */
308
- export declare type MenuOpenChangeData = Pick<MenuState, 'open'> & {
322
+ export declare type MenuOpenChangeData = {
323
+ open: boolean;
309
324
  /**
310
325
  * Indicates whether the change of state was a keyboard interaction
311
326
  */
@@ -326,13 +341,15 @@ export declare type MenuOpenEvents = MouseEvent | TouchEvent | React_2.MouseEven
326
341
  */
327
342
  export declare const MenuPopover: ForwardRefComponent<MenuPopoverProps>;
328
343
 
344
+ export declare const menuPopoverClassName = "fui-MenuPopover";
345
+
329
346
  /**
330
347
  * MenuPopover Props
331
348
  */
332
349
  export declare type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;
333
350
 
334
351
  export declare type MenuPopoverSlots = {
335
- root: IntrinsicShorthandProps<'div'>;
352
+ root: Slot<'div'>;
336
353
  };
337
354
 
338
355
  /**
@@ -365,6 +382,29 @@ export declare const MenuProvider: React_2.Provider<MenuContextValue> & React_2.
365
382
 
366
383
  export declare type MenuSlots = {};
367
384
 
385
+ /**
386
+ * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
387
+ */
388
+ export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
389
+
390
+ export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
391
+
392
+ declare type MenuSplitGroupCommons = {};
393
+
394
+ /**
395
+ * MenuSplitGroup Props
396
+ */
397
+ export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
398
+
399
+ export declare type MenuSplitGroupSlots = {
400
+ root: Slot<'div'>;
401
+ };
402
+
403
+ /**
404
+ * State used in rendering MenuSplitGroup
405
+ */
406
+ export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
407
+
368
408
  export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
369
409
  /**
370
410
  * Callback to open/close the popup
@@ -408,13 +448,14 @@ export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
408
448
  * Wraps a trigger element as an only child
409
449
  * and adds the necessary event handling to open a popup menu
410
450
  */
411
- export declare const MenuTrigger: React_2.FC<MenuTriggerProps>;
451
+ export declare const MenuTrigger: React_2.FC<MenuTriggerProps> & FluentTriggerComponent;
412
452
 
413
453
  /**
414
454
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
415
455
  */
416
- export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'>> & {
456
+ export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
417
457
  ref?: React_2.Ref<never>;
458
+ 'aria-expanded': boolean | undefined;
418
459
  };
419
460
 
420
461
  export declare const MenuTriggerContextProvider: React_2.Provider<boolean>;
@@ -425,64 +466,71 @@ export declare type MenuTriggerProps = {
425
466
  */
426
467
  children: (React_2.ReactElement & {
427
468
  ref?: React_2.Ref<unknown>;
428
- }) | ((props: MenuTriggerChildProps) => React_2.ReactNode);
469
+ }) | ((props: MenuTriggerChildProps) => React_2.ReactElement | null);
429
470
  };
430
471
 
431
- export declare type MenuTriggerState = MenuTriggerProps;
472
+ export declare type MenuTriggerState = {
473
+ children: React_2.ReactElement | null;
474
+ };
432
475
 
433
476
  /**
434
477
  * Render the final JSX of Menu
435
478
  */
436
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
479
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
437
480
 
438
481
  /**
439
482
  * Redefine the render function to add slots. Reuse the menudivider structure but add
440
483
  * slots to children.
441
484
  */
442
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
485
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
443
486
 
444
487
  /**
445
488
  * Redefine the render function to add slots. Reuse the menugroup structure but add
446
489
  * slots to children.
447
490
  */
448
- export declare const renderMenuGroup: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
491
+ export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
449
492
 
450
493
  /**
451
494
  * Redefine the render function to add slots. Reuse the menugroupheader structure but add
452
495
  * slots to children.
453
496
  */
454
- export declare const renderMenuGroupHeader: (state: MenuGroupHeaderState) => JSX.Element;
497
+ export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
455
498
 
456
499
  /**
457
500
  * Function that renders the final JSX of the component
458
501
  */
459
- export declare const renderMenuItem: (state: MenuItemState) => JSX.Element;
502
+ export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
460
503
 
461
504
  /** Function that renders the final JSX of the component */
462
- export declare const renderMenuItemCheckbox: (state: MenuItemCheckboxState) => JSX.Element;
505
+ export declare const renderMenuItemCheckbox_unstable: (state: MenuItemCheckboxState) => JSX.Element;
463
506
 
464
507
  /**
465
508
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
466
509
  * slots to children.
467
510
  */
468
- export declare const renderMenuItemRadio: (state: MenuItemRadioState) => JSX.Element;
511
+ export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
469
512
 
470
513
  /**
471
514
  * Function that renders the final JSX of the component
472
515
  */
473
- export declare const renderMenuList: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
516
+ export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
474
517
 
475
518
  /**
476
519
  * Render the final JSX of MenuPopover
477
520
  */
478
- export declare const renderMenuPopover: (state: MenuPopoverState) => JSX.Element;
521
+ export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
522
+
523
+ /**
524
+ * Render the final JSX of MenuSplitGroup
525
+ */
526
+ export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
479
527
 
480
528
  /**
481
529
  * Render the final JSX of MenuTrigger
482
530
  *
483
531
  * Only renders children
484
532
  */
485
- export declare const renderMenuTrigger: (state: MenuTriggerState) => JSX.Element;
533
+ export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
486
534
 
487
535
  export declare type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked: boolean) => void;
488
536
 
@@ -493,90 +541,112 @@ export declare type UninitializedMenuListState = Omit<MenuListState, 'setFocusBy
493
541
  *
494
542
  * @param state - should contain a `checkmark` slot
495
543
  */
496
- export declare const useCheckmarkStyles: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
544
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
497
545
 
498
546
  /**
499
547
  * Create the state required to render Menu.
500
548
  *
501
549
  * The returned state can be modified with hooks such as useMenuStyles,
502
- * before being passed to renderMenu.
550
+ * before being passed to renderMenu_unstable.
503
551
  *
504
552
  * @param props - props from this instance of Menu
505
553
  */
506
- export declare const useMenu: (props: MenuProps) => MenuState;
554
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
507
555
 
508
- export declare const useMenuContext: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
556
+ export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
509
557
 
510
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
558
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
511
559
 
512
560
  /**
513
561
  * Given user props, returns state and render function for a MenuDivider.
514
562
  */
515
- export declare const useMenuDivider: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
563
+ export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
516
564
 
517
- export declare const useMenuDividerStyles: (state: MenuDividerState) => ComponentState<MenuDividerSlots>;
565
+ export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
518
566
 
519
567
  /**
520
568
  * Given user props, returns state and render function for a MenuGroup.
521
569
  */
522
- export declare function useMenuGroup(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
570
+ export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
523
571
 
524
- export declare const useMenuGroupContext: () => MenuGroupContextValue;
572
+ export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
525
573
 
526
- export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGroupContextValues;
574
+ export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
527
575
 
528
576
  /**
529
577
  * Given user props, returns state and render function for a MenuGroupHeader.
530
578
  */
531
- export declare function useMenuGroupHeader(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
579
+ export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
532
580
 
533
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => ComponentState<MenuGroupHeaderSlots>;
581
+ export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
582
+
583
+ export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
534
584
 
535
585
  /**
536
586
  * Returns the props and state required to render the component
537
587
  */
538
- export declare const useMenuItem: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
588
+ export declare const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
539
589
 
540
590
  /** Returns the props and state required to render the component */
541
- export declare const useMenuItemCheckbox: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
591
+ export declare const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
592
+
593
+ export declare const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => void;
542
594
 
543
595
  /**
544
596
  * Given user props, returns state and render function for a MenuItemRadio.
545
597
  */
546
- export declare const useMenuItemRadio: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
598
+ export declare const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
599
+
600
+ export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
547
601
 
548
602
  /** Applies style classnames to slots */
549
- export declare const useMenuItemStyles: (state: MenuItemState) => void;
603
+ export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;
550
604
 
551
605
  /**
552
606
  * Returns the props and state required to render the component
553
607
  */
554
- export declare const useMenuList: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
608
+ export declare const useMenuList_unstable: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
555
609
 
556
- export declare const useMenuListContext: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
610
+ export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
557
611
 
558
- export declare function useMenuListContextValues(state: MenuListState): MenuListContextValues;
612
+ export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
559
613
 
560
614
  /**
561
615
  * Apply styling to the Menu slots based on the state
562
616
  */
563
- export declare const useMenuListStyles: (state: MenuListState) => MenuListState;
617
+ export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
564
618
 
565
619
  /**
566
620
  * Create the state required to render MenuPopover.
567
621
  *
568
- * The returned state can be modified with hooks such as useMenuPopoverStyles,
569
- * before being passed to renderMenuPopover.
622
+ * The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
623
+ * before being passed to renderMenuPopover_unstable.
570
624
  *
571
625
  * @param props - props from this instance of MenuPopover
572
626
  * @param ref - reference to root HTMLElement of MenuPopover
573
627
  */
574
- export declare const useMenuPopover: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
628
+ export declare const useMenuPopover_unstable: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
575
629
 
576
630
  /**
577
631
  * Apply styling to the Menu slots based on the state
578
632
  */
579
- export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopoverState;
633
+ export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
634
+
635
+ /**
636
+ * Create the state required to render MenuSplitGroup.
637
+ *
638
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
639
+ * before being passed to renderMenuSplitGroup_unstable.
640
+ *
641
+ * @param props - props from this instance of MenuSplitGroup
642
+ * @param ref - reference to root HTMLElement of MenuSplitGroup
643
+ */
644
+ export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
645
+
646
+ /**
647
+ * Apply styling to the MenuSplitGroup slots based on the state
648
+ */
649
+ export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
580
650
 
581
651
  /**
582
652
  * Create the state required to render MenuTrigger.
@@ -584,8 +654,8 @@ export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopo
584
654
  *
585
655
  * @param props - props from this instance of MenuTrigger
586
656
  */
587
- export declare const useMenuTrigger: (props: MenuTriggerProps) => MenuTriggerState;
657
+ export declare const useMenuTrigger_unstable: (props: MenuTriggerProps) => MenuTriggerState;
588
658
 
589
- export declare const useMenuTriggerContext: () => boolean;
659
+ export declare const useMenuTriggerContext_unstable: () => boolean;
590
660
 
591
661
  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
- export var Menu = function (props) {
9
- var state = useMenu(props);
10
- var contextValues = useMenuContextValues(state);
11
- return renderMenu(state, contextValues);
8
+ export const Menu = props => {
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,IAAM,IAAI,GAAwB,UAAA,KAAA,EAAK;AAC5C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAD,CAArB;AACA,MAAM,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":""}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentProps, ComponentState } from '@fluentui/react-utilities';
3
3
  import { usePopperMouseTarget, PositioningShorthand } from '@fluentui/react-positioning';
4
- import { MenuListCommons } from '../MenuList/index';
4
+ import { MenuListCommons } from '../MenuList/MenuList.types';
5
5
  import { MenuContextValue } from '../../contexts/menuContext';
6
6
  declare type MenuCommons = MenuListCommons & {
7
7
  /**
@@ -92,7 +92,8 @@ export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
92
92
  /**
93
93
  * Data attached to open/close events
94
94
  */
95
- export declare type MenuOpenChangeData = Pick<MenuState, 'open'> & {
95
+ export declare type MenuOpenChangeData = {
96
+ open: boolean;
96
97
  /**
97
98
  * Indicates whether the change of state was a keyboard interaction
98
99
  */
@@ -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 var renderMenu = function (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,IAAM,UAAU,GAAG,UAAC,KAAD,EAAmB,aAAnB,EAAmD;AAC3E,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;