@fluentui/react-menu 0.0.0-nightlyb8663b78ad20220207.1 → 0.0.0-nightlyc0e3a0a1f320220217.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.json +107 -20
  2. package/CHANGELOG.md +33 -13
  3. package/dist/react-menu.d.ts +18 -18
  4. package/lib/components/Menu/Menu.types.d.ts +1 -1
  5. package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  6. package/lib/components/MenuGroup/MenuGroup.types.d.ts +2 -2
  7. package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  8. package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
  9. package/lib/components/MenuItem/renderMenuItem.js +5 -5
  10. package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
  11. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +4 -4
  12. package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  13. package/lib/components/MenuItemRadio/renderMenuItemRadio.js +4 -4
  14. package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  15. package/lib/components/MenuList/MenuList.types.d.ts +2 -2
  16. package/lib/components/MenuList/index.d.ts +1 -1
  17. package/lib/components/MenuList/index.js +0 -1
  18. package/lib/components/MenuList/index.js.map +1 -1
  19. package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  20. package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
  21. package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +2 -2
  22. package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
  23. package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
  24. package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
  25. package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +2 -2
  26. package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
  27. package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
  28. package/lib-commonjs/components/MenuItem/renderMenuItem.js +5 -5
  29. package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
  30. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +4 -4
  31. package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
  32. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +4 -4
  33. package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
  34. package/lib-commonjs/components/MenuList/MenuList.types.d.ts +2 -2
  35. package/lib-commonjs/components/MenuList/index.d.ts +1 -1
  36. package/lib-commonjs/components/MenuList/index.js +0 -2
  37. package/lib-commonjs/components/MenuList/index.js.map +1 -1
  38. package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
  39. package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
  40. package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +2 -2
  41. package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
  42. package/package.json +9 -9
package/CHANGELOG.json CHANGED
@@ -2,17 +2,74 @@
2
2
  "name": "@fluentui/react-menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 07 Feb 2022 04:15:34 GMT",
6
- "tag": "@fluentui/react-menu_v0.0.0-nightlyb8663b78ad20220207.1",
7
- "version": "0.0.0-nightlyb8663b78ad20220207.1",
5
+ "date": "Thu, 17 Feb 2022 04:12:39 GMT",
6
+ "tag": "@fluentui/react-menu_v0.0.0-nightlyc0e3a0a1f320220217.1",
7
+ "version": "0.0.0-nightlyc0e3a0a1f320220217.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-menu",
13
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71",
13
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-menu",
19
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyc0e3a0a1f320220217.1",
20
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-menu",
25
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyc0e3a0a1f320220217.1",
26
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-menu",
31
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyc0e3a0a1f320220217.1",
32
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-menu",
37
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyc0e3a0a1f320220217.1",
38
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-menu",
43
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyc0e3a0a1f320220217.1",
44
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-menu",
49
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyc0e3a0a1f320220217.1",
50
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-menu",
55
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyc0e3a0a1f320220217.1",
56
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-menu",
61
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyc0e3a0a1f320220217.1",
62
+ "commit": "4df2a77ff1d0255eee60fa6109174a7cb44dcbe6"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Thu, 10 Feb 2022 08:51:30 GMT",
69
+ "tag": "@fluentui/react-menu_v9.0.0-rc.1",
70
+ "version": "9.0.0-rc.1",
71
+ "comments": {
72
+ "prerelease": [
16
73
  {
17
74
  "author": "lingfangao@hotmail.com",
18
75
  "package": "@fluentui/react-menu",
@@ -43,6 +100,12 @@
43
100
  "commit": "d2eb57808a403b70845a732a62b55aa64d66b2a0",
44
101
  "comment": "Allow `MenuTrigger` to be wrapped by another trigger"
45
102
  },
103
+ {
104
+ "author": "olfedias@microsoft.com",
105
+ "package": "@fluentui/react-menu",
106
+ "commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
107
+ "comment": "update types related to trigger (allow only React.ReactElement & null)"
108
+ },
46
109
  {
47
110
  "author": "behowell@microsoft.com",
48
111
  "package": "@fluentui/react-menu",
@@ -67,6 +130,12 @@
67
130
  "commit": "7e0933ed386742df28c416e6b3a6903a0c041f28",
68
131
  "comment": "update styles to not use CSS shorthands"
69
132
  },
133
+ {
134
+ "author": "behowell@microsoft.com",
135
+ "package": "@fluentui/react-menu",
136
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
137
+ "comment": "Refactor component Slot typings"
138
+ },
70
139
  {
71
140
  "author": "lingfangao@hotmail.com",
72
141
  "package": "@fluentui/react-menu",
@@ -91,6 +160,12 @@
91
160
  "commit": "f30e7585a8d2abd9db06c4076f39a779008b0eca",
92
161
  "comment": "Update MenuTrigger and Tooltip to work together"
93
162
  },
163
+ {
164
+ "author": "lingfangao@hotmail.com",
165
+ "package": "@fluentui/react-menu",
166
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
167
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
168
+ },
94
169
  {
95
170
  "author": "Humberto.Morimoto@microsoft.com",
96
171
  "package": "@fluentui/react-menu",
@@ -133,6 +208,12 @@
133
208
  "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
134
209
  "comment": "(fix): Update react-icons dependency to latest version"
135
210
  },
211
+ {
212
+ "author": "mgodbolt@microsoft.com",
213
+ "package": "@fluentui/react-menu",
214
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
215
+ "comment": "remove export of commons types"
216
+ },
136
217
  {
137
218
  "author": "lingfangao@hotmail.com",
138
219
  "package": "@fluentui/react-menu",
@@ -142,50 +223,50 @@
142
223
  {
143
224
  "author": "beachball",
144
225
  "package": "@fluentui/react-menu",
145
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyb8663b78ad20220207.1",
146
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
226
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.1",
227
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
147
228
  },
148
229
  {
149
230
  "author": "beachball",
150
231
  "package": "@fluentui/react-menu",
151
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyb8663b78ad20220207.1",
152
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
232
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.1",
233
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
153
234
  },
154
235
  {
155
236
  "author": "beachball",
156
237
  "package": "@fluentui/react-menu",
157
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyb8663b78ad20220207.1",
158
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
238
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.1",
239
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
159
240
  },
160
241
  {
161
242
  "author": "beachball",
162
243
  "package": "@fluentui/react-menu",
163
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyb8663b78ad20220207.1",
164
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
244
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.1",
245
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
165
246
  },
166
247
  {
167
248
  "author": "beachball",
168
249
  "package": "@fluentui/react-menu",
169
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyb8663b78ad20220207.1",
170
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
250
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
251
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
171
252
  },
172
253
  {
173
254
  "author": "beachball",
174
255
  "package": "@fluentui/react-menu",
175
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyb8663b78ad20220207.1",
176
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
256
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
257
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
177
258
  },
178
259
  {
179
260
  "author": "beachball",
180
261
  "package": "@fluentui/react-menu",
181
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyb8663b78ad20220207.1",
182
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
262
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
263
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
183
264
  },
184
265
  {
185
266
  "author": "beachball",
186
267
  "package": "@fluentui/react-menu",
187
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyb8663b78ad20220207.1",
188
- "commit": "2e460da7ff58924597e3137a784dc897fd174d71"
268
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
269
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
189
270
  }
190
271
  ],
191
272
  "none": [
@@ -201,6 +282,12 @@
201
282
  "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
202
283
  "comment": "remove inline-style-expand-shorthand from tsconfigs"
203
284
  },
285
+ {
286
+ "author": "bsunderhus@microsoft.com",
287
+ "package": "@fluentui/react-menu",
288
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
289
+ "comment": "Updates components with nullRender changes"
290
+ },
204
291
  {
205
292
  "author": "elcraig@microsoft.com",
206
293
  "package": "@fluentui/react-menu",
package/CHANGELOG.md CHANGED
@@ -1,30 +1,49 @@
1
1
  # Change Log - @fluentui/react-menu
2
2
 
3
- This log was last generated on Mon, 07 Feb 2022 04:15:34 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 17 Feb 2022 04:12:39 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyb8663b78ad20220207.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyb8663b78ad20220207.1)
7
+ ## [0.0.0-nightlyc0e3a0a1f320220217.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlyc0e3a0a1f320220217.1)
8
8
 
9
- Mon, 07 Feb 2022 04:15: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-nightlyb8663b78ad20220207.1)
9
+ Thu, 17 Feb 2022 04:12:39 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-rc.1..@fluentui/react-menu_v0.0.0-nightlyc0e3a0a1f320220217.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by email not defined)
15
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
16
+ - Bump @fluentui/react-context-selector to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
17
+ - Bump @fluentui/react-portal to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
18
+ - Bump @fluentui/react-positioning to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
19
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
20
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
21
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
22
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyc0e3a0a1f320220217.1 ([commit](https://github.com/microsoft/fluentui/commit/4df2a77ff1d0255eee60fa6109174a7cb44dcbe6) by beachball)
23
+
24
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-rc.1)
25
+
26
+ Thu, 10 Feb 2022 08:51:30 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v9.0.0-rc.1)
11
28
 
12
29
  ### Changes
13
30
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by email not defined)
15
31
  - fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
16
32
  - fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
17
33
  - fix: MenuTrigger should work correctly when `aria-disabled="true"` ([PR #21349](https://github.com/microsoft/fluentui/pull/21349) by lingfangao@hotmail.com)
18
34
  - update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
19
35
  - Allow `MenuTrigger` to be wrapped by another trigger ([PR #21225](https://github.com/microsoft/fluentui/pull/21225) by lingfangao@hotmail.com)
36
+ - update types related to trigger (allow only React.ReactElement & null) ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
20
37
  - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
21
38
  - Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
22
39
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
23
40
  - update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
41
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
24
42
  - fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
25
43
  - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
26
44
  - Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
27
45
  - Update MenuTrigger and Tooltip to work together ([PR #21495](https://github.com/microsoft/fluentui/pull/21495) by behowell@microsoft.com)
46
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
28
47
  - Replacing use of functions in makeStyles with direct use of tokens. ([PR #21048](https://github.com/microsoft/fluentui/pull/21048) by Humberto.Morimoto@microsoft.com)
29
48
  - use Griffel packages ([PR #21391](https://github.com/microsoft/fluentui/pull/21391) by olfedias@microsoft.com)
30
49
  - Apply fontSize styling to icon slot ([PR #21222](https://github.com/microsoft/fluentui/pull/21222) by behowell@microsoft.com)
@@ -32,15 +51,16 @@ Mon, 07 Feb 2022 04:15:34 GMT
32
51
  - feat: implement `MenuSplitGroup` component for split menu items ([PR #21095](https://github.com/microsoft/fluentui/pull/21095) by lingfangao@hotmail.com)
33
52
  - Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
34
53
  - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
54
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
35
55
  - breaking: MenuTrigger must be the first child of the `Menu` ([PR #21096](https://github.com/microsoft/fluentui/pull/21096) by lingfangao@hotmail.com)
36
- - Bump @fluentui/keyboard-keys to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
37
- - Bump @fluentui/react-context-selector to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
38
- - Bump @fluentui/react-portal to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
39
- - Bump @fluentui/react-positioning to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
40
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
41
- - Bump @fluentui/react-tabster to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
42
- - Bump @fluentui/react-utilities to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
43
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
56
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
57
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
58
+ - Bump @fluentui/react-portal to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
59
+ - Bump @fluentui/react-positioning to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
60
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
61
+ - Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
62
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
63
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
44
64
 
45
65
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
46
66
 
@@ -4,9 +4,9 @@ import type { Context } from '@fluentui/react-context-selector';
4
4
  import type { ContextSelector } from '@fluentui/react-context-selector';
5
5
  import type { FluentTriggerComponent } from '@fluentui/react-utilities';
6
6
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
7
- import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
8
7
  import { PositioningShorthand } from '@fluentui/react-positioning';
9
8
  import * as React_2 from 'react';
9
+ import type { Slot } from '@fluentui/react-utilities';
10
10
  import { usePopperMouseTarget } from '@fluentui/react-positioning';
11
11
 
12
12
  /**
@@ -83,7 +83,7 @@ export declare const menuDividerClassName = "fui-MenuDivider";
83
83
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
84
84
 
85
85
  export declare type MenuDividerSlots = {
86
- root: IntrinsicSlotProps<'div'>;
86
+ root: Slot<'div'>;
87
87
  };
88
88
 
89
89
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -122,7 +122,7 @@ export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
122
122
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
123
123
 
124
124
  export declare type MenuGroupHeaderSlots = {
125
- root: IntrinsicSlotProps<'div'>;
125
+ root: Slot<'div'>;
126
126
  };
127
127
 
128
128
  export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -130,7 +130,7 @@ export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
130
130
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
131
131
 
132
132
  export declare type MenuGroupSlots = {
133
- root: IntrinsicSlotProps<'div'>;
133
+ root: Slot<'div'>;
134
134
  };
135
135
 
136
136
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -221,29 +221,29 @@ export declare type MenuItemSelectableState = MenuItemSelectableProps & {
221
221
  };
222
222
 
223
223
  export declare type MenuItemSlots = {
224
- root: IntrinsicSlotProps<'div'>;
224
+ root: Slot<'div'>;
225
225
  /**
226
226
  * Icon slot rendered before children content
227
227
  */
228
- icon?: IntrinsicSlotProps<'span'>;
228
+ icon?: Slot<'span'>;
229
229
  /**
230
230
  * A helper slot for alignment when a menu item is used with selectable menuitems
231
231
  * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
232
232
  */
233
- checkmark?: IntrinsicSlotProps<'span'>;
233
+ checkmark?: Slot<'span'>;
234
234
  /**
235
235
  * Icon slot that shows the indicator for a submenu
236
236
  */
237
- submenuIndicator?: IntrinsicSlotProps<'span'>;
237
+ submenuIndicator?: Slot<'span'>;
238
238
  /**
239
239
  * Component children are placed in this slot
240
240
  * Avoid using the `children` property in this slot in favour of Component children whenever possible
241
241
  */
242
- content?: IntrinsicSlotProps<'span'>;
242
+ content?: Slot<'span'>;
243
243
  /**
244
244
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
245
245
  */
246
- secondaryContent?: IntrinsicSlotProps<'span'>;
246
+ secondaryContent?: Slot<'span'>;
247
247
  };
248
248
 
249
249
  export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemCommons;
@@ -255,7 +255,7 @@ export declare const MenuList: ForwardRefComponent<MenuListProps>;
255
255
 
256
256
  export declare const menuListClassName = "fui-MenuList";
257
257
 
258
- export declare type MenuListCommons = {
258
+ declare type MenuListCommons = {
259
259
  /**
260
260
  * Callback when checked items change for value with a name
261
261
  *
@@ -301,7 +301,7 @@ export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<Menu
301
301
  export declare const MenuListProvider: React_2.Provider<MenuListContextValue> & React_2.FC<React_2.ProviderProps<MenuListContextValue>>;
302
302
 
303
303
  export declare type MenuListSlots = {
304
- root: IntrinsicSlotProps<'div'>;
304
+ root: Slot<'div'>;
305
305
  };
306
306
 
307
307
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -349,7 +349,7 @@ export declare const menuPopoverClassName = "fui-MenuPopover";
349
349
  export declare type MenuPopoverProps = ComponentProps<MenuPopoverSlots>;
350
350
 
351
351
  export declare type MenuPopoverSlots = {
352
- root: IntrinsicSlotProps<'div'>;
352
+ root: Slot<'div'>;
353
353
  };
354
354
 
355
355
  /**
@@ -389,7 +389,7 @@ export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
389
389
 
390
390
  export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
391
391
 
392
- export declare type MenuSplitGroupCommons = {};
392
+ declare type MenuSplitGroupCommons = {};
393
393
 
394
394
  /**
395
395
  * MenuSplitGroup Props
@@ -397,7 +397,7 @@ export declare type MenuSplitGroupCommons = {};
397
397
  export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> & MenuSplitGroupCommons;
398
398
 
399
399
  export declare type MenuSplitGroupSlots = {
400
- root: IntrinsicSlotProps<'div'>;
400
+ root: Slot<'div'>;
401
401
  };
402
402
 
403
403
  /**
@@ -466,11 +466,11 @@ export declare type MenuTriggerProps = {
466
466
  */
467
467
  children: (React_2.ReactElement & {
468
468
  ref?: React_2.Ref<unknown>;
469
- }) | ((props: MenuTriggerChildProps) => React_2.ReactNode);
469
+ }) | ((props: MenuTriggerChildProps) => React_2.ReactElement | null);
470
470
  };
471
471
 
472
472
  export declare type MenuTriggerState = {
473
- children: React_2.ReactNode;
473
+ children: React_2.ReactElement | null;
474
474
  };
475
475
 
476
476
  /**
@@ -541,7 +541,7 @@ export declare type UninitializedMenuListState = Omit<MenuListState, 'setFocusBy
541
541
  *
542
542
  * @param state - should contain a `checkmark` slot
543
543
  */
544
- export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
544
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
545
545
 
546
546
  /**
547
547
  * Create the state required to render Menu.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentProps, ComponentState } from '@fluentui/react-utilities';
3
3
  import { usePopperMouseTarget, PositioningShorthand } from '@fluentui/react-positioning';
4
- import { MenuListCommons } from '../MenuList/index';
4
+ import { MenuListCommons } from '../MenuList/MenuList.types';
5
5
  import { MenuContextValue } from '../../contexts/menuContext';
6
6
  declare type MenuCommons = MenuListCommons & {
7
7
  /**
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuDividerSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
6
6
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  import type { MenuGroupContextValue } from '../../contexts/menuGroupContext';
3
3
  export declare type MenuGroupSlots = {
4
- root: IntrinsicSlotProps<'div'>;
4
+ root: Slot<'div'>;
5
5
  };
6
6
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
7
7
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuGroupHeaderSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
6
6
  export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -1,28 +1,28 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuItemSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  /**
5
5
  * Icon slot rendered before children content
6
6
  */
7
- icon?: IntrinsicSlotProps<'span'>;
7
+ icon?: Slot<'span'>;
8
8
  /**
9
9
  * A helper slot for alignment when a menu item is used with selectable menuitems
10
10
  * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
11
11
  */
12
- checkmark?: IntrinsicSlotProps<'span'>;
12
+ checkmark?: Slot<'span'>;
13
13
  /**
14
14
  * Icon slot that shows the indicator for a submenu
15
15
  */
16
- submenuIndicator?: IntrinsicSlotProps<'span'>;
16
+ submenuIndicator?: Slot<'span'>;
17
17
  /**
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?: IntrinsicSlotProps<'span'>;
21
+ content?: Slot<'span'>;
22
22
  /**
23
23
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
24
24
  */
25
- secondaryContent?: IntrinsicSlotProps<'span'>;
25
+ secondaryContent?: Slot<'span'>;
26
26
  };
27
27
  declare type MenuItemCommons = {
28
28
  /**
@@ -10,11 +10,11 @@ export const renderMenuItem_unstable = state => {
10
10
  slotProps
11
11
  } = getSlots(state);
12
12
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
13
- }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
14
- }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
15
- }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
16
- }), /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
17
- }), /*#__PURE__*/React.createElement(slots.submenuIndicator, { ...slotProps.submenuIndicator
13
+ }, slots.checkmark && /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
14
+ }), slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
15
+ }), slots.content && /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
16
+ }), slots.secondaryContent && /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
17
+ }), slots.submenuIndicator && /*#__PURE__*/React.createElement(slots.submenuIndicator, { ...slotProps.submenuIndicator
18
18
  }));
19
19
  };
20
20
  //# 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;AAGA;;AAEG;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAyB;AAC9D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,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,eAKE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CALF,CADF;AASD,CAZM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItem/renderMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAyB;AAC9D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,iBAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,iBAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,iBAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,iBAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,EAKG,KAAK,CAAC,gBAAN,iBAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAL7B,CADF;AASD,CAZM","sourceRoot":""}
@@ -8,10 +8,10 @@ export const renderMenuItemCheckbox_unstable = state => {
8
8
  slotProps
9
9
  } = getSlots(state);
10
10
  return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
11
- }, /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
12
- }), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
13
- }), /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
14
- }), /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
11
+ }, slots.checkmark && /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
12
+ }), slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
13
+ }), slots.content && /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
14
+ }), slots.secondaryContent && /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
15
15
  }));
16
16
  };
17
17
  //# 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;AAIA;;AACA,OAAO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;AAC9E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,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":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAIA;;AACA,OAAO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;AAC9E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,iBAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,iBAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,iBAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,iBAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,CADF;AAQD,CAXM","sourceRoot":""}
@@ -11,10 +11,10 @@ export const renderMenuItemRadio_unstable = state => {
11
11
  slotProps
12
12
  } = getSlots(state);
13
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
14
+ }, slots.checkmark && /*#__PURE__*/React.createElement(slots.checkmark, { ...slotProps.checkmark
15
+ }), slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
16
+ }), slots.content && /*#__PURE__*/React.createElement(slots.content, { ...slotProps.content
17
+ }), slots.secondaryContent && /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
18
18
  }));
19
19
  };
20
20
  //# 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;AAIA;;;AAGG;;AACH,OAAO,MAAM,4BAA4B,GAAI,KAAD,IAA8B;AACxE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,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":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAIA;;;AAGG;;AACH,OAAO,MAAM,4BAA4B,GAAI,KAAD,IAA8B;AACxE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAgB,KAAhB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,iBAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,iBAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,iBAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,iBAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,CADF;AAQD,CAXM","sourceRoot":""}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
3
  import type { MenuListContextValue } from '../../contexts/menuListContext';
4
4
  import type { SelectableHandler } from '../../selectable/index';
5
5
  export declare type MenuCheckedValueChangeEvent = React.MouseEvent | React.KeyboardEvent;
@@ -35,7 +35,7 @@ export declare type MenuListCommons = {
35
35
  hasCheckmarks?: boolean;
36
36
  };
37
37
  export declare type MenuListSlots = {
38
- root: IntrinsicSlotProps<'div'>;
38
+ root: Slot<'div'>;
39
39
  };
40
40
  export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<MenuListCommons>;
41
41
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -1,5 +1,5 @@
1
1
  export * from './MenuList';
2
- export * from './MenuList.types';
2
+ export type { MenuCheckedValueChangeData, MenuCheckedValueChangeEvent, MenuListContextValues, MenuListProps, MenuListSlots, MenuListState, UninitializedMenuListState, } from './MenuList.types';
3
3
  export * from './renderMenuList';
4
4
  export * from './useMenuList';
5
5
  export * from './useMenuListStyles';
@@ -1,5 +1,4 @@
1
1
  export * from './MenuList';
2
- export * from './MenuList.types';
3
2
  export * from './renderMenuList';
4
3
  export * from './useMenuList';
5
4
  export * from './useMenuListStyles';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAW3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuPopoverSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  /**
6
6
  * MenuPopover Props
@@ -1,8 +1,8 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuSplitGroupSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
- export declare type MenuSplitGroupCommons = {};
5
+ declare type MenuSplitGroupCommons = {};
6
6
  /**
7
7
  * MenuSplitGroup Props
8
8
  */
@@ -11,3 +11,4 @@ export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> &
11
11
  * State used in rendering MenuSplitGroup
12
12
  */
13
13
  export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
14
+ export {};
@@ -5,7 +5,7 @@ export declare type MenuTriggerProps = {
5
5
  */
6
6
  children: (React.ReactElement & {
7
7
  ref?: React.Ref<unknown>;
8
- }) | ((props: MenuTriggerChildProps) => React.ReactNode);
8
+ }) | ((props: MenuTriggerChildProps) => React.ReactElement | null);
9
9
  };
10
10
  /**
11
11
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
@@ -15,5 +15,5 @@ export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<H
15
15
  'aria-expanded': boolean | undefined;
16
16
  };
17
17
  export declare type MenuTriggerState = {
18
- children: React.ReactNode;
18
+ children: React.ReactElement | null;
19
19
  };
@@ -1,8 +1,8 @@
1
1
  import type { MenuItemSelectableState } from './types';
2
- import type { MenuItemSlots } from '../components/MenuItem/MenuItem.types';
2
+ import type { MenuItemState } from '../components/MenuItem/MenuItem.types';
3
3
  /**
4
4
  * Applies styles to a checkmark slot for selectable menu items
5
5
  *
6
6
  * @param state - should contain a `checkmark` slot
7
7
  */
8
- export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
8
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentProps, ComponentState } from '@fluentui/react-utilities';
3
3
  import { usePopperMouseTarget, PositioningShorthand } from '@fluentui/react-positioning';
4
- import { MenuListCommons } from '../MenuList/index';
4
+ import { MenuListCommons } from '../MenuList/MenuList.types';
5
5
  import { MenuContextValue } from '../../contexts/menuContext';
6
6
  declare type MenuCommons = MenuListCommons & {
7
7
  /**
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuDividerSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
6
6
  export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  import type { MenuGroupContextValue } from '../../contexts/menuGroupContext';
3
3
  export declare type MenuGroupSlots = {
4
- root: IntrinsicSlotProps<'div'>;
4
+ root: Slot<'div'>;
5
5
  };
6
6
  export declare type MenuGroupProps = ComponentProps<MenuGroupSlots>;
7
7
  export declare type MenuGroupState = ComponentState<MenuGroupSlots> & {
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuGroupHeaderSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
6
6
  export declare type MenuGroupHeaderState = ComponentState<MenuGroupHeaderSlots>;
@@ -1,28 +1,28 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuItemSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  /**
5
5
  * Icon slot rendered before children content
6
6
  */
7
- icon?: IntrinsicSlotProps<'span'>;
7
+ icon?: Slot<'span'>;
8
8
  /**
9
9
  * A helper slot for alignment when a menu item is used with selectable menuitems
10
10
  * Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
11
11
  */
12
- checkmark?: IntrinsicSlotProps<'span'>;
12
+ checkmark?: Slot<'span'>;
13
13
  /**
14
14
  * Icon slot that shows the indicator for a submenu
15
15
  */
16
- submenuIndicator?: IntrinsicSlotProps<'span'>;
16
+ submenuIndicator?: Slot<'span'>;
17
17
  /**
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?: IntrinsicSlotProps<'span'>;
21
+ content?: Slot<'span'>;
22
22
  /**
23
23
  * Secondary content rendered opposite the primary content (e.g Shortcut text)
24
24
  */
25
- secondaryContent?: IntrinsicSlotProps<'span'>;
25
+ secondaryContent?: Slot<'span'>;
26
26
  };
27
27
  declare type MenuItemCommons = {
28
28
  /**
@@ -19,11 +19,11 @@ const renderMenuItem_unstable = state => {
19
19
  slotProps
20
20
  } = react_utilities_1.getSlots(state);
21
21
  return React.createElement(slots.root, { ...slotProps.root
22
- }, React.createElement(slots.checkmark, { ...slotProps.checkmark
23
- }), React.createElement(slots.icon, { ...slotProps.icon
24
- }), React.createElement(slots.content, { ...slotProps.content
25
- }), React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
26
- }), React.createElement(slots.submenuIndicator, { ...slotProps.submenuIndicator
22
+ }, slots.checkmark && React.createElement(slots.checkmark, { ...slotProps.checkmark
23
+ }), slots.icon && React.createElement(slots.icon, { ...slotProps.icon
24
+ }), slots.content && React.createElement(slots.content, { ...slotProps.content
25
+ }), slots.secondaryContent && React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
26
+ }), slots.submenuIndicator && React.createElement(slots.submenuIndicator, { ...slotProps.submenuIndicator
27
27
  }));
28
28
  };
29
29
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItem/renderMenuItem.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,uBAAuB,GAAI,KAAD,IAAyB;AAC9D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,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,EAKE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CALF,CADF;AASD,CAZM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItem/renderMenuItem.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,uBAAuB,GAAI,KAAD,IAAyB;AAC9D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,IAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,EAKG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAL7B,CADF;AASD,CAZM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
@@ -17,10 +17,10 @@ const renderMenuItemCheckbox_unstable = state => {
17
17
  slotProps
18
18
  } = react_utilities_1.getSlots(state);
19
19
  return React.createElement(slots.root, { ...slotProps.root
20
- }, React.createElement(slots.checkmark, { ...slotProps.checkmark
21
- }), React.createElement(slots.icon, { ...slotProps.icon
22
- }), React.createElement(slots.content, { ...slotProps.content
23
- }), React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
20
+ }, slots.checkmark && React.createElement(slots.checkmark, { ...slotProps.checkmark
21
+ }), slots.icon && React.createElement(slots.icon, { ...slotProps.icon
22
+ }), slots.content && React.createElement(slots.content, { ...slotProps.content
23
+ }), slots.secondaryContent && React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
24
24
  }));
25
25
  };
26
26
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;;AACO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;AAC9E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,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;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemCheckbox/renderMenuItemCheckbox.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;;AACO,MAAM,+BAA+B,GAAI,KAAD,IAAiC;AAC9E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,IAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,+BAAA,GAA+B,+BAA/B","sourceRoot":""}
@@ -20,10 +20,10 @@ const renderMenuItemRadio_unstable = state => {
20
20
  slotProps
21
21
  } = react_utilities_1.getSlots(state);
22
22
  return React.createElement(slots.root, { ...slotProps.root
23
- }, React.createElement(slots.checkmark, { ...slotProps.checkmark
24
- }), React.createElement(slots.icon, { ...slotProps.icon
25
- }), React.createElement(slots.content, { ...slotProps.content
26
- }), React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
23
+ }, slots.checkmark && React.createElement(slots.checkmark, { ...slotProps.checkmark
24
+ }), slots.icon && React.createElement(slots.icon, { ...slotProps.icon
25
+ }), slots.content && React.createElement(slots.content, { ...slotProps.content
26
+ }), slots.secondaryContent && React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
27
27
  }));
28
28
  };
29
29
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;;AAGG;;;AACI,MAAM,4BAA4B,GAAI,KAAD,IAA8B;AACxE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,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;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuItemRadio/renderMenuItemRadio.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAIA;;;AAGG;;;AACI,MAAM,4BAA4B,GAAI,KAAD,IAA8B;AACxE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAwB,KAAxB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,SAAP,EAAgB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAhB,CADtB,EAEG,KAAK,CAAC,IAAN,IAAc,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFjB,EAGG,KAAK,CAAC,OAAN,IAAiB,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,CAHpB,EAIG,KAAK,CAAC,gBAAN,IAA0B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAJ7B,CADF;AAQD,CAXM;;AAAM,OAAA,CAAA,4BAAA,GAA4B,4BAA5B","sourceRoot":""}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
3
  import type { MenuListContextValue } from '../../contexts/menuListContext';
4
4
  import type { SelectableHandler } from '../../selectable/index';
5
5
  export declare type MenuCheckedValueChangeEvent = React.MouseEvent | React.KeyboardEvent;
@@ -35,7 +35,7 @@ export declare type MenuListCommons = {
35
35
  hasCheckmarks?: boolean;
36
36
  };
37
37
  export declare type MenuListSlots = {
38
- root: IntrinsicSlotProps<'div'>;
38
+ root: Slot<'div'>;
39
39
  };
40
40
  export declare type MenuListProps = ComponentProps<MenuListSlots> & Partial<MenuListCommons>;
41
41
  export declare type MenuListState = ComponentState<MenuListSlots> & MenuListCommons & {
@@ -1,5 +1,5 @@
1
1
  export * from './MenuList';
2
- export * from './MenuList.types';
2
+ export type { MenuCheckedValueChangeData, MenuCheckedValueChangeEvent, MenuListContextValues, MenuListProps, MenuListSlots, MenuListState, UninitializedMenuListState, } from './MenuList.types';
3
3
  export * from './renderMenuList';
4
4
  export * from './useMenuList';
5
5
  export * from './useMenuListStyles';
@@ -8,8 +8,6 @@ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuList"), exports);
10
10
 
11
- tslib_1.__exportStar(require("./MenuList.types"), exports);
12
-
13
11
  tslib_1.__exportStar(require("./renderMenuList"), exports);
14
12
 
15
13
  tslib_1.__exportStar(require("./useMenuList"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AAWA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,4BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -1,6 +1,6 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuPopoverSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
5
  /**
6
6
  * MenuPopover Props
@@ -1,8 +1,8 @@
1
- import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type MenuSplitGroupSlots = {
3
- root: IntrinsicSlotProps<'div'>;
3
+ root: Slot<'div'>;
4
4
  };
5
- export declare type MenuSplitGroupCommons = {};
5
+ declare type MenuSplitGroupCommons = {};
6
6
  /**
7
7
  * MenuSplitGroup Props
8
8
  */
@@ -11,3 +11,4 @@ export declare type MenuSplitGroupProps = ComponentProps<MenuSplitGroupSlots> &
11
11
  * State used in rendering MenuSplitGroup
12
12
  */
13
13
  export declare type MenuSplitGroupState = ComponentState<MenuSplitGroupSlots> & MenuSplitGroupCommons;
14
+ export {};
@@ -5,7 +5,7 @@ export declare type MenuTriggerProps = {
5
5
  */
6
6
  children: (React.ReactElement & {
7
7
  ref?: React.Ref<unknown>;
8
- }) | ((props: MenuTriggerChildProps) => React.ReactNode);
8
+ }) | ((props: MenuTriggerChildProps) => React.ReactElement | null);
9
9
  };
10
10
  /**
11
11
  * Props that are passed to the child of the MenuTrigger when cloned to ensure correct behaviour for the Menu
@@ -15,5 +15,5 @@ export declare type MenuTriggerChildProps = Required<Pick<React.HTMLAttributes<H
15
15
  'aria-expanded': boolean | undefined;
16
16
  };
17
17
  export declare type MenuTriggerState = {
18
- children: React.ReactNode;
18
+ children: React.ReactElement | null;
19
19
  };
@@ -1,8 +1,8 @@
1
1
  import type { MenuItemSelectableState } from './types';
2
- import type { MenuItemSlots } from '../components/MenuItem/MenuItem.types';
2
+ import type { MenuItemState } from '../components/MenuItem/MenuItem.types';
3
3
  /**
4
4
  * Applies styles to a checkmark slot for selectable menu items
5
5
  *
6
6
  * @param state - should contain a `checkmark` slot
7
7
  */
8
- export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemSlots, 'checkmark'>) => void;
8
+ export declare const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick<MenuItemState, 'checkmark'>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-menu",
3
- "version": "0.0.0-nightlyb8663b78ad20220207.1",
3
+ "version": "0.0.0-nightlyc0e3a0a1f320220217.1",
4
4
  "description": "Fluent UI menu component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -29,7 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@fluentui/eslint-plugin": "*",
31
31
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-griffel": "0.0.0-nightlyb8663b78ad20220207.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlyc0e3a0a1f320220217.1",
33
33
  "@fluentui/scripts": "^1.0.0",
34
34
  "@types/enzyme": "3.10.3",
35
35
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -43,15 +43,15 @@
43
43
  "react-test-renderer": "^16.3.0"
44
44
  },
45
45
  "dependencies": {
46
- "@fluentui/keyboard-keys": "0.0.0-nightlyb8663b78ad20220207.1",
47
- "@fluentui/react-context-selector": "0.0.0-nightlyb8663b78ad20220207.1",
46
+ "@fluentui/keyboard-keys": "0.0.0-nightlyc0e3a0a1f320220217.1",
47
+ "@fluentui/react-context-selector": "0.0.0-nightlyc0e3a0a1f320220217.1",
48
48
  "@fluentui/react-icons": "^2.0.159-beta.10",
49
49
  "@griffel/react": "1.0.0",
50
- "@fluentui/react-portal": "0.0.0-nightlyb8663b78ad20220207.1",
51
- "@fluentui/react-positioning": "0.0.0-nightlyb8663b78ad20220207.1",
52
- "@fluentui/react-shared-contexts": "0.0.0-nightlyb8663b78ad20220207.1",
53
- "@fluentui/react-tabster": "0.0.0-nightlyb8663b78ad20220207.1",
54
- "@fluentui/react-utilities": "0.0.0-nightlyb8663b78ad20220207.1",
50
+ "@fluentui/react-portal": "0.0.0-nightlyc0e3a0a1f320220217.1",
51
+ "@fluentui/react-positioning": "0.0.0-nightlyc0e3a0a1f320220217.1",
52
+ "@fluentui/react-shared-contexts": "0.0.0-nightlyc0e3a0a1f320220217.1",
53
+ "@fluentui/react-tabster": "0.0.0-nightlyc0e3a0a1f320220217.1",
54
+ "@fluentui/react-utilities": "0.0.0-nightlyc0e3a0a1f320220217.1",
55
55
  "tslib": "^2.1.0"
56
56
  },
57
57
  "peerDependencies": {