@fluentui/react-menu 0.0.0-nightlyfc5cfdc52420220215.1 → 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. package/CHANGELOG.json +816 -22
  2. package/CHANGELOG.md +345 -139
  3. package/dist/{react-menu.d.ts → index.d.ts} +138 -121
  4. package/{lib → dist}/tsdoc-metadata.json +0 -0
  5. package/lib/Menu.js.map +1 -1
  6. package/lib/MenuDivider.js.map +1 -1
  7. package/lib/MenuGroup.js.map +1 -1
  8. package/lib/MenuGroupHeader.js.map +1 -1
  9. package/lib/MenuItem.js.map +1 -1
  10. package/lib/MenuItemCheckbox.js.map +1 -1
  11. package/lib/MenuItemRadio.js.map +1 -1
  12. package/lib/MenuList.js.map +1 -1
  13. package/lib/MenuPopover.js.map +1 -1
  14. package/lib/MenuSplitGroup.js.map +1 -1
  15. package/lib/MenuTrigger.js.map +1 -1
  16. package/lib/components/Menu/Menu.js.map +1 -1
  17. package/lib/components/Menu/Menu.types.js.map +1 -1
  18. package/lib/components/Menu/index.js.map +1 -1
  19. package/lib/components/Menu/renderMenu.js.map +1 -1
  20. package/lib/components/Menu/useMenu.js +21 -7
  21. package/lib/components/Menu/useMenu.js.map +1 -1
  22. package/lib/components/Menu/useMenuContextValues.js +20 -20
  23. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  24. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  25. package/lib/components/MenuDivider/MenuDivider.types.js.map +1 -1
  26. package/lib/components/MenuDivider/index.js.map +1 -1
  27. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  28. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  29. package/lib/components/MenuDivider/useMenuDividerStyles.js +8 -5
  30. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  31. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  32. package/lib/components/MenuGroup/MenuGroup.types.js.map +1 -1
  33. package/lib/components/MenuGroup/index.js.map +1 -1
  34. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  35. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  36. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  37. package/lib/components/MenuGroup/useMenuGroupStyles.js +4 -2
  38. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  39. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  40. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
  41. package/lib/components/MenuGroupHeader/index.js.map +1 -1
  42. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  43. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  44. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +4 -2
  45. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  46. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  47. package/lib/components/MenuItem/MenuItem.types.js.map +1 -1
  48. package/lib/components/MenuItem/index.js.map +1 -1
  49. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  50. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  51. package/lib/components/MenuItem/useMenuItem.js +8 -3
  52. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  53. package/lib/components/MenuItem/useMenuItemStyles.js +62 -28
  54. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  55. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  56. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
  57. package/lib/components/MenuItemCheckbox/index.js.map +1 -1
  58. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  59. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  60. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +25 -2
  61. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  62. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  63. package/lib/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
  64. package/lib/components/MenuItemRadio/index.js.map +1 -1
  65. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  66. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  67. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +25 -2
  68. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  69. package/lib/components/MenuList/MenuList.js.map +1 -1
  70. package/lib/components/MenuList/MenuList.types.js.map +1 -1
  71. package/lib/components/MenuList/index.js +1 -0
  72. package/lib/components/MenuList/index.js.map +1 -1
  73. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  74. package/lib/components/MenuList/useMenuList.js +2 -2
  75. package/lib/components/MenuList/useMenuList.js.map +1 -1
  76. package/lib/components/MenuList/useMenuListContextValues.js +8 -8
  77. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  78. package/lib/components/MenuList/useMenuListStyles.js +4 -2
  79. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  80. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  81. package/lib/components/MenuPopover/MenuPopover.types.js.map +1 -1
  82. package/lib/components/MenuPopover/index.js.map +1 -1
  83. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  84. package/lib/components/MenuPopover/useMenuPopover.js +1 -1
  85. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  86. package/lib/components/MenuPopover/useMenuPopoverStyles.js +4 -2
  87. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  88. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  89. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
  90. package/lib/components/MenuSplitGroup/index.js.map +1 -1
  91. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  92. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +1 -1
  93. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  94. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +10 -8
  95. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  96. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  97. package/lib/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  98. package/lib/components/MenuTrigger/index.js.map +1 -1
  99. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  100. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  101. package/lib/components/MenuTrigger/useMenuTrigger.js +2 -1
  102. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  103. package/lib/components/index.js.map +1 -1
  104. package/lib/contexts/menuContext.js.map +1 -1
  105. package/lib/contexts/menuGroupContext.js.map +1 -1
  106. package/lib/contexts/menuListContext.js.map +1 -1
  107. package/lib/contexts/menuTriggerContext.js +1 -1
  108. package/lib/contexts/menuTriggerContext.js.map +1 -1
  109. package/lib/index.js +16 -16
  110. package/lib/index.js.map +1 -1
  111. package/lib/selectable/index.js.map +1 -1
  112. package/lib/selectable/types.js.map +1 -1
  113. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  114. package/lib/utils/index.js.map +1 -1
  115. package/lib/utils/useIsSubmenu.js.map +1 -1
  116. package/lib/utils/useOnMenuEnter.js.map +1 -1
  117. package/lib-commonjs/Menu.js.map +1 -1
  118. package/lib-commonjs/MenuDivider.js.map +1 -1
  119. package/lib-commonjs/MenuGroup.js.map +1 -1
  120. package/lib-commonjs/MenuGroupHeader.js.map +1 -1
  121. package/lib-commonjs/MenuItem.js.map +1 -1
  122. package/lib-commonjs/MenuItemCheckbox.js.map +1 -1
  123. package/lib-commonjs/MenuItemRadio.js.map +1 -1
  124. package/lib-commonjs/MenuList.js.map +1 -1
  125. package/lib-commonjs/MenuPopover.js.map +1 -1
  126. package/lib-commonjs/MenuSplitGroup.js.map +1 -1
  127. package/lib-commonjs/MenuTrigger.js.map +1 -1
  128. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  129. package/lib-commonjs/components/Menu/Menu.types.js.map +1 -1
  130. package/lib-commonjs/components/Menu/index.js.map +1 -1
  131. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  132. package/lib-commonjs/components/Menu/useMenu.js +19 -5
  133. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  134. package/lib-commonjs/components/Menu/useMenuContextValues.js +20 -20
  135. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  136. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  137. package/lib-commonjs/components/MenuDivider/MenuDivider.types.js.map +1 -1
  138. package/lib-commonjs/components/MenuDivider/index.js.map +1 -1
  139. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  140. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  141. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +9 -6
  142. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  143. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  144. package/lib-commonjs/components/MenuGroup/MenuGroup.types.js.map +1 -1
  145. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  146. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  147. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  148. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  149. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -3
  150. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  151. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  152. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
  153. package/lib-commonjs/components/MenuGroupHeader/index.js.map +1 -1
  154. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  155. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  156. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +5 -3
  157. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  158. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  159. package/lib-commonjs/components/MenuItem/MenuItem.types.js.map +1 -1
  160. package/lib-commonjs/components/MenuItem/index.js.map +1 -1
  161. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  162. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  163. package/lib-commonjs/components/MenuItem/useMenuItem.js +9 -4
  164. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  165. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +64 -29
  166. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  167. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  168. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
  169. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  170. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  171. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  172. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +26 -3
  173. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  174. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  175. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
  176. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  177. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  178. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  179. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +26 -3
  180. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  181. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  182. package/lib-commonjs/components/MenuList/MenuList.types.js.map +1 -1
  183. package/lib-commonjs/components/MenuList/index.js +2 -0
  184. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  185. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  186. package/lib-commonjs/components/MenuList/useMenuList.js +2 -2
  187. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  188. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +8 -8
  189. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  190. package/lib-commonjs/components/MenuList/useMenuListStyles.js +5 -3
  191. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  192. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  193. package/lib-commonjs/components/MenuPopover/MenuPopover.types.js.map +1 -1
  194. package/lib-commonjs/components/MenuPopover/index.js.map +1 -1
  195. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  196. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +1 -1
  197. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  198. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +5 -3
  199. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  200. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  201. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
  202. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -1
  203. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  204. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +1 -1
  205. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  206. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +10 -8
  207. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  208. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  209. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  210. package/lib-commonjs/components/MenuTrigger/index.js.map +1 -1
  211. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +1 -1
  212. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  213. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +2 -1
  214. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  215. package/lib-commonjs/components/index.js.map +1 -1
  216. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  217. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  218. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  219. package/lib-commonjs/contexts/menuTriggerContext.js +1 -1
  220. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  221. package/lib-commonjs/index.js +411 -17
  222. package/lib-commonjs/index.js.map +1 -1
  223. package/lib-commonjs/selectable/index.js.map +1 -1
  224. package/lib-commonjs/selectable/types.js.map +1 -1
  225. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  226. package/lib-commonjs/utils/index.js.map +1 -1
  227. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  228. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  229. package/package.json +28 -30
  230. package/lib/Menu.d.ts +0 -1
  231. package/lib/MenuDivider.d.ts +0 -1
  232. package/lib/MenuGroup.d.ts +0 -1
  233. package/lib/MenuGroupHeader.d.ts +0 -1
  234. package/lib/MenuItem.d.ts +0 -1
  235. package/lib/MenuItemCheckbox.d.ts +0 -1
  236. package/lib/MenuItemRadio.d.ts +0 -1
  237. package/lib/MenuList.d.ts +0 -1
  238. package/lib/MenuPopover.d.ts +0 -1
  239. package/lib/MenuSplitGroup.d.ts +0 -1
  240. package/lib/MenuTrigger.d.ts +0 -1
  241. package/lib/components/Menu/Menu.d.ts +0 -6
  242. package/lib/components/Menu/Menu.types.d.ts +0 -113
  243. package/lib/components/Menu/index.d.ts +0 -5
  244. package/lib/components/Menu/renderMenu.d.ts +0 -5
  245. package/lib/components/Menu/useMenu.d.ts +0 -10
  246. package/lib/components/Menu/useMenuContextValues.d.ts +0 -2
  247. package/lib/components/MenuDivider/MenuDivider.d.ts +0 -6
  248. package/lib/components/MenuDivider/MenuDivider.types.d.ts +0 -6
  249. package/lib/components/MenuDivider/index.d.ts +0 -5
  250. package/lib/components/MenuDivider/renderMenuDivider.d.ts +0 -6
  251. package/lib/components/MenuDivider/useMenuDivider.d.ts +0 -6
  252. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
  253. package/lib/components/MenuGroup/MenuGroup.d.ts +0 -6
  254. package/lib/components/MenuGroup/MenuGroup.types.d.ts +0 -15
  255. package/lib/components/MenuGroup/index.d.ts +0 -6
  256. package/lib/components/MenuGroup/renderMenuGroup.d.ts +0 -6
  257. package/lib/components/MenuGroup/useMenuGroup.d.ts +0 -6
  258. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
  259. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
  260. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
  261. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
  262. package/lib/components/MenuGroupHeader/index.d.ts +0 -5
  263. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
  264. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
  265. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
  266. package/lib/components/MenuItem/MenuItem.d.ts +0 -6
  267. package/lib/components/MenuItem/MenuItem.types.d.ts +0 -43
  268. package/lib/components/MenuItem/index.d.ts +0 -5
  269. package/lib/components/MenuItem/renderMenuItem.d.ts +0 -5
  270. package/lib/components/MenuItem/useCharacterSearch.d.ts +0 -3
  271. package/lib/components/MenuItem/useMenuItem.d.ts +0 -6
  272. package/lib/components/MenuItem/useMenuItemStyles.d.ts +0 -4
  273. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
  274. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
  275. package/lib/components/MenuItemCheckbox/index.d.ts +0 -5
  276. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
  277. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
  278. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
  279. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
  280. package/lib/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
  281. package/lib/components/MenuItemRadio/index.d.ts +0 -5
  282. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
  283. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
  284. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
  285. package/lib/components/MenuList/MenuList.d.ts +0 -6
  286. package/lib/components/MenuList/MenuList.types.d.ts +0 -55
  287. package/lib/components/MenuList/index.d.ts +0 -6
  288. package/lib/components/MenuList/renderMenuList.d.ts +0 -5
  289. package/lib/components/MenuList/useMenuList.d.ts +0 -6
  290. package/lib/components/MenuList/useMenuListContextValues.d.ts +0 -2
  291. package/lib/components/MenuList/useMenuListStyles.d.ts +0 -6
  292. package/lib/components/MenuPopover/MenuPopover.d.ts +0 -6
  293. package/lib/components/MenuPopover/MenuPopover.types.d.ts +0 -18
  294. package/lib/components/MenuPopover/index.d.ts +0 -5
  295. package/lib/components/MenuPopover/renderMenuPopover.d.ts +0 -5
  296. package/lib/components/MenuPopover/useMenuPopover.d.ts +0 -12
  297. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
  298. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
  299. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
  300. package/lib/components/MenuSplitGroup/index.d.ts +0 -5
  301. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
  302. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
  303. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
  304. package/lib/components/MenuTrigger/MenuTrigger.d.ts +0 -8
  305. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
  306. package/lib/components/MenuTrigger/index.d.ts +0 -4
  307. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
  308. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
  309. package/lib/components/index.d.ts +0 -2
  310. package/lib/contexts/menuContext.d.ts +0 -16
  311. package/lib/contexts/menuGroupContext.d.ts +0 -13
  312. package/lib/contexts/menuListContext.d.ts +0 -15
  313. package/lib/contexts/menuTriggerContext.d.ts +0 -3
  314. package/lib/index.d.ts +0 -16
  315. package/lib/selectable/index.d.ts +0 -2
  316. package/lib/selectable/types.d.ts +0 -34
  317. package/lib/selectable/useCheckmarkStyles.d.ts +0 -8
  318. package/lib/utils/index.d.ts +0 -1
  319. package/lib/utils/useIsSubmenu.d.ts +0 -9
  320. package/lib/utils/useOnMenuEnter.d.ts +0 -23
  321. package/lib-commonjs/Menu.d.ts +0 -1
  322. package/lib-commonjs/MenuDivider.d.ts +0 -1
  323. package/lib-commonjs/MenuGroup.d.ts +0 -1
  324. package/lib-commonjs/MenuGroupHeader.d.ts +0 -1
  325. package/lib-commonjs/MenuItem.d.ts +0 -1
  326. package/lib-commonjs/MenuItemCheckbox.d.ts +0 -1
  327. package/lib-commonjs/MenuItemRadio.d.ts +0 -1
  328. package/lib-commonjs/MenuList.d.ts +0 -1
  329. package/lib-commonjs/MenuPopover.d.ts +0 -1
  330. package/lib-commonjs/MenuSplitGroup.d.ts +0 -1
  331. package/lib-commonjs/MenuTrigger.d.ts +0 -1
  332. package/lib-commonjs/components/Menu/Menu.d.ts +0 -6
  333. package/lib-commonjs/components/Menu/Menu.types.d.ts +0 -113
  334. package/lib-commonjs/components/Menu/index.d.ts +0 -5
  335. package/lib-commonjs/components/Menu/renderMenu.d.ts +0 -5
  336. package/lib-commonjs/components/Menu/useMenu.d.ts +0 -10
  337. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +0 -2
  338. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +0 -6
  339. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +0 -6
  340. package/lib-commonjs/components/MenuDivider/index.d.ts +0 -5
  341. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +0 -6
  342. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +0 -6
  343. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
  344. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +0 -6
  345. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +0 -15
  346. package/lib-commonjs/components/MenuGroup/index.d.ts +0 -6
  347. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +0 -6
  348. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +0 -6
  349. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
  350. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
  351. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
  352. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
  353. package/lib-commonjs/components/MenuGroupHeader/index.d.ts +0 -5
  354. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
  355. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
  356. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
  357. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +0 -6
  358. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +0 -43
  359. package/lib-commonjs/components/MenuItem/index.d.ts +0 -5
  360. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +0 -5
  361. package/lib-commonjs/components/MenuItem/useCharacterSearch.d.ts +0 -3
  362. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +0 -6
  363. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +0 -4
  364. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
  365. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
  366. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +0 -5
  367. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
  368. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
  369. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
  370. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
  371. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
  372. package/lib-commonjs/components/MenuItemRadio/index.d.ts +0 -5
  373. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
  374. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
  375. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
  376. package/lib-commonjs/components/MenuList/MenuList.d.ts +0 -6
  377. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +0 -55
  378. package/lib-commonjs/components/MenuList/index.d.ts +0 -6
  379. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +0 -5
  380. package/lib-commonjs/components/MenuList/useMenuList.d.ts +0 -6
  381. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +0 -2
  382. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +0 -6
  383. package/lib-commonjs/components/MenuPopover/MenuPopover.d.ts +0 -6
  384. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +0 -18
  385. package/lib-commonjs/components/MenuPopover/index.d.ts +0 -5
  386. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +0 -5
  387. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +0 -12
  388. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
  389. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
  390. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
  391. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +0 -5
  392. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
  393. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
  394. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
  395. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +0 -8
  396. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
  397. package/lib-commonjs/components/MenuTrigger/index.d.ts +0 -4
  398. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
  399. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
  400. package/lib-commonjs/components/index.d.ts +0 -2
  401. package/lib-commonjs/contexts/menuContext.d.ts +0 -16
  402. package/lib-commonjs/contexts/menuGroupContext.d.ts +0 -13
  403. package/lib-commonjs/contexts/menuListContext.d.ts +0 -15
  404. package/lib-commonjs/contexts/menuTriggerContext.d.ts +0 -3
  405. package/lib-commonjs/index.d.ts +0 -16
  406. package/lib-commonjs/selectable/index.d.ts +0 -2
  407. package/lib-commonjs/selectable/types.d.ts +0 -34
  408. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +0 -8
  409. package/lib-commonjs/utils/index.d.ts +0 -1
  410. package/lib-commonjs/utils/useIsSubmenu.d.ts +0 -9
  411. package/lib-commonjs/utils/useOnMenuEnter.d.ts +0 -23
@@ -3,35 +3,58 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuItemStyles_unstable = exports.menuItemClassName = void 0;
6
+ exports.useMenuItemStyles_unstable = exports.menuItemClassNames = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
+ const react_icons_1 = /*#__PURE__*/require("@fluentui/react-icons");
11
+
10
12
  const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
11
13
 
12
14
  const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
15
 
14
16
  const index_1 = /*#__PURE__*/require("../../selectable/index");
15
17
 
16
- exports.menuItemClassName = 'fui-MenuItem';
18
+ exports.menuItemClassNames = {
19
+ root: 'fui-MenuItem',
20
+ icon: 'fui-MenuItem__icon',
21
+ checkmark: 'fui-MenuItem__checkmark',
22
+ submenuIndicator: 'fui-MenuItem__submenuIndicator',
23
+ content: 'fui-MenuItem__content',
24
+ secondaryContent: 'fui-MenuItem__secondaryContent'
25
+ };
17
26
 
18
27
  const useStyles = /*#__PURE__*/react_1.__styles({
19
28
  "focusIndicator": {
20
- "B486eqv": "f2hkw1w",
21
- "B1bra5l": "fc85khu",
22
- "e8izhr": "f1pxpxw8",
23
- "in3gf6": "f1149fnl",
24
- "B1i23sz": "fd1orka",
25
- "ln9as": "fgtqheg",
26
- "Bfgg0yq": "fq7mjg8",
27
- "i16j1i": "fq9bj62",
28
- "yxydaw": "fy07e8r",
29
- "B9sa02e": "f1ha6shg",
30
- "yaquy9": "f4ltwxu",
31
- "Bl8qd6i": "f1284xzw",
32
- "Byzgy54": "f14dru39",
33
- "mq8cyt": ["fvabyfg", "f12y1wz2"],
34
- "B1a67j7": ["f12y1wz2", "fvabyfg"]
29
+ "Brovlpu": "ftqa4ok",
30
+ "Bnmjwt4": "flfsvnh",
31
+ "Jopkrh": ["f1781m5e", "flvaaa9"],
32
+ "hhrs2v": "f50u1b5",
33
+ "B7jbng7": ["flvaaa9", "f1781m5e"],
34
+ "f1b1x7": "f1qcdkjp",
35
+ "Bsoonpj": "frwipam",
36
+ "kb7xbg": "fm04wnm",
37
+ "Bpbhbne": "ffifs4z",
38
+ "qtucbz": "f1jttrum",
39
+ "Bh4x314": ["fowbmzg", "f1kmm3zi"],
40
+ "pacjzv": "f1rvwwl",
41
+ "wv8bgo": ["f1kmm3zi", "fowbmzg"],
42
+ "Bpmb9kz": "f1rr3duc",
43
+ "hnpbc": ["fgqh5zl", "f10j7ty9"],
44
+ "six9ky": "f6lagvf",
45
+ "I0dgv4": ["f10j7ty9", "fgqh5zl"],
46
+ "I0hmzl": ["fs84u7a", "f1wn75x5"],
47
+ "Bfxuv1t": ["f1wn75x5", "fs84u7a"],
48
+ "Bqb1ydo": ["fofgg9s", "fs920pv"],
49
+ "Bwhd17d": ["fs920pv", "fofgg9s"],
50
+ "B738g9f": "f1o5urc0",
51
+ "Ba0kx5p": ["fo4xo12", "f69zm5y"],
52
+ "mqxxu3": "f6upevr",
53
+ "Bybbesa": ["f69zm5y", "fo4xo12"],
54
+ "B65jt9l": "fetpwnh",
55
+ "Bno0hdv": "fki52xb",
56
+ "znsjfh": ["f1ubvch9", "fs3hv49"],
57
+ "B4k4nqf": ["fs3hv49", "f1ubvch9"]
35
58
  },
36
59
  "root": {
37
60
  "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
@@ -39,7 +62,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({
39
62
  "B7oj6ja": ["f1jar5jt", "fyu767a"],
40
63
  "Btl43ni": ["fyu767a", "f1jar5jt"],
41
64
  "qhf8xq": "f10pi13n",
42
- "sj55zd": "f19n0e5",
65
+ "sj55zd": "fkfq4zb",
43
66
  "De3pzq": "fxugw4r",
44
67
  "z189sj": ["f81rol6", "frdkuqy"],
45
68
  "uwmqm3": ["frdkuqy", "f81rol6"],
@@ -52,6 +75,9 @@ const useStyles = /*#__PURE__*/react_1.__styles({
52
75
  "Belr9w4": "f1ma2n7n",
53
76
  "Jwef8y": "f1knas48",
54
77
  "Bi91k9c": "fnwyq0v",
78
+ "Bk3fhr4": "ft1hn21",
79
+ "Bmfj8id": "fuxngvv",
80
+ "Bg7n49j": "fp258yr",
55
81
  "famaaq": "f1xqy1su"
56
82
  },
57
83
  "content": {
@@ -71,13 +97,19 @@ const useStyles = /*#__PURE__*/react_1.__styles({
71
97
  "a9b677": "f64fuq3",
72
98
  "Bqenvij": "fjamq6b",
73
99
  "Be2twd7": "fe5j1ua",
74
- "Bg96gwp": "fez10in"
100
+ "Bg96gwp": "fez10in",
101
+ "Bt984gj": "f122n59",
102
+ "mc9l5x": "ftuwxu6",
103
+ "Brf1p80": "f4d9j23"
75
104
  },
76
105
  "submenuIndicator": {
77
106
  "a9b677": "f64fuq3",
78
107
  "Bqenvij": "fjamq6b",
79
108
  "Be2twd7": "fe5j1ua",
80
- "Bg96gwp": "fez10in"
109
+ "Bg96gwp": "fez10in",
110
+ "Bt984gj": "f122n59",
111
+ "mc9l5x": "ftuwxu6",
112
+ "Brf1p80": "f4d9j23"
81
113
  },
82
114
  "disabled": {
83
115
  "sj55zd": "f1s2aq7o",
@@ -85,32 +117,35 @@ const useStyles = /*#__PURE__*/react_1.__styles({
85
117
  "t0hwav": "ft33916"
86
118
  }
87
119
  }, {
88
- "i": [".f2hkw1w:focus-visible{outline-style:none;}"],
89
- "d": ["[data-keyboard-nav] .fc85khu:focus{border-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fq9bj62:focus:after{border-style:solid;}", "[data-keyboard-nav] .fy07e8r:focus:after{border-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f4ltwxu:focus:after{border-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".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;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1k6fduh{cursor:pointer;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f161knb0{padding-left:2px;}", ".f12huiiw{padding-right:2px;}", ".f3rmtva{background-color:transparent;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".fe5j1ua{font-size:20px;}", ".fez10in{line-height:0;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],
90
- "h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}", ".f1jp5ecu:hover{color:var(--colorNeutralForeground3Hover);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}"],
91
- "f": [".fc1cou1:focus{color:var(--colorNeutralForeground3Hover);}", ".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"]
120
+ "f": [".ftqa4ok:focus{outline-style:none;}", ".fc1cou1:focus{color:var(--colorNeutralForeground3Hover);}", ".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],
121
+ "d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f1qcdkjp:focus::after{content:\"\";}", "[data-keyboard-nav] .frwipam:focus::after{position:absolute;}", "[data-keyboard-nav] .fm04wnm:focus::after{pointer-events:none;}", "[data-keyboard-nav] .ffifs4z:focus::after{z-index:1;}", "[data-keyboard-nav] .f1jttrum:focus::after{border-top-style:solid;}", "[data-keyboard-nav] .fowbmzg:focus::after{border-right-style:solid;}", "[data-keyboard-nav] .f1kmm3zi:focus::after{border-left-style:solid;}", "[data-keyboard-nav] .f1rvwwl:focus::after{border-bottom-style:solid;}", "[data-keyboard-nav] .f1rr3duc:focus::after{border-top-width:2px;}", "[data-keyboard-nav] .fgqh5zl:focus::after{border-right-width:2px;}", "[data-keyboard-nav] .f10j7ty9:focus::after{border-left-width:2px;}", "[data-keyboard-nav] .f6lagvf:focus::after{border-bottom-width:2px;}", "[data-keyboard-nav] .fs84u7a:focus::after{border-bottom-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1wn75x5:focus::after{border-bottom-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .fofgg9s:focus::after{border-top-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .fs920pv:focus::after{border-top-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1o5urc0:focus::after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fo4xo12:focus::after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f69zm5y:focus::after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f6upevr:focus::after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fetpwnh:focus::after{top:-2px;}", "[data-keyboard-nav] .fki52xb:focus::after{bottom:-2px;}", "[data-keyboard-nav] .f1ubvch9:focus::after{left:-2px;}", "[data-keyboard-nav] .fs3hv49:focus::after{right:-2px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".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;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1k6fduh{cursor:pointer;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f161knb0{padding-left:2px;}", ".f12huiiw{padding-right:2px;}", ".f3rmtva{background-color:transparent;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".fe5j1ua{font-size:20px;}", ".fez10in{line-height:0;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],
122
+ "h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}", ".ft1hn21:hover .fui-Icon-filled{display:inline;}", ".fuxngvv:hover .fui-Icon-regular{display:none;}", ".fp258yr:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}", ".f1jp5ecu:hover{color:var(--colorNeutralForeground3Hover);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}"]
92
123
  });
93
124
  /** Applies style classnames to slots */
94
125
 
95
126
 
96
127
  const useMenuItemStyles_unstable = state => {
97
128
  const styles = useStyles();
98
- state.root.className = react_1.mergeClasses(exports.menuItemClassName, styles.root, styles.focusIndicator, state.disabled && styles.disabled, state.root.className);
129
+ state.root.className = react_1.mergeClasses(exports.menuItemClassNames.root, styles.root, styles.focusIndicator, state.disabled && styles.disabled, state.root.className);
99
130
 
100
131
  if (state.content) {
101
- state.content.className = react_1.mergeClasses(styles.content, state.content.className);
132
+ state.content.className = react_1.mergeClasses(exports.menuItemClassNames.content, styles.content, state.content.className);
133
+ }
134
+
135
+ if (state.checkmark) {
136
+ state.checkmark.className = react_1.mergeClasses(exports.menuItemClassNames.checkmark, state.checkmark.className);
102
137
  }
103
138
 
104
139
  if (state.secondaryContent) {
105
- state.secondaryContent.className = react_1.mergeClasses(!state.disabled && styles.secondaryContent, state.secondaryContent.className);
140
+ state.secondaryContent.className = react_1.mergeClasses(exports.menuItemClassNames.secondaryContent, !state.disabled && styles.secondaryContent, state.secondaryContent.className);
106
141
  }
107
142
 
108
143
  if (state.icon) {
109
- state.icon.className = react_1.mergeClasses(styles.icon, state.icon.className);
144
+ state.icon.className = react_1.mergeClasses(exports.menuItemClassNames.icon, styles.icon, state.icon.className);
110
145
  }
111
146
 
112
147
  if (state.submenuIndicator) {
113
- state.submenuIndicator.className = react_1.mergeClasses(styles.submenuIndicator, state.submenuIndicator.className);
148
+ state.submenuIndicator.className = react_1.mergeClasses(exports.menuItemClassNames.submenuIndicator, styles.submenuIndicator, state.submenuIndicator.className);
114
149
  }
115
150
 
116
151
  index_1.useCheckmarkStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/useMenuItemStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAIa,OAAA,CAAA,iBAAA,GAAoB,cAApB;;AAEb,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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gBAAV,EAA4B;IAC1B,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,OAAA,CAAA,YAAA,CACjC,OAAA,CAAA,kBAAA,CAAmB,gBADc,EAEjC,MAAM,CAAC,gBAF0B,EAGjC,KAAK,CAAC,gBAAN,CAAuB,SAHU,CAAnC;EAKD;;EACD,OAAA,CAAA,2BAAA,CAA4B,KAA5B;AACD,CAtCM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourcesContent":["import { mergeClasses, makeStyles, shorthands } from '@griffel/react';\nimport { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nimport { useCheckmarkStyles_unstable } from '../../selectable/index';\nimport { MenuItemCheckboxState } from '../MenuItemCheckbox/index';\nimport type { MenuItemSlots, MenuItemState } from './MenuItem.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const menuItemClassNames: SlotClassNames<MenuItemSlots> = {\n root: 'fui-MenuItem',\n icon: 'fui-MenuItem__icon',\n checkmark: 'fui-MenuItem__checkmark',\n submenuIndicator: 'fui-MenuItem__submenuIndicator',\n content: 'fui-MenuItem__content',\n secondaryContent: 'fui-MenuItem__secondaryContent',\n};\n\nconst useStyles = makeStyles({\n focusIndicator: createFocusOutlineStyle(),\n root: {\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n position: 'relative',\n color: tokens.colorNeutralForeground2,\n backgroundColor: tokens.colorNeutralBackground1,\n paddingRight: '10px',\n paddingLeft: '10px',\n height: '32px',\n display: 'flex',\n alignItems: 'center',\n fontSize: tokens.fontSizeBase300,\n cursor: 'pointer',\n ...shorthands.gap('4px'),\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n color: tokens.colorNeutralForeground2Hover,\n\n [`& .${iconFilledClassName}`]: {\n display: 'inline',\n },\n [`& .${iconRegularClassName}`]: {\n display: 'none',\n },\n [`& .${menuItemClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandSelected,\n },\n },\n\n userSelect: 'none',\n },\n content: {\n paddingLeft: '2px',\n paddingRight: '2px',\n backgroundColor: 'transparent',\n flexGrow: 1,\n },\n secondaryContent: {\n paddingLeft: '2px',\n paddingRight: '2px',\n color: tokens.colorNeutralForeground3,\n ':hover': {\n color: tokens.colorNeutralForeground3Hover,\n },\n ':focus': {\n color: tokens.colorNeutralForeground3Hover,\n },\n },\n icon: {\n width: '20px',\n height: '20px',\n fontSize: '20px',\n lineHeight: 0,\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n },\n submenuIndicator: {\n width: '20px',\n height: '20px',\n fontSize: '20px',\n lineHeight: 0,\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n },\n disabled: {\n color: tokens.colorNeutralForegroundDisabled,\n ':hover': {\n color: tokens.colorNeutralForegroundDisabled,\n },\n\n ':focus': {\n color: tokens.colorNeutralForegroundDisabled,\n },\n },\n});\n\n/** Applies style classnames to slots */\nexport const useMenuItemStyles_unstable = (state: MenuItemState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n menuItemClassNames.root,\n styles.root,\n styles.focusIndicator,\n state.disabled && styles.disabled,\n state.root.className,\n );\n\n if (state.content) {\n state.content.className = mergeClasses(menuItemClassNames.content, styles.content, state.content.className);\n }\n\n if (state.checkmark) {\n state.checkmark.className = mergeClasses(menuItemClassNames.checkmark, state.checkmark.className);\n }\n\n if (state.secondaryContent) {\n state.secondaryContent.className = mergeClasses(\n menuItemClassNames.secondaryContent,\n !state.disabled && styles.secondaryContent,\n state.secondaryContent.className,\n );\n }\n\n if (state.icon) {\n state.icon.className = mergeClasses(menuItemClassNames.icon, styles.icon, state.icon.className);\n }\n\n if (state.submenuIndicator) {\n state.submenuIndicator.className = mergeClasses(\n menuItemClassNames.submenuIndicator,\n styles.submenuIndicator,\n state.submenuIndicator.className,\n );\n }\n useCheckmarkStyles_unstable(state as MenuItemCheckboxState);\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/MenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;;AACA,MAAA,2BAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,gBAA+D,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1G,QAAM,KAAK,GAAG,qBAAA,CAAA,4BAAA,CAA6B,KAA7B,EAAoC,GAApC,CAAd;AACA,EAAA,2BAAA,CAAA,kCAAA,CAAmC,KAAnC;AAEA,SAAO,wBAAA,CAAA,+BAAA,CAAgC,KAAhC,CAAP;AACD,CAL2E,CAA/D;AAOb,OAAA,CAAA,gBAAA,CAAiB,WAAjB,GAA+B,kBAA/B","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuItemCheckbox/MenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;;AACA,MAAA,2BAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,gBAAA,gBAA+D,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC1G,MAAM,KAAK,GAAG,qBAAA,CAAA,4BAAA,CAA6B,KAA7B,EAAoC,GAApC,CAAd;EACA,2BAAA,CAAA,kCAAA,CAAmC,KAAnC;EAEA,OAAO,wBAAA,CAAA,+BAAA,CAAgC,KAAhC,CAAP;AACD,CAL2E,CAA/D;AAOb,OAAA,CAAA,gBAAA,CAAiB,WAAjB,GAA+B,kBAA/B","sourcesContent":["import * as React from 'react';\nimport { useMenuItemCheckbox_unstable } from './useMenuItemCheckbox';\nimport { renderMenuItemCheckbox_unstable } from './renderMenuItemCheckbox';\nimport { useMenuItemCheckboxStyles_unstable } from './useMenuItemCheckboxStyles';\nimport type { MenuItemCheckboxProps } from './MenuItemCheckbox.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled MenuItemCheckbox, using the `useMenuItemCheckbox_unstable` hook.\n */\nexport const MenuItemCheckbox: ForwardRefComponent<MenuItemCheckboxProps> = React.forwardRef((props, ref) => {\n const state = useMenuItemCheckbox_unstable(props, ref);\n useMenuItemCheckboxStyles_unstable(state);\n\n return renderMenuItemCheckbox_unstable(state);\n});\n\nMenuItemCheckbox.displayName = 'MenuItemCheckbox';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuItemCheckbox/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './MenuItemCheckbox.types';\nexport * from './MenuItemCheckbox';\nexport * from './renderMenuItemCheckbox';\nexport * from './useMenuItemCheckbox';\nexport * from './useMenuItemCheckboxStyles';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;;AACO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;AAC9E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,IAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;;AACO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;EAC9E,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;EAEA,OACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;EAAf,CAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,IAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;EAAf,CAAvB,CAJ7B,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { MenuItemCheckboxState } from './MenuItemCheckbox.types';\nimport type { MenuItemSlots } from '../MenuItem/MenuItem.types';\n\n/** Function that renders the final JSX of the component */\nexport const renderMenuItemCheckbox_unstable = (state: MenuItemCheckboxState) => {\n const { slots, slotProps } = getSlots<MenuItemSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.checkmark && <slots.checkmark {...slotProps.checkmark} />}\n {slots.icon && <slots.icon {...slotProps.icon} />}\n {slots.content && <slots.content {...slotProps.content} />}\n {slots.secondaryContent && <slots.secondaryContent {...slotProps.secondaryContent} />}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/useMenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;AACO,MAAM,4BAA4B,GAAG,CAC1C,KAD0C,EAE1C,GAF0C,KAGjB;AACzB,QAAM,KAAK,GAAG,aAAA,CAAA,oBAAA,CACZ;AACE,IAAA,IAAI,EAAE,kBADR;AAEE,IAAA,cAAc,EAAE,IAFlB;AAGE,OAAG,KAHL;AAIE,IAAA,SAAS,EAAE,iBAAA,CAAA,gBAAA,CAAiB,KAAK,CAAC,SAAvB,EAAkC;AAC3C,MAAA,YAAY,EAAE;AAAE,QAAA,QAAQ,EAAE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,iBAAD,EAAkB,IAAlB;AAAZ,OAD6B;AAE3C,MAAA,QAAQ,EAAE;AAFiC,KAAlC;AAJb,GADY,EAUZ,GAVY,CAAd;AAaA,QAA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gB,OAAhB;EACA,KAAK,CAAC,IAAN,CAAW,cAAX,IAA6B,KAAK,CAAC,OAAnC,CAtByB,CAwBzB;;EACA,KAAK,CAAC,IAAN,CAAW,OAAX,GAAqB,CAAC,IAAG;IACvB,IAAI,KAAK,CAAC,QAAV,EAAoB;MAClB,CAAC,CAAC,cAAF;MACA,CAAC,CAAC,eAAF;MACA;IACD;;IAED,cAAc,KAAA,IAAd,IAAA,cAAc,KAAA,KAAA,CAAd,GAAc,KAAA,CAAd,GAAA,cAAc,CAAG,CAAH,EAAM,KAAK,CAAC,IAAZ,EAAkB,KAAK,CAAC,KAAxB,EAA+B,KAAK,CAAC,OAArC,CAAd;IACA,eAAe,KAAA,IAAf,IAAA,eAAe,KAAA,KAAA,CAAf,GAAe,KAAA,CAAf,GAAA,eAAe,CAAG,CAAH,CAAf;EACD,CATD;;EAWA,OAAO,KAAP;AACD,CAxCM;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourcesContent":["import * as React from 'react';\nimport { resolveShorthand } from '@fluentui/react-utilities';\nimport { Checkmark16Filled } from '@fluentui/react-icons';\nimport { useMenuListContext_unstable } from '../../contexts/menuListContext';\nimport { useMenuItem_unstable } from '../MenuItem/useMenuItem';\nimport type { MenuItemCheckboxProps, MenuItemCheckboxState } from './MenuItemCheckbox.types';\n\n/** Returns the props and state required to render the component */\nexport const useMenuItemCheckbox_unstable = (\n props: MenuItemCheckboxProps,\n ref: React.Ref<HTMLElement>,\n): MenuItemCheckboxState => {\n const state = useMenuItem_unstable(\n {\n role: 'menuitemcheckbox',\n persistOnClick: true,\n ...props,\n checkmark: resolveShorthand(props.checkmark, {\n defaultProps: { children: <Checkmark16Filled /> },\n required: true,\n }),\n },\n ref,\n ) as MenuItemCheckboxState;\n\n const toggleCheckbox = useMenuListContext_unstable(context => context.toggleCheckbox);\n const { onClick: onClickOriginal } = state.root;\n const checked = useMenuListContext_unstable(context => {\n const checkedItems = context.checkedValues?.[state.name] || [];\n return checkedItems.indexOf(state.value) !== -1;\n });\n\n state.checked = checked;\n state.root['aria-checked'] = state.checked;\n\n // MenuItem state already transforms keyDown to click events\n state.root.onClick = e => {\n if (state.disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n toggleCheckbox?.(e, state.name, state.value, state.checked);\n onClickOriginal?.(e);\n };\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuItemCheckboxStyles_unstable = exports.menuItemCheckboxClassName = void 0;
6
+ exports.useMenuItemCheckboxStyles_unstable = exports.menuItemCheckboxClassNames = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
@@ -11,10 +11,33 @@ const index_1 = /*#__PURE__*/require("../../selectable/index");
11
11
 
12
12
  const useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
13
13
 
14
- exports.menuItemCheckboxClassName = 'fui-MenuItemCheckbox';
14
+ exports.menuItemCheckboxClassNames = {
15
+ root: 'fui-MenuItemCheckbox',
16
+ icon: 'fui-MenuItemCheckbox__icon',
17
+ checkmark: 'fui-MenuItemCheckbox__checkmark',
18
+ content: 'fui-MenuItemCheckbox__content',
19
+ secondaryContent: 'fui-MenuItemCheckbox__secondaryContent'
20
+ };
15
21
 
16
22
  const useMenuItemCheckboxStyles_unstable = state => {
17
- state.root.className = react_1.mergeClasses(exports.menuItemCheckboxClassName, state.root.className);
23
+ state.root.className = react_1.mergeClasses(exports.menuItemCheckboxClassNames.root, state.root.className);
24
+
25
+ if (state.content) {
26
+ state.content.className = react_1.mergeClasses(exports.menuItemCheckboxClassNames.content, state.content.className);
27
+ }
28
+
29
+ if (state.secondaryContent) {
30
+ state.secondaryContent.className = react_1.mergeClasses(exports.menuItemCheckboxClassNames.secondaryContent, state.secondaryContent.className);
31
+ }
32
+
33
+ if (state.icon) {
34
+ state.icon.className = react_1.mergeClasses(exports.menuItemCheckboxClassNames.icon, state.icon.className);
35
+ }
36
+
37
+ if (state.checkmark) {
38
+ state.checkmark.className = react_1.mergeClasses(exports.menuItemCheckboxClassNames.checkmark, state.checkmark.className);
39
+ }
40
+
18
41
  useMenuItemStyles_1.useMenuItemStyles_unstable(state);
19
42
  index_1.useCheckmarkStyles_unstable(state);
20
43
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/useMenuItemCheckboxStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGa,OAAA,CAAA,yBAAA,GAA4B,sBAA5B;;AAEN,MAAM,kCAAkC,GAAI,KAAD,IAAiC;AACjF,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,yBAAb,EAAwC,KAAK,CAAC,IAAN,CAAW,SAAnD,CAAvB;AAEA,EAAA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;AACA,EAAA,OAAA,CAAA,2BAAA,CAA4B,KAA5B;AACD,CALM;;AAAM,OAAA,CAAA,kCAAA,GAAkC,kCAAlC","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuItemCheckbox/useMenuItemCheckboxStyles.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAEA,MAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGa,OAAA,CAAA,0BAAA,GAAsF;EACjG,IAAI,EAAE,sBAD2F;EAEjG,IAAI,EAAE,4BAF2F;EAGjG,SAAS,EAAE,iCAHsF;EAIjG,OAAO,EAAE,+BAJwF;EAKjG,gBAAgB,EAAE;AAL+E,CAAtF;;AAQN,MAAM,kCAAkC,GAAI,KAAD,IAAiC;EACjF,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,0BAAA,CAA2B,IAAxC,EAA8C,KAAK,CAAC,IAAN,CAAW,SAAzD,CAAvB;;EAEA,IAAI,KAAK,CAAC,OAAV,EAAmB;IACjB,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,0BAAA,CAA2B,OAAxC,EAAiD,KAAK,CAAC,OAAN,CAAc,SAA/D,CAA1B;EACD;;EAED,IAAI,KAAK,CAAC,gBAAV,EAA4B;IAC1B,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,OAAA,CAAA,YAAA,CACjC,OAAA,CAAA,0BAAA,CAA2B,gBADM,EAEjC,KAAK,CAAC,gBAAN,CAAuB,SAFU,CAAnC;EAID;;EAED,IAAI,KAAK,CAAC,IAAV,EAAgB;IACd,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,0BAAA,CAA2B,IAAxC,EAA8C,KAAK,CAAC,IAAN,CAAW,SAAzD,CAAvB;EACD;;EAED,IAAI,KAAK,CAAC,SAAV,EAAqB;IACnB,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,0BAAA,CAA2B,SAAxC,EAAmD,KAAK,CAAC,SAAN,CAAgB,SAAnE,CAA5B;EACD;;EAED,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;EACA,OAAA,CAAA,2BAAA,CAA4B,KAA5B;AACD,CAxBM;;AAAM,OAAA,CAAA,kCAAA,GAAkC,kCAAlC","sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses } from '@griffel/react';\nimport { useCheckmarkStyles_unstable } from '../../selectable/index';\nimport { MenuItemSlots } from '../index';\nimport { useMenuItemStyles_unstable } from '../MenuItem/useMenuItemStyles';\nimport type { MenuItemCheckboxState } from './MenuItemCheckbox.types';\n\nexport const menuItemCheckboxClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>> = {\n root: 'fui-MenuItemCheckbox',\n icon: 'fui-MenuItemCheckbox__icon',\n checkmark: 'fui-MenuItemCheckbox__checkmark',\n content: 'fui-MenuItemCheckbox__content',\n secondaryContent: 'fui-MenuItemCheckbox__secondaryContent',\n};\n\nexport const useMenuItemCheckboxStyles_unstable = (state: MenuItemCheckboxState) => {\n state.root.className = mergeClasses(menuItemCheckboxClassNames.root, state.root.className);\n\n if (state.content) {\n state.content.className = mergeClasses(menuItemCheckboxClassNames.content, state.content.className);\n }\n\n if (state.secondaryContent) {\n state.secondaryContent.className = mergeClasses(\n menuItemCheckboxClassNames.secondaryContent,\n state.secondaryContent.className,\n );\n }\n\n if (state.icon) {\n state.icon.className = mergeClasses(menuItemCheckboxClassNames.icon, state.icon.className);\n }\n\n if (state.checkmark) {\n state.checkmark.className = mergeClasses(menuItemCheckboxClassNames.checkmark, state.checkmark.className);\n }\n\n useMenuItemStyles_unstable(state);\n useCheckmarkStyles_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/MenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,gBAAyD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpG,QAAM,KAAK,GAAG,kBAAA,CAAA,yBAAA,CAA0B,KAA1B,EAAiC,GAAjC,CAAd;AACA,EAAA,wBAAA,CAAA,+BAAA,CAAgC,KAAhC;AAEA,SAAO,qBAAA,CAAA,4BAAA,CAA6B,KAA7B,CAAP;AACD,CALqE,CAAzD;AAOb,OAAA,CAAA,aAAA,CAAc,WAAd,GAA4B,eAA5B","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuItemRadio/MenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AACA,MAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,0BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,aAAA,gBAAyD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACpG,MAAM,KAAK,GAAG,kBAAA,CAAA,yBAAA,CAA0B,KAA1B,EAAiC,GAAjC,CAAd;EACA,wBAAA,CAAA,+BAAA,CAAgC,KAAhC;EAEA,OAAO,qBAAA,CAAA,4BAAA,CAA6B,KAA7B,CAAP;AACD,CALqE,CAAzD;AAOb,OAAA,CAAA,aAAA,CAAc,WAAd,GAA4B,eAA5B","sourcesContent":["import * as React from 'react';\nimport { useMenuItemRadio_unstable } from './useMenuItemRadio';\nimport { renderMenuItemRadio_unstable } from './renderMenuItemRadio';\nimport { useMenuItemRadioStyles_unstable } from './useMenuItemRadioStyles';\nimport type { MenuItemRadioProps } from './MenuItemRadio.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled MenuItemRadio, using the `useMenuItemRadio_unstable` hook.\n */\nexport const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps> = React.forwardRef((props, ref) => {\n const state = useMenuItemRadio_unstable(props, ref);\n useMenuItemRadioStyles_unstable(state);\n\n return renderMenuItemRadio_unstable(state);\n});\n\nMenuItemRadio.displayName = 'MenuItemRadio';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuItemRadio/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,uBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './MenuItemRadio.types';\nexport * from './MenuItemRadio';\nexport * from './renderMenuItemRadio';\nexport * from './useMenuItemRadio';\nexport * from './useMenuItemRadioStyles';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,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AAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;EAAf,CAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,IAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;EAAf,CAAvB,CAJ7B,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { MenuItemRadioState } from './MenuItemRadio.types';\nimport type { MenuItemSlots } from '../MenuItem/MenuItem.types';\n\n/**\n * Redefine the render function to add slots. Reuse the menuitemradio structure but add\n * slots to children.\n */\nexport const renderMenuItemRadio_unstable = (state: MenuItemRadioState) => {\n const { slots, slotProps } = getSlots<MenuItemSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n {slots.checkmark && <slots.checkmark {...slotProps.checkmark} />}\n {slots.icon && <slots.icon {...slotProps.icon} />}\n {slots.content && <slots.content {...slotProps.content} />}\n {slots.secondaryContent && <slots.secondaryContent {...slotProps.secondaryContent} />}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/useMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,O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AAG,CAAH,CAAf;EACD,CATD;;EAWA,OAAO,KAAP;AACD,CA3CM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourcesContent":["import * as React from 'react';\nimport { resolveShorthand } from '@fluentui/react-utilities';\nimport { Checkmark16Filled } from '@fluentui/react-icons';\nimport { useMenuListContext_unstable } from '../../contexts/menuListContext';\nimport { useMenuItem_unstable } from '../MenuItem/useMenuItem';\nimport type { MenuItemRadioProps, MenuItemRadioState } from './MenuItemRadio.types';\n\n/**\n * Given user props, returns state and render function for a MenuItemRadio.\n */\nexport const useMenuItemRadio_unstable = (\n props: MenuItemRadioProps,\n ref: React.Ref<HTMLElement>,\n): MenuItemRadioState => {\n const radioProps = {\n role: 'menuitemradio',\n };\n\n const state = useMenuItem_unstable(\n {\n ...radioProps,\n ...props,\n checkmark: resolveShorthand(props.checkmark, {\n defaultProps: { children: <Checkmark16Filled /> },\n required: true,\n }),\n },\n ref,\n ) as MenuItemRadioState;\n\n const selectRadio = useMenuListContext_unstable(context => context.selectRadio);\n const { onClick: onClickOriginal } = state.root;\n const checked = useMenuListContext_unstable(context => {\n const checkedItems = context.checkedValues?.[state.name] || [];\n return checkedItems.indexOf(state.value) !== -1;\n });\n\n state.checked = checked;\n state.root['aria-checked'] = state.checked;\n\n // MenuItem state already transforms keyDown to click events\n state.root.onClick = e => {\n if (state.disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n selectRadio?.(e, state.name, state.value, state.checked);\n onClickOriginal?.(e);\n };\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuItemRadioStyles_unstable = exports.menuItemRadioClassName = void 0;
6
+ exports.useMenuItemRadioStyles_unstable = exports.menuItemRadioClassNames = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
@@ -11,10 +11,33 @@ const index_1 = /*#__PURE__*/require("../../selectable/index");
11
11
 
12
12
  const useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
13
13
 
14
- exports.menuItemRadioClassName = 'fui-MenuItemRadio';
14
+ exports.menuItemRadioClassNames = {
15
+ root: 'fui-MenuItemRadio',
16
+ icon: 'fui-MenuItemRadio__icon',
17
+ checkmark: 'fui-MenuItemRadio__checkmark',
18
+ content: 'fui-MenuItemRadio__content',
19
+ secondaryContent: 'fui-MenuItemRadio__secondaryContent'
20
+ };
15
21
 
16
22
  const useMenuItemRadioStyles_unstable = state => {
17
- state.root.className = react_1.mergeClasses(exports.menuItemRadioClassName, state.root.className);
23
+ state.root.className = react_1.mergeClasses(exports.menuItemRadioClassNames.root, state.root.className);
24
+
25
+ if (state.content) {
26
+ state.content.className = react_1.mergeClasses(exports.menuItemRadioClassNames.content, state.content.className);
27
+ }
28
+
29
+ if (state.secondaryContent) {
30
+ state.secondaryContent.className = react_1.mergeClasses(exports.menuItemRadioClassNames.secondaryContent, state.secondaryContent.className);
31
+ }
32
+
33
+ if (state.icon) {
34
+ state.icon.className = react_1.mergeClasses(exports.menuItemRadioClassNames.icon, state.icon.className);
35
+ }
36
+
37
+ if (state.checkmark) {
38
+ state.checkmark.className = react_1.mergeClasses(exports.menuItemRadioClassNames.checkmark, state.checkmark.className);
39
+ }
40
+
18
41
  useMenuItemStyles_1.useMenuItemStyles_unstable(state);
19
42
  index_1.useCheckmarkStyles_unstable(state);
20
43
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/useMenuItemRadioStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGa,OAAA,CAAA,sBAAA,GAAyB,mBAAzB;;AAEN,MAAM,+BAA+B,GAAI,KAAD,I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KAAK,CAAC,gBAAN,CAAuB,SAFU,CAAnC;EAID;;EAED,IAAI,KAAK,CAAC,IAAV,EAAgB;IACd,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,uBAAA,CAAwB,IAArC,EAA2C,KAAK,CAAC,IAAN,CAAW,SAAtD,CAAvB;EACD;;EAED,IAAI,KAAK,CAAC,SAAV,EAAqB;IACnB,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,uBAAA,CAAwB,SAArC,EAAgD,KAAK,CAAC,SAAN,CAAgB,SAAhE,CAA5B;EACD;;EAED,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;EACA,OAAA,CAAA,2BAAA,CAA4B,KAA5B;AACD,CAxBM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses } from '@griffel/react';\nimport { useCheckmarkStyles_unstable } from '../../selectable/index';\nimport { MenuItemSlots } from '../index';\nimport { useMenuItemStyles_unstable } from '../MenuItem/useMenuItemStyles';\nimport type { MenuItemRadioState } from './MenuItemRadio.types';\n\nexport const menuItemRadioClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>> = {\n root: 'fui-MenuItemRadio',\n icon: 'fui-MenuItemRadio__icon',\n checkmark: 'fui-MenuItemRadio__checkmark',\n content: 'fui-MenuItemRadio__content',\n secondaryContent: 'fui-MenuItemRadio__secondaryContent',\n};\n\nexport const useMenuItemRadioStyles_unstable = (state: MenuItemRadioState) => {\n state.root.className = mergeClasses(menuItemRadioClassNames.root, state.root.className);\n\n if (state.content) {\n state.content.className = mergeClasses(menuItemRadioClassNames.content, state.content.className);\n }\n\n if (state.secondaryContent) {\n state.secondaryContent.className = mergeClasses(\n menuItemRadioClassNames.secondaryContent,\n state.secondaryContent.className,\n );\n }\n\n if (state.icon) {\n state.icon.className = mergeClasses(menuItemRadioClassNames.icon, state.icon.className);\n }\n\n if (state.checkmark) {\n state.checkmark.className = mergeClasses(menuItemRadioClassNames.checkmark, state.checkmark.className);\n }\n\n useMenuItemStyles_unstable(state);\n useCheckmarkStyles_unstable(state);\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/MenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAA+C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,aAAA,CAAA,oBAAA,CAAqB,KAArB,EAA4B,GAA5B,CAAd;AACA,QAAM,aAAa,GAAG,0BAAA,CAAA,iCAAA,CAAkC,KAAlC,CAAtB;AACA,EAAA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;AAEA,SAAO,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,EAA+B,aAA/B,CAAP;AACD,CAN2D,CAA/C;AAQb,OAAA,CAAA,QAAA,CAAS,WAAT,GAAuB,UAAvB","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuList/MenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAA+C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC1F,MAAM,KAAK,GAAG,aAAA,CAAA,oBAAA,CAAqB,KAArB,EAA4B,GAA5B,CAAd;EACA,MAAM,aAAa,GAAG,0BAAA,CAAA,iCAAA,CAAkC,KAAlC,CAAtB;EACA,mBAAA,CAAA,0BAAA,CAA2B,KAA3B;EAEA,OAAO,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,EAA+B,aAA/B,CAAP;AACD,CAN2D,CAA/C;AAQb,OAAA,CAAA,QAAA,CAAS,WAAT,GAAuB,UAAvB","sourcesContent":["import * as React from 'react';\nimport { useMenuList_unstable } from './useMenuList';\nimport { renderMenuList_unstable } from './renderMenuList';\nimport { useMenuListContextValues_unstable } from './useMenuListContextValues';\nimport { useMenuListStyles_unstable } from './useMenuListStyles';\nimport type { MenuListProps } from './MenuList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled MenuList, using the `useMenuList_unstable` hook.\n */\nexport const MenuList: ForwardRefComponent<MenuListProps> = React.forwardRef((props, ref) => {\n const state = useMenuList_unstable(props, ref);\n const contextValues = useMenuListContextValues_unstable(state);\n useMenuListStyles_unstable(state);\n\n return renderMenuList_unstable(state, contextValues);\n});\n\nMenuList.displayName = 'MenuList';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -8,6 +8,8 @@ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuList"), exports);
10
10
 
11
+ tslib_1.__exportStar(require("./MenuList.types"), exports);
12
+
11
13
  tslib_1.__exportStar(require("./renderMenuList"), exports);
12
14
 
13
15
  tslib_1.__exportStar(require("./useMenuList"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AAWA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './MenuList';\nexport * from './MenuList.types';\nexport * from './renderMenuList';\nexport * from './useMenuList';\nexport * from './useMenuListStyles';\nexport * from './useMenuListContextValues';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,uBAAuB,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;AACpG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,iBAAA,CAAA,gBAAD,EAAiB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAjB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuList/renderMenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,uBAAuB,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;EACpG,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;EAEA,OACE,KAAA,CAAA,aAAA,CAAC,iBAAA,CAAA,gBAAD,EAAiB;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAAjB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { MenuListContextValues, MenuListSlots, MenuListState } from './MenuList.types';\nimport { MenuListProvider } from '../../contexts/menuListContext';\n\n/**\n * Function that renders the final JSX of the component\n */\nexport const renderMenuList_unstable = (state: MenuListState, contextValues: MenuListContextValues) => {\n const { slots, slotProps } = getSlots<MenuListSlots>(state);\n\n return (\n <MenuListProvider value={contextValues.menuList}>\n <slots.root {...slotProps.root} />\n </MenuListProvider>\n );\n};\n"],"sourceRoot":"../src/"}
@@ -49,8 +49,8 @@ const useMenuList_unstable = (props, ref) => {
49
49
  ...focusAttributes,
50
50
  ...props
51
51
  }),
52
- hasIcons: menuContext.hasIcons,
53
- hasCheckmarks: menuContext.hasCheckmarks,
52
+ hasIcons: menuContext.hasIcons || false,
53
+ hasCheckmarks: menuContext.hasCheckmarks || false,
54
54
  ...(hasMenuContext && menuContext),
55
55
  ...props
56
56
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuList.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAMA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,oBAAoB,GAAG,CAAC,KAAD,EAAuB,GAAvB,KAAqE;AACvG,QAAM,eAAe,GAAG,eAAA,CAAA,uBAAA,CAAwB;AAAE,IAAA,QAAQ,EAAE;AAAZ,GAAxB,CAAxB;AACA,QAAM;AAAE,IAAA;AAAF,MAAuB,eAAA,CAAA,eAAA,EAA7B;AACA,QAAM,WAAW,GAAG,uBAAuB,EAA3C;AACA,QAAM,cAAc,GAAG,wBAAA,CAAA,mBAAA,CAAoB,aAAA,CAAA,WAApB,CAAvB;;AAEA,MAAI,wBAAwB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BAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,oBAA3C,CAA7B;EACA,MAAM,oBAAoB,GAAG,aAAA,CAAA,uBAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,oBAA3C,CAA7B;EACA,MAAM,SAAS,GAAG,aAAA,CAAA,uBAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,SAA3C,CAAlB;EACA,MAAM,QAAQ,GAAG,aAAA,CAAA,uBAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,QAA3C,CAAjB;EACA,MAAM,aAAa,GAAG,aAAA,CAAA,uBAAA,CAAwB,OAAO,IAAI,OAAO,CAAC,aAA3C,CAAtB;EAEA,OAAO;IACL,aADK;IAEL,oBAFK;IAGL,oBAHK;IAIL,SAJK;IAKL,QALK;IAML;EANK,CAAP;AAQD,CAhBD;AAkBA;;AAEG;;;AACH,MAAM,wBAAwB,GAAG,CAC/B,KAD+B,EAE/B,YAF+B,EAG/B,cAH+B,KAI7B;EACF,IAAI,sBAAsB,GAAG,KAA7B;;EACA,KAAK,MAAM,GAAX,IAAkB,YAAlB,EAAgC;IAC9B,IAAI,KAAK,CAAC,GAAD,CAAT,EAA4G;MAC1G,sBAAsB,GAAG,IAAzB;IACD;EACF;;EAED,OAAO,cAAc,IAAI,sBAAzB;AACD,CAbD","sourcesContent":["import * as React from 'react';\nimport {\n useMergedRefs,\n useEventCallback,\n useControllableState,\n getNativeElementProps,\n} from '@fluentui/react-utilities';\nimport { useArrowNavigationGroup, useFocusFinders } from '@fluentui/react-tabster';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useMenuContext_unstable } from '../../contexts/menuContext';\nimport { MenuContext } from '../../contexts/menuContext';\nimport type { MenuListProps, MenuListState, UninitializedMenuListState } from './MenuList.types';\n\n/**\n * Returns the props and state required to render the component\n */\nexport const useMenuList_unstable = (props: MenuListProps, ref: React.Ref<HTMLElement>): MenuListState => {\n const focusAttributes = useArrowNavigationGroup({ circular: true });\n const { findAllFocusable } = useFocusFinders();\n const menuContext = useMenuContextSelectors();\n const hasMenuContext = useHasParentContext(MenuContext);\n\n if (usingPropsAndMenuContext(props, menuContext, hasMenuContext)) {\n // TODO throw warnings in development safely\n // eslint-disable-next-line no-console\n console.warn('You are using both MenuList and Menu props, we recommend you to use Menu props when available');\n }\n\n const innerRef = React.useRef<HTMLElement>(null);\n const initialState: UninitializedMenuListState = {\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref: useMergedRefs(ref, innerRef),\n role: 'menu',\n 'aria-labelledby': menuContext.triggerId,\n ...focusAttributes,\n ...props,\n }),\n hasIcons: menuContext.hasIcons || false,\n hasCheckmarks: menuContext.hasCheckmarks || false,\n ...(hasMenuContext && menuContext),\n ...props,\n };\n\n const setFocusByFirstCharacter = React.useCallback(\n (e: React.KeyboardEvent<HTMLElement>, itemEl: HTMLElement) => {\n // TODO use some kind of children registration to reduce dependency on DOM roles\n const acceptedRoles = ['menuitem', 'menuitemcheckbox', 'menuitemradio'];\n if (!innerRef.current) {\n return;\n }\n\n const menuItems = findAllFocusable(\n innerRef.current,\n (el: HTMLElement) => el.hasAttribute('role') && acceptedRoles.indexOf(el.getAttribute('role')!) !== -1,\n );\n\n let startIndex = menuItems.indexOf(itemEl) + 1;\n if (startIndex === menuItems.length) {\n startIndex = 0;\n }\n\n const firstChars = menuItems.map(menuItem => menuItem.textContent?.charAt(0).toLowerCase());\n const char = e.key.toLowerCase();\n\n const getIndexFirstChars = (start: number, firstChar: string) => {\n for (let i = start; i < firstChars.length; i++) {\n if (char === firstChars[i]) {\n return i;\n }\n }\n return -1;\n };\n\n // Check remaining slots in the menu\n let index = getIndexFirstChars(startIndex, char);\n\n // If not found in remaining slots, check from beginning\n if (index === -1) {\n index = getIndexFirstChars(0, char);\n }\n\n // If match was found...\n if (index > -1) {\n menuItems[index].focus();\n }\n },\n [findAllFocusable],\n );\n\n const [checkedValues, setCheckedValues] = useControllableState({\n state: initialState.checkedValues,\n defaultState: initialState.defaultCheckedValues,\n initialState: {},\n });\n\n const { onCheckedValueChange } = initialState;\n const toggleCheckbox = useEventCallback(\n (e: React.MouseEvent | React.KeyboardEvent, name: string, value: string, checked: boolean) => {\n const checkedItems = checkedValues?.[name] || [];\n const newCheckedItems = [...checkedItems];\n if (checked) {\n newCheckedItems.splice(newCheckedItems.indexOf(value), 1);\n } else {\n newCheckedItems.push(value);\n }\n\n onCheckedValueChange?.(e, { name, checkedItems: newCheckedItems });\n setCheckedValues(s => ({ ...s, [name]: newCheckedItems }));\n },\n );\n\n const selectRadio = useEventCallback((e: React.MouseEvent | React.KeyboardEvent, name: string, value: string) => {\n const newCheckedItems = [value];\n setCheckedValues(s => ({ ...s, [name]: newCheckedItems }));\n onCheckedValueChange?.(e, { name, checkedItems: newCheckedItems });\n });\n\n const state = {\n ...initialState,\n setFocusByFirstCharacter,\n selectRadio,\n toggleCheckbox,\n checkedValues: checkedValues ?? {},\n };\n\n return state;\n};\n\n/**\n * Adds some sugar to fetching multiple context selector values\n */\nconst useMenuContextSelectors = () => {\n const checkedValues = useMenuContext_unstable(context => context.checkedValues);\n const onCheckedValueChange = useMenuContext_unstable(context => context.onCheckedValueChange);\n const defaultCheckedValues = useMenuContext_unstable(context => context.defaultCheckedValues);\n const triggerId = useMenuContext_unstable(context => context.triggerId);\n const hasIcons = useMenuContext_unstable(context => context.hasIcons);\n const hasCheckmarks = useMenuContext_unstable(context => context.hasCheckmarks);\n\n return {\n checkedValues,\n onCheckedValueChange,\n defaultCheckedValues,\n triggerId,\n hasIcons,\n hasCheckmarks,\n };\n};\n\n/**\n * Helper function to detect if props and MenuContext values are both used\n */\nconst usingPropsAndMenuContext = (\n props: MenuListProps,\n contextValue: ReturnType<typeof useMenuContextSelectors>,\n hasMenuContext: boolean,\n) => {\n let isUsingPropsAndContext = false;\n for (const val in contextValue) {\n if (props[val as keyof Omit<typeof contextValue, 'hasMenuContext' | 'onCheckedValueChange' | 'triggerId'>]) {\n isUsingPropsAndContext = true;\n }\n }\n\n return hasMenuContext && isUsingPropsAndContext;\n};\n"],"sourceRoot":"../src/"}
@@ -7,23 +7,23 @@ exports.useMenuListContextValues_unstable = void 0;
7
7
 
8
8
  function useMenuListContextValues_unstable(state) {
9
9
  const {
10
- onCheckedValueChange,
11
10
  checkedValues,
12
- toggleCheckbox,
11
+ hasCheckmarks,
12
+ hasIcons,
13
+ onCheckedValueChange,
13
14
  selectRadio,
14
15
  setFocusByFirstCharacter,
15
- hasIcons,
16
- hasCheckmarks
16
+ toggleCheckbox
17
17
  } = state; // This context is created with "@fluentui/react-context-selector", these is no sense to memoize it
18
18
 
19
19
  const menuList = {
20
- onCheckedValueChange,
21
20
  checkedValues,
22
- toggleCheckbox,
21
+ hasCheckmarks,
22
+ hasIcons,
23
+ onCheckedValueChange,
23
24
  selectRadio,
24
25
  setFocusByFirstCharacter,
25
- hasIcons,
26
- hasCheckmarks
26
+ toggleCheckbox
27
27
  };
28
28
  return {
29
29
  menuList
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuListContextValues.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,iCAAhB,CAAkD,KAAlD,EAAsE;AACpE,QAAM;AACJ,IAAA,oBADI;AAEJ,IAAA,aAFI;AAGJ,IAAA,cAHI;AAIJ,IAAA,WAJI;AAKJ,IAAA,wBALI;AAMJ,IAAA,QANI;AAOJ,IAAA;AAPI,MAQF,KARJ,CADoE,CAWpE;;AACA,QAAM,QAAQ,GAAG;AACf,IAAA,oBADe;AAEf,IAAA,aAFe;AAGf,IAAA,cAHe;AAIf,IAAA,WAJe;AAKf,IAAA,wBALe;AAMf,IAAA,QANe;AAOf,IAAA;AAPe,GAAjB;AAUA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD;;AAvBD,OAAA,CAAA,iCAAA,GAAA,iCAAA","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuList/useMenuListContextValues.ts"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,iCAAhB,CAAkD,KAAlD,EAAsE;EACpE,MAAM;IACJ,aADI;IAEJ,aAFI;IAGJ,QAHI;IAIJ,oBAJI;IAKJ,WALI;IAMJ,wBANI;IAOJ;EAPI,IAQF,KARJ,CADoE,CAWpE;;EACA,MAAM,QAAQ,GAAG;IACf,aADe;IAEf,aAFe;IAGf,QAHe;IAIf,oBAJe;IAKf,WALe;IAMf,wBANe;IAOf;EAPe,CAAjB;EAUA,OAAO;IAAE;EAAF,CAAP;AACD;;AAvBD,OAAA,CAAA,iCAAA,GAAA,iCAAA","sourcesContent":["import type { MenuListContextValues, MenuListState } from './MenuList.types';\n\nexport function useMenuListContextValues_unstable(state: MenuListState): MenuListContextValues {\n const {\n checkedValues,\n hasCheckmarks,\n hasIcons,\n onCheckedValueChange,\n selectRadio,\n setFocusByFirstCharacter,\n toggleCheckbox,\n } = state;\n\n // This context is created with \"@fluentui/react-context-selector\", these is no sense to memoize it\n const menuList = {\n checkedValues,\n hasCheckmarks,\n hasIcons,\n onCheckedValueChange,\n selectRadio,\n setFocusByFirstCharacter,\n toggleCheckbox,\n };\n\n return { menuList };\n}\n"],"sourceRoot":"../src/"}
@@ -3,11 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMenuListStyles_unstable = exports.menuListClassName = void 0;
6
+ exports.useMenuListStyles_unstable = exports.menuListClassNames = void 0;
7
7
 
8
8
  const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- exports.menuListClassName = 'fui-MenuList';
10
+ exports.menuListClassNames = {
11
+ root: 'fui-MenuList'
12
+ };
11
13
 
12
14
  const useStyles = /*#__PURE__*/react_1.__styles({
13
15
  "root": {
@@ -26,7 +28,7 @@ const useStyles = /*#__PURE__*/react_1.__styles({
26
28
 
27
29
  const useMenuListStyles_unstable = state => {
28
30
  const styles = useStyles();
29
- state.root.className = react_1.mergeClasses(exports.menuListClassName, styles.root, state.root.className);
31
+ state.root.className = react_1.mergeClasses(exports.menuListClassNames.root, styles.root, state.root.className);
30
32
  return state;
31
33
  };
32
34
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAGa,OAAA,CAAA,iBAAA,GAAoB,cAApB;;AAEb,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAAwC;AAChF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,iBAAb,EAAgC,MAAM,CAAC,IAAvC,EAA6C,KAAK,CAAC,IAAN,CAAW,SAAxD,CAAvB;AACA,SAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAGa,OAAA,CAAA,kBAAA,GAAoD;EAC/D,IAAI,EAAE;AADyD,CAApD;;AAIb,MAAM,SAAS,gBAAG,OAAA,SAAA;EAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACI,MAAM,0BAA0B,GAAI,KAAD,IAAwC;EAChF,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,kBAAA,CAAmB,IAAhC,EAAsC,MAAM,CAAC,IAA7C,EAAmD,KAAK,CAAC,IAAN,CAAW,SAA9D,CAAvB;EACA,OAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses, makeStyles, shorthands } from '@griffel/react';\nimport type { MenuListSlots, MenuListState } from './MenuList.types';\n\nexport const menuListClassNames: SlotClassNames<MenuListSlots> = {\n root: 'fui-MenuList',\n};\n\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n ...shorthands.gap('2px'),\n },\n});\n\n/**\n * Apply styling to the Menu slots based on the state\n */\nexport const useMenuListStyles_unstable = (state: MenuListState): MenuListState => {\n const styles = useStyles();\n state.root.className = mergeClasses(menuListClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/MenuPopover.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;AAEA,EAAA,sBAAA,CAAA,6BAAA,CAA8B,KAA9B;AACA,SAAO,mBAAA,CAAA,0BAAA,CAA2B,KAA3B,CAAP;AACD,CALiE,CAArD;AAOb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["components/MenuPopover/MenuPopover.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;EAChG,MAAM,KAAK,GAAG,gBAAA,CAAA,uBAAA,CAAwB,KAAxB,EAA+B,GAA/B,CAAd;EAEA,sBAAA,CAAA,6BAAA,CAA8B,KAA9B;EACA,OAAO,mBAAA,CAAA,0BAAA,CAA2B,KAA3B,CAAP;AACD,CALiE,CAArD;AAOb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { useMenuPopover_unstable } from './useMenuPopover';\nimport { useMenuPopoverStyles_unstable } from './useMenuPopoverStyles';\nimport { renderMenuPopover_unstable } from './renderMenuPopover';\nimport type { MenuPopoverProps } from './MenuPopover.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Popover intended to wrap `MenuList` and adds styling and interaction support specific to menus\n */\nexport const MenuPopover: ForwardRefComponent<MenuPopoverProps> = React.forwardRef((props, ref) => {\n const state = useMenuPopover_unstable(props, ref);\n\n useMenuPopoverStyles_unstable(state);\n return renderMenuPopover_unstable(state);\n});\n\nMenuPopover.displayName = 'MenuPopover';\n"],"sourceRoot":"../src/"}