@fluentui/react-menu 0.0.0-nightly946f57cad420220203.1 → 0.0.0-nightly96d9c9354420220210.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.
- package/CHANGELOG.json +91 -61
- package/CHANGELOG.md +23 -19
- package/dist/react-menu.d.ts +18 -18
- package/lib/components/Menu/Menu.types.d.ts +1 -1
- package/lib/components/MenuDivider/MenuDivider.types.d.ts +2 -2
- package/lib/components/MenuGroup/MenuGroup.types.d.ts +2 -2
- package/lib/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
- package/lib/components/MenuItem/MenuItem.types.d.ts +7 -7
- package/lib/components/MenuItem/renderMenuItem.js +5 -5
- package/lib/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js +4 -4
- package/lib/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js +4 -4
- package/lib/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib/components/MenuList/MenuList.types.d.ts +2 -2
- package/lib/components/MenuList/index.d.ts +1 -1
- package/lib/components/MenuList/index.js +0 -1
- package/lib/components/MenuList/index.js.map +1 -1
- package/lib/components/MenuPopover/MenuPopover.types.d.ts +2 -2
- package/lib/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
- package/lib/components/MenuTrigger/MenuTrigger.types.d.ts +2 -2
- package/lib/selectable/useCheckmarkStyles.d.ts +2 -2
- package/lib-commonjs/components/Menu/Menu.types.d.ts +1 -1
- package/lib-commonjs/components/MenuDivider/MenuDivider.types.d.ts +2 -2
- package/lib-commonjs/components/MenuGroup/MenuGroup.types.d.ts +2 -2
- package/lib-commonjs/components/MenuGroupHeader/MenuGroupHeader.types.d.ts +2 -2
- package/lib-commonjs/components/MenuItem/MenuItem.types.d.ts +7 -7
- package/lib-commonjs/components/MenuItem/renderMenuItem.js +5 -5
- package/lib-commonjs/components/MenuItem/renderMenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js +4 -4
- package/lib-commonjs/components/MenuItemCheckbox/renderMenuItemCheckbox.js.map +1 -1
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js +4 -4
- package/lib-commonjs/components/MenuItemRadio/renderMenuItemRadio.js.map +1 -1
- package/lib-commonjs/components/MenuList/MenuList.types.d.ts +2 -2
- package/lib-commonjs/components/MenuList/index.d.ts +1 -1
- package/lib-commonjs/components/MenuList/index.js +0 -2
- package/lib-commonjs/components/MenuList/index.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/MenuPopover.types.d.ts +2 -2
- package/lib-commonjs/components/MenuSplitGroup/MenuSplitGroup.types.d.ts +4 -3
- package/lib-commonjs/components/MenuTrigger/MenuTrigger.types.d.ts +2 -2
- package/lib-commonjs/selectable/useCheckmarkStyles.d.ts +2 -2
- package/package.json +9 -9
package/CHANGELOG.json
CHANGED
|
@@ -2,17 +2,59 @@
|
|
|
2
2
|
"name": "@fluentui/react-menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Thu,
|
|
6
|
-
"tag": "@fluentui/react-menu_v0.0.0-
|
|
7
|
-
"version": "0.0.0-
|
|
5
|
+
"date": "Thu, 10 Feb 2022 04:16:34 GMT",
|
|
6
|
+
"tag": "@fluentui/react-menu_v0.0.0-nightly96d9c9354420220210.1",
|
|
7
|
+
"version": "0.0.0-nightly96d9c9354420220210.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
11
11
|
"author": "email not defined",
|
|
12
12
|
"package": "@fluentui/react-menu",
|
|
13
|
-
"commit": "
|
|
13
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831",
|
|
14
14
|
"comment": "Release nightly v9"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"author": "lingfangao@hotmail.com",
|
|
18
|
+
"package": "@fluentui/react-menu",
|
|
19
|
+
"commit": "c2e6c50d56dcb45b4ca9e3a9daf2fae4be10a19e",
|
|
20
|
+
"comment": "fix: set `aria-expanded` and `aria-haspopup` values correctly"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "lingfangao@hotmail.com",
|
|
24
|
+
"package": "@fluentui/react-menu",
|
|
25
|
+
"commit": "6ca0355f6740f836ff4df009687718a380085247",
|
|
26
|
+
"comment": "fix: Focus on first menu item on click"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "lingfangao@hotmail.com",
|
|
30
|
+
"package": "@fluentui/react-menu",
|
|
31
|
+
"commit": "4f22b6dad04ea37eb53e4af23c73d2de4db512a2",
|
|
32
|
+
"comment": "fix: MenuTrigger should work correctly when `aria-disabled=\"true\"`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "olfedias@microsoft.com",
|
|
36
|
+
"package": "@fluentui/react-menu",
|
|
37
|
+
"commit": "b23239743c4f5518bcf7dcad496a36fc16bbd2e5",
|
|
38
|
+
"comment": "update @fluentui/react-icons package"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "lingfangao@hotmail.com",
|
|
42
|
+
"package": "@fluentui/react-menu",
|
|
43
|
+
"commit": "d2eb57808a403b70845a732a62b55aa64d66b2a0",
|
|
44
|
+
"comment": "Allow `MenuTrigger` to be wrapped by another trigger"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "olfedias@microsoft.com",
|
|
48
|
+
"package": "@fluentui/react-menu",
|
|
49
|
+
"commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
|
|
50
|
+
"comment": "update types related to trigger (allow only React.ReactElement & null)"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "behowell@microsoft.com",
|
|
54
|
+
"package": "@fluentui/react-menu",
|
|
55
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
|
56
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
|
57
|
+
},
|
|
16
58
|
{
|
|
17
59
|
"author": "Humberto.Morimoto@microsoft.com",
|
|
18
60
|
"package": "@fluentui/react-menu",
|
|
@@ -31,6 +73,12 @@
|
|
|
31
73
|
"commit": "7e0933ed386742df28c416e6b3a6903a0c041f28",
|
|
32
74
|
"comment": "update styles to not use CSS shorthands"
|
|
33
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"author": "behowell@microsoft.com",
|
|
78
|
+
"package": "@fluentui/react-menu",
|
|
79
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
|
80
|
+
"comment": "Refactor component Slot typings"
|
|
81
|
+
},
|
|
34
82
|
{
|
|
35
83
|
"author": "lingfangao@hotmail.com",
|
|
36
84
|
"package": "@fluentui/react-menu",
|
|
@@ -55,6 +103,12 @@
|
|
|
55
103
|
"commit": "f30e7585a8d2abd9db06c4076f39a779008b0eca",
|
|
56
104
|
"comment": "Update MenuTrigger and Tooltip to work together"
|
|
57
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"author": "lingfangao@hotmail.com",
|
|
108
|
+
"package": "@fluentui/react-menu",
|
|
109
|
+
"commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
|
|
110
|
+
"comment": "Bump Fluent UI packages to 9.0.0-rc"
|
|
111
|
+
},
|
|
58
112
|
{
|
|
59
113
|
"author": "Humberto.Morimoto@microsoft.com",
|
|
60
114
|
"package": "@fluentui/react-menu",
|
|
@@ -98,103 +152,85 @@
|
|
|
98
152
|
"comment": "(fix): Update react-icons dependency to latest version"
|
|
99
153
|
},
|
|
100
154
|
{
|
|
101
|
-
"author": "
|
|
102
|
-
"package": "@fluentui/react-menu",
|
|
103
|
-
"commit": "07d9ed6d1b436b7ca9571c94fbb0bcbdb080f235",
|
|
104
|
-
"comment": "breaking: MenuTrigger must be the first child of the `Menu`"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"author": "lingfangao@hotmail.com",
|
|
108
|
-
"package": "@fluentui/react-menu",
|
|
109
|
-
"commit": "c2e6c50d56dcb45b4ca9e3a9daf2fae4be10a19e",
|
|
110
|
-
"comment": "fix: set `aria-expanded` and `aria-haspopup` values correctly"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"author": "lingfangao@hotmail.com",
|
|
114
|
-
"package": "@fluentui/react-menu",
|
|
115
|
-
"commit": "6ca0355f6740f836ff4df009687718a380085247",
|
|
116
|
-
"comment": "fix: Focus on first menu item on click"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"author": "lingfangao@hotmail.com",
|
|
120
|
-
"package": "@fluentui/react-menu",
|
|
121
|
-
"commit": "4f22b6dad04ea37eb53e4af23c73d2de4db512a2",
|
|
122
|
-
"comment": "fix: MenuTrigger should work correctly when `aria-disabled=\"true\"`"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"author": "olfedias@microsoft.com",
|
|
155
|
+
"author": "mgodbolt@microsoft.com",
|
|
126
156
|
"package": "@fluentui/react-menu",
|
|
127
|
-
"commit": "
|
|
128
|
-
"comment": "
|
|
157
|
+
"commit": "839ec14849e112b85aa321d034739ec421199141",
|
|
158
|
+
"comment": "remove export of commons types"
|
|
129
159
|
},
|
|
130
160
|
{
|
|
131
161
|
"author": "lingfangao@hotmail.com",
|
|
132
162
|
"package": "@fluentui/react-menu",
|
|
133
|
-
"commit": "
|
|
134
|
-
"comment": "
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"author": "behowell@microsoft.com",
|
|
138
|
-
"package": "@fluentui/react-menu",
|
|
139
|
-
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
|
140
|
-
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
|
163
|
+
"commit": "07d9ed6d1b436b7ca9571c94fbb0bcbdb080f235",
|
|
164
|
+
"comment": "breaking: MenuTrigger must be the first child of the `Menu`"
|
|
141
165
|
},
|
|
142
166
|
{
|
|
143
167
|
"author": "beachball",
|
|
144
168
|
"package": "@fluentui/react-menu",
|
|
145
|
-
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-
|
|
146
|
-
"commit": "
|
|
169
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly96d9c9354420220210.1",
|
|
170
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
147
171
|
},
|
|
148
172
|
{
|
|
149
173
|
"author": "beachball",
|
|
150
174
|
"package": "@fluentui/react-menu",
|
|
151
|
-
"comment": "Bump @fluentui/react-context-selector to v0.0.0-
|
|
152
|
-
"commit": "
|
|
175
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly96d9c9354420220210.1",
|
|
176
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
153
177
|
},
|
|
154
178
|
{
|
|
155
179
|
"author": "beachball",
|
|
156
180
|
"package": "@fluentui/react-menu",
|
|
157
|
-
"comment": "Bump @fluentui/react-portal to v0.0.0-
|
|
158
|
-
"commit": "
|
|
181
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightly96d9c9354420220210.1",
|
|
182
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
159
183
|
},
|
|
160
184
|
{
|
|
161
185
|
"author": "beachball",
|
|
162
186
|
"package": "@fluentui/react-menu",
|
|
163
|
-
"comment": "Bump @fluentui/react-positioning to v0.0.0-
|
|
164
|
-
"commit": "
|
|
187
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightly96d9c9354420220210.1",
|
|
188
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
165
189
|
},
|
|
166
190
|
{
|
|
167
191
|
"author": "beachball",
|
|
168
192
|
"package": "@fluentui/react-menu",
|
|
169
|
-
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-
|
|
170
|
-
"commit": "
|
|
193
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly96d9c9354420220210.1",
|
|
194
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
171
195
|
},
|
|
172
196
|
{
|
|
173
197
|
"author": "beachball",
|
|
174
198
|
"package": "@fluentui/react-menu",
|
|
175
|
-
"comment": "Bump @fluentui/react-tabster to v0.0.0-
|
|
176
|
-
"commit": "
|
|
199
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly96d9c9354420220210.1",
|
|
200
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
177
201
|
},
|
|
178
202
|
{
|
|
179
203
|
"author": "beachball",
|
|
180
204
|
"package": "@fluentui/react-menu",
|
|
181
|
-
"comment": "Bump @fluentui/react-utilities to v0.0.0-
|
|
182
|
-
"commit": "
|
|
205
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly96d9c9354420220210.1",
|
|
206
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
183
207
|
},
|
|
184
208
|
{
|
|
185
209
|
"author": "beachball",
|
|
186
210
|
"package": "@fluentui/react-menu",
|
|
187
|
-
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-
|
|
188
|
-
"commit": "
|
|
211
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly96d9c9354420220210.1",
|
|
212
|
+
"commit": "df0f6db42df4395871de937d79a23fc5c3d82831"
|
|
189
213
|
}
|
|
190
214
|
],
|
|
191
215
|
"none": [
|
|
216
|
+
{
|
|
217
|
+
"author": "email not defined",
|
|
218
|
+
"package": "@fluentui/react-menu",
|
|
219
|
+
"commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
|
|
220
|
+
"comment": "Add workaround for cypress bug"
|
|
221
|
+
},
|
|
192
222
|
{
|
|
193
223
|
"author": "olfedias@microsoft.com",
|
|
194
224
|
"package": "@fluentui/react-menu",
|
|
195
225
|
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
|
196
226
|
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
|
197
227
|
},
|
|
228
|
+
{
|
|
229
|
+
"author": "bsunderhus@microsoft.com",
|
|
230
|
+
"package": "@fluentui/react-menu",
|
|
231
|
+
"commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
|
|
232
|
+
"comment": "Updates components with nullRender changes"
|
|
233
|
+
},
|
|
198
234
|
{
|
|
199
235
|
"author": "elcraig@microsoft.com",
|
|
200
236
|
"package": "@fluentui/react-menu",
|
|
@@ -206,12 +242,6 @@
|
|
|
206
242
|
"package": "@fluentui/react-menu",
|
|
207
243
|
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
|
208
244
|
"comment": "chore: use storybook runner for all vNext packages"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"author": "email not defined",
|
|
212
|
-
"package": "@fluentui/react-menu",
|
|
213
|
-
"commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
|
|
214
|
-
"comment": "Add workaround for cypress bug"
|
|
215
245
|
}
|
|
216
246
|
]
|
|
217
247
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 10 Feb 2022 04:16:34 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightly96d9c9354420220210.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightly96d9c9354420220210.1)
|
|
8
8
|
|
|
9
|
-
Thu,
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-
|
|
9
|
+
Thu, 10 Feb 2022 04:16: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-nightly96d9c9354420220210.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by email not defined)
|
|
15
|
+
- fix: set `aria-expanded` and `aria-haspopup` values correctly ([PR #20957](https://github.com/microsoft/fluentui/pull/20957) by lingfangao@hotmail.com)
|
|
16
|
+
- fix: Focus on first menu item on click ([PR #20955](https://github.com/microsoft/fluentui/pull/20955) by lingfangao@hotmail.com)
|
|
17
|
+
- fix: MenuTrigger should work correctly when `aria-disabled="true"` ([PR #21349](https://github.com/microsoft/fluentui/pull/21349) by lingfangao@hotmail.com)
|
|
18
|
+
- update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
|
|
19
|
+
- Allow `MenuTrigger` to be wrapped by another trigger ([PR #21225](https://github.com/microsoft/fluentui/pull/21225) by lingfangao@hotmail.com)
|
|
20
|
+
- update types related to trigger (allow only React.ReactElement & null) ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
|
|
21
|
+
- 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)
|
|
15
22
|
- 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)
|
|
16
23
|
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
|
17
24
|
- update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
|
|
25
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
|
18
26
|
- fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
|
|
19
27
|
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
|
20
28
|
- Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
|
|
21
29
|
- Update MenuTrigger and Tooltip to work together ([PR #21495](https://github.com/microsoft/fluentui/pull/21495) by behowell@microsoft.com)
|
|
30
|
+
- Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
|
22
31
|
- 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)
|
|
23
32
|
- use Griffel packages ([PR #21391](https://github.com/microsoft/fluentui/pull/21391) by olfedias@microsoft.com)
|
|
24
33
|
- Apply fontSize styling to icon slot ([PR #21222](https://github.com/microsoft/fluentui/pull/21222) by behowell@microsoft.com)
|
|
@@ -26,21 +35,16 @@ Thu, 03 Feb 2022 04:17:01 GMT
|
|
|
26
35
|
- feat: implement `MenuSplitGroup` component for split menu items ([PR #21095](https://github.com/microsoft/fluentui/pull/21095) by lingfangao@hotmail.com)
|
|
27
36
|
- 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)
|
|
28
37
|
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
|
38
|
+
- remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
|
|
29
39
|
- breaking: MenuTrigger must be the first child of the `Menu` ([PR #21096](https://github.com/microsoft/fluentui/pull/21096) by lingfangao@hotmail.com)
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- Bump @fluentui/
|
|
37
|
-
- Bump @fluentui/react-
|
|
38
|
-
- Bump @fluentui/react-portal to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
|
|
39
|
-
- Bump @fluentui/react-positioning to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
|
|
40
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
|
|
41
|
-
- Bump @fluentui/react-tabster to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
|
|
42
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
|
|
43
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly946f57cad420220203.1 ([commit](https://github.com/microsoft/fluentui/commit/1d230926e10b3b722bd932be1ec39faaf340671c) by beachball)
|
|
40
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
41
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
42
|
+
- Bump @fluentui/react-portal to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
43
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
44
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
45
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
46
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
47
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly96d9c9354420220210.1 ([commit](https://github.com/microsoft/fluentui/commit/df0f6db42df4395871de937d79a23fc5c3d82831) by beachball)
|
|
44
48
|
|
|
45
49
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
|
|
46
50
|
|
package/dist/react-menu.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
224
|
+
root: Slot<'div'>;
|
|
225
225
|
/**
|
|
226
226
|
* Icon slot rendered before children content
|
|
227
227
|
*/
|
|
228
|
-
icon?:
|
|
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?:
|
|
233
|
+
checkmark?: Slot<'span'>;
|
|
234
234
|
/**
|
|
235
235
|
* Icon slot that shows the indicator for a submenu
|
|
236
236
|
*/
|
|
237
|
-
submenuIndicator?:
|
|
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?:
|
|
242
|
+
content?: Slot<'span'>;
|
|
243
243
|
/**
|
|
244
244
|
* Secondary content rendered opposite the primary content (e.g Shortcut text)
|
|
245
245
|
*/
|
|
246
|
-
secondaryContent?:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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.
|
|
469
|
+
}) | ((props: MenuTriggerChildProps) => React_2.ReactElement | null);
|
|
470
470
|
};
|
|
471
471
|
|
|
472
472
|
export declare type MenuTriggerState = {
|
|
473
|
-
children: React_2.
|
|
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<
|
|
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/
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuDividerSlots = {
|
|
3
|
-
root:
|
|
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,
|
|
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:
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuGroupHeaderSlots = {
|
|
3
|
-
root:
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuItemSlots = {
|
|
3
|
-
root:
|
|
3
|
+
root: Slot<'div'>;
|
|
4
4
|
/**
|
|
5
5
|
* Icon slot rendered before children content
|
|
6
6
|
*/
|
|
7
|
-
icon?:
|
|
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?:
|
|
12
|
+
checkmark?: Slot<'span'>;
|
|
13
13
|
/**
|
|
14
14
|
* Icon slot that shows the indicator for a submenu
|
|
15
15
|
*/
|
|
16
|
-
submenuIndicator?:
|
|
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?:
|
|
21
|
+
content?: Slot<'span'>;
|
|
22
22
|
/**
|
|
23
23
|
* Secondary content rendered opposite the primary content (e.g Shortcut text)
|
|
24
24
|
*/
|
|
25
|
-
secondaryContent?:
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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:
|
|
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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuList/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuPopoverSlots = {
|
|
3
|
-
root:
|
|
3
|
+
root: Slot<'div'>;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* MenuPopover Props
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuSplitGroupSlots = {
|
|
3
|
-
root:
|
|
3
|
+
root: Slot<'div'>;
|
|
4
4
|
};
|
|
5
|
-
|
|
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.
|
|
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.
|
|
18
|
+
children: React.ReactElement | null;
|
|
19
19
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MenuItemSelectableState } from './types';
|
|
2
|
-
import type {
|
|
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<
|
|
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/
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuDividerSlots = {
|
|
3
|
-
root:
|
|
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,
|
|
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:
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuGroupHeaderSlots = {
|
|
3
|
-
root:
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuItemSlots = {
|
|
3
|
-
root:
|
|
3
|
+
root: Slot<'div'>;
|
|
4
4
|
/**
|
|
5
5
|
* Icon slot rendered before children content
|
|
6
6
|
*/
|
|
7
|
-
icon?:
|
|
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?:
|
|
12
|
+
checkmark?: Slot<'span'>;
|
|
13
13
|
/**
|
|
14
14
|
* Icon slot that shows the indicator for a submenu
|
|
15
15
|
*/
|
|
16
|
-
submenuIndicator?:
|
|
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?:
|
|
21
|
+
content?: Slot<'span'>;
|
|
22
22
|
/**
|
|
23
23
|
* Secondary content rendered opposite the primary content (e.g Shortcut text)
|
|
24
24
|
*/
|
|
25
|
-
secondaryContent?:
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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:
|
|
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
|
|
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;;
|
|
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,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuPopoverSlots = {
|
|
3
|
-
root:
|
|
3
|
+
root: Slot<'div'>;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* MenuPopover Props
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
|
2
2
|
export declare type MenuSplitGroupSlots = {
|
|
3
|
-
root:
|
|
3
|
+
root: Slot<'div'>;
|
|
4
4
|
};
|
|
5
|
-
|
|
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.
|
|
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.
|
|
18
|
+
children: React.ReactElement | null;
|
|
19
19
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MenuItemSelectableState } from './types';
|
|
2
|
-
import type {
|
|
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<
|
|
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-
|
|
3
|
+
"version": "0.0.0-nightly96d9c9354420220210.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-
|
|
32
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly96d9c9354420220210.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-
|
|
47
|
-
"@fluentui/react-context-selector": "0.0.0-
|
|
46
|
+
"@fluentui/keyboard-keys": "0.0.0-nightly96d9c9354420220210.1",
|
|
47
|
+
"@fluentui/react-context-selector": "0.0.0-nightly96d9c9354420220210.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-
|
|
51
|
-
"@fluentui/react-positioning": "0.0.0-
|
|
52
|
-
"@fluentui/react-shared-contexts": "0.0.0-
|
|
53
|
-
"@fluentui/react-tabster": "0.0.0-
|
|
54
|
-
"@fluentui/react-utilities": "0.0.0-
|
|
50
|
+
"@fluentui/react-portal": "0.0.0-nightly96d9c9354420220210.1",
|
|
51
|
+
"@fluentui/react-positioning": "0.0.0-nightly96d9c9354420220210.1",
|
|
52
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly96d9c9354420220210.1",
|
|
53
|
+
"@fluentui/react-tabster": "0.0.0-nightly96d9c9354420220210.1",
|
|
54
|
+
"@fluentui/react-utilities": "0.0.0-nightly96d9c9354420220210.1",
|
|
55
55
|
"tslib": "^2.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|