@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
package/CHANGELOG.json CHANGED
@@ -2,88 +2,132 @@
2
2
  "name": "@fluentui/react-menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 07 Dec 2021 04:14:34 GMT",
6
- "tag": "@fluentui/react-menu_v0.0.0-nightlyebf02572f720211207.1",
7
- "version": "0.0.0-nightlyebf02572f720211207.1",
5
+ "date": "Thu, 06 Jan 2022 04:30:09 GMT",
6
+ "tag": "@fluentui/react-menu_v0.0.0-nightlyf8be6a7c6520220106.1",
7
+ "version": "0.0.0-nightlyf8be6a7c6520220106.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-menu",
13
- "commit": "2523b8c9da23ec860780244563814b63ba963043",
13
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-menu",
19
+ "commit": "c2e6c50d56dcb45b4ca9e3a9daf2fae4be10a19e",
20
+ "comment": "fix: set `aria-expanded` and `aria-haspopup` values correctly"
21
+ },
22
+ {
23
+ "author": "lingfangao@hotmail.com",
24
+ "package": "@fluentui/react-menu",
25
+ "commit": "6ca0355f6740f836ff4df009687718a380085247",
26
+ "comment": "fix: Focus on first menu item on click"
27
+ },
16
28
  {
17
29
  "author": "olfedias@microsoft.com",
18
30
  "package": "@fluentui/react-menu",
19
31
  "commit": "7e0933ed386742df28c416e6b3a6903a0c041f28",
20
32
  "comment": "update styles to not use CSS shorthands"
21
33
  },
34
+ {
35
+ "author": "lingfangao@hotmail.com",
36
+ "package": "@fluentui/react-menu",
37
+ "commit": "4121754498bba5137f769295e2b7a2899f557278",
38
+ "comment": "fix: Call `useCheckmarkStyles` in `useMenuItemStyles`"
39
+ },
40
+ {
41
+ "author": "lingfangao@hotmail.com",
42
+ "package": "@fluentui/react-menu",
43
+ "commit": "95a6a32cbffa9d86d6017cf8e0204d4b459ef370",
44
+ "comment": "feat: implement `MenuSplitGroup` component for split menu items"
45
+ },
46
+ {
47
+ "author": "ololubek@microsoft.com",
48
+ "package": "@fluentui/react-menu",
49
+ "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
50
+ "comment": "(fix): Update react-icons dependency to latest version"
51
+ },
52
+ {
53
+ "author": "lingfangao@hotmail.com",
54
+ "package": "@fluentui/react-menu",
55
+ "commit": "07d9ed6d1b436b7ca9571c94fbb0bcbdb080f235",
56
+ "comment": "breaking: MenuTrigger must be the first child of the `Menu`"
57
+ },
22
58
  {
23
59
  "author": "beachball",
24
60
  "package": "@fluentui/react-menu",
25
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyebf02572f720211207.1",
26
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
61
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyf8be6a7c6520220106.1",
62
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
27
63
  },
28
64
  {
29
65
  "author": "beachball",
30
66
  "package": "@fluentui/react-menu",
31
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyebf02572f720211207.1",
32
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
67
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyf8be6a7c6520220106.1",
68
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
33
69
  },
34
70
  {
35
71
  "author": "beachball",
36
72
  "package": "@fluentui/react-menu",
37
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyebf02572f720211207.1",
38
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
73
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1",
74
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
39
75
  },
40
76
  {
41
77
  "author": "beachball",
42
78
  "package": "@fluentui/react-menu",
43
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyebf02572f720211207.1",
44
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
79
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyf8be6a7c6520220106.1",
80
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
45
81
  },
46
82
  {
47
83
  "author": "beachball",
48
84
  "package": "@fluentui/react-menu",
49
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyebf02572f720211207.1",
50
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
85
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyf8be6a7c6520220106.1",
86
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
51
87
  },
52
88
  {
53
89
  "author": "beachball",
54
90
  "package": "@fluentui/react-menu",
55
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyebf02572f720211207.1",
56
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
91
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf8be6a7c6520220106.1",
92
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
57
93
  },
58
94
  {
59
95
  "author": "beachball",
60
96
  "package": "@fluentui/react-menu",
61
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyebf02572f720211207.1",
62
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
97
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyf8be6a7c6520220106.1",
98
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
63
99
  },
64
100
  {
65
101
  "author": "beachball",
66
102
  "package": "@fluentui/react-menu",
67
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyebf02572f720211207.1",
68
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
103
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf8be6a7c6520220106.1",
104
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
69
105
  },
70
106
  {
71
107
  "author": "beachball",
72
108
  "package": "@fluentui/react-menu",
73
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyebf02572f720211207.1",
74
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
109
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1",
110
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
75
111
  },
76
112
  {
77
113
  "author": "beachball",
78
114
  "package": "@fluentui/react-menu",
79
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyebf02572f720211207.1",
80
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
115
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1",
116
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
81
117
  },
82
118
  {
83
119
  "author": "beachball",
84
120
  "package": "@fluentui/react-menu",
85
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyebf02572f720211207.1",
86
- "commit": "2523b8c9da23ec860780244563814b63ba963043"
121
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1",
122
+ "commit": "9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8"
123
+ }
124
+ ],
125
+ "none": [
126
+ {
127
+ "author": "elcraig@microsoft.com",
128
+ "package": "@fluentui/react-menu",
129
+ "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
130
+ "comment": "Update API file to version generated by typescript 4.3"
87
131
  }
88
132
  ]
89
133
  }
package/CHANGELOG.md CHANGED
@@ -1,29 +1,35 @@
1
1
  # Change Log - @fluentui/react-menu
2
2
 
3
- This log was last generated on Tue, 07 Dec 2021 04:14:34 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 06 Jan 2022 04:30:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyebf02572f720211207.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyebf02572f720211207.1)
7
+ ## [0.0.0-nightlyf8be6a7c6520220106.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyf8be6a7c6520220106.1)
8
8
 
9
- Tue, 07 Dec 2021 04:14:34 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightlyebf02572f720211207.1)
9
+ Thu, 06 Jan 2022 04:30:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightlyf8be6a7c6520220106.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by email not defined)
15
+ - fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
16
+ - fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
15
17
  - update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
16
- - Bump @fluentui/keyboard-keys to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
17
- - Bump @fluentui/react-context-selector to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
18
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
19
- - Bump @fluentui/react-portal to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
20
- - Bump @fluentui/react-positioning to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
21
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
22
- - Bump @fluentui/react-tabster to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
23
- - Bump @fluentui/react-utilities to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
24
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
25
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
26
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyebf02572f720211207.1 ([commit](https://github.com/microsoft/fluentui/commit/2523b8c9da23ec860780244563814b63ba963043) by beachball)
18
+ - fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
19
+ - feat: implement `MenuSplitGroup` component for split menu items ([PR #21095](https://github.com/microsoft/fluentui/pull/21095) by lingfangao@hotmail.com)
20
+ - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
21
+ - breaking: MenuTrigger must be the first child of the `Menu` ([PR #21096](https://github.com/microsoft/fluentui/pull/21096) by lingfangao@hotmail.com)
22
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
23
+ - Bump @fluentui/react-context-selector to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
24
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
25
+ - Bump @fluentui/react-portal to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
26
+ - Bump @fluentui/react-positioning to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
27
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
28
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
29
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
30
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
31
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
32
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf8be6a7c6520220106.1 ([commit](https://github.com/microsoft/fluentui/commit/9b6d690fccd3a42a9ce2fed55d90f3eeb80edaa8) by beachball)
27
33
 
28
34
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
29
35
 
package/Spec.md CHANGED
@@ -619,7 +619,7 @@ const menu = (
619
619
 
620
620
  ```html
621
621
  <!-- expected DOM output -->
622
- <button aria-haspopup="true" aria-expanded="true" id="trigger">Open menu</button>
622
+ <button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
623
623
  <div role="menu" aria-labelledby="trigger">
624
624
  <div role="menuitem" tabindex="0">Option 1</div>
625
625
  <div role="menuitem" tabindex="-1">Option 2</div>
@@ -644,7 +644,7 @@ const menu = (
644
644
 
645
645
  ```html
646
646
  <!-- expected DOM output -->
647
- <button aria-haspopup="true" aria-expanded="true" id="trigger">Open menu</button>
647
+ <button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
648
648
  <div role="menu" aria-labelledby="trigger">
649
649
  <div role="menuitem" tabindex="0">
650
650
  <span role="presentation"><svg>FileIcon</svg></span>
@@ -682,7 +682,7 @@ const menu = (
682
682
 
683
683
  ```html
684
684
  <!-- expected DOM output -->
685
- <button aria-haspopup="true" aria-expanded="true" id="trigger">Open menu</button>
685
+ <button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
686
686
  <div role="menu" aria-labelledby="trigger">
687
687
  <div role="menuitem" tabindex="0">Option 1</div>
688
688
  <div role="separator" aria-hidden="true"></div>
@@ -719,7 +719,7 @@ const menu = (
719
719
 
720
720
  ```html
721
721
  <!-- expected DOM output -->
722
- <button aria-haspopup="true" aria-expanded="true" id="trigger">Open menu</button>
722
+ <button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
723
723
  <div role="menu" aria-labelledby="trigger">
724
724
  <div role="menuitem" tabindex="0">Option 1</div>
725
725
  <div role="separator" aria-hidden="true"></div>
@@ -758,10 +758,10 @@ const menu = (
758
758
 
759
759
  ```html
760
760
  <!-- expected DOM output -->
761
- <button aria-haspopup="true" aria-expanded="true" id="trigger">Open menu</button>
761
+ <button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
762
762
  <div role="menu" aria-labelledby="trigger">
763
763
  <div role="menuitem" tabindex="0">Option 1</div>
764
- <div role="menuitem" tabindex="-1" aria-haspopup="true" aria-expanded="false" id="submenu-trigger">Open submenu</div>
764
+ <div role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" id="submenu-trigger">Open submenu</div>
765
765
  </div>
766
766
 
767
767
  <!-- expected DOM output for submenu -->
@@ -843,7 +843,7 @@ const menuSelectableSections = (
843
843
  ```
844
844
 
845
845
  ```html
846
- <button aria-haspopup="true" aria-expanded="true" id="trigger">Open menu</button>
846
+ <button aria-haspopup="menu" aria-expanded="true" id="trigger">Open menu</button>
847
847
 
848
848
  <!-- expected DOM output for basic checkbox -->
849
849
  <div role="menu" aria-labelledby="trigger">
@@ -882,9 +882,12 @@ const menuSplitbutton= (
882
882
  <MenuList>
883
883
  <MenuItem>Option 1</MenuItem>
884
884
  <Menu>
885
- <MenuTrigger>
886
- <MenuItemSplit></MenuItemSplit>
887
- </MenuTrigger>
885
+ <MenuSplitGroup>
886
+ <MenuItem>Main action</MenuItem>
887
+ <MenuTrigger>
888
+ <MenuItem />
889
+ </MenuTrigger>
890
+ </MenuSplitGroup>
888
891
  <MenuItem>Option 1</MenuItem>
889
892
  <MenuItem>Option 2</MenuItem>
890
893
  <MenuItem>Option 3</MenuItem>
@@ -897,7 +900,7 @@ const menuSplitbutton= (
897
900
  ```html
898
901
  <div role="menu" aria-labelledby="trigger">
899
902
  <div role="menuitem" tabindex="0">Option 1</div>
900
- <div role="menuitem" tabindex="-1" aria-haspopup="true" aria-expanded="false" id="submenu-trigger">Open submenu</div>
903
+ <div role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" id="submenu-trigger">Open submenu</div>
901
904
  </div>
902
905
 
903
906
  <!-- expected DOM output -->
@@ -905,7 +908,7 @@ const menuSplitbutton= (
905
908
  <div role="menuitem" tabindex="0">Option 1</div>
906
909
  <div role="group">
907
910
  <div role="menuitem" tabindex="-1">content slot</div>
908
- <div role="menuitem" tabindex="-1" aria-haspopup="true" aria-expanded="false" id="submenu-trgger">
911
+ <div role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" id="submenu-trgger">
909
912
  <svg>indicator icon</svg>
910
913
  </div>
911
914
  </div>
@@ -958,11 +961,13 @@ Below is a set of diagrams that tries to illustrates all the interactions menus
958
961
 
959
962
  All of the above Mouse events seen previously should apply to the part of the split button that is intended to open a submenu.
960
963
 
961
- Once the submenu is open, the same behavior as in the [previous section](#submenu-trigger/navigation) applies with the exception of returning focus to the splitbutton, which is shown in the images below.
962
-
963
- ![Using up/down arrow key](./etc/images/splitbutton-up-down.jpg)
964
+ > TODO convert these diagrams to excalidraw or smth that is text format
965
+ > TODO add extra descriptions to diagrams
964
966
 
965
- ![Using left/right arrow key](./etc/images/splitbutton-left-right.jpg)
967
+ <img src="./etc/images/menu-interactions/Slide19.PNG" width="700" />
968
+ <img src="./etc/images/menu-interactions/Slide20.PNG" width="700" />
969
+ <img src="./etc/images/menu-interactions/Slide21.PNG" width="700" />
970
+ <img src="./etc/images/menu-interactions/Slide22.PNG" width="700" />
966
971
 
967
972
  ### MenuItem selection
968
973
 
@@ -238,7 +238,7 @@ export declare type MenuItemSlots = {
238
238
  * Component children are placed in this slot
239
239
  * Avoid using the `children` property in this slot in favour of Component children whenever possible
240
240
  */
241
- content: IntrinsicShorthandProps<'span'>;
241
+ content?: IntrinsicShorthandProps<'span'>;
242
242
  /**
243
243
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
244
244
  */
@@ -386,6 +386,34 @@ export declare const MenuProvider: React_2.Provider<MenuContextValue> & React_2.
386
386
 
387
387
  export declare type MenuSlots = {};
388
388
 
389
+ /**
390
+ * Layout wrapper that provides extra keyboard navigation behavior for two `MenuItem` components.
391
+ */
392
+ export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
393
+
394
+ export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
395
+
396
+ export declare type MenuSplitGroupCommons = {};
397
+
398
+ /**
399
+ * MenuSplitGroup Props
400
+ */
401
+ export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
402
+
403
+ /**
404
+ * Array of all shorthand properties listed in MenuSplitGroupSlots
405
+ */
406
+ export declare const menuSplitGroupShorthandProps: (keyof MenuSplitGroupSlots)[];
407
+
408
+ export declare type MenuSplitGroupSlots = {
409
+ root: IntrinsicShorthandProps<'div'>;
410
+ };
411
+
412
+ /**
413
+ * State used in rendering MenuSplitGroup
414
+ */
415
+ export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
416
+
389
417
  export declare type MenuState = MenuCommons & ComponentState<MenuSlots> & {
390
418
  /**
391
419
  * Callback to open/close the popup
@@ -434,8 +462,9 @@ export declare const MenuTrigger: React_2.FC<MenuTriggerProps>;
434
462
  /**
435
463
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
436
464
  */
437
- export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'>> & {
465
+ export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
438
466
  ref?: React_2.Ref<never>;
467
+ 'aria-expanded': boolean | undefined;
439
468
  };
440
469
 
441
470
  export declare const MenuTriggerContextProvider: React_2.Provider<boolean>;
@@ -498,6 +527,11 @@ export declare const renderMenuList: (state: MenuListState, contextValues: MenuL
498
527
  */
499
528
  export declare const renderMenuPopover: (state: MenuPopoverState) => JSX.Element;
500
529
 
530
+ /**
531
+ * Render the final JSX of MenuSplitGroup
532
+ */
533
+ export declare const renderMenuSplitGroup: (state: MenuSplitGroupState) => JSX.Element;
534
+
501
535
  /**
502
536
  * Render the final JSX of MenuTrigger
503
537
  *
@@ -535,7 +569,7 @@ export declare function useMenuContextValues(state: MenuState): MenuContextValue
535
569
  */
536
570
  export declare const useMenuDivider: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
537
571
 
538
- export declare const useMenuDividerStyles: (state: MenuDividerState) => ComponentState<MenuDividerSlots>;
572
+ export declare const useMenuDividerStyles: (state: MenuDividerState) => MenuDividerState;
539
573
 
540
574
  /**
541
575
  * Given user props, returns state and render function for a MenuGroup.
@@ -551,7 +585,7 @@ export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGr
551
585
  */
552
586
  export declare function useMenuGroupHeader(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
553
587
 
554
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => ComponentState<MenuGroupHeaderSlots>;
588
+ export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
555
589
 
556
590
  export declare const useMenuGroupStyles: (state: MenuGroupState) => MenuGroupState;
557
591
 
@@ -605,6 +639,22 @@ export declare const useMenuPopover: (props: MenuPopoverProps, ref: React_2.Ref<
605
639
  */
606
640
  export declare const useMenuPopoverStyles: (state: MenuPopoverState) => MenuPopoverState;
607
641
 
642
+ /**
643
+ * Create the state required to render MenuSplitGroup.
644
+ *
645
+ * The returned state can be modified with hooks such as useMenuSplitGroupStyles,
646
+ * before being passed to renderMenuSplitGroup.
647
+ *
648
+ * @param props - props from this instance of MenuSplitGroup
649
+ * @param ref - reference to root HTMLElement of MenuSplitGroup
650
+ */
651
+ export declare const useMenuSplitGroup: (props: MenuSplitGroupProps, ref: React_2.Ref<HTMLElement>) => MenuSplitGroupState;
652
+
653
+ /**
654
+ * Apply styling to the MenuSplitGroup slots based on the state
655
+ */
656
+ export declare const useMenuSplitGroupStyles: (state: MenuSplitGroupState) => MenuSplitGroupState;
657
+
608
658
  /**
609
659
  * Create the state required to render MenuTrigger.
610
660
  * Clones the only child component and adds necessary event handling behaviours to open a popup menu
@@ -0,0 +1 @@
1
+ export * from './components/MenuSplitGroup/index';
@@ -0,0 +1,2 @@
1
+ export * from './components/MenuSplitGroup/index';
2
+ //# sourceMappingURL=MenuSplitGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSplitGroup.js","sourceRoot":"","sources":["../src/MenuSplitGroup.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -4,7 +4,6 @@ import { useControllableState, useId, useOnClickOutside, useEventCallback } from
4
4
  import { useFluent } from '@fluentui/react-shared-contexts';
5
5
  import { elementContains } from '@fluentui/react-portal';
6
6
  import { useFocusFinders } from '@fluentui/react-tabster';
7
- import { MenuTrigger } from '../MenuTrigger/index';
8
7
  import { useMenuContext } from '../../contexts/menuContext';
9
8
  import { MENU_ENTER_EVENT, useOnMenuMouseEnter } from '../../utils/index';
10
9
  import { useIsSubmenu } from '../../utils/useIsSubmenu';
@@ -29,23 +28,28 @@ export const useMenu = props => {
29
28
  };
30
29
  const children = React.Children.toArray(props.children);
31
30
 
32
- if (children.length !== 2 && process.env.NODE_ENV !== 'production') {
33
- // eslint-disable-next-line no-console
34
- console.warn('Menu can only take one MenuTrigger and one MenuList as children');
35
- }
31
+ if (process.env.NODE_ENV !== 'production') {
32
+ if (children.length === 0) {
33
+ // eslint-disable-next-line no-console
34
+ console.warn('Menu must contain at least one child');
35
+ }
36
36
 
37
- const {
38
- menuTrigger,
39
- menuPopover
40
- } = children.reduce((acc, child) => {
41
- if (child.type === MenuTrigger) {
42
- acc.menuTrigger = child;
43
- } else {
44
- acc.menuPopover = child;
37
+ if (children.length > 2) {
38
+ // eslint-disable-next-line no-console
39
+ console.warn('Menu must contain at most two children');
45
40
  }
41
+ }
42
+
43
+ let menuTrigger = undefined;
44
+ let menuPopover = undefined;
45
+
46
+ if (children.length === 2) {
47
+ menuTrigger = children[0];
48
+ menuPopover = children[1];
49
+ } else if (children.length === 1) {
50
+ menuPopover = children[0];
51
+ }
46
52
 
47
- return acc;
48
- }, {});
49
53
  const {
50
54
  targetRef: triggerRef,
51
55
  containerRef: menuPopoverRef
@@ -227,15 +231,18 @@ const useMenuOpenState = state => {
227
231
  prevFocusable === null || prevFocusable === void 0 ? void 0 : prevFocusable.focus();
228
232
  }, [findPrevFocusable, state.triggerRef]);
229
233
  React.useEffect(() => {
230
- var _a;
231
-
232
- if (!shouldHandleKeyboardRef.current) {
233
- return;
234
+ if (open) {
235
+ focusFirst();
234
236
  }
237
+ }, [open, focusFirst]);
238
+ React.useEffect(() => {
239
+ var _a;
235
240
 
236
241
  if (open) {
237
242
  focusFirst();
238
- } else {
243
+ }
244
+
245
+ if (shouldHandleKeyboardRef.current && !open) {
239
246
  if (shouldHandleTabRef.current && !state.isSubmenu) {
240
247
  pressedShiftRef.current ? focusBeforeMenuTrigger() : focusAf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AE,KAAF,EAAxB;AACD;AACF;;AAED,IAAA,uBAAuB,CAAC,OAAxB,GAAkC,KAAlC;AACA,IAAA,kBAAkB,CAAC,OAAnB,GAA6B,KAA7B;AACA,IAAA,eAAe,CAAC,OAAhB,GAA0B,KAA1B;AACD,GAhBD,EAgBG,CAAC,KAAK,CAAC,UAAP,EAAmB,KAAK,CAAC,SAAzB,EAAoC,IAApC,EAA0C,UAA1C,EAAsD,qBAAtD,EAA6E,sBAA7E,CAhBH;AAkBA,SAAO,CAAC,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAA,IAAA,GAAQ,KAAT,EAAgB,OAAhB,CAAP;AACD,CAvID","sourceRoot":""}
@@ -10,6 +10,7 @@ export const renderMenuDivider = state => {
10
10
  slots,
11
11
  slotProps
12
12
  } = getSlots(state);
13
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
13
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ });
14
15
  };
15
16
  //# sourceMappingURL=renderMenuDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/renderMenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import type { MenuDividerState } from './MenuDivider.types';
2
2
  export declare const menuDividerClassName = "fui-MenuDivider";
3
- export declare const useMenuDividerStyles: (state: MenuDividerState) => import("@fluentui/react-utilities").ComponentState<import("./MenuDivider.types").MenuDividerSlots>;
3
+ export declare const useMenuDividerStyles: (state: MenuDividerState) => MenuDividerState;
@@ -13,6 +13,7 @@ export const renderMenuGroup = (state, contextValues) => {
13
13
  } = getSlots(state);
14
14
  return /*#__PURE__*/React.createElement(MenuGroupContextProvider, {
15
15
  value: contextValues.menuGroup
16
- }, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root)));
16
+ }, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
17
+ }));
17
18
  };
18
19
  //# sourceMappingURL=renderMenuGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroup/renderMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,wBAAT,QAAyC,iCAAzC;AAEA;;;AAGG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AAC9F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,wBAAD,EAAyB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAzB,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/MenuGroup/renderMenuGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,wBAAT,QAAyC,iCAAzC;AAEA;;;AAGG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AAC9F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,wBAAD,EAAyB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAzB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,CADF;AAKD,CARM","sourceRoot":""}
@@ -10,6 +10,7 @@ export const renderMenuGroupHeader = state => {
10
10
  slots,
11
11
  slotProps
12
12
  } = getSlots(state);
13
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root));
13
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ });
14
15
  };
15
16
  //# sourceMappingURL=renderMenuGroupHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuGroupHeader/renderMenuGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAgC;AACnE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAuB,KAAvB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuGroupHeader/renderMenuGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;;AAGG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAgC;AACnE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAuB,KAAvB,CAArC;AAEA,sBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAAP;AACD,CAJM","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import type { MenuGroupHeaderState } from './MenuGroupHeader.types';
2
2
  export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
3
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => import("@fluentui/react-utilities").ComponentState<import("./MenuGroupHeader.types").MenuGroupHeaderSlots>;
3
+ export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => MenuGroupHeaderState;