@fluentui/react-menu 0.0.0-nightlyed2d7c8d6320211111.1 → 0.0.0-nightlyf1be0a972820211214.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/CHANGELOG.json +226 -30
  2. package/CHANGELOG.md +58 -16
  3. package/dist/react-menu.d.ts +4 -3
  4. package/lib/components/Menu/useMenu.js +8 -5
  5. package/lib/components/Menu/useMenu.js.map +1 -1
  6. package/lib/components/MenuDivider/renderMenuDivider.js +2 -1
  7. package/lib/components/MenuDivider/renderMenuDivider.js.map +1 -1
  8. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  9. package/lib/components/MenuDivider/useMenuDividerStyles.js +1 -1
  10. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  11. package/lib/components/MenuGroup/renderMenuGroup.js +2 -1
  12. package/lib/components/MenuGroup/renderMenuGroup.js.map +1 -1
  13. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -1
  14. package/lib/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  15. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  16. package/lib/components/MenuItem/MenuItem.js +0 -2
  17. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  18. package/lib/components/MenuItem/renderMenuItem.js +7 -1
  19. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  20. package/lib/components/MenuItem/useMenuItemStyles.js +11 -4
  21. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  22. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -1
  23. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  24. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +6 -1
  25. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  26. package/lib/components/MenuList/renderMenuList.js +2 -1
  27. package/lib/components/MenuList/renderMenuList.js.map +1 -1
  28. package/lib/components/MenuList/useMenuList.js.map +1 -1
  29. package/lib/components/MenuList/useMenuListStyles.js +4 -3
  30. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  31. package/lib/components/MenuPopover/renderMenuPopover.js +4 -2
  32. package/lib/components/MenuPopover/renderMenuPopover.js.map +1 -1
  33. package/lib/components/MenuPopover/useMenuPopover.js.map +1 -1
  34. package/lib/components/MenuPopover/useMenuPopoverStyles.js +7 -4
  35. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  36. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +2 -1
  37. package/lib/components/MenuTrigger/useTriggerElement.js +6 -5
  38. package/lib/components/MenuTrigger/useTriggerElement.js.map +1 -1
  39. package/lib/utils/useOnMenuEnter.js.map +1 -1
  40. package/lib-commonjs/components/Menu/useMenu.js +8 -5
  41. package/lib-commonjs/components/Menu/useMenu.js.map +1 -1
  42. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js +2 -1
  43. package/lib-commonjs/components/MenuDivider/renderMenuDivider.js.map +1 -1
  44. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +1 -1
  45. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js +2 -1
  46. package/lib-commonjs/components/MenuGroup/renderMenuGroup.js.map +1 -1
  47. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js +2 -1
  48. package/lib-commonjs/components/MenuGroupHeader/renderMenuGroupHeader.js.map +1 -1
  49. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +1 -1
  50. package/lib-commonjs/components/MenuItem/MenuItem.js +0 -3
  51. package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
  52. package/lib-commonjs/components/MenuItem/renderMenuItem.js +7 -1
  53. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  54. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +11 -3
  55. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  56. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +6 -1
  57. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  58. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +6 -1
  59. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  60. package/lib-commonjs/components/MenuList/renderMenuList.js +2 -1
  61. package/lib-commonjs/components/MenuList/renderMenuList.js.map +1 -1
  62. package/lib-commonjs/components/MenuList/useMenuList.js.map +1 -1
  63. package/lib-commonjs/components/MenuList/useMenuListStyles.js +3 -2
  64. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  65. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js +4 -2
  66. package/lib-commonjs/components/MenuPopover/renderMenuPopover.js.map +1 -1
  67. package/lib-commonjs/components/MenuPopover/useMenuPopover.js.map +1 -1
  68. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +6 -3
  69. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  70. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +2 -1
  71. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js +6 -5
  72. package/lib-commonjs/components/MenuTrigger/useTriggerElement.js.map +1 -1
  73. package/lib-commonjs/utils/useOnMenuEnter.js.map +1 -1
  74. package/package.json +16 -16
  75. package/lib/common/isConformant.d.ts +0 -4
  76. package/lib/common/isConformant.js +0 -12
  77. package/lib/common/isConformant.js.map +0 -1
  78. package/lib/common/mockUseMenuContext.d.ts +0 -7
  79. package/lib/common/mockUseMenuContext.js +0 -29
  80. package/lib/common/mockUseMenuContext.js.map +0 -1
  81. package/lib-commonjs/common/isConformant.d.ts +0 -4
  82. package/lib-commonjs/common/isConformant.js +0 -23
  83. package/lib-commonjs/common/isConformant.js.map +0 -1
  84. package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
  85. package/lib-commonjs/common/mockUseMenuContext.js +0 -39
  86. package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,17 +2,213 @@
2
2
  "name": "@fluentui/react-menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 11 Nov 2021 13:12:41 GMT",
6
- "tag": "@fluentui/react-menu_v0.0.0-nightlyed2d7c8d6320211111.1",
7
- "version": "0.0.0-nightlyed2d7c8d6320211111.1",
5
+ "date": "Tue, 14 Dec 2021 04:16:17 GMT",
6
+ "tag": "@fluentui/react-menu_v0.0.0-nightlyf1be0a972820211214.1",
7
+ "version": "0.0.0-nightlyf1be0a972820211214.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-menu",
13
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9",
13
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-menu",
19
+ "commit": "6ca0355f6740f836ff4df009687718a380085247",
20
+ "comment": "fix: Focus on first menu item on click"
21
+ },
22
+ {
23
+ "author": "olfedias@microsoft.com",
24
+ "package": "@fluentui/react-menu",
25
+ "commit": "7e0933ed386742df28c416e6b3a6903a0c041f28",
26
+ "comment": "update styles to not use CSS shorthands"
27
+ },
28
+ {
29
+ "author": "lingfangao@hotmail.com",
30
+ "package": "@fluentui/react-menu",
31
+ "commit": "4121754498bba5137f769295e2b7a2899f557278",
32
+ "comment": "fix: Call `useCheckmarkStyles` in `useMenuItemStyles`"
33
+ },
34
+ {
35
+ "author": "ololubek@microsoft.com",
36
+ "package": "@fluentui/react-menu",
37
+ "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
38
+ "comment": "(fix): Update react-icons dependency to latest version"
39
+ },
40
+ {
41
+ "author": "lingfangao@hotmail.com",
42
+ "package": "@fluentui/react-menu",
43
+ "commit": "c2e6c50d56dcb45b4ca9e3a9daf2fae4be10a19e",
44
+ "comment": "fix: set `aria-expanded` and `aria-haspopup` values correctly"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-menu",
49
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyf1be0a972820211214.1",
50
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-menu",
55
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyf1be0a972820211214.1",
56
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-menu",
61
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
62
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-menu",
67
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyf1be0a972820211214.1",
68
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-menu",
73
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyf1be0a972820211214.1",
74
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-menu",
79
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf1be0a972820211214.1",
80
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@fluentui/react-menu",
85
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyf1be0a972820211214.1",
86
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@fluentui/react-menu",
91
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1",
92
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@fluentui/react-menu",
97
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
98
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@fluentui/react-menu",
103
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
104
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@fluentui/react-menu",
109
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
110
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
111
+ }
112
+ ],
113
+ "none": [
114
+ {
115
+ "author": "elcraig@microsoft.com",
116
+ "package": "@fluentui/react-menu",
117
+ "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
118
+ "comment": "Update API file to version generated by typescript 4.3"
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "date": "Thu, 25 Nov 2021 08:34:14 GMT",
125
+ "tag": "@fluentui/react-menu_v9.0.0-beta.5",
126
+ "version": "9.0.0-beta.5",
127
+ "comments": {
128
+ "none": [
129
+ {
130
+ "author": "lingfangao@hotmail.com",
131
+ "package": "@fluentui/react-menu",
132
+ "commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
133
+ "comment": "Migrate package to use solution tsconfigs"
134
+ }
135
+ ],
136
+ "prerelease": [
137
+ {
138
+ "author": "ololubek@microsoft.com",
139
+ "package": "@fluentui/react-menu",
140
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
141
+ "comment": "update react-icons dependency"
142
+ },
143
+ {
144
+ "author": "beachball",
145
+ "package": "@fluentui/react-menu",
146
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
147
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
148
+ },
149
+ {
150
+ "author": "beachball",
151
+ "package": "@fluentui/react-menu",
152
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
153
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
154
+ },
155
+ {
156
+ "author": "beachball",
157
+ "package": "@fluentui/react-menu",
158
+ "comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
159
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
160
+ },
161
+ {
162
+ "author": "beachball",
163
+ "package": "@fluentui/react-menu",
164
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
165
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
166
+ },
167
+ {
168
+ "author": "beachball",
169
+ "package": "@fluentui/react-menu",
170
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
171
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
172
+ },
173
+ {
174
+ "author": "beachball",
175
+ "package": "@fluentui/react-menu",
176
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
177
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
178
+ },
179
+ {
180
+ "author": "beachball",
181
+ "package": "@fluentui/react-menu",
182
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
183
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
184
+ },
185
+ {
186
+ "author": "beachball",
187
+ "package": "@fluentui/react-menu",
188
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
189
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
190
+ },
191
+ {
192
+ "author": "beachball",
193
+ "package": "@fluentui/react-menu",
194
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
195
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
196
+ },
197
+ {
198
+ "author": "beachball",
199
+ "package": "@fluentui/react-menu",
200
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
201
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ {
207
+ "date": "Fri, 12 Nov 2021 13:25:27 GMT",
208
+ "tag": "@fluentui/react-menu_v9.0.0-beta.4",
209
+ "version": "9.0.0-beta.4",
210
+ "comments": {
211
+ "prerelease": [
16
212
  {
17
213
  "author": "bsunderhus@microsoft.com",
18
214
  "package": "@fluentui/react-menu",
@@ -40,71 +236,71 @@
40
236
  {
41
237
  "author": "beachball",
42
238
  "package": "@fluentui/react-menu",
43
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyed2d7c8d6320211111.1",
44
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
239
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.3",
240
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
45
241
  },
46
242
  {
47
243
  "author": "beachball",
48
244
  "package": "@fluentui/react-menu",
49
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyed2d7c8d6320211111.1",
50
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
245
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
246
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
51
247
  },
52
248
  {
53
249
  "author": "beachball",
54
250
  "package": "@fluentui/react-menu",
55
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
56
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
251
+ "comment": "Bump @fluentui/react-portal to v9.0.0-beta.4",
252
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
57
253
  },
58
254
  {
59
255
  "author": "beachball",
60
256
  "package": "@fluentui/react-menu",
61
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyed2d7c8d6320211111.1",
62
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
257
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-beta.3",
258
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
63
259
  },
64
260
  {
65
261
  "author": "beachball",
66
262
  "package": "@fluentui/react-menu",
67
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyed2d7c8d6320211111.1",
68
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
263
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
264
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
69
265
  },
70
266
  {
71
267
  "author": "beachball",
72
268
  "package": "@fluentui/react-menu",
73
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyed2d7c8d6320211111.1",
74
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
269
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
270
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
75
271
  },
76
272
  {
77
273
  "author": "beachball",
78
274
  "package": "@fluentui/react-menu",
79
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyed2d7c8d6320211111.1",
80
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
275
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
276
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
81
277
  },
82
278
  {
83
279
  "author": "beachball",
84
280
  "package": "@fluentui/react-menu",
85
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyed2d7c8d6320211111.1",
86
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
281
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
282
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
87
283
  },
88
284
  {
89
285
  "author": "beachball",
90
286
  "package": "@fluentui/react-menu",
91
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
92
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
287
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
288
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
93
289
  },
94
290
  {
95
291
  "author": "beachball",
96
292
  "package": "@fluentui/react-menu",
97
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
98
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
99
- },
100
- {
101
- "author": "beachball",
102
- "package": "@fluentui/react-menu",
103
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
104
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
293
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
294
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
105
295
  }
106
296
  ],
107
297
  "none": [
298
+ {
299
+ "author": "lingfangao@hotmail.com",
300
+ "package": "@fluentui/react-menu",
301
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
302
+ "comment": "Remove beta release tag"
303
+ },
108
304
  {
109
305
  "author": "mgodbolt@microsoft.com",
110
306
  "package": "@fluentui/react-menu",
package/CHANGELOG.md CHANGED
@@ -1,32 +1,74 @@
1
1
  # Change Log - @fluentui/react-menu
2
2
 
3
- This log was last generated on Thu, 11 Nov 2021 13:12:41 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 14 Dec 2021 04:16:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyed2d7c8d6320211111.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyed2d7c8d6320211111.1)
7
+ ## [0.0.0-nightlyf1be0a972820211214.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyf1be0a972820211214.1)
8
8
 
9
- Thu, 11 Nov 2021 13:12:41 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.3..@fluentui/react-menu_v0.0.0-nightlyed2d7c8d6320211111.1)
9
+ Tue, 14 Dec 2021 04:16:17 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightlyf1be0a972820211214.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by email not defined)
15
+ - fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
16
+ - update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
17
+ - fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
18
+ - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
19
+ - fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
20
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
21
+ - Bump @fluentui/react-context-selector to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
22
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
23
+ - Bump @fluentui/react-portal to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
24
+ - Bump @fluentui/react-positioning to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
25
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
26
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
27
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
28
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
29
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
30
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
31
+
32
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
33
+
34
+ Thu, 25 Nov 2021 08:34:14 GMT
35
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.4..@fluentui/react-menu_v9.0.0-beta.5)
36
+
37
+ ### Changes
38
+
39
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
40
+ - Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
41
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
42
+ - Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
43
+ - Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
44
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
45
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
46
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
47
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
48
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
49
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
50
+
51
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.4)
52
+
53
+ Fri, 12 Nov 2021 13:25:27 GMT
54
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.3..@fluentui/react-menu_v9.0.0-beta.4)
11
55
 
12
56
  ### Changes
13
57
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by email not defined)
15
58
  - Adds typings for `onCheckedValueChange` method ([PR #20493](https://github.com/microsoft/fluentui/pull/20493) by bsunderhus@microsoft.com)
16
59
  - use react-shared-contexts instead of react-provider ([PR #20578](https://github.com/microsoft/fluentui/pull/20578) by olfedias@microsoft.com)
17
60
  - export static classes for components ([PR #20450](https://github.com/microsoft/fluentui/pull/20450) by olfedias@microsoft.com)
18
61
  - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
19
- - Bump @fluentui/keyboard-keys to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
20
- - Bump @fluentui/react-context-selector to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
21
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
22
- - Bump @fluentui/react-portal to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
23
- - Bump @fluentui/react-positioning to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
24
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
25
- - Bump @fluentui/react-tabster to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
26
- - Bump @fluentui/react-utilities to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
27
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
28
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
29
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
62
+ - Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
63
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
64
+ - Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
65
+ - Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
66
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
67
+ - Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
68
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
69
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
70
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
71
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
30
72
 
31
73
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.3)
32
74
 
@@ -434,8 +434,9 @@ export declare const MenuTrigger: React_2.FC<MenuTriggerProps>;
434
434
  /**
435
435
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
436
436
  */
437
- export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'>> & {
437
+ export declare type MenuTriggerChildProps = Required<Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'id'>> & {
438
438
  ref?: React_2.Ref<never>;
439
+ 'aria-expanded': boolean | undefined;
439
440
  };
440
441
 
441
442
  export declare const MenuTriggerContextProvider: React_2.Provider<boolean>;
@@ -535,7 +536,7 @@ export declare function useMenuContextValues(state: MenuState): MenuContextValue
535
536
  */
536
537
  export declare const useMenuDivider: (props: MenuDividerProps, ref: React_2.Ref<HTMLElement>) => MenuDividerState;
537
538
 
538
- export declare const useMenuDividerStyles: (state: MenuDividerState) => ComponentState<MenuDividerSlots>;
539
+ export declare const useMenuDividerStyles: (state: MenuDividerState) => MenuDividerState;
539
540
 
540
541
  /**
541
542
  * Given user props, returns state and render function for a MenuGroup.
@@ -551,7 +552,7 @@ export declare function useMenuGroupContextValues(state: MenuGroupState): MenuGr
551
552
  */
552
553
  export declare function useMenuGroupHeader(props: MenuGroupHeaderProps, ref: React_2.Ref<HTMLElement>): MenuGroupHeaderState;
553
554
 
554
- export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => ComponentState<MenuGroupHeaderSlots>;
555
+ export declare const useMenuGroupHeaderStyles: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
555
556
 
556
557
  export declare const useMenuGroupStyles: (state: MenuGroupState) => MenuGroupState;
557
558
 
@@ -227,15 +227,18 @@ const useMenuOpenState = state => {
227
227
  prevFocusable === null || prevFocusable === void 0 ? void 0 : prevFocusable.focus();
228
228
  }, [findPrevFocusable, state.triggerRef]);
229
229
  React.useEffect(() => {
230
- var _a;
231
-
232
- if (!shouldHandleKeyboardRef.current) {
233
- return;
230
+ if (open) {
231
+ focusFirst();
234
232
  }
233
+ }, [open, focusFirst]);
234
+ React.useEffect(() => {
235
+ var _a;
235
236
 
236
237
  if (open) {
237
238
  focusFirst();
238
- } else {
239
+ }
240
+
241
+ if (shouldHandleKeyboardRef.current && !open) {
239
242
  if (shouldHandleTabRef.current && !state.isSubmenu) {
240
243
  pressedShiftRef.current ? focusBeforeMenuTrigger() : focusAfterMenuTrigger();
241
244
  } else {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Menu/useMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,EAA+B,SAA/B,EAA0C,2BAA1C,QAA6E,6BAA7E;AACA,SAAS,oBAAT,EAA+B,KAA/B,EAAsC,iBAAtC,EAAyD,gBAAzD,QAAiF,2BAAjF;AACA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SAAS,eAAT,QAAgC,wBAAhC;AACA,SAAS,eAAT,QAAgC,yBAAhC;AACA,SAAS,WAAT,QAA4B,sBAA5B;AACA,SAAS,cAAT,QAA+B,4BAA/B;AACA,SAAS,gBAAT,EAA2B,mBAA3B,QAAsD,mBAAtD;AACA,SAAS,YAAT,QAA6B,0BAA7B;AAGA;;;;;;;AAOG;;AACH,OAAO,MAAM,OAAO,GAAI,KAAD,IAAgC;AACrD,QAAM,SAAS,GAAG,KAAK,CAAC,MAAD,CAAvB;AACA,QAAM,SAAS,GAAG,YAAY,EAA9B;AACA,QAAM,CAAC,aAAD,EAAgB,gBAAhB,IAAoC,oBAAoB,EAA9D;AAEA,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AU;AACR,MAAA,UAAU;AACX;;AAED,QAAI,uBAAuB,CAAC,OAAxB,IAAmC,CAAC,IAAxC,EAA8C;AAC5C,UAAI,kBAAkB,CAAC,OAAnB,IAA8B,CAAC,KAAK,CAAC,SAAzC,EAAoD;AAClD,QAAA,eAAe,CAAC,OAAhB,GAA0B,sBAAsB,EAAhD,GAAqD,qBAAqB,EAA1E;AACD,OAFD,MAEO;AACL,SAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,OAAjB,MAAwB,IAAxB,IAAwB,EAAA,KAAA,KAAA,CAAxB,GAAwB,KAAA,CAAxB,GAAwB,EAAA,CAAE,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;
@@ -1,4 +1,4 @@
1
- import { mergeClasses, __styles } from '@fluentui/react-make-styles';
1
+ import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
2
2
  export const menuDividerClassName = 'fui-MenuDivider';
3
3
 
4
4
  const useStyles = /*#__PURE__*/__styles({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,6BAAzC;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA4B;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA4B;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
@@ -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;
@@ -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":""}
@@ -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