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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (344) 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/components/Menu/Menu.js.map +1 -1
  6. package/lib/components/Menu/Menu.types.js.map +1 -1
  7. package/lib/components/Menu/renderMenu.js.map +1 -1
  8. package/lib/components/Menu/useMenu.js +21 -7
  9. package/lib/components/Menu/useMenu.js.map +1 -1
  10. package/lib/components/Menu/useMenuContextValues.js +20 -20
  11. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  12. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  13. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  14. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  15. package/lib/components/MenuDivider/useMenuDividerStyles.js +8 -5
  16. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  17. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  18. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  19. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  20. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  21. package/lib/components/MenuGroup/useMenuGroupStyles.js +4 -2
  22. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  23. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  24. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  25. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  26. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +4 -2
  27. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  28. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  29. package/lib/components/MenuItem/MenuItem.types.js.map +1 -1
  30. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  31. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  32. package/lib/components/MenuItem/useMenuItem.js +8 -3
  33. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  34. package/lib/components/MenuItem/useMenuItemStyles.js +62 -28
  35. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  36. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  37. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  38. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  39. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +25 -2
  40. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  41. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  42. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  43. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  44. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +25 -2
  45. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  46. package/lib/components/MenuList/MenuList.js.map +1 -1
  47. package/lib/components/MenuList/MenuList.types.js.map +1 -1
  48. package/lib/components/MenuList/index.js +1 -0
  49. package/lib/components/MenuList/index.js.map +1 -1
  50. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  51. package/lib/components/MenuList/useMenuList.js +2 -2
  52. package/lib/components/MenuList/useMenuList.js.map +1 -1
  53. package/lib/components/MenuList/useMenuListContextValues.js +8 -8
  54. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  55. package/lib/components/MenuList/useMenuListStyles.js +4 -2
  56. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  57. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  58. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  59. package/lib/components/MenuPopover/useMenuPopover.js +1 -1
  60. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  61. package/lib/components/MenuPopover/useMenuPopoverStyles.js +4 -2
  62. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  63. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  64. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -1
  65. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  66. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +1 -1
  67. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  68. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +10 -8
  69. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  70. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  71. package/lib/components/MenuTrigger/MenuTrigger.types.js.map +1 -1
  72. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  73. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  74. package/lib/components/MenuTrigger/useMenuTrigger.js +2 -1
  75. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  76. package/lib/contexts/menuContext.js.map +1 -1
  77. package/lib/contexts/menuGroupContext.js.map +1 -1
  78. package/lib/contexts/menuListContext.js.map +1 -1
  79. package/lib/contexts/menuTriggerContext.js +1 -1
  80. package/lib/contexts/menuTriggerContext.js.map +1 -1
  81. package/lib/index.js +16 -16
  82. package/lib/index.js.map +1 -1
  83. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  84. package/lib/utils/useIsSubmenu.js.map +1 -1
  85. package/lib/utils/useOnMenuEnter.js.map +1 -1
  86. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  87. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  88. package/lib-commonjs/components/Menu/useMenu.js +19 -5
  89. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  90. package/lib-commonjs/components/Menu/useMenuContextValues.js +20 -20
  91. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  92. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  93. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  94. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  95. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +9 -6
  96. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  97. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  98. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  99. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  100. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  101. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +5 -3
  102. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  103. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  104. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  105. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  106. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +5 -3
  107. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  108. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  109. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  110. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  111. package/lib-commonjs/components/MenuItem/useMenuItem.js +9 -4
  112. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  113. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +64 -29
  114. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  115. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  116. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  117. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  118. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +26 -3
  119. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  120. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  121. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  122. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  123. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +26 -3
  124. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  125. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  126. package/lib-commonjs/components/MenuList/index.js +2 -0
  127. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  128. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  129. package/lib-commonjs/components/MenuList/useMenuList.js +2 -2
  130. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  131. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +8 -8
  132. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  133. package/lib-commonjs/components/MenuList/useMenuListStyles.js +5 -3
  134. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  135. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  136. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  137. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +1 -1
  138. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  139. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +5 -3
  140. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  141. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -1
  142. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -1
  143. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +1 -1
  144. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -1
  145. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +10 -8
  146. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  147. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  148. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +1 -1
  149. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  150. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +2 -1
  151. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  152. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  153. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  154. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  155. package/lib-commonjs/contexts/menuTriggerContext.js +1 -1
  156. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  157. package/lib-commonjs/index.js +411 -17
  158. package/lib-commonjs/index.js.map +1 -1
  159. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  160. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  161. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  162. package/package.json +28 -30
  163. package/lib/Menu.d.ts +0 -1
  164. package/lib/MenuDivider.d.ts +0 -1
  165. package/lib/MenuGroup.d.ts +0 -1
  166. package/lib/MenuGroupHeader.d.ts +0 -1
  167. package/lib/MenuItem.d.ts +0 -1
  168. package/lib/MenuItemCheckbox.d.ts +0 -1
  169. package/lib/MenuItemRadio.d.ts +0 -1
  170. package/lib/MenuList.d.ts +0 -1
  171. package/lib/MenuPopover.d.ts +0 -1
  172. package/lib/MenuSplitGroup.d.ts +0 -1
  173. package/lib/MenuTrigger.d.ts +0 -1
  174. package/lib/components/Menu/Menu.d.ts +0 -6
  175. package/lib/components/Menu/Menu.types.d.ts +0 -113
  176. package/lib/components/Menu/index.d.ts +0 -5
  177. package/lib/components/Menu/renderMenu.d.ts +0 -5
  178. package/lib/components/Menu/useMenu.d.ts +0 -10
  179. package/lib/components/Menu/useMenuContextValues.d.ts +0 -2
  180. package/lib/components/MenuDivider/MenuDivider.d.ts +0 -6
  181. package/lib/components/MenuDivider/MenuDivider.types.d.ts +0 -6
  182. package/lib/components/MenuDivider/index.d.ts +0 -5
  183. package/lib/components/MenuDivider/renderMenuDivider.d.ts +0 -6
  184. package/lib/components/MenuDivider/useMenuDivider.d.ts +0 -6
  185. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
  186. package/lib/components/MenuGroup/MenuGroup.d.ts +0 -6
  187. package/lib/components/MenuGroup/MenuGroup.types.d.ts +0 -15
  188. package/lib/components/MenuGroup/index.d.ts +0 -6
  189. package/lib/components/MenuGroup/renderMenuGroup.d.ts +0 -6
  190. package/lib/components/MenuGroup/useMenuGroup.d.ts +0 -6
  191. package/lib/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
  192. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
  193. package/lib/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
  194. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
  195. package/lib/components/MenuGroupHeader/index.d.ts +0 -5
  196. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
  197. package/lib/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
  198. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
  199. package/lib/components/MenuItem/MenuItem.d.ts +0 -6
  200. package/lib/components/MenuItem/MenuItem.types.d.ts +0 -43
  201. package/lib/components/MenuItem/index.d.ts +0 -5
  202. package/lib/components/MenuItem/renderMenuItem.d.ts +0 -5
  203. package/lib/components/MenuItem/useCharacterSearch.d.ts +0 -3
  204. package/lib/components/MenuItem/useMenuItem.d.ts +0 -6
  205. package/lib/components/MenuItem/useMenuItemStyles.d.ts +0 -4
  206. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
  207. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
  208. package/lib/components/MenuItemCheckbox/index.d.ts +0 -5
  209. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
  210. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
  211. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
  212. package/lib/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
  213. package/lib/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
  214. package/lib/components/MenuItemRadio/index.d.ts +0 -5
  215. package/lib/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
  216. package/lib/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
  217. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
  218. package/lib/components/MenuList/MenuList.d.ts +0 -6
  219. package/lib/components/MenuList/MenuList.types.d.ts +0 -55
  220. package/lib/components/MenuList/index.d.ts +0 -6
  221. package/lib/components/MenuList/renderMenuList.d.ts +0 -5
  222. package/lib/components/MenuList/useMenuList.d.ts +0 -6
  223. package/lib/components/MenuList/useMenuListContextValues.d.ts +0 -2
  224. package/lib/components/MenuList/useMenuListStyles.d.ts +0 -6
  225. package/lib/components/MenuPopover/MenuPopover.d.ts +0 -6
  226. package/lib/components/MenuPopover/MenuPopover.types.d.ts +0 -18
  227. package/lib/components/MenuPopover/index.d.ts +0 -5
  228. package/lib/components/MenuPopover/renderMenuPopover.d.ts +0 -5
  229. package/lib/components/MenuPopover/useMenuPopover.d.ts +0 -12
  230. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
  231. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
  232. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
  233. package/lib/components/MenuSplitGroup/index.d.ts +0 -5
  234. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
  235. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
  236. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
  237. package/lib/components/MenuTrigger/MenuTrigger.d.ts +0 -8
  238. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
  239. package/lib/components/MenuTrigger/index.d.ts +0 -4
  240. package/lib/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
  241. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
  242. package/lib/components/index.d.ts +0 -2
  243. package/lib/contexts/menuContext.d.ts +0 -16
  244. package/lib/contexts/menuGroupContext.d.ts +0 -13
  245. package/lib/contexts/menuListContext.d.ts +0 -15
  246. package/lib/contexts/menuTriggerContext.d.ts +0 -3
  247. package/lib/index.d.ts +0 -16
  248. package/lib/selectable/index.d.ts +0 -2
  249. package/lib/selectable/types.d.ts +0 -34
  250. package/lib/selectable/useCheckmarkStyles.d.ts +0 -8
  251. package/lib/utils/index.d.ts +0 -1
  252. package/lib/utils/useIsSubmenu.d.ts +0 -9
  253. package/lib/utils/useOnMenuEnter.d.ts +0 -23
  254. package/lib-commonjs/Menu.d.ts +0 -1
  255. package/lib-commonjs/MenuDivider.d.ts +0 -1
  256. package/lib-commonjs/MenuGroup.d.ts +0 -1
  257. package/lib-commonjs/MenuGroupHeader.d.ts +0 -1
  258. package/lib-commonjs/MenuItem.d.ts +0 -1
  259. package/lib-commonjs/MenuItemCheckbox.d.ts +0 -1
  260. package/lib-commonjs/MenuItemRadio.d.ts +0 -1
  261. package/lib-commonjs/MenuList.d.ts +0 -1
  262. package/lib-commonjs/MenuPopover.d.ts +0 -1
  263. package/lib-commonjs/MenuSplitGroup.d.ts +0 -1
  264. package/lib-commonjs/MenuTrigger.d.ts +0 -1
  265. package/lib-commonjs/components/Menu/Menu.d.ts +0 -6
  266. package/lib-commonjs/components/Menu/Menu.types.d.ts +0 -113
  267. package/lib-commonjs/components/Menu/index.d.ts +0 -5
  268. package/lib-commonjs/components/Menu/renderMenu.d.ts +0 -5
  269. package/lib-commonjs/components/Menu/useMenu.d.ts +0 -10
  270. package/lib-commonjs/components/Menu/useMenuContextValues.d.ts +0 -2
  271. package/lib-commonjs/components/MenuDivider/MenuDivider.d.ts +0 -6
  272. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +0 -6
  273. package/lib-commonjs/components/MenuDivider/index.d.ts +0 -5
  274. package/lib-commonjs/components/MenuDivider/renderMenuDivider.d.ts +0 -6
  275. package/lib-commonjs/components/MenuDivider/useMenuDivider.d.ts +0 -6
  276. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +0 -3
  277. package/lib-commonjs/components/MenuGroup/MenuGroup.d.ts +0 -6
  278. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +0 -15
  279. package/lib-commonjs/components/MenuGroup/index.d.ts +0 -6
  280. package/lib-commonjs/components/MenuGroup/renderMenuGroup.d.ts +0 -6
  281. package/lib-commonjs/components/MenuGroup/useMenuGroup.d.ts +0 -6
  282. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.d.ts +0 -2
  283. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +0 -3
  284. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.d.ts +0 -6
  285. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +0 -6
  286. package/lib-commonjs/components/MenuGroupHeader/index.d.ts +0 -5
  287. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.d.ts +0 -6
  288. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.d.ts +0 -6
  289. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +0 -3
  290. package/lib-commonjs/components/MenuItem/MenuItem.d.ts +0 -6
  291. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +0 -43
  292. package/lib-commonjs/components/MenuItem/index.d.ts +0 -5
  293. package/lib-commonjs/components/MenuItem/renderMenuItem.d.ts +0 -5
  294. package/lib-commonjs/components/MenuItem/useCharacterSearch.d.ts +0 -3
  295. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +0 -6
  296. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +0 -4
  297. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.d.ts +0 -6
  298. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.types.d.ts +0 -4
  299. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +0 -5
  300. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.d.ts +0 -3
  301. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.d.ts +0 -4
  302. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +0 -3
  303. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.d.ts +0 -6
  304. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.types.d.ts +0 -4
  305. package/lib-commonjs/components/MenuItemRadio/index.d.ts +0 -5
  306. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.d.ts +0 -6
  307. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.d.ts +0 -6
  308. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +0 -3
  309. package/lib-commonjs/components/MenuList/MenuList.d.ts +0 -6
  310. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +0 -55
  311. package/lib-commonjs/components/MenuList/index.d.ts +0 -6
  312. package/lib-commonjs/components/MenuList/renderMenuList.d.ts +0 -5
  313. package/lib-commonjs/components/MenuList/useMenuList.d.ts +0 -6
  314. package/lib-commonjs/components/MenuList/useMenuListContextValues.d.ts +0 -2
  315. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +0 -6
  316. package/lib-commonjs/components/MenuPopover/MenuPopover.d.ts +0 -6
  317. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +0 -18
  318. package/lib-commonjs/components/MenuPopover/index.d.ts +0 -5
  319. package/lib-commonjs/components/MenuPopover/renderMenuPopover.d.ts +0 -5
  320. package/lib-commonjs/components/MenuPopover/useMenuPopover.d.ts +0 -12
  321. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +0 -6
  322. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +0 -6
  323. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +0 -14
  324. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +0 -5
  325. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +0 -5
  326. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +0 -12
  327. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +0 -6
  328. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +0 -8
  329. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +0 -19
  330. package/lib-commonjs/components/MenuTrigger/index.d.ts +0 -4
  331. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.d.ts +0 -7
  332. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +0 -8
  333. package/lib-commonjs/components/index.d.ts +0 -2
  334. package/lib-commonjs/contexts/menuContext.d.ts +0 -16
  335. package/lib-commonjs/contexts/menuGroupContext.d.ts +0 -13
  336. package/lib-commonjs/contexts/menuListContext.d.ts +0 -15
  337. package/lib-commonjs/contexts/menuTriggerContext.d.ts +0 -3
  338. package/lib-commonjs/index.d.ts +0 -16
  339. package/lib-commonjs/selectable/index.d.ts +0 -2
  340. package/lib-commonjs/selectable/types.d.ts +0 -34
  341. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +0 -8
  342. package/lib-commonjs/utils/index.d.ts +0 -1
  343. package/lib-commonjs/utils/useIsSubmenu.d.ts +0 -9
  344. package/lib-commonjs/utils/useOnMenuEnter.d.ts +0 -23
@@ -1,6 +0,0 @@
1
- import type { MenuSplitGroupProps } from './MenuSplitGroup.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
5
- */
6
- export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
@@ -1,14 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- export declare type MenuSplitGroupSlots = {
3
- root: Slot<'div'>;
4
- };
5
- declare type MenuSplitGroupCommons = {};
6
- /**
7
- * MenuSplitGroup Props
8
- */
9
- export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
10
- /**
11
- * State used in rendering MenuSplitGroup
12
- */
13
- export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
14
- export {};
@@ -1,5 +0,0 @@
1
- export * from './MenuSplitGroup';
2
- export * from './MenuSplitGroup.types';
3
- export * from './renderMenuSplitGroup';
4
- export * from './useMenuSplitGroup';
5
- export * from './useMenuSplitGroupStyles';
@@ -1,5 +0,0 @@
1
- import type { MenuSplitGroupState } from './MenuSplitGroup.types';
2
- /**
3
- * Render the final JSX of MenuSplitGroup
4
- */
5
- export declare const renderMenuSplitGroup_unstable: (state: MenuSplitGroupState) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { MenuSplitGroupProps, MenuSplitGroupState } from './MenuSplitGroup.types';
3
- /**
4
- * Create the state required to render MenuSplitGroup.
5
- *
6
- * The returned state can be modified with hooks such as useMenuSplitGroupStyles_unstable,
7
- * before being passed to renderMenuSplitGroup_unstable.
8
- *
9
- * @param props - props from this instance of MenuSplitGroup
10
- * @param ref - reference to root HTMLElement of MenuSplitGroup
11
- */
12
- export declare const useMenuSplitGroup_unstable: (props: MenuSplitGroupProps, ref: React.Ref<HTMLElement>) => MenuSplitGroupState;
@@ -1,6 +0,0 @@
1
- import type { MenuSplitGroupState } from './MenuSplitGroup.types';
2
- export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
3
- /**
4
- * Apply styling to the MenuSplitGroup slots based on the state
5
- */
6
- export declare const useMenuSplitGroupStyles_unstable: (state: MenuSplitGroupState) => MenuSplitGroupState;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { MenuTriggerProps } from './MenuTrigger.types';
3
- import type { FluentTriggerComponent } from '@fluentui/react-utilities';
4
- /**
5
- * Wraps a trigger element as an only child
6
- * and adds the necessary event handling to open a popup menu
7
- */
8
- export declare const MenuTrigger: React.FC<MenuTriggerProps> & FluentTriggerComponent;
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- export declare type MenuTriggerProps = {
3
- /**
4
- * Explicitly require single child or render function
5
- */
6
- children: (React.ReactElement & {
7
- ref?: React.Ref<unknown>;
8
- }) | ((props: MenuTriggerChildProps) => React.ReactElement | null);
9
- };
10
- /**
11
- * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
12
- */
13
- export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
14
- ref?: React.Ref<never>;
15
- 'aria-expanded': boolean | undefined;
16
- };
17
- export declare type MenuTriggerState = {
18
- children: React.ReactElement | null;
19
- };
@@ -1,4 +0,0 @@
1
- export * from './MenuTrigger';
2
- export * from './MenuTrigger.types';
3
- export * from './renderMenuTrigger';
4
- export * from './useMenuTrigger';
@@ -1,7 +0,0 @@
1
- import type { MenuTriggerState } from './MenuTrigger.types';
2
- /**
3
- * Render the final JSX of MenuTrigger
4
- *
5
- * Only renders children
6
- */
7
- export declare const renderMenuTrigger_unstable: (state: MenuTriggerState) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
2
- /**
3
- * Create the state required to render MenuTrigger.
4
- * Clones the only child component and adds necessary event handling behaviours to open a popup menu
5
- *
6
- * @param props - props from this instance of MenuTrigger
7
- */
8
- export declare const useMenuTrigger_unstable: (props: MenuTriggerProps) => MenuTriggerState;
@@ -1,2 +0,0 @@
1
- export * from './MenuItem/index';
2
- export * from './MenuList/index';
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import type { ContextSelector, Context } from '@fluentui/react-context-selector';
3
- import type { MenuListProps } from '../components/index';
4
- import type { MenuState } from '../components/Menu/index';
5
- export declare const MenuContext: Context<MenuContextValue>;
6
- /**
7
- * Context shared between Menu and its children components
8
- *
9
- * Extends and drills down MenuList props to simplify API
10
- */
11
- export declare type MenuContextValue = MenuListProps & Pick<MenuState, 'openOnHover' | 'openOnContext' | 'triggerRef' | 'menuPopoverRef' | 'setOpen' | 'isSubmenu' | 'triggerId' | 'hasIcons' | 'hasCheckmarks' | 'persistOnItemClick' | 'inline'> & {
12
- open: boolean;
13
- triggerId: string;
14
- };
15
- export declare const MenuProvider: React.Provider<MenuContextValue> & React.FC<React.ProviderProps<MenuContextValue>>;
16
- export declare const useMenuContext_unstable: <T>(selector: ContextSelector<MenuContextValue, T>) => T;
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * Context used to guarantee correct aria-relationship between header
4
- * and group information
5
- */
6
- export declare type MenuGroupContextValue = {
7
- /**
8
- * Element id applied to the `MenuGroupHeader` component
9
- */
10
- headerId: string;
11
- };
12
- export declare const MenuGroupContextProvider: React.Provider<MenuGroupContextValue>;
13
- export declare const useMenuGroupContext_unstable: () => MenuGroupContextValue;
@@ -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;
package/lib/index.d.ts DELETED
@@ -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;
@@ -1 +0,0 @@
1
- export * from './components/Menu/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuDivider/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuGroup/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuGroupHeader/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuItem/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuItemCheckbox/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuItemRadio/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuList/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuPopover/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuSplitGroup/index';
@@ -1 +0,0 @@
1
- export * from './components/MenuTrigger/index';
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import type { MenuProps } from './Menu.types';
3
- /**
4
- * Wrapper component that manages state for a popup MenuList and a MenuTrigger
5
- */
6
- export declare const Menu: React.FC<MenuProps>;
@@ -1,113 +0,0 @@
1
- import * as React from 'react';
2
- import { ComponentProps, ComponentState } from '@fluentui/react-utilities';
3
- import { usePopperMouseTarget, PositioningShorthand } from '@fluentui/react-positioning';
4
- import { MenuListCommons } from '../MenuList/MenuList.types';
5
- import { MenuContextValue } from '../../contexts/menuContext';
6
- declare type MenuCommons = MenuListCommons & {
7
- /**
8
- * Whether the popup is open
9
- */
10
- open: boolean;
11
- /**
12
- * Call back when the component requests to change value
13
- * The `open` value is used as a hint when directly controlling the component
14
- */
15
- onOpenChange?: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
16
- /**
17
- * Whether the popup is open by default
18
- */
19
- defaultOpen?: boolean;
20
- openOnHover: boolean;
21
- /**
22
- * Opens the menu on right click (context menu), removes all other menu open interactions
23
- */
24
- openOnContext?: boolean;
25
- /**
26
- * Root menus are rendered out of DOM order on `document.body`, use this to render the menu in DOM order
27
- * This option is disregarded for submenus
28
- */
29
- inline?: boolean;
30
- /**
31
- * Do not dismiss the menu when a menu item is clicked
32
- */
33
- persistOnItemClick?: boolean;
34
- /**
35
- * Sets the delay for mouse open/close for the popover one mouse enter/leave
36
- */
37
- hoverDelay?: number;
38
- };
39
- export declare type MenuSlots = {};
40
- /**
41
- * Extends and drills down Menulist props to simplify API
42
- */
43
- export declare type MenuProps = Partial<MenuCommons> & ComponentProps<MenuSlots> & {
44
- /**
45
- * Can contain two children including {@link MenuTrigger} and {@link MenuPopover}.
46
- * Alternatively can only contain {@link MenuPopover} if using a custom `target`.
47
- */
48
- children: [JSX.Element, JSX.Element] | JSX.Element;
49
- /**
50
- * Configures the positioned menu
51
- */
52
- positioning?: PositioningShorthand;
53
- };
54
- export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
55
- /**
56
- * Callback to open/close the popup
57
- */
58
- setOpen: (e: MenuOpenEvents, data: MenuOpenChangeData) => void;
59
- /**
60
- * Internal react node that just simplifies handling children
61
- */
62
- menuPopover: React.ReactNode;
63
- /**
64
- * Internal react node that just simplifies handling children
65
- */
66
- menuTrigger: React.ReactNode;
67
- /**
68
- * The ref for the popup
69
- */
70
- menuPopoverRef: React.MutableRefObject<HTMLElement>;
71
- /**
72
- * The ref for the MenuTrigger, used for popup positioning
73
- */
74
- triggerRef: React.MutableRefObject<HTMLElement>;
75
- /**
76
- * Id for the MenuTrigger element for aria relationship
77
- */
78
- triggerId: string;
79
- /**
80
- * Whether this menu is a submenu
81
- */
82
- isSubmenu: boolean;
83
- /**
84
- * Anchors the popper to the mouse click for context events
85
- */
86
- contextTarget: ReturnType<typeof usePopperMouseTarget>[0];
87
- /**
88
- * A callback to set the target of the popper to the mouse click for context events
89
- */
90
- setContextTarget: ReturnType<typeof usePopperMouseTarget>[1];
91
- };
92
- /**
93
- * Data attached to open/close events
94
- */
95
- export declare type MenuOpenChangeData = {
96
- open: boolean;
97
- /**
98
- * Indicates whether the change of state was a keyboard interaction
99
- */
100
- keyboard?: boolean;
101
- /**
102
- * indicates whether the request for the open state was bubbled from a nested menu
103
- */
104
- bubble?: boolean;
105
- };
106
- export declare type MenuContextValues = {
107
- menu: MenuContextValue;
108
- };
109
- /**
110
- * The supported events that will trigger open/close of the menu
111
- */
112
- export declare type MenuOpenEvents = MouseEvent | TouchEvent | React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement> | React.FocusEvent<HTMLElement>;
113
- export {};
@@ -1,5 +0,0 @@
1
- export * from './Menu';
2
- export * from './Menu.types';
3
- export * from './renderMenu';
4
- export * from './useMenu';
5
- export * from './useMenuContextValues';
@@ -1,5 +0,0 @@
1
- import type { MenuContextValues, MenuState } from './Menu.types';
2
- /**
3
- * Render the final JSX of Menu
4
- */
5
- export declare const renderMenu_unstable: (state: MenuState, contextValues: MenuContextValues) => JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { MenuProps, MenuState } from './Menu.types';
2
- /**
3
- * Create the state required to render Menu.
4
- *
5
- * The returned state can be modified with hooks such as useMenuStyles,
6
- * before being passed to renderMenu_unstable.
7
- *
8
- * @param props - props from this instance of Menu
9
- */
10
- export declare const useMenu_unstable: (props: MenuProps) => MenuState;
@@ -1,2 +0,0 @@
1
- import type { MenuContextValues, MenuState } from './Menu.types';
2
- export declare function useMenuContextValues_unstable(state: MenuState): MenuContextValues;
@@ -1,6 +0,0 @@
1
- import type { MenuDividerProps } from './MenuDivider.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Define a styled MenuDivider, using the `useMenuDivider_unstable` hook.
5
- */
6
- export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
@@ -1,6 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- export declare type MenuDividerSlots = {
3
- root: Slot<'div'>;
4
- };
5
- export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
6
- export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -1,5 +0,0 @@
1
- export * from './MenuDivider.types';
2
- export * from './MenuDivider';
3
- export * from './renderMenuDivider';
4
- export * from './useMenuDivider';
5
- export * from './useMenuDividerStyles';
@@ -1,6 +0,0 @@
1
- import { MenuDividerState } from './MenuDivider.types';
2
- /**
3
- * Redefine the render function to add slots. Reuse the menudivider structure but add
4
- * slots to children.
5
- */
6
- export declare const renderMenuDivider_unstable: (state: MenuDividerState) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import type { MenuDividerProps, MenuDividerState } from './MenuDivider.types';
3
- /**
4
- * Given user props, returns state and render function for a MenuDivider.
5
- */
6
- export declare const useMenuDivider_unstable: (props: MenuDividerProps, ref: React.Ref<HTMLElement>) => MenuDividerState;
@@ -1,3 +0,0 @@
1
- import type { MenuDividerState } from './MenuDivider.types';
2
- export declare const menuDividerClassName = "fui-MenuDivider";
3
- export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
@@ -1,6 +0,0 @@
1
- import type { MenuGroupProps } from './MenuGroup.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Define a styled MenuGroup, using the `useMenuGroup_unstable` hook.
5
- */
6
- export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
@@ -1,15 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- import type { MenuGroupContextValue } from '../../contexts/menuGroupContext';
3
- export declare type MenuGroupSlots = {
4
- root: Slot<'div'>;
5
- };
6
- export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
7
- export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
8
- /**
9
- * id applied to the DOM element of `MenuGroupHeader`
10
- */
11
- headerId: string;
12
- };
13
- export declare type MenuGroupContextValues = {
14
- menuGroup: MenuGroupContextValue;
15
- };
@@ -1,6 +0,0 @@
1
- export * from './MenuGroup.types';
2
- export * from './MenuGroup';
3
- export * from './renderMenuGroup';
4
- export * from './useMenuGroup';
5
- export * from './useMenuGroupContextValues';
6
- export * from './useMenuGroupStyles';
@@ -1,6 +0,0 @@
1
- import { MenuGroupContextValues, MenuGroupState } from './MenuGroup.types';
2
- /**
3
- * Redefine the render function to add slots. Reuse the menugroup structure but add
4
- * slots to children.
5
- */
6
- export declare const renderMenuGroup_unstable: (state: MenuGroupState, contextValues: MenuGroupContextValues) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { MenuGroupProps, MenuGroupState } from './MenuGroup.types';
3
- /**
4
- * Given user props, returns state and render function for a MenuGroup.
5
- */
6
- export declare function useMenuGroup_unstable(props: MenuGroupProps, ref: React.Ref<HTMLElement>): MenuGroupState;
@@ -1,2 +0,0 @@
1
- import type { MenuGroupContextValues, MenuGroupState } from './MenuGroup.types';
2
- export declare function useMenuGroupContextValues_unstable(state: MenuGroupState): MenuGroupContextValues;
@@ -1,3 +0,0 @@
1
- import type { MenuGroupState } from './MenuGroup.types';
2
- export declare const menuGroupClassName = "fui-MenuGroup";
3
- export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
@@ -1,6 +0,0 @@
1
- import type { MenuGroupHeaderProps } from './MenuGroupHeader.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Define a styled MenuGroupHeader, using the `useMenuGroupHeader_unstable` hook.
5
- */
6
- export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
@@ -1,6 +0,0 @@
1
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
- export declare type MenuGroupHeaderSlots = {
3
- root: Slot<'div'>;
4
- };
5
- export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
6
- export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -1,5 +0,0 @@
1
- export * from './MenuGroupHeader.types';
2
- export * from './MenuGroupHeader';
3
- export * from './renderMenuGroupHeader';
4
- export * from './useMenuGroupHeader';
5
- export * from './useMenuGroupHeaderStyles';
@@ -1,6 +0,0 @@
1
- import { MenuGroupHeaderState } from './MenuGroupHeader.types';
2
- /**
3
- * Redefine the render function to add slots. Reuse the menugroupheader structure but add
4
- * slots to children.
5
- */
6
- export declare const renderMenuGroupHeader_unstable: (state: MenuGroupHeaderState) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { MenuGroupHeaderProps, MenuGroupHeaderState } from './MenuGroupHeader.types';
3
- /**
4
- * Given user props, returns state and render function for a MenuGroupHeader.
5
- */
6
- export declare function useMenuGroupHeader_unstable(props: MenuGroupHeaderProps, ref: React.Ref<HTMLElement>): MenuGroupHeaderState;
@@ -1,3 +0,0 @@
1
- import type { MenuGroupHeaderState } from './MenuGroupHeader.types';
2
- export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
3
- export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
@@ -1,6 +0,0 @@
1
- import type { MenuItemProps } from './MenuItem.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
5
- */
6
- export declare const MenuItem: ForwardRefComponent<MenuItemProps>;