@fluentui/react-menu 0.0.0-nightlyd514b3e0ee20220121.1 → 0.0.0-nightlyd80c90385320220216.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. package/CHANGELOG.json +137 -38
  2. package/CHANGELOG.md +38 -16
  3. package/dist/react-menu.d.ts +70 -69
  4. package/lib/components/Menu/Menu.js +6 -6
  5. package/lib/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/Menu.types.d.ts +1 -1
  7. package/lib/components/Menu/renderMenu.d.ts +1 -1
  8. package/lib/components/Menu/renderMenu.js +1 -1
  9. package/lib/components/Menu/renderMenu.js.map +1 -1
  10. package/lib/components/Menu/useMenu.d.ts +2 -2
  11. package/lib/components/Menu/useMenu.js +4 -4
  12. package/lib/components/Menu/useMenu.js.map +1 -1
  13. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  14. package/lib/components/Menu/useMenuContextValues.js +1 -1
  15. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  17. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  18. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  19. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  20. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  21. package/lib/components/MenuDivider/renderMenuDivider.js +1 -1
  22. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  23. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  24. package/lib/components/MenuDivider/useMenuDivider.js +1 -1
  25. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  26. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  27. package/lib/components/MenuDivider/useMenuDividerStyles.js +2 -2
  28. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  29. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  30. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  31. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  32. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  33. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/renderMenuGroup.js +1 -1
  35. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  37. package/lib/components/MenuGroup/useMenuGroup.js +1 -1
  38. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  39. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  40. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  41. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  42. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  43. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  44. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  45. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  46. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  47. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  48. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  49. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  50. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +1 -1
  51. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  52. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +3 -3
  54. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +2 -2
  57. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  58. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  59. package/lib/components/MenuItem/MenuItem.js +7 -7
  60. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  61. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  62. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  63. package/lib/components/MenuItem/renderMenuItem.js +6 -6
  64. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  65. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  66. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  67. package/lib/components/MenuItem/useMenuItem.d.ts +1 -1
  68. package/lib/components/MenuItem/useMenuItem.js +9 -9
  69. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  70. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  71. package/lib/components/MenuItem/useMenuItemStyles.js +4 -4
  72. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  73. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  74. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  75. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  76. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  77. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +5 -5
  78. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  79. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  80. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  81. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  82. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  84. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  85. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  86. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  87. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  88. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  89. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +5 -5
  90. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  91. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  92. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  93. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  94. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  95. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  96. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  97. package/lib/components/MenuList/MenuList.d.ts +1 -1
  98. package/lib/components/MenuList/MenuList.js +9 -9
  99. package/lib/components/MenuList/MenuList.js.map +1 -1
  100. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  101. package/lib/components/MenuList/index.d.ts +1 -1
  102. package/lib/components/MenuList/index.js +0 -1
  103. package/lib/components/MenuList/index.js.map +1 -1
  104. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  105. package/lib/components/MenuList/renderMenuList.js +1 -1
  106. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  107. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  108. package/lib/components/MenuList/useMenuList.js +8 -8
  109. package/lib/components/MenuList/useMenuList.js.map +1 -1
  110. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  111. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  112. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  113. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  114. package/lib/components/MenuList/useMenuListStyles.js +2 -2
  115. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  116. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  117. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  119. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  120. package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
  121. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  122. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  123. package/lib/components/MenuPopover/useMenuPopover.js +8 -8
  124. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  125. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  126. package/lib/components/MenuPopover/useMenuPopoverStyles.js +2 -2
  127. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  128. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +6 -6
  129. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  130. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
  131. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  132. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +1 -1
  133. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  134. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  135. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +3 -3
  136. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  137. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  138. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +2 -2
  139. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  140. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  141. package/lib/components/MenuTrigger/MenuTrigger.js +7 -7
  142. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  143. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +2 -2
  144. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  145. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  146. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  147. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -3
  148. package/lib/components/MenuTrigger/useMenuTrigger.js +25 -35
  149. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  150. package/lib/contexts/menuContext.d.ts +1 -1
  151. package/lib/contexts/menuContext.js +1 -1
  152. package/lib/contexts/menuContext.js.map +1 -1
  153. package/lib/contexts/menuGroupContext.d.ts +1 -1
  154. package/lib/contexts/menuGroupContext.js +1 -1
  155. package/lib/contexts/menuGroupContext.js.map +1 -1
  156. package/lib/contexts/menuListContext.d.ts +1 -1
  157. package/lib/contexts/menuListContext.js +1 -1
  158. package/lib/contexts/menuListContext.js.map +1 -1
  159. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  160. package/lib/contexts/menuTriggerContext.js +1 -1
  161. package/lib/contexts/menuTriggerContext.js.map +1 -1
  162. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  163. package/lib/selectable/useCheckmarkStyles.js +2 -2
  164. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  165. package/lib/utils/useIsSubmenu.js +2 -2
  166. package/lib/utils/useIsSubmenu.js.map +1 -1
  167. package/lib-commonjs/components/Menu/Menu.js +3 -3
  168. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  169. package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
  170. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  171. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  172. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  173. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  174. package/lib-commonjs/components/Menu/useMenu.js +5 -5
  175. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  176. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  177. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  178. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  179. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  180. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  181. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  182. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  183. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  184. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
  185. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  186. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  187. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +3 -3
  188. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  189. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  190. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +6 -6
  191. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  192. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  193. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  194. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  195. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  196. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  197. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
  198. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  199. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  200. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +3 -3
  201. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  202. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  203. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  204. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  205. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  206. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  207. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  208. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  209. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  210. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  211. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  212. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  213. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
  214. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  215. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  216. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +4 -4
  217. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  218. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  219. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +6 -6
  220. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  221. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  222. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
  223. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  224. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  225. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  226. package/lib-commonjs/components/MenuItem/renderMenuItem.js +8 -8
  227. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  228. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  229. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  230. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +1 -1
  231. package/lib-commonjs/components/MenuItem/useMenuItem.js +8 -8
  232. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  233. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  234. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +11 -11
  235. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  236. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  237. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  238. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  239. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  240. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +7 -7
  241. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  242. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  243. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  244. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  245. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  246. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  247. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  248. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  249. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  250. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  251. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  252. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +7 -7
  253. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  254. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  255. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  256. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  257. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  258. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  259. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  260. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  261. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  262. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  263. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  264. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  265. package/lib-commonjs/components/MenuList/index.js +0 -2
  266. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  267. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  268. package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
  269. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  270. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  271. package/lib-commonjs/components/MenuList/useMenuList.js +9 -9
  272. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  273. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  274. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  275. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  276. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  277. package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
  278. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  279. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  280. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  281. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  282. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  283. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
  284. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  285. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  286. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +9 -9
  287. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  288. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  289. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +6 -6
  290. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  291. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +3 -3
  292. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  293. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
  294. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  295. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +3 -3
  296. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  297. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  298. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +5 -5
  299. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  300. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  301. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +6 -6
  302. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  303. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  304. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +7 -6
  305. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  306. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +2 -2
  307. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  308. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  309. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  310. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -3
  311. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +25 -35
  312. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  313. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  314. package/lib-commonjs/contexts/menuContext.js +3 -3
  315. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  316. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  317. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  318. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  319. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  320. package/lib-commonjs/contexts/menuListContext.js +3 -3
  321. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  322. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  323. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  324. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  325. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  326. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  327. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  328. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  329. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  330. package/package.json +11 -13
@@ -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,41 +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
  export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemCommons;
249
250
 
250
251
  /**
251
- * Define a styled MenuList, using the `useMenuList` hook.
252
+ * Define a styled MenuList, using the `useMenuList_unstable` hook.
252
253
  */
253
254
  export declare const MenuList: ForwardRefComponent<MenuListProps>;
254
255
 
255
256
  export declare const menuListClassName = "fui-MenuList";
256
257
 
257
- export declare type MenuListCommons = {
258
+ declare type MenuListCommons = {
258
259
  /**
259
260
  * Callback when checked items change for value with a name
260
261
  *
@@ -300,7 +301,7 @@ export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<Menu
300
301
  export declare const MenuListProvider: React_2.Provider<MenuListContextValue> & React_2.FC<React_2.ProviderProps<MenuListContextValue>>;
301
302
 
302
303
  export declare type MenuListSlots = {
303
- root: IntrinsicShorthandProps<'div'>;
304
+ root: Slot<'div'>;
304
305
  };
305
306
 
306
307
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -348,7 +349,7 @@ export declare const menuPopoverClassName = "fui-MenuPopover";
348
349
  export declare type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;
349
350
 
350
351
  export declare type MenuPopoverSlots = {
351
- root: IntrinsicShorthandProps<'div'>;
352
+ root: Slot<'div'>;
352
353
  };
353
354
 
354
355
  /**
@@ -388,7 +389,7 @@ export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
388
389
 
389
390
  export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
390
391
 
391
- export declare type MenuSplitGroupCommons = {};
392
+ declare type MenuSplitGroupCommons = {};
392
393
 
393
394
  /**
394
395
  * MenuSplitGroup Props
@@ -396,7 +397,7 @@ export declare type MenuSplitGroupCommons = {};
396
397
  export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
397
398
 
398
399
  export declare type MenuSplitGroupSlots = {
399
- root: IntrinsicShorthandProps<'div'>;
400
+ root: Slot<'div'>;
400
401
  };
401
402
 
402
403
  /**
@@ -447,7 +448,7 @@ export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
447
448
  * Wraps a trigger element as an only child
448
449
  * and adds the necessary event handling to open a popup menu
449
450
  */
450
- export declare const MenuTrigger: React_2.ForwardRefExoticComponent<MenuTriggerProps & React_2.RefAttributes<HTMLElement>>;
451
+ export declare const MenuTrigger: React_2.FC<MenuTriggerProps> & FluentTriggerComponent;
451
452
 
452
453
  /**
453
454
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
@@ -465,71 +466,71 @@ export declare type MenuTriggerProps = {
465
466
  */
466
467
  children: (React_2.ReactElement & {
467
468
  ref?: React_2.Ref<unknown>;
468
- }) | ((props: MenuTriggerChildProps) => React_2.ReactNode);
469
+ }) | ((props: MenuTriggerChildProps) => React_2.ReactElement | null);
469
470
  };
470
471
 
471
472
  export declare type MenuTriggerState = {
472
- children: React_2.ReactNode;
473
+ children: React_2.ReactElement | null;
473
474
  };
474
475
 
475
476
  /**
476
477
  * Render the final JSX of Menu
477
478
  */
478
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
479
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
479
480
 
480
481
  /**
481
482
  * Redefine the render function to add slots. Reuse the menudivider structure but add
482
483
  * slots to children.
483
484
  */
484
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
485
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
485
486
 
486
487
  /**
487
488
  * Redefine the render function to add slots. Reuse the menugroup structure but add
488
489
  * slots to children.
489
490
  */
490
- export declare const renderMenuGroup: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
491
+ export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
491
492
 
492
493
  /**
493
494
  * Redefine the render function to add slots. Reuse the menugroupheader structure but add
494
495
  * slots to children.
495
496
  */
496
- export declare const renderMenuGroupHeader: (state: MenuGroupHeaderState) => JSX.Element;
497
+ export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
497
498
 
498
499
  /**
499
500
  * Function that renders the final JSX of the component
500
501
  */
501
- export declare const renderMenuItem: (state: MenuItemState) => JSX.Element;
502
+ export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
502
503
 
503
504
  /** Function that renders the final JSX of the component */
504
- export declare const renderMenuItemCheckbox: (state: MenuItemCheckboxState) => JSX.Element;
505
+ export declare const renderMenuItemCheckbox_unstable: (state: MenuItemCheckboxState) => JSX.Element;
505
506
 
506
507
  /**
507
508
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
508
509
  * slots to children.
509
510
  */
510
- export declare const renderMenuItemRadio: (state: MenuItemRadioState) => JSX.Element;
511
+ export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
511
512
 
512
513
  /**
513
514
  * Function that renders the final JSX of the component
514
515
  */
515
- export declare const renderMenuList: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
516
+ export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
516
517
 
517
518
  /**
518
519
  * Render the final JSX of MenuPopover
519
520
  */
520
- export declare const renderMenuPopover: (state: MenuPopoverState) => JSX.Element;
521
+ export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
521
522
 
522
523
  /**
523
524
  * Render the final JSX of MenuSplitGroup
524
525
  */
525
- export declare const renderMenuSplitGroup: (state: MenuSplitGroupState) => JSX.Element;
526
+ export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
526
527
 
527
528
  /**
528
529
  * Render the final JSX of MenuTrigger
529
530
  *
530
531
  * Only renders children
531
532
  */
532
- export declare const renderMenuTrigger: (state: MenuTriggerState) => JSX.Element;
533
+ export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
533
534
 
534
535
  export declare type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, name: string, value: string, checked: boolean) => void;
535
536
 
@@ -540,112 +541,112 @@ export declare type UninitializedMenuListState = Omit<MenuListState, 'setFocusBy
540
541
  *
541
542
  * @param state - should contain a `checkmark` slot
542
543
  */
543
- export declare const useCheckmarkStyles: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
544
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
544
545
 
545
546
  /**
546
547
  * Create the state required to render Menu.
547
548
  *
548
549
  * The returned state can be modified with hooks such as useMenuStyles,
549
- * before being passed to renderMenu.
550
+ * before being passed to renderMenu_unstable.
550
551
  *
551
552
  * @param props - props from this instance of Menu
552
553
  */
553
- export declare const useMenu: (props: MenuProps) => MenuState;
554
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
554
555
 
555
- export declare const useMenuContext: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
556
+ export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
556
557
 
557
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
558
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
558
559
 
559
560
  /**
560
561
  * Given user props, returns state and render function for a MenuDivider.
561
562
  */
562
- export declare const useMenuDivider: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
563
+ export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
563
564
 
564
- export declare const useMenuDividerStyles: (state: MenuDividerState) => MenuDividerState;
565
+ export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
565
566
 
566
567
  /**
567
568
  * Given user props, returns state and render function for a MenuGroup.
568
569
  */
569
- export declare function useMenuGroup(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
570
+ export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React_2.Ref<HTMLElement>): MenuGroupState;
570
571
 
571
- export declare const useMenuGroupContext: () => MenuGroupContextValue;
572
+ export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
572
573
 
573
- export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGroupContextValues;
574
+ export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
574
575
 
575
576
  /**
576
577
  * Given user props, returns state and render function for a MenuGroupHeader.
577
578
  */
578
- export declare function useMenuGroupHeader(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
579
+ export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
579
580
 
580
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
581
+ export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
581
582
 
582
- export declare const useMenuGroupStyles: (state: MenuGroupState) => MenuGroupState;
583
+ export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
583
584
 
584
585
  /**
585
586
  * Returns the props and state required to render the component
586
587
  */
587
- export declare const useMenuItem: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
588
+ export declare const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref<HTMLElement>) => MenuItemState;
588
589
 
589
590
  /** Returns the props and state required to render the component */
590
- export declare const useMenuItemCheckbox: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
591
+ export declare const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<HTMLElement>) => MenuItemCheckboxState;
591
592
 
592
- export declare const useMenuItemCheckboxStyles: (state: MenuItemCheckboxState) => void;
593
+ export declare const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => void;
593
594
 
594
595
  /**
595
596
  * Given user props, returns state and render function for a MenuItemRadio.
596
597
  */
597
- export declare const useMenuItemRadio: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
598
+ export declare const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref<HTMLElement>) => MenuItemRadioState;
598
599
 
599
- export declare const useMenuItemRadioStyles: (state: MenuItemRadioState) => void;
600
+ export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
600
601
 
601
602
  /** Applies style classnames to slots */
602
- export declare const useMenuItemStyles: (state: MenuItemState) => void;
603
+ export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;
603
604
 
604
605
  /**
605
606
  * Returns the props and state required to render the component
606
607
  */
607
- export declare const useMenuList: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
608
+ export declare const useMenuList_unstable: (props: MenuListProps, ref: React_2.Ref<HTMLElement>) => MenuListState;
608
609
 
609
- export declare const useMenuListContext: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
610
+ export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
610
611
 
611
- export declare function useMenuListContextValues(state: MenuListState): MenuListContextValues;
612
+ export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
612
613
 
613
614
  /**
614
615
  * Apply styling to the Menu slots based on the state
615
616
  */
616
- export declare const useMenuListStyles: (state: MenuListState) => MenuListState;
617
+ export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
617
618
 
618
619
  /**
619
620
  * Create the state required to render MenuPopover.
620
621
  *
621
- * The returned state can be modified with hooks such as useMenuPopoverStyles,
622
- * before being passed to renderMenuPopover.
622
+ * The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
623
+ * before being passed to renderMenuPopover_unstable.
623
624
  *
624
625
  * @param props - props from this instance of MenuPopover
625
626
  * @param ref - reference to root HTMLElement of MenuPopover
626
627
  */
627
- export declare const useMenuPopover: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
628
+ export declare const useMenuPopover_unstable: (props: MenuPopoverProps, ref: React_2.Ref<HTMLElement>) => MenuPopoverState;
628
629
 
629
630
  /**
630
631
  * Apply styling to the Menu slots based on the state
631
632
  */
632
- export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopoverState;
633
+ export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
633
634
 
634
635
  /**
635
636
  * Create the state required to render MenuSplitGroup.
636
637
  *
637
- * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
638
- * before being passed to renderMenuSplitGroup.
638
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
639
+ * before being passed to renderMenuSplitGroup_unstable.
639
640
  *
640
641
  * @param props - props from this instance of MenuSplitGroup
641
642
  * @param ref - reference to root HTMLElement of MenuSplitGroup
642
643
  */
643
- export declare const useMenuSplitGroup: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
644
+ export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
644
645
 
645
646
  /**
646
647
  * Apply styling to the MenuSplitGroup slots based on the state
647
648
  */
648
- export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => MenuSplitGroupState;
649
+ export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
649
650
 
650
651
  /**
651
652
  * Create the state required to render MenuTrigger.
@@ -653,8 +654,8 @@ export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => Me
653
654
  *
654
655
  * @param props - props from this instance of MenuTrigger
655
656
  */
656
- export declare const useMenuTrigger: (props: MenuTriggerProps, ref: React_2.Ref<HTMLElement>) => MenuTriggerState;
657
+ export declare const useMenuTrigger_unstable: (props: MenuTriggerProps) => MenuTriggerState;
657
658
 
658
- export declare const useMenuTriggerContext: () => boolean;
659
+ export declare const useMenuTriggerContext_unstable: () => boolean;
659
660
 
660
661
  export { }
@@ -1,14 +1,14 @@
1
- import { useMenu } from './useMenu';
2
- import { useMenuContextValues } from './useMenuContextValues';
3
- import { renderMenu } from './renderMenu';
1
+ import { useMenu_unstable } from './useMenu';
2
+ import { useMenuContextValues_unstable } from './useMenuContextValues';
3
+ import { renderMenu_unstable } from './renderMenu';
4
4
  /**
5
5
  * Wrapper component that manages state for a popup MenuList and a MenuTrigger
6
6
  */
7
7
 
8
8
  export const Menu = props => {
9
- const state = useMenu(props);
10
- const contextValues = useMenuContextValues(state);
11
- return renderMenu(state, contextValues);
9
+ const state = useMenu_unstable(props);
10
+ const contextValues = useMenuContextValues_unstable(state);
11
+ return renderMenu_unstable(state, contextValues);
12
12
  };
13
13
  Menu.displayName = 'Menu';
14
14
  //# sourceMappingURL=Menu.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,SAAS,OAAT,QAAwB,WAAxB;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,UAAT,QAA2B,cAA3B;AAGA;;AAEG;;AACH,OAAO,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,OAAO,CAAC,KAAD,CAArB;AACA,QAAM,aAAa,GAAG,oBAAoB,CAAC,KAAD,CAA1C;AAEA,SAAO,UAAU,CAAC,KAAD,EAAQ,aAAR,CAAjB;AACD,CALM;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AACA,SAAS,gBAAT,QAAiC,WAAjC;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,mBAAT,QAAoC,cAApC;AAGA;;AAEG;;AACH,OAAO,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,gBAAgB,CAAC,KAAD,CAA9B;AACA,QAAM,aAAa,GAAG,6BAA6B,CAAC,KAAD,CAAnD;AAEA,SAAO,mBAAmB,CAAC,KAAD,EAAQ,aAAR,CAA1B;AACD,CALM;AAOP,IAAI,CAAC,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -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
  /**
@@ -2,4 +2,4 @@ import type { MenuContextValues, MenuState } from './Menu.types';
2
2
  /**
3
3
  * Render the final JSX of Menu
4
4
  */
5
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
5
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
@@ -4,7 +4,7 @@ import { MenuProvider } from '../../contexts/menuContext';
4
4
  * Render the final JSX of Menu
5
5
  */
6
6
 
7
- export const renderMenu = (state, contextValues) => {
7
+ export const renderMenu_unstable = (state, contextValues) => {
8
8
  return /*#__PURE__*/React.createElement(MenuProvider, {
9
9
  value: contextValues.menu
10
10
  }, state.menuTrigger, state.open && state.menuPopover);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,4BAA7B;AAGA;;AAEG;;AACH,OAAO,MAAM,UAAU,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AAC/E,sBACE,KAAA,CAAA,aAAA,CAAC,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,4BAA7B;AAGA;;AAEG;;AACH,OAAO,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AACxF,sBACE,KAAA,CAAA,aAAA,CAAC,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM","sourceRoot":""}
@@ -3,8 +3,8 @@ import type { MenuProps, MenuState } from './Menu.types';
3
3
  * Create the state required to render Menu.
4
4
  *
5
5
  * The returned state can be modified with hooks such as useMenuStyles,
6
- * before being passed to renderMenu.
6
+ * before being passed to renderMenu_unstable.
7
7
  *
8
8
  * @param props - props from this instance of Menu
9
9
  */
10
- export declare const useMenu: (props: MenuProps) => MenuState;
10
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
@@ -4,19 +4,19 @@ import { useControllableState, useId, useOnClickOutside, useEventCallback } from
4
4
  import { useFluent } from '@fluentui/react-shared-contexts';
5
5
  import { elementContains } from '@fluentui/react-portal';
6
6
  import { useFocusFinders } from '@fluentui/react-tabster';
7
- import { useMenuContext } from '../../contexts/menuContext';
7
+ import { useMenuContext_unstable } from '../../contexts/menuContext';
8
8
  import { MENU_ENTER_EVENT, useOnMenuMouseEnter } from '../../utils/index';
9
9
  import { useIsSubmenu } from '../../utils/useIsSubmenu';
10
10
  /**
11
11
  * Create the state required to render Menu.
12
12
  *
13
13
  * The returned state can be modified with hooks such as useMenuStyles,
14
- * before being passed to renderMenu.
14
+ * before being passed to renderMenu_unstable.
15
15
  *
16
16
  * @param props - props from this instance of Menu
17
17
  */
18
18
 
19
- export const useMenu = props => {
19
+ export const useMenu_unstable = props => {
20
20
  const triggerId = useId('menu');
21
21
  const isSubmenu = useIsSubmenu();
22
22
  const [contextTarget, setContextTarget] = usePopperMouseTarget();
@@ -118,7 +118,7 @@ const useMenuOpenState = state => {
118
118
  const {
119
119
  targetDocument
120
120
  } = useFluent();
121
- const parentSetOpen = useMenuContext(context => context.setOpen);
121
+ const parentSetOpen = useMenuContext_unstable(context => context.setOpen);
122
122
  const onOpenChange = useEventCallback((e, data) => {
123
123
  var _a;
124
124
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,EAA+B,SAA/B,EAA0C,2BAA1C,QAA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,GAAA,KAAK,CAAC,UAAN,CAAiB,OAAjB,MAAwB,IAAxB,IAAwB,EAAA,KAAA,KAAA,CAAxB,GAAwB,KAAA,CAAxB,GAAwB,EAAA,CAAE,KAAF,EAAxB;AACD;AACF;;AAED,IAAA,uBAAuB,CAAC,OAAxB,GAAkC,KAAlC;AACA,IAAA,kBAAkB,CAAC,OAAnB,GAA6B,KAA7B;AACA,IAAA,eAAe,CAAC,OAAhB,GAA0B,KAA1B;AACD,GAhBD,EAgBG,CAAC,KAAK,CAAC,UAAP,EAAmB,KAAK,CAAC,SAAzB,EAAoC,IAApC,EAA0C,UAA1C,EAAsD,qBAAtD,EAA6E,sBAA7E,CAhBH;AAkBA,SAAO,CAAC,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,KAAT,EAAgB,OAAhB,CAAP;AACD,CAvID","sourceRoot":""}
@@ -1,2 +1,2 @@
1
1
  import type { MenuContextValues, MenuState } from './Menu.types';
2
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
2
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
@@ -1,4 +1,4 @@
1
- export function useMenuContextValues(state) {
1
+ export function useMenuContextValues_unstable(state) {
2
2
  const {
3
3
  open,
4
4
  setOpen,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenuContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,oBAAV,CAA+B,KAA/B,EAA+C;AACnD,QAAM;AACJ,IAAA,IADI;AAEJ,IAAA,OAFI;AAGJ,IAAA,oBAHI;AAIJ,IAAA,aAJI;AAKJ,IAAA,oBALI;AAMJ,IAAA,WANI;AAOJ,IAAA,aAPI;AAQJ,IAAA,UARI;AASJ,IAAA,SATI;AAUJ,IAAA,cAVI;AAWJ,IAAA,SAXI;AAYJ,IAAA,aAZI;AAaJ,IAAA,QAbI;AAcJ,IAAA,kBAdI;AAeJ,IAAA;AAfI,MAgBF,KAhBJ,CADmD,CAmBnD;;AACA,QAAM,IAAI,GAAG;AACX,IAAA,IADW;AAEX,IAAA,OAFW;AAGX,IAAA,oBAHW;AAIX,IAAA,aAJW;AAKX,IAAA,oBALW;AAMX,IAAA,UANW;AAOX,IAAA,WAPW;AAQX,IAAA,aARW;AASX,IAAA,SATW;AAUX,IAAA,cAVW;AAWX,IAAA,SAXW;AAYX,IAAA,aAZW;AAaX,IAAA,QAbW;AAcX,IAAA,kBAdW;AAeX,IAAA;AAfW,GAAb;AAkBA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/useMenuContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,6BAAV,CAAwC,KAAxC,EAAwD;AAC5D,QAAM;AACJ,IAAA,IADI;AAEJ,IAAA,OAFI;AAGJ,IAAA,oBAHI;AAIJ,IAAA,aAJI;AAKJ,IAAA,oBALI;AAMJ,IAAA,WANI;AAOJ,IAAA,aAPI;AAQJ,IAAA,UARI;AASJ,IAAA,SATI;AAUJ,IAAA,cAVI;AAWJ,IAAA,SAXI;AAYJ,IAAA,aAZI;AAaJ,IAAA,QAbI;AAcJ,IAAA,kBAdI;AAeJ,IAAA;AAfI,MAgBF,KAhBJ,CAD4D,CAmB5D;;AACA,QAAM,IAAI,GAAG;AACX,IAAA,IADW;AAEX,IAAA,OAFW;AAGX,IAAA,oBAHW;AAIX,IAAA,aAJW;AAKX,IAAA,oBALW;AAMX,IAAA,UANW;AAOX,IAAA,WAPW;AAQX,IAAA,aARW;AASX,IAAA,SATW;AAUX,IAAA,cAVW;AAWX,IAAA,SAXW;AAYX,IAAA,aAZW;AAaX,IAAA,QAbW;AAcX,IAAA,kBAdW;AAeX,IAAA;AAfW,GAAb;AAkBA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuDividerProps } from './MenuDivider.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
4
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
5
5
  */
6
6
  export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuDivider } from './useMenuDivider';
3
- import { useMenuDividerStyles } from './useMenuDividerStyles';
4
- import { renderMenuDivider } from './renderMenuDivider';
2
+ import { useMenuDivider_unstable } from './useMenuDivider';
3
+ import { useMenuDividerStyles_unstable } from './useMenuDividerStyles';
4
+ import { renderMenuDivider_unstable } from './renderMenuDivider';
5
5
  /**
6
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
6
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
7
7
  */
8
8
 
9
9
  export const MenuDivider = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useMenuDivider(props, ref);
11
- useMenuDividerStyles(state);
12
- return renderMenuDivider(state);
10
+ const state = useMenuDivider_unstable(props, ref);
11
+ useMenuDividerStyles_unstable(state);
12
+ return renderMenuDivider_unstable(state);
13
13
  });
14
14
  MenuDivider.displayName = 'MenuDivider';
15
15
  //# sourceMappingURL=MenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,cAAc,CAAC,KAAD,EAAQ,GAAR,CAA5B;AACA,EAAA,oBAAoB,CAAC,KAAD,CAApB;AAEA,SAAO,iBAAiB,CAAC,KAAD,CAAxB;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,EAAQ,GAAR,CAArC;AACA,EAAA,6BAA6B,CAAC,KAAD,CAA7B;AAEA,SAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuDividerSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
6
6
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -3,4 +3,4 @@ import { MenuDividerState } from './MenuDivider.types';
3
3
  * Redefine the render function to add slots. Reuse the menudivider structure but add
4
4
  * slots to children.
5
5
  */
6
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
6
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;