@fluentui/react-menu 0.0.0-nightlyd3bf09bf8120211201.1 → 0.0.0-nightlyd514b3e0ee20220121.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/CHANGELOG.json +142 -26
  2. package/CHANGELOG.md +31 -16
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +54 -12
  5. package/lib/MenuSplitGroup.d.ts +1 -0
  6. package/lib/MenuSplitGroup.js +2 -0
  7. package/lib/MenuSplitGroup.js.map +1 -0
  8. package/lib/components/Menu/useMenu.js +29 -21
  9. package/lib/components/Menu/useMenu.js.map +1 -1
  10. package/lib/components/MenuDivider/renderMenuDivider.js +2 -1
  11. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  12. package/lib/components/MenuDivider/useMenuDivider.js +3 -0
  13. package/lib/components/MenuDivider/useMenuDivider.js.map +1 -1
  14. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  15. package/lib/components/MenuDivider/useMenuDividerStyles.js +1 -0
  16. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  17. package/lib/components/MenuGroup/renderMenuGroup.js +2 -1
  18. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  19. package/lib/components/MenuGroup/useMenuGroup.js +3 -0
  20. package/lib/components/MenuGroup/useMenuGroup.js.map +1 -1
  21. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -1
  22. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  23. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js +3 -0
  24. package/lib/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  25. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  26. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +1 -0
  27. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  28. package/lib/components/MenuItem/MenuItem.js +0 -2
  29. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  30. package/lib/components/MenuItem/MenuItem.types.d.ts +1 -1
  31. package/lib/components/MenuItem/renderMenuItem.js +8 -3
  32. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  33. package/lib/components/MenuItem/useMenuItem.d.ts +1 -5
  34. package/lib/components/MenuItem/useMenuItem.js +3 -8
  35. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  36. package/lib/components/MenuItem/useMenuItemStyles.js +19 -20
  37. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  38. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +7 -3
  39. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  40. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +7 -3
  41. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  42. package/lib/components/MenuList/renderMenuList.js +2 -1
  43. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  44. package/lib/components/MenuList/useMenuList.js +3 -0
  45. package/lib/components/MenuList/useMenuList.js.map +1 -1
  46. package/lib/components/MenuPopover/renderMenuPopover.js +4 -2
  47. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  48. package/lib/components/MenuPopover/useMenuPopover.js +3 -0
  49. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  50. package/lib/components/MenuPopover/useMenuPopoverStyles.js +1 -0
  51. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  52. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  53. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  54. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  55. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  56. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  57. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  58. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  59. package/lib/components/MenuSplitGroup/index.js +6 -0
  60. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  61. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  62. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +15 -0
  63. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  64. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  65. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +67 -0
  66. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  67. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  68. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +35 -0
  69. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  70. package/lib/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  71. package/lib/components/MenuTrigger/MenuTrigger.js +4 -3
  72. package/lib/components/MenuTrigger/MenuTrigger.js.map +1 -1
  73. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +5 -2
  74. package/lib/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  75. package/lib/components/MenuTrigger/useMenuTrigger.js +177 -5
  76. package/lib/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  77. package/lib/index.d.ts +11 -10
  78. package/lib/index.js +11 -10
  79. package/lib/index.js.map +1 -1
  80. package/lib/utils/useOnMenuEnter.js.map +1 -1
  81. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  82. package/lib-commonjs/MenuSplitGroup.js +10 -0
  83. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  84. package/lib-commonjs/components/Menu/useMenu.js +33 -26
  85. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  86. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +2 -1
  87. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  88. package/lib-commonjs/components/MenuDivider/useMenuDivider.js +3 -0
  89. package/lib-commonjs/components/MenuDivider/useMenuDivider.js.map +1 -1
  90. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  91. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +2 -0
  92. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  93. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +2 -1
  94. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  95. package/lib-commonjs/components/MenuGroup/useMenuGroup.js +3 -0
  96. package/lib-commonjs/components/MenuGroup/useMenuGroup.js.map +1 -1
  97. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -1
  98. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  99. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js +3 -0
  100. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeader.js.map +1 -1
  101. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  102. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +2 -0
  103. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  104. package/lib-commonjs/components/MenuItem/MenuItem.js +0 -3
  105. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  106. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +1 -1
  107. package/lib-commonjs/components/MenuItem/renderMenuItem.js +8 -4
  108. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  109. package/lib-commonjs/components/MenuItem/useMenuItem.d.ts +1 -5
  110. package/lib-commonjs/components/MenuItem/useMenuItem.js +5 -10
  111. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  112. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +21 -20
  113. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  114. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +7 -4
  115. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  116. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +7 -4
  117. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  118. package/lib-commonjs/components/MenuList/renderMenuList.js +2 -1
  119. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  120. package/lib-commonjs/components/MenuList/useMenuList.js +3 -0
  121. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  122. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +4 -2
  123. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  124. package/lib-commonjs/components/MenuPopover/useMenuPopover.js +3 -0
  125. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  126. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +2 -0
  127. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  128. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  129. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  130. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  131. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  132. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  133. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  134. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  135. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  136. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  137. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  138. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +26 -0
  139. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  140. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +12 -0
  141. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +81 -0
  142. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  143. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  144. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +47 -0
  145. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  146. package/lib-commonjs/components/MenuTrigger/MenuTrigger.d.ts +1 -1
  147. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js +5 -5
  148. package/lib-commonjs/components/MenuTrigger/MenuTrigger.js.map +1 -1
  149. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +5 -2
  150. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.d.ts +2 -1
  151. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js +184 -5
  152. package/lib-commonjs/components/MenuTrigger/useMenuTrigger.js.map +1 -1
  153. package/lib-commonjs/index.d.ts +11 -10
  154. package/lib-commonjs/index.js +16 -14
  155. package/lib-commonjs/index.js.map +1 -1
  156. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  157. package/package.json +15 -15
  158. package/lib/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  159. package/lib/components/MenuTrigger/useTriggerElement.js +0 -165
  160. package/lib/components/MenuTrigger/useTriggerElement.js.map +0 -1
  161. package/lib-commonjs/components/MenuTrigger/useTriggerElement.d.ts +0 -5
  162. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +0 -180
  163. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +0 -1
@@ -8,8 +8,6 @@ exports.renderMenuItemRadio = void 0;
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
10
10
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
-
12
- const index_1 = /*#__PURE__*/require("../MenuItem/index");
13
11
  /**
14
12
  * Redefine the render function to add slots. Reuse the menuitemradio structure but add
15
13
  * slots to children.
@@ -20,8 +18,13 @@ const renderMenuItemRadio = state => {
20
18
  const {
21
19
  slots,
22
20
  slotProps
23
- } = react_utilities_1.getSlots(state, index_1.menuItemSlots);
24
- return React.createElement(slots.root, Object.assign({}, slotProps.root), React.createElement(slots.checkmark, Object.assign({}, slotProps.checkmark)), React.createElement(slots.icon, Object.assign({}, slotProps.icon)), React.createElement(slots.content, Object.assign({}, slotProps.content)), React.createElement(slots.secondaryContent, Object.assign({}, slotProps.secondaryContent)));
21
+ } = react_utilities_1.getSlots(state);
22
+ return React.createElement(slots.root, { ...slotProps.root
23
+ }, React.createElement(slots.checkmark, { ...slotProps.checkmark
24
+ }), React.createElement(slots.icon, { ...slotProps.icon
25
+ }), React.createElement(slots.content, { ...slotProps.content
26
+ }), React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
27
+ }));
25
28
  };
26
29
 
27
30
  exports.renderMenuItemRadio = renderMenuItemRadio;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;AAIA;;;AAGG;;;AACI,MAAM,mBAAmB,GAAI,KAAD,IAA8B;AAC/D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,EAA+B,OAAA,CAAA,aAA/B,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EA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,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHF,EAIE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJF,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
@@ -22,7 +22,8 @@ const renderMenuList = (state, contextValues) => {
22
22
  } = react_utilities_1.getSlots(state);
23
23
  return React.createElement(menuListContext_1.MenuListProvider, {
24
24
  value: contextValues.menuList
25
- }, React.createElement(slots.root, Object.assign({}, slotProps.root)));
25
+ }, React.createElement(slots.root, { ...slotProps.root
26
+ }));
26
27
  };
27
28
 
28
29
  exports.renderMenuList = renderMenuList;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,cAAc,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;AAC3F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,iBAAA,CAAA,gBAAD,EAAiB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAjB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,gCAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,cAAc,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;AAC3F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,iBAAA,CAAA,gBAAD,EAAiB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAjB,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
@@ -39,6 +39,9 @@ const useMenuList = (props, ref) => {
39
39
 
40
40
  const innerRef = React.useRef(null);
41
41
  const initialState = {
42
+ components: {
43
+ root: 'div'
44
+ },
42
45
  root: react_utilities_1.getNativeElementProps('div', {
43
46
  ref: react_utilities_1.useMergedRefs(ref, innerRef),
44
47
  role: 'menu',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/useMenuList.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAMA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,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AAI,sBAAzB;AACD,CAbD","sourceRoot":""}
@@ -22,10 +22,12 @@ const renderMenuPopover = state => {
22
22
  } = react_utilities_1.getSlots(state);
23
23
 
24
24
  if (state.inline) {
25
- return React.createElement(slots.root, Object.assign({}, slotProps.root));
25
+ return React.createElement(slots.root, { ...slotProps.root
26
+ });
26
27
  }
27
28
 
28
- return React.createElement(react_portal_1.Portal, null, React.createElement(slots.root, Object.assign({}, slotProps.root)));
29
+ return React.createElement(react_portal_1.Portal, null, React.createElement(slots.root, { ...slotProps.root
30
+ }));
29
31
  };
30
32
 
31
33
  exports.renderMenuPopover = renderMenuPopover;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/renderMenuPopover.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;;AAEA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,WAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD;;AAED,SACE,KAAA,CAAA,aAAA,CAAC,cAAA,CAAA,MAAD,EAAO,IAAP,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADF,CADF;AAKD,CAZM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuPopover/renderMenuPopover.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA2B,KAA3B,CAA7B;;AAEA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,WAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,KAAX,CAAP;AACD;;AAED,SACE,KAAA,CAAA,aAAA,CAAC,cAAA,CAAA,MAAD,EAAO,IAAP,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CAZM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
@@ -109,6 +109,9 @@ const useMenuPopover = (props, ref) => {
109
109
  });
110
110
  return {
111
111
  inline,
112
+ components: {
113
+ root: 'div'
114
+ },
112
115
  root: rootProps
113
116
  };
114
117
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopover.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,aAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,iCAA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AAA,CAAlB,GAAkB,KAAA,CAAlB,GAAkB,EAAA,CAAE,QAAF,CAAW,CAAC,CAAC,MAAb,CAAtB,EAA2D;AACzD,QAAA,OAAO,CAAC,CAAD,EAAI;AAAE,UAAA,IAAI,EAAE,KAAR;AAAe,UAAA,QAAQ,EAAE;AAAzB,SAAJ,CAAP;AACD;AACF;;AAED,QAAI,GAAG,KAAK,eAAA,CAAA,GAAZ,EAAiB;AACf,MAAA,OAAO,CAAC,CAAD,EAAI;AAAE,QAAA,IAAI,EAAE,KAAR;AAAe,QAAA,QAAQ,EAAE;AAAzB,OAAJ,CAAP;AACA,MAAA,CAAC,CAAC,cAAF;AACD;;AAED,IAAA,iBAAiB,KAAA,IAAjB,IAAA,iBAAiB,KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAA,iBAAiB,CAAG,CAAH,CAAjB;AACD,GAfqB,CAAtB;AAiBA,SAAO;AACL,IAAA,MADK;AAEL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KAFP;AAKL,IAAA,IAAI,EAAE;AALD,GAAP;AAOD,CA9EM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
@@ -7,6 +7,8 @@ exports.useMenuPopoverStyles = exports.menuPopoverClassName = void 0;
7
7
 
8
8
  const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
9
 
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+
10
12
  exports.menuPopoverClassName = 'fui-MenuPopover';
11
13
 
12
14
  const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;A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ACD,CAJM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
@@ -0,0 +1,6 @@
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>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MenuSplitGroup = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const useMenuSplitGroup_1 = /*#__PURE__*/require("./useMenuSplitGroup");
11
+
12
+ const renderMenuSplitGroup_1 = /*#__PURE__*/require("./renderMenuSplitGroup");
13
+
14
+ const useMenuSplitGroupStyles_1 = /*#__PURE__*/require("./useMenuSplitGroupStyles");
15
+ /**
16
+ * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
17
+ */
18
+
19
+
20
+ exports.MenuSplitGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useMenuSplitGroup_1.useMenuSplitGroup(props, ref);
22
+ useMenuSplitGroupStyles_1.useMenuSplitGroupStyles(state);
23
+ return renderMenuSplitGroup_1.renderMenuSplitGroup(state);
24
+ });
25
+ exports.MenuSplitGroup.displayName = 'MenuSplitGroup';
26
+ //# sourceMappingURL=MenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/MenuSplitGroup.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,yBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,cAAA,gBAA2D,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,EAAyB,GAAzB,CAAd;AAEA,EAAA,yBAAA,CAAA,uBAAA,CAAwB,KAAxB;AACA,SAAO,sBAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CALuE,CAA3D;AAOb,OAAA,CAAA,cAAA,CAAe,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
2
+ export declare type MenuSplitGroupSlots = {
3
+ root: IntrinsicShorthandProps<'div'>;
4
+ };
5
+ export 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;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=MenuSplitGroup.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
@@ -0,0 +1,5 @@
1
+ export * from './MenuSplitGroup';
2
+ export * from './MenuSplitGroup.types';
3
+ export * from './renderMenuSplitGroup';
4
+ export * from './useMenuSplitGroup';
5
+ export * from './useMenuSplitGroupStyles';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./MenuSplitGroup"), exports);
10
+
11
+ tslib_1.__exportStar(require("./MenuSplitGroup.types"), exports);
12
+
13
+ tslib_1.__exportStar(require("./renderMenuSplitGroup"), exports);
14
+
15
+ tslib_1.__exportStar(require("./useMenuSplitGroup"), exports);
16
+
17
+ tslib_1.__exportStar(require("./useMenuSplitGroupStyles"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -0,0 +1,5 @@
1
+ import type { MenuSplitGroupState } from './MenuSplitGroup.types';
2
+ /**
3
+ * Render the final JSX of MenuSplitGroup
4
+ */
5
+ export declare const renderMenuSplitGroup: (state: MenuSplitGroupState) => JSX.Element;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderMenuSplitGroup = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+ /**
12
+ * Render the final JSX of MenuSplitGroup
13
+ */
14
+
15
+
16
+ const renderMenuSplitGroup = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state);
21
+ return React.createElement(slots.root, { ...slotProps.root
22
+ });
23
+ };
24
+
25
+ exports.renderMenuSplitGroup = renderMenuSplitGroup;
26
+ //# sourceMappingURL=renderMenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/renderMenuSplitGroup.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA8B,KAA9B,CAA7B;AAEA,SAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
@@ -0,0 +1,12 @@
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,
7
+ * before being passed to renderMenuSplitGroup.
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: (props: MenuSplitGroupProps, ref: React.Ref<HTMLElement>) => MenuSplitGroupState;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useMenuSplitGroup = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+
12
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
13
+
14
+ const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
15
+
16
+ const keyboard_keys_1 = /*#__PURE__*/require("@fluentui/keyboard-keys");
17
+ /**
18
+ * Create the state required to render MenuSplitGroup.
19
+ *
20
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
21
+ * before being passed to renderMenuSplitGroup.
22
+ *
23
+ * @param props - props from this instance of MenuSplitGroup
24
+ * @param ref - reference to root HTMLElement of MenuSplitGroup
25
+ */
26
+
27
+
28
+ const useMenuSplitGroup = (props, ref) => {
29
+ const innerRef = React.useRef();
30
+ const {
31
+ dir,
32
+ targetDocument
33
+ } = react_shared_contexts_1.useFluent();
34
+ const nextArrowKey = react_utilities_1.getRTLSafeKey(keyboard_keys_1.ArrowRight, dir);
35
+ const prevArrowKey = react_utilities_1.getRTLSafeKey(keyboard_keys_1.ArrowLeft, dir);
36
+ const {
37
+ findNextFocusable,
38
+ findPrevFocusable
39
+ } = react_tabster_1.useFocusFinders();
40
+ const onKeyDown = React.useCallback(e => {
41
+ var _a;
42
+
43
+ const activeElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement;
44
+
45
+ if (!activeElement) {
46
+ return;
47
+ }
48
+
49
+ if (!((_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.contains(activeElement))) {
50
+ return;
51
+ }
52
+
53
+ if (e.key === nextArrowKey) {
54
+ const next = findNextFocusable(activeElement, {
55
+ container: innerRef.current
56
+ });
57
+ next === null || next === void 0 ? void 0 : next.focus();
58
+ }
59
+
60
+ if (e.key === prevArrowKey) {
61
+ const prev = findPrevFocusable(activeElement, {
62
+ container: innerRef.current
63
+ });
64
+ prev === null || prev === void 0 ? void 0 : prev.focus();
65
+ }
66
+ }, [findNextFocusable, findPrevFocusable, targetDocument, nextArrowKey, prevArrowKey]);
67
+ return {
68
+ components: {
69
+ root: 'div'
70
+ },
71
+ root: react_utilities_1.getNativeElementProps('div', {
72
+ role: 'group',
73
+ ref: react_utilities_1.useMergedRefs(ref, innerRef),
74
+ onKeyDown,
75
+ ...props
76
+ })
77
+ };
78
+ };
79
+
80
+ exports.useMenuSplitGroup = useMenuSplitGroup;
81
+ //# sourceMappingURL=useMenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroup.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,iCAAA,CAAA;;AAEA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAEA;;;;;;;;AAQG;;;AACI,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAA6B,GAA7B,KAAiF;AAChH,QAAM,QAAQ,GAAG,KAAK,CAAC,MAAN,EAAjB;AACA,QAAM;AAAE,IAAA,GAAF;AAAO,IAAA;AAAP,MAA0B,uBAAA,CAAA,SAAA,EAAhC;AAEA,QAAM,YAAY,GAAG,iBAAA,CAAA,aAAA,CAAc,eAAA,CAAA,UAAd,EAA0B,GAA1B,CAArB;AACA,QAAM,YAAY,GAAG,iBAAA,CAAA,aAAA,CAAc,eAAA,CAAA,SAAd,EAAyB,GAAzB,CAArB;AAEA,QAAM;AAAE,IAAA,iBAAF;AAAqB,IAAA;AAArB,MAA2C,eAAA,CAAA,eAAA,EAAjD;AAEA,QAAM,SAAS,GAAG,KAAK,CAAC,WAAN,CACf,CAAD,IAAwC;;;AACtC,UAAM,aAAa,GAAG,cAAc,KAAA,IAAd,IAAA,cAAc,KAAA,KAAA,CAAd,GAAc,KAAA,CAAd,GAAA,cAAc,CAAE,aAAtC;;AACA,QAAI,CAAC,aAAL,EAAoB;AAClB;AACD;;AAED,QAAI,EAAC,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAT,MAAgB,IAAhB,IAAgB,EAAA,KAAA,KAAA,CAAhB,GAAgB,KAAA,CAAhB,GAAgB,EAAA,CAAE,QAAF,CAAW,aAAX,CAAjB,CAAJ,EAAgD;AAC9C;AACD;;AAED,QAAI,CAAC,CAAC,GAAF,KAAU,YAAd,EAA4B;AAC1B,YAAM,IAAI,GAAG,iBAAiB,CAAC,aAAD,EAA+B;AAAE,QAAA,SAAS,EAAE,QAAQ,CAAC;AAAtB,OAA/B,CAA9B;AACA,MAAA,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAI,KAAA,CAAJ,GAAA,IAAI,CAAE,KAAN,EAAA;AACD;;AAED,QAAI,CAAC,CAAC,GAAF,KAAU,YAAd,EAA4B;AAC1B,YAAM,IAAI,GAAG,iBAAiB,CAAC,aAAD,EAA+B;AAAE,QAAA,SAAS,EAAE,QAAQ,CAAC;AAAtB,OAA/B,CAA9B;AACA,MAAA,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAI,KAAA,CAAJ,GAAA,IAAI,CAAE,KAAN,EAAA;AACD;AACF,GApBe,EAqBhB,CAAC,iBAAD,EAAoB,iBAApB,EAAuC,cAAvC,EAAuD,YAAvD,EAAqE,YAArE,CArBgB,CAAlB;AAwBA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B;AACjC,MAAA,IAAI,EAAE,OAD2B;AAEjC,MAAA,GAAG,EAAE,iBAAA,CAAA,aAAA,CAAc,GAAd,EAAmB,QAAnB,CAF4B;AAGjC,MAAA,SAHiC;AAIjC,SAAG;AAJ8B,KAA7B;AAJD,GAAP;AAWD,CA5CM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
@@ -0,0 +1,6 @@
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: (state: MenuSplitGroupState) => MenuSplitGroupState;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useMenuSplitGroupStyles = exports.menuSplitGroupClassName = void 0;
7
+
8
+ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
9
+
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+
12
+ const useMenuItemStyles_1 = /*#__PURE__*/require("../MenuItem/useMenuItemStyles");
13
+
14
+ exports.menuSplitGroupClassName = 'fui-MenuSplitGroup';
15
+ /**
16
+ * Styles for the root slot
17
+ */
18
+
19
+ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
20
+ "root": {
21
+ "mc9l5x": "f22iagw",
22
+ "u7v6m2": "f168awwq",
23
+ "Bo1wru1": ["f1om2jlk", "fcyhg04"],
24
+ "Bhkyaub": ["fgqgg70", "fqo1hry"],
25
+ "J9ixe0": ["fh1zedf", "f1auaj6e"],
26
+ "rj29m3": ["fokbbcd", "f1xlvh9o"],
27
+ "lispf9": "f1et5qag",
28
+ "B9hwub1": "f13ngu1f",
29
+ "dvf9w6": "f1db9j62",
30
+ "Hjn5ok": "f92z21p"
31
+ }
32
+ }, {
33
+ "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f168awwq>.fui-MenuItem:nth-child(1){width:100%;}", ".f1om2jlk>.fui-MenuItem:nth-child(2){border-top-left-radius:0;}", ".fcyhg04>.fui-MenuItem:nth-child(2){border-top-right-radius:0;}", ".fgqgg70>.fui-MenuItem:nth-child(2){border-bottom-left-radius:0;}", ".fqo1hry>.fui-MenuItem:nth-child(2){border-bottom-right-radius:0;}", ".fh1zedf>.fui-MenuItem:nth-child(2){padding-left:0;}", ".f1auaj6e>.fui-MenuItem:nth-child(2){padding-right:0;}", ".fokbbcd>.fui-MenuItem:nth-child(2){margin-left:auto;}", ".f1xlvh9o>.fui-MenuItem:nth-child(2){margin-right:auto;}", ".f1et5qag>.fui-MenuItem:nth-child(2):before{content:\"\";}", ".f13ngu1f>.fui-MenuItem:nth-child(2):before{width:var(--strokeWidthThin);}", ".f1db9j62>.fui-MenuItem:nth-child(2):before{height:24px;}", ".f92z21p>.fui-MenuItem:nth-child(2):before{background-color:var(--colorNeutralStroke1);}"]
34
+ });
35
+ /**
36
+ * Apply styling to the MenuSplitGroup slots based on the state
37
+ */
38
+
39
+
40
+ const useMenuSplitGroupStyles = state => {
41
+ const styles = useStyles();
42
+ state.root.className = react_make_styles_1.mergeClasses(exports.menuSplitGroupClassName, styles.root, state.root.className);
43
+ return state;
44
+ };
45
+
46
+ exports.useMenuSplitGroupStyles = useMenuSplitGroupStyles;
47
+ //# sourceMappingURL=useMenuSplitGroupStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroupStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,+BAAA,CAAA;;AAGa,OAAA,CAAA,uBAAA,GAA0B,oBAA1B;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAqBA;;AAEG;;;AACI,MAAM,uBAAuB,GAAI,KAAD,IAAoD;AACzF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,OAAA,CAAA,uBAAb,EAAsC,MAAM,CAAC,IAA7C,EAAmD,KAAK,CAAC,IAAN,CAAW,SAA9D,CAAvB;AACA,SAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
@@ -4,4 +4,4 @@ import type { MenuTriggerProps } from './MenuTrigger.types';
4
4
  * Wraps a trigger element as an only child
5
5
  * and adds the necessary event handling to open a popup menu
6
6
  */
7
- export declare const MenuTrigger: React.FC<MenuTriggerProps>;
7
+ export declare const MenuTrigger: React.ForwardRefExoticComponent<MenuTriggerProps & React.RefAttributes<HTMLElement>>;
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MenuTrigger = void 0;
7
7
 
8
+ const React = /*#__PURE__*/require("react");
9
+
8
10
  const useMenuTrigger_1 = /*#__PURE__*/require("./useMenuTrigger");
9
11
 
10
12
  const renderMenuTrigger_1 = /*#__PURE__*/require("./renderMenuTrigger");
@@ -14,11 +16,9 @@ const renderMenuTrigger_1 = /*#__PURE__*/require("./renderMenuTrigger");
14
16
  */
15
17
 
16
18
 
17
- const MenuTrigger = props => {
18
- const state = useMenuTrigger_1.useMenuTrigger(props);
19
+ exports.MenuTrigger = /*#__PURE__*/React.forwardRef((props, ref) => {
20
+ const state = useMenuTrigger_1.useMenuTrigger(props, ref);
19
21
  return renderMenuTrigger_1.renderMenuTrigger(state);
20
- };
21
-
22
- exports.MenuTrigger = MenuTrigger;
22
+ });
23
23
  exports.MenuTrigger.displayName = 'MenuTrigger';
24
24
  //# sourceMappingURL=MenuTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuTrigger/MenuTrigger.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAGA;;;AAGG;;;AACI,MAAM,WAAW,GAA+B,KAAK,IAAG;AAC7D,QAAM,KAAK,GAAG,gBAAA,CAAA,cAAA,CAAe,KAAf,CAAd;AAEA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,WAAA,GAAW,WAAX;AAMb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuTrigger/MenuTrigger.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAGA;;;AAGG;;;AACU,OAAA,CAAA,WAAA,gBAAc,KAAK,CAAC,UAAN,CAAgD,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxF,QAAM,KAAK,GAAG,gBAAA,CAAA,cAAA,CAAe,KAAf,EAAsB,GAAtB,CAAd;AAEA,SAAO,mBAAA,CAAA,iBAAA,CAAkB,KAAlB,CAAP;AACD,CAJ0B,CAAd;AAMb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourceRoot":""}
@@ -10,7 +10,10 @@ export declare type MenuTriggerProps = {
10
10
  /**
11
11
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
12
12
  */
13
- export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'>> & {
13
+ export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
14
14
  ref?: React.Ref<never>;
15
+ 'aria-expanded': boolean | undefined;
16
+ };
17
+ export declare type MenuTriggerState = {
18
+ children: React.ReactNode;
15
19
  };
16
- export declare type MenuTriggerState = MenuTriggerProps;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
2
3
  /**
3
4
  * Create the state required to render MenuTrigger.
@@ -5,4 +6,4 @@ import type { MenuTriggerProps, MenuTriggerState } from './MenuTrigger.types';
5
6
  *
6
7
  * @param props - props from this instance of MenuTrigger
7
8
  */
8
- export declare const useMenuTrigger: (props: MenuTriggerProps) => MenuTriggerState;
9
+ export declare const useMenuTrigger: (props: MenuTriggerProps, ref: React.Ref<HTMLElement>) => MenuTriggerState;