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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. package/CHANGELOG.json +56 -38
  2. package/CHANGELOG.md +18 -16
  3. package/dist/react-menu.d.ts +69 -67
  4. package/lib/components/Menu/Menu.js +6 -6
  5. package/lib/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/renderMenu.d.ts +1 -1
  7. package/lib/components/Menu/renderMenu.js +1 -1
  8. package/lib/components/Menu/renderMenu.js.map +1 -1
  9. package/lib/components/Menu/useMenu.d.ts +2 -2
  10. package/lib/components/Menu/useMenu.js +4 -4
  11. package/lib/components/Menu/useMenu.js.map +1 -1
  12. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  13. package/lib/components/Menu/useMenuContextValues.js +1 -1
  14. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  15. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  17. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  18. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  19. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  20. package/lib/components/MenuDivider/renderMenuDivider.js +1 -1
  21. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  22. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  23. package/lib/components/MenuDivider/useMenuDivider.js +1 -1
  24. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  25. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  26. package/lib/components/MenuDivider/useMenuDividerStyles.js +2 -2
  27. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  28. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  29. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  30. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  31. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  32. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  33. package/lib/components/MenuGroup/renderMenuGroup.js +1 -1
  34. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  35. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  36. package/lib/components/MenuGroup/useMenuGroup.js +1 -1
  37. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  38. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  39. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  40. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  41. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  42. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  43. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  44. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  45. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  46. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  47. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  48. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  49. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +1 -1
  50. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  51. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  52. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +3 -3
  53. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  54. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  55. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +2 -2
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  57. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  58. package/lib/components/MenuItem/MenuItem.js +7 -7
  59. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  60. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  61. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  62. package/lib/components/MenuItem/renderMenuItem.js +1 -1
  63. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  64. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  65. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  66. package/lib/components/MenuItem/useMenuItem.d.ts +1 -1
  67. package/lib/components/MenuItem/useMenuItem.js +9 -9
  68. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  69. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  70. package/lib/components/MenuItem/useMenuItemStyles.js +4 -4
  71. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  72. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  73. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  74. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  75. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  76. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +1 -1
  77. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  78. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  79. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  80. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  81. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  82. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  84. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  85. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  86. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  87. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  88. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +1 -1
  89. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  90. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  91. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  92. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  93. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  94. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  95. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  96. package/lib/components/MenuList/MenuList.d.ts +1 -1
  97. package/lib/components/MenuList/MenuList.js +9 -9
  98. package/lib/components/MenuList/MenuList.js.map +1 -1
  99. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  100. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  101. package/lib/components/MenuList/renderMenuList.js +1 -1
  102. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  103. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  104. package/lib/components/MenuList/useMenuList.js +8 -8
  105. package/lib/components/MenuList/useMenuList.js.map +1 -1
  106. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  107. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  108. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  109. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  110. package/lib/components/MenuList/useMenuListStyles.js +2 -2
  111. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  112. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  113. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  114. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  115. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  116. package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
  117. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  119. package/lib/components/MenuPopover/useMenuPopover.js +8 -8
  120. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  121. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  122. package/lib/components/MenuPopover/useMenuPopoverStyles.js +2 -2
  123. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  124. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +6 -6
  125. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  126. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +2 -2
  127. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  128. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +1 -1
  129. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  130. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  131. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +3 -3
  132. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  133. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  134. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +2 -2
  135. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  136. package/lib/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  137. package/lib/components/MenuTrigger/MenuTrigger.js +7 -6
  138. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  139. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  140. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  141. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  142. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  143. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  144. package/lib/components/MenuTrigger/useMenuTrigger.js +177 -5
  145. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  146. package/lib/contexts/menuContext.d.ts +1 -1
  147. package/lib/contexts/menuContext.js +1 -1
  148. package/lib/contexts/menuContext.js.map +1 -1
  149. package/lib/contexts/menuGroupContext.d.ts +1 -1
  150. package/lib/contexts/menuGroupContext.js +1 -1
  151. package/lib/contexts/menuGroupContext.js.map +1 -1
  152. package/lib/contexts/menuListContext.d.ts +1 -1
  153. package/lib/contexts/menuListContext.js +1 -1
  154. package/lib/contexts/menuListContext.js.map +1 -1
  155. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  156. package/lib/contexts/menuTriggerContext.js +1 -1
  157. package/lib/contexts/menuTriggerContext.js.map +1 -1
  158. package/lib/selectable/useCheckmarkStyles.d.ts +1 -1
  159. package/lib/selectable/useCheckmarkStyles.js +2 -2
  160. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  161. package/lib/utils/useIsSubmenu.js +2 -2
  162. package/lib/utils/useIsSubmenu.js.map +1 -1
  163. package/lib-commonjs/components/Menu/Menu.js +3 -3
  164. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  165. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  166. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  167. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  168. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  169. package/lib-commonjs/components/Menu/useMenu.js +5 -5
  170. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  171. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  172. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  173. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  174. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  175. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  176. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  177. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  178. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  179. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
  180. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  181. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  182. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +3 -3
  183. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  184. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  185. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +6 -6
  186. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  187. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  188. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  189. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  190. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  191. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  192. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
  193. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  194. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  195. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +3 -3
  196. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  197. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  198. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  199. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  200. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  201. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  202. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  203. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  204. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  205. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  206. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  207. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  208. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
  209. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  210. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  211. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +4 -4
  212. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  213. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  214. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +6 -6
  215. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  216. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  217. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
  218. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  219. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  220. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  221. package/lib-commonjs/components/MenuItem/renderMenuItem.js +3 -3
  222. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  223. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  224. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  225. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +1 -1
  226. package/lib-commonjs/components/MenuItem/useMenuItem.js +8 -8
  227. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  228. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  229. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +11 -11
  230. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  231. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  232. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  233. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  234. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  235. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +3 -3
  236. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  237. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  238. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  239. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  240. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  241. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  242. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  243. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  244. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  245. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  246. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  247. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +3 -3
  248. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  249. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  250. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  251. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  252. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  253. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  254. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  255. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  256. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  257. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  258. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  259. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  260. package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
  261. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  262. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  263. package/lib-commonjs/components/MenuList/useMenuList.js +9 -9
  264. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  265. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  266. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  267. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  268. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  269. package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
  270. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  271. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  272. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  273. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  274. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  275. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
  276. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  277. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  278. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +9 -9
  279. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  280. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  281. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +6 -6
  282. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  283. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +3 -3
  284. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  285. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +2 -2
  286. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +1 -1
  287. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +3 -3
  288. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  289. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +3 -3
  290. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +5 -5
  291. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  292. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +1 -1
  293. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +6 -6
  294. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  295. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  296. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -6
  297. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  298. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  299. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  300. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  301. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  302. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  303. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +186 -7
  304. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  305. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  306. package/lib-commonjs/contexts/menuContext.js +3 -3
  307. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  308. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  309. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  310. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  311. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  312. package/lib-commonjs/contexts/menuListContext.js +3 -3
  313. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  314. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  315. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  316. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  317. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +1 -1
  318. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  319. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  320. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  321. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  322. package/package.json +10 -12
  323. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  324. package/lib/components/MenuTrigger/useTriggerElement.js +0 -166
  325. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  326. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  327. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -181
  328. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -1,4 +1,11 @@
1
- import { useTriggerElement } from './useTriggerElement';
1
+ import * as React from 'react';
2
+ import { useMenuContext_unstable } from '../../contexts/menuContext';
3
+ import { useIsSubmenu } from '../../utils/useIsSubmenu';
4
+ import { useFocusFinders } from '@fluentui/react-tabster';
5
+ import { useFluent } from '@fluentui/react-shared-contexts';
6
+ import { ArrowRight, ArrowLeft, Escape, ArrowDown } from '@fluentui/keyboard-keys';
7
+ import { onlyChild, useMergedRefs, useTriggerElement } from '@fluentui/react-utilities';
8
+ import { shouldPreventDefaultOnKeyDown } from '@fluentui/react-utilities';
2
9
  /**
3
10
  * Create the state required to render MenuTrigger.
4
11
  * Clones the only child component and adds necessary event handling behaviours to open a popup menu
@@ -6,10 +13,175 @@ import { useTriggerElement } from './useTriggerElement';
6
13
  * @param props - props from this instance of MenuTrigger
7
14
  */
8
15
 
9
- export const useMenuTrigger = props => {
10
- const state = { ...props
11
- }; // TODO just move the contents of this hook here
16
+ export const useMenuTrigger_unstable = (props, ref) => {
17
+ var _a;
12
18
 
13
- return useTriggerElement(state);
19
+ const {
20
+ children,
21
+ ...rest
22
+ } = props;
23
+ const triggerRef = useMenuContext_unstable(context => context.triggerRef);
24
+ const menuPopoverRef = useMenuContext_unstable(context => context.menuPopoverRef);
25
+ const setOpen = useMenuContext_unstable(context => context.setOpen);
26
+ const open = useMenuContext_unstable(context => context.open);
27
+ const triggerId = useMenuContext_unstable(context => context.triggerId);
28
+ const openOnHover = useMenuContext_unstable(context => context.openOnHover);
29
+ const openOnContext = useMenuContext_unstable(context => context.openOnContext);
30
+ const isSubmenu = useIsSubmenu();
31
+ const {
32
+ findFirstFocusable
33
+ } = useFocusFinders();
34
+ const focusFirst = React.useCallback(() => {
35
+ const firstFocusable = findFirstFocusable(menuPopoverRef.current);
36
+ firstFocusable === null || firstFocusable === void 0 ? void 0 : firstFocusable.focus();
37
+ }, [findFirstFocusable, menuPopoverRef]);
38
+ const openedWithKeyboardRef = React.useRef(false);
39
+ const hasMouseMoved = React.useRef(false);
40
+ const {
41
+ dir
42
+ } = useFluent();
43
+ const OpenArrowKey = dir === 'ltr' ? ArrowRight : ArrowLeft;
44
+ const child = /*#__PURE__*/React.isValidElement(children) ? onlyChild(children) : undefined;
45
+
46
+ const onContextMenu = e => {
47
+ if (isTargetDisabled(e)) {
48
+ return;
49
+ }
50
+
51
+ if (openOnContext) {
52
+ e.preventDefault();
53
+ setOpen(e, {
54
+ open: true,
55
+ keyboard: false
56
+ });
57
+ }
58
+ };
59
+
60
+ const onClick = e => {
61
+ if (isTargetDisabled(e)) {
62
+ return;
63
+ }
64
+
65
+ if (!openOnContext) {
66
+ setOpen(e, {
67
+ open: !open,
68
+ keyboard: openedWithKeyboardRef.current
69
+ });
70
+ openedWithKeyboardRef.current = false;
71
+ }
72
+ };
73
+
74
+ const onKeyDown = e => {
75
+ var _a;
76
+
77
+ if (isTargetDisabled(e)) {
78
+ return;
79
+ }
80
+
81
+ if (shouldPreventDefaultOnKeyDown(e)) {
82
+ e.preventDefault();
83
+ openedWithKeyboardRef.current = true;
84
+ (_a = e.target) === null || _a === void 0 ? void 0 : _a.click();
85
+ }
86
+
87
+ const key = e.key;
88
+
89
+ if (!openOnContext && (isSubmenu && key === OpenArrowKey || !isSubmenu && key === ArrowDown)) {
90
+ setOpen(e, {
91
+ open: true,
92
+ keyboard: true
93
+ });
94
+ }
95
+
96
+ if (key === Escape && !isSubmenu) {
97
+ setOpen(e, {
98
+ open: false,
99
+ keyboard: true
100
+ });
101
+ } // if menu is already open, can't rely on effects to focus
102
+
103
+
104
+ if (open && key === OpenArrowKey && isSubmenu) {
105
+ focusFirst();
106
+ }
107
+ };
108
+
109
+ const onMouseEnter = e => {
110
+ if (isTargetDisabled(e)) {
111
+ return;
112
+ }
113
+
114
+ if (openOnHover && hasMouseMoved.current) {
115
+ setOpen(e, {
116
+ open: true,
117
+ keyboard: false
118
+ });
119
+ }
120
+ }; // Opening a menu when a mouse hasn't moved and just entering the trigger is a bad a11y experience
121
+ // First time open the mouse using mousemove and then continue with mouseenter
122
+ // Only use once to determine that the user is using the mouse since it is an expensive event to handle
123
+
124
+
125
+ const onMouseMove = e => {
126
+ if (isTargetDisabled(e)) {
127
+ return;
128
+ }
129
+
130
+ if (openOnHover && !hasMouseMoved.current) {
131
+ setOpen(e, {
132
+ open: true,
133
+ keyboard: false
134
+ });
135
+ hasMouseMoved.current = true;
136
+ }
137
+ };
138
+
139
+ const onMouseLeave = e => {
140
+ if (isTargetDisabled(e)) {
141
+ return;
142
+ }
143
+
144
+ if (openOnHover) {
145
+ setOpen(e, {
146
+ open: false,
147
+ keyboard: false
148
+ });
149
+ }
150
+ };
151
+
152
+ const overrideProps = {
153
+ 'aria-haspopup': 'menu',
154
+ 'aria-expanded': open,
155
+ id: ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.id) || triggerId,
156
+ onClick,
157
+ onMouseEnter,
158
+ onMouseLeave,
159
+ onKeyDown,
160
+ onContextMenu,
161
+ onMouseMove
162
+ };
163
+
164
+ if (!open && !isSubmenu) {
165
+ overrideProps['aria-expanded'] = undefined;
166
+ }
167
+
168
+ return {
169
+ children: useTriggerElement({
170
+ children,
171
+ ref: useMergedRefs(triggerRef, ref),
172
+ outerProps: rest,
173
+ overrideProps
174
+ })
175
+ };
176
+ };
177
+
178
+ const isTargetDisabled = e => {
179
+ const isDisabled = el => el.hasAttribute('disabled') || el.hasAttribute('aria-disabled') && el.getAttribute('aria-disabled') === 'true';
180
+
181
+ if (e.target instanceof HTMLElement && isDisabled(e.target)) {
182
+ return true;
183
+ }
184
+
185
+ return e.currentTarget instanceof HTMLElement && isDisabled(e.currentTarget);
14
186
  };
15
187
  //# sourceMappingURL=useMenuTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/useMenuTrigger.ts"],"names":[],"mappings":"AAAA,SAAS,iBAAT,QAAkC,qBAAlC;AAGA;;;;;AA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AACD;;AAED,SAAO;AACL,IAAA,QAAQ,EAAE,iBAAiB,CAAC;AAC1B,MAAA,QAD0B;AAE1B,MAAA,GAAG,EAAE,aAAa,CAAC,UAAD,EAAa,GAAb,CAFQ;AAG1B,MAAA,UAAU,EAAE,IAHc;AAI1B,MAAA;AAJ0B,KAAD;AADtB,GAAP;AAQD,CAnIM;;AAqIP,MAAM,gBAAgB,GAAI,CAAD,IAAoC;AAC3D,QAAM,UAAU,GAAI,EAAD,IACjB,EAAE,CAAC,YAAH,CAAgB,UAAhB,KAAgC,EAAE,CAAC,YAAH,CAAgB,eAAhB,KAAoC,EAAE,CAAC,YAAH,CAAgB,eAAhB,MAAqC,MAD3G;;AAEA,MAAI,CAAC,CAAC,MAAF,YAAoB,WAApB,IAAmC,UAAU,CAAC,CAAC,CAAC,MAAH,CAAjD,EAA6D;AAC3D,WAAO,IAAP;AACD;;AAED,SAAO,CAAC,CAAC,aAAF,YAA2B,WAA3B,IAA0C,UAAU,CAAC,CAAC,CAAC,aAAH,CAA3D;AACD,CARD","sourceRoot":""}
@@ -13,4 +13,4 @@ export declare type MenuContextValue = MenuListProps & Pick<MenuState, 'openOnHo
13
13
  triggerId: string;
14
14
  };
15
15
  export declare const MenuProvider: React.Provider<MenuContextValue> & React.FC<React.ProviderProps<MenuContextValue>>;
16
- export declare const useMenuContext: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
16
+ export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
@@ -19,5 +19,5 @@ export const MenuContext = /*#__PURE__*/createContext({
19
19
  hasCheckmarks: false
20
20
  });
21
21
  export const MenuProvider = MenuContext.Provider;
22
- export const useMenuContext = selector => useContextSelector(MenuContext, selector);
22
+ export const useMenuContext_unstable = selector => useContextSelector(MenuContext, selector);
23
23
  //# sourceMappingURL=menuContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuContext.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,EAAwB,kB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UpF,EAAA,aAAa,EAAE,KAVqE;AAWpF,EAAA,WAAW,EAAE,KAXuE;AAYpF,EAAA,QAAQ,EAAE,KAZ0E;AAapF,EAAA,aAAa,EAAE;AAbqE,CAAnB,CAA5D;AAwCP,OAAO,MAAM,YAAY,GAAG,WAAW,CAAC,QAAjC;AAEP,OAAO,MAAM,uBAAuB,GAAO,QAAJ,IACrC,kBAAkB,CAAC,WAAD,EAAc,QAAd,CADb","sourceRoot":""}
@@ -10,4 +10,4 @@ export declare type MenuGroupContextValue = {
10
10
  headerId: string;
11
11
  };
12
12
  export declare const MenuGroupContextProvider: React.Provider<MenuGroupContextValue>;
13
- export declare const useMenuGroupContext: () => MenuGroupContextValue;
13
+ export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
@@ -3,5 +3,5 @@ const MenuGroupContext = /*#__PURE__*/React.createContext({
3
3
  headerId: ''
4
4
  });
5
5
  export const MenuGroupContextProvider = MenuGroupContext.Provider;
6
- export const useMenuGroupContext = () => React.useContext(MenuGroupContext);
6
+ export const useMenuGroupContext_unstable = () => React.useContext(MenuGroupContext);
7
7
  //# sourceMappingURL=menuGroupContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuGroupContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA,MAAM,gBAAgB,gBAAG,KAAK,CAAC,aAAN,CAA2C;AAAE,EAAA,QAAQ,EAAE;AAAZ,CAA3C,CAAzB;AAaA,OAAO,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,QAAlD;AACP,OAAO,MAAM,mBAAmB,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,gBAAjB,CAAlC","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuGroupContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA,MAAM,gBAAgB,gBAAG,KAAK,CAAC,aAAN,CAA2C;AAAE,EAAA,QAAQ,EAAE;AAAZ,CAA3C,CAAzB;AAaA,OAAO,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,QAAlD;AACP,OAAO,MAAM,4BAA4B,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,gBAAjB,CAA3C","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;
@@ -9,5 +9,5 @@ export const MenuListContext = /*#__PURE__*/createContext({
9
9
  hasCheckmarks: false
10
10
  });
11
11
  export const MenuListProvider = MenuListContext.Provider;
12
- export const useMenuListContext = selector => useContextSelector(MenuListContext, selector);
12
+ export const useMenuListContext_unstable = selector => useContextSelector(MenuListContext, selector);
13
13
  //# sourceMappingURL=menuListContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuListContext.tsx"],"names":[],"mappings":"AACA,SAAS,aAAT,EAAwB,kBAAxB,QAAkD,kCAAlD;AAKA,OAAO,MAAM,eAAe,gBAAkC,aAAa,CAAuB;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,CAAvB,CAApE;AAsBP,OAAO,MAAM,gBAAgB,GAAG,eAAe,CAAC,QAAzC;AAEP,OAAO,MAAM,kBAAkB,GAAQ,QAAL,IAChC,kBAAkB,CAAC,eAAD,EAAkB,QAAlB,CADb","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuListContext.tsx"],"names":[],"mappings":"AACA,SAAS,aAAT,EAAwB,kBAAxB,QAAkD,kCAAlD;AAKA,OAAO,MAAM,eAAe,gBAAkC,aAAa,CAAuB;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,CAAvB,CAApE;AAsBP,OAAO,MAAM,gBAAgB,GAAG,eAAe,CAAC,QAAzC;AAEP,OAAO,MAAM,2BAA2B,GAAQ,QAAL,IACzC,kBAAkB,CAAC,eAAD,EAAkB,QAAlB,CADb","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;
@@ -5,5 +5,5 @@ import * as React from 'react';
5
5
 
6
6
  const MenuTriggerContext = /*#__PURE__*/React.createContext(false);
7
7
  export const MenuTriggerContextProvider = MenuTriggerContext.Provider;
8
- export const useMenuTriggerContext = () => React.useContext(MenuTriggerContext);
8
+ export const useMenuTriggerContext_unstable = () => React.useContext(MenuTriggerContext);
9
9
  //# sourceMappingURL=menuTriggerContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuTriggerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA;;AAEG;;AACH,MAAM,kBAAkB,gBAAG,KAAK,CAAC,aAAN,CAA6B,KAA7B,CAA3B;AAEA,OAAO,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,QAAtD;AACP,OAAO,MAAM,qBAAqB,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,kBAAjB,CAApC","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuTriggerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA;;AAEG;;AACH,MAAM,kBAAkB,gBAAG,KAAK,CAAC,aAAN,CAA6B,KAA7B,CAA3B;AAEA,OAAO,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,QAAtD;AACP,OAAO,MAAM,8BAA8B,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,kBAAjB,CAA7C","sourceRoot":""}
@@ -5,4 +5,4 @@ import type { MenuItemSlots } from '../components/MenuItem/MenuItem.types';
5
5
  *
6
6
  * @param state - should contain a `checkmark` slot
7
7
  */
8
- export declare const useCheckmarkStyles: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
8
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
@@ -1,4 +1,4 @@
1
- import { mergeClasses, __styles } from '@fluentui/react-make-styles';
1
+ import { mergeClasses, __styles } from '@griffel/react';
2
2
 
3
3
  const useStyles = /*#__PURE__*/__styles({
4
4
  "root": {
@@ -19,7 +19,7 @@ const useStyles = /*#__PURE__*/__styles({
19
19
  */
20
20
 
21
21
 
22
- export const useCheckmarkStyles = state => {
22
+ export const useCheckmarkStyles_unstable = state => {
23
23
  const styles = useStyles();
24
24
 
25
25
  if (state.checkmark) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/selectable/useCheckmarkStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;;AAIA,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACH,OAAO,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,YAAY,CACtC,MAAM,CAAC,IAD+B,EAEtC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFc,EAGtC,KAAK,CAAC,SAAN,CAAgB,SAHsB,CAAxC;AAKD;AACF,CATM","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/selectable/useCheckmarkStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,gBAAzC;;AAIA,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACH,OAAO,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,YAAY,CACtC,MAAM,CAAC,IAD+B,EAEtC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFc,EAGtC,KAAK,CAAC,SAAN,CAAgB,SAHsB,CAAxC;AAKD;AACF,CATM","sourceRoot":""}
@@ -1,5 +1,5 @@
1
1
  import { useHasParentContext } from '@fluentui/react-context-selector';
2
- import { useMenuContext } from '../contexts/menuContext';
2
+ import { useMenuContext_unstable } from '../contexts/menuContext';
3
3
  import { MenuListContext } from '../contexts/menuListContext';
4
4
  /**
5
5
  * A component can be a part of a submenu whether its menu context `isSubmenu` flag is true
@@ -11,7 +11,7 @@ import { MenuListContext } from '../contexts/menuListContext';
11
11
  */
12
12
 
13
13
  export function useIsSubmenu() {
14
- const menuContextValue = useMenuContext(context => context.isSubmenu);
14
+ const menuContextValue = useMenuContext_unstable(context => context.isSubmenu);
15
15
  const hasMenuListContext = useHasParentContext(MenuListContext);
16
16
  return menuContextValue || hasMenuListContext;
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/useIsSubmenu.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAT,QAAoC,kCAApC;AACA,SAAS,cAAT,QAA+B,yBAA/B;AACA,SAAS,eAAT,QAAgC,6BAAhC;AAEA;;;;;;;AAOG;;AACH,OAAM,SAAU,YAAV,GAAsB;AAC1B,QAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,SAApB,CAAvC;AACA,QAAM,kBAAkB,GAAG,mBAAmB,CAAC,eAAD,CAA9C;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/utils/useIsSubmenu.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAT,QAAoC,kCAApC;AACA,SAAS,uBAAT,QAAwC,yBAAxC;AACA,SAAS,eAAT,QAAgC,6BAAhC;AAEA;;;;;;;AAOG;;AACH,OAAM,SAAU,YAAV,GAAsB;AAC1B,QAAM,gBAAgB,GAAG,uBAAuB,CAAC,OAAO,IAAI,OAAO,CAAC,SAApB,CAAhD;AACA,QAAM,kBAAkB,GAAG,mBAAmB,CAAC,eAAD,CAA9C;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD","sourceRoot":""}
@@ -16,9 +16,9 @@ const renderMenu_1 = /*#__PURE__*/require("./renderMenu");
16
16
 
17
17
 
18
18
  const Menu = props => {
19
- const state = useMenu_1.useMenu(props);
20
- const contextValues = useMenuContextValues_1.useMenuContextValues(state);
21
- return renderMenu_1.renderMenu(state, contextValues);
19
+ const state = useMenu_1.useMenu_unstable(props);
20
+ const contextValues = useMenuContextValues_1.useMenuContextValues_unstable(state);
21
+ return renderMenu_1.renderMenu_unstable(state, contextValues);
22
22
  };
23
23
 
24
24
  exports.Menu = Menu;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,SAAA,CAAA,OAAA,CAAQ,KAAR,CAAd;AACA,QAAM,aAAa,GAAG,sBAAA,CAAA,oBAAA,CAAqB,KAArB,CAAtB;AAEA,SAAO,YAAA,CAAA,UAAA,CAAW,KAAX,EAAkB,aAAlB,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,IAAA,GAAI,IAAJ;AAOb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,SAAA,CAAA,gBAAA,CAAiB,KAAjB,CAAd;AACA,QAAM,aAAa,GAAG,sBAAA,CAAA,6BAAA,CAA8B,KAA9B,CAAtB;AAEA,SAAO,YAAA,CAAA,mBAAA,CAAoB,KAApB,EAA2B,aAA3B,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,IAAA,GAAI,IAAJ;AAOb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -2,4 +2,4 @@ import type { MenuContextValues, MenuState } from './Menu.types';
2
2
  /**
3
3
  * Render the final JSX of Menu
4
4
  */
5
- export declare const renderMenu: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
5
+ export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenu = void 0;
6
+ exports.renderMenu_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -13,11 +13,11 @@ const menuContext_1 = /*#__PURE__*/require("../../contexts/menuContext");
13
13
  */
14
14
 
15
15
 
16
- const renderMenu = (state, contextValues) => {
16
+ const renderMenu_unstable = (state, contextValues) => {
17
17
  return React.createElement(menuContext_1.MenuProvider, {
18
18
  value: contextValues.menu
19
19
  }, state.menuTrigger, state.open && state.menuPopover);
20
20
  };
21
21
 
22
- exports.renderMenu = renderMenu;
22
+ exports.renderMenu_unstable = renderMenu_unstable;
23
23
  //# sourceMappingURL=renderMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,UAAU,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AAC/E,SACE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AACxF,SACE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
@@ -3,8 +3,8 @@ import type { MenuProps, MenuState } from './Menu.types';
3
3
  * Create the state required to render Menu.
4
4
  *
5
5
  * The returned state can be modified with hooks such as useMenuStyles,
6
- * before being passed to renderMenu.
6
+ * before being passed to renderMenu_unstable.
7
7
  *
8
8
  * @param props - props from this instance of Menu
9
9
  */
10
- export declare const useMenu: (props: MenuProps) => MenuState;
10
+ export declare const useMenu_unstable: (props: MenuProps) => MenuState;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenu = void 0;
6
+ exports.useMenu_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -26,13 +26,13 @@ const useIsSubmenu_1 = /*#__PURE__*/require("../../utils/useIsSubmenu");
26
26
  * Create the state required to render Menu.
27
27
  *
28
28
  * The returned state can be modified with hooks such as useMenuStyles,
29
- * before being passed to renderMenu.
29
+ * before being passed to renderMenu_unstable.
30
30
  *
31
31
  * @param props - props from this instance of Menu
32
32
  */
33
33
 
34
34
 
35
- const useMenu = props => {
35
+ const useMenu_unstable = props => {
36
36
  const triggerId = react_utilities_1.useId('menu');
37
37
  const isSubmenu = useIsSubmenu_1.useIsSubmenu();
38
38
  const [contextTarget, setContextTarget] = react_positioning_1.usePopperMouseTarget();
@@ -95,7 +95,7 @@ const useMenu = props => {
95
95
  };
96
96
  };
97
97
 
98
- exports.useMenu = useMenu;
98
+ exports.useMenu_unstable = useMenu_unstable;
99
99
  /**
100
100
  * Adds appropriate state values and handlers for selectable items
101
101
  * i.e checkboxes and radios
@@ -136,7 +136,7 @@ const useMenuOpenState = state => {
136
136
  const {
137
137
  targetDocument
138
138
  } = react_shared_contexts_1.useFluent();
139
- const parentSetOpen = menuContext_1.useMenuContext(context => context.setOpen);
139
+ const parentSetOpen = menuContext_1.useMenuContext_unstable(context => context.setOpen);
140
140
  const onOpenChange = react_utilities_1.useEventCallback((e, data) => {
141
141
  var _a;
142
142
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenu.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,iCAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;AAGA;;;;;;;AAOG;;;AACI,MAAM,OAAO,GAAI,KAAD,IAAgC;AACrD,QAAM,SAAS,GAAG,iBAAA,CAAA,KAAA,CAAM,MAAN,CAAlB;AACA,QAAM,SAAS,GAAG,cAAA,CAAA,YAAA,EAAlB;AACA,QAAM,CAAC,aAAD,EAAgB,gBAAhB,IAAoC,mBAAA,CAAA,oBAAA,EAA1C;AAEA,QAAM,WAAW,GAAG;AAClB,IAAA,QAAQ,EAAE,SAAS,GAAI,OAAJ,GAAyB,OAD1B;AAElB,IAAA,KAAK,EAAE,SAAS,GAAI,KAAJ,GAAuB,OAFrB;AAGlB,IAAA,MAAM,EAAE,KAAK,CAAC,aAAN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AF,EAAxB;AACD;AACF;;AAED,IAAA,uBAAuB,CAAC,OAAxB,GAAkC,KAAlC;AACA,IAAA,kBAAkB,CAAC,OAAnB,GAA6B,KAA7B;AACA,IAAA,eAAe,CAAC,OAAhB,GAA0B,KAA1B;AACD,GAhBD,EAgBG,CAAC,KAAK,CAAC,UAAP,EAAmB,KAAK,CAAC,SAAzB,EAAoC,IAApC,EAA0C,UAA1C,EAAsD,qBAAtD,EAA6E,sBAA7E,CAhBH;AAkBA,SAAO,CAAC,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,KAAT,EAAgB,OAAhB,CAAP;AACD,CAvID","sourceRoot":""}
@@ -1,2 +1,2 @@
1
1
  import type { MenuContextValues, MenuState } from './Menu.types';
2
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
2
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuContextValues = void 0;
6
+ exports.useMenuContextValues_unstable = void 0;
7
7
 
8
- function useMenuContextValues(state) {
8
+ function useMenuContextValues_unstable(state) {
9
9
  const {
10
10
  open,
11
11
  setOpen,
@@ -46,5 +46,5 @@ function useMenuContextValues(state) {
46
46
  };
47
47
  }
48
48
 
49
- exports.useMenuContextValues = useMenuContextValues;
49
+ exports.useMenuContextValues_unstable = useMenuContextValues_unstable;
50
50
  //# sourceMappingURL=useMenuContextValues.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenuContextValues.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,oBAAhB,CAAqC,KAArC,EAAqD;AACnD,QAAM;AACJ,IAAA,IADI;AAEJ,IAAA,OAFI;AAGJ,IAAA,oBAHI;AAIJ,IAAA,aAJI;AAKJ,IAAA,oBALI;AAMJ,IAAA,WANI;AAOJ,IAAA,aAPI;AAQJ,IAAA,UARI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aX,IAAA,QAbW;AAcX,IAAA,kBAdW;AAeX,IAAA;AAfW,GAAb;AAkBA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD;;AAvCD,OAAA,CAAA,6BAAA,GAAA,6BAAA","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuDividerProps } from './MenuDivider.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
4
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
5
5
  */
6
6
  export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
@@ -13,14 +13,14 @@ const useMenuDividerStyles_1 = /*#__PURE__*/require("./useMenuDividerStyles");
13
13
 
14
14
  const renderMenuDivider_1 = /*#__PURE__*/require("./renderMenuDivider");
15
15
  /**
16
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
16
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
17
17
  */
18
18
 
19
19
 
20
20
  exports.MenuDivider = /*#__PURE__*/React.forwardRef((props, ref) => {
21
- const state = useMenuDivider_1.useMenuDivider(props, ref);
22
- useMenuDividerStyles_1.useMenuDividerStyles(state);
23
- return renderMenuDivider_1.renderMenuDivider(state);
21
+ const state = useMenuDivider_1.useMenuDivider_unstable(props, ref);
22
+ useMenuDividerStyles_1.useMenuDividerStyles_unstable(state);
23
+ return renderMenuDivider_1.renderMenuDivider_unstable(state);
24
24
  });
25
25
  exports.MenuDivider.displayName = 'MenuDivider';
26
26
  //# sourceMappingURL=MenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,gBAAA,CAAA,cAAA,CAAe,KAAf,EAAsB,GAAtB,CAAd;AACA,EAAA,sBAAA,CAAA,oBAAA,CAAqB,KAArB;AAEA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP;AACD,CALiE,CAArD;AAOb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,EAA+B,GAA/B,CAAd;AACA,EAAA,sBAAA,CAAA,6BAAA,CAA8B,KAA9B;AAEA,SAAO,mBAAA,CAAA,0BAAA,CAA2B,KAA3B,CAAP;AACD,CALiE,CAArD;AAOb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
2
  export declare type MenuDividerSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: IntrinsicSlotProps<'div'>;
4
4
  };
5
5
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
6
6
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -3,4 +3,4 @@ import { MenuDividerState } from './MenuDivider.types';
3
3
  * Redefine the render function to add slots. Reuse the menudivider structure but add
4
4
  * slots to children.
5
5
  */
6
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
6
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenuDivider = void 0;
6
+ exports.renderMenuDivider_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -14,7 +14,7 @@ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
14
14
  */
15
15
 
16
16
 
17
- const renderMenuDivider = state => {
17
+ const renderMenuDivider_unstable = state => {
18
18
  const {
19
19
  slots,
20
20
  slotProps
@@ -23,5 +23,5 @@ const renderMenuDivider = state => {
23
23
  });
24
24
  };
25
25
 
26
- exports.renderMenuDivider = renderMenuDivider;
26
+ exports.renderMenuDivider_unstable = renderMenuDivider_unstable;
27
27
  //# sourceMappingURL=renderMenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;AAGG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;AAGG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
@@ -3,4 +3,4 @@ import type { MenuDividerProps, MenuDividerState } from './MenuDivider.types';
3
3
  /**
4
4
  * Given user props, returns state and render function for a MenuDivider.
5
5
  */
6
- export declare const useMenuDivider: (props: MenuDividerProps, ref: React.Ref<HTMLElement>) => MenuDividerState;
6
+ export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React.Ref<HTMLElement>) => MenuDividerState;