@fluentui/react-menu 0.0.0-nightlyebf02572f720211207.1 → 0.0.0-nightlyf8be6a7c6520220106.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/CHANGELOG.json +70 -26
  2. package/CHANGELOG.md +22 -16
  3. package/Spec.md +21 -16
  4. package/dist/react-menu.d.ts +54 -4
  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 +27 -20
  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/useMenuDividerStyles.d.ts +1 -1
  13. package/lib/components/MenuGroup/renderMenuGroup.js +2 -1
  14. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  15. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -1
  16. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  17. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  18. package/lib/components/MenuItem/MenuItem.js +0 -2
  19. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  20. package/lib/components/MenuItem/MenuItem.types.d.ts +1 -1
  21. package/lib/components/MenuItem/renderMenuItem.js +7 -1
  22. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  23. package/lib/components/MenuItem/useMenuItem.js +2 -2
  24. package/lib/components/MenuItem/useMenuItem.js.map +1 -1
  25. package/lib/components/MenuItem/useMenuItemStyles.js +12 -18
  26. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  27. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -1
  28. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  29. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +6 -1
  30. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  31. package/lib/components/MenuList/renderMenuList.js +2 -1
  32. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  33. package/lib/components/MenuList/useMenuList.js.map +1 -1
  34. package/lib/components/MenuPopover/renderMenuPopover.js +4 -2
  35. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  36. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  37. package/lib/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  38. package/lib/components/MenuSplitGroup/MenuSplitGroup.js +15 -0
  39. package/lib/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  40. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  41. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js +2 -0
  42. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  43. package/lib/components/MenuSplitGroup/index.d.ts +5 -0
  44. package/lib/components/MenuSplitGroup/index.js +6 -0
  45. package/lib/components/MenuSplitGroup/index.js.map +1 -0
  46. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  47. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js +16 -0
  48. package/lib/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  49. package/lib/components/MenuSplitGroup/useMenuSplitGroup.d.ts +16 -0
  50. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js +72 -0
  51. package/lib/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  52. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  53. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +34 -0
  54. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  55. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +2 -1
  56. package/lib/components/MenuTrigger/useTriggerElement.js +6 -5
  57. package/lib/components/MenuTrigger/useTriggerElement.js.map +1 -1
  58. package/lib/index.d.ts +11 -10
  59. package/lib/index.js +11 -10
  60. package/lib/index.js.map +1 -1
  61. package/lib/utils/useOnMenuEnter.js.map +1 -1
  62. package/lib-commonjs/MenuSplitGroup.d.ts +1 -0
  63. package/lib-commonjs/MenuSplitGroup.js +10 -0
  64. package/lib-commonjs/MenuSplitGroup.js.map +1 -0
  65. package/lib-commonjs/components/Menu/useMenu.js +31 -25
  66. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  67. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +2 -1
  68. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  69. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  70. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +2 -1
  71. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  72. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -1
  73. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  74. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  75. package/lib-commonjs/components/MenuItem/MenuItem.js +0 -3
  76. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  77. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +1 -1
  78. package/lib-commonjs/components/MenuItem/renderMenuItem.js +7 -1
  79. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  80. package/lib-commonjs/components/MenuItem/useMenuItem.js +2 -2
  81. package/lib-commonjs/components/MenuItem/useMenuItem.js.map +1 -1
  82. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +13 -18
  83. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  84. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -1
  85. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  86. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +6 -1
  87. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  88. package/lib-commonjs/components/MenuList/renderMenuList.js +2 -1
  89. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  90. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  91. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +4 -2
  92. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  93. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  94. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.d.ts +6 -0
  95. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js +26 -0
  96. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.js.map +1 -0
  97. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +13 -0
  98. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js +6 -0
  99. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.js.map +1 -0
  100. package/lib-commonjs/components/MenuSplitGroup/index.d.ts +5 -0
  101. package/lib-commonjs/components/MenuSplitGroup/index.js +18 -0
  102. package/lib-commonjs/components/MenuSplitGroup/index.js.map +1 -0
  103. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.d.ts +5 -0
  104. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js +28 -0
  105. package/lib-commonjs/components/MenuSplitGroup/renderMenuSplitGroup.js.map +1 -0
  106. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.d.ts +16 -0
  107. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js +86 -0
  108. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroup.js.map +1 -0
  109. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -0
  110. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +45 -0
  111. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -0
  112. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +2 -1
  113. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +6 -5
  114. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +1 -1
  115. package/lib-commonjs/index.d.ts +11 -10
  116. package/lib-commonjs/index.js +16 -14
  117. package/lib-commonjs/index.js.map +1 -1
  118. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  119. package/package.json +13 -13
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import { useMenuItem } from './useMenuItem';
3
3
  import { renderMenuItem } from './renderMenuItem';
4
4
  import { useMenuItemStyles } from './useMenuItemStyles';
5
- import { useCheckmarkStyles } from '../../selectable/index';
6
5
  /**
7
6
  * Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
8
7
  */
@@ -10,7 +9,6 @@ import { useCheckmarkStyles } from '../../selectable/index';
10
9
  export const MenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
11
10
  const state = useMenuItem(props, ref);
12
11
  useMenuItemStyles(state);
13
- useCheckmarkStyles(state);
14
12
  return renderMenuItem(state);
15
13
  });
16
14
  MenuItem.displayName = 'MenuItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,WAAT,QAA4B,eAA5B;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,kBAAT,QAAmC,wBAAnC;AAKA;;AAEG;;AACH,OAAO,MAAM,QAAQ,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,WAAW,CAAC,KAAD,EAAQ,GAAR,CAAzB;AAEA,EAAA,iBAAiB,CAAC,KAAD,CAAjB;AACA,EAAA,kBAAkB,CAAC,KAAD,CAAlB;AACA,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CAN2D,CAArD;AAQP,QAAQ,CAAC,WAAT,GAAuB,UAAvB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,WAAT,QAA4B,eAA5B;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AAIA;;AAEG;;AACH,OAAO,MAAM,QAAQ,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,WAAW,CAAC,KAAD,EAAQ,GAAR,CAAzB;AAEA,EAAA,iBAAiB,CAAC,KAAD,CAAjB;AACA,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CAL2D,CAArD;AAOP,QAAQ,CAAC,WAAT,GAAuB,UAAvB","sourceRoot":""}
@@ -18,7 +18,7 @@ export declare type MenuItemSlots = {
18
18
  * Component children are placed in this slot
19
19
  * Avoid using the `children` property in this slot in favour of Component children whenever possible
20
20
  */
21
- content: IntrinsicShorthandProps<'span'>;
21
+ content?: IntrinsicShorthandProps<'span'>;
22
22
  /**
23
23
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
24
24
  */
@@ -10,6 +10,12 @@ export const renderMenuItem = state => {
10
10
  slots,
11
11
  slotProps
12
12
  } = getSlots(state, menuItemSlots);
13
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), /*#__PURE__*/React.createElement(slots.checkmark, Object.assign({}, slotProps.checkmark)), /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), /*#__PURE__*/React.createElement(slots.content, Object.assign({}, slotProps.content)), /*#__PURE__*/React.createElement(slots.secondaryContent, Object.assign({}, slotProps.secondaryContent)), /*#__PURE__*/React.createElement(slots.submenuIndicator, Object.assign({}, slotProps.submenuIndicator)));
13
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
15
+ }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
16
+ }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
17
+ }), /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
18
+ }), /*#__PURE__*/React.createElement(slots.submenuIndicator, { ...slotProps.submenuIndicator
19
+ }));
14
20
  };
15
21
  //# sourceMappingURL=renderMenuItem.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/renderMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,aAAT,QAA8B,eAA9B;AAGA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAAI,KAAD,IAAyB;AACrD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,EAAuB,aAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,SAAf,CAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,OAAf,CAAd,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 export const menuItemSlots = ['root', 'icon', 'submenuIndicator', 'content', 'se
16
16
  */
17
17
 
18
18
  export const useMenuItem = (props, ref) => {
19
- const hasSubmenu = useMenuTriggerContext();
19
+ const hasSubmenu = useMenuTriggerContext() || props.hasSubmenu;
20
20
  const hasIcons = useMenuListContext(context => context.hasIcons);
21
21
  const hasCheckmarks = useMenuListContext(context => context.hasCheckmarks);
22
22
  const setOpen = useMenuContext(context => context.setOpen);
@@ -57,7 +57,7 @@ export const useMenuItem = (props, ref) => {
57
57
  }
58
58
  }),
59
59
  content: resolveShorthand(props.content, {
60
- required: true,
60
+ required: !!props.children,
61
61
  defaultProps: {
62
62
  children: props.children
63
63
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/useMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SACE,gBADF,EAEE,6BAFF,EAGE,gBAHF,EAIE,aAJF,EAKE,qBALF,QAMO,2BANP;AAOA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SAAS,kBAAT,QAAmC,sBAAnC;AACA,SAAS,qBAAT,QAAsC,mCAAtC;AACA,SACE,qBAAqB,IAAI,gBAD3B,EAEE,oBAAoB,IAAI,eAF1B,QAGO,uBAHP;AAIA,SAAS,kBAAT,QAAmC,gCAAnC;AACA,SAAS,cAAT,QAA+B,4BAA/B;AAGA;;AAEG;;AACH,OAAO,MAAM,aAAa,GAA+B,CACvD,MADuD,EAEvD,MAFuD,EAGvD,kBAHuD,EAIvD,SAJuD,EAKvD,kBALuD,EAMvD,WANuD,CAAlD;AASP;;AAEG;;AACH,OAAO,MAAM,WAAW,GAAG,CAAC,KAAD,EAAuB,GAAvB,KAAqE;AAC9F,QAAM,UAAU,GAAG,qBAAqB,EAAxC;AACA,QAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,IAAI,OAAO,CAAC,QAApB,CAAnC;AACA,QAAM,aAAa,GAAG,kBAAkB,CAAC,OAAO,IA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GAAmC,KAAnC;AACD;;AAED,IAAA,eAAe,KAAA,IAAf,IAAA,eAAe,KAAA,KAAA,CAAf,GAAe,KAAA,CAAf,GAAA,eAAe,CAAG,CAAH,CAAf;AACD,GAnBD;;AAqBA,QAAM;AAAE,IAAA,YAAY,EAAE;AAAhB,MAAyC,KAAK,CAAC,IAArD;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,YAAX,GAA0B,gBAAgB,CAAC,CAAC,IAAG;;;AAC7C,KAAA,EAAA,GAAA,QAAQ,CAAC,OAAT,MAAgB,IAAhB,IAAgB,EAAA,KAAA,KAAA,CAAhB,GAAgB,KAAA,CAAhB,GAAgB,EAAA,CAAE,KAAF,EAAhB;AAEA,IAAA,oBAAoB,KAAA,IAApB,IAAA,oBAAoB,KAAA,KAAA,CAApB,GAAoB,KAAA,CAApB,GAAA,oBAAoB,CAAG,CAAH,CAApB;AACD,GAJyC,CAA1C;AAMA,EAAA,kBAAkB,CAAC,KAAD,EAAQ,QAAR,CAAlB;AACA,SAAO,KAAP;AACD,CA3FM","sourceRoot":""}
@@ -1,32 +1,21 @@
1
1
  import { mergeClasses, __styles, shorthands } from '@fluentui/react-make-styles';
2
2
  import { createFocusOutlineStyle } from '@fluentui/react-tabster';
3
+ import { useCheckmarkStyles } from '../../selectable/index';
3
4
  export const menuItemClassName = 'fui-MenuItem';
4
5
 
5
6
  const useStyles = /*#__PURE__*/__styles({
6
7
  "focusIndicator": {
7
8
  "B486eqv": "f2hkw1w",
8
- "Bnmjwt4": "flfsvnh",
9
- "Jopkrh": ["f1781m5e", "flvaaa9"],
10
- "hhrs2v": "f50u1b5",
11
- "B7jbng7": ["flvaaa9", "f1781m5e"],
9
+ "B1bra5l": "fc85khu",
12
10
  "e8izhr": "f1pxpxw8",
13
11
  "in3gf6": "f1149fnl",
14
12
  "B1i23sz": "fd1orka",
15
13
  "ln9as": "fgtqheg",
16
14
  "Bfgg0yq": "fq7mjg8",
17
- "B7231uf": "fmqgchs",
18
- "Bxoolf0": ["f1lv6wi8", "famjx04"],
19
- "fo1iai": "f1nbyjd2",
20
- "Bh81ga8": ["famjx04", "f1lv6wi8"],
21
- "qztvpn": "f5n18is",
22
- "ge3ubn": ["f13az7yk", "f14kwzu1"],
23
- "F41yt0": "fneogx5",
24
- "Bxrdl85": ["f14kwzu1", "f13az7yk"],
15
+ "i16j1i": "fq9bj62",
16
+ "yxydaw": "fy07e8r",
25
17
  "B9sa02e": "f1ha6shg",
26
- "hzsgvt": "f1f43d5r",
27
- "Ba9tnbb": ["f1ib27sc", "f14s7j5v"],
28
- "Fpkomr": "f13oqbgc",
29
- "Bttdqvk": ["f14s7j5v", "f1ib27sc"],
18
+ "yaquy9": "f4ltwxu",
30
19
  "Bl8qd6i": "f1284xzw",
31
20
  "Byzgy54": "f14dru39",
32
21
  "mq8cyt": ["fvabyfg", "f12y1wz2"],
@@ -81,7 +70,7 @@ const useStyles = /*#__PURE__*/__styles({
81
70
  }
82
71
  }, {
83
72
  "i": [".f2hkw1w:focus-visible{outline-style:none;}"],
84
- "d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fmqgchs:focus:after{border-top-style:solid;}", "[data-keyboard-nav] .f1lv6wi8:focus:after{border-right-style:solid;}", "[data-keyboard-nav] .famjx04:focus:after{border-left-style:solid;}", "[data-keyboard-nav] .f1nbyjd2:focus:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f5n18is:focus:after{border-top-width:2px;}", "[data-keyboard-nav] .f13az7yk:focus:after{border-right-width:2px;}", "[data-keyboard-nav] .f14kwzu1:focus:after{border-left-width:2px;}", "[data-keyboard-nav] .fneogx5:focus:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1f43d5r:focus:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1ib27sc:focus:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f14s7j5v:focus:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f13oqbgc:focus:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".f1d2rq10{height:32px;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1k6fduh{cursor:pointer;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f161knb0{padding-left:2px;}", ".f12huiiw{padding-right:2px;}", ".f3rmtva{background-color:transparent;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],
73
+ "d": ["[data-keyboard-nav] .fc85khu:focus{border-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fq9bj62:focus:after{border-style:solid;}", "[data-keyboard-nav] .fy07e8r:focus:after{border-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f4ltwxu:focus:after{border-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".f1d2rq10{height:32px;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1k6fduh{cursor:pointer;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f161knb0{padding-left:2px;}", ".f12huiiw{padding-right:2px;}", ".f3rmtva{background-color:transparent;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],
85
74
  "h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}", ".f1jp5ecu:hover{color:var(--colorNeutralForeground3Hover);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}"],
86
75
  "f": [".fc1cou1:focus{color:var(--colorNeutralForeground3Hover);}", ".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"]
87
76
  });
@@ -91,7 +80,10 @@ const useStyles = /*#__PURE__*/__styles({
91
80
  export const useMenuItemStyles = state => {
92
81
  const styles = useStyles();
93
82
  state.root.className = mergeClasses(menuItemClassName, styles.root, styles.focusIndicator, state.disabled && styles.disabled, state.root.className);
94
- state.content.className = mergeClasses(styles.content, state.content.className);
83
+
84
+ if (state.content) {
85
+ state.content.className = mergeClasses(styles.content, state.content.className);
86
+ }
95
87
 
96
88
  if (state.secondaryContent) {
97
89
  state.secondaryContent.className = mergeClasses(!state.disabled && styles.secondaryContent, state.secondaryContent.className);
@@ -104,5 +96,7 @@ export const useMenuItemStyles = state => {
104
96
  if (state.submenuIndicator) {
105
97
  state.submenuIndicator.className = mergeClasses(styles.submenuIndicator, state.submenuIndicator.className);
106
98
  }
99
+
100
+ useCheckmarkStyles(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ACA,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAAyB;AACxD,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,iBADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,MAAM,CAAC,cAH0B,EAIjC,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJQ,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;;AAQA,MAAI,KAAK,CAAC,OAAV,EAAmB;AACjB,IAAA,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,YAAY,CAAC,MAAM,CAAC,OAAR,EAAiB,KAAK,CAAC,OAAN,CAAc,SAA/B,CAAtC;AACD;;AAED,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,YAAY,CAC7C,CAAC,KAAK,CAAC,QAAP,IAAmB,MAAM,CAAC,gBADmB,EAE7C,KAAK,CAAC,gBAAN,CAAuB,SAFsB,CAA/C;AAID;;AAED,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,MAAM,CAAC,IAAR,EAAc,KAAK,CAAC,IAAN,CAAW,SAAzB,CAAnC;AACD;;AAED,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,YAAY,CAAC,MAAM,CAAC,gBAAR,EAA0B,KAAK,CAAC,gBAAN,CAAuB,SAAjD,CAA/C;AACD;;AACD,EAAA,kBAAkB,CAAC,KAAD,CAAlB;AACD,CA7BM","sourceRoot":""}
@@ -8,6 +8,11 @@ export const renderMenuItemCheckbox = state => {
8
8
  slots,
9
9
  slotProps
10
10
  } = getSlots(state, menuItemSlots);
11
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), /*#__PURE__*/React.createElement(slots.checkmark, Object.assign({}, slotProps.checkmark)), /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), /*#__PURE__*/React.createElement(slots.content, Object.assign({}, slotProps.content)), /*#__PURE__*/React.createElement(slots.secondaryContent, Object.assign({}, slotProps.secondaryContent)));
11
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
12
+ }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
13
+ }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
14
+ }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
15
+ }), /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
16
+ }));
12
17
  };
13
18
  //# sourceMappingURL=renderMenuItemCheckbox.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,aAAT,QAA8B,mBAA9B;AAIA;;AACA,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAiC;AACrE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,EAAuB,aAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,SAAf,CAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,OAAf,CAAd,CAHF,eAIE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,gBAAf,CAAvB,CAJF,CADF;AAQD,CAXM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,aAAT,QAA8B,mBAA9B;AAIA;;AACA,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAiC;AACrE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,EAAuB,aAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,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","sourceRoot":""}
@@ -11,6 +11,11 @@ export const renderMenuItemRadio = state => {
11
11
  slots,
12
12
  slotProps
13
13
  } = getSlots(state, menuItemSlots);
14
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), /*#__PURE__*/React.createElement(slots.checkmark, Object.assign({}, slotProps.checkmark)), /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), /*#__PURE__*/React.createElement(slots.content, Object.assign({}, slotProps.content)), /*#__PURE__*/React.createElement(slots.secondaryContent, Object.assign({}, slotProps.secondaryContent)));
14
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
15
+ }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
16
+ }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
17
+ }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
18
+ }), /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
19
+ }));
15
20
  };
16
21
  //# sourceMappingURL=renderMenuItemRadio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,aAAT,QAA8B,mBAA9B;AAIA;;;AAGG;;AACH,OAAO,MAAM,mBAAmB,GAAI,KAAD,IAA8B;AAC/D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,EAAuB,aAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,SAAf,CAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,OAAf,CAAd,CAHF,eAIE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,gBAAf,CAAvB,CAJF,CADF;AAQD,CAXM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,aAAT,QAA8B,mBAA9B;AAIA;;;AAGG;;AACH,OAAO,MAAM,mBAAmB,GAAI,KAAD,IAA8B;AAC/D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,EAAuB,aAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFF,eAGE,KAAA,CAAA,aAAA,CAAC,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","sourceRoot":""}
@@ -12,6 +12,7 @@ export const renderMenuList = (state, contextValues) => {
12
12
  } = getSlots(state);
13
13
  return /*#__PURE__*/React.createElement(MenuListProvider, {
14
14
  value: contextValues.menuList
15
- }, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root)));
15
+ }, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
16
+ }));
16
17
  };
17
18
  //# sourceMappingURL=renderMenuList.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,gBAAT,QAAiC,gCAAjC;AAEA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;AAC3F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,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","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/renderMenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,gBAAT,QAAiC,gCAAjC;AAEA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAAG,CAAC,KAAD,EAAuB,aAAvB,KAA+D;AAC3F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,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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AA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAA,aAAA,GAAiB;AALpB,GAAd;AAQA,SAAO,KAAP;AACD,CA9GM;AAgHP;;AAEG;;AACH,MAAM,uBAAuB,GAAG,MAAK;AACnC,QAAM,aAAa,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,aAApB,CAApC;AACA,QAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,oBAApB,CAA3C;AACA,QAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,oBAApB,CAA3C;AACA,QAAM,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,SAApB,CAAhC;AACA,QAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,QAApB,CAA/B;AACA,QAAM,aAAa,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,CAAC,aAApB,CAApC;AAEA,SAAO;AACL,IAAA,aADK;AAEL,IAAA,oBAFK;AAGL,IAAA,oBAHK;AAIL,IAAA,SAJK;AAKL,IAAA,QALK;AAML,IAAA;AANK,GAAP;AAQD,CAhBD;AAkBA;;AAEG;;;AACH,MAAM,wBAAwB,GAAG,CAC/B,KAD+B,EAE/B,YAF+B,EAG/B,cAH+B,KAI7B;AACF,MAAI,sBAAsB,GAAG,KAA7B;;AACA,OAAK,MAAM,GAAX,IAAkB,YAAlB,EAAgC;AAC9B,QAAI,KAAK,CAAC,GAAD,CAAT,EAA4G;AAC1G,MAAA,sBAAsB,GAAG,IAAzB;AACD;AACF;;AAED,SAAO,cAAc,IAAI,sBAAzB;AACD,CAbD","sourceRoot":""}
@@ -12,9 +12,11 @@ export const renderMenuPopover = state => {
12
12
  } = getSlots(state);
13
13
 
14
14
  if (state.inline) {
15
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
15
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
16
+ });
16
17
  }
17
18
 
18
- return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root)));
19
+ return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
20
+ }));
19
21
  };
20
22
  //# sourceMappingURL=renderMenuPopover.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuPopover/renderMenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,MAAT,QAAuB,wBAAvB;AAEA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;;AAEA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,wBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,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","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuPopover/renderMenuPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,MAAT,QAAuB,wBAAvB;AAEA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;;AAEA,MAAI,KAAK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GAAG,CAAC,CAAC,GAAd;;AAEA,QAAI,GAAG,KAAK,MAAR,IAAmB,SAAS,IAAI,GAAG,KAAK,aAA5C,EAA4D;AAC1D,UAAI,CAAA,EAAA,GAAA,UAAU,CAAC,OAAX,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,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,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,GAfqC,CAAtC;AAiBA,SAAO;AACL,IAAA,MADK;AAEL,IAAA,IAAI,EAAE;AAFD,GAAP;AAID,CA3EM","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,15 @@
1
+ import * as React from 'react';
2
+ import { useMenuSplitGroup } from './useMenuSplitGroup';
3
+ import { renderMenuSplitGroup } from './renderMenuSplitGroup';
4
+ import { useMenuSplitGroupStyles } from './useMenuSplitGroupStyles';
5
+ /**
6
+ * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
7
+ */
8
+
9
+ export const MenuSplitGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useMenuSplitGroup(props, ref);
11
+ useMenuSplitGroupStyles(state);
12
+ return renderMenuSplitGroup(state);
13
+ });
14
+ MenuSplitGroup.displayName = 'MenuSplitGroup';
15
+ //# sourceMappingURL=MenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/MenuSplitGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AACA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MenuSplitGroup.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSplitGroup.types.js","sourceRoot":"","sources":["../../../src/components/MenuSplitGroup/MenuSplitGroup.types.ts"],"names":[],"mappings":""}
@@ -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,6 @@
1
+ export * from './MenuSplitGroup';
2
+ export * from './MenuSplitGroup.types';
3
+ export * from './renderMenuSplitGroup';
4
+ export * from './useMenuSplitGroup';
5
+ export * from './useMenuSplitGroupStyles';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuSplitGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
@@ -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,16 @@
1
+ import * as React from 'react';
2
+ import { getSlots } from '@fluentui/react-utilities';
3
+ import { menuSplitGroupShorthandProps } from './useMenuSplitGroup';
4
+ /**
5
+ * Render the final JSX of MenuSplitGroup
6
+ */
7
+
8
+ export const renderMenuSplitGroup = state => {
9
+ const {
10
+ slots,
11
+ slotProps
12
+ } = getSlots(state, menuSplitGroupShorthandProps);
13
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ });
15
+ };
16
+ //# sourceMappingURL=renderMenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/renderMenuSplitGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,4BAAT,QAA6C,qBAA7C;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,4BAA7B,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import type { MenuSplitGroupProps, MenuSplitGroupSlots, MenuSplitGroupState } from './MenuSplitGroup.types';
3
+ /**
4
+ * Array of all shorthand properties listed in MenuSplitGroupSlots
5
+ */
6
+ export declare const menuSplitGroupShorthandProps: (keyof MenuSplitGroupSlots)[];
7
+ /**
8
+ * Create the state required to render MenuSplitGroup.
9
+ *
10
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
11
+ * before being passed to renderMenuSplitGroup.
12
+ *
13
+ * @param props - props from this instance of MenuSplitGroup
14
+ * @param ref - reference to root HTMLElement of MenuSplitGroup
15
+ */
16
+ export declare const useMenuSplitGroup: (props: MenuSplitGroupProps, ref: React.Ref<HTMLElement>) => MenuSplitGroupState;
@@ -0,0 +1,72 @@
1
+ import * as React from 'react';
2
+ import { getNativeElementProps, getRTLSafeKey, useMergedRefs } from '@fluentui/react-utilities';
3
+ import { useFocusFinders } from '@fluentui/react-tabster';
4
+ import { useFluent } from '@fluentui/react-shared-contexts';
5
+ import { ArrowRight, ArrowLeft } from '@fluentui/keyboard-keys';
6
+ /**
7
+ * Array of all shorthand properties listed in MenuSplitGroupSlots
8
+ */
9
+
10
+ export const menuSplitGroupShorthandProps = ['root'];
11
+ /**
12
+ * Create the state required to render MenuSplitGroup.
13
+ *
14
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
15
+ * before being passed to renderMenuSplitGroup.
16
+ *
17
+ * @param props - props from this instance of MenuSplitGroup
18
+ * @param ref - reference to root HTMLElement of MenuSplitGroup
19
+ */
20
+
21
+ export const useMenuSplitGroup = (props, ref) => {
22
+ const innerRef = React.useRef();
23
+ const {
24
+ dir,
25
+ targetDocument
26
+ } = useFluent();
27
+ const nextArrowKey = getRTLSafeKey(ArrowRight, dir);
28
+ const prevArrowKey = getRTLSafeKey(ArrowLeft, dir);
29
+ const {
30
+ findNextFocusable,
31
+ findPrevFocusable
32
+ } = useFocusFinders();
33
+ const onKeyDown = React.useCallback(e => {
34
+ var _a;
35
+
36
+ const activeElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement;
37
+
38
+ if (!activeElement) {
39
+ return;
40
+ }
41
+
42
+ if (!((_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.contains(activeElement))) {
43
+ return;
44
+ }
45
+
46
+ if (e.key === nextArrowKey) {
47
+ const next = findNextFocusable(activeElement, {
48
+ container: innerRef.current
49
+ });
50
+ next === null || next === void 0 ? void 0 : next.focus();
51
+ }
52
+
53
+ if (e.key === prevArrowKey) {
54
+ const prev = findPrevFocusable(activeElement, {
55
+ container: innerRef.current
56
+ });
57
+ prev === null || prev === void 0 ? void 0 : prev.focus();
58
+ }
59
+ }, [findNextFocusable, findPrevFocusable, targetDocument, nextArrowKey, prevArrowKey]);
60
+ return {
61
+ components: {
62
+ root: 'div'
63
+ },
64
+ root: getNativeElementProps('div', {
65
+ role: 'group',
66
+ ref: useMergedRefs(ref, innerRef),
67
+ onKeyDown,
68
+ ...props
69
+ })
70
+ };
71
+ };
72
+ //# sourceMappingURL=useMenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,aAA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AAA,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,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,IAAI,EAAE,OAD2B;AAEjC,MAAA,GAAG,EAAE,aAAa,CAAC,GAAD,EAAM,QAAN,CAFe;AAGjC,MAAA,SAHiC;AAIjC,SAAG;AAJ8B,KAAR;AAJtB,GAAP;AAWD,CA5CM","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,34 @@
1
+ import { __styles, mergeClasses } from '@fluentui/react-make-styles';
2
+ import { menuItemClassName } from '../MenuItem/useMenuItemStyles';
3
+ export const menuSplitGroupClassName = 'fui-MenuSplitGroup';
4
+ /**
5
+ * Styles for the root slot
6
+ */
7
+
8
+ const useStyles = /*#__PURE__*/__styles({
9
+ "root": {
10
+ "mc9l5x": "f22iagw",
11
+ "u7v6m2": "f168awwq",
12
+ "Bo1wru1": ["f1om2jlk", "fcyhg04"],
13
+ "Bhkyaub": ["fgqgg70", "fqo1hry"],
14
+ "J9ixe0": ["fh1zedf", "f1auaj6e"],
15
+ "rj29m3": ["fokbbcd", "f1xlvh9o"],
16
+ "lispf9": "f1et5qag",
17
+ "B9hwub1": "f13ngu1f",
18
+ "dvf9w6": "f1db9j62",
19
+ "Hjn5ok": "f92z21p"
20
+ }
21
+ }, {
22
+ "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);}"]
23
+ });
24
+ /**
25
+ * Apply styling to the MenuSplitGroup slots based on the state
26
+ */
27
+
28
+
29
+ export const useMenuSplitGroupStyles = state => {
30
+ const styles = useStyles();
31
+ state.root.className = mergeClasses(menuSplitGroupClassName, styles.root, state.root.className);
32
+ return state;
33
+ };
34
+ //# sourceMappingURL=useMenuSplitGroupStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/MenuSplitGroup/useMenuSplitGroupStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AACA,SAAS,iBAAT,QAAkC,+BAAlC;AAGA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAqBA;;AAEG;;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAoD;AACzF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,uBAAD,EAA0B,MAAM,CAAC,IAAjC,EAAuC,KAAK,CAAC,IAAN,CAAW,SAAlD,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
@@ -10,7 +10,8 @@ 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' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
14
14
  ref?: React.Ref<never>;
15
+ 'aria-expanded': boolean | undefined;
15
16
  };
16
17
  export declare type MenuTriggerState = MenuTriggerProps;
@@ -93,10 +93,6 @@ export const useTriggerElement = state => {
93
93
  focusFirst();
94
94
  }
95
95
 
96
- if (open && key === ArrowDown && !isSubmenu) {
97
- focusFirst();
98
- }
99
-
100
96
  (_c = (_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.onKeyDown) === null || _c === void 0 ? void 0 : _c.call(_b, e);
101
97
  });
102
98
  const onMouseEnter = useEventCallback(e => {
@@ -137,7 +133,7 @@ export const useTriggerElement = state => {
137
133
  });
138
134
  const disabled = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.disabled;
139
135
  const triggerProps = {
140
- 'aria-haspopup': true,
136
+ 'aria-haspopup': 'menu',
141
137
  'aria-expanded': open,
142
138
  id: ((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.id) || triggerId,
143
139
  ...(!disabled ? {
@@ -157,6 +153,11 @@ export const useTriggerElement = state => {
157
153
  onMouseMove: noop
158
154
  })
159
155
  };
156
+
157
+ if (!open && !isSubmenu) {
158
+ triggerProps['aria-expanded'] = undefined;
159
+ }
160
+
160
161
  state.children = applyTriggerPropsToChildren(state.children, { ...triggerProps,
161
162
  ref: useMergedRefs(typeof state.children !== 'function' && state.children.ref || null, triggerRef)
162
163
  });