@fluentui/react-menu 9.0.0-rc.1 → 9.0.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. package/CHANGELOG.json +527 -1
  2. package/CHANGELOG.md +262 -127
  3. package/dist/{react-menu.d.ts → index.d.ts} +164 -105
  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 +1 -1
  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 -1
  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 +8 -1
  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 +8 -1
  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 +4 -1
  52. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  53. package/lib/components/MenuItem/useMenuItemStyles.js +55 -15
  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 +29 -1
  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 +29 -1
  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 +8 -1
  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.map +1 -1
  85. package/lib/components/MenuPopover/useMenuPopoverStyles.js +8 -1
  86. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  87. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  88. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
  89. package/lib/components/MenuSplitGroup/index.js.map +1 -1
  90. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  91. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  92. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +9 -2
  93. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  94. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  95. package/lib/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  96. package/lib/components/MenuTrigger/index.js.map +1 -1
  97. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  98. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  99. package/lib/components/MenuTrigger/useMenuTrigger.js +1 -0
  100. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  101. package/lib/components/index.js.map +1 -1
  102. package/lib/contexts/menuContext.js.map +1 -1
  103. package/lib/contexts/menuGroupContext.js.map +1 -1
  104. package/lib/contexts/menuListContext.js.map +1 -1
  105. package/lib/contexts/menuTriggerContext.js +1 -1
  106. package/lib/contexts/menuTriggerContext.js.map +1 -1
  107. package/lib/index.js +25 -16
  108. package/lib/index.js.map +1 -1
  109. package/lib/selectable/index.js.map +1 -1
  110. package/lib/selectable/types.js.map +1 -1
  111. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  112. package/lib/utils/index.js.map +1 -1
  113. package/lib/utils/useIsSubmenu.js.map +1 -1
  114. package/lib/utils/useOnMenuEnter.js.map +1 -1
  115. package/lib-commonjs/Menu.js.map +1 -1
  116. package/lib-commonjs/MenuDivider.js.map +1 -1
  117. package/lib-commonjs/MenuGroup.js.map +1 -1
  118. package/lib-commonjs/MenuGroupHeader.js.map +1 -1
  119. package/lib-commonjs/MenuItem.js.map +1 -1
  120. package/lib-commonjs/MenuItemCheckbox.js.map +1 -1
  121. package/lib-commonjs/MenuItemRadio.js.map +1 -1
  122. package/lib-commonjs/MenuList.js.map +1 -1
  123. package/lib-commonjs/MenuPopover.js.map +1 -1
  124. package/lib-commonjs/MenuSplitGroup.js.map +1 -1
  125. package/lib-commonjs/MenuTrigger.js.map +1 -1
  126. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  127. package/lib-commonjs/components/Menu/Menu.types.js.map +1 -1
  128. package/lib-commonjs/components/Menu/index.js.map +1 -1
  129. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  130. package/lib-commonjs/components/Menu/useMenu.js +1 -1
  131. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  132. package/lib-commonjs/components/Menu/useMenuContextValues.js +20 -20
  133. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  134. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  135. package/lib-commonjs/components/MenuDivider/MenuDivider.types.js.map +1 -1
  136. package/lib-commonjs/components/MenuDivider/index.js.map +1 -1
  137. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  138. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  139. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +9 -2
  140. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  141. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  142. package/lib-commonjs/components/MenuGroup/MenuGroup.types.js.map +1 -1
  143. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  144. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  145. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  146. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  147. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +9 -2
  148. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  149. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  150. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.js.map +1 -1
  151. package/lib-commonjs/components/MenuGroupHeader/index.js.map +1 -1
  152. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  153. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  154. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +9 -2
  155. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  156. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  157. package/lib-commonjs/components/MenuItem/MenuItem.types.js.map +1 -1
  158. package/lib-commonjs/components/MenuItem/index.js.map +1 -1
  159. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  160. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  161. package/lib-commonjs/components/MenuItem/useMenuItem.js +4 -1
  162. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  163. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +57 -16
  164. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  165. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  166. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.js.map +1 -1
  167. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  168. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  169. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  170. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +30 -2
  171. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  172. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  173. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.js.map +1 -1
  174. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  175. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  176. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  177. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +30 -2
  178. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  179. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  180. package/lib-commonjs/components/MenuList/MenuList.types.js.map +1 -1
  181. package/lib-commonjs/components/MenuList/index.js +2 -0
  182. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  183. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  184. package/lib-commonjs/components/MenuList/useMenuList.js +2 -2
  185. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  186. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +8 -8
  187. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  188. package/lib-commonjs/components/MenuList/useMenuListStyles.js +9 -2
  189. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  190. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  191. package/lib-commonjs/components/MenuPopover/MenuPopover.types.js.map +1 -1
  192. package/lib-commonjs/components/MenuPopover/index.js.map +1 -1
  193. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  194. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  195. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +9 -2
  196. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  197. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  198. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
  199. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -1
  200. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  201. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  202. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +9 -2
  203. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  204. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  205. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  206. package/lib-commonjs/components/MenuTrigger/index.js.map +1 -1
  207. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +1 -1
  208. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  209. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +1 -0
  210. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  211. package/lib-commonjs/components/index.js.map +1 -1
  212. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  213. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  214. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  215. package/lib-commonjs/contexts/menuTriggerContext.js +1 -1
  216. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  217. package/lib-commonjs/index.js +486 -17
  218. package/lib-commonjs/index.js.map +1 -1
  219. package/lib-commonjs/selectable/index.js.map +1 -1
  220. package/lib-commonjs/selectable/types.js.map +1 -1
  221. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  222. package/lib-commonjs/utils/index.js.map +1 -1
  223. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  224. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  225. package/package.json +23 -25
  226. package/lib/Menu.d.ts +0 -1
  227. package/lib/MenuDivider.d.ts +0 -1
  228. package/lib/MenuGroup.d.ts +0 -1
  229. package/lib/MenuGroupHeader.d.ts +0 -1
  230. package/lib/MenuItem.d.ts +0 -1
  231. package/lib/MenuItemCheckbox.d.ts +0 -1
  232. package/lib/MenuItemRadio.d.ts +0 -1
  233. package/lib/MenuList.d.ts +0 -1
  234. package/lib/MenuPopover.d.ts +0 -1
  235. package/lib/MenuSplitGroup.d.ts +0 -1
  236. package/lib/MenuTrigger.d.ts +0 -1
  237. package/lib/components/Menu/Menu.d.ts +0 -6
  238. package/lib/components/Menu/Menu.types.d.ts +0 -113
  239. package/lib/components/Menu/index.d.ts +0 -5
  240. package/lib/components/Menu/renderMenu.d.ts +0 -5
  241. package/lib/components/Menu/useMenu.d.ts +0 -10
  242. package/lib/components/Menu/useMenuContextValues.d.ts +0 -2
  243. package/lib/components/MenuDivider/MenuDivider.d.ts +0 -6
  244. package/lib/components/MenuDivider/MenuDivider.types.d.ts +0 -6
  245. package/lib/components/MenuDivider/index.d.ts +0 -5
  246. package/lib/components/MenuDivider/renderMenuDivider.d.ts +0 -6
  247. package/lib/components/MenuDivider/useMenuDivider.d.ts +0 -6
  248. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
  249. package/lib/components/MenuGroup/MenuGroup.d.ts +0 -6
  250. package/lib/components/MenuGroup/MenuGroup.types.d.ts +0 -15
  251. package/lib/components/MenuGroup/index.d.ts +0 -6
  252. package/lib/components/MenuGroup/renderMenuGroup.d.ts +0 -6
  253. package/lib/components/MenuGroup/useMenuGroup.d.ts +0 -6
  254. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
  255. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
  256. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
  257. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
  258. package/lib/components/MenuGroupHeader/index.d.ts +0 -5
  259. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
  260. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
  261. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
  262. package/lib/components/MenuItem/MenuItem.d.ts +0 -6
  263. package/lib/components/MenuItem/MenuItem.types.d.ts +0 -43
  264. package/lib/components/MenuItem/index.d.ts +0 -5
  265. package/lib/components/MenuItem/renderMenuItem.d.ts +0 -5
  266. package/lib/components/MenuItem/useCharacterSearch.d.ts +0 -3
  267. package/lib/components/MenuItem/useMenuItem.d.ts +0 -6
  268. package/lib/components/MenuItem/useMenuItemStyles.d.ts +0 -4
  269. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
  270. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
  271. package/lib/components/MenuItemCheckbox/index.d.ts +0 -5
  272. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
  273. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
  274. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
  275. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
  276. package/lib/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
  277. package/lib/components/MenuItemRadio/index.d.ts +0 -5
  278. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
  279. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
  280. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
  281. package/lib/components/MenuList/MenuList.d.ts +0 -6
  282. package/lib/components/MenuList/MenuList.types.d.ts +0 -55
  283. package/lib/components/MenuList/index.d.ts +0 -6
  284. package/lib/components/MenuList/renderMenuList.d.ts +0 -5
  285. package/lib/components/MenuList/useMenuList.d.ts +0 -6
  286. package/lib/components/MenuList/useMenuListContextValues.d.ts +0 -2
  287. package/lib/components/MenuList/useMenuListStyles.d.ts +0 -6
  288. package/lib/components/MenuPopover/MenuPopover.d.ts +0 -6
  289. package/lib/components/MenuPopover/MenuPopover.types.d.ts +0 -18
  290. package/lib/components/MenuPopover/index.d.ts +0 -5
  291. package/lib/components/MenuPopover/renderMenuPopover.d.ts +0 -5
  292. package/lib/components/MenuPopover/useMenuPopover.d.ts +0 -12
  293. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
  294. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
  295. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
  296. package/lib/components/MenuSplitGroup/index.d.ts +0 -5
  297. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
  298. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
  299. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
  300. package/lib/components/MenuTrigger/MenuTrigger.d.ts +0 -8
  301. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
  302. package/lib/components/MenuTrigger/index.d.ts +0 -4
  303. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
  304. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
  305. package/lib/components/index.d.ts +0 -2
  306. package/lib/contexts/menuContext.d.ts +0 -16
  307. package/lib/contexts/menuGroupContext.d.ts +0 -13
  308. package/lib/contexts/menuListContext.d.ts +0 -15
  309. package/lib/contexts/menuTriggerContext.d.ts +0 -3
  310. package/lib/index.d.ts +0 -16
  311. package/lib/selectable/index.d.ts +0 -2
  312. package/lib/selectable/types.d.ts +0 -34
  313. package/lib/selectable/useCheckmarkStyles.d.ts +0 -8
  314. package/lib/utils/index.d.ts +0 -1
  315. package/lib/utils/useIsSubmenu.d.ts +0 -9
  316. package/lib/utils/useOnMenuEnter.d.ts +0 -23
  317. package/lib-commonjs/Menu.d.ts +0 -1
  318. package/lib-commonjs/MenuDivider.d.ts +0 -1
  319. package/lib-commonjs/MenuGroup.d.ts +0 -1
  320. package/lib-commonjs/MenuGroupHeader.d.ts +0 -1
  321. package/lib-commonjs/MenuItem.d.ts +0 -1
  322. package/lib-commonjs/MenuItemCheckbox.d.ts +0 -1
  323. package/lib-commonjs/MenuItemRadio.d.ts +0 -1
  324. package/lib-commonjs/MenuList.d.ts +0 -1
  325. package/lib-commonjs/MenuPopover.d.ts +0 -1
  326. package/lib-commonjs/MenuSplitGroup.d.ts +0 -1
  327. package/lib-commonjs/MenuTrigger.d.ts +0 -1
  328. package/lib-commonjs/components/Menu/Menu.d.ts +0 -6
  329. package/lib-commonjs/components/Menu/Menu.types.d.ts +0 -113
  330. package/lib-commonjs/components/Menu/index.d.ts +0 -5
  331. package/lib-commonjs/components/Menu/renderMenu.d.ts +0 -5
  332. package/lib-commonjs/components/Menu/useMenu.d.ts +0 -10
  333. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +0 -2
  334. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +0 -6
  335. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +0 -6
  336. package/lib-commonjs/components/MenuDivider/index.d.ts +0 -5
  337. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +0 -6
  338. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +0 -6
  339. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
  340. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +0 -6
  341. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +0 -15
  342. package/lib-commonjs/components/MenuGroup/index.d.ts +0 -6
  343. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +0 -6
  344. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +0 -6
  345. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
  346. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
  347. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
  348. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
  349. package/lib-commonjs/components/MenuGroupHeader/index.d.ts +0 -5
  350. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
  351. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
  352. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
  353. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +0 -6
  354. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +0 -43
  355. package/lib-commonjs/components/MenuItem/index.d.ts +0 -5
  356. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +0 -5
  357. package/lib-commonjs/components/MenuItem/useCharacterSearch.d.ts +0 -3
  358. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +0 -6
  359. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +0 -4
  360. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
  361. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
  362. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +0 -5
  363. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
  364. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
  365. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
  366. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
  367. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
  368. package/lib-commonjs/components/MenuItemRadio/index.d.ts +0 -5
  369. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
  370. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
  371. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
  372. package/lib-commonjs/components/MenuList/MenuList.d.ts +0 -6
  373. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +0 -55
  374. package/lib-commonjs/components/MenuList/index.d.ts +0 -6
  375. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +0 -5
  376. package/lib-commonjs/components/MenuList/useMenuList.d.ts +0 -6
  377. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +0 -2
  378. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +0 -6
  379. package/lib-commonjs/components/MenuPopover/MenuPopover.d.ts +0 -6
  380. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +0 -18
  381. package/lib-commonjs/components/MenuPopover/index.d.ts +0 -5
  382. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +0 -5
  383. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +0 -12
  384. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
  385. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
  386. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
  387. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +0 -5
  388. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
  389. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
  390. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
  391. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +0 -8
  392. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
  393. package/lib-commonjs/components/MenuTrigger/index.d.ts +0 -4
  394. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
  395. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
  396. package/lib-commonjs/components/index.d.ts +0 -2
  397. package/lib-commonjs/contexts/menuContext.d.ts +0 -16
  398. package/lib-commonjs/contexts/menuGroupContext.d.ts +0 -13
  399. package/lib-commonjs/contexts/menuListContext.d.ts +0 -15
  400. package/lib-commonjs/contexts/menuTriggerContext.d.ts +0 -3
  401. package/lib-commonjs/index.d.ts +0 -16
  402. package/lib-commonjs/selectable/index.d.ts +0 -2
  403. package/lib-commonjs/selectable/types.d.ts +0 -34
  404. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +0 -8
  405. package/lib-commonjs/utils/index.d.ts +0 -1
  406. package/lib-commonjs/utils/useIsSubmenu.d.ts +0 -9
  407. package/lib-commonjs/utils/useOnMenuEnter.d.ts +0 -23
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import type { ContextSelector, Context } from '@fluentui/react-context-selector';
3
- import type { SelectableHandler } from '../selectable/index';
4
- import type { MenuListProps } from '../components/index';
5
- export declare const MenuListContext: Context<MenuListContextValue>;
6
- /**
7
- * Context shared between MenuList and its children components
8
- */
9
- export declare type MenuListContextValue = Pick<MenuListProps, 'checkedValues' | 'onCheckedValueChange' | 'hasIcons' | 'hasCheckmarks'> & {
10
- setFocusByFirstCharacter?: (e: React.KeyboardEvent<HTMLElement>, itemEl: HTMLElement) => void;
11
- toggleCheckbox?: SelectableHandler;
12
- selectRadio?: SelectableHandler;
13
- };
14
- export declare const MenuListProvider: React.Provider<MenuListContextValue> & React.FC<React.ProviderProps<MenuListContextValue>>;
15
- export declare const useMenuListContext_unstable: <T>(selector: ContextSelector<MenuListContextValue, T>) => T;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const MenuTriggerContextProvider: React.Provider<boolean>;
3
- export declare const useMenuTriggerContext_unstable: () => boolean;
@@ -1,16 +0,0 @@
1
- export * from './contexts/menuContext';
2
- export * from './contexts/menuTriggerContext';
3
- export * from './contexts/menuGroupContext';
4
- export * from './contexts/menuListContext';
5
- export * from './Menu';
6
- export * from './MenuDivider';
7
- export * from './MenuGroup';
8
- export * from './MenuGroupHeader';
9
- export * from './MenuItem';
10
- export * from './MenuItemCheckbox';
11
- export * from './MenuItemRadio';
12
- export * from './MenuList';
13
- export * from './MenuPopover';
14
- export * from './MenuSplitGroup';
15
- export * from './MenuTrigger';
16
- export * from './selectable/index';
@@ -1,2 +0,0 @@
1
- export * from './useCheckmarkStyles';
2
- export * from './types';
@@ -1,34 +0,0 @@
1
- import * as React from 'react';
2
- export declare type SelectableHandler = (e: React.MouseEvent | React.KeyboardEvent, name: string, value: string, checked: boolean) => void;
3
- /**
4
- * Props for selecatble menu items
5
- */
6
- export declare type MenuItemSelectableProps = {
7
- /**
8
- * Follows input convention
9
- * https://www.w3schools.com/jsref/prop_checkbox_name.asp
10
- */
11
- name: string;
12
- /**
13
- * Follows input convention
14
- * https://www.w3schools.com/jsref/prop_checkbox_value.asp
15
- */
16
- value: string;
17
- };
18
- /**
19
- * State for selectable menu items
20
- */
21
- export declare type MenuItemSelectableState = MenuItemSelectableProps & {
22
- /**
23
- * Checked items for a value with `name`
24
- */
25
- checkedItems: string[];
26
- /**
27
- * Callback when checked items changes for a given value with `name`
28
- */
29
- onCheckedValueChange: (e: React.MouseEvent | React.KeyboardEvent, name: string, checkedItems: string[]) => void;
30
- /**
31
- * Selectable is checked
32
- */
33
- checked: boolean;
34
- };
@@ -1,8 +0,0 @@
1
- import type { MenuItemSelectableState } from './types';
2
- import type { MenuItemState } from '../components/MenuItem/MenuItem.types';
3
- /**
4
- * Applies styles to a checkmark slot for selectable menu items
5
- *
6
- * @param state - should contain a `checkmark` slot
7
- */
8
- export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
@@ -1 +0,0 @@
1
- export * from './useOnMenuEnter';
@@ -1,9 +0,0 @@
1
- /**
2
- * A component can be a part of a submenu whether its menu context `isSubmenu` flag is true
3
- * or whether it is a part of a `MenuList`
4
- *
5
- * A simple hook to check box contexts easily
6
- *
7
- * @returns whether the component is part of a submenu
8
- */
9
- export declare function useIsSubmenu(): boolean;
@@ -1,23 +0,0 @@
1
- import type { UseOnClickOrScrollOutsideOptions } from '@fluentui/react-utilities';
2
- /**
3
- * Name of the custom event
4
- */
5
- export declare const MENU_ENTER_EVENT = "fuimenuenter";
6
- /**
7
- * This hook works similarly to @see {useOnClickOutside}
8
- *
9
- * Problem: Trying to behave the same as system menus:
10
- * When the mouse leaves a stack of nested menus the stack should not dismiss.
11
- * However if the mouse leaves a stack of menus and enters a parent menu all its children menu should dismiss.
12
- *
13
- * We don't use the native mouseenter event because it would trigger too many times in the document
14
- * Instead, dispatch custom DOM event from the menu so that it can bubble
15
- * Each nested menu can use the listener to check if the event is from a child or parent menu
16
- */
17
- export declare const useOnMenuMouseEnter: (options: UseOnClickOrScrollOutsideOptions) => void;
18
- /**
19
- * Dispatches the custom MouseEvent enter event. Similar to calling `el.click()`
20
- * @param el element for the event target
21
- * @param nativeEvent the native mouse event this is mapped to
22
- */
23
- export declare const dispatchMenuEnterEvent: (el: HTMLElement, nativeEvent: MouseEvent) => void;