@fluentui/react-menu 0.0.0-nightlyebf02572f720211207.1 → 0.0.0-nightlyf3017f159620220222.1

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