@fluentui/react-menu 0.0.0-nightlyfbae36b19b20211111.1 → 0.0.0-nightlyfc5cfdc52420220215.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (375) hide show
  1. package/CHANGELOG.json +415 -30
  2. package/CHANGELOG.md +93 -17
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +111 -68
  5. package/lib/MenuSplitGroup.d.ts +1 -0
  6. package/lib/MenuSplitGroup.js +2 -0
  7. package/lib/MenuSplitGroup.js.map +1 -0
  8. package/lib/components/Menu/Menu.js +6 -6
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/Menu.types.d.ts +1 -1
  11. package/lib/components/Menu/renderMenu.d.ts +1 -1
  12. package/lib/components/Menu/renderMenu.js +1 -1
  13. package/lib/components/Menu/renderMenu.js.map +1 -1
  14. package/lib/components/Menu/useMenu.d.ts +2 -2
  15. package/lib/components/Menu/useMenu.js +34 -26
  16. package/lib/components/Menu/useMenu.js.map +1 -1
  17. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  18. package/lib/components/Menu/useMenuContextValues.js +1 -1
  19. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  20. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  21. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  22. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  23. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  24. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  25. package/lib/components/MenuDivider/renderMenuDivider.js +3 -2
  26. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  27. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js +4 -1
  29. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  30. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  31. package/lib/components/MenuDivider/useMenuDividerStyles.js +3 -2
  32. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  33. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  35. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  37. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  38. package/lib/components/MenuGroup/renderMenuGroup.js +3 -2
  39. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  40. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  41. package/lib/components/MenuGroup/useMenuGroup.js +4 -1
  42. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  43. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  44. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  45. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  46. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  47. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  48. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  49. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  50. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  51. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  52. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  53. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  54. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -2
  55. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  57. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +6 -3
  58. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  59. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  60. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +3 -2
  61. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  62. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  63. package/lib/components/MenuItem/MenuItem.js +7 -9
  64. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  65. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  66. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  67. package/lib/components/MenuItem/renderMenuItem.js +9 -4
  68. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  69. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  70. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  71. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  72. package/lib/components/MenuItem/useMenuItem.js +11 -16
  73. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  74. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  75. package/lib/components/MenuItem/useMenuItemStyles.js +27 -24
  76. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  77. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  78. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  79. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  80. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  81. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +8 -4
  82. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  84. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  85. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  86. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  87. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  88. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  89. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  90. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  91. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  92. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  93. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +8 -4
  94. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  95. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  96. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  97. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  98. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  99. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  100. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  101. package/lib/components/MenuList/MenuList.d.ts +1 -1
  102. package/lib/components/MenuList/MenuList.js +9 -9
  103. package/lib/components/MenuList/MenuList.js.map +1 -1
  104. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  105. package/lib/components/MenuList/index.d.ts +1 -1
  106. package/lib/components/MenuList/index.js +0 -1
  107. package/lib/components/MenuList/index.js.map +1 -1
  108. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  109. package/lib/components/MenuList/renderMenuList.js +3 -2
  110. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  111. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  112. package/lib/components/MenuList/useMenuList.js +11 -8
  113. package/lib/components/MenuList/useMenuList.js.map +1 -1
  114. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  115. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  116. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  117. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  118. package/lib/components/MenuList/useMenuListStyles.js +5 -4
  119. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  120. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  121. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  122. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  123. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  124. package/lib/components/MenuPopover/renderMenuPopover.js +5 -3
  125. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  126. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  127. package/lib/components/MenuPopover/useMenuPopover.js +11 -8
  128. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  129. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  130. package/lib/components/MenuPopover/useMenuPopoverStyles.js +9 -5
  131. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  132. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  133. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  134. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  135. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  136. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  137. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  138. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  139. package/lib/components/MenuSplitGroup/index.js +6 -0
  140. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  141. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  142. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  143. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  144. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  145. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  146. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  147. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  148. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  149. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  150. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  151. package/lib/components/MenuTrigger/MenuTrigger.js +5 -4
  152. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  153. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  154. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  155. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  156. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  157. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  158. package/lib/components/MenuTrigger/useMenuTrigger.js +167 -5
  159. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  160. package/lib/contexts/menuContext.d.ts +1 -1
  161. package/lib/contexts/menuContext.js +1 -1
  162. package/lib/contexts/menuContext.js.map +1 -1
  163. package/lib/contexts/menuGroupContext.d.ts +1 -1
  164. package/lib/contexts/menuGroupContext.js +1 -1
  165. package/lib/contexts/menuGroupContext.js.map +1 -1
  166. package/lib/contexts/menuListContext.d.ts +1 -1
  167. package/lib/contexts/menuListContext.js +1 -1
  168. package/lib/contexts/menuListContext.js.map +1 -1
  169. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  170. package/lib/contexts/menuTriggerContext.js +1 -1
  171. package/lib/contexts/menuTriggerContext.js.map +1 -1
  172. package/lib/index.d.ts +11 -10
  173. package/lib/index.js +11 -10
  174. package/lib/index.js.map +1 -1
  175. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  176. package/lib/selectable/useCheckmarkStyles.js +2 -2
  177. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  178. package/lib/utils/useIsSubmenu.js +2 -2
  179. package/lib/utils/useIsSubmenu.js.map +1 -1
  180. package/lib/utils/useOnMenuEnter.js.map +1 -1
  181. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  182. package/lib-commonjs/MenuSplitGroup.js +10 -0
  183. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  184. package/lib-commonjs/components/Menu/Menu.js +3 -3
  185. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  186. package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
  187. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  188. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  189. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  190. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  191. package/lib-commonjs/components/Menu/useMenu.js +40 -33
  192. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  193. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  194. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  195. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  196. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  197. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  198. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  199. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  200. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  201. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +5 -4
  202. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  203. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  204. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +6 -3
  205. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  206. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  207. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  208. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  209. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  210. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  211. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  212. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  213. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  214. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +5 -4
  215. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  216. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  217. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +6 -3
  218. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  219. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  220. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  221. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  222. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  223. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  224. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  225. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  226. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  227. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  228. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  229. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  230. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +5 -4
  231. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  232. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  233. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +7 -4
  234. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  235. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  236. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  237. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  238. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  239. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -7
  240. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  241. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  242. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  243. package/lib-commonjs/components/MenuItem/renderMenuItem.js +11 -7
  244. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  245. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  246. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  247. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  248. package/lib-commonjs/components/MenuItem/useMenuItem.js +11 -16
  249. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  250. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  251. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +36 -31
  252. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  253. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  254. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  255. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  256. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  257. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +10 -7
  258. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  259. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  260. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  261. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  262. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  263. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  264. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  265. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  266. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  267. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  268. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  269. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +10 -7
  270. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  271. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  272. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  273. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  274. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  275. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  276. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  277. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  278. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  279. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  280. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  281. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  282. package/lib-commonjs/components/MenuList/index.js +0 -2
  283. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  284. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  285. package/lib-commonjs/components/MenuList/renderMenuList.js +5 -4
  286. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  287. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  288. package/lib-commonjs/components/MenuList/useMenuList.js +12 -9
  289. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  290. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  291. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  292. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  293. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  294. package/lib-commonjs/components/MenuList/useMenuListStyles.js +9 -8
  295. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  296. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  297. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  298. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  299. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  300. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +7 -5
  301. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  302. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  303. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +12 -9
  304. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  305. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  306. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +14 -9
  307. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  308. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  309. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  310. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  311. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  312. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  313. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  314. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  315. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  316. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  317. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  318. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  319. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  320. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  321. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  322. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  323. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  324. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  325. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  326. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  327. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +3 -2
  328. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  329. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  330. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  331. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  332. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  333. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  334. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +176 -7
  335. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  336. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  337. package/lib-commonjs/contexts/menuContext.js +3 -3
  338. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  339. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  340. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  341. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  342. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  343. package/lib-commonjs/contexts/menuListContext.js +3 -3
  344. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  345. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  346. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  347. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  348. package/lib-commonjs/index.d.ts +11 -10
  349. package/lib-commonjs/index.js +16 -14
  350. package/lib-commonjs/index.js.map +1 -1
  351. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  352. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  353. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  354. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  355. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  356. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  357. package/package.json +15 -17
  358. package/lib/common/isConformant.d.ts +0 -4
  359. package/lib/common/isConformant.js +0 -12
  360. package/lib/common/isConformant.js.map +0 -1
  361. package/lib/common/mockUseMenuContext.d.ts +0 -7
  362. package/lib/common/mockUseMenuContext.js +0 -29
  363. package/lib/common/mockUseMenuContext.js.map +0 -1
  364. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  365. package/lib/components/MenuTrigger/useTriggerElement.js +0 -165
  366. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  367. package/lib-commonjs/common/isConformant.d.ts +0 -4
  368. package/lib-commonjs/common/isConformant.js +0 -23
  369. package/lib-commonjs/common/isConformant.js.map +0 -1
  370. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  371. package/lib-commonjs/common/mockUseMenuContext.js +0 -39
  372. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
  373. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  374. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -180
  375. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -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":""}
@@ -1,15 +1,16 @@
1
- export * from './MenuItem';
2
- export * from './MenuList';
3
- export * from './MenuItemCheckbox';
4
- export * from './MenuItemRadio';
5
- export * from './MenuDivider';
6
- export * from './MenuGroupHeader';
7
- export * from './MenuGroup';
8
- export * from './selectable/index';
9
- export * from './MenuTrigger';
10
- export * from './Menu';
11
1
  export * from './contexts/menuContext';
12
2
  export * from './contexts/menuTriggerContext';
13
3
  export * from './contexts/menuGroupContext';
14
4
  export * from './contexts/menuListContext';
5
+ export * from './Menu';
6
+ export * from './MenuDivider';
7
+ export * from './MenuGroup';
8
+ export * from './MenuGroupHeader';
9
+ export * from './MenuItem';
10
+ export * from './MenuItemCheckbox';
11
+ export * from './MenuItemRadio';
12
+ export * from './MenuList';
15
13
  export * from './MenuPopover';
14
+ export * from './MenuSplitGroup';
15
+ export * from './MenuTrigger';
16
+ export * from './selectable/index';
@@ -6,33 +6,35 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./MenuItem"), exports);
9
+ tslib_1.__exportStar(require("./contexts/menuContext"), exports);
10
10
 
11
- tslib_1.__exportStar(require("./MenuList"), exports);
11
+ tslib_1.__exportStar(require("./contexts/menuTriggerContext"), exports);
12
12
 
13
- tslib_1.__exportStar(require("./MenuItemCheckbox"), exports);
13
+ tslib_1.__exportStar(require("./contexts/menuGroupContext"), exports);
14
14
 
15
- tslib_1.__exportStar(require("./MenuItemRadio"), exports);
15
+ tslib_1.__exportStar(require("./contexts/menuListContext"), exports);
16
16
 
17
- tslib_1.__exportStar(require("./MenuDivider"), exports);
17
+ tslib_1.__exportStar(require("./Menu"), exports);
18
18
 
19
- tslib_1.__exportStar(require("./MenuGroupHeader"), exports);
19
+ tslib_1.__exportStar(require("./MenuDivider"), exports);
20
20
 
21
21
  tslib_1.__exportStar(require("./MenuGroup"), exports);
22
22
 
23
- tslib_1.__exportStar(require("./selectable/index"), exports);
23
+ tslib_1.__exportStar(require("./MenuGroupHeader"), exports);
24
24
 
25
- tslib_1.__exportStar(require("./MenuTrigger"), exports);
25
+ tslib_1.__exportStar(require("./MenuItem"), exports);
26
26
 
27
- tslib_1.__exportStar(require("./Menu"), exports);
27
+ tslib_1.__exportStar(require("./MenuItemCheckbox"), exports);
28
28
 
29
- tslib_1.__exportStar(require("./contexts/menuContext"), exports);
29
+ tslib_1.__exportStar(require("./MenuItemRadio"), exports);
30
30
 
31
- tslib_1.__exportStar(require("./contexts/menuTriggerContext"), exports);
31
+ tslib_1.__exportStar(require("./MenuList"), exports);
32
32
 
33
- tslib_1.__exportStar(require("./contexts/menuGroupContext"), exports);
33
+ tslib_1.__exportStar(require("./MenuPopover"), exports);
34
34
 
35
- tslib_1.__exportStar(require("./contexts/menuListContext"), exports);
35
+ tslib_1.__exportStar(require("./MenuSplitGroup"), exports);
36
36
 
37
- tslib_1.__exportStar(require("./MenuPopover"), exports);
37
+ tslib_1.__exportStar(require("./MenuTrigger"), exports);
38
+
39
+ tslib_1.__exportStar(require("./selectable/index"), exports);
38
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,aAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA;;AAEA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,QAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,aAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AAEA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,8 +1,8 @@
1
1
  import type { MenuItemSelectableState } from './types';
2
- import type { MenuItemSlots } from '../components/MenuItem/MenuItem.types';
2
+ import type { MenuItemState } from '../components/MenuItem/MenuItem.types';
3
3
  /**
4
4
  * Applies styles to a checkmark slot for selectable menu items
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<MenuItemState, '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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,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,IAAtC,EAA4C,eAA5C,CAA1B;;AACA,QAAI,gBAAgB,IAAI,CAAC,QAAzB,EAAmC;AACjC,MAAA,QAAQ,CAAC,EAAD,CAAR;AACD;AACF,GAXgB,CAAjB;AAaA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB;AACA,QAAI,OAAO,IAAI,IAAf,EAAqB;AACnB;AACD;;AAUD,QAAI,CAAC,QAAL,EAAe;AACb,MAAA,OAAO,CAAC,gBAAR,CAAyB,OAAA,CAAA,gBAAzB,EAA2C,QAA3C;AACD;;AAED,WAAO,MAAK;AACV,MAAA,OAAO,CAAC,mBAAR,CAA4B,OAAA,CAAA,gBAA5B,EAA8C,QAA9C;AACD,KAFD;AAGD,GArBD,EAqBG,CAAC,QAAD,EAAW,OAAX,EAAoB,QAApB,CArBH;AAsBD,CAvCM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB;AAyCb;;;;AAIG;;AACI,MAAM,sBAAsB,GAAG,CAAC,EAAD,EAAkB,WAAlB,KAA6C;AACjF,EAAA,EAAE,CAAC,aAAH,CAAiB,IAAI,WAAJ,CAAgB,OAAA,CAAA,gBAAhB,EAAkC;AAAE,IAAA,OAAO,EAAE,IAAX;AAAiB,IAAA,MAAM,EAAE;AAAE,MAAA;AAAF;AAAzB,GAAlC,CAAjB;AACD,CAFM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-menu",
3
- "version": "0.0.0-nightlyfbae36b19b20211111.1",
3
+ "version": "0.0.0-nightlyfc5cfdc52420220215.1",
4
4
  "description": "Fluent UI menu component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "scripts": {
15
15
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
16
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-menu/src && yarn docs",
16
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-menu/src && yarn docs",
17
17
  "build": "just-scripts build",
18
18
  "bundle-size": "bundle-size measure",
19
19
  "clean": "just-scripts clean",
@@ -22,15 +22,14 @@
22
22
  "just": "just-scripts",
23
23
  "lint": "just-scripts lint",
24
24
  "start": "yarn storybook",
25
- "storybook": "start-storybook",
26
- "test": "jest"
25
+ "storybook": "node ../../scripts/storybook/runner",
26
+ "test": "jest --passWithNoTests",
27
+ "type-check": "tsc -b tsconfig.json"
27
28
  },
28
29
  "devDependencies": {
29
- "@fluentui/babel-make-styles": "0.0.0-nightlyfbae36b19b20211111.1",
30
30
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlyfbae36b19b20211111.1",
32
31
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlyfbae36b19b20211111.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlyfc5cfdc52420220215.1",
34
33
  "@fluentui/scripts": "^1.0.0",
35
34
  "@types/enzyme": "3.10.3",
36
35
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -44,15 +43,15 @@
44
43
  "react-test-renderer": "^16.3.0"
45
44
  },
46
45
  "dependencies": {
47
- "@fluentui/keyboard-keys": "0.0.0-nightlyfbae36b19b20211111.1",
48
- "@fluentui/react-context-selector": "0.0.0-nightlyfbae36b19b20211111.1",
49
- "@fluentui/react-icons": "^1.1.140",
50
- "@fluentui/react-make-styles": "0.0.0-nightlyfbae36b19b20211111.1",
51
- "@fluentui/react-portal": "0.0.0-nightlyfbae36b19b20211111.1",
52
- "@fluentui/react-positioning": "0.0.0-nightlyfbae36b19b20211111.1",
53
- "@fluentui/react-provider": "0.0.0-nightlyfbae36b19b20211111.1",
54
- "@fluentui/react-tabster": "0.0.0-nightlyfbae36b19b20211111.1",
55
- "@fluentui/react-utilities": "0.0.0-nightlyfbae36b19b20211111.1",
46
+ "@fluentui/keyboard-keys": "0.0.0-nightlyfc5cfdc52420220215.1",
47
+ "@fluentui/react-context-selector": "0.0.0-nightlyfc5cfdc52420220215.1",
48
+ "@fluentui/react-icons": "^2.0.159-beta.10",
49
+ "@griffel/react": "1.0.0",
50
+ "@fluentui/react-portal": "0.0.0-nightlyfc5cfdc52420220215.1",
51
+ "@fluentui/react-positioning": "0.0.0-nightlyfc5cfdc52420220215.1",
52
+ "@fluentui/react-shared-contexts": "0.0.0-nightlyfc5cfdc52420220215.1",
53
+ "@fluentui/react-tabster": "0.0.0-nightlyfc5cfdc52420220215.1",
54
+ "@fluentui/react-utilities": "0.0.0-nightlyfc5cfdc52420220215.1",
56
55
  "tslib": "^2.1.0"
57
56
  },
58
57
  "peerDependencies": {
@@ -62,7 +61,6 @@
62
61
  "react-dom": ">=16.8.0 <18.0.0"
63
62
  },
64
63
  "beachball": {
65
- "tag": "beta",
66
64
  "disallowedChangeTypes": [
67
65
  "major",
68
66
  "minor",
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,12 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
- export function isConformant(testInfo) {
4
- const defaultOptions = {
5
- asPropHandlesRef: true,
6
- componentPath: module.parent.filename.replace('.test', ''),
7
- skipAsPropTests: true,
8
- extraTests: makeStylesTests
9
- };
10
- baseIsConformant(defaultOptions, testInfo);
11
- }
12
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE;AAJ+C,GAA7D;AAOA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
@@ -1,7 +0,0 @@
1
- import type { MenuContextValue } from '../contexts/menuContext';
2
- /**
3
- * A test utility to mock the useMenuContext hook that relies on context selector
4
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
5
- * @param options Menu context values to set for testing
6
- */
7
- export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
@@ -1,29 +0,0 @@
1
- import { useMenuContext } from '../contexts/menuContext';
2
- /**
3
- * A test utility to mock the useMenuContext hook that relies on context selector
4
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
5
- * @param options Menu context values to set for testing
6
- */
7
-
8
- export const mockUseMenuContext = (options = {}) => {
9
- const mockContext = {
10
- open: false,
11
- setOpen: () => null,
12
- triggerRef: {
13
- current: null
14
- },
15
- menuPopoverRef: {
16
- current: null
17
- },
18
- openOnContext: false,
19
- openOnHover: false,
20
- isSubmenu: false,
21
- triggerId: 'id',
22
- ...options
23
- }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
-
25
- useMenuContext.mockImplementation(selector => {
26
- return selector(mockContext);
27
- });
28
- };
29
- //# sourceMappingURL=mockUseMenuContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":"AACA,SAAS,cAAT,QAA+B,yBAA/B;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAqC,EAAtC,KAA4C;AAC5E,QAAM,WAAW,GAAqB;AACpC,IAAA,IAAI,EAAE,KAD8B;AAEpC,IAAA,OAAO,EAAE,MAAM,IAFqB;AAGpC,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHuB;AAIpC,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJmB;AAKpC,IAAA,aAAa,EAAE,KALqB;AAMpC,IAAA,WAAW,EAAE,KANuB;AAOpC,IAAA,SAAS,EAAE,KAPyB;AAQpC,IAAA,SAAS,EAAE,IARyB;AASpC,OAAG;AATiC,GAAtC,CAD4E,CAY5E;;AACC,EAAA,cAA4B,CAAC,kBAA7B,CAAiD,QAAD,IAAiD;AAChG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
@@ -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;
@@ -1,165 +0,0 @@
1
- import * as React from 'react';
2
- import { ArrowRight, ArrowDown, ArrowLeft, Escape } from '@fluentui/keyboard-keys';
3
- import { applyTriggerPropsToChildren, onlyChild, shouldPreventDefaultOnKeyDown, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';
4
- import { useFocusFinders } from '@fluentui/react-tabster';
5
- import { useMenuContext } from '../../contexts/menuContext';
6
- import { useFluent } from '@fluentui/react-shared-contexts';
7
- import { useIsSubmenu } from '../../utils/useIsSubmenu';
8
-
9
- const noop = () => null;
10
- /**
11
- * Adds the necessary props to the trigger element
12
- */
13
-
14
-
15
- export const useTriggerElement = state => {
16
- var _a, _b;
17
-
18
- const triggerRef = useMenuContext(context => context.triggerRef);
19
- const menuPopoverRef = useMenuContext(context => context.menuPopoverRef);
20
- const setOpen = useMenuContext(context => context.setOpen);
21
- const open = useMenuContext(context => context.open);
22
- const triggerId = useMenuContext(context => context.triggerId);
23
- const openOnHover = useMenuContext(context => context.openOnHover);
24
- const openOnContext = useMenuContext(context => context.openOnContext);
25
- const isSubmenu = useIsSubmenu();
26
- const {
27
- findFirstFocusable
28
- } = useFocusFinders();
29
- const focusFirst = React.useCallback(() => {
30
- const firstFocusable = findFirstFocusable(menuPopoverRef.current);
31
- firstFocusable === null || firstFocusable === void 0 ? void 0 : firstFocusable.focus();
32
- }, [findFirstFocusable, menuPopoverRef]);
33
- const openedWithKeyboardRef = React.useRef(false);
34
- const hasMouseMoved = React.useRef(false);
35
- const {
36
- dir
37
- } = useFluent();
38
- const OpenArrowKey = dir === 'ltr' ? ArrowRight : ArrowLeft;
39
- const child = /*#__PURE__*/React.isValidElement(state.children) ? onlyChild(state.children) : undefined;
40
- const onContextMenu = useEventCallback(e => {
41
- var _a, _b;
42
-
43
- if (openOnContext) {
44
- e.preventDefault();
45
- setOpen(e, {
46
- open: true,
47
- keyboard: false
48
- });
49
- }
50
-
51
- (_b = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onContextMenu) === null || _b === void 0 ? void 0 : _b.call(_a, e);
52
- });
53
- const onClick = useEventCallback(e => {
54
- var _a, _b;
55
-
56
- if (!openOnContext) {
57
- setOpen(e, {
58
- open: !open,
59
- keyboard: openedWithKeyboardRef.current
60
- });
61
- openedWithKeyboardRef.current = false;
62
- }
63
-
64
- (_b = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
65
- });
66
- const onKeyDown = useEventCallback(e => {
67
- var _a, _b, _c;
68
-
69
- if (shouldPreventDefaultOnKeyDown(e)) {
70
- e.preventDefault();
71
- openedWithKeyboardRef.current = true;
72
- (_a = e.target) === null || _a === void 0 ? void 0 : _a.click();
73
- }
74
-
75
- const key = e.key;
76
-
77
- if (!openOnContext && (isSubmenu && key === OpenArrowKey || !isSubmenu && key === ArrowDown)) {
78
- setOpen(e, {
79
- open: true,
80
- keyboard: true
81
- });
82
- }
83
-
84
- if (key === Escape && !isSubmenu) {
85
- setOpen(e, {
86
- open: false,
87
- keyboard: true
88
- });
89
- } // if menu is already open, can't rely on effects to focus
90
-
91
-
92
- if (open && key === OpenArrowKey && isSubmenu) {
93
- focusFirst();
94
- }
95
-
96
- if (open && key === ArrowDown && !isSubmenu) {
97
- focusFirst();
98
- }
99
-
100
- (_c = (_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.onKeyDown) === null || _c === void 0 ? void 0 : _c.call(_b, e);
101
- });
102
- const onMouseEnter = useEventCallback(e => {
103
- var _a, _b;
104
-
105
- if (openOnHover && hasMouseMoved.current) {
106
- setOpen(e, {
107
- open: true,
108
- keyboard: false
109
- });
110
- }
111
-
112
- (_b = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onMouseEnter) === null || _b === void 0 ? void 0 : _b.call(_a, e);
113
- }); // Opening a menu when a mouse hasn't moved and just entering the trigger is a bad a11y experience
114
- // First time open the mouse using mousemove and then continue with mouseenter
115
- // Only use once to determine that the user is using the mouse since it is an expensive event to handle
116
-
117
- const onMouseMove = useEventCallback(e => {
118
- if (openOnHover && !hasMouseMoved.current) {
119
- setOpen(e, {
120
- open: true,
121
- keyboard: false
122
- });
123
- hasMouseMoved.current = true;
124
- }
125
- });
126
- const onMouseLeave = useEventCallback(e => {
127
- var _a, _b;
128
-
129
- if (openOnHover) {
130
- setOpen(e, {
131
- open: false,
132
- keyboard: false
133
- });
134
- }
135
-
136
- (_b = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onMouseLeave) === null || _b === void 0 ? void 0 : _b.call(_a, e);
137
- });
138
- const disabled = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.disabled;
139
- const triggerProps = {
140
- 'aria-haspopup': true,
141
- 'aria-expanded': open,
142
- id: ((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.id) || triggerId,
143
- ...(!disabled ? {
144
- onClick,
145
- onMouseEnter,
146
- onMouseLeave,
147
- onContextMenu,
148
- onKeyDown,
149
- onMouseMove
150
- } : // Spread disabled event handlers to implement contract and avoid specific disabled logic in handlers
151
- {
152
- onClick: noop,
153
- onMouseEnter: noop,
154
- onMouseLeave: noop,
155
- onContextMenu: noop,
156
- onKeyDown: noop,
157
- onMouseMove: noop
158
- })
159
- };
160
- state.children = applyTriggerPropsToChildren(state.children, { ...triggerProps,
161
- ref: useMergedRefs(typeof state.children !== 'function' && state.children.ref || null, triggerRef)
162
- });
163
- return state;
164
- };
165
- //# sourceMappingURL=useTriggerElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/useTriggerElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,UAAT,EAAqB,SAArB,EAAgC,SAAhC,EAA2C,MAA3C,QAAyD,yBAAzD;AACA,SACE,2BADF,EAEE,SAFF,EAGE,6BAHF,EAIE,gBAJF,EAKE,aALF,QAMO,2BANP;AAOA,SAAS,eAAT,QAAgC,yBAAhC;AACA,SAAS,cAAT,QAA+B,4BAA/B;AACA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SAAS,YAAT,QAA6B,0BAA7B;;AAGA,MAAM,IAAI,GAAG,MAAM,IAAnB;AAEA;;AAEG;;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA8C;;;AAC7E,QAAM,UAAU,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,UAApB,CAAjC;AACA,QAAM,cAAc,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,cAApB,CAArC;AACA,QAAM,OAAO,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,OAApB,CA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uE,UAAvE;AAFyC,GAAjB,CAA5C;AAKA,SAAO,KAAP;AACD,CAhIM","sourceRoot":""}
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isConformant = void 0;
7
-
8
- const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
-
10
- const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
-
12
- function isConformant(testInfo) {
13
- const defaultOptions = {
14
- asPropHandlesRef: true,
15
- componentPath: module.parent.filename.replace('.test', ''),
16
- skipAsPropTests: true,
17
- extraTests: react_conformance_make_styles_1.default
18
- };
19
- react_conformance_1.isConformant(defaultOptions, testInfo);
20
- }
21
-
22
- exports.isConformant = isConformant;
23
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAJ+C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
@@ -1,7 +0,0 @@
1
- import type { MenuContextValue } from '../contexts/menuContext';
2
- /**
3
- * A test utility to mock the useMenuContext hook that relies on context selector
4
- * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
5
- * @param options Menu context values to set for testing
6
- */
7
- export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;