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

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