@fluentui/react-menu 0.0.0-nightlya372ad979820211103.1 → 0.0.0-nightlya54302c0b220211124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/CHANGELOG.json +109 -28
  2. package/CHANGELOG.md +35 -16
  3. package/dist/react-menu.d.ts +32 -6
  4. package/lib/common/isConformant.js +1 -1
  5. package/lib/common/isConformant.js.map +1 -1
  6. package/lib/common/mockUseMenuContext.js +7 -14
  7. package/lib/common/mockUseMenuContext.js.map +1 -1
  8. package/lib/components/Menu/Menu.js +3 -3
  9. package/lib/components/Menu/Menu.js.map +1 -1
  10. package/lib/components/Menu/renderMenu.js +1 -1
  11. package/lib/components/Menu/renderMenu.js.map +1 -1
  12. package/lib/components/Menu/useMenu.js +95 -112
  13. package/lib/components/Menu/useMenu.js.map +1 -1
  14. package/lib/components/Menu/useMenuContextValues.js +34 -32
  15. package/lib/components/Menu/useMenuContextValues.js.map +1 -1
  16. package/lib/components/MenuDivider/MenuDivider.js +2 -2
  17. package/lib/components/MenuDivider/MenuDivider.js.map +1 -1
  18. package/lib/components/MenuDivider/renderMenuDivider.js +6 -7
  19. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  20. package/lib/components/MenuDivider/useMenuDivider.js +6 -7
  21. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  22. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -0
  23. package/lib/components/MenuDivider/useMenuDividerStyles.js +5 -4
  24. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  25. package/lib/components/MenuGroup/MenuGroup.js +5 -3
  26. package/lib/components/MenuGroup/MenuGroup.js.map +1 -1
  27. package/lib/components/MenuGroup/index.d.ts +1 -0
  28. package/lib/components/MenuGroup/index.js +1 -0
  29. package/lib/components/MenuGroup/index.js.map +1 -1
  30. package/lib/components/MenuGroup/renderMenuGroup.js +6 -7
  31. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  32. package/lib/components/MenuGroup/useMenuGroup.js +6 -6
  33. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  34. package/lib/components/MenuGroup/useMenuGroupContextValues.js +7 -7
  35. package/lib/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  36. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  37. package/lib/components/MenuGroup/useMenuGroupStyles.js +7 -0
  38. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  39. package/lib/components/MenuGroupHeader/MenuGroupHeader.js +2 -2
  40. package/lib/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  41. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +6 -7
  42. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  43. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +8 -6
  44. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  45. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -0
  46. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +5 -4
  47. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  48. package/lib/components/MenuItem/MenuItem.js +2 -2
  49. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  50. package/lib/components/MenuItem/renderMenuItem.js +6 -7
  51. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  52. package/lib/components/MenuItem/useCharacterSearch.js +6 -6
  53. package/lib/components/MenuItem/useCharacterSearch.js.map +1 -1
  54. package/lib/components/MenuItem/useMenuItem.js +31 -36
  55. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  56. package/lib/components/MenuItem/useMenuItemStyles.d.ts +1 -0
  57. package/lib/components/MenuItem/useMenuItemStyles.js +5 -4
  58. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  59. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js +4 -4
  60. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  61. package/lib/components/MenuItemCheckbox/index.d.ts +1 -0
  62. package/lib/components/MenuItemCheckbox/index.js +1 -0
  63. package/lib/components/MenuItemCheckbox/index.js.map +1 -1
  64. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -7
  65. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  66. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js +12 -13
  67. package/lib/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  68. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  69. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +4 -1
  70. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  71. package/lib/components/MenuItemRadio/MenuItemRadio.js +2 -2
  72. package/lib/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  73. package/lib/components/MenuItemRadio/index.d.ts +1 -0
  74. package/lib/components/MenuItemRadio/index.js +1 -0
  75. package/lib/components/MenuItemRadio/index.js.map +1 -1
  76. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +6 -7
  77. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  78. package/lib/components/MenuItemRadio/useMenuItemRadio.js +12 -12
  79. package/lib/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  80. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -0
  81. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +4 -1
  82. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  83. package/lib/components/MenuList/MenuList.js +3 -3
  84. package/lib/components/MenuList/MenuList.js.map +1 -1
  85. package/lib/components/MenuList/MenuList.types.d.ts +8 -6
  86. package/lib/components/MenuList/renderMenuList.js +6 -7
  87. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  88. package/lib/components/MenuList/useMenuList.js +66 -86
  89. package/lib/components/MenuList/useMenuList.js.map +1 -1
  90. package/lib/components/MenuList/useMenuListContextValues.js +18 -16
  91. package/lib/components/MenuList/useMenuListContextValues.js.map +1 -1
  92. package/lib/components/MenuList/useMenuListStyles.d.ts +1 -0
  93. package/lib/components/MenuList/useMenuListStyles.js +5 -4
  94. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  95. package/lib/components/MenuPopover/MenuPopover.js +2 -2
  96. package/lib/components/MenuPopover/MenuPopover.js.map +1 -1
  97. package/lib/components/MenuPopover/renderMenuPopover.js +7 -7
  98. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  99. package/lib/components/MenuPopover/useMenuPopover.js +29 -38
  100. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  101. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -0
  102. package/lib/components/MenuPopover/useMenuPopoverStyles.js +7 -6
  103. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  104. package/lib/components/MenuTrigger/MenuTrigger.js +2 -2
  105. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  106. package/lib/components/MenuTrigger/renderMenuTrigger.js +1 -1
  107. package/lib/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  108. package/lib/components/MenuTrigger/useMenuTrigger.js +3 -4
  109. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  110. package/lib/components/MenuTrigger/useTriggerElement.js +51 -65
  111. package/lib/components/MenuTrigger/useTriggerElement.js.map +1 -1
  112. package/lib/contexts/menuContext.js +5 -11
  113. package/lib/contexts/menuContext.js.map +1 -1
  114. package/lib/contexts/menuGroupContext.js +3 -5
  115. package/lib/contexts/menuGroupContext.js.map +1 -1
  116. package/lib/contexts/menuListContext.js +7 -17
  117. package/lib/contexts/menuListContext.js.map +1 -1
  118. package/lib/contexts/menuTriggerContext.js +3 -5
  119. package/lib/contexts/menuTriggerContext.js.map +1 -1
  120. package/lib/selectable/useCheckmarkStyles.js +3 -3
  121. package/lib/selectable/useCheckmarkStyles.js.map +1 -1
  122. package/lib/utils/useIsSubmenu.js +2 -4
  123. package/lib/utils/useIsSubmenu.js.map +1 -1
  124. package/lib/utils/useOnMenuEnter.js +16 -14
  125. package/lib/utils/useOnMenuEnter.js.map +1 -1
  126. package/lib-commonjs/Menu.js +1 -1
  127. package/lib-commonjs/MenuDivider.js +1 -1
  128. package/lib-commonjs/MenuGroup.js +1 -1
  129. package/lib-commonjs/MenuGroupHeader.js +1 -1
  130. package/lib-commonjs/MenuItem.js +1 -1
  131. package/lib-commonjs/MenuItemCheckbox.js +1 -1
  132. package/lib-commonjs/MenuItemRadio.js +1 -1
  133. package/lib-commonjs/MenuList.js +1 -1
  134. package/lib-commonjs/MenuPopover.js +1 -1
  135. package/lib-commonjs/MenuTrigger.js +1 -1
  136. package/lib-commonjs/common/isConformant.js +3 -3
  137. package/lib-commonjs/common/isConformant.js.map +1 -1
  138. package/lib-commonjs/common/mockUseMenuContext.js +8 -16
  139. package/lib-commonjs/common/mockUseMenuContext.js.map +1 -1
  140. package/lib-commonjs/components/Menu/Menu.js +6 -6
  141. package/lib-commonjs/components/Menu/Menu.js.map +1 -1
  142. package/lib-commonjs/components/Menu/index.js +1 -1
  143. package/lib-commonjs/components/Menu/renderMenu.js +3 -3
  144. package/lib-commonjs/components/Menu/renderMenu.js.map +1 -1
  145. package/lib-commonjs/components/Menu/useMenu.js +104 -122
  146. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  147. package/lib-commonjs/components/Menu/useMenuContextValues.js +34 -32
  148. package/lib-commonjs/components/Menu/useMenuContextValues.js.map +1 -1
  149. package/lib-commonjs/components/MenuDivider/MenuDivider.js +6 -6
  150. package/lib-commonjs/components/MenuDivider/MenuDivider.js.map +1 -1
  151. package/lib-commonjs/components/MenuDivider/index.js +1 -1
  152. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +8 -10
  153. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  154. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +7 -9
  155. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  156. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -0
  157. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +8 -6
  158. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  159. package/lib-commonjs/components/MenuGroup/MenuGroup.js +10 -7
  160. package/lib-commonjs/components/MenuGroup/MenuGroup.js.map +1 -1
  161. package/lib-commonjs/components/MenuGroup/index.d.ts +1 -0
  162. package/lib-commonjs/components/MenuGroup/index.js +3 -1
  163. package/lib-commonjs/components/MenuGroup/index.js.map +1 -1
  164. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +9 -11
  165. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  166. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +7 -8
  167. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  168. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js +8 -8
  169. package/lib-commonjs/components/MenuGroup/useMenuGroupContextValues.js.map +1 -1
  170. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +3 -0
  171. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +18 -0
  172. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -0
  173. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js +6 -6
  174. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.js.map +1 -1
  175. package/lib-commonjs/components/MenuGroupHeader/index.js +1 -1
  176. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +8 -10
  177. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  178. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +10 -9
  179. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  180. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -0
  181. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -6
  182. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  183. package/lib-commonjs/components/MenuItem/MenuItem.js +7 -7
  184. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  185. package/lib-commonjs/components/MenuItem/index.js +1 -1
  186. package/lib-commonjs/components/MenuItem/renderMenuItem.js +9 -11
  187. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  188. package/lib-commonjs/components/MenuItem/useCharacterSearch.js +7 -7
  189. package/lib-commonjs/components/MenuItem/useCharacterSearch.js.map +1 -1
  190. package/lib-commonjs/components/MenuItem/useMenuItem.js +38 -44
  191. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  192. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +1 -0
  193. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +9 -7
  194. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  195. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js +7 -7
  196. package/lib-commonjs/components/MenuItemCheckbox/MenuItemCheckbox.js.map +1 -1
  197. package/lib-commonjs/components/MenuItemCheckbox/index.d.ts +1 -0
  198. package/lib-commonjs/components/MenuItemCheckbox/index.js +3 -1
  199. package/lib-commonjs/components/MenuItemCheckbox/index.js.map +1 -1
  200. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +9 -11
  201. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  202. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js +17 -19
  203. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckbox.js.map +1 -1
  204. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +2 -1
  205. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +10 -5
  206. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  207. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js +6 -6
  208. package/lib-commonjs/components/MenuItemRadio/MenuItemRadio.js.map +1 -1
  209. package/lib-commonjs/components/MenuItemRadio/index.d.ts +1 -0
  210. package/lib-commonjs/components/MenuItemRadio/index.js +3 -1
  211. package/lib-commonjs/components/MenuItemRadio/index.js.map +1 -1
  212. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +9 -11
  213. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  214. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js +17 -18
  215. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadio.js.map +1 -1
  216. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +1 -0
  217. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +9 -4
  218. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  219. package/lib-commonjs/components/MenuList/MenuList.js +8 -8
  220. package/lib-commonjs/components/MenuList/MenuList.js.map +1 -1
  221. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +8 -6
  222. package/lib-commonjs/components/MenuList/index.js +1 -1
  223. package/lib-commonjs/components/MenuList/renderMenuList.js +9 -11
  224. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  225. package/lib-commonjs/components/MenuList/useMenuList.js +72 -93
  226. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  227. package/lib-commonjs/components/MenuList/useMenuListContextValues.js +18 -16
  228. package/lib-commonjs/components/MenuList/useMenuListContextValues.js.map +1 -1
  229. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +1 -0
  230. package/lib-commonjs/components/MenuList/useMenuListStyles.js +8 -6
  231. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  232. package/lib-commonjs/components/MenuPopover/MenuPopover.js +6 -6
  233. package/lib-commonjs/components/MenuPopover/MenuPopover.js.map +1 -1
  234. package/lib-commonjs/components/MenuPopover/index.js +1 -1
  235. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +10 -11
  236. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  237. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +36 -46
  238. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  239. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +1 -0
  240. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +10 -8
  241. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  242. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +4 -4
  243. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  244. package/lib-commonjs/components/MenuTrigger/index.js +1 -1
  245. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js +3 -3
  246. package/lib-commonjs/components/MenuTrigger/renderMenuTrigger.js.map +1 -1
  247. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +4 -6
  248. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  249. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +58 -73
  250. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +1 -1
  251. package/lib-commonjs/components/index.js +1 -1
  252. package/lib-commonjs/contexts/menuContext.js +4 -10
  253. package/lib-commonjs/contexts/menuContext.js.map +1 -1
  254. package/lib-commonjs/contexts/menuGroupContext.js +3 -5
  255. package/lib-commonjs/contexts/menuGroupContext.js.map +1 -1
  256. package/lib-commonjs/contexts/menuListContext.js +6 -16
  257. package/lib-commonjs/contexts/menuListContext.js.map +1 -1
  258. package/lib-commonjs/contexts/menuTriggerContext.js +3 -5
  259. package/lib-commonjs/contexts/menuTriggerContext.js.map +1 -1
  260. package/lib-commonjs/index.js +1 -1
  261. package/lib-commonjs/selectable/index.js +1 -1
  262. package/lib-commonjs/selectable/useCheckmarkStyles.js +4 -4
  263. package/lib-commonjs/selectable/useCheckmarkStyles.js.map +1 -1
  264. package/lib-commonjs/utils/index.js +1 -1
  265. package/lib-commonjs/utils/useIsSubmenu.js +5 -7
  266. package/lib-commonjs/utils/useIsSubmenu.js.map +1 -1
  267. package/lib-commonjs/utils/useOnMenuEnter.js +18 -16
  268. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  269. package/package.json +13 -14
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contexts/menuTriggerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA;;AAEG;;AACH,IAAM,kBAAkB,gBAAG,KAAK,CAAC,aAAN,CAA6B,KAA7B,CAA3B;AAEA,OAAO,IAAM,0BAA0B,GAAG,kBAAkB,CAAC,QAAtD;AACP,OAAO,IAAM,qBAAqB,GAAG,YAAA;AAAM,SAAA,KAAK,CAAC,UAAN,CAAA,kBAAA,CAAA;AAAoC,CAAxE","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/contexts/menuTriggerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAEA;;AAEG;;AACH,MAAM,kBAAkB,gBAAG,KAAK,CAAC,aAAN,CAA6B,KAA7B,CAA3B;AAEA,OAAO,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,QAAtD;AACP,OAAO,MAAM,qBAAqB,GAAG,MAAM,KAAK,CAAC,UAAN,CAAiB,kBAAjB,CAApC","sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  import { mergeClasses, __styles } from '@fluentui/react-make-styles';
2
2
 
3
- var useStyles = /*#__PURE__*/__styles({
3
+ const useStyles = /*#__PURE__*/__styles({
4
4
  "root": {
5
5
  "a9b677": "fjw5fx7",
6
6
  "Bqenvij": "fd461yt",
@@ -19,8 +19,8 @@ var useStyles = /*#__PURE__*/__styles({
19
19
  */
20
20
 
21
21
 
22
- export var useCheckmarkStyles = function (state) {
23
- var styles = useStyles();
22
+ export const useCheckmarkStyles = state => {
23
+ const styles = useStyles();
24
24
 
25
25
  if (state.checkmark) {
26
26
  state.checkmark.className = mergeClasses(styles.root, state.checked && styles.rootChecked, state.checkmark.className);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/selectable/useCheckmarkStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;;AAIA,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACH,OAAO,IAAM,kBAAkB,GAAG,UAAC,KAAD,EAAkE;AAClG,MAAM,MAAM,GAAG,SAAS,EAAxB;;AACA,MAAI,KAAK,CAAC,SAAV,EAAqB;AACnB,IAAA,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,YAAY,CACtC,MAAM,CAAC,IAD+B,EAEtC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFc,EAGtC,KAAK,CAAC,SAAN,CAAgB,SAHsB,CAAxC;AAKD;AACF,CATM","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/selectable/useCheckmarkStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;;AAIA,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAWA;;;;AAIG;;;AACH,OAAO,MAAM,kBAAkB,GAAI,KAAD,IAAsE;AACtG,QAAM,MAAM,GAAG,SAAS,EAAxB;;AACA,MAAI,KAAK,CAAC,SAAV,EAAqB;AACnB,IAAA,KAAK,CAAC,SAAN,CAAgB,SAAhB,GAA4B,YAAY,CACtC,MAAM,CAAC,IAD+B,EAEtC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,WAFc,EAGtC,KAAK,CAAC,SAAN,CAAgB,SAHsB,CAAxC;AAKD;AACF,CATM","sourceRoot":""}
@@ -11,10 +11,8 @@ import { MenuListContext } from '../contexts/menuListContext';
11
11
  */
12
12
 
13
13
  export function useIsSubmenu() {
14
- var menuContextValue = useMenuContext(function (context) {
15
- return context.isSubmenu;
16
- });
17
- var hasMenuListContext = useHasParentContext(MenuListContext);
14
+ const menuContextValue = useMenuContext(context => context.isSubmenu);
15
+ const hasMenuListContext = useHasParentContext(MenuListContext);
18
16
  return menuContextValue || hasMenuListContext;
19
17
  }
20
18
  //# sourceMappingURL=useIsSubmenu.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/useIsSubmenu.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAT,QAAoC,kCAApC;AACA,SAAS,cAAT,QAA+B,yBAA/B;AACA,SAAS,eAAT,QAAgC,6BAAhC;AAEA;;;;;;;AAOG;;AACH,OAAM,SAAU,YAAV,GAAsB;AAC1B,MAAM,gBAAgB,GAAG,cAAc,CAAC,UAAA,OAAA,EAAO;AAAI,WAAA,OAAO,CAAP,SAAA;AAAiB,GAA7B,CAAvC;AACA,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,eAAD,CAA9C;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/utils/useIsSubmenu.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAT,QAAoC,kCAApC;AACA,SAAS,cAAT,QAA+B,yBAA/B;AACA,SAAS,eAAT,QAAgC,6BAAhC;AAEA;;;;;;;AAOG;;AACH,OAAM,SAAU,YAAV,GAAsB;AAC1B,QAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,SAApB,CAAvC;AACA,QAAM,kBAAkB,GAAG,mBAAmB,CAAC,eAAD,CAA9C;AAEA,SAAO,gBAAgB,IAAI,kBAA3B;AACD","sourceRoot":""}
@@ -5,7 +5,7 @@ import { elementContains } from '@fluentui/react-portal';
5
5
  * Name of the custom event
6
6
  */
7
7
 
8
- export var MENU_ENTER_EVENT = 'fuimenuenter';
8
+ export const MENU_ENTER_EVENT = 'fuimenuenter';
9
9
  /**
10
10
  * This hook works similarly to @see {useOnClickOutside}
11
11
  *
@@ -18,27 +18,29 @@ export var MENU_ENTER_EVENT = 'fuimenuenter';
18
18
  * Each nested menu can use the listener to check if the event is from a child or parent menu
19
19
  */
20
20
 
21
- export var useOnMenuMouseEnter = function (options) {
22
- var refs = options.refs,
23
- callback = options.callback,
24
- element = options.element,
25
- disabled = options.disabled; // Keep mouse event here because this is essentially a custom 'mouseenter' event
21
+ export const useOnMenuMouseEnter = options => {
22
+ const {
23
+ refs,
24
+ callback,
25
+ element,
26
+ disabled
27
+ } = options; // Keep mouse event here because this is essentially a custom 'mouseenter' event
26
28
 
27
- var listener = useEventCallback(function (ev) {
29
+ const listener = useEventCallback(ev => {
28
30
  var _a;
29
31
 
30
- var popoverRef = refs[0];
31
- var someMenuPopover = ev.target; // someMenu is a child -> will always be contained because of vParents
32
+ const popoverRef = refs[0];
33
+ const someMenuPopover = ev.target; // someMenu is a child -> will always be contained because of vParents
32
34
  // someMenu is a parent -> will always not be contained because no vParent
33
35
  // someMenu is the current popover -> it will contain itself
34
36
 
35
- var isOutsidePopover = !elementContains((_a = popoverRef.current) !== null && _a !== void 0 ? _a : null, someMenuPopover);
37
+ const isOutsidePopover = !elementContains((_a = popoverRef.current) !== null && _a !== void 0 ? _a : null, someMenuPopover);
36
38
 
37
39
  if (isOutsidePopover && !disabled) {
38
40
  callback(ev);
39
41
  }
40
42
  });
41
- React.useEffect(function () {
43
+ React.useEffect(() => {
42
44
  // eslint-disable-next-line eqeqeq
43
45
  if (element == null) {
44
46
  return;
@@ -48,7 +50,7 @@ export var useOnMenuMouseEnter = function (options) {
48
50
  element.addEventListener(MENU_ENTER_EVENT, listener);
49
51
  }
50
52
 
51
- return function () {
53
+ return () => {
52
54
  element.removeEventListener(MENU_ENTER_EVENT, listener);
53
55
  };
54
56
  }, [listener, element, disabled]);
@@ -59,11 +61,11 @@ export var useOnMenuMouseEnter = function (options) {
59
61
  * @param nativeEvent the native mouse event this is mapped to
60
62
  */
61
63
 
62
- export var dispatchMenuEnterEvent = function (el, nativeEvent) {
64
+ export const dispatchMenuEnterEvent = (el, nativeEvent) => {
63
65
  el.dispatchEvent(new CustomEvent(MENU_ENTER_EVENT, {
64
66
  bubbles: true,
65
67
  detail: {
66
- nativeEvent: nativeEvent
68
+ nativeEvent
67
69
  }
68
70
  }));
69
71
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/useOnMenuEnter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,2BAAjC;AACA,SAAS,eAAT,QAAgC,wBAAhC;AAGA;;AAEG;;AACH,OAAO,IAAM,gBAAgB,GAAG,cAAzB;AAEP;;;;;;;;;;AAUG;;AACH,OAAO,IAAM,mBAAmB,GAAG,UAAC,OAAD,EAA0C;AACnE,MAAA,IAAI,GAAkC,OAAO,CAAzC,IAAJ;AAAA,MAAM,QAAQ,GAAwB,OAAO,CAA/B,QAAd;AAAA,MAAgB,OAAO,GAAe,OAAO,CAAtB,OAAvB;AAAA,MAAyB,QAAQ,GAAK,OAAO,CAAZ,QAAjC,CADmE,CAG3E;;AACA,MAAM,QAAQ,GAAG,gBAAgB,CAAC,UAAC,EAAD,EAAe;;;AAC/C,QAAM,UAAU,GAAG,IAAI,CAAC,CAAD,CAAvB;AACA,QAAM,eAAe,GAAG,EAAE,CAAC,MAA3B,CAF+C,CAI/C;AACA;AACA;;AACA,QAAM,gBAAgB,GAAG,CAAC,eAAe,CAAA,CAAA,EAAA,GAAC,UAAU,CAAC,OAAZ,MAAmB,IAAnB,IAAmB,EAAA,KAAA,KAAA,CAAnB,GAAmB,EAAnB,GAAuB,IAAvB,EAA6B,eAA7B,CAAzC;;AACA,QAAI,gBAAgB,IAAI,CAAC,QAAzB,EAAmC;AACjC,MAAA,QAAQ,CAAC,EAAD,CAAR;AACD;AACF,GAXgC,CAAjC;AAaA,EAAA,KAAK,CAAC,SAAN,CAAgB,YAAA;AACd;AACA,QAAI,OAAO,IAAI,IAAf,EAAqB;AACnB;AACD;;AAUD,QAAI,CAAC,QAAL,EAAe;AACb,MAAA,OAAO,CAAC,gBAAR,CAAyB,gBAAzB,EAA2C,QAA3C;AACD;;AAED,WAAO,YAAA;AACL,MAAA,OAAO,CAAC,mBAAR,CAA4B,gBAA5B,EAA8C,QAA9C;AACD,KAFD;AAGD,GArBD,EAqBG,CAAC,QAAD,EAAW,OAAX,EAAoB,QAApB,CArBH;AAsBD,CAvCM;AAyCP;;;;AAIG;;AACH,OAAO,IAAM,sBAAsB,GAAG,UAAC,EAAD,EAAkB,WAAlB,EAAyC;AAC7E,EAAA,EAAE,CAAC,aAAH,CAAiB,IAAI,WAAJ,CAAgB,gBAAhB,EAAkC;AAAE,IAAA,OAAO,EAAE,IAAX;AAAiB,IAAA,MAAM,EAAE;AAAE,MAAA,WAAW,EAAA;AAAb;AAAzB,GAAlC,CAAjB;AACD,CAFM","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/utils/useOnMenuEnter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,QAAiC,2BAAjC;AACA,SAAS,eAAT,QAAgC,wBAAhC;AAGA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,GAAG,cAAzB;AAEP;;;;;;;;;;AAUG;;AACH,OAAO,MAAM,mBAAmB,GAAI,OAAD,IAA8C;AAC/E,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,QAAR;AAAkB,IAAA,OAAlB;AAA2B,IAAA;AAA3B,MAAwC,OAA9C,CAD+E,CAG/E;;AACA,QAAM,QAAQ,GAAG,gBAAgB,CAAE,EAAD,IAAmB;;;AACnD,UAAM,UAAU,GAAG,IAAI,CAAC,CAAD,CAAvB;AACA,UAAM,eAAe,GAAG,EAAE,CAAC,MAA3B,CAFmD,CAInD;AACA;AACA;;AACA,UAAM,gBAAgB,GAAG,CAAC,eAAe,CAAA,CAAA,EAAA,GAAC,UAAU,CAAC,OAAZ,MAAmB,IAAnB,IAAmB,EAAA,KAAA,KAAA,CAAnB,GAAmB,EAAnB,GAAuB,IAAvB,EAA6B,eAA7B,CAAzC;;AACA,QAAI,gBAAgB,IAAI,CAAC,QAAzB,EAAmC;AACjC,MAAA,QAAQ,CAAC,EAAD,CAAR;AACD;AACF,GAXgC,CAAjC;AAaA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB;AACA,QAAI,OAAO,IAAI,IAAf,EAAqB;AACnB;AACD;;AAUD,QAAI,CAAC,QAAL,EAAe;AACb,MAAA,OAAO,CAAC,gBAAR,CAAyB,gBAAzB,EAA2C,QAA3C;AACD;;AAED,WAAO,MAAK;AACV,MAAA,OAAO,CAAC,mBAAR,CAA4B,gBAA5B,EAA8C,QAA9C;AACD,KAFD;AAGD,GArBD,EAqBG,CAAC,QAAD,EAAW,OAAX,EAAoB,QAApB,CArBH;AAsBD,CAvCM;AAyCP;;;;AAIG;;AACH,OAAO,MAAM,sBAAsB,GAAG,CAAC,EAAD,EAAkB,WAAlB,KAA6C;AACjF,EAAA,EAAE,CAAC,aAAH,CAAiB,IAAI,WAAJ,CAAgB,gBAAhB,EAAkC;AAAE,IAAA,OAAO,EAAE,IAAX;AAAiB,IAAA,MAAM,EAAE;AAAE,MAAA;AAAF;AAAzB,GAAlC,CAAjB;AACD,CAFM","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/Menu/index"), exports);
10
10
  //# sourceMappingURL=Menu.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuDivider/index"), exports);
10
10
  //# sourceMappingURL=MenuDivider.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuGroup/index"), exports);
10
10
  //# sourceMappingURL=MenuGroup.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuGroupHeader/index"), exports);
10
10
  //# sourceMappingURL=MenuGroupHeader.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuItem/index"), exports);
10
10
  //# sourceMappingURL=MenuItem.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuItemCheckbox/index"), exports);
10
10
  //# sourceMappingURL=MenuItemCheckbox.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuItemRadio/index"), exports);
10
10
  //# sourceMappingURL=MenuItemRadio.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuList/index"), exports);
10
10
  //# sourceMappingURL=MenuList.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuPopover/index"), exports);
10
10
  //# sourceMappingURL=MenuPopover.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/MenuTrigger/index"), exports);
10
10
  //# sourceMappingURL=MenuTrigger.js.map
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.isConformant = void 0;
7
7
 
8
- var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
8
+ const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
9
 
10
- var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
10
+ const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
11
 
12
12
  function isConformant(testInfo) {
13
- var defaultOptions = {
13
+ const defaultOptions = {
14
14
  asPropHandlesRef: true,
15
15
  componentPath: module.parent.filename.replace('.test', ''),
16
16
  skipAsPropTests: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAJ+C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAJ+C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.mockUseMenuContext = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- var menuContext_1 = /*#__PURE__*/require("../contexts/menuContext");
8
+ const menuContext_1 = /*#__PURE__*/require("../contexts/menuContext");
11
9
  /**
12
10
  * A test utility to mock the useMenuContext hook that relies on context selector
13
11
  * Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
@@ -15,16 +13,10 @@ var menuContext_1 = /*#__PURE__*/require("../contexts/menuContext");
15
13
  */
16
14
 
17
15
 
18
- var mockUseMenuContext = function (options) {
19
- if (options === void 0) {
20
- options = {};
21
- }
22
-
23
- var mockContext = tslib_1.__assign({
16
+ const mockUseMenuContext = (options = {}) => {
17
+ const mockContext = {
24
18
  open: false,
25
- setOpen: function () {
26
- return null;
27
- },
19
+ setOpen: () => null,
28
20
  triggerRef: {
29
21
  current: null
30
22
  },
@@ -34,11 +26,11 @@ var mockUseMenuContext = function (options) {
34
26
  openOnContext: false,
35
27
  openOnHover: false,
36
28
  isSubmenu: false,
37
- triggerId: 'id'
38
- }, options); // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
-
29
+ triggerId: 'id',
30
+ ...options
31
+ }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
32
 
41
- menuContext_1.useMenuContext.mockImplementation(function (selector) {
33
+ menuContext_1.useMenuContext.mockImplementation(selector => {
42
34
  return selector(mockContext);
43
35
  });
44
36
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;AAIG;;;AACI,IAAM,kBAAkB,GAAG,UAAC,OAAD,EAAwC;AAAvC,MAAA,OAAA,KAAA,KAAA,CAAA,EAAA;AAAA,IAAA,OAAA,GAAA,EAAA;AAAuC;;AACxE,MAAM,WAAW,GAAA,OAAA,CAAA,QAAA,CAAA;AACf,IAAA,IAAI,EAAE,KADS;AAEf,IAAA,OAAO,EAAE,YAAA;AAAM,aAAA,IAAA;AAAI,KAFJ;AAGf,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHE;AAIf,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJF;AAKf,IAAA,aAAa,EAAE,KALA;AAMf,IAAA,WAAW,EAAE,KANE;AAOf,IAAA,SAAS,EAAE,KAPI;AAQf,IAAA,SAAS,EAAE;AARI,GAAA,EASZ,OATY,CAAjB,CADwE,CAYxE;;;AACC,EAAA,aAAA,CAAA,cAAA,CAA6B,kBAA7B,CAAgD,UAAC,QAAD,EAA6C;AAC5F,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAqC,EAAtC,KAA4C;AAC5E,QAAM,WAAW,GAAqB;AACpC,IAAA,IAAI,EAAE,KAD8B;AAEpC,IAAA,OAAO,EAAE,MAAM,IAFqB;AAGpC,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHuB;AAIpC,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJmB;AAKpC,IAAA,aAAa,EAAE,KALqB;AAMpC,IAAA,WAAW,EAAE,KANuB;AAOpC,IAAA,SAAS,EAAE,KAPyB;AAQpC,IAAA,SAAS,EAAE,IARyB;AASpC,OAAG;AATiC,GAAtC,CAD4E,CAY5E;;AACC,EAAA,aAAA,CAAA,cAAA,CAA6B,kBAA7B,CAAiD,QAAD,IAAiD;AAChG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
@@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Menu = void 0;
7
7
 
8
- var useMenu_1 = /*#__PURE__*/require("./useMenu");
8
+ const useMenu_1 = /*#__PURE__*/require("./useMenu");
9
9
 
10
- var useMenuContextValues_1 = /*#__PURE__*/require("./useMenuContextValues");
10
+ const useMenuContextValues_1 = /*#__PURE__*/require("./useMenuContextValues");
11
11
 
12
- var renderMenu_1 = /*#__PURE__*/require("./renderMenu");
12
+ const renderMenu_1 = /*#__PURE__*/require("./renderMenu");
13
13
  /**
14
14
  * Wrapper component that manages state for a popup MenuList and a MenuTrigger
15
15
  */
16
16
 
17
17
 
18
- var Menu = function (props) {
19
- var state = useMenu_1.useMenu(props);
20
- var contextValues = useMenuContextValues_1.useMenuContextValues(state);
18
+ const Menu = props => {
19
+ const state = useMenu_1.useMenu(props);
20
+ const contextValues = useMenuContextValues_1.useMenuContextValues(state);
21
21
  return renderMenu_1.renderMenu(state, contextValues);
22
22
  };
23
23
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":";;;;;;;AACA,IAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,IAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,IAAI,GAAwB,UAAA,KAAA,EAAK;AAC5C,MAAM,KAAK,GAAG,SAAA,CAAA,OAAA,CAAQ,KAAR,CAAd;AACA,MAAM,aAAa,GAAG,sBAAA,CAAA,oBAAA,CAAqB,KAArB,CAAtB;AAEA,SAAO,YAAA,CAAA,UAAA,CAAW,KAAX,EAAkB,aAAlB,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,IAAA,GAAI,IAAJ;AAOb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,SAAA,gBAAA,OAAA,CAAA,WAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,IAAI,GAAwB,KAAK,IAAG;AAC/C,QAAM,KAAK,GAAG,SAAA,CAAA,OAAA,CAAQ,KAAR,CAAd;AACA,QAAM,aAAa,GAAG,sBAAA,CAAA,oBAAA,CAAqB,KAArB,CAAtB;AAEA,SAAO,YAAA,CAAA,UAAA,CAAW,KAAX,EAAkB,aAAlB,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,IAAA,GAAI,IAAJ;AAOb,OAAA,CAAA,IAAA,CAAK,WAAL,GAAmB,MAAnB","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Menu"), exports);
10
10
 
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.renderMenu = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var menuContext_1 = /*#__PURE__*/require("../../contexts/menuContext");
10
+ const menuContext_1 = /*#__PURE__*/require("../../contexts/menuContext");
11
11
  /**
12
12
  * Render the final JSX of Menu
13
13
  */
14
14
 
15
15
 
16
- var renderMenu = function (state, contextValues) {
16
+ const renderMenu = (state, contextValues) => {
17
17
  return React.createElement(menuContext_1.MenuProvider, {
18
18
  value: contextValues.menu
19
19
  }, state.menuTrigger, state.open && state.menuPopover);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,UAAU,GAAG,UAAC,KAAD,EAAmB,aAAnB,EAAmD;AAC3E,SACE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Menu/renderMenu.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,UAAU,GAAG,CAAC,KAAD,EAAmB,aAAnB,KAAuD;AAC/E,SACE,KAAA,CAAA,aAAA,CAAC,aAAA,CAAA,YAAD,EAAa;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAb,EACG,KAAK,CAAC,WADT,EAEG,KAAK,CAAC,IAAN,IAAc,KAAK,CAAC,WAFvB,CADF;AAMD,CAPM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}