@fluentui/react-menu 0.0.0-nightlyca6ef2bc8e20220105.1 → 0.0.0-nightlyd45ba4664620220211.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (336) hide show
  1. package/CHANGELOG.json +204 -33
  2. package/CHANGELOG.md +47 -16
  3. package/dist/react-menu.d.ts +73 -80
  4. package/lib/components/Menu/Menu.js +6 -6
  5. package/lib/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/Menu.types.d.ts +1 -1
  7. package/lib/components/Menu/renderMenu.d.ts +1 -1
  8. package/lib/components/Menu/renderMenu.js +1 -1
  9. package/lib/components/Menu/renderMenu.js.map +1 -1
  10. package/lib/components/Menu/useMenu.d.ts +2 -2
  11. package/lib/components/Menu/useMenu.js +6 -5
  12. package/lib/components/Menu/useMenu.js.map +1 -1
  13. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  14. package/lib/components/Menu/useMenuContextValues.js +1 -1
  15. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  17. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  18. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  19. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  20. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  21. package/lib/components/MenuDivider/renderMenuDivider.js +1 -1
  22. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  23. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  24. package/lib/components/MenuDivider/useMenuDivider.js +4 -1
  25. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  26. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  27. package/lib/components/MenuDivider/useMenuDividerStyles.js +3 -2
  28. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  29. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  30. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  31. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  32. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  33. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/renderMenuGroup.js +1 -1
  35. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  37. package/lib/components/MenuGroup/useMenuGroup.js +4 -1
  38. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  39. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  40. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  41. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  42. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  43. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  44. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  45. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  46. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  47. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  48. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  49. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  50. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +1 -1
  51. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  52. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +6 -3
  54. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +3 -2
  57. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  58. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  59. package/lib/components/MenuItem/MenuItem.js +7 -7
  60. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  61. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  62. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  63. package/lib/components/MenuItem/renderMenuItem.js +7 -8
  64. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  65. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  66. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  67. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  68. package/lib/components/MenuItem/useMenuItem.js +10 -15
  69. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  70. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  71. package/lib/components/MenuItem/useMenuItemStyles.js +12 -7
  72. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  73. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  74. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  75. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  76. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  77. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -7
  78. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  79. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  80. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  81. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  82. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  84. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  85. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  86. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  87. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  88. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  89. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +6 -7
  90. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  91. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  92. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  93. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  94. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  95. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  96. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  97. package/lib/components/MenuList/MenuList.d.ts +1 -1
  98. package/lib/components/MenuList/MenuList.js +9 -9
  99. package/lib/components/MenuList/MenuList.js.map +1 -1
  100. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  101. package/lib/components/MenuList/index.d.ts +1 -1
  102. package/lib/components/MenuList/index.js +0 -1
  103. package/lib/components/MenuList/index.js.map +1 -1
  104. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  105. package/lib/components/MenuList/renderMenuList.js +1 -1
  106. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  107. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  108. package/lib/components/MenuList/useMenuList.js +11 -8
  109. package/lib/components/MenuList/useMenuList.js.map +1 -1
  110. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  111. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  112. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  113. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  114. package/lib/components/MenuList/useMenuListStyles.js +2 -2
  115. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  116. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  117. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  119. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  120. package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
  121. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  122. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  123. package/lib/components/MenuPopover/useMenuPopover.js +11 -8
  124. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  125. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  126. package/lib/components/MenuPopover/useMenuPopoverStyles.js +3 -2
  127. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  128. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +6 -6
  129. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  130. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
  131. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  132. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +2 -3
  133. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  134. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +4 -8
  135. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +3 -8
  136. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  137. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  138. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +3 -2
  139. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  140. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  141. package/lib/components/MenuTrigger/MenuTrigger.js +5 -4
  142. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  143. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +5 -3
  144. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  145. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  146. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  147. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  148. package/lib/components/MenuTrigger/useMenuTrigger.js +167 -5
  149. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  150. package/lib/contexts/menuContext.d.ts +1 -1
  151. package/lib/contexts/menuContext.js +1 -1
  152. package/lib/contexts/menuContext.js.map +1 -1
  153. package/lib/contexts/menuGroupContext.d.ts +1 -1
  154. package/lib/contexts/menuGroupContext.js +1 -1
  155. package/lib/contexts/menuGroupContext.js.map +1 -1
  156. package/lib/contexts/menuListContext.d.ts +1 -1
  157. package/lib/contexts/menuListContext.js +1 -1
  158. package/lib/contexts/menuListContext.js.map +1 -1
  159. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  160. package/lib/contexts/menuTriggerContext.js +1 -1
  161. package/lib/contexts/menuTriggerContext.js.map +1 -1
  162. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  163. package/lib/selectable/useCheckmarkStyles.js +2 -2
  164. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  165. package/lib/utils/useIsSubmenu.js +2 -2
  166. package/lib/utils/useIsSubmenu.js.map +1 -1
  167. package/lib-commonjs/components/Menu/Menu.js +3 -3
  168. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  169. package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
  170. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  171. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  172. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  173. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  174. package/lib-commonjs/components/Menu/useMenu.js +7 -6
  175. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  176. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  177. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  178. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  179. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  180. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  181. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  182. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  183. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  184. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
  185. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  186. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  187. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +6 -3
  188. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  189. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  190. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  191. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  192. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  193. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  194. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  195. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  196. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  197. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
  198. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  199. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  200. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +6 -3
  201. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  202. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  203. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  204. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  205. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  206. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  207. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  208. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  209. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  210. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  211. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  212. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  213. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
  214. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  215. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  216. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +7 -4
  217. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  218. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  219. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  220. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  221. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  222. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
  223. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  224. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  225. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  226. package/lib-commonjs/components/MenuItem/renderMenuItem.js +9 -11
  227. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  228. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  229. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  230. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  231. package/lib-commonjs/components/MenuItem/useMenuItem.js +10 -15
  232. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  233. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  234. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +20 -14
  235. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  236. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  237. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  238. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  239. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  240. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +8 -10
  241. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  242. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  243. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  244. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  245. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  246. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  247. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  248. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  249. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  250. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  251. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  252. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +8 -10
  253. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  254. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  255. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  256. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  257. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  258. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  259. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  260. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  261. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  262. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  263. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  264. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  265. package/lib-commonjs/components/MenuList/index.js +0 -2
  266. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  267. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  268. package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
  269. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  270. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  271. package/lib-commonjs/components/MenuList/useMenuList.js +12 -9
  272. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  273. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  274. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  275. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  276. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  277. package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
  278. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  279. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  280. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  281. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  282. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  283. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
  284. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  285. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  286. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +12 -9
  287. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  288. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  289. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +8 -6
  290. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  291. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +3 -3
  292. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  293. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
  294. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  295. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +4 -6
  296. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  297. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +4 -8
  298. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +6 -11
  299. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  300. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  301. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +8 -6
  302. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  303. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  304. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +3 -2
  305. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  306. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +5 -3
  307. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  308. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  309. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  310. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  311. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +176 -7
  312. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  313. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  314. package/lib-commonjs/contexts/menuContext.js +3 -3
  315. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  316. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  317. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  318. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  319. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  320. package/lib-commonjs/contexts/menuListContext.js +3 -3
  321. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  322. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  323. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  324. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  325. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  326. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  327. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  328. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  329. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  330. package/package.json +13 -15
  331. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  332. package/lib/components/MenuTrigger/useTriggerElement.js +0 -166
  333. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  334. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  335. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -181
  336. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SACE,aADF,EAEE,gBAFF,EAGE,oBAHF,EAIE,qBAJF,QAKO,2BALP;AAMA,SAAS,uBAAT,EAAkC,eAAlC,QAAyD,yBAAzD;AACA,SAAS,mBAAT,QAAoC,kCAApC;AACA,SAAS,cAAT,QAA+B,4BAA/B;AACA,SAAS,WAAT,QAA4B,4BAA5B;AAGA;;AAEG;;AACH,OAAO,MAAM,WAAW,GAAG,CAAC,KAAD,EAAuB,GAAvB,KAAqE;AAC9F,QAAM,eAAe,GAAG,uBAAuB,CAAC;AAAE,IAAA,QAAQ,EAAE;AAAZ,GAAD,CAA/C;AACA,QAAM;AAAE,IAAA;AAAF,MAAuB,eAAe,EAA5C;AACA,QAAM,WAAW,GAAG,uBAAuB,EAA3C;AACA,QAAM,cAAc,GAAG,mBAAmB,CAAC,WAAD,CAA1C;;AAEA,MAAI,wBAAwB,CAAC,KAAD,EAAQ,WAAR,EAAqB,cAArB,CAA5B,EAAkE;AAChE;AACA;AACA,IAAA,OAAO,CAAC,IAAR,CAAa,+FAAb;AACD;;AAED,QAAM,QAAQ,GAAG,KAAK,CAAC,MAAN,CAA0B,IAA1B,CAAjB;AACA,QAAM,YAAY,GAA+B;AAC/C,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GAAG,EAAE,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MAAM,GAAX,IAAkB,YAAlB,EAAgC;AAC9B,QAAI,KAAK,CAAC,GAAD,CAAT,EAA4G;AAC1G,MAAA,sBAAsB,GAAG,IAAzB;AACD;AACF;;AAED,SAAO,cAAc,IAAI,sBAAzB;AACD,CAbD","sourceRoot":""}
@@ -1,2 +1,2 @@
1
1
  import type { MenuListContextValues, MenuListState } from './MenuList.types';
2
- export declare function useMenuListContextValues(state: MenuListState): MenuListContextValues;
2
+ export declare function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues;
@@ -1,4 +1,4 @@
1
- export function useMenuListContextValues(state) {
1
+ export function useMenuListContextValues_unstable(state) {
2
2
  const {
3
3
  onCheckedValueChange,
4
4
  checkedValues,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuListContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,wBAAV,CAAmC,KAAnC,EAAuD;AAC3D,QAAM;AACJ,IAAA,oBADI;AAEJ,IAAA,aAFI;AAGJ,IAAA,cAHI;AAIJ,IAAA,WAJI;AAKJ,IAAA,wBALI;AAMJ,IAAA,QANI;AAOJ,IAAA;AAPI,MAQF,KARJ,CAD2D,CAW3D;;AACA,QAAM,QAAQ,GAAG;AACf,IAAA,oBADe;AAEf,IAAA,aAFe;AAGf,IAAA,cAHe;AAIf,IAAA,WAJe;AAKf,IAAA,wBALe;AAMf,IAAA,QANe;AAOf,IAAA;AAPe,GAAjB;AAUA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/useMenuListContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,iCAAV,CAA4C,KAA5C,EAAgE;AACpE,QAAM;AACJ,IAAA,oBADI;AAEJ,IAAA,aAFI;AAGJ,IAAA,cAHI;AAIJ,IAAA,WAJI;AAKJ,IAAA,wBALI;AAMJ,IAAA,QANI;AAOJ,IAAA;AAPI,MAQF,KARJ,CADoE,CAWpE;;AACA,QAAM,QAAQ,GAAG;AACf,IAAA,oBADe;AAEf,IAAA,aAFe;AAGf,IAAA,cAHe;AAIf,IAAA,WAJe;AAKf,IAAA,wBALe;AAMf,IAAA,QANe;AAOf,IAAA;AAPe,GAAjB;AAUA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const menuListClassName = "fui-MenuList";
3
3
  /**
4
4
  * Apply styling to the Menu slots based on the state
5
5
  */
6
- export declare const useMenuListStyles: (state: MenuListState) => MenuListState;
6
+ export declare const useMenuListStyles_unstable: (state: MenuListState) => MenuListState;
@@ -1,4 +1,4 @@
1
- import { mergeClasses, __styles, shorthands } from '@fluentui/react-make-styles';
1
+ import { mergeClasses, __styles, shorthands } from '@griffel/react';
2
2
  export const menuListClassName = 'fui-MenuList';
3
3
 
4
4
  const useStyles = /*#__PURE__*/__styles({
@@ -16,7 +16,7 @@ const useStyles = /*#__PURE__*/__styles({
16
16
  */
17
17
 
18
18
 
19
- export const useMenuListStyles = state => {
19
+ export const useMenuListStyles_unstable = state => {
20
20
  const styles = useStyles();
21
21
  state.root.className = mergeClasses(menuListClassName, styles.root, state.root.className);
22
22
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,YAAmC,UAAnC,QAAqD,6BAArD;AAGA,OAAO,MAAM,iBAAiB,GAAG,cAA1B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAAwC;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,iBAAD,EAAoB,MAAM,CAAC,IAA3B,EAAiC,KAAK,CAAC,IAAN,CAAW,SAA5C,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,YAAmC,UAAnC,QAAqD,gBAArD;AAGA,OAAO,MAAM,iBAAiB,GAAG,cAA1B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAAwC;AAChF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,iBAAD,EAAoB,MAAM,CAAC,IAA3B,EAAiC,KAAK,CAAC,IAAN,CAAW,SAA5C,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuPopover } from './useMenuPopover';
3
- import { useMenuPopoverStyles } from './useMenuPopoverStyles';
4
- import { renderMenuPopover } from './renderMenuPopover';
2
+ import { useMenuPopover_unstable } from './useMenuPopover';
3
+ import { useMenuPopoverStyles_unstable } from './useMenuPopoverStyles';
4
+ import { renderMenuPopover_unstable } from './renderMenuPopover';
5
5
  /**
6
6
  * Popover intended to wrap `MenuList` and adds styling and interaction support specific to menus
7
7
  */
8
8
 
9
9
  export const MenuPopover = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useMenuPopover(props, ref);
11
- useMenuPopoverStyles(state);
12
- return renderMenuPopover(state);
10
+ const state = useMenuPopover_unstable(props, ref);
11
+ useMenuPopoverStyles_unstable(state);
12
+ return renderMenuPopover_unstable(state);
13
13
  });
14
14
  MenuPopover.displayName = 'MenuPopover';
15
15
  //# sourceMappingURL=MenuPopover.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,cAAc,CAAC,KAAD,EAAQ,GAAR,CAA5B;AAEA,EAAA,oBAAoB,CAAC,KAAD,CAApB;AACA,SAAO,iBAAiB,CAAC,KAAD,CAAxB;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuPopover/MenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,EAAQ,GAAR,CAArC;AAEA,EAAA,6BAA6B,CAAC,KAAD,CAA7B;AACA,SAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuPopoverSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  /**
6
6
  * MenuPopover Props
@@ -2,4 +2,4 @@ import { MenuPopoverState } from './MenuPopover.types';
2
2
  /**
3
3
  * Render the final JSX of MenuPopover
4
4
  */
5
- export declare const renderMenuPopover: (state: MenuPopoverState) => JSX.Element;
5
+ export declare const renderMenuPopover_unstable: (state: MenuPopoverState) => JSX.Element;
@@ -5,7 +5,7 @@ import { Portal } from '@fluentui/react-portal';
5
5
  * Render the final JSX of MenuPopover
6
6
  */
7
7
 
8
- export const renderMenuPopover = state => {
8
+ export const renderMenuPopover_unstable = state => {
9
9
  const {
10
10
  slots,
11
11
  slotProps
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/renderMenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,MAAT,QAAuB,wBAAvB;AAEA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;;AAEA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,wBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,KAAX,CAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO,IAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CAZM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuPopover/renderMenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,MAAT,QAAuB,wBAAvB;AAEA;;AAEG;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;;AAEA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,wBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,KAAX,CAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO,IAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CAZM","sourceRoot":""}
@@ -3,10 +3,10 @@ import { MenuPopoverProps, MenuPopoverState } from './MenuPopover.types';
3
3
  /**
4
4
  * Create the state required to render MenuPopover.
5
5
  *
6
- * The returned state can be modified with hooks such as useMenuPopoverStyles,
7
- * before being passed to renderMenuPopover.
6
+ * The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
7
+ * before being passed to renderMenuPopover_unstable.
8
8
  *
9
9
  * @param props - props from this instance of MenuPopover
10
10
  * @param ref - reference to root HTMLElement of MenuPopover
11
11
  */
12
- export declare const useMenuPopover: (props: MenuPopoverProps, ref: React.Ref<HTMLElement>) => MenuPopoverState;
12
+ export declare const useMenuPopover_unstable: (props: MenuPopoverProps, ref: React.Ref<HTMLElement>) => MenuPopoverState;
@@ -1,26 +1,26 @@
1
1
  import * as React from 'react';
2
2
  import { ArrowLeft, Tab, ArrowRight, Escape } from '@fluentui/keyboard-keys';
3
3
  import { getNativeElementProps, useEventCallback, useMergedRefs } from '@fluentui/react-utilities';
4
- import { useMenuContext } from '../../contexts/menuContext';
4
+ import { useMenuContext_unstable } from '../../contexts/menuContext';
5
5
  import { dispatchMenuEnterEvent } from '../../utils/index';
6
6
  import { useFluent } from '@fluentui/react-shared-contexts';
7
7
  import { useIsSubmenu } from '../../utils/useIsSubmenu';
8
8
  /**
9
9
  * Create the state required to render MenuPopover.
10
10
  *
11
- * The returned state can be modified with hooks such as useMenuPopoverStyles,
12
- * before being passed to renderMenuPopover.
11
+ * The returned state can be modified with hooks such as useMenuPopoverStyles_unstable,
12
+ * before being passed to renderMenuPopover_unstable.
13
13
  *
14
14
  * @param props - props from this instance of MenuPopover
15
15
  * @param ref - reference to root HTMLElement of MenuPopover
16
16
  */
17
17
 
18
- export const useMenuPopover = (props, ref) => {
18
+ export const useMenuPopover_unstable = (props, ref) => {
19
19
  var _a;
20
20
 
21
- const popoverRef = useMenuContext(context => context.menuPopoverRef);
22
- const setOpen = useMenuContext(context => context.setOpen);
23
- const openOnHover = useMenuContext(context => context.openOnHover);
21
+ const popoverRef = useMenuContext_unstable(context => context.menuPopoverRef);
22
+ const setOpen = useMenuContext_unstable(context => context.setOpen);
23
+ const openOnHover = useMenuContext_unstable(context => context.openOnHover);
24
24
  const isSubmenu = useIsSubmenu();
25
25
  const canDispatchCustomEventRef = React.useRef(true);
26
26
  const throttleDispatchTimerRef = React.useRef(0);
@@ -49,7 +49,7 @@ export const useMenuPopover = (props, ref) => {
49
49
  React.useEffect(() => {
50
50
  () => clearTimeout(throttleDispatchTimerRef.current);
51
51
  }, []);
52
- const inline = (_a = useMenuContext(context => context.inline)) !== null && _a !== void 0 ? _a : false;
52
+ const inline = (_a = useMenuContext_unstable(context => context.inline)) !== null && _a !== void 0 ? _a : false;
53
53
  const rootProps = getNativeElementProps('div', {
54
54
  role: 'presentation',
55
55
  ...props,
@@ -95,6 +95,9 @@ export const useMenuPopover = (props, ref) => {
95
95
  });
96
96
  return {
97
97
  inline,
98
+ components: {
99
+ root: 'div'
100
+ },
98
101
  root: rootProps
99
102
  };
100
103
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,SAAT,EAAoB,GAApB,EAAyB,UAAzB,EAAqC,MAArC,QAAmD,yBAAnD;AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,aAAlD,QAAuE,2BAAv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,CAAP;AACA,MAAA,CAAC,CAAC,cAAF;AACD;;AAED,IAAA,iBAAiB,KAAA,IAAjB,IAAA,iBAAiB,KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAA,iBAAiB,CAAG,CAAH,CAAjB;AACD,GAfqC,CAAtC;AAiBA,SAAO;AACL,IAAA,MADK;AAEL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KAFP;AAKL,IAAA,IAAI,EAAE;AALD,GAAP;AAOD,CA9EM","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const menuPopoverClassName = "fui-MenuPopover";
3
3
  /**
4
4
  * Apply styling to the Menu slots based on the state
5
5
  */
6
- export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopoverState;
6
+ export declare const useMenuPopoverStyles_unstable: (state: MenuPopoverState) => MenuPopoverState;
@@ -1,4 +1,5 @@
1
- import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
1
+ import { shorthands, mergeClasses, __styles } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
2
3
  export const menuPopoverClassName = 'fui-MenuPopover';
3
4
 
4
5
  const useStyles = /*#__PURE__*/__styles({
@@ -37,7 +38,7 @@ const useStyles = /*#__PURE__*/__styles({
37
38
  */
38
39
 
39
40
 
40
- export const useMenuPopoverStyles = state => {
41
+ export const useMenuPopoverStyles_unstable = state => {
41
42
  const styles = useStyles();
42
43
  state.root.className = mergeClasses(menuPopoverClassName, styles.root, state.root.className);
43
44
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAaA;;AAEG;;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA8C;AAChF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAaA;;AAEG;;;AACH,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA8C;AACzF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuSplitGroup } from './useMenuSplitGroup';
3
- import { renderMenuSplitGroup } from './renderMenuSplitGroup';
4
- import { useMenuSplitGroupStyles } from './useMenuSplitGroupStyles';
2
+ import { useMenuSplitGroup_unstable } from './useMenuSplitGroup';
3
+ import { renderMenuSplitGroup_unstable } from './renderMenuSplitGroup';
4
+ import { useMenuSplitGroupStyles_unstable } from './useMenuSplitGroupStyles';
5
5
  /**
6
6
  * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
7
7
  */
8
8
 
9
9
  export const MenuSplitGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useMenuSplitGroup(props, ref);
11
- useMenuSplitGroupStyles(state);
12
- return renderMenuSplitGroup(state);
10
+ const state = useMenuSplitGroup_unstable(props, ref);
11
+ useMenuSplitGroupStyles_unstable(state);
12
+ return renderMenuSplitGroup_unstable(state);
13
13
  });
14
14
  MenuSplitGroup.displayName = 'MenuSplitGroup';
15
15
  //# sourceMappingURL=MenuSplitGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuSplitGroup/MenuSplitGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AACA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/MenuSplitGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,gCAAT,QAAiD,2BAAjD;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,EAAQ,GAAR,CAAxC;AAEA,EAAA,gCAAgC,CAAC,KAAD,CAAhC;AACA,SAAO,6BAA6B,CAAC,KAAD,CAApC;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -1,8 +1,8 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuSplitGroupSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
- export declare type MenuSplitGroupCommons = {};
5
+ declare type MenuSplitGroupCommons = {};
6
6
  /**
7
7
  * MenuSplitGroup Props
8
8
  */
@@ -11,3 +11,4 @@ export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> &
11
11
  * State used in rendering MenuSplitGroup
12
12
  */
13
13
  export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
14
+ export {};
@@ -2,4 +2,4 @@ import type { MenuSplitGroupState } from './MenuSplitGroup.types';
2
2
  /**
3
3
  * Render the final JSX of MenuSplitGroup
4
4
  */
5
- export declare const renderMenuSplitGroup: (state: MenuSplitGroupState) => JSX.Element;
5
+ export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
@@ -1,15 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { getSlots } from '@fluentui/react-utilities';
3
- import { menuSplitGroupShorthandProps } from './useMenuSplitGroup';
4
3
  /**
5
4
  * Render the final JSX of MenuSplitGroup
6
5
  */
7
6
 
8
- export const renderMenuSplitGroup = state => {
7
+ export const renderMenuSplitGroup_unstable = state => {
9
8
  const {
10
9
  slots,
11
10
  slotProps
12
- } = getSlots(state, menuSplitGroupShorthandProps);
11
+ } = getSlots(state);
13
12
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
13
  });
15
14
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuSplitGroup/renderMenuSplitGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,4BAAT,QAA6C,qBAA7C;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,4BAA7B,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/renderMenuSplitGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA+B;AAC1E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -1,16 +1,12 @@
1
1
  import * as React from 'react';
2
- import type { MenuSplitGroupProps, MenuSplitGroupSlots, MenuSplitGroupState } from './MenuSplitGroup.types';
3
- /**
4
- * Array of all shorthand properties listed in MenuSplitGroupSlots
5
- */
6
- export declare const menuSplitGroupShorthandProps: (keyof MenuSplitGroupSlots)[];
2
+ import type { MenuSplitGroupProps, MenuSplitGroupState } from './MenuSplitGroup.types';
7
3
  /**
8
4
  * Create the state required to render MenuSplitGroup.
9
5
  *
10
- * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
11
- * before being passed to renderMenuSplitGroup.
6
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
7
+ * before being passed to renderMenuSplitGroup_unstable.
12
8
  *
13
9
  * @param props - props from this instance of MenuSplitGroup
14
10
  * @param ref - reference to root HTMLElement of MenuSplitGroup
15
11
  */
16
- export declare const useMenuSplitGroup: (props: MenuSplitGroupProps, ref: React.Ref<HTMLElement>) => MenuSplitGroupState;
12
+ export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React.Ref<HTMLElement>) => MenuSplitGroupState;
@@ -3,22 +3,17 @@ import { getNativeElementProps, getRTLSafeKey, useMergedRefs } from '@fluentui/r
3
3
  import { useFocusFinders } from '@fluentui/react-tabster';
4
4
  import { useFluent } from '@fluentui/react-shared-contexts';
5
5
  import { ArrowRight, ArrowLeft } from '@fluentui/keyboard-keys';
6
- /**
7
- * Array of all shorthand properties listed in MenuSplitGroupSlots
8
- */
9
-
10
- export const menuSplitGroupShorthandProps = ['root'];
11
6
  /**
12
7
  * Create the state required to render MenuSplitGroup.
13
8
  *
14
- * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
15
- * before being passed to renderMenuSplitGroup.
9
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
10
+ * before being passed to renderMenuSplitGroup_unstable.
16
11
  *
17
12
  * @param props - props from this instance of MenuSplitGroup
18
13
  * @param ref - reference to root HTMLElement of MenuSplitGroup
19
14
  */
20
15
 
21
- export const useMenuSplitGroup = (props, ref) => {
16
+ export const useMenuSplitGroup_unstable = (props, ref) => {
22
17
  const innerRef = React.useRef();
23
18
  const {
24
19
  dir,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroup.ts"],"names":[],"mappings":"AA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GApBe,EAqBhB,CAAC,iBAAD,EAAoB,iBAApB,EAAuC,cAAvC,EAAuD,YAAvD,EAAqE,YAArE,CArBgB,CAAlB;AAwBA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,IAAI,EAAE,OAD2B;AAEjC,MAAA,GAAG,EAAE,aAAa,CAAC,GAAD,EAAM,QAAN,CAFe;AAGjC,MAAA,SAHiC;AAIjC,SAAG;AAJ8B,KAAR;AAJtB,GAAP;AAWD,CA/CM","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
3
3
  /**
4
4
  * Apply styling to the MenuSplitGroup slots based on the state
5
5
  */
6
- export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => MenuSplitGroupState;
6
+ export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
@@ -1,4 +1,5 @@
1
- import { __styles, mergeClasses } from '@fluentui/react-make-styles';
1
+ import { __styles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
2
3
  import { menuItemClassName } from '../MenuItem/useMenuItemStyles';
3
4
  export const menuSplitGroupClassName = 'fui-MenuSplitGroup';
4
5
  /**
@@ -26,7 +27,7 @@ const useStyles = /*#__PURE__*/__styles({
26
27
  */
27
28
 
28
29
 
29
- export const useMenuSplitGroupStyles = state => {
30
+ export const useMenuSplitGroupStyles_unstable = state => {
30
31
  const styles = useStyles();
31
32
  state.root.className = mergeClasses(menuSplitGroupClassName, styles.root, state.root.className);
32
33
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroupStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AACA,SAAS,iBAAT,QAAkC,+BAAlC;AAGA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAqBA;;AAEG;;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAoD;AACzF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,uBAAD,EAA0B,MAAM,CAAC,IAAjC,EAAuC,KAAK,CAAC,IAAN,CAAW,SAAlD,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroupStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,gBAAzC;AACA,SAAS,MAAT,QAAuB,uBAAvB;AACA,SAAS,iBAAT,QAAkC,+BAAlC;AAGA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAqBA;;AAEG;;;AACH,OAAO,MAAM,gCAAgC,GAAI,KAAD,IAAoD;AAClG,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,uBAAD,EAA0B,MAAM,CAAC,IAAjC,EAAuC,KAAK,CAAC,IAAN,CAAW,SAAlD,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import type { MenuTriggerProps } from './MenuTrigger.types';
3
+ import type { FluentTriggerComponent } from '@fluentui/react-utilities';
3
4
  /**
4
5
  * Wraps a trigger element as an only child
5
6
  * and adds the necessary event handling to open a popup menu
6
7
  */
7
- export declare const MenuTrigger: React.FC<MenuTriggerProps>;
8
+ export declare const MenuTrigger: React.FC<MenuTriggerProps> & FluentTriggerComponent;
@@ -1,13 +1,14 @@
1
- import { useMenuTrigger } from './useMenuTrigger';
2
- import { renderMenuTrigger } from './renderMenuTrigger';
1
+ import { useMenuTrigger_unstable } from './useMenuTrigger';
2
+ import { renderMenuTrigger_unstable } from './renderMenuTrigger';
3
3
  /**
4
4
  * Wraps a trigger element as an only child
5
5
  * and adds the necessary event handling to open a popup menu
6
6
  */
7
7
 
8
8
  export const MenuTrigger = props => {
9
- const state = useMenuTrigger(props);
10
- return renderMenuTrigger(state);
9
+ const state = useMenuTrigger_unstable(props);
10
+ return renderMenuTrigger_unstable(state);
11
11
  };
12
12
  MenuTrigger.displayName = 'MenuTrigger';
13
+ MenuTrigger.isFluentTriggerComponent = true;
13
14
  //# sourceMappingURL=MenuTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/MenuTrigger.tsx"],"names":[],"mappings":"AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AAGA;;;AAGG;;AACH,OAAO,MAAM,WAAW,GAA+B,KAAK,IAAG;AAC7D,QAAM,KAAK,GAAG,cAAc,CAAC,KAAD,CAA5B;AAEA,SAAO,iBAAiB,CAAC,KAAD,CAAxB;AACD,CAJM;AAMP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuTrigger/MenuTrigger.tsx"],"names":[],"mappings":"AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AAIA;;;AAGG;;AACH,OAAO,MAAM,WAAW,GAAwD,KAAK,IAAG;AACtF,QAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,CAArC;AAEA,SAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CAJM;AAMP,WAAW,CAAC,WAAZ,GAA0B,aAA1B;AACA,WAAW,CAAC,wBAAZ,GAAuC,IAAvC","sourceRoot":""}
@@ -5,13 +5,15 @@ export declare type MenuTriggerProps = {
5
5
  */
6
6
  children: (React.ReactElement & {
7
7
  ref?: React.Ref<unknown>;
8
- }) | ((props: MenuTriggerChildProps) => React.ReactNode);
8
+ }) | ((props: MenuTriggerChildProps) => React.ReactElement | null);
9
9
  };
10
10
  /**
11
11
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
12
12
  */
13
- export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
13
+ export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
14
14
  ref?: React.Ref<never>;
15
15
  'aria-expanded': boolean | undefined;
16
16
  };
17
- export declare type MenuTriggerState = MenuTriggerProps;
17
+ export declare type MenuTriggerState = {
18
+ children: React.ReactElement | null;
19
+ };
@@ -4,4 +4,4 @@ import type { MenuTriggerState } from './MenuTrigger.types';
4
4
  *
5
5
  * Only renders children
6
6
  */
7
- export declare const renderMenuTrigger: (state: MenuTriggerState) => JSX.Element;
7
+ export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
@@ -6,7 +6,7 @@ import { MenuTriggerContextProvider } from '../../contexts/menuTriggerContext';
6
6
  * Only renders children
7
7
  */
8
8
 
9
- export const renderMenuTrigger = state => {
9
+ export const renderMenuTrigger_unstable = state => {
10
10
  return /*#__PURE__*/React.createElement(MenuTriggerContextProvider, {
11
11
  value: true
12
12
  }, state.children);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/renderMenuTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,0BAAT,QAA2C,mCAA3C;AAGA;;;;AAIG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,sBAAO,KAAA,CAAA,aAAA,CAAC,0BAAD,EAA2B;AAAC,IAAA,KAAK,EAAE;AAAR,GAA3B,EAA0C,KAAK,CAAC,QAAhD,CAAP;AACD,CAFM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuTrigger/renderMenuTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,0BAAT,QAA2C,mCAA3C;AAGA;;;;AAIG;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,sBAAO,KAAA,CAAA,aAAA,CAAC,0BAAD,EAA2B;AAAC,IAAA,KAAK,EAAE;AAAR,GAA3B,EAA0C,KAAK,CAAC,QAAhD,CAAP;AACD,CAFM","sourceRoot":""}
@@ -1,8 +1,8 @@
1
- import type { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
1
+ import { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
2
2
  /**
3
3
  * Create the state required to render MenuTrigger.
4
4
  * Clones the only child component and adds necessary event handling behaviours to open a popup menu
5
5
  *
6
6
  * @param props - props from this instance of MenuTrigger
7
7
  */
8
- export declare const useMenuTrigger: (props: MenuTriggerProps) => MenuTriggerState;
8
+ export declare const useMenuTrigger_unstable: (props: MenuTriggerProps) => MenuTriggerState;