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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (414) hide show
  1. package/CHANGELOG.json +451 -34
  2. package/CHANGELOG.md +102 -22
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +140 -71
  5. package/lib/MenuSplitGroup.d.ts +1 -0
  6. package/lib/MenuSplitGroup.js +2 -0
  7. package/lib/MenuSplitGroup.js.map +1 -0
  8. package/lib/components/Menu/Menu.js +7 -7
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/Menu.types.d.ts +1 -1
  11. package/lib/components/Menu/renderMenu.d.ts +1 -1
  12. package/lib/components/Menu/renderMenu.js +1 -1
  13. package/lib/components/Menu/renderMenu.js.map +1 -1
  14. package/lib/components/Menu/useMenu.d.ts +2 -2
  15. package/lib/components/Menu/useMenu.js +119 -128
  16. package/lib/components/Menu/useMenu.js.map +1 -1
  17. package/lib/components/Menu/useMenuContextValues.d.ts +1 -1
  18. package/lib/components/Menu/useMenuContextValues.js +35 -33
  19. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  20. package/lib/components/MenuDivider/MenuDivider.d.ts +1 -1
  21. package/lib/components/MenuDivider/MenuDivider.js +8 -8
  22. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  23. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  24. package/lib/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  25. package/lib/components/MenuDivider/renderMenuDivider.js +7 -7
  26. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  27. package/lib/components/MenuDivider/useMenuDivider.d.ts +1 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js +9 -7
  29. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  30. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +2 -1
  31. package/lib/components/MenuDivider/useMenuDividerStyles.js +7 -5
  32. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  33. package/lib/components/MenuGroup/MenuGroup.d.ts +1 -1
  34. package/lib/components/MenuGroup/MenuGroup.js +10 -8
  35. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  37. package/lib/components/MenuGroup/index.d.ts +1 -0
  38. package/lib/components/MenuGroup/index.js +1 -0
  39. package/lib/components/MenuGroup/index.js.map +1 -1
  40. package/lib/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  41. package/lib/components/MenuGroup/renderMenuGroup.js +7 -7
  42. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  43. package/lib/components/MenuGroup/useMenuGroup.d.ts +1 -1
  44. package/lib/components/MenuGroup/useMenuGroup.js +10 -7
  45. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  46. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  47. package/lib/components/MenuGroup/useMenuGroupContextValues.js +8 -8
  48. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  49. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  50. package/lib/components/MenuGroup/useMenuGroupStyles.js +7 -0
  51. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  52. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  53. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +8 -8
  54. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  55. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  56. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  57. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +7 -7
  58. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  59. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  60. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +13 -8
  61. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  62. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +2 -1
  63. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +7 -5
  64. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  65. package/lib/components/MenuItem/MenuItem.d.ts +1 -1
  66. package/lib/components/MenuItem/MenuItem.js +8 -10
  67. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  68. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  69. package/lib/components/MenuItem/renderMenuItem.d.ts +1 -1
  70. package/lib/components/MenuItem/renderMenuItem.js +12 -8
  71. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  72. package/lib/components/MenuItem/useCharacterSearch.js +7 -7
  73. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  74. package/lib/components/MenuItem/useMenuItem.d.ts +2 -6
  75. package/lib/components/MenuItem/useMenuItem.js +35 -45
  76. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  77. package/lib/components/MenuItem/useMenuItemStyles.d.ts +2 -1
  78. package/lib/components/MenuItem/useMenuItemStyles.js +31 -27
  79. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  80. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  81. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +8 -8
  82. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  83. package/lib/components/MenuItemCheckbox/index.d.ts +1 -0
  84. package/lib/components/MenuItemCheckbox/index.js +1 -0
  85. package/lib/components/MenuItemCheckbox/index.js.map +1 -1
  86. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  87. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +11 -8
  88. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  89. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  90. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +14 -15
  91. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  92. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  93. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +8 -5
  94. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  95. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  96. package/lib/components/MenuItemRadio/MenuItemRadio.js +8 -8
  97. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  98. package/lib/components/MenuItemRadio/index.d.ts +1 -0
  99. package/lib/components/MenuItemRadio/index.js +1 -0
  100. package/lib/components/MenuItemRadio/index.js.map +1 -1
  101. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  102. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +11 -8
  103. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  104. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  105. package/lib/components/MenuItemRadio/useMenuItemRadio.js +14 -14
  106. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  107. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +2 -1
  108. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +8 -5
  109. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  110. package/lib/components/MenuList/MenuList.d.ts +1 -1
  111. package/lib/components/MenuList/MenuList.js +10 -10
  112. package/lib/components/MenuList/MenuList.js.map +1 -1
  113. package/lib/components/MenuList/MenuList.types.d.ts +12 -10
  114. package/lib/components/MenuList/index.d.ts +1 -1
  115. package/lib/components/MenuList/index.js +0 -1
  116. package/lib/components/MenuList/index.js.map +1 -1
  117. package/lib/components/MenuList/renderMenuList.d.ts +1 -1
  118. package/lib/components/MenuList/renderMenuList.js +7 -7
  119. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  120. package/lib/components/MenuList/useMenuList.d.ts +1 -1
  121. package/lib/components/MenuList/useMenuList.js +70 -87
  122. package/lib/components/MenuList/useMenuList.js.map +1 -1
  123. package/lib/components/MenuList/useMenuListContextValues.d.ts +1 -1
  124. package/lib/components/MenuList/useMenuListContextValues.js +19 -17
  125. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  126. package/lib/components/MenuList/useMenuListStyles.d.ts +2 -1
  127. package/lib/components/MenuList/useMenuListStyles.js +9 -7
  128. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  129. package/lib/components/MenuPopover/MenuPopover.js +7 -7
  130. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  131. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  132. package/lib/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  133. package/lib/components/MenuPopover/renderMenuPopover.js +9 -7
  134. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  135. package/lib/components/MenuPopover/useMenuPopover.d.ts +3 -3
  136. package/lib/components/MenuPopover/useMenuPopover.js +35 -41
  137. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  138. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +2 -1
  139. package/lib/components/MenuPopover/useMenuPopoverStyles.js +13 -8
  140. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  141. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  142. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  143. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  144. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  145. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  146. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  147. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  148. package/lib/components/MenuSplitGroup/index.js +6 -0
  149. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  150. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  151. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  152. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  153. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  154. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  155. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  156. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  157. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  158. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  159. package/lib/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  160. package/lib/components/MenuTrigger/MenuTrigger.js +6 -5
  161. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  162. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  163. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  164. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  165. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  166. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  167. package/lib/components/MenuTrigger/useMenuTrigger.js +166 -5
  168. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  169. package/lib/contexts/menuContext.d.ts +1 -1
  170. package/lib/contexts/menuContext.js +5 -11
  171. package/lib/contexts/menuContext.js.map +1 -1
  172. package/lib/contexts/menuGroupContext.d.ts +1 -1
  173. package/lib/contexts/menuGroupContext.js +3 -5
  174. package/lib/contexts/menuGroupContext.js.map +1 -1
  175. package/lib/contexts/menuListContext.d.ts +1 -1
  176. package/lib/contexts/menuListContext.js +7 -17
  177. package/lib/contexts/menuListContext.js.map +1 -1
  178. package/lib/contexts/menuTriggerContext.d.ts +1 -1
  179. package/lib/contexts/menuTriggerContext.js +3 -5
  180. package/lib/contexts/menuTriggerContext.js.map +1 -1
  181. package/lib/index.d.ts +11 -10
  182. package/lib/index.js +11 -10
  183. package/lib/index.js.map +1 -1
  184. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  185. package/lib/selectable/useCheckmarkStyles.js +4 -4
  186. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  187. package/lib/utils/useIsSubmenu.js +3 -5
  188. package/lib/utils/useIsSubmenu.js.map +1 -1
  189. package/lib/utils/useOnMenuEnter.js +16 -14
  190. package/lib/utils/useOnMenuEnter.js.map +1 -1
  191. package/lib-commonjs/Menu.js +1 -1
  192. package/lib-commonjs/MenuDivider.js +1 -1
  193. package/lib-commonjs/MenuGroup.js +1 -1
  194. package/lib-commonjs/MenuGroupHeader.js +1 -1
  195. package/lib-commonjs/MenuItem.js +1 -1
  196. package/lib-commonjs/MenuItemCheckbox.js +1 -1
  197. package/lib-commonjs/MenuItemRadio.js +1 -1
  198. package/lib-commonjs/MenuList.js +1 -1
  199. package/lib-commonjs/MenuPopover.js +1 -1
  200. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  201. package/lib-commonjs/MenuSplitGroup.js +10 -0
  202. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  203. package/lib-commonjs/MenuTrigger.js +1 -1
  204. package/lib-commonjs/components/Menu/Menu.js +7 -7
  205. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  206. package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
  207. package/lib-commonjs/components/Menu/index.js +1 -1
  208. package/lib-commonjs/components/Menu/renderMenu.d.ts +1 -1
  209. package/lib-commonjs/components/Menu/renderMenu.js +5 -5
  210. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  211. package/lib-commonjs/components/Menu/useMenu.d.ts +2 -2
  212. package/lib-commonjs/components/Menu/useMenu.js +130 -141
  213. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  214. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +1 -1
  215. package/lib-commonjs/components/Menu/useMenuContextValues.js +37 -35
  216. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  217. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +1 -1
  218. package/lib-commonjs/components/MenuDivider/MenuDivider.js +9 -9
  219. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  220. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  221. package/lib-commonjs/components/MenuDivider/index.js +1 -1
  222. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +1 -1
  223. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +11 -12
  224. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  225. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +1 -1
  226. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +12 -11
  227. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  228. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +2 -1
  229. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +11 -7
  230. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  231. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +1 -1
  232. package/lib-commonjs/components/MenuGroup/MenuGroup.js +12 -9
  233. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  234. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +3 -3
  235. package/lib-commonjs/components/MenuGroup/index.d.ts +1 -0
  236. package/lib-commonjs/components/MenuGroup/index.js +3 -1
  237. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  238. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +1 -1
  239. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +12 -13
  240. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  241. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +1 -1
  242. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +13 -11
  243. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  244. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +1 -1
  245. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +11 -11
  246. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  247. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  248. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +18 -0
  249. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  250. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +1 -1
  251. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +9 -9
  252. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  253. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  254. package/lib-commonjs/components/MenuGroupHeader/index.js +1 -1
  255. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +1 -1
  256. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +11 -12
  257. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  258. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +1 -1
  259. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +16 -12
  260. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  261. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +2 -1
  262. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +11 -7
  263. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  264. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +1 -1
  265. package/lib-commonjs/components/MenuItem/MenuItem.js +9 -12
  266. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  267. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  268. package/lib-commonjs/components/MenuItem/index.js +1 -1
  269. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +1 -1
  270. package/lib-commonjs/components/MenuItem/renderMenuItem.js +16 -14
  271. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  272. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +7 -7
  273. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  274. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +2 -6
  275. package/lib-commonjs/components/MenuItem/useMenuItem.js +42 -53
  276. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  277. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +2 -1
  278. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +40 -33
  279. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  280. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +1 -1
  281. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +9 -9
  282. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  283. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +1 -0
  284. package/lib-commonjs/components/MenuItemCheckbox/index.js +3 -1
  285. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  286. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +1 -1
  287. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +15 -14
  288. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  289. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +1 -1
  290. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +19 -21
  291. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  292. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  293. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +12 -7
  294. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  295. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +1 -1
  296. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +9 -9
  297. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  298. package/lib-commonjs/components/MenuItemRadio/index.d.ts +1 -0
  299. package/lib-commonjs/components/MenuItemRadio/index.js +3 -1
  300. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  301. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +1 -1
  302. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +15 -14
  303. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  304. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +1 -1
  305. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +19 -20
  306. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  307. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +2 -1
  308. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +12 -7
  309. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  310. package/lib-commonjs/components/MenuList/MenuList.d.ts +1 -1
  311. package/lib-commonjs/components/MenuList/MenuList.js +11 -11
  312. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  313. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +12 -10
  314. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  315. package/lib-commonjs/components/MenuList/index.js +1 -3
  316. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  317. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +1 -1
  318. package/lib-commonjs/components/MenuList/renderMenuList.js +12 -13
  319. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  320. package/lib-commonjs/components/MenuList/useMenuList.d.ts +1 -1
  321. package/lib-commonjs/components/MenuList/useMenuList.js +77 -95
  322. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  323. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +1 -1
  324. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +21 -19
  325. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  326. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +2 -1
  327. package/lib-commonjs/components/MenuList/useMenuListStyles.js +12 -9
  328. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  329. package/lib-commonjs/components/MenuPopover/MenuPopover.js +8 -8
  330. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  331. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  332. package/lib-commonjs/components/MenuPopover/index.js +1 -1
  333. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +1 -1
  334. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +14 -13
  335. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  336. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +3 -3
  337. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +43 -50
  338. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  339. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +2 -1
  340. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +17 -10
  341. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  342. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  343. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  344. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  345. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +14 -0
  346. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  347. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  348. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  349. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  350. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  351. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  352. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  353. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  354. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  355. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  356. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  357. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  358. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  359. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  360. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +2 -1
  361. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +6 -5
  362. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  363. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +6 -3
  364. package/lib-commonjs/components/MenuTrigger/index.js +1 -1
  365. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +1 -1
  366. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +5 -5
  367. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  368. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -2
  369. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +174 -7
  370. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  371. package/lib-commonjs/components/index.js +1 -1
  372. package/lib-commonjs/contexts/menuContext.d.ts +1 -1
  373. package/lib-commonjs/contexts/menuContext.js +6 -12
  374. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  375. package/lib-commonjs/contexts/menuGroupContext.d.ts +1 -1
  376. package/lib-commonjs/contexts/menuGroupContext.js +5 -7
  377. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  378. package/lib-commonjs/contexts/menuListContext.d.ts +1 -1
  379. package/lib-commonjs/contexts/menuListContext.js +8 -18
  380. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  381. package/lib-commonjs/contexts/menuTriggerContext.d.ts +1 -1
  382. package/lib-commonjs/contexts/menuTriggerContext.js +5 -7
  383. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  384. package/lib-commonjs/index.d.ts +11 -10
  385. package/lib-commonjs/index.js +17 -15
  386. package/lib-commonjs/index.js.map +1 -1
  387. package/lib-commonjs/selectable/index.js +1 -1
  388. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  389. package/lib-commonjs/selectable/useCheckmarkStyles.js +7 -7
  390. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  391. package/lib-commonjs/utils/index.js +1 -1
  392. package/lib-commonjs/utils/useIsSubmenu.js +5 -7
  393. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  394. package/lib-commonjs/utils/useOnMenuEnter.js +18 -16
  395. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  396. package/package.json +15 -17
  397. package/lib/common/isConformant.d.ts +0 -4
  398. package/lib/common/isConformant.js +0 -12
  399. package/lib/common/isConformant.js.map +0 -1
  400. package/lib/common/mockUseMenuContext.d.ts +0 -7
  401. package/lib/common/mockUseMenuContext.js +0 -36
  402. package/lib/common/mockUseMenuContext.js.map +0 -1
  403. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  404. package/lib/components/MenuTrigger/useTriggerElement.js +0 -179
  405. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  406. package/lib-commonjs/common/isConformant.d.ts +0 -4
  407. package/lib-commonjs/common/isConformant.js +0 -23
  408. package/lib-commonjs/common/isConformant.js.map +0 -1
  409. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  410. package/lib-commonjs/common/mockUseMenuContext.js +0 -47
  411. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
  412. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  413. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -195
  414. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenu.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,IAAA,gBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;;AACA,IAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AACA,IAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,IAAA,OAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AACA,IAAA,cAAA,gBAAA,OAAA,CAA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L,SAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,OAAjB,MAAwB,IAAxB,IAAwB,EAAA,KAAA,KAAA,CAAxB,GAAwB,KAAA,CAAxB,GAAwB,EAAA,CAAE,KAAF,EAAxB;AACD;AACF;;AAED,IAAA,uBAAuB,CAAC,OAAxB,GAAkC,KAAlC;AACA,IAAA,kBAAkB,CAAC,OAAnB,GAA6B,KAA7B;AACA,IAAA,eAAe,CAAC,OAAhB,GAA0B,KAA1B;AACD,GAhBD,EAgBG,CAAC,KAAK,CAAC,UAAP,EAAmB,KAAK,CAAC,SAAzB,EAAoC,IAApC,EAA0C,UAA1C,EAAsD,qBAAtD,EAA6E,sBAA7E,CAhBH;AAkBA,SAAO,CAAC,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,KAAT,EAAgB,OAAhB,CAAP;AACD,CAvID","sourceRoot":""}
@@ -1,2 +1,2 @@
1
1
  import type { MenuContextValues, MenuState } from './Menu.types';
2
- export declare function useMenuContextValues(state: MenuState): MenuContextValues;
2
+ export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
@@ -3,46 +3,48 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuContextValues = void 0;
6
+ exports.useMenuContextValues_unstable = void 0;
7
7
 
8
- function useMenuContextValues(state) {
9
- var open = state.open,
10
- setOpen = state.setOpen,
11
- onCheckedValueChange = state.onCheckedValueChange,
12
- checkedValues = state.checkedValues,
13
- defaultCheckedValues = state.defaultCheckedValues,
14
- openOnHover = state.openOnHover,
15
- openOnContext = state.openOnContext,
16
- triggerRef = state.triggerRef,
17
- triggerId = state.triggerId,
18
- menuPopoverRef = state.menuPopoverRef,
19
- isSubmenu = state.isSubmenu,
20
- hasCheckmarks = state.hasCheckmarks,
21
- hasIcons = state.hasIcons,
22
- persistOnItemClick = state.persistOnItemClick,
23
- inline = state.inline; // This context is created with "@fluentui/react-context-selector", these is no sense to memoize it
8
+ function useMenuContextValues_unstable(state) {
9
+ const {
10
+ open,
11
+ setOpen,
12
+ onCheckedValueChange,
13
+ checkedValues,
14
+ defaultCheckedValues,
15
+ openOnHover,
16
+ openOnContext,
17
+ triggerRef,
18
+ triggerId,
19
+ menuPopoverRef,
20
+ isSubmenu,
21
+ hasCheckmarks,
22
+ hasIcons,
23
+ persistOnItemClick,
24
+ inline
25
+ } = state; // This context is created with "@fluentui/react-context-selector", these is no sense to memoize it
24
26
 
25
- var menu = {
26
- open: open,
27
- setOpen: setOpen,
28
- onCheckedValueChange: onCheckedValueChange,
29
- checkedValues: checkedValues,
30
- defaultCheckedValues: defaultCheckedValues,
31
- triggerRef: triggerRef,
32
- openOnHover: openOnHover,
33
- openOnContext: openOnContext,
34
- triggerId: triggerId,
35
- menuPopoverRef: menuPopoverRef,
36
- isSubmenu: isSubmenu,
37
- hasCheckmarks: hasCheckmarks,
38
- hasIcons: hasIcons,
39
- persistOnItemClick: persistOnItemClick,
40
- inline: inline
27
+ const menu = {
28
+ open,
29
+ setOpen,
30
+ onCheckedValueChange,
31
+ checkedValues,
32
+ defaultCheckedValues,
33
+ triggerRef,
34
+ openOnHover,
35
+ openOnContext,
36
+ triggerId,
37
+ menuPopoverRef,
38
+ isSubmenu,
39
+ hasCheckmarks,
40
+ hasIcons,
41
+ persistOnItemClick,
42
+ inline
41
43
  };
42
44
  return {
43
- menu: menu
45
+ menu
44
46
  };
45
47
  }
46
48
 
47
- exports.useMenuContextValues = useMenuContextValues;
49
+ exports.useMenuContextValues_unstable = useMenuContextValues_unstable;
48
50
  //# sourceMappingURL=useMenuContextValues.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenuContextValues.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,oBAAhB,CAAqC,KAArC,EAAqD;AAEjD,MAAA,IAAI,GAeF,KAAK,CAfH,IAAJ;AAAA,MACA,OAAO,GAcL,KAAK,CAdA,OADP;AAA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B,6BAAhB,CAA8C,KAA9C,EAA8D;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;;AAvCD,OAAA,CAAA,6BAAA,GAAA,6BAAA","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import type { MenuDividerProps } from './MenuDivider.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
4
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
5
5
  */
6
6
  export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
@@ -5,22 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MenuDivider = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var useMenuDivider_1 = /*#__PURE__*/require("./useMenuDivider");
10
+ const useMenuDivider_1 = /*#__PURE__*/require("./useMenuDivider");
11
11
 
12
- var useMenuDividerStyles_1 = /*#__PURE__*/require("./useMenuDividerStyles");
12
+ const useMenuDividerStyles_1 = /*#__PURE__*/require("./useMenuDividerStyles");
13
13
 
14
- var renderMenuDivider_1 = /*#__PURE__*/require("./renderMenuDivider");
14
+ const renderMenuDivider_1 = /*#__PURE__*/require("./renderMenuDivider");
15
15
  /**
16
- * Define a styled MenuDivider, using the `useMenuDivider` hook.
16
+ * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
17
17
  */
18
18
 
19
19
 
20
- exports.MenuDivider = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useMenuDivider_1.useMenuDivider(props, ref);
22
- useMenuDividerStyles_1.useMenuDividerStyles(state);
23
- return renderMenuDivider_1.renderMenuDivider(state);
20
+ exports.MenuDivider = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useMenuDivider_1.useMenuDivider_unstable(props, ref);
22
+ useMenuDividerStyles_1.useMenuDividerStyles_unstable(state);
23
+ return renderMenuDivider_1.renderMenuDivider_unstable(state);
24
24
  });
25
25
  exports.MenuDivider.displayName = 'MenuDivider';
26
26
  //# sourceMappingURL=MenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAC5F,MAAM,KAAK,GAAG,gBAAA,CAAA,cAAA,CAAe,KAAf,EAAsB,GAAtB,CAAd;AACA,EAAA,sBAAA,CAAA,oBAAA,CAAqB,KAArB;AAEA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP;AACD,CALiE,CAArD;AAOb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/MenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAChG,QAAM,KAAK,GAAG,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,EAA+B,GAA/B,CAAd;AACA,EAAA,sBAAA,CAAA,6BAAA,CAA8B,KAA9B;AAEA,SAAO,mBAAA,CAAA,0BAAA,CAA2B,KAA3B,CAAP;AACD,CALiE,CAArD;AAOb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuDividerSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
6
6
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuDivider.types"), exports);
10
10
 
@@ -3,4 +3,4 @@ import { MenuDividerState } from './MenuDivider.types';
3
3
  * Redefine the render function to add slots. Reuse the menudivider structure but add
4
4
  * slots to children.
5
5
  */
6
- export declare const renderMenuDivider: (state: MenuDividerState) => JSX.Element;
6
+ export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
@@ -3,26 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenuDivider = void 0;
6
+ exports.renderMenuDivider_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
11
-
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
11
  /**
14
12
  * Redefine the render function to add slots. Reuse the menudivider structure but add
15
13
  * slots to children.
16
14
  */
17
15
 
18
16
 
19
- var renderMenuDivider = function (state) {
20
- var _a = react_utilities_1.getSlots(state),
21
- slots = _a.slots,
22
- slotProps = _a.slotProps;
23
-
24
- return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root));
17
+ const renderMenuDivider_unstable = state => {
18
+ const {
19
+ slots,
20
+ slotProps
21
+ } = react_utilities_1.getSlots(state);
22
+ return React.createElement(slots.root, { ...slotProps.root
23
+ });
25
24
  };
26
25
 
27
- exports.renderMenuDivider = renderMenuDivider;
26
+ exports.renderMenuDivider_unstable = renderMenuDivider_unstable;
28
27
  //# sourceMappingURL=renderMenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;AAGG;;;AACI,IAAM,iBAAiB,GAAG,UAAC,KAAD,EAAwB;AACjD,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;AAGG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAA4B;AACpE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
@@ -3,4 +3,4 @@ import type { MenuDividerProps, MenuDividerState } from './MenuDivider.types';
3
3
  /**
4
4
  * Given user props, returns state and render function for a MenuDivider.
5
5
  */
6
- export declare const useMenuDivider: (props: MenuDividerProps, ref: React.Ref<HTMLElement>) => MenuDividerState;
6
+ export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React.Ref<HTMLElement>) => MenuDividerState;
@@ -3,26 +3,27 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuDivider = void 0;
6
+ exports.useMenuDivider_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
9
  /**
12
10
  * Given user props, returns state and render function for a MenuDivider.
13
11
  */
14
12
 
15
13
 
16
- var useMenuDivider = function (props, ref) {
14
+ const useMenuDivider_unstable = (props, ref) => {
17
15
  return {
18
- root: react_utilities_1.getNativeElementProps('div', tslib_1.__assign(tslib_1.__assign({
16
+ components: {
17
+ root: 'div'
18
+ },
19
+ root: react_utilities_1.getNativeElementProps('div', {
19
20
  role: 'presentation',
20
- 'aria-hidden': true
21
- }, props), {
22
- ref: ref
23
- }))
21
+ 'aria-hidden': true,
22
+ ...props,
23
+ ref
24
+ })
24
25
  };
25
26
  };
26
27
 
27
- exports.useMenuDivider = useMenuDivider;
28
+ exports.useMenuDivider_unstable = useMenuDivider_unstable;
28
29
  //# sourceMappingURL=useMenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDivider.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;AAEG;;;AACI,IAAM,cAAc,GAAG,UAAC,KAAD,EAA0B,GAA1B,EAAqD;AACjF,SAAO;AACL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA2B,OAAA,CAAA,QAAA,CAAA,OAAA,CAAA,QAAA,CAAA;AAC/B,MAAA,IAAI,EAAE,cADyB;AAE/B,qBAAe;AAFgB,KAAA,EAG5B,KAH4B,CAAA,EAGvB;AACR,MAAA,GAAG,EAAA;AADK,KAHuB,CAA3B;AADD,GAAP;AAQD,CATM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDivider.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;AAEG;;;AACI,MAAM,uBAAuB,GAAG,CAAC,KAAD,EAA0B,GAA1B,KAA2E;AAChH,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B;AACjC,MAAA,IAAI,EAAE,cAD2B;AAEjC,qBAAe,IAFkB;AAGjC,SAAG,KAH8B;AAIjC,MAAA;AAJiC,KAA7B;AAJD,GAAP;AAWD,CAZM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
@@ -1,2 +1,3 @@
1
1
  import type { MenuDividerState } from './MenuDivider.types';
2
- export declare const useMenuDividerStyles: (state: MenuDividerState) => import("@fluentui/react-utilities").ComponentState<import("./MenuDivider.types").MenuDividerSlots>;
2
+ export declare const menuDividerClassName = "fui-MenuDivider";
3
+ export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
@@ -3,11 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuDividerStyles = void 0;
6
+ exports.useMenuDividerStyles_unstable = exports.menuDividerClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+
12
+ exports.menuDividerClassName = 'fui-MenuDivider';
13
+
14
+ const useStyles = /*#__PURE__*/react_1.__styles({
11
15
  "root": {
12
16
  "Bqenvij": "f1mpe4l3",
13
17
  "B6of3ja": "fvjh0tl",
@@ -21,11 +25,11 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
21
25
  "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);}"]
22
26
  });
23
27
 
24
- var useMenuDividerStyles = function (state) {
25
- var styles = useStyles();
26
- state.root.className = react_make_styles_1.mergeClasses(styles.root, state.root.className);
28
+ const useMenuDividerStyles_unstable = state => {
29
+ const styles = useStyles();
30
+ state.root.className = react_1.mergeClasses(exports.menuDividerClassName, styles.root, state.root.className);
27
31
  return state;
28
32
  };
29
33
 
30
- exports.useMenuDividerStyles = useMenuDividerStyles;
34
+ exports.useMenuDividerStyles_unstable = useMenuDividerStyles_unstable;
31
35
  //# sourceMappingURL=useMenuDividerStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGA,IAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASO,IAAM,oBAAoB,GAAG,UAAC,KAAD,EAAwB;AAC1D,MAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,MAAM,CAAC,IAApB,EAA0B,KAAK,CAAC,IAAN,CAAW,SAArC,CAAvB;AAEA,SAAO,KAAP;AACD,CALM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAGa,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;;AAEb,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASO,MAAM,6BAA6B,GAAI,KAAD,IAA4B;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,oBAAb,EAAmC,MAAM,CAAC,IAA1C,EAAgD,KAAK,CAAC,IAAN,CAAW,SAA3D,CAAvB;AAEA,SAAO,KAAP;AACD,CALM;;AAAM,OAAA,CAAA,6BAAA,GAA6B,6BAA7B","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>;
@@ -5,22 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MenuGroup = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var useMenuGroup_1 = /*#__PURE__*/require("./useMenuGroup");
10
+ const useMenuGroup_1 = /*#__PURE__*/require("./useMenuGroup");
11
11
 
12
- var renderMenuGroup_1 = /*#__PURE__*/require("./renderMenuGroup");
12
+ const renderMenuGroup_1 = /*#__PURE__*/require("./renderMenuGroup");
13
13
 
14
- var useMenuGroupContextValues_1 = /*#__PURE__*/require("./useMenuGroupContextValues");
14
+ const useMenuGroupContextValues_1 = /*#__PURE__*/require("./useMenuGroupContextValues");
15
+
16
+ const useMenuGroupStyles_1 = /*#__PURE__*/require("./useMenuGroupStyles");
15
17
  /**
16
- * Define a styled MenuGroup, using the `useMenuGroup` hook.
18
+ * Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
17
19
  */
18
20
 
19
21
 
20
- exports.MenuGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useMenuGroup_1.useMenuGroup(props, ref);
22
- var contextValues = useMenuGroupContextValues_1.useMenuGroupContextValues(state);
23
- return renderMenuGroup_1.renderMenuGroup(state, contextValues);
22
+ exports.MenuGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
23
+ const state = useMenuGroup_1.useMenuGroup_unstable(props, ref);
24
+ const contextValues = useMenuGroupContextValues_1.useMenuGroupContextValues_unstable(state);
25
+ useMenuGroupStyles_1.useMenuGroupStyles_unstable(state);
26
+ return renderMenuGroup_1.renderMenuGroup_unstable(state, contextValues);
24
27
  });
25
28
  exports.MenuGroup.displayName = 'MenuGroup';
26
29
  //# sourceMappingURL=MenuGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/MenuGroup.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,cAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AACA,IAAA,2BAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,SAAA,gBAAiD,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AACxF,MAAM,KAAK,GAAG,cAAA,CAAA,YAAA,CAAa,KAAb,EAAoB,GAApB,CAAd;AACA,MAAM,aAAa,GAAG,2BAAA,CAAA,yBAAA,CAA0B,KAA1B,CAAtB;AAEA,SAAO,iBAAA,CAAA,eAAA,CAAgB,KAAhB,EAAuB,aAAvB,CAAP;AACD,CAL6D,CAAjD;AAOb,OAAA,CAAA,SAAA,CAAU,WAAV,GAAwB,WAAxB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/MenuGroup.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AACA,MAAA,2BAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGA,MAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,SAAA,gBAAiD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC5F,QAAM,KAAK,GAAG,cAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B,GAA7B,CAAd;AACA,QAAM,aAAa,GAAG,2BAAA,CAAA,kCAAA,CAAmC,KAAnC,CAAtB;AAEA,EAAA,oBAAA,CAAA,2BAAA,CAA4B,KAA5B;AAEA,SAAO,iBAAA,CAAA,wBAAA,CAAyB,KAAzB,EAAgC,aAAhC,CAAP;AACD,CAP6D,CAAjD;AASb,OAAA,CAAA,SAAA,CAAU,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, Slot } from '@fluentui/react-utilities';
2
+ import type { MenuGroupContextValue } from '../../contexts/menuGroupContext';
3
3
  export declare type MenuGroupSlots = {
4
- root: IntrinsicShorthandProps<'div'>;
4
+ root: Slot<'div'>;
5
5
  };
6
6
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
7
7
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -3,3 +3,4 @@ export * from './MenuGroup';
3
3
  export * from './renderMenuGroup';
4
4
  export * from './useMenuGroup';
5
5
  export * from './useMenuGroupContextValues';
6
+ export * from './useMenuGroupStyles';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuGroup.types"), exports);
10
10
 
@@ -15,4 +15,6 @@ tslib_1.__exportStar(require("./renderMenuGroup"), exports);
15
15
  tslib_1.__exportStar(require("./useMenuGroup"), exports);
16
16
 
17
17
  tslib_1.__exportStar(require("./useMenuGroupContextValues"), exports);
18
+
19
+ tslib_1.__exportStar(require("./useMenuGroupStyles"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,aAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,aAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -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;
@@ -3,30 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderMenuGroup = void 0;
6
+ exports.renderMenuGroup_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
11
 
12
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
-
14
- var menuGroupContext_1 = /*#__PURE__*/require("../../contexts/menuGroupContext");
12
+ const menuGroupContext_1 = /*#__PURE__*/require("../../contexts/menuGroupContext");
15
13
  /**
16
14
  * Redefine the render function to add slots. Reuse the menugroup structure but add
17
15
  * slots to children.
18
16
  */
19
17
 
20
18
 
21
- var renderMenuGroup = function (state, contextValues) {
22
- var _a = react_utilities_1.getSlots(state),
23
- slots = _a.slots,
24
- slotProps = _a.slotProps;
25
-
19
+ const renderMenuGroup_unstable = (state, contextValues) => {
20
+ const {
21
+ slots,
22
+ slotProps
23
+ } = react_utilities_1.getSlots(state);
26
24
  return React.createElement(menuGroupContext_1.MenuGroupContextProvider, {
27
25
  value: contextValues.menuGroup
28
- }, React.createElement(slots.root, tslib_1.__assign({}, slotProps.root)));
26
+ }, React.createElement(slots.root, { ...slotProps.root
27
+ }));
29
28
  };
30
29
 
31
- exports.renderMenuGroup = renderMenuGroup;
30
+ exports.renderMenuGroup_unstable = renderMenuGroup_unstable;
32
31
  //# sourceMappingURL=renderMenuGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/renderMenuGroup.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,IAAA,kBAAA,gBAAA,OAAA,CAAA,iCAAA,CAAA;AAEA;;;AAGG;;;AACI,IAAM,eAAe,GAAG,UAAC,KAAD,EAAwB,aAAxB,EAA6D;AACpF,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAAyB,KAAzB,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SACE,KAAA,CAAA,aAAA,CAAC,kBAAA,CAAA,wBAAD,EAAyB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAzB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,eAAA,GAAe,eAAf","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/renderMenuGroup.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,kBAAA,gBAAA,OAAA,CAAA,iCAAA,CAAA;AAEA;;;AAGG;;;AACI,MAAM,wBAAwB,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AACvG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAyB,KAAzB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,kBAAA,CAAA,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;;AAAM,OAAA,CAAA,wBAAA,GAAwB,wBAAxB","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,27 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuGroup = void 0;
6
+ exports.useMenuGroup_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
9
  /**
12
10
  * Given user props, returns state and render function for a MenuGroup.
13
11
  */
14
12
 
15
13
 
16
- function useMenuGroup(props, ref) {
17
- var headerId = react_utilities_1.useId('menu-group');
14
+ function useMenuGroup_unstable(props, ref) {
15
+ const headerId = react_utilities_1.useId('menu-group');
18
16
  return {
19
- root: react_utilities_1.getNativeElementProps('div', tslib_1.__assign({
20
- ref: ref,
17
+ components: {
18
+ root: 'div'
19
+ },
20
+ root: react_utilities_1.getNativeElementProps('div', {
21
+ ref,
21
22
  'aria-labelledby': headerId,
22
- role: 'group'
23
- }, props)),
23
+ role: 'group',
24
+ ...props
25
+ }),
24
26
  headerId: headerId
25
27
  };
26
28
  }
27
29
 
28
- exports.useMenuGroup = useMenuGroup;
30
+ exports.useMenuGroup_unstable = useMenuGroup_unstable;
29
31
  //# sourceMappingURL=useMenuGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroup.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACH,SAAgB,YAAhB,CAA6B,KAA7B,EAAoD,GAApD,EAA+E;AAC7E,MAAM,QAAQ,GAAG,iBAAA,CAAA,KAAA,CAAM,YAAN,CAAjB;AAEA,SAAO;AACL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA2B,OAAA,CAAA,QAAA,CAAA;AAC/B,MAAA,GAAG,EAAA,GAD4B;AAE/B,yBAAmB,QAFY;AAG/B,MAAA,IAAI,EAAE;AAHyB,KAAA,EAI5B,KAJ4B,CAA3B,CADD;AAOL,IAAA,QAAQ,EAAE;AAPL,GAAP;AASD;;AAZD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroup/useMenuGroup.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACH,SAAgB,qBAAhB,CAAsC,KAAtC,EAA6D,GAA7D,EAAwF;AACtF,QAAM,QAAQ,GAAG,iBAAA,CAAA,KAAA,CAAM,YAAN,CAAjB;AAEA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B;AACjC,MAAA,GADiC;AAEjC,yBAAmB,QAFc;AAGjC,MAAA,IAAI,EAAE,OAH2B;AAIjC,SAAG;AAJ8B,KAA7B,CAJD;AAUL,IAAA,QAAQ,EAAE;AAVL,GAAP;AAYD;;AAfD,OAAA,CAAA,qBAAA,GAAA,qBAAA","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;