@fluentui/react-menu 9.0.0-nightly.46b9ea7036.0 → 9.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (414) hide show
  1. package/CHANGELOG.json +451 -34
  2. package/CHANGELOG.md +102 -22
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +140 -71
  5. package/lib/MenuSplitGroup.d.ts +1 -0
  6. package/lib/MenuSplitGroup.js +2 -0
  7. package/lib/MenuSplitGroup.js.map +1 -0
  8. package/lib/components/Menu/Menu.js +7 -7
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/Menu.types.d.ts +1 -1
  11. package/lib/components/Menu/renderMenu.d.ts +1 -1
  12. package/lib/components/Menu/renderMenu.js +1 -1
  13. package/lib/components/Menu/renderMenu.js.map +1 -1
  14. package/lib/components/Menu/useMenu.d.ts +2 -2
  15. package/lib/components/Menu/useMenu.js +119 -128
  16. package/lib/components/Menu/useMenu.js.map +1 -1
  17. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  18. package/lib/components/Menu/useMenuContextValues.js +35 -33
  19. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  20. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  21. package/lib/components/MenuDivider/MenuDivider.js +8 -8
  22. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  23. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  24. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  25. package/lib/components/MenuDivider/renderMenuDivider.js +7 -7
  26. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  27. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js +9 -7
  29. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  30. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +2 -1
  31. package/lib/components/MenuDivider/useMenuDividerStyles.js +7 -5
  32. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  33. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/MenuGroup.js +10 -8
  35. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  37. package/lib/components/MenuGroup/index.d.ts +1 -0
  38. package/lib/components/MenuGroup/index.js +1 -0
  39. package/lib/components/MenuGroup/index.js.map +1 -1
  40. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  41. package/lib/components/MenuGroup/renderMenuGroup.js +7 -7
  42. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  43. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  44. package/lib/components/MenuGroup/useMenuGroup.js +10 -7
  45. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  46. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  47. package/lib/components/MenuGroup/useMenuGroupContextValues.js +8 -8
  48. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  49. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  50. package/lib/components/MenuGroup/useMenuGroupStyles.js +7 -0
  51. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  52. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +8 -8
  54. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  56. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  57. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +7 -7
  58. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  59. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  60. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +13 -8
  61. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  62. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +2 -1
  63. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +7 -5
  64. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  65. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  66. package/lib/components/MenuItem/MenuItem.js +8 -10
  67. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  68. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  69. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  70. package/lib/components/MenuItem/renderMenuItem.js +12 -8
  71. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  72. package/lib/components/MenuItem/useCharacterSearch.js +7 -7
  73. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  74. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  75. package/lib/components/MenuItem/useMenuItem.js +35 -45
  76. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  77. package/lib/components/MenuItem/useMenuItemStyles.d.ts +2 -1
  78. package/lib/components/MenuItem/useMenuItemStyles.js +31 -27
  79. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  80. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  81. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +8 -8
  82. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  83. package/lib/components/MenuItemCheckbox/index.d.ts +1 -0
  84. package/lib/components/MenuItemCheckbox/index.js +1 -0
  85. package/lib/components/MenuItemCheckbox/index.js.map +1 -1
  86. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  87. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +11 -8
  88. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  89. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  90. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +14 -15
  91. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  92. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  93. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +8 -5
  94. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  95. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  96. package/lib/components/MenuItemRadio/MenuItemRadio.js +8 -8
  97. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  98. package/lib/components/MenuItemRadio/index.d.ts +1 -0
  99. package/lib/components/MenuItemRadio/index.js +1 -0
  100. package/lib/components/MenuItemRadio/index.js.map +1 -1
  101. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  102. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +11 -8
  103. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  104. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  105. package/lib/components/MenuItemRadio/useMenuItemRadio.js +14 -14
  106. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  107. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +2 -1
  108. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +8 -5
  109. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  110. package/lib/components/MenuList/MenuList.d.ts +1 -1
  111. package/lib/components/MenuList/MenuList.js +10 -10
  112. package/lib/components/MenuList/MenuList.js.map +1 -1
  113. package/lib/components/MenuList/MenuList.types.d.ts +12 -10
  114. package/lib/components/MenuList/index.d.ts +1 -1
  115. package/lib/components/MenuList/index.js +0 -1
  116. package/lib/components/MenuList/index.js.map +1 -1
  117. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  118. package/lib/components/MenuList/renderMenuList.js +7 -7
  119. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  120. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  121. package/lib/components/MenuList/useMenuList.js +70 -87
  122. package/lib/components/MenuList/useMenuList.js.map +1 -1
  123. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  124. package/lib/components/MenuList/useMenuListContextValues.js +19 -17
  125. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  126. package/lib/components/MenuList/useMenuListStyles.d.ts +2 -1
  127. package/lib/components/MenuList/useMenuListStyles.js +9 -7
  128. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  129. package/lib/components/MenuPopover/MenuPopover.js +7 -7
  130. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  131. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  132. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  133. package/lib/components/MenuPopover/renderMenuPopover.js +9 -7
  134. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  135. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  136. package/lib/components/MenuPopover/useMenuPopover.js +35 -41
  137. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  138. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +2 -1
  139. package/lib/components/MenuPopover/useMenuPopoverStyles.js +13 -8
  140. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  141. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  142. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  143. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  144. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  145. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  146. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  147. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  148. package/lib/components/MenuSplitGroup/index.js +6 -0
  149. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  150. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  151. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  152. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  153. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  154. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  155. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  156. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  157. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  158. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  159. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  160. package/lib/components/MenuTrigger/MenuTrigger.js +6 -5
  161. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  162. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  163. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  164. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  165. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  166. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  167. package/lib/components/MenuTrigger/useMenuTrigger.js +166 -5
  168. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  169. package/lib/contexts/menuContext.d.ts +1 -1
  170. package/lib/contexts/menuContext.js +5 -11
  171. package/lib/contexts/menuContext.js.map +1 -1
  172. package/lib/contexts/menuGroupContext.d.ts +1 -1
  173. package/lib/contexts/menuGroupContext.js +3 -5
  174. package/lib/contexts/menuGroupContext.js.map +1 -1
  175. package/lib/contexts/menuListContext.d.ts +1 -1
  176. package/lib/contexts/menuListContext.js +7 -17
  177. package/lib/contexts/menuListContext.js.map +1 -1
  178. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  179. package/lib/contexts/menuTriggerContext.js +3 -5
  180. package/lib/contexts/menuTriggerContext.js.map +1 -1
  181. package/lib/index.d.ts +11 -10
  182. package/lib/index.js +11 -10
  183. package/lib/index.js.map +1 -1
  184. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  185. package/lib/selectable/useCheckmarkStyles.js +4 -4
  186. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  187. package/lib/utils/useIsSubmenu.js +3 -5
  188. package/lib/utils/useIsSubmenu.js.map +1 -1
  189. package/lib/utils/useOnMenuEnter.js +16 -14
  190. package/lib/utils/useOnMenuEnter.js.map +1 -1
  191. package/lib-commonjs/Menu.js +1 -1
  192. package/lib-commonjs/MenuDivider.js +1 -1
  193. package/lib-commonjs/MenuGroup.js +1 -1
  194. package/lib-commonjs/MenuGroupHeader.js +1 -1
  195. package/lib-commonjs/MenuItem.js +1 -1
  196. package/lib-commonjs/MenuItemCheckbox.js +1 -1
  197. package/lib-commonjs/MenuItemRadio.js +1 -1
  198. package/lib-commonjs/MenuList.js +1 -1
  199. package/lib-commonjs/MenuPopover.js +1 -1
  200. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  201. package/lib-commonjs/MenuSplitGroup.js +10 -0
  202. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  203. package/lib-commonjs/MenuTrigger.js +1 -1
  204. package/lib-commonjs/components/Menu/Menu.js +7 -7
  205. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  206. package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
  207. package/lib-commonjs/components/Menu/index.js +1 -1
  208. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  209. package/lib-commonjs/components/Menu/renderMenu.js +5 -5
  210. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  211. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  212. package/lib-commonjs/components/Menu/useMenu.js +130 -141
  213. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  214. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  215. package/lib-commonjs/components/Menu/useMenuContextValues.js +37 -35
  216. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  217. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  218. package/lib-commonjs/components/MenuDivider/MenuDivider.js +9 -9
  219. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  220. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  221. package/lib-commonjs/components/MenuDivider/index.js +1 -1
  222. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  223. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +11 -12
  224. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  225. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  226. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +12 -11
  227. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  228. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +2 -1
  229. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +11 -7
  230. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  231. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  232. package/lib-commonjs/components/MenuGroup/MenuGroup.js +12 -9
  233. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  234. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  235. package/lib-commonjs/components/MenuGroup/index.d.ts +1 -0
  236. package/lib-commonjs/components/MenuGroup/index.js +3 -1
  237. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  238. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  239. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +12 -13
  240. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  241. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  242. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +13 -11
  243. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  244. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  245. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +11 -11
  246. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  247. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  248. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +18 -0
  249. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  250. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  251. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +9 -9
  252. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  253. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  254. package/lib-commonjs/components/MenuGroupHeader/index.js +1 -1
  255. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  256. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +11 -12
  257. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  258. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  259. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +16 -12
  260. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  261. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +2 -1
  262. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +11 -7
  263. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  264. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  265. package/lib-commonjs/components/MenuItem/MenuItem.js +9 -12
  266. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  267. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  268. package/lib-commonjs/components/MenuItem/index.js +1 -1
  269. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  270. package/lib-commonjs/components/MenuItem/renderMenuItem.js +16 -14
  271. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  272. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +7 -7
  273. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  274. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  275. package/lib-commonjs/components/MenuItem/useMenuItem.js +42 -53
  276. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  277. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +2 -1
  278. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +40 -33
  279. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  280. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  281. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +9 -9
  282. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  283. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +1 -0
  284. package/lib-commonjs/components/MenuItemCheckbox/index.js +3 -1
  285. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  286. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  287. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +15 -14
  288. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  289. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  290. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +19 -21
  291. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  292. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  293. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +12 -7
  294. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  295. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  296. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +9 -9
  297. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  298. package/lib-commonjs/components/MenuItemRadio/index.d.ts +1 -0
  299. package/lib-commonjs/components/MenuItemRadio/index.js +3 -1
  300. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  301. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  302. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +15 -14
  303. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  304. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  305. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +19 -20
  306. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  307. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +2 -1
  308. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +12 -7
  309. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  310. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  311. package/lib-commonjs/components/MenuList/MenuList.js +11 -11
  312. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  313. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +12 -10
  314. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  315. package/lib-commonjs/components/MenuList/index.js +1 -3
  316. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  317. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  318. package/lib-commonjs/components/MenuList/renderMenuList.js +12 -13
  319. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  320. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  321. package/lib-commonjs/components/MenuList/useMenuList.js +77 -95
  322. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  323. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  324. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +21 -19
  325. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  326. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +2 -1
  327. package/lib-commonjs/components/MenuList/useMenuListStyles.js +12 -9
  328. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  329. package/lib-commonjs/components/MenuPopover/MenuPopover.js +8 -8
  330. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  331. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  332. package/lib-commonjs/components/MenuPopover/index.js +1 -1
  333. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  334. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +14 -13
  335. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  336. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  337. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +43 -50
  338. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  339. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +2 -1
  340. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +17 -10
  341. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  342. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  343. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  344. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  345. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  346. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  347. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  348. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  349. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  350. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  351. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  352. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  353. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  354. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  355. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  356. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  357. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  358. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  359. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  360. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  361. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -5
  362. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  363. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  364. package/lib-commonjs/components/MenuTrigger/index.js +1 -1
  365. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  366. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +5 -5
  367. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  368. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  369. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +174 -7
  370. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  371. package/lib-commonjs/components/index.js +1 -1
  372. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  373. package/lib-commonjs/contexts/menuContext.js +6 -12
  374. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  375. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  376. package/lib-commonjs/contexts/menuGroupContext.js +5 -7
  377. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  378. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  379. package/lib-commonjs/contexts/menuListContext.js +8 -18
  380. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  381. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  382. package/lib-commonjs/contexts/menuTriggerContext.js +5 -7
  383. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  384. package/lib-commonjs/index.d.ts +11 -10
  385. package/lib-commonjs/index.js +17 -15
  386. package/lib-commonjs/index.js.map +1 -1
  387. package/lib-commonjs/selectable/index.js +1 -1
  388. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  389. package/lib-commonjs/selectable/useCheckmarkStyles.js +7 -7
  390. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  391. package/lib-commonjs/utils/index.js +1 -1
  392. package/lib-commonjs/utils/useIsSubmenu.js +5 -7
  393. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  394. package/lib-commonjs/utils/useOnMenuEnter.js +18 -16
  395. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  396. package/package.json +15 -17
  397. package/lib/common/isConformant.d.ts +0 -4
  398. package/lib/common/isConformant.js +0 -12
  399. package/lib/common/isConformant.js.map +0 -1
  400. package/lib/common/mockUseMenuContext.d.ts +0 -7
  401. package/lib/common/mockUseMenuContext.js +0 -36
  402. package/lib/common/mockUseMenuContext.js.map +0 -1
  403. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  404. package/lib/components/MenuTrigger/useTriggerElement.js +0 -179
  405. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  406. package/lib-commonjs/common/isConformant.d.ts +0 -4
  407. package/lib-commonjs/common/isConformant.js +0 -23
  408. package/lib-commonjs/common/isConformant.js.map +0 -1
  409. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  410. package/lib-commonjs/common/mockUseMenuContext.js +0 -47
  411. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
  412. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  413. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -195
  414. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -3,16 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuItemCheckBoxStyles = void 0;
6
+ exports.useMenuItemCheckboxStyles_unstable = exports.menuItemCheckboxClassName = void 0;
7
7
 
8
- var index_1 = /*#__PURE__*/require("../../selectable/index");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
10
+ const index_1 = /*#__PURE__*/require("../../selectable/index");
11
11
 
12
- var useMenuItemCheckBoxStyles = function (state) {
13
- useMenuItemStyles_1.useMenuItemStyles(state);
14
- index_1.useCheckmarkStyles(state);
12
+ const useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
13
+
14
+ exports.menuItemCheckboxClassName = 'fui-MenuItemCheckbox';
15
+
16
+ const useMenuItemCheckboxStyles_unstable = state => {
17
+ state.root.className = react_1.mergeClasses(exports.menuItemCheckboxClassName, state.root.className);
18
+ useMenuItemStyles_1.useMenuItemStyles_unstable(state);
19
+ index_1.useCheckmarkStyles_unstable(state);
15
20
  };
16
21
 
17
- exports.useMenuItemCheckBoxStyles = useMenuItemCheckBoxStyles;
22
+ exports.useMenuItemCheckboxStyles_unstable = useMenuItemCheckboxStyles_unstable;
18
23
  //# sourceMappingURL=useMenuItemCheckboxStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/useMenuItemCheckboxStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGO,IAAM,yBAAyB,GAAG,UAAC,KAAD,EAA6B;AACpE,EAAA,mBAAA,CAAA,iBAAA,CAAkB,KAAlB;AACA,EAAA,OAAA,CAAA,kBAAA,CAAmB,KAAnB;AACD,CAHM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemCheckbox/useMenuItemCheckboxStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGa,OAAA,CAAA,yBAAA,GAA4B,sBAA5B;;AAEN,MAAM,kCAAkC,GAAI,KAAD,IAAiC;AACjF,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,yBAAb,EAAwC,KAAK,CAAC,IAAN,CAAW,SAAnD,CAAvB;AAEA,EAAA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;AACA,EAAA,OAAA,CAAA,2BAAA,CAA4B,KAA5B;AACD,CALM;;AAAM,OAAA,CAAA,kCAAA,GAAkC,kCAAlC","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuItemRadioProps } from './MenuItemRadio.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuItemRadio, using the `useMenuItemRadio` hook.
4
+ * Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.
5
5
  */
6
6
  export declare const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;
@@ -5,22 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MenuItemRadio = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var useMenuItemRadio_1 = /*#__PURE__*/require("./useMenuItemRadio");
10
+ const useMenuItemRadio_1 = /*#__PURE__*/require("./useMenuItemRadio");
11
11
 
12
- var renderMenuItemRadio_1 = /*#__PURE__*/require("./renderMenuItemRadio");
12
+ const renderMenuItemRadio_1 = /*#__PURE__*/require("./renderMenuItemRadio");
13
13
 
14
- var useMenuItemRadioStyles_1 = /*#__PURE__*/require("./useMenuItemRadioStyles");
14
+ const useMenuItemRadioStyles_1 = /*#__PURE__*/require("./useMenuItemRadioStyles");
15
15
  /**
16
- * Define a styled MenuItemRadio, using the `useMenuItemRadio` hook.
16
+ * Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.
17
17
  */
18
18
 
19
19
 
20
- exports.MenuItemRadio = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useMenuItemRadio_1.useMenuItemRadio(props, ref);
22
- useMenuItemRadioStyles_1.useMenuItemRadioStyles(state);
23
- return renderMenuItemRadio_1.renderMenuItemRadio(state);
20
+ exports.MenuItemRadio = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useMenuItemRadio_1.useMenuItemRadio_unstable(props, ref);
22
+ useMenuItemRadioStyles_1.useMenuItemRadioStyles_unstable(state);
23
+ return renderMenuItemRadio_1.renderMenuItemRadio_unstable(state);
24
24
  });
25
25
  exports.MenuItemRadio.displayName = 'MenuItemRadio';
26
26
  //# sourceMappingURL=MenuItemRadio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/MenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,IAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,gBAAyD,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAChG,MAAM,KAAK,GAAG,kBAAA,CAAA,gBAAA,CAAiB,KAAjB,EAAwB,GAAxB,CAAd;AACA,EAAA,wBAAA,CAAA,sBAAA,CAAuB,KAAvB;AAEA,SAAO,qBAAA,CAAA,mBAAA,CAAoB,KAApB,CAAP;AACD,CALqE,CAAzD;AAOb,OAAA,CAAA,aAAA,CAAc,WAAd,GAA4B,eAA5B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemRadio/MenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,gBAAyD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpG,QAAM,KAAK,GAAG,kBAAA,CAAA,yBAAA,CAA0B,KAA1B,EAAiC,GAAjC,CAAd;AACA,EAAA,wBAAA,CAAA,+BAAA,CAAgC,KAAhC;AAEA,SAAO,qBAAA,CAAA,4BAAA,CAA6B,KAA7B,CAAP;AACD,CALqE,CAAzD;AAOb,OAAA,CAAA,aAAA,CAAc,WAAd,GAA4B,eAA5B","sourceRoot":""}
@@ -2,3 +2,4 @@ export * from './MenuItemRadio.types';
2
2
  export * from './MenuItemRadio';
3
3
  export * from './renderMenuItemRadio';
4
4
  export * from './useMenuItemRadio';
5
+ export * from './useMenuItemRadioStyles';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuItemRadio.types"), exports);
10
10
 
@@ -13,4 +13,6 @@ tslib_1.__exportStar(require("./MenuItemRadio"), exports);
13
13
  tslib_1.__exportStar(require("./renderMenuItemRadio"), exports);
14
14
 
15
15
  tslib_1.__exportStar(require("./useMenuItemRadio"), exports);
16
+
17
+ tslib_1.__exportStar(require("./useMenuItemRadioStyles"), exports);
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemRadio/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -3,4 +3,4 @@ import type { MenuItemRadioState } from './MenuItemRadio.types';
3
3
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
4
4
  * slots to children.
5
5
  */
6
- export declare const renderMenuItemRadio: (state: MenuItemRadioState) => JSX.Element;
6
+ export declare const renderMenuItemRadio_unstable: (state: MenuItemRadioState) => JSX.Element;
@@ -3,28 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenuItemRadio = void 0;
6
+ exports.renderMenuItemRadio_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
-
14
- var index_1 = /*#__PURE__*/require("../MenuItem/index");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
15
11
  /**
16
12
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
17
13
  * slots to children.
18
14
  */
19
15
 
20
16
 
21
- var renderMenuItemRadio = function (state) {
22
- var _a = react_utilities_1.getSlots(state, index_1.menuItemSlots),
23
- slots = _a.slots,
24
- slotProps = _a.slotProps;
25
-
26
- return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), React.createElement(slots.checkmark, tslib_1.__assign({}, slotProps.checkmark)), React.createElement(slots.icon, tslib_1.__assign({}, slotProps.icon)), React.createElement(slots.content, tslib_1.__assign({}, slotProps.content)), React.createElement(slots.secondaryContent, tslib_1.__assign({}, slotProps.secondaryContent)));
17
+ const renderMenuItemRadio_unstable = state => {
18
+ const {
19
+ slots,
20
+ slotProps
21
+ } = react_utilities_1.getSlots(state);
22
+ return React.createElement(slots.root, { ...slotProps.root
23
+ }, slots.checkmark && React.createElement(slots.checkmark, { ...slotProps.checkmark
24
+ }), slots.icon && React.createElement(slots.icon, { ...slotProps.icon
25
+ }), slots.content && React.createElement(slots.content, { ...slotProps.content
26
+ }), slots.secondaryContent && React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
27
+ }));
27
28
  };
28
29
 
29
- exports.renderMenuItemRadio = renderMenuItemRadio;
30
+ exports.renderMenuItemRadio_unstable = renderMenuItemRadio_unstable;
30
31
  //# sourceMappingURL=renderMenuItemRadio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;AAIA;;;AAGG;;;AACI,IAAM,mBAAmB,GAAG,UAAC,KAAD,EAA0B;AACrD,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,EAA+B,OAAA,CAAA,aAA/B,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,SAAf,CAAhB,CADF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IG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourceRoot":""}
@@ -3,4 +3,4 @@ import type { MenuItemRadioProps, MenuItemRadioState } from './MenuItemRadio.typ
3
3
  /**
4
4
  * Given user props, returns state and render function for a MenuItemRadio.
5
5
  */
6
- export declare const useMenuItemRadio: (props: MenuItemRadioProps, ref: React.Ref<HTMLElement>) => MenuItemRadioState;
6
+ export declare const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React.Ref<HTMLElement>) => MenuItemRadioState;
@@ -3,50 +3,49 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuItemRadio = void 0;
6
+ exports.useMenuItemRadio_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
11
 
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
12
+ const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
13
13
 
14
- var react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
14
+ const menuListContext_1 = /*#__PURE__*/require("../../contexts/menuListContext");
15
15
 
16
- var menuListContext_1 = /*#__PURE__*/require("../../contexts/menuListContext");
17
-
18
- var useMenuItem_1 = /*#__PURE__*/require("../MenuItem/useMenuItem");
16
+ const useMenuItem_1 = /*#__PURE__*/require("../MenuItem/useMenuItem");
19
17
  /**
20
18
  * Given user props, returns state and render function for a MenuItemRadio.
21
19
  */
22
20
 
23
21
 
24
- var useMenuItemRadio = function (props, ref) {
25
- var radioProps = {
22
+ const useMenuItemRadio_unstable = (props, ref) => {
23
+ const radioProps = {
26
24
  role: 'menuitemradio'
27
25
  };
28
- var state = useMenuItem_1.useMenuItem(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, radioProps), props), {
26
+ const state = useMenuItem_1.useMenuItem_unstable({ ...radioProps,
27
+ ...props,
29
28
  checkmark: react_utilities_1.resolveShorthand(props.checkmark, {
30
29
  defaultProps: {
31
30
  children: React.createElement(react_icons_1.Checkmark16Filled, null)
32
31
  },
33
32
  required: true
34
33
  })
35
- }), ref);
36
- var selectRadio = menuListContext_1.useMenuListContext(function (context) {
37
- return context.selectRadio;
38
- });
39
- var onClickOriginal = state.root.onClick;
40
- var checked = menuListContext_1.useMenuListContext(function (context) {
34
+ }, ref);
35
+ const selectRadio = menuListContext_1.useMenuListContext_unstable(context => context.selectRadio);
36
+ const {
37
+ onClick: onClickOriginal
38
+ } = state.root;
39
+ const checked = menuListContext_1.useMenuListContext_unstable(context => {
41
40
  var _a;
42
41
 
43
- var checkedItems = ((_a = context.checkedValues) === null || _a === void 0 ? void 0 : _a[state.name]) || [];
42
+ const checkedItems = ((_a = context.checkedValues) === null || _a === void 0 ? void 0 : _a[state.name]) || [];
44
43
  return checkedItems.indexOf(state.value) !== -1;
45
44
  });
46
45
  state.checked = checked;
47
46
  state.root['aria-checked'] = state.checked; // MenuItem state already transforms keyDown to click events
48
47
 
49
- state.root.onClick = function (e) {
48
+ state.root.onClick = e => {
50
49
  if (state.disabled) {
51
50
  e.preventDefault();
52
51
  e.stopPropagation();
@@ -60,5 +59,5 @@ var useMenuItemRadio = function (props, ref) {
60
59
  return state;
61
60
  };
62
61
 
63
- exports.useMenuItemRadio = useMenuItemRadio;
62
+ exports.useMenuItemRadio_unstable = useMenuItemRadio_unstable;
64
63
  //# sourceMappingURL=useMenuItemRadio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/useMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAA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AW,KAAA,CAAX,GAAA,WAAW,CAAG,CAAH,EAAM,KAAK,CAAC,IAAZ,EAAkB,KAAK,CAAC,KAAxB,EAA+B,KAAK,CAAC,OAArC,CAAX;AACA,IAAA,eAAe,KAAA,IAAf,IAAA,eAAe,KAAA,KAAA,CAAf,GAAe,KAAA,CAAf,GAAA,eAAe,CAAG,CAAH,CAAf;AACD,GATD;;AAWA,SAAO,KAAP;AACD,CA3CM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourceRoot":""}
@@ -1,2 +1,3 @@
1
1
  import type { MenuItemRadioState } from './MenuItemRadio.types';
2
- export declare const useMenuItemRadioStyles: (state: MenuItemRadioState) => void;
2
+ export declare const menuItemRadioClassName = "fui-MenuItemRadio";
3
+ export declare const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;
@@ -3,16 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuItemRadioStyles = void 0;
6
+ exports.useMenuItemRadioStyles_unstable = exports.menuItemRadioClassName = void 0;
7
7
 
8
- var index_1 = /*#__PURE__*/require("../../selectable/index");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
10
+ const index_1 = /*#__PURE__*/require("../../selectable/index");
11
11
 
12
- var useMenuItemRadioStyles = function (state) {
13
- useMenuItemStyles_1.useMenuItemStyles(state);
14
- index_1.useCheckmarkStyles(state);
12
+ const useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
13
+
14
+ exports.menuItemRadioClassName = 'fui-MenuItemRadio';
15
+
16
+ const useMenuItemRadioStyles_unstable = state => {
17
+ state.root.className = react_1.mergeClasses(exports.menuItemRadioClassName, state.root.className);
18
+ useMenuItemStyles_1.useMenuItemStyles_unstable(state);
19
+ index_1.useCheckmarkStyles_unstable(state);
15
20
  };
16
21
 
17
- exports.useMenuItemRadioStyles = useMenuItemRadioStyles;
22
+ exports.useMenuItemRadioStyles_unstable = useMenuItemRadioStyles_unstable;
18
23
  //# sourceMappingURL=useMenuItemRadioStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/useMenuItemRadioStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGO,IAAM,sBAAsB,GAAG,UAAC,KAAD,EAA0B;AAC9D,EAAA,mBAAA,CAAA,iBAAA,CAAkB,KAAlB;AACA,EAAA,OAAA,CAAA,kBAAA,CAAmB,KAAnB;AACD,CAHM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemRadio/useMenuItemRadioStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGa,OAAA,CAAA,sBAAA,GAAyB,mBAAzB;;AAEN,MAAM,+BAA+B,GAAI,KAAD,IAA8B;AAC3E,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,sBAAb,EAAqC,KAAK,CAAC,IAAN,CAAW,SAAhD,CAAvB;AAEA,EAAA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;AACA,EAAA,OAAA,CAAA,2BAAA,CAA4B,KAA5B;AACD,CALM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuListProps } from './MenuList.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuList, using the `useMenuList` hook.
4
+ * Define a styled MenuList, using the `useMenuList_unstable` hook.
5
5
  */
6
6
  export declare const MenuList: ForwardRefComponent<MenuListProps>;
@@ -5,25 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MenuList = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var useMenuList_1 = /*#__PURE__*/require("./useMenuList");
10
+ const useMenuList_1 = /*#__PURE__*/require("./useMenuList");
11
11
 
12
- var renderMenuList_1 = /*#__PURE__*/require("./renderMenuList");
12
+ const renderMenuList_1 = /*#__PURE__*/require("./renderMenuList");
13
13
 
14
- var useMenuListContextValues_1 = /*#__PURE__*/require("./useMenuListContextValues");
14
+ const useMenuListContextValues_1 = /*#__PURE__*/require("./useMenuListContextValues");
15
15
 
16
- var useMenuListStyles_1 = /*#__PURE__*/require("./useMenuListStyles");
16
+ const useMenuListStyles_1 = /*#__PURE__*/require("./useMenuListStyles");
17
17
  /**
18
- * Define a styled MenuList, using the `useMenuList` hook.
18
+ * Define a styled MenuList, using the `useMenuList_unstable` hook.
19
19
  */
20
20
 
21
21
 
22
- exports.MenuList = /*#__PURE__*/React.forwardRef(function (props, ref) {
23
- var state = useMenuList_1.useMenuList(props, ref);
24
- var contextValues = useMenuListContextValues_1.useMenuListContextValues(state);
25
- useMenuListStyles_1.useMenuListStyles(state);
26
- return renderMenuList_1.renderMenuList(state, contextValues);
22
+ exports.MenuList = /*#__PURE__*/React.forwardRef((props, ref) => {
23
+ const state = useMenuList_1.useMenuList_unstable(props, ref);
24
+ const contextValues = useMenuListContextValues_1.useMenuListContextValues_unstable(state);
25
+ useMenuListStyles_1.useMenuListStyles_unstable(state);
26
+ return renderMenuList_1.renderMenuList_unstable(state, contextValues);
27
27
  });
28
28
  exports.MenuList.displayName = 'MenuList';
29
29
  //# sourceMappingURL=MenuList.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/M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QAAM,aAAa,GAAG,0BAAA,CAAA,iCAAA,CAAkC,KAAlC,CAAtB;AACA,EAAA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;AAEA,SAAO,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,EAA+B,aAA/B,CAAP;AACD,CAN2D,CAA/C;AAQb,OAAA,CAAA,QAAA,CAAS,WAAT,GAAuB,UAAvB","sourceRoot":""}
@@ -1,7 +1,14 @@
1
1
  import * as React from 'react';
2
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
3
- import { MenuListContextValue } from '../../contexts/menuListContext';
4
- import { SelectableHandler } from '../../selectable/index';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
+ import type { MenuListContextValue } from '../../contexts/menuListContext';
4
+ import type { SelectableHandler } from '../../selectable/index';
5
+ export declare type MenuCheckedValueChangeEvent = React.MouseEvent | React.KeyboardEvent;
6
+ export declare type MenuCheckedValueChangeData = {
7
+ /** The name of the value */
8
+ name: string;
9
+ /** The items for this value that are checked */
10
+ checkedItems: string[];
11
+ };
5
12
  export declare type MenuListCommons = {
6
13
  /**
7
14
  * Callback when checked items change for value with a name
@@ -9,12 +16,7 @@ export declare type MenuListCommons = {
9
16
  * @param event - React's original SyntheticEvent
10
17
  * @param data - A data object with relevant information
11
18
  */
12
- onCheckedValueChange?: (e: React.MouseEvent | React.KeyboardEvent, data: {
13
- /** The name of the value */
14
- name: string;
15
- /** The items for this value that are checked */
16
- checkedItems: string[];
17
- }) => void;
19
+ onCheckedValueChange?: (e: MenuCheckedValueChangeEvent, data: MenuCheckedValueChangeData) => void;
18
20
  /**
19
21
  * Map of all checked values
20
22
  */
@@ -33,7 +35,7 @@ export declare type MenuListCommons = {
33
35
  hasCheckmarks?: boolean;
34
36
  };
35
37
  export declare type MenuListSlots = {
36
- root: IntrinsicShorthandProps<'div'>;
38
+ root: Slot<'div'>;
37
39
  };
38
40
  export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<MenuListCommons>;
39
41
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -1,5 +1,5 @@
1
1
  export * from './MenuList';
2
- export * from './MenuList.types';
2
+ export type { MenuCheckedValueChangeData, MenuCheckedValueChangeEvent, MenuListContextValues, MenuListProps, MenuListSlots, MenuListState, UninitializedMenuListState, } from './MenuList.types';
3
3
  export * from './renderMenuList';
4
4
  export * from './useMenuList';
5
5
  export * from './useMenuListStyles';
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuList"), exports);
10
10
 
11
- tslib_1.__exportStar(require("./MenuList.types"), exports);
12
-
13
11
  tslib_1.__exportStar(require("./renderMenuList"), exports);
14
12
 
15
13
  tslib_1.__exportStar(require("./useMenuList"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AAWA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -2,4 +2,4 @@ import { MenuListContextValues, MenuListState } from './MenuList.types';
2
2
  /**
3
3
  * Function that renders the final JSX of the component
4
4
  */
5
- export declare const renderMenuList: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
5
+ export declare const renderMenuList_unstable: (state: MenuListState, contextValues: MenuListContextValues) => JSX.Element;
@@ -3,29 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenuList = void 0;
6
+ exports.renderMenuList_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
11
 
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
-
14
- var menuListContext_1 = /*#__PURE__*/require("../../contexts/menuListContext");
12
+ const menuListContext_1 = /*#__PURE__*/require("../../contexts/menuListContext");
15
13
  /**
16
14
  * Function that renders the final JSX of the component
17
15
  */
18
16
 
19
17
 
20
- var renderMenuList = function (state, contextValues) {
21
- var _a = react_utilities_1.getSlots(state),
22
- slots = _a.slots,
23
- slotProps = _a.slotProps;
24
-
18
+ const renderMenuList_unstable = (state, contextValues) => {
19
+ const {
20
+ slots,
21
+ slotProps
22
+ } = react_utilities_1.getSlots(state);
25
23
  return React.createElement(menuListContext_1.MenuListProvider, {
26
24
  value: contextValues.menuList
27
- }, React.createElement(slots.root, tslib_1.__assign({}, slotProps.root)));
25
+ }, React.createElement(slots.root, { ...slotProps.root
26
+ }));
28
27
  };
29
28
 
30
- exports.renderMenuList = renderMenuList;
29
+ exports.renderMenuList_unstable = renderMenuList_unstable;
31
30
  //# sourceMappingURL=renderMenuList.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,IAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;AAEA;;AAEG;;;AACI,IAAM,cAAc,GAAG,UAAC,KAAD,EAAuB,aAAvB,EAA2D;AACjF,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SACE,KAAA,CAAA,aAAA,CAAC,iBAAA,CAAA,gBAAD,EAAiB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAjB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,uBAAuB,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;AACpG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,iBAAA,CAAA,gBAAD,EAAiB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAjB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
@@ -3,4 +3,4 @@ import type { MenuListProps, MenuListState } from './MenuList.types';
3
3
  /**
4
4
  * Returns the props and state required to render the component
5
5
  */
6
- export declare const useMenuList: (props: MenuListProps, ref: React.Ref<HTMLElement>) => MenuListState;
6
+ export declare const useMenuList_unstable: (props: MenuListProps, ref: React.Ref<HTMLElement>) => MenuListState;