@fluentui/react-menu 0.0.0-nightlydd0f007b3f20220119.1 → 0.0.0-nightlye0b8e1fa6920220128.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. package/CHANGELOG.json +56 -38
  2. package/CHANGELOG.md +18 -16
  3. package/dist/react-menu.d.ts +69 -67
  4. package/lib/components/Menu/Menu.js +6 -6
  5. package/lib/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/renderMenu.d.ts +1 -1
  7. package/lib/components/Menu/renderMenu.js +1 -1
  8. package/lib/components/Menu/renderMenu.js.map +1 -1
  9. package/lib/components/Menu/useMenu.d.ts +2 -2
  10. package/lib/components/Menu/useMenu.js +4 -4
  11. package/lib/components/Menu/useMenu.js.map +1 -1
  12. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  13. package/lib/components/Menu/useMenuContextValues.js +1 -1
  14. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  15. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  17. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  18. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  19. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  20. package/lib/components/MenuDivider/renderMenuDivider.js +1 -1
  21. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  22. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  23. package/lib/components/MenuDivider/useMenuDivider.js +1 -1
  24. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  25. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  26. package/lib/components/MenuDivider/useMenuDividerStyles.js +2 -2
  27. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  28. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  29. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  30. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  31. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  32. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  33. package/lib/components/MenuGroup/renderMenuGroup.js +1 -1
  34. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  35. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  36. package/lib/components/MenuGroup/useMenuGroup.js +1 -1
  37. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  38. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  39. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  40. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  41. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  42. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  43. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  44. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  45. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  46. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  47. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  48. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  49. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +1 -1
  50. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  51. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  52. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +3 -3
  53. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  54. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  55. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +2 -2
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  57. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  58. package/lib/components/MenuItem/MenuItem.js +7 -7
  59. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  60. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  61. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  62. package/lib/components/MenuItem/renderMenuItem.js +1 -1
  63. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  64. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  65. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  66. package/lib/components/MenuItem/useMenuItem.d.ts +1 -1
  67. package/lib/components/MenuItem/useMenuItem.js +9 -9
  68. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  69. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  70. package/lib/components/MenuItem/useMenuItemStyles.js +4 -4
  71. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  72. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  73. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  74. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  75. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  76. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +1 -1
  77. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  78. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  79. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  80. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  81. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  82. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  84. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  85. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  86. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  87. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  88. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +1 -1
  89. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  90. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  91. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  92. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  93. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  94. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  95. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  96. package/lib/components/MenuList/MenuList.d.ts +1 -1
  97. package/lib/components/MenuList/MenuList.js +9 -9
  98. package/lib/components/MenuList/MenuList.js.map +1 -1
  99. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  100. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  101. package/lib/components/MenuList/renderMenuList.js +1 -1
  102. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  103. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  104. package/lib/components/MenuList/useMenuList.js +8 -8
  105. package/lib/components/MenuList/useMenuList.js.map +1 -1
  106. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  107. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  108. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  109. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  110. package/lib/components/MenuList/useMenuListStyles.js +2 -2
  111. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  112. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  113. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  114. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  115. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  116. package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
  117. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  119. package/lib/components/MenuPopover/useMenuPopover.js +8 -8
  120. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  121. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  122. package/lib/components/MenuPopover/useMenuPopoverStyles.js +2 -2
  123. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  124. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +6 -6
  125. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  126. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +2 -2
  127. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  128. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +1 -1
  129. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  130. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  131. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +3 -3
  132. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  133. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  134. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +2 -2
  135. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  136. package/lib/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  137. package/lib/components/MenuTrigger/MenuTrigger.js +7 -6
  138. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  139. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  140. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  141. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  142. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  143. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  144. package/lib/components/MenuTrigger/useMenuTrigger.js +177 -5
  145. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  146. package/lib/contexts/menuContext.d.ts +1 -1
  147. package/lib/contexts/menuContext.js +1 -1
  148. package/lib/contexts/menuContext.js.map +1 -1
  149. package/lib/contexts/menuGroupContext.d.ts +1 -1
  150. package/lib/contexts/menuGroupContext.js +1 -1
  151. package/lib/contexts/menuGroupContext.js.map +1 -1
  152. package/lib/contexts/menuListContext.d.ts +1 -1
  153. package/lib/contexts/menuListContext.js +1 -1
  154. package/lib/contexts/menuListContext.js.map +1 -1
  155. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  156. package/lib/contexts/menuTriggerContext.js +1 -1
  157. package/lib/contexts/menuTriggerContext.js.map +1 -1
  158. package/lib/selectable/useCheckmarkStyles.d.ts +1 -1
  159. package/lib/selectable/useCheckmarkStyles.js +2 -2
  160. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  161. package/lib/utils/useIsSubmenu.js +2 -2
  162. package/lib/utils/useIsSubmenu.js.map +1 -1
  163. package/lib-commonjs/components/Menu/Menu.js +3 -3
  164. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  165. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  166. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  167. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  168. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  169. package/lib-commonjs/components/Menu/useMenu.js +5 -5
  170. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  171. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  172. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  173. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  174. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  175. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  176. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  177. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  178. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  179. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
  180. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  181. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  182. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +3 -3
  183. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  184. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  185. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +6 -6
  186. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  187. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  188. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  189. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  190. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  191. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  192. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
  193. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  194. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  195. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +3 -3
  196. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  197. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  198. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  199. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  200. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  201. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  202. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  203. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  204. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  205. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  206. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  207. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  208. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
  209. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  210. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  211. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +4 -4
  212. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  213. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  214. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +6 -6
  215. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  216. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  217. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
  218. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  219. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  220. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  221. package/lib-commonjs/components/MenuItem/renderMenuItem.js +3 -3
  222. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  223. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  224. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  225. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +1 -1
  226. package/lib-commonjs/components/MenuItem/useMenuItem.js +8 -8
  227. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  228. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  229. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +11 -11
  230. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  231. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  232. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  233. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  234. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  235. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +3 -3
  236. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  237. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  238. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  239. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  240. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  241. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  242. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  243. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  244. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  245. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  246. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  247. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +3 -3
  248. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  249. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  250. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  251. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  252. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  253. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  254. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  255. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  256. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  257. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  258. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  259. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  260. package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
  261. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  262. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  263. package/lib-commonjs/components/MenuList/useMenuList.js +9 -9
  264. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  265. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  266. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  267. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  268. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  269. package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
  270. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  271. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  272. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  273. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  274. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  275. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
  276. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  277. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  278. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +9 -9
  279. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  280. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  281. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +6 -6
  282. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  283. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +3 -3
  284. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  285. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +2 -2
  286. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  287. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +3 -3
  288. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  289. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  290. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +5 -5
  291. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  292. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  293. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +6 -6
  294. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  295. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  296. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -6
  297. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  298. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  299. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  300. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  301. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  302. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  303. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +186 -7
  304. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  305. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  306. package/lib-commonjs/contexts/menuContext.js +3 -3
  307. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  308. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  309. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  310. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  311. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  312. package/lib-commonjs/contexts/menuListContext.js +3 -3
  313. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  314. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  315. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  316. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  317. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +1 -1
  318. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  319. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  320. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  321. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  322. package/package.json +10 -12
  323. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  324. package/lib/components/MenuTrigger/useTriggerElement.js +0 -166
  325. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  326. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  327. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -181
  328. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenuTrigger = void 0;
6
+ exports.renderMenuTrigger_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -15,11 +15,11 @@ const menuTriggerContext_1 = /*#__PURE__*/require("../../contexts/menuTriggerCon
15
15
  */
16
16
 
17
17
 
18
- const renderMenuTrigger = state => {
18
+ const renderMenuTrigger_unstable = state => {
19
19
  return React.createElement(menuTriggerContext_1.MenuTriggerContextProvider, {
20
20
  value: true
21
21
  }, state.children);
22
22
  };
23
23
 
24
- exports.renderMenuTrigger = renderMenuTrigger;
24
+ exports.renderMenuTrigger_unstable = renderMenuTrigger_unstable;
25
25
  //# sourceMappingURL=renderMenuTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/renderMenuTrigger.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,oBAAA,gBAAA,OAAA,CAAA,mCAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,SAAO,KAAA,CAAA,aAAA,CAAC,oBAAA,CAAA,0BAAD,EAA2B;AAAC,IAAA,KAAK,EAAE;AAAR,GAA3B,EAA0C,KAAK,CAAC,QAAhD,CAAP;AACD,CAFM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuTrigger/renderMenuTrigger.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,oBAAA,gBAAA,OAAA,CAAA,mCAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,SAAO,KAAA,CAAA,aAAA,CAAC,oBAAA,CAAA,0BAAD,EAA2B;AAAC,IAAA,KAAK,EAAE;AAAR,GAA3B,EAA0C,KAAK,CAAC,QAAhD,CAAP;AACD,CAFM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
2
3
  /**
3
4
  * Create the state required to render MenuTrigger.
@@ -5,4 +6,4 @@ import type { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
5
6
  *
6
7
  * @param props - props from this instance of MenuTrigger
7
8
  */
8
- export declare const useMenuTrigger: (props: MenuTriggerProps) => MenuTriggerState;
9
+ export declare const useMenuTrigger_unstable: (props: MenuTriggerProps, ref: React.Ref<HTMLElement>) => MenuTriggerState;
@@ -3,9 +3,23 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuTrigger = void 0;
6
+ exports.useMenuTrigger_unstable = void 0;
7
7
 
8
- const useTriggerElement_1 = /*#__PURE__*/require("./useTriggerElement");
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const menuContext_1 = /*#__PURE__*/require("../../contexts/menuContext");
11
+
12
+ const useIsSubmenu_1 = /*#__PURE__*/require("../../utils/useIsSubmenu");
13
+
14
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
15
+
16
+ const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
17
+
18
+ const keyboard_keys_1 = /*#__PURE__*/require("@fluentui/keyboard-keys");
19
+
20
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
21
+
22
+ const react_utilities_2 = /*#__PURE__*/require("@fluentui/react-utilities");
9
23
  /**
10
24
  * Create the state required to render MenuTrigger.
11
25
  * Clones the only child component and adds necessary event handling behaviours to open a popup menu
@@ -14,12 +28,177 @@ const useTriggerElement_1 = /*#__PURE__*/require("./useTriggerElement");
14
28
  */
15
29
 
16
30
 
17
- const useMenuTrigger = props => {
18
- const state = { ...props
19
- }; // TODO just move the contents of this hook here
31
+ const useMenuTrigger_unstable = (props, ref) => {
32
+ var _a;
33
+
34
+ const {
35
+ children,
36
+ ...rest
37
+ } = props;
38
+ const triggerRef = menuContext_1.useMenuContext_unstable(context => context.triggerRef);
39
+ const menuPopoverRef = menuContext_1.useMenuContext_unstable(context => context.menuPopoverRef);
40
+ const setOpen = menuContext_1.useMenuContext_unstable(context => context.setOpen);
41
+ const open = menuContext_1.useMenuContext_unstable(context => context.open);
42
+ const triggerId = menuContext_1.useMenuContext_unstable(context => context.triggerId);
43
+ const openOnHover = menuContext_1.useMenuContext_unstable(context => context.openOnHover);
44
+ const openOnContext = menuContext_1.useMenuContext_unstable(context => context.openOnContext);
45
+ const isSubmenu = useIsSubmenu_1.useIsSubmenu();
46
+ const {
47
+ findFirstFocusable
48
+ } = react_tabster_1.useFocusFinders();
49
+ const focusFirst = React.useCallback(() => {
50
+ const firstFocusable = findFirstFocusable(menuPopoverRef.current);
51
+ firstFocusable === null || firstFocusable === void 0 ? void 0 : firstFocusable.focus();
52
+ }, [findFirstFocusable, menuPopoverRef]);
53
+ const openedWithKeyboardRef = React.useRef(false);
54
+ const hasMouseMoved = React.useRef(false);
55
+ const {
56
+ dir
57
+ } = react_shared_contexts_1.useFluent();
58
+ const OpenArrowKey = dir === 'ltr' ? keyboard_keys_1.ArrowRight : keyboard_keys_1.ArrowLeft;
59
+ const child = React.isValidElement(children) ? react_utilities_1.onlyChild(children) : undefined;
60
+
61
+ const onContextMenu = e => {
62
+ if (isTargetDisabled(e)) {
63
+ return;
64
+ }
65
+
66
+ if (openOnContext) {
67
+ e.preventDefault();
68
+ setOpen(e, {
69
+ open: true,
70
+ keyboard: false
71
+ });
72
+ }
73
+ };
74
+
75
+ const onClick = e => {
76
+ if (isTargetDisabled(e)) {
77
+ return;
78
+ }
79
+
80
+ if (!openOnContext) {
81
+ setOpen(e, {
82
+ open: !open,
83
+ keyboard: openedWithKeyboardRef.current
84
+ });
85
+ openedWithKeyboardRef.current = false;
86
+ }
87
+ };
88
+
89
+ const onKeyDown = e => {
90
+ var _a;
91
+
92
+ if (isTargetDisabled(e)) {
93
+ return;
94
+ }
95
+
96
+ if (react_utilities_2.shouldPreventDefaultOnKeyDown(e)) {
97
+ e.preventDefault();
98
+ openedWithKeyboardRef.current = true;
99
+ (_a = e.target) === null || _a === void 0 ? void 0 : _a.click();
100
+ }
101
+
102
+ const key = e.key;
103
+
104
+ if (!openOnContext && (isSubmenu && key === OpenArrowKey || !isSubmenu && key === keyboard_keys_1.ArrowDown)) {
105
+ setOpen(e, {
106
+ open: true,
107
+ keyboard: true
108
+ });
109
+ }
20
110
 
21
- return useTriggerElement_1.useTriggerElement(state);
111
+ if (key === keyboard_keys_1.Escape && !isSubmenu) {
112
+ setOpen(e, {
113
+ open: false,
114
+ keyboard: true
115
+ });
116
+ } // if menu is already open, can't rely on effects to focus
117
+
118
+
119
+ if (open && key === OpenArrowKey && isSubmenu) {
120
+ focusFirst();
121
+ }
122
+ };
123
+
124
+ const onMouseEnter = e => {
125
+ if (isTargetDisabled(e)) {
126
+ return;
127
+ }
128
+
129
+ if (openOnHover && hasMouseMoved.current) {
130
+ setOpen(e, {
131
+ open: true,
132
+ keyboard: false
133
+ });
134
+ }
135
+ }; // Opening a menu when a mouse hasn't moved and just entering the trigger is a bad a11y experience
136
+ // First time open the mouse using mousemove and then continue with mouseenter
137
+ // Only use once to determine that the user is using the mouse since it is an expensive event to handle
138
+
139
+
140
+ const onMouseMove = e => {
141
+ if (isTargetDisabled(e)) {
142
+ return;
143
+ }
144
+
145
+ if (openOnHover && !hasMouseMoved.current) {
146
+ setOpen(e, {
147
+ open: true,
148
+ keyboard: false
149
+ });
150
+ hasMouseMoved.current = true;
151
+ }
152
+ };
153
+
154
+ const onMouseLeave = e => {
155
+ if (isTargetDisabled(e)) {
156
+ return;
157
+ }
158
+
159
+ if (openOnHover) {
160
+ setOpen(e, {
161
+ open: false,
162
+ keyboard: false
163
+ });
164
+ }
165
+ };
166
+
167
+ const overrideProps = {
168
+ 'aria-haspopup': 'menu',
169
+ 'aria-expanded': open,
170
+ id: ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.id) || triggerId,
171
+ onClick,
172
+ onMouseEnter,
173
+ onMouseLeave,
174
+ onKeyDown,
175
+ onContextMenu,
176
+ onMouseMove
177
+ };
178
+
179
+ if (!open && !isSubmenu) {
180
+ overrideProps['aria-expanded'] = undefined;
181
+ }
182
+
183
+ return {
184
+ children: react_utilities_1.useTriggerElement({
185
+ children,
186
+ ref: react_utilities_1.useMergedRefs(triggerRef, ref),
187
+ outerProps: rest,
188
+ overrideProps
189
+ })
190
+ };
22
191
  };
23
192
 
24
- exports.useMenuTrigger = useMenuTrigger;
193
+ exports.useMenuTrigger_unstable = useMenuTrigger_unstable;
194
+
195
+ const isTargetDisabled = e => {
196
+ const isDisabled = el => el.hasAttribute('disabled') || el.hasAttribute('aria-disabled') && el.getAttribute('aria-disabled') === 'true';
197
+
198
+ if (e.target instanceof HTMLElement && isDisabled(e.target)) {
199
+ return true;
200
+ }
201
+
202
+ return e.currentTarget instanceof HTMLElement && isDisabled(e.currentTarget);
203
+ };
25
204
  //# sourceMappingURL=useMenuTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/useMenuTrigger.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAGA;;;;;AAKG;;;AACI,MAAM,cAAc,GAAI,KAAD,IAA8C;AAC1E,QAAM,KAAK,GAAG,EAAE,GAAG;AAAL,GAAd,CAD0E,CAG1E;;AACA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Men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C,SAAd,EAAyB;AACvB,IAAA,aAAa,CAAC,eAAD,CAAb,GAAiC,SAAjC;AACD;;AAED,SAAO;AACL,IAAA,QAAQ,EAAE,iBAAA,CAAA,iBAAA,CAAkB;AAC1B,MAAA,QAD0B;AAE1B,MAAA,GAAG,EAAE,iBAAA,CAAA,aAAA,CAAc,UAAd,EAA0B,GAA1B,CAFqB;AAG1B,MAAA,UAAU,EAAE,IAHc;AAI1B,MAAA;AAJ0B,KAAlB;AADL,GAAP;AAQD,CAnIM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB;;AAqIb,MAAM,gBAAgB,GAAI,CAAD,IAAoC;AAC3D,QAAM,UAAU,GAAI,EAAD,IACjB,EAAE,CAAC,YAAH,CAAgB,UAAhB,KAAgC,EAAE,CAAC,YAAH,CAAgB,eAAhB,KAAoC,EAAE,CAAC,YAAH,CAAgB,eAAhB,MAAqC,MAD3G;;AAEA,MAAI,CAAC,CAAC,MAAF,YAAoB,WAApB,IAAmC,UAAU,CAAC,CAAC,CAAC,MAAH,CAAjD,EAA6D;AAC3D,WAAO,IAAP;AACD;;AAED,SAAO,CAAC,CAAC,aAAF,YAA2B,WAA3B,IAA0C,UAAU,CAAC,CAAC,CAAC,aAAH,CAA3D;AACD,CARD","sourceRoot":""}
@@ -13,4 +13,4 @@ export declare type MenuContextValue = MenuListProps & Pick<MenuState, 'openOnHo
13
13
  triggerId: string;
14
14
  };
15
15
  export declare const MenuProvider: React.Provider<MenuContextValue> & React.FC<React.ProviderProps<MenuContextValue>>;
16
- export declare const useMenuContext: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
16
+ export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuContext = exports.MenuProvider = exports.MenuContext = void 0;
6
+ exports.useMenuContext_unstable = exports.MenuProvider = exports.MenuContext = void 0;
7
7
 
8
8
  const react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
9
9
 
@@ -28,7 +28,7 @@ exports.MenuContext = /*#__PURE__*/react_context_selector_1.createContext({
28
28
  });
29
29
  exports.MenuProvider = exports.MenuContext.Provider;
30
30
 
31
- const useMenuContext = selector => react_context_selector_1.useContextSelector(exports.MenuContext, selector);
31
+ const useMenuContext_unstable = selector => react_context_selector_1.useContextSelector(exports.MenuContext, selector);
32
32
 
33
- exports.useMenuContext = useMenuContext;
33
+ exports.useMenuContext_unstable = useMenuContext_unstable;
34
34
  //# sourceMappingURL=menuContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuContext.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AAKa,OAAA,CAAA,WAAA,gBAAyC,wBAAA,CAAA,aAAA,CAAgC;AACpF,EAAA,IAAI,EAAE,KAD8E;AAEpF,EAAA,OAAO,EAAE,MAAM,KAFqE;AAGpF,EAAA,aAAa,EAAE,EAHqE;AAIpF,EAAA,oBAAoB,EAAE,MAAM,IAJwD;AAKpF,EAAA,oBAAoB,EAAE,EAL8D;AAMpF,EAAA,SAAS,EAAE,KANyE;AAOpF,EAAA,UAAU,EAAG;AAAE,IAAA,OAAO,EAAE;AAAX,GAPuE;AAQpF,EAAA,cAAc,EAAG;AAAE,IAAA,OAAO,EAAE;AAAX,GARmE;AASpF,EAAA,SAAS,EAAE,EATyE;AAUpF,EAAA,aAAa,EAAE,KAVqE;AAWpF,EAAA,WAAW,EAAE,KAXuE;AAYpF,EAAA,QAAQ,EAAE,KAZ0E;AAapF,EAAA,aAAa,EAAE;AAbqE,CAAhC,CAAzC;AAwCA,OAAA,CAAA,YAAA,GAAe,OAAA,CAAA,WAAA,CAAY,QAA3B;;AAEN,MAAM,cAAc,GAAO,QAAJ,IAC5B,wBAAA,CAAA,kBAAA,CAAmB,OAAA,CAAA,WAAnB,EAAgC,QAAhC,CADK;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuContext.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AAKa,OAAA,CAAA,WAAA,gBAAyC,wBAAA,CAAA,aAAA,CAAgC;AACpF,EAAA,IAAI,EAAE,KAD8E;AAEpF,EAAA,OAAO,EAAE,MAAM,KAFqE;AAGpF,EAAA,aAAa,EAAE,EAHqE;AAIpF,EAAA,oBAAoB,EAAE,MAAM,IAJwD;AAKpF,EAAA,oBAAoB,EAAE,EAL8D;AAMpF,EAAA,SAAS,EAAE,KANyE;AAOpF,EAAA,UAAU,EAAG;AAAE,IAAA,OAAO,EAAE;AAAX,GAPuE;AAQpF,EAAA,cAAc,EAAG;AAAE,IAAA,OAAO,EAAE;AAAX,GARmE;AASpF,EAAA,SAAS,EAAE,EATyE;AAUpF,EAAA,aAAa,EAAE,KAVqE;AAWpF,EAAA,WAAW,EAAE,KAXuE;AAYpF,EAAA,QAAQ,EAAE,KAZ0E;AAapF,EAAA,aAAa,EAAE;AAbqE,CAAhC,CAAzC;AAwCA,OAAA,CAAA,YAAA,GAAe,OAAA,CAAA,WAAA,CAAY,QAA3B;;AAEN,MAAM,uBAAuB,GAAO,QAAJ,IACrC,wBAAA,CAAA,kBAAA,CAAmB,OAAA,CAAA,WAAnB,EAAgC,QAAhC,CADK;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
@@ -10,4 +10,4 @@ export declare type MenuGroupContextValue = {
10
10
  headerId: string;
11
11
  };
12
12
  export declare const MenuGroupContextProvider: React.Provider<MenuGroupContextValue>;
13
- export declare const useMenuGroupContext: () => MenuGroupContextValue;
13
+ export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuGroupContext = exports.MenuGroupContextProvider = void 0;
6
+ exports.useMenuGroupContext_unstable = exports.MenuGroupContextProvider = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -12,7 +12,7 @@ const MenuGroupContext = /*#__PURE__*/React.createContext({
12
12
  });
13
13
  exports.MenuGroupContextProvider = MenuGroupContext.Provider;
14
14
 
15
- const useMenuGroupContext = () => React.useContext(MenuGroupContext);
15
+ const useMenuGroupContext_unstable = () => React.useContext(MenuGroupContext);
16
16
 
17
- exports.useMenuGroupContext = useMenuGroupContext;
17
+ exports.useMenuGroupContext_unstable = useMenuGroupContext_unstable;
18
18
  //# sourceMappingURL=menuGroupContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuGroupContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAEA,MAAM,gBAAgB,gBAAG,KAAK,CAAC,aAAN,CAA2C;AAAE,EAAA,QAAQ,EAAE;AAAZ,CAA3C,CAAzB;AAaa,OAAA,CAAA,wBAAA,GAA2B,gBAAgB,CAAC,QAA5C;;AACN,MAAM,mBAAmB,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,gBAAjB,CAAlC;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuGroupContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAEA,MAAM,gBAAgB,gBAAG,KAAK,CAAC,aAAN,CAA2C;AAAE,EAAA,QAAQ,EAAE;AAAZ,CAA3C,CAAzB;AAaa,OAAA,CAAA,wBAAA,GAA2B,gBAAgB,CAAC,QAA5C;;AACN,MAAM,4BAA4B,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,gBAAjB,CAA3C;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourceRoot":""}
@@ -12,4 +12,4 @@ export declare type MenuListContextValue = Pick<MenuListProps, 'checkedValues' |
12
12
  selectRadio?: SelectableHandler;
13
13
  };
14
14
  export declare const MenuListProvider: React.Provider<MenuListContextValue> & React.FC<React.ProviderProps<MenuListContextValue>>;
15
- export declare const useMenuListContext: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
15
+ export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuListContext = exports.MenuListProvider = exports.MenuListContext = void 0;
6
+ exports.useMenuListContext_unstable = exports.MenuListProvider = exports.MenuListContext = void 0;
7
7
 
8
8
  const react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
9
9
 
@@ -18,7 +18,7 @@ exports.MenuListContext = /*#__PURE__*/react_context_selector_1.createContext({
18
18
  });
19
19
  exports.MenuListProvider = exports.MenuListContext.Provider;
20
20
 
21
- const useMenuListContext = selector => react_context_selector_1.useContextSelector(exports.MenuListContext, selector);
21
+ const useMenuListContext_unstable = selector => react_context_selector_1.useContextSelector(exports.MenuListContext, selector);
22
22
 
23
- exports.useMenuListContext = useMenuListContext;
23
+ exports.useMenuListContext_unstable = useMenuListContext_unstable;
24
24
  //# sourceMappingURL=menuListContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuListContext.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AAKa,OAAA,CAAA,eAAA,gBAAiD,wBAAA,CAAA,aAAA,CAAoC;AAChG,EAAA,aAAa,EAAE,EADiF;AAEhG,EAAA,oBAAoB,EAAE,MAAM,IAFoE;AAGhG,EAAA,wBAAwB,EAAE,MAAM,IAHgE;AAIhG,EAAA,cAAc,EAAE,MAAM,IAJ0E;AAKhG,EAAA,WAAW,EAAE,MAAM,IAL6E;AAMhG,EAAA,QAAQ,EAAE,KANsF;AAOhG,EAAA,aAAa,EAAE;AAPiF,CAApC,CAAjD;AAsBA,OAAA,CAAA,gBAAA,GAAmB,OAAA,CAAA,eAAA,CAAgB,QAAnC;;AAEN,MAAM,kBAAkB,GAAQ,QAAL,IAChC,wBAAA,CAAA,kBAAA,CAAmB,OAAA,CAAA,eAAnB,EAAoC,QAApC,CADK;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuListContext.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AAKa,OAAA,CAAA,eAAA,gBAAiD,wBAAA,CAAA,aAAA,CAAoC;AAChG,EAAA,aAAa,EAAE,EADiF;AAEhG,EAAA,oBAAoB,EAAE,MAAM,IAFoE;AAGhG,EAAA,wBAAwB,EAAE,MAAM,IAHgE;AAIhG,EAAA,cAAc,EAAE,MAAM,IAJ0E;AAKhG,EAAA,WAAW,EAAE,MAAM,IAL6E;AAMhG,EAAA,QAAQ,EAAE,KANsF;AAOhG,EAAA,aAAa,EAAE;AAPiF,CAApC,CAAjD;AAsBA,OAAA,CAAA,gBAAA,GAAmB,OAAA,CAAA,eAAA,CAAgB,QAAnC;;AAEN,MAAM,2BAA2B,GAAQ,QAAL,IACzC,wBAAA,CAAA,kBAAA,CAAmB,OAAA,CAAA,eAAnB,EAAoC,QAApC,CADK;;AAAM,OAAA,CAAA,2BAAA,GAA2B,2BAA3B","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  export declare const MenuTriggerContextProvider: React.Provider<boolean>;
3
- export declare const useMenuTriggerContext: () => boolean;
3
+ export declare const useMenuTriggerContext_unstable: () => boolean;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuTriggerContext = exports.MenuTriggerContextProvider = void 0;
6
+ exports.useMenuTriggerContext_unstable = exports.MenuTriggerContextProvider = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
  /**
@@ -14,7 +14,7 @@ const React = /*#__PURE__*/require("react");
14
14
  const MenuTriggerContext = /*#__PURE__*/React.createContext(false);
15
15
  exports.MenuTriggerContextProvider = MenuTriggerContext.Provider;
16
16
 
17
- const useMenuTriggerContext = () => React.useContext(MenuTriggerContext);
17
+ const useMenuTriggerContext_unstable = () => React.useContext(MenuTriggerContext);
18
18
 
19
- exports.useMenuTriggerContext = useMenuTriggerContext;
19
+ exports.useMenuTriggerContext_unstable = useMenuTriggerContext_unstable;
20
20
  //# sourceMappingURL=menuTriggerContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuTriggerContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAEA;;AAEG;;;AACH,MAAM,kBAAkB,gBAAG,KAAK,CAAC,aAAN,CAA6B,KAA7B,CAA3B;AAEa,OAAA,CAAA,0BAAA,GAA6B,kBAAkB,CAAC,QAAhD;;AACN,MAAM,qBAAqB,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,kBAAjB,CAApC;;AAAM,OAAA,CAAA,qBAAA,GAAqB,qBAArB","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuTriggerContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAEA;;AAEG;;;AACH,MAAM,kBAAkB,gBAAG,KAAK,CAAC,aAAN,CAA6B,KAA7B,CAA3B;AAEa,OAAA,CAAA,0BAAA,GAA6B,kBAAkB,CAAC,QAAhD;;AACN,MAAM,8BAA8B,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,kBAAjB,CAA7C;;AAAM,OAAA,CAAA,8BAAA,GAA8B,8BAA9B","sourceRoot":""}
@@ -5,4 +5,4 @@ import type { MenuItemSlots } from '../components/MenuItem/MenuItem.types';
5
5
  *
6
6
  * @param state - should contain a `checkmark` slot
7
7
  */
8
- export declare const useCheckmarkStyles: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
8
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useCheckmarkStyles = void 0;
6
+ exports.useCheckmarkStyles_unstable = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
10
+ const useStyles = /*#__PURE__*/react_1.__styles({
11
11
  "root": {
12
12
  "a9b677": "fjw5fx7",
13
13
  "Bqenvij": "fd461yt",
@@ -26,13 +26,13 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
26
26
  */
27
27
 
28
28
 
29
- const useCheckmarkStyles = state => {
29
+ const useCheckmarkStyles_unstable = state => {
30
30
  const styles = useStyles();
31
31
 
32
32
  if (state.checkmark) {
33
- state.checkmark.className = react_make_styles_1.mergeClasses(styles.root, state.checked && styles.rootChecked, state.checkmark.className);
33
+ state.checkmark.className = react_1.mergeClasses(styles.root, state.checked && styles.rootChecked, state.checkmark.className);
34
34
  }
35
35
  };
36
36
 
37
- exports.useCheckmarkStyles = useCheckmarkStyles;
37
+ exports.useCheckmarkStyles_unstable = useCheckmarkStyles_unstable;
38
38
  //# sourceMappingURL=useCheckmarkStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/selectable/useCheckmarkStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAIA,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACI,MAAM,kBAAkB,GAAI,KAAD,IAAsE;AACtG,QAAM,MAAM,GAAG,SAAS,EAAxB;;AACA,MAAI,KAAK,CAAC,SAAV,EAAqB;AACnB,IAAA,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,mBAAA,CAAA,YAAA,CAC1B,MAAM,CAAC,IADmB,EAE1B,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFE,EAG1B,KAAK,CAAC,SAAN,CAAgB,SAHU,CAA5B;AAKD;AACF,CATM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/selectable/useCheckmarkStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAIA,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACI,MAAM,2BAA2B,GAAI,KAAD,IAAsE;AAC/G,QAAM,MAAM,GAAG,SAAS,EAAxB;;AACA,MAAI,KAAK,CAAC,SAAV,EAAqB;AACnB,IAAA,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,OAAA,CAAA,YAAA,CAC1B,MAAM,CAAC,IADmB,EAE1B,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFE,EAG1B,KAAK,CAAC,SAAN,CAAgB,SAHU,CAA5B;AAKD;AACF,CATM;;AAAM,OAAA,CAAA,2BAAA,GAA2B,2BAA3B","sourceRoot":""}
@@ -21,7 +21,7 @@ const menuListContext_1 = /*#__PURE__*/require("../contexts/menuListContext");
21
21
 
22
22
 
23
23
  function useIsSubmenu() {
24
- const menuContextValue = menuContext_1.useMenuContext(context => context.isSubmenu);
24
+ const menuContextValue = menuContext_1.useMenuContext_unstable(context => context.isSubmenu);
25
25
  const hasMenuListContext = react_context_selector_1.useHasParentContext(menuListContext_1.MenuListContext);
26
26
  return menuContextValue || hasMenuListContext;
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/useIsSubmenu.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAEA;;;;;;;AAOG;;;AACH,SAAgB,YAAhB,GAA4B;AAC1B,QAAM,gBAAgB,GAAG,aAAA,CAAA,cAAA,CAAe,OAAO,IAAI,OAAO,CAAC,SAAlC,CAAzB;AACA,QAAM,kBAAkB,GAAG,wBAAA,CAAA,mBAAA,CAAoB,iBAAA,CAAA,eAApB,CAA3B;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD;;AALD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/utils/useIsSubmenu.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAEA;;;;;;;AAOG;;;AACH,SAAgB,YAAhB,GAA4B;AAC1B,QAAM,gBAAgB,GAAG,aAAA,CAAA,uBAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,SAA3C,CAAzB;AACA,QAAM,kBAAkB,GAAG,wBAAA,CAAA,mBAAA,CAAoB,iBAAA,CAAA,eAApB,CAA3B;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD;;AALD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-menu",
3
- "version": "0.0.0-nightlydd0f007b3f20220119.1",
3
+ "version": "0.0.0-nightlye0b8e1fa6920220128.1",
4
4
  "description": "Fluent UI menu component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -27,11 +27,9 @@
27
27
  "type-check": "tsc -b tsconfig.json"
28
28
  },
29
29
  "devDependencies": {
30
- "@fluentui/babel-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
31
30
  "@fluentui/eslint-plugin": "*",
32
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
33
31
  "@fluentui/react-conformance": "*",
34
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlye0b8e1fa6920220128.1",
35
33
  "@fluentui/scripts": "^1.0.0",
36
34
  "@types/enzyme": "3.10.3",
37
35
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -45,15 +43,15 @@
45
43
  "react-test-renderer": "^16.3.0"
46
44
  },
47
45
  "dependencies": {
48
- "@fluentui/keyboard-keys": "0.0.0-nightlydd0f007b3f20220119.1",
49
- "@fluentui/react-context-selector": "0.0.0-nightlydd0f007b3f20220119.1",
46
+ "@fluentui/keyboard-keys": "0.0.0-nightlye0b8e1fa6920220128.1",
47
+ "@fluentui/react-context-selector": "0.0.0-nightlye0b8e1fa6920220128.1",
50
48
  "@fluentui/react-icons": "^2.0.154-beta.5",
51
- "@fluentui/react-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
52
- "@fluentui/react-portal": "0.0.0-nightlydd0f007b3f20220119.1",
53
- "@fluentui/react-positioning": "0.0.0-nightlydd0f007b3f20220119.1",
54
- "@fluentui/react-shared-contexts": "0.0.0-nightlydd0f007b3f20220119.1",
55
- "@fluentui/react-tabster": "0.0.0-nightlydd0f007b3f20220119.1",
56
- "@fluentui/react-utilities": "0.0.0-nightlydd0f007b3f20220119.1",
49
+ "@griffel/react": "1.0.0",
50
+ "@fluentui/react-portal": "0.0.0-nightlye0b8e1fa6920220128.1",
51
+ "@fluentui/react-positioning": "0.0.0-nightlye0b8e1fa6920220128.1",
52
+ "@fluentui/react-shared-contexts": "0.0.0-nightlye0b8e1fa6920220128.1",
53
+ "@fluentui/react-tabster": "0.0.0-nightlye0b8e1fa6920220128.1",
54
+ "@fluentui/react-utilities": "0.0.0-nightlye0b8e1fa6920220128.1",
57
55
  "tslib": "^2.1.0"
58
56
  },
59
57
  "peerDependencies": {
@@ -1,5 +0,0 @@
1
- import type { MenuTriggerState } from './MenuTrigger.types';
2
- /**
3
- * Adds the necessary props to the trigger element
4
- */
5
- export declare const useTriggerElement: (state: MenuTriggerState) => MenuTriggerState;