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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (353) hide show
  1. package/CHANGELOG.json +115 -31
  2. package/CHANGELOG.md +27 -16
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +107 -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 +25 -20
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 -7
  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 +2 -3
  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 +20 -24
  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 +2 -3
  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 +2 -3
  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 +1 -1
  106. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  107. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  108. package/lib/components/MenuList/useMenuList.js +11 -8
  109. package/lib/components/MenuList/useMenuList.js.map +1 -1
  110. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  111. package/lib/components/MenuList/useMenuListContextValues.js +1 -1
  112. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  113. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -1
  114. package/lib/components/MenuList/useMenuListStyles.js +2 -2
  115. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  116. package/lib/components/MenuPopover/MenuPopover.js +6 -6
  117. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  118. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  119. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  120. package/lib/components/MenuPopover/renderMenuPopover.js +1 -1
  121. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  122. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  123. package/lib/components/MenuPopover/useMenuPopover.js +11 -8
  124. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  125. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  126. package/lib/components/MenuPopover/useMenuPopoverStyles.js +3 -2
  127. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  128. package/lib/components/MenuSplitGroup/MenuSplitGroup.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 +1 -1
  147. package/lib/components/MenuTrigger/MenuTrigger.js +7 -6
  148. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  149. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +4 -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 -1
  154. package/lib/components/MenuTrigger/useMenuTrigger.js +177 -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-commonjs/MenuSplitGroup.d.ts +1 -0
  177. package/lib-commonjs/MenuSplitGroup.js +10 -0
  178. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  179. package/lib-commonjs/components/Menu/Menu.js +3 -3
  180. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  181. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  182. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  183. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  184. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  185. package/lib-commonjs/components/Menu/useMenu.js +30 -26
  186. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  187. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  188. package/lib-commonjs/components/Menu/useMenuContextValues.js +3 -3
  189. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  190. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  191. package/lib-commonjs/components/MenuDivider/MenuDivider.js +4 -4
  192. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  193. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  194. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  195. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +3 -3
  196. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  197. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  198. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +6 -3
  199. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  200. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  201. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  202. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  203. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  204. package/lib-commonjs/components/MenuGroup/MenuGroup.js +5 -5
  205. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  206. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  207. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  208. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +3 -3
  209. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  210. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  211. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +6 -3
  212. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  213. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  214. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +3 -3
  215. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  216. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +1 -1
  217. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -5
  218. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  219. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  220. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +4 -4
  221. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  222. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  223. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  224. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +3 -3
  225. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  226. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  227. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +7 -4
  228. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  229. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  230. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  231. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  232. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  233. package/lib-commonjs/components/MenuItem/MenuItem.js +4 -4
  234. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  235. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  236. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  237. package/lib-commonjs/components/MenuItem/renderMenuItem.js +4 -6
  238. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  239. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +1 -1
  240. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  241. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  242. package/lib-commonjs/components/MenuItem/useMenuItem.js +11 -16
  243. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  244. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -1
  245. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +27 -30
  246. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  247. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  248. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  249. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  250. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  251. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +4 -6
  252. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  253. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  254. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +6 -6
  255. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  256. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +1 -1
  257. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +7 -7
  258. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  259. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  260. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +4 -4
  261. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  262. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  263. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +4 -6
  264. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  265. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  266. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +6 -6
  267. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  268. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -1
  269. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +7 -7
  270. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  271. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  272. package/lib-commonjs/components/MenuList/MenuList.js +5 -5
  273. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  274. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +4 -4
  275. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  276. package/lib-commonjs/components/MenuList/renderMenuList.js +3 -3
  277. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  278. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  279. package/lib-commonjs/components/MenuList/useMenuList.js +12 -9
  280. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  281. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  282. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +3 -3
  283. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  284. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -1
  285. package/lib-commonjs/components/MenuList/useMenuListStyles.js +6 -6
  286. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  287. package/lib-commonjs/components/MenuPopover/MenuPopover.js +3 -3
  288. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  289. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  290. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  291. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +3 -3
  292. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  293. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  294. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +12 -9
  295. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  296. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -1
  297. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +8 -6
  298. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  299. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  300. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  301. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  302. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  303. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  304. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  305. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  306. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  307. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  308. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  309. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  310. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  311. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  312. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  313. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  314. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  315. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  316. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  317. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  318. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -6
  319. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  320. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +4 -2
  321. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  322. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  323. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  324. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  325. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +186 -7
  326. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  327. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  328. package/lib-commonjs/contexts/menuContext.js +3 -3
  329. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  330. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  331. package/lib-commonjs/contexts/menuGroupContext.js +3 -3
  332. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  333. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  334. package/lib-commonjs/contexts/menuListContext.js +3 -3
  335. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  336. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  337. package/lib-commonjs/contexts/menuTriggerContext.js +3 -3
  338. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  339. package/lib-commonjs/index.d.ts +11 -10
  340. package/lib-commonjs/index.js +16 -14
  341. package/lib-commonjs/index.js.map +1 -1
  342. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +1 -1
  343. package/lib-commonjs/selectable/useCheckmarkStyles.js +6 -6
  344. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  345. package/lib-commonjs/utils/useIsSubmenu.js +1 -1
  346. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  347. package/package.json +12 -14
  348. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  349. package/lib/components/MenuTrigger/useTriggerElement.js +0 -166
  350. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  351. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  352. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -181
  353. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -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,7 +5,7 @@ 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
@@ -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,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,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) => MenuDividerState;
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,7 +6,7 @@ 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
@@ -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,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,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,7 +5,7 @@ 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
@@ -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,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,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) => MenuGroupHeaderState;
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,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useMenuItem } from './useMenuItem';
3
- import { renderMenuItem } from './renderMenuItem';
4
- import { useMenuItemStyles } from './useMenuItemStyles';
2
+ import { useMenuItem_unstable } from './useMenuItem';
3
+ import { renderMenuItem_unstable } from './renderMenuItem';
4
+ import { useMenuItemStyles_unstable } from './useMenuItemStyles';
5
5
  /**
6
- * Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
6
+ * Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
7
7
  */
8
8
 
9
9
  export const MenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useMenuItem(props, ref);
11
- useMenuItemStyles(state);
12
- return renderMenuItem(state);
10
+ const state = useMenuItem_unstable(props, ref);
11
+ useMenuItemStyles_unstable(state);
12
+ return renderMenuItem_unstable(state);
13
13
  });
14
14
  MenuItem.displayName = 'MenuItem';
15
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;AAIA;;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,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CAL2D,CAArD;AAOP,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,14 @@
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);
11
+ } = getSlots(state);
13
12
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
13
  }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
15
14
  }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
@@ -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,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
+ {"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;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/useCharacterSearch.ts"],"names":[],"mappings":"AACA,SAAS,kBAAT,QAAmC,gCAAnC;AAGA,OAAO,MAAM,kBAAkB,GAAG,CAAC,KAAD,EAAuB,GAAvB,KAA4D;AAC5F,QAAM,wBAAwB,GAAG,kBAAkB,CAAC,OAAO,IAAI,OAAO,CAAC,wBAApB,CAAnD;AAEA,QAAM;AAAE,IAAA,SAAS,EAAE;AAAb,MAA+B,KAAK,CAAC,IAA3C;;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,CAAC,IAAG;;;AACzB,QAAI,aAAJ,EAAmB;AACjB,MAAA,aAAa,CAAC,CAAD,CAAb;AACD;;AAED,QAAI,CAAA,CAAA,EAAA,GAAA,CAAC,CAAC,GAAF,MAAK,IAAL,IAAK,EAAA,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAK,EAAA,CAAE,MAAP,IAAgB,CAApB,EAAuB;AACrB;AACD;;AAED,QAAI,GAAG,CAAC,OAAR,EAAiB;AACf,MAAA,wBAAwB,KAAA,IAAxB,IAAA,wBAAwB,KAAA,KAAA,CAAxB,GAAwB,KAAA,CAAxB,GAAA,wBAAwB,CAAG,CAAH,EAAM,GAAG,CAAC,OAAV,CAAxB;AACD;AACF,GAZD;;AAcA,SAAO,KAAP;AACD,CAnBM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItem/useCharacterSearch.ts"],"names":[],"mappings":"AACA,SAAS,2BAAT,QAA4C,gCAA5C;AAGA,OAAO,MAAM,kBAAkB,GAAG,CAAC,KAAD,EAAuB,GAAvB,KAA4D;AAC5F,QAAM,wBAAwB,GAAG,2BAA2B,CAAC,OAAO,IAAI,OAAO,CAAC,wBAApB,CAA5D;AAEA,QAAM;AAAE,IAAA,SAAS,EAAE;AAAb,MAA+B,KAAK,CAAC,IAA3C;;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,CAAC,IAAG;;;AACzB,QAAI,aAAJ,EAAmB;AACjB,MAAA,aAAa,CAAC,CAAD,CAAb;AACD;;AAED,QAAI,CAAA,CAAA,EAAA,GAAA,CAAC,CAAC,GAAF,MAAK,IAAL,IAAK,EAAA,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAK,EAAA,CAAE,MAAP,IAAgB,CAApB,EAAuB;AACrB;AACD;;AAED,QAAI,GAAG,CAAC,OAAR,EAAiB;AACf,MAAA,wBAAwB,KAAA,IAAxB,IAAA,wBAAwB,KAAA,KAAA,CAAxB,GAAwB,KAAA,CAAxB,GAAA,wBAAwB,CAAG,CAAH,EAAM,GAAG,CAAC,OAAV,CAAxB;AACD;AACF,GAZD;;AAcA,SAAO,KAAP;AACD,CAnBM","sourceRoot":""}
@@ -1,10 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { MenuItemProps, MenuItemSlots, MenuItemState } from './MenuItem.types';
3
- /**
4
- * Consts listing which props are shorthand props.
5
- */
6
- export declare const menuItemSlots: Array<keyof MenuItemSlots>;
2
+ import type { MenuItemProps, MenuItemState } from './MenuItem.types';
7
3
  /**
8
4
  * Returns the props and state required to render the component
9
5
  */
10
- export declare const useMenuItem: (props: MenuItemProps, ref: React.Ref<HTMLElement>) => MenuItemState;
6
+ export declare const useMenuItem_unstable: (props: MenuItemProps, ref: React.Ref<HTMLElement>) => MenuItemState;