@fluentui/react-menu 0.0.0-nightlyd3bf09bf8120211201.1 → 0.0.0-nightlye1926bfeca20220204.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. package/CHANGELOG.json +157 -29
  2. package/CHANGELOG.md +33 -16
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +109 -66
  5. package/lib/MenuSplitGroup.d.ts +1 -0
  6. package/lib/MenuSplitGroup.js +2 -0
  7. package/lib/MenuSplitGroup.js.map +1 -0
  8. package/lib/components/Menu/Menu.js +6 -6
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/renderMenu.d.ts +1 -1
  11. package/lib/components/Menu/renderMenu.js +1 -1
  12. package/lib/components/Menu/renderMenu.js.map +1 -1
  13. package/lib/components/Menu/useMenu.d.ts +2 -2
  14. package/lib/components/Menu/useMenu.js +33 -25
  15. package/lib/components/Menu/useMenu.js.map +1 -1
  16. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  17. package/lib/components/Menu/useMenuContextValues.js +1 -1
  18. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  19. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  20. package/lib/components/MenuDivider/MenuDivider.js +7 -7
  21. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  22. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  23. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  24. package/lib/components/MenuDivider/renderMenuDivider.js +3 -2
  25. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  26. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  27. package/lib/components/MenuDivider/useMenuDivider.js +4 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  29. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  30. package/lib/components/MenuDivider/useMenuDividerStyles.js +3 -2
  31. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  32. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  33. package/lib/components/MenuGroup/MenuGroup.js +9 -9
  34. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  35. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  36. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  37. package/lib/components/MenuGroup/renderMenuGroup.js +3 -2
  38. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  39. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  40. package/lib/components/MenuGroup/useMenuGroup.js +4 -1
  41. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  42. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  43. package/lib/components/MenuGroup/useMenuGroupContextValues.js +1 -1
  44. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  45. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  46. package/lib/components/MenuGroup/useMenuGroupStyles.js +2 -2
  47. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  48. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  49. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +7 -7
  50. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  51. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  52. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -2
  54. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  56. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +6 -3
  57. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  58. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  59. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +3 -2
  60. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  61. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  62. package/lib/components/MenuItem/MenuItem.js +7 -9
  63. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  64. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  65. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  66. package/lib/components/MenuItem/renderMenuItem.js +9 -4
  67. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  68. package/lib/components/MenuItem/useCharacterSearch.js +2 -2
  69. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  70. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  71. package/lib/components/MenuItem/useMenuItem.js +11 -16
  72. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  73. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  74. package/lib/components/MenuItem/useMenuItemStyles.js +21 -22
  75. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  76. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  77. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  78. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  79. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  80. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +8 -4
  81. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  82. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  83. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  84. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  85. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  86. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +6 -6
  87. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  88. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  89. package/lib/components/MenuItemRadio/MenuItemRadio.js +7 -7
  90. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  91. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  92. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +8 -4
  93. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  94. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  95. package/lib/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  96. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  97. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  98. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +6 -6
  99. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  100. package/lib/components/MenuList/MenuList.d.ts +1 -1
  101. package/lib/components/MenuList/MenuList.js +9 -9
  102. package/lib/components/MenuList/MenuList.js.map +1 -1
  103. package/lib/components/MenuList/MenuList.types.d.ts +4 -4
  104. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  105. package/lib/components/MenuList/renderMenuList.js +3 -2
  106. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  107. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  108. package/lib/components/MenuList/useMenuList.js +11 -8
  109. package/lib/components/MenuList/useMenuList.js.map +1 -1
  110. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  111. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  112. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  113. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  114. package/lib/components/MenuList/useMenuListStyles.js +2 -2
  115. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  116. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  117. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  119. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  120. package/lib/components/MenuPopover/renderMenuPopover.js +5 -3
  121. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  122. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  123. package/lib/components/MenuPopover/useMenuPopover.js +11 -8
  124. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  125. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  126. package/lib/components/MenuPopover/useMenuPopoverStyles.js +3 -2
  127. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  128. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  129. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  130. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  131. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  132. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  133. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  134. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  135. package/lib/components/MenuSplitGroup/index.js +6 -0
  136. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  137. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  138. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  139. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  140. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  141. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  142. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  143. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  144. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  145. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  146. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  147. package/lib/components/MenuTrigger/MenuTrigger.js +5 -4
  148. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  149. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +5 -2
  150. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  151. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  152. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  153. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  154. package/lib/components/MenuTrigger/useMenuTrigger.js +167 -5
  155. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  156. package/lib/contexts/menuContext.d.ts +1 -1
  157. package/lib/contexts/menuContext.js +1 -1
  158. package/lib/contexts/menuContext.js.map +1 -1
  159. package/lib/contexts/menuGroupContext.d.ts +1 -1
  160. package/lib/contexts/menuGroupContext.js +1 -1
  161. package/lib/contexts/menuGroupContext.js.map +1 -1
  162. package/lib/contexts/menuListContext.d.ts +1 -1
  163. package/lib/contexts/menuListContext.js +1 -1
  164. package/lib/contexts/menuListContext.js.map +1 -1
  165. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  166. package/lib/contexts/menuTriggerContext.js +1 -1
  167. package/lib/contexts/menuTriggerContext.js.map +1 -1
  168. package/lib/index.d.ts +11 -10
  169. package/lib/index.js +11 -10
  170. package/lib/index.js.map +1 -1
  171. package/lib/selectable/useCheckmarkStyles.d.ts +1 -1
  172. package/lib/selectable/useCheckmarkStyles.js +2 -2
  173. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  174. package/lib/utils/useIsSubmenu.js +2 -2
  175. package/lib/utils/useIsSubmenu.js.map +1 -1
  176. package/lib/utils/useOnMenuEnter.js.map +1 -1
  177. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  178. package/lib-commonjs/MenuSplitGroup.js +10 -0
  179. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  180. package/lib-commonjs/components/Menu/Menu.js +3 -3
  181. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  182. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  183. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  184. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  185. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  186. package/lib-commonjs/components/Menu/useMenu.js +38 -31
  187. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  188. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  189. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  190. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  191. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  192. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  193. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  194. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  195. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  196. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +5 -4
  197. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  198. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  199. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +6 -3
  200. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  201. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  202. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  203. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  204. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  205. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  206. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  207. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  208. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  209. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +5 -4
  210. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  211. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  212. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +6 -3
  213. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  214. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  215. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  216. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  217. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  218. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  219. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  220. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  221. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  222. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  223. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  224. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  225. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +5 -4
  226. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  227. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  228. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +7 -4
  229. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  230. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  231. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  232. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  233. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  234. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -7
  235. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  236. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  237. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  238. package/lib-commonjs/components/MenuItem/renderMenuItem.js +11 -7
  239. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  240. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  241. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  242. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  243. package/lib-commonjs/components/MenuItem/useMenuItem.js +11 -16
  244. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  245. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  246. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +30 -29
  247. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  248. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  249. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  250. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  251. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  252. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +10 -7
  253. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  254. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  255. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  256. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  257. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  258. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  259. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  260. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  261. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  262. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  263. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  264. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +10 -7
  265. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  266. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  267. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  268. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  269. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  270. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  271. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  272. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  273. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  274. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  275. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  276. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  277. package/lib-commonjs/components/MenuList/renderMenuList.js +5 -4
  278. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  279. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  280. package/lib-commonjs/components/MenuList/useMenuList.js +12 -9
  281. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  282. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  283. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  284. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  285. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  286. package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
  287. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  288. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  289. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  290. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  291. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  292. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +7 -5
  293. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  294. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  295. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +12 -9
  296. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  297. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  298. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +8 -6
  299. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  300. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  301. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  302. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  303. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  304. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  305. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  306. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  307. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  308. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  309. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  310. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  311. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  312. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  313. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  314. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  315. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  316. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  317. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  318. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  319. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +3 -2
  320. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  321. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +5 -2
  322. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  323. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  324. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  325. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  326. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +176 -7
  327. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  328. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  329. package/lib-commonjs/contexts/menuContext.js +3 -3
  330. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  331. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  332. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  333. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  334. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  335. package/lib-commonjs/contexts/menuListContext.js +3 -3
  336. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  337. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  338. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  339. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  340. package/lib-commonjs/index.d.ts +11 -10
  341. package/lib-commonjs/index.js +16 -14
  342. package/lib-commonjs/index.js.map +1 -1
  343. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +1 -1
  344. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  345. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  346. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  347. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  348. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  349. package/package.json +13 -15
  350. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  351. package/lib/components/MenuTrigger/useTriggerElement.js +0 -165
  352. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  353. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  354. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -180
  355. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -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;
@@ -1,4 +1,4 @@
1
- export function useMenuContextValues(state) {
1
+ export function useMenuContextValues_unstable(state) {
2
2
  const {
3
3
  open,
4
4
  setOpen,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenuContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,oBAAV,CAA+B,KAA/B,EAA+C;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;AASJ,IAAA,SATI;AAUJ,IAAA,cAVI;AAWJ,IAAA,SAXI;AAYJ,IAAA,aAZI;AAaJ,IAAA,QAbI;AAcJ,IAAA,kBAdI;AAeJ,IAAA;AAfI,MAgBF,KAhBJ,CADmD,CAmBnD;;AACA,QAAM,IAAI,GAAG;AACX,IAAA,IADW;AAEX,IAAA,OAFW;AAGX,IAAA,oBAHW;AAIX,IAAA,aAJW;AAKX,IAAA,oBALW;AAMX,IAAA,UANW;AAOX,IAAA,WAPW;AAQX,IAAA,aARW;AASX,IAAA,SATW;AAUX,IAAA,cAVW;AAWX,IAAA,SAXW;AAYX,IAAA,aAZW;AAaX,IAAA,QAbW;AAcX,IAAA,kBAdW;AAeX,IAAA;AAfW,GAAb;AAkBA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/useMenuContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,6BAAV,CAAwC,KAAxC,EAAwD;AAC5D,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;AASJ,IAAA,SATI;AAUJ,IAAA,cAVI;AAWJ,IAAA,SAXI;AAYJ,IAAA,aAZI;AAaJ,IAAA,QAbI;AAcJ,IAAA,kBAdI;AAeJ,IAAA;AAfI,MAgBF,KAhBJ,CAD4D,CAmB5D;;AACA,QAAM,IAAI,GAAG;AACX,IAAA,IADW;AAEX,IAAA,OAFW;AAGX,IAAA,oBAHW;AAIX,IAAA,aAJW;AAKX,IAAA,oBALW;AAMX,IAAA,UANW;AAOX,IAAA,WAPW;AAQX,IAAA,aARW;AASX,IAAA,SATW;AAUX,IAAA,cAVW;AAWX,IAAA,SAXW;AAYX,IAAA,aAZW;AAaX,IAAA,QAbW;AAcX,IAAA,kBAdW;AAeX,IAAA;AAfW,GAAb;AAkBA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","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>;
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuDivider } from './useMenuDivider';
3
- import { useMenuDividerStyles } from './useMenuDividerStyles';
4
- import { renderMenuDivider } from './renderMenuDivider';
2
+ import { useMenuDivider_unstable } from './useMenuDivider';
3
+ import { useMenuDividerStyles_unstable } from './useMenuDividerStyles';
4
+ import { renderMenuDivider_unstable } from './renderMenuDivider';
5
5
  /**
6
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
6
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
7
7
  */
8
8
 
9
9
  export const MenuDivider = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useMenuDivider(props, ref);
11
- useMenuDividerStyles(state);
12
- return renderMenuDivider(state);
10
+ const state = useMenuDivider_unstable(props, ref);
11
+ useMenuDividerStyles_unstable(state);
12
+ return renderMenuDivider_unstable(state);
13
13
  });
14
14
  MenuDivider.displayName = 'MenuDivider';
15
15
  //# sourceMappingURL=MenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,cAAc,CAAC,KAAD,EAAQ,GAAR,CAA5B;AACA,EAAA,oBAAoB,CAAC,KAAD,CAApB;AAEA,SAAO,iBAAiB,CAAC,KAAD,CAAxB;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AAIA;;AAEG;;AACH,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,uBAAuB,CAAC,KAAD,EAAQ,GAAR,CAArC;AACA,EAAA,6BAA6B,CAAC,KAAD,CAA7B;AAEA,SAAO,0BAA0B,CAAC,KAAD,CAAjC;AACD,CALiE,CAA3D;AAOP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, 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;
@@ -5,11 +5,12 @@ import { getSlots } from '@fluentui/react-utilities';
5
5
  * slots to children.
6
6
  */
7
7
 
8
- export const renderMenuDivider = state => {
8
+ export const renderMenuDivider_unstable = state => {
9
9
  const {
10
10
  slots,
11
11
  slotProps
12
12
  } = getSlots(state);
13
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
13
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ });
14
15
  };
15
16
  //# sourceMappingURL=renderMenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","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;
@@ -3,8 +3,11 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
3
3
  * Given user props, returns state and render function for a MenuDivider.
4
4
  */
5
5
 
6
- export const useMenuDivider = (props, ref) => {
6
+ export const useMenuDivider_unstable = (props, ref) => {
7
7
  return {
8
+ components: {
9
+ root: 'div'
10
+ },
8
11
  root: getNativeElementProps('div', {
9
12
  role: 'presentation',
10
13
  'aria-hidden': true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDivider.ts"],"names":[],"mappings":"AAAA,SAAS,qBAAT,QAAsC,2BAAtC;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAAG,CAAC,KAAD,EAA0B,GAA1B,KAA2E;AACvG,SAAO;AACL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,IAAI,EAAE,cAD2B;AAEjC,qBAAe,IAFkB;AAGjC,SAAG,KAH8B;AAIjC,MAAA;AAJiC,KAAR;AADtB,GAAP;AAQD,CATM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDivider.ts"],"names":[],"mappings":"AAAA,SAAS,qBAAT,QAAsC,2BAAtC;AAIA;;AAEG;;AACH,OAAO,MAAM,uBAAuB,GAAG,CAAC,KAAD,EAA0B,GAA1B,KAA2E;AAChH,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,IAAI,EAAE,cAD2B;AAEjC,qBAAe,IAFkB;AAGjC,SAAG,KAH8B;AAIjC,MAAA;AAJiC,KAAR;AAJtB,GAAP;AAWD,CAZM","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import type { MenuDividerState } from './MenuDivider.types';
2
2
  export declare const menuDividerClassName = "fui-MenuDivider";
3
- export declare const useMenuDividerStyles: (state: MenuDividerState) => import("@fluentui/react-utilities").ComponentState<import("./MenuDivider.types").MenuDividerSlots>;
3
+ export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
@@ -1,4 +1,5 @@
1
- import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
1
+ import { shorthands, mergeClasses, __styles } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
2
3
  export const menuDividerClassName = 'fui-MenuDivider';
3
4
 
4
5
  const useStyles = /*#__PURE__*/__styles({
@@ -15,7 +16,7 @@ const useStyles = /*#__PURE__*/__styles({
15
16
  "d": [".f1mpe4l3{height:1px;}", ".fvjh0tl{margin-top:4px;}", ".f1rnx978{margin-right:-5px;}", ".f1q7jvqi{margin-left:-5px;}", ".fd1gkq{margin-bottom:4px;}", ".f14z66ap{width:auto;}", ".fn4h89p{background-color:var(--colorNeutralStroke2);}"]
16
17
  });
17
18
 
18
- export const useMenuDividerStyles = state => {
19
+ export const useMenuDividerStyles_unstable = state => {
19
20
  const styles = useStyles();
20
21
  state.root.className = mergeClasses(menuDividerClassName, styles.root, state.root.className);
21
22
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA4B;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA4B;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuGroupProps } from './MenuGroup.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuGroup, using the `useMenuGroup` hook.
4
+ * Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
5
5
  */
6
6
  export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
@@ -1,17 +1,17 @@
1
1
  import * as React from 'react';
2
- import { useMenuGroup } from './useMenuGroup';
3
- import { renderMenuGroup } from './renderMenuGroup';
4
- import { useMenuGroupContextValues } from './useMenuGroupContextValues';
5
- import { useMenuGroupStyles } from './useMenuGroupStyles';
2
+ import { useMenuGroup_unstable } from './useMenuGroup';
3
+ import { renderMenuGroup_unstable } from './renderMenuGroup';
4
+ import { useMenuGroupContextValues_unstable } from './useMenuGroupContextValues';
5
+ import { useMenuGroupStyles_unstable } from './useMenuGroupStyles';
6
6
  /**
7
- * Define a styled MenuGroup, using the `useMenuGroup` hook.
7
+ * Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
8
8
  */
9
9
 
10
10
  export const MenuGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
11
- const state = useMenuGroup(props, ref);
12
- const contextValues = useMenuGroupContextValues(state);
13
- useMenuGroupStyles(state);
14
- return renderMenuGroup(state, contextValues);
11
+ const state = useMenuGroup_unstable(props, ref);
12
+ const contextValues = useMenuGroupContextValues_unstable(state);
13
+ useMenuGroupStyles_unstable(state);
14
+ return renderMenuGroup_unstable(state, contextValues);
15
15
  });
16
16
  MenuGroup.displayName = 'MenuGroup';
17
17
  //# sourceMappingURL=MenuGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/MenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AACA,SAAS,yBAAT,QAA0C,6BAA1C;AAGA,SAAS,kBAAT,QAAmC,sBAAnC;AAEA;;AAEG;;AACH,OAAO,MAAM,SAAS,gBAAwC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC5F,QAAM,KAAK,GAAG,YAAY,CAAC,KAAD,EAAQ,GAAR,CAA1B;AACA,QAAM,aAAa,GAAG,yBAAyB,CAAC,KAAD,CAA/C;AAEA,EAAA,kBAAkB,CAAC,KAAD,CAAlB;AAEA,SAAO,eAAe,CAAC,KAAD,EAAQ,aAAR,CAAtB;AACD,CAP6D,CAAvD;AASP,SAAS,CAAC,WAAV,GAAwB,WAAxB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/MenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AACA,SAAS,kCAAT,QAAmD,6BAAnD;AAGA,SAAS,2BAAT,QAA4C,sBAA5C;AAEA;;AAEG;;AACH,OAAO,MAAM,SAAS,gBAAwC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC5F,QAAM,KAAK,GAAG,qBAAqB,CAAC,KAAD,EAAQ,GAAR,CAAnC;AACA,QAAM,aAAa,GAAG,kCAAkC,CAAC,KAAD,CAAxD;AAEA,EAAA,2BAA2B,CAAC,KAAD,CAA3B;AAEA,SAAO,wBAAwB,CAAC,KAAD,EAAQ,aAAR,CAA/B;AACD,CAP6D,CAAvD;AASP,SAAS,CAAC,WAAV,GAAwB,WAAxB","sourceRoot":""}
@@ -1,7 +1,7 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
2
- import { MenuGroupContextValue } from '../../contexts/menuGroupContext';
1
+ import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
+ import type { MenuGroupContextValue } from '../../contexts/menuGroupContext';
3
3
  export declare type MenuGroupSlots = {
4
- root: IntrinsicShorthandProps<'div'>;
4
+ root: IntrinsicSlotProps<'div'>;
5
5
  };
6
6
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
7
7
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -3,4 +3,4 @@ import { MenuGroupContextValues, MenuGroupState } from './MenuGroup.types';
3
3
  * Redefine the render function to add slots. Reuse the menugroup structure but add
4
4
  * slots to children.
5
5
  */
6
- export declare const renderMenuGroup: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
6
+ export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
@@ -6,13 +6,14 @@ import { MenuGroupContextProvider } from '../../contexts/menuGroupContext';
6
6
  * slots to children.
7
7
  */
8
8
 
9
- export const renderMenuGroup = (state, contextValues) => {
9
+ export const renderMenuGroup_unstable = (state, contextValues) => {
10
10
  const {
11
11
  slots,
12
12
  slotProps
13
13
  } = getSlots(state);
14
14
  return /*#__PURE__*/React.createElement(MenuGroupContextProvider, {
15
15
  value: contextValues.menuGroup
16
- }, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root)));
16
+ }, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
17
+ }));
17
18
  };
18
19
  //# sourceMappingURL=renderMenuGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/renderMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,wBAAT,QAAyC,iCAAzC;AAEA;;;AAGG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AAC9F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,wBAAD,EAAyB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAzB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADF,CADF;AAKD,CARM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/renderMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,wBAAT,QAAyC,iCAAzC;AAEA;;;AAGG;;AACH,OAAO,MAAM,wBAAwB,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AACvG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,wBAAD,EAAyB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAzB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CARM","sourceRoot":""}
@@ -3,4 +3,4 @@ import { MenuGroupProps, MenuGroupState } from './MenuGroup.types';
3
3
  /**
4
4
  * Given user props, returns state and render function for a MenuGroup.
5
5
  */
6
- export declare function useMenuGroup(props: MenuGroupProps, ref: React.Ref<HTMLElement>): MenuGroupState;
6
+ export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React.Ref<HTMLElement>): MenuGroupState;
@@ -3,9 +3,12 @@ import { getNativeElementProps, useId } from '@fluentui/react-utilities';
3
3
  * Given user props, returns state and render function for a MenuGroup.
4
4
  */
5
5
 
6
- export function useMenuGroup(props, ref) {
6
+ export function useMenuGroup_unstable(props, ref) {
7
7
  const headerId = useId('menu-group');
8
8
  return {
9
+ components: {
10
+ root: 'div'
11
+ },
9
12
  root: getNativeElementProps('div', {
10
13
  ref,
11
14
  'aria-labelledby': headerId,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroup.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,KAAhC,QAA6C,2BAA7C;AAGA;;AAEG;;AACH,OAAM,SAAU,YAAV,CAAuB,KAAvB,EAA8C,GAA9C,EAAyE;AAC7E,QAAM,QAAQ,GAAG,KAAK,CAAC,YAAD,CAAtB;AAEA,SAAO;AACL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GADiC;AAEjC,yBAAmB,QAFc;AAGjC,MAAA,IAAI,EAAE,OAH2B;AAIjC,SAAG;AAJ8B,KAAR,CADtB;AAOL,IAAA,QAAQ,EAAE;AAPL,GAAP;AASD","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroup.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,KAAhC,QAA6C,2BAA7C;AAGA;;AAEG;;AACH,OAAM,SAAU,qBAAV,CAAgC,KAAhC,EAAuD,GAAvD,EAAkF;AACtF,QAAM,QAAQ,GAAG,KAAK,CAAC,YAAD,CAAtB;AAEA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GADiC;AAEjC,yBAAmB,QAFc;AAGjC,MAAA,IAAI,EAAE,OAH2B;AAIjC,SAAG;AAJ8B,KAAR,CAJtB;AAUL,IAAA,QAAQ,EAAE;AAVL,GAAP;AAYD","sourceRoot":""}
@@ -1,2 +1,2 @@
1
1
  import type { MenuGroupContextValues, MenuGroupState } from './MenuGroup.types';
2
- export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGroupContextValues;
2
+ export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export function useMenuGroupContextValues(state) {
2
+ export function useMenuGroupContextValues_unstable(state) {
3
3
  const {
4
4
  headerId
5
5
  } = state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroupContextValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,yBAAV,CAAoC,KAApC,EAAyD;AAC7D,QAAM;AAAE,IAAA;AAAF,MAAe,KAArB;AACA,QAAM,SAAS,GAAG,KAAK,CAAC,OAAN,CAAc,OAAO;AAAE,IAAA;AAAF,GAAP,CAAd,EAAoC,CAAC,QAAD,CAApC,CAAlB;AAEA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroupContextValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,kCAAV,CAA6C,KAA7C,EAAkE;AACtE,QAAM;AAAE,IAAA;AAAF,MAAe,KAArB;AACA,QAAM,SAAS,GAAG,KAAK,CAAC,OAAN,CAAc,OAAO;AAAE,IAAA;AAAF,GAAP,CAAd,EAAoC,CAAC,QAAD,CAApC,CAAlB;AAEA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import type { MenuGroupState } from './MenuGroup.types';
2
2
  export declare const menuGroupClassName = "fui-MenuGroup";
3
- export declare const useMenuGroupStyles: (state: MenuGroupState) => MenuGroupState;
3
+ export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
@@ -1,6 +1,6 @@
1
- import { mergeClasses } from '@fluentui/react-make-styles';
1
+ import { mergeClasses } from '@griffel/react';
2
2
  export const menuGroupClassName = 'fui-MenuGroup';
3
- export const useMenuGroupStyles = state => {
3
+ export const useMenuGroupStyles_unstable = state => {
4
4
  state.root.className = mergeClasses(menuGroupClassName, state.root.className);
5
5
  return state;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroupStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,6BAA7B;AAGA,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AAEP,OAAO,MAAM,kBAAkB,GAAI,KAAD,IAA0C;AAC1E,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,kBAAD,EAAqB,KAAK,CAAC,IAAN,CAAW,SAAhC,CAAnC;AAEA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroupStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AAEP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0C;AACnF,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,kBAAD,EAAqB,KAAK,CAAC,IAAN,CAAW,SAAhC,CAAnC;AAEA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuGroupHeaderProps } from './MenuGroupHeader.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuGroupHeader, using the `useMenuGroupHeader` hook.
4
+ * Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
5
5
  */
6
6
  export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuGroupHeader } from './useMenuGroupHeader';
3
- import { useMenuGroupHeaderStyles } from './useMenuGroupHeaderStyles';
4
- import { renderMenuGroupHeader } from './renderMenuGroupHeader';
2
+ import { useMenuGroupHeader_unstable } from './useMenuGroupHeader';
3
+ import { useMenuGroupHeaderStyles_unstable } from './useMenuGroupHeaderStyles';
4
+ import { renderMenuGroupHeader_unstable } from './renderMenuGroupHeader';
5
5
  /**
6
- * Define a styled MenuGroupHeader, using the `useMenuGroupHeader` hook.
6
+ * Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
7
7
  */
8
8
 
9
9
  export const MenuGroupHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useMenuGroupHeader(props, ref);
11
- useMenuGroupHeaderStyles(state);
12
- return renderMenuGroupHeader(state);
10
+ const state = useMenuGroupHeader_unstable(props, ref);
11
+ useMenuGroupHeaderStyles_unstable(state);
12
+ return renderMenuGroupHeader_unstable(state);
13
13
  });
14
14
  MenuGroupHeader.displayName = 'MenuGroupHeader';
15
15
  //# sourceMappingURL=MenuGroupHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroupHeader/MenuGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,kBAAT,QAAmC,sBAAnC;AACA,SAAS,wBAAT,QAAyC,4BAAzC;AACA,SAAS,qBAAT,QAAsC,yBAAtC;AAIA;;AAEG;;AACH,OAAO,MAAM,eAAe,gBAA8C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxG,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AACA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B;AACD,CALyE,CAAnE;AAOP,eAAe,CAAC,WAAhB,GAA8B,iBAA9B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroupHeader/MenuGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,2BAAT,QAA4C,sBAA5C;AACA,SAAS,iCAAT,QAAkD,4BAAlD;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AAIA;;AAEG;;AACH,OAAO,MAAM,eAAe,gBAA8C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxG,QAAM,KAAK,GAAG,2BAA2B,CAAC,KAAD,EAAQ,GAAR,CAAzC;AACA,EAAA,iCAAiC,CAAC,KAAD,CAAjC;AAEA,SAAO,8BAA8B,CAAC,KAAD,CAArC;AACD,CALyE,CAAnE;AAOP,eAAe,CAAC,WAAhB,GAA8B,iBAA9B","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 MenuGroupHeaderSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: IntrinsicSlotProps<'div'>;
4
4
  };
5
5
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
6
6
  export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -3,4 +3,4 @@ import { MenuGroupHeaderState } from './MenuGroupHeader.types';
3
3
  * Redefine the render function to add slots. Reuse the menugroupheader structure but add
4
4
  * slots to children.
5
5
  */
6
- export declare const renderMenuGroupHeader: (state: MenuGroupHeaderState) => JSX.Element;
6
+ export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
@@ -5,11 +5,12 @@ import { getSlots } from '@fluentui/react-utilities';
5
5
  * slots to children.
6
6
  */
7
7
 
8
- export const renderMenuGroupHeader = state => {
8
+ export const renderMenuGroupHeader_unstable = state => {
9
9
  const {
10
10
  slots,
11
11
  slotProps
12
12
  } = getSlots(state);
13
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
13
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ });
14
15
  };
15
16
  //# sourceMappingURL=renderMenuGroupHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroupHeader/renderMenuGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAgC;AACnE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAuB,KAAvB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroupHeader/renderMenuGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,8BAA8B,GAAI,KAAD,IAAgC;AAC5E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAuB,KAAvB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -3,4 +3,4 @@ import { MenuGroupHeaderProps, MenuGroupHeaderState } from './MenuGroupHeader.ty
3
3
  /**
4
4
  * Given user props, returns state and render function for a MenuGroupHeader.
5
5
  */
6
- export declare function useMenuGroupHeader(props: MenuGroupHeaderProps, ref: React.Ref<HTMLElement>): MenuGroupHeaderState;
6
+ export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React.Ref<HTMLElement>): MenuGroupHeaderState;
@@ -1,14 +1,17 @@
1
- import { useMenuGroupContext } from '../../contexts/menuGroupContext';
1
+ import { useMenuGroupContext_unstable } from '../../contexts/menuGroupContext';
2
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Given user props, returns state and render function for a MenuGroupHeader.
5
5
  */
6
6
 
7
- export function useMenuGroupHeader(props, ref) {
7
+ export function useMenuGroupHeader_unstable(props, ref) {
8
8
  const {
9
9
  headerId: id
10
- } = useMenuGroupContext();
10
+ } = useMenuGroupContext_unstable();
11
11
  return {
12
+ components: {
13
+ root: 'div'
14
+ },
12
15
  root: getNativeElementProps('div', {
13
16
  ref,
14
17
  id,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroupHeader/useMenuGroupHeader.ts"],"names":[],"mappings":"AACA,SAAS,mBAAT,QAAoC,iCAApC;AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;AAEG;;AACH,OAAM,SAAU,kBAAV,CAA6B,KAA7B,EAA0D,GAA1D,EAAqF;AACzF,QAAM;AAAE,IAAA,QAAQ,EAAE;AAAZ,MAAmB,mBAAmB,EAA5C;AAEA,SAAO;AACL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GADiC;AAEjC,MAAA,EAFiC;AAGjC,SAAG;AAH8B,KAAR;AADtB,GAAP;AAOD","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroupHeader/useMenuGroupHeader.ts"],"names":[],"mappings":"AACA,SAAS,4BAAT,QAA6C,iCAA7C;AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;AAEG;;AACH,OAAM,SAAU,2BAAV,CACJ,KADI,EAEJ,GAFI,EAEuB;AAE3B,QAAM;AAAE,IAAA,QAAQ,EAAE;AAAZ,MAAmB,4BAA4B,EAArD;AAEA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GADiC;AAEjC,MAAA,EAFiC;AAGjC,SAAG;AAH8B,KAAR;AAJtB,GAAP;AAUD","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import type { MenuGroupHeaderState } from './MenuGroupHeader.types';
2
2
  export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
3
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => import("@fluentui/react-utilities").ComponentState<import("./MenuGroupHeader.types").MenuGroupHeaderSlots>;
3
+ export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
@@ -1,4 +1,5 @@
1
- import { mergeClasses, __styles } from '@fluentui/react-make-styles';
1
+ import { mergeClasses, __styles } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
2
3
  export const menuGroupHeaderClassName = 'fui-MenuGroupHeader';
3
4
 
4
5
  const useStyles = /*#__PURE__*/__styles({
@@ -16,7 +17,7 @@ const useStyles = /*#__PURE__*/__styles({
16
17
  "d": [".fy9rknc{font-size:var(--fontSizeBase200);}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".fjlbh76{padding-left:12px;}", ".f11qrl6u{padding-right:12px;}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1d2rq10{height:32px;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"]
17
18
  });
18
19
 
19
- export const useMenuGroupHeaderStyles = state => {
20
+ export const useMenuGroupHeaderStyles_unstable = state => {
20
21
  const styles = useStyles();
21
22
  state.root.className = mergeClasses(menuGroupHeaderClassName, styles.root, state.root.className);
22
23
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroupHeader/useMenuGroupHeaderStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;AAGA,OAAO,MAAM,wBAAwB,GAAG,qBAAjC;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AAaA,OAAO,MAAM,wBAAwB,GAAI,KAAD,IAAgC;AACtE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,wBAAD,EAA2B,MAAM,CAAC,IAAlC,EAAwC,KAAK,CAAC,IAAN,CAAW,SAAnD,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroupHeader/useMenuGroupHeaderStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,gBAAzC;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,wBAAwB,GAAG,qBAAjC;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AAaA,OAAO,MAAM,iCAAiC,GAAI,KAAD,IAAgC;AAC/E,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,wBAAD,EAA2B,MAAM,CAAC,IAAlC,EAAwC,KAAK,CAAC,IAAN,CAAW,SAAnD,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuItemProps } from './MenuItem.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
4
+ * Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
5
5
  */
6
6
  export declare const MenuItem: ForwardRefComponent<MenuItemProps>;
@@ -1,17 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuItem } from './useMenuItem';
3
- import { renderMenuItem } from './renderMenuItem';
4
- import { useMenuItemStyles } from './useMenuItemStyles';
5
- import { useCheckmarkStyles } from '../../selectable/index';
2
+ import { useMenuItem_unstable } from './useMenuItem';
3
+ import { renderMenuItem_unstable } from './renderMenuItem';
4
+ import { useMenuItemStyles_unstable } from './useMenuItemStyles';
6
5
  /**
7
- * Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
6
+ * Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
8
7
  */
9
8
 
10
9
  export const MenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
11
- const state = useMenuItem(props, ref);
12
- useMenuItemStyles(state);
13
- useCheckmarkStyles(state);
14
- return renderMenuItem(state);
10
+ const state = useMenuItem_unstable(props, ref);
11
+ useMenuItemStyles_unstable(state);
12
+ return renderMenuItem_unstable(state);
15
13
  });
16
14
  MenuItem.displayName = 'MenuItem';
17
15
  //# sourceMappingURL=MenuItem.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,WAAT,QAA4B,eAA5B;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,kBAAT,QAAmC,wBAAnC;AAKA;;AAEG;;AACH,OAAO,MAAM,QAAQ,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,WAAW,CAAC,KAAD,EAAQ,GAAR,CAAzB;AAEA,EAAA,iBAAiB,CAAC,KAAD,CAAjB;AACA,EAAA,kBAAkB,CAAC,KAAD,CAAlB;AACA,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CAN2D,CAArD;AAQP,QAAQ,CAAC,WAAT,GAAuB,UAAvB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,QAAqC,eAArC;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AAIA;;AAEG;;AACH,OAAO,MAAM,QAAQ,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,oBAAoB,CAAC,KAAD,EAAQ,GAAR,CAAlC;AAEA,EAAA,0BAA0B,CAAC,KAAD,CAA1B;AACA,SAAO,uBAAuB,CAAC,KAAD,CAA9B;AACD,CAL2D,CAArD;AAOP,QAAQ,CAAC,WAAT,GAAuB,UAAvB","sourceRoot":""}
@@ -1,28 +1,28 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
2
  export declare type MenuItemSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: IntrinsicSlotProps<'div'>;
4
4
  /**
5
5
  * Icon slot rendered before children content
6
6
  */
7
- icon?: IntrinsicShorthandProps<'span'>;
7
+ icon?: IntrinsicSlotProps<'span'>;
8
8
  /**
9
9
  * A helper slot for alignment when a menu item is used with selectable menuitems
10
10
  * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
11
11
  */
12
- checkmark?: IntrinsicShorthandProps<'span'>;
12
+ checkmark?: IntrinsicSlotProps<'span'>;
13
13
  /**
14
14
  * Icon slot that shows the indicator for a submenu
15
15
  */
16
- submenuIndicator?: IntrinsicShorthandProps<'span'>;
16
+ submenuIndicator?: IntrinsicSlotProps<'span'>;
17
17
  /**
18
18
  * Component children are placed in this slot
19
19
  * Avoid using the `children` property in this slot in favour of Component children whenever possible
20
20
  */
21
- content: IntrinsicShorthandProps<'span'>;
21
+ content?: IntrinsicSlotProps<'span'>;
22
22
  /**
23
23
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
24
24
  */
25
- secondaryContent?: IntrinsicShorthandProps<'span'>;
25
+ secondaryContent?: IntrinsicSlotProps<'span'>;
26
26
  };
27
27
  declare type MenuItemCommons = {
28
28
  /**
@@ -2,4 +2,4 @@ import type { MenuItemState } from './MenuItem.types';
2
2
  /**
3
3
  * Function that renders the final JSX of the component
4
4
  */
5
- export declare const renderMenuItem: (state: MenuItemState) => JSX.Element;
5
+ export declare const renderMenuItem_unstable: (state: MenuItemState) => JSX.Element;
@@ -1,15 +1,20 @@
1
1
  import * as React from 'react';
2
2
  import { getSlots } from '@fluentui/react-utilities';
3
- import { menuItemSlots } from './useMenuItem';
4
3
  /**
5
4
  * Function that renders the final JSX of the component
6
5
  */
7
6
 
8
- export const renderMenuItem = state => {
7
+ export const renderMenuItem_unstable = state => {
9
8
  const {
10
9
  slots,
11
10
  slotProps
12
- } = getSlots(state, menuItemSlots);
13
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), /*#__PURE__*/React.createElement(slots.checkmark, Object.assign({}, slotProps.checkmark)), /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), /*#__PURE__*/React.createElement(slots.content, Object.assign({}, slotProps.content)), /*#__PURE__*/React.createElement(slots.secondaryContent, Object.assign({}, slotProps.secondaryContent)), /*#__PURE__*/React.createElement(slots.submenuIndicator, Object.assign({}, slotProps.submenuIndicator)));
11
+ } = getSlots(state);
12
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
13
+ }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
14
+ }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
15
+ }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
16
+ }), /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
17
+ }), /*#__PURE__*/React.createElement(slots.submenuIndicator, { ...slotProps.submenuIndicator
18
+ }));
14
19
  };
15
20
  //# sourceMappingURL=renderMenuItem.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/renderMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,aAAT,QAA8B,eAA9B;AAGA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAAI,KAAD,IAAyB;AACrD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,EAAuB,aAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,SAAf,CAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,OAAf,CAAd,CAHF,eAIE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,gBAAf,CAAvB,CAJF,eAKE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,gBAAf,CAAvB,CALF,CADF;AASD,CAZM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItem/renderMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAyB;AAC9D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHF,eAIE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJF,eAKE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CALF,CADF;AASD,CAZM","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import { useMenuListContext } from '../../contexts/menuListContext';
1
+ import { useMenuListContext_unstable } from '../../contexts/menuListContext';
2
2
  export const useCharacterSearch = (state, ref) => {
3
- const setFocusByFirstCharacter = useMenuListContext(context => context.setFocusByFirstCharacter);
3
+ const setFocusByFirstCharacter = useMenuListContext_unstable(context => context.setFocusByFirstCharacter);
4
4
  const {
5
5
  onKeyDown: onKeyDownBase
6
6
  } = state.root;