@fluentui/react-menu 9.0.0-rc.3 → 9.0.0-rc.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/CHANGELOG.json +210 -1
  2. package/CHANGELOG.md +53 -2
  3. package/dist/react-menu.d.ts +46 -0
  4. package/lib/components/MenuDivider/useMenuDividerStyles.d.ts +6 -1
  5. package/lib/components/MenuDivider/useMenuDividerStyles.js +8 -1
  6. package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  7. package/lib/components/MenuGroup/useMenuGroupStyles.d.ts +6 -1
  8. package/lib/components/MenuGroup/useMenuGroupStyles.js +8 -1
  9. package/lib/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  10. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +6 -1
  11. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +8 -1
  12. package/lib/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  13. package/lib/components/MenuItem/useMenuItemStyles.d.ts +6 -1
  14. package/lib/components/MenuItem/useMenuItemStyles.js +50 -14
  15. package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
  16. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +6 -0
  17. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +29 -1
  18. package/lib/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  19. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +6 -0
  20. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js +29 -1
  21. package/lib/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  22. package/lib/components/MenuList/useMenuListStyles.d.ts +6 -1
  23. package/lib/components/MenuList/useMenuListStyles.js +8 -1
  24. package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
  25. package/lib/components/MenuPopover/useMenuPopoverStyles.d.ts +6 -1
  26. package/lib/components/MenuPopover/useMenuPopoverStyles.js +8 -1
  27. package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  28. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -1
  29. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js +9 -2
  30. package/lib/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  31. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.d.ts +6 -1
  32. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js +9 -2
  33. package/lib-commonjs/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
  34. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.d.ts +6 -1
  35. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js +9 -2
  36. package/lib-commonjs/components/MenuGroup/useMenuGroupStyles.js.map +1 -1
  37. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.d.ts +6 -1
  38. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js +9 -2
  39. package/lib-commonjs/components/MenuGroupHeader/useMenuGroupHeaderStyles.js.map +1 -1
  40. package/lib-commonjs/components/MenuItem/useMenuItemStyles.d.ts +6 -1
  41. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +51 -15
  42. package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
  43. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.d.ts +6 -0
  44. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js +30 -2
  45. package/lib-commonjs/components/MenuItemCheckbox/useMenuItemCheckboxStyles.js.map +1 -1
  46. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.d.ts +6 -0
  47. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js +30 -2
  48. package/lib-commonjs/components/MenuItemRadio/useMenuItemRadioStyles.js.map +1 -1
  49. package/lib-commonjs/components/MenuList/useMenuListStyles.d.ts +6 -1
  50. package/lib-commonjs/components/MenuList/useMenuListStyles.js +9 -2
  51. package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
  52. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.d.ts +6 -1
  53. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +9 -2
  54. package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
  55. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.d.ts +6 -1
  56. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js +9 -2
  57. package/lib-commonjs/components/MenuSplitGroup/useMenuSplitGroupStyles.js.map +1 -1
  58. package/package.json +20 -22
package/CHANGELOG.json CHANGED
@@ -2,7 +2,216 @@
2
2
  "name": "@fluentui/react-menu",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 18 Feb 2022 13:33:47 GMT",
5
+ "date": "Tue, 19 Apr 2022 19:13:55 GMT",
6
+ "tag": "@fluentui/react-menu_v9.0.0-rc.6",
7
+ "version": "9.0.0-rc.6",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "gcox@microsoft.com",
12
+ "package": "@fluentui/react-menu",
13
+ "commit": "966ed6ca242079a1865d0011972205afba1ab85d",
14
+ "comment": "fix(MenuItem): Alignment for non v9 icons"
15
+ },
16
+ {
17
+ "author": "olfedias@microsoft.com",
18
+ "package": "@fluentui/react-menu",
19
+ "commit": "e569d6e04d83cbcc6225e61db52ff81d2addd363",
20
+ "comment": "chore: Update Griffel to latest version"
21
+ },
22
+ {
23
+ "author": "seanmonahan@microsoft.com",
24
+ "package": "@fluentui/react-menu",
25
+ "commit": "086a675fd0c648944ff4048450190a0a13467de3",
26
+ "comment": "Add static classnames to Menu"
27
+ },
28
+ {
29
+ "author": "seanmonahan@microsoft.com",
30
+ "package": "@fluentui/react-menu",
31
+ "commit": "bea6aecfed8612f7b0664ab8bac77c5fccee1efb",
32
+ "comment": "update react-icons version to ^2.0.166-rc.3 from ^2.0.159-beta.10"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-menu",
37
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.6",
38
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-menu",
43
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.6",
44
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-menu",
49
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.6",
50
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-menu",
55
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.5",
56
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-menu",
61
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.6",
62
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-menu",
67
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.5",
68
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-menu",
73
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
74
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-menu",
79
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4",
80
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
81
+ }
82
+ ],
83
+ "none": [
84
+ {
85
+ "author": "lingfangao@hotmail.com",
86
+ "package": "@fluentui/react-menu",
87
+ "commit": "67dd475e49182d17dbf7d9195c5df9bce02b7b3c",
88
+ "comment": "chore: Update e2e tests to use cypress component testing"
89
+ },
90
+ {
91
+ "author": "mgodbolt@microsoft.com",
92
+ "package": "@fluentui/react-menu",
93
+ "commit": "905e46db07ada986fd7885531f72a71b7bbaabdc",
94
+ "comment": "create v9 api extractor config and set all v9 packags to use it, suppress forgotten export"
95
+ },
96
+ {
97
+ "author": "elcraig@microsoft.com",
98
+ "package": "@fluentui/react-menu",
99
+ "commit": "b7f17e976f9e058f39c9fce4f0f9bb6eb4dfa577",
100
+ "comment": "Update React dev deps and hoist them to the repo root"
101
+ }
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "date": "Fri, 04 Mar 2022 05:17:38 GMT",
107
+ "tag": "@fluentui/react-menu_v9.0.0-rc.5",
108
+ "version": "9.0.0-rc.5",
109
+ "comments": {
110
+ "prerelease": [
111
+ {
112
+ "author": "dzearing@microsoft.com",
113
+ "package": "@fluentui/react-menu",
114
+ "commit": "f2f1c0ea948cc3517eeb442c05433eb0918def29",
115
+ "comment": "Adding explicit export maps on all consumer packages for FUIR 8 and 9."
116
+ },
117
+ {
118
+ "author": "beachball",
119
+ "package": "@fluentui/react-menu",
120
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.4",
121
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
122
+ },
123
+ {
124
+ "author": "beachball",
125
+ "package": "@fluentui/react-menu",
126
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.5",
127
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
128
+ },
129
+ {
130
+ "author": "beachball",
131
+ "package": "@fluentui/react-menu",
132
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.5",
133
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
134
+ },
135
+ {
136
+ "author": "beachball",
137
+ "package": "@fluentui/react-menu",
138
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.5",
139
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
140
+ },
141
+ {
142
+ "author": "beachball",
143
+ "package": "@fluentui/react-menu",
144
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.4",
145
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
146
+ },
147
+ {
148
+ "author": "beachball",
149
+ "package": "@fluentui/react-menu",
150
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.5",
151
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
152
+ },
153
+ {
154
+ "author": "beachball",
155
+ "package": "@fluentui/react-menu",
156
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.4",
157
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
158
+ },
159
+ {
160
+ "author": "beachball",
161
+ "package": "@fluentui/react-menu",
162
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.5",
163
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ {
169
+ "date": "Tue, 01 Mar 2022 02:17:37 GMT",
170
+ "tag": "@fluentui/react-menu_v9.0.0-rc.4",
171
+ "version": "9.0.0-rc.4",
172
+ "comments": {
173
+ "prerelease": [
174
+ {
175
+ "author": "olfedias@microsoft.com",
176
+ "package": "@fluentui/react-menu",
177
+ "commit": "084d7408855f3e52b67cbca172da1acef9dcb98f",
178
+ "comment": "fix: Add react-theme as dependency"
179
+ },
180
+ {
181
+ "author": "beachball",
182
+ "package": "@fluentui/react-menu",
183
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.4",
184
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
185
+ },
186
+ {
187
+ "author": "beachball",
188
+ "package": "@fluentui/react-menu",
189
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.4",
190
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
191
+ },
192
+ {
193
+ "author": "beachball",
194
+ "package": "@fluentui/react-menu",
195
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.4",
196
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
197
+ },
198
+ {
199
+ "author": "beachball",
200
+ "package": "@fluentui/react-menu",
201
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.4",
202
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
203
+ },
204
+ {
205
+ "author": "beachball",
206
+ "package": "@fluentui/react-menu",
207
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
208
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
209
+ }
210
+ ]
211
+ }
212
+ },
213
+ {
214
+ "date": "Fri, 18 Feb 2022 13:35:33 GMT",
6
215
  "tag": "@fluentui/react-menu_v9.0.0-rc.3",
7
216
  "version": "9.0.0-rc.3",
8
217
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,63 @@
1
1
  # Change Log - @fluentui/react-menu
2
2
 
3
- This log was last generated on Fri, 18 Feb 2022 13:33:47 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 19 Apr 2022 19:13:55 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-rc.6)
8
+
9
+ Tue, 19 Apr 2022 19:13:55 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-rc.5..@fluentui/react-menu_v9.0.0-rc.6)
11
+
12
+ ### Changes
13
+
14
+ - fix(MenuItem): Alignment for non v9 icons ([PR #21949](https://github.com/microsoft/fluentui/pull/21949) by gcox@microsoft.com)
15
+ - chore: Update Griffel to latest version ([PR #21976](https://github.com/microsoft/fluentui/pull/21976) by olfedias@microsoft.com)
16
+ - Add static classnames to Menu ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
17
+ - update react-icons version to ^2.0.166-rc.3 from ^2.0.159-beta.10 ([PR #22512](https://github.com/microsoft/fluentui/pull/22512) by seanmonahan@microsoft.com)
18
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
19
+ - Bump @fluentui/react-portal to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
20
+ - Bump @fluentui/react-positioning to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
21
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.5 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
22
+ - Bump @fluentui/react-tabster to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
23
+ - Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
24
+ - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
25
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
26
+
27
+ ## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-rc.5)
28
+
29
+ Fri, 04 Mar 2022 05:17:38 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-rc.4..@fluentui/react-menu_v9.0.0-rc.5)
31
+
32
+ ### Changes
33
+
34
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
35
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
36
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
37
+ - Bump @fluentui/react-portal to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
38
+ - Bump @fluentui/react-positioning to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
39
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
40
+ - Bump @fluentui/react-tabster to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
41
+ - Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
42
+ - Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
43
+
44
+ ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-rc.4)
45
+
46
+ Tue, 01 Mar 2022 02:17:37 GMT
47
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-rc.3..@fluentui/react-menu_v9.0.0-rc.4)
48
+
49
+ ### Changes
50
+
51
+ - fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
52
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
53
+ - Bump @fluentui/react-portal to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
54
+ - Bump @fluentui/react-positioning to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
55
+ - Bump @fluentui/react-tabster to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
56
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
57
+
7
58
  ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-rc.3)
8
59
 
9
- Fri, 18 Feb 2022 13:33:47 GMT
60
+ Fri, 18 Feb 2022 13:35:33 GMT
10
61
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-rc.1..@fluentui/react-menu_v9.0.0-rc.3)
11
62
 
12
63
  ### Changes
@@ -7,6 +7,7 @@ import type { ForwardRefComponent } from '@fluentui/react-utilities';
7
7
  import { PositioningShorthand } from '@fluentui/react-positioning';
8
8
  import * as React_2 from 'react';
9
9
  import type { Slot } from '@fluentui/react-utilities';
10
+ import type { SlotClassNames } from '@fluentui/react-utilities';
10
11
  import { usePopperMouseTarget } from '@fluentui/react-positioning';
11
12
 
12
13
  /**
@@ -78,8 +79,13 @@ export declare type MenuContextValues = {
78
79
  */
79
80
  export declare const MenuDivider: ForwardRefComponent<MenuDividerProps>;
80
81
 
82
+ /**
83
+ * @deprecated Use `menuDividerClassNames.root` instead.
84
+ */
81
85
  export declare const menuDividerClassName = "fui-MenuDivider";
82
86
 
87
+ export declare const menuDividerClassNames: SlotClassNames<MenuDividerSlots>;
88
+
83
89
  export declare type MenuDividerProps = ComponentProps<MenuDividerSlots>;
84
90
 
85
91
  export declare type MenuDividerSlots = {
@@ -93,8 +99,13 @@ export declare type MenuDividerState = ComponentState<MenuDividerSlots>;
93
99
  */
94
100
  export declare const MenuGroup: ForwardRefComponent<MenuGroupProps>;
95
101
 
102
+ /**
103
+ * @deprecated Use `menuGroupClassNames.root` instead.
104
+ */
96
105
  export declare const menuGroupClassName = "fui-MenuGroup";
97
106
 
107
+ export declare const menuGroupClassNames: SlotClassNames<MenuGroupSlots>;
108
+
98
109
  export declare const MenuGroupContextProvider: React_2.Provider<MenuGroupContextValue>;
99
110
 
100
111
  /**
@@ -117,8 +128,13 @@ export declare type MenuGroupContextValues = {
117
128
  */
118
129
  export declare const MenuGroupHeader: ForwardRefComponent<MenuGroupHeaderProps>;
119
130
 
131
+ /**
132
+ * @deprecated Use `menuGroupHeaderClassNames.root` instead.
133
+ */
120
134
  export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
121
135
 
136
+ export declare const menuGroupHeaderClassNames: SlotClassNames<MenuGroupHeaderSlots>;
137
+
122
138
  export declare type MenuGroupHeaderProps = ComponentProps<MenuGroupHeaderSlots>;
123
139
 
124
140
  export declare type MenuGroupHeaderSlots = {
@@ -150,14 +166,24 @@ export declare const MenuItem: ForwardRefComponent<MenuItemProps>;
150
166
  */
151
167
  export declare const MenuItemCheckbox: ForwardRefComponent<MenuItemCheckboxProps>;
152
168
 
169
+ /**
170
+ * @deprecated Use `menuItemCheckboxClassNames.root` instead.
171
+ */
153
172
  export declare const menuItemCheckboxClassName = "fui-MenuItemCheckbox";
154
173
 
174
+ export declare const menuItemCheckboxClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>>;
175
+
155
176
  export declare type MenuItemCheckboxProps = MenuItemProps & MenuItemSelectableProps;
156
177
 
157
178
  export declare type MenuItemCheckboxState = MenuItemState & MenuItemSelectableState;
158
179
 
180
+ /**
181
+ * @deprecated Use `menuItemClassNames.root` instead.
182
+ */
159
183
  export declare const menuItemClassName = "fui-MenuItem";
160
184
 
185
+ export declare const menuItemClassNames: SlotClassNames<MenuItemSlots>;
186
+
161
187
  declare type MenuItemCommons = {
162
188
  /**
163
189
  * If the menu item is a trigger for a submenu
@@ -180,8 +206,13 @@ export declare type MenuItemProps = ComponentProps<Partial<MenuItemSlots>> & Men
180
206
  */
181
207
  export declare const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;
182
208
 
209
+ /**
210
+ * @deprecated Use `menuItemRadioClassNames.root` instead.
211
+ */
183
212
  export declare const menuItemRadioClassName = "fui-MenuItemRadio";
184
213
 
214
+ export declare const menuItemRadioClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>>;
215
+
185
216
  export declare type MenuItemRadioProps = MenuItemProps & MenuItemSelectableProps;
186
217
 
187
218
  export declare type MenuItemRadioState = MenuItemState & MenuItemSelectableState;
@@ -253,8 +284,13 @@ export declare type MenuItemState = ComponentState<MenuItemSlots> & MenuItemComm
253
284
  */
254
285
  export declare const MenuList: ForwardRefComponent<MenuListProps>;
255
286
 
287
+ /**
288
+ * @deprecated Use `menuListClassNames.root` instead.
289
+ */
256
290
  export declare const menuListClassName = "fui-MenuList";
257
291
 
292
+ export declare const menuListClassNames: SlotClassNames<MenuListSlots>;
293
+
258
294
  declare type MenuListCommons = {
259
295
  /**
260
296
  * Callback when checked items change for value with a name
@@ -341,8 +377,13 @@ export declare type MenuOpenEvents = MouseEvent | TouchEvent | React_2.MouseEven
341
377
  */
342
378
  export declare const MenuPopover: ForwardRefComponent<MenuPopoverProps>;
343
379
 
380
+ /**
381
+ * @deprecated Use `menuPopoverClassNames.root` instead.
382
+ */
344
383
  export declare const menuPopoverClassName = "fui-MenuPopover";
345
384
 
385
+ export declare const menuPopoverClassNames: SlotClassNames<MenuPopoverSlots>;
386
+
346
387
  /**
347
388
  * MenuPopover Props
348
389
  */
@@ -387,8 +428,13 @@ export declare type MenuSlots = {};
387
428
  */
388
429
  export declare const MenuSplitGroup: ForwardRefComponent<MenuSplitGroupProps>;
389
430
 
431
+ /**
432
+ * @deprecated Use `menuSplitGroupClassNames.root` instead.
433
+ */
390
434
  export declare const menuSplitGroupClassName = "fui-MenuSplitGroup";
391
435
 
436
+ export declare const menuSplitGroupClassNames: SlotClassNames<MenuSplitGroupSlots>;
437
+
392
438
  declare type MenuSplitGroupCommons = {};
393
439
 
394
440
  /**
@@ -1,3 +1,8 @@
1
- import type { MenuDividerState } from './MenuDivider.types';
1
+ import type { MenuDividerSlots, MenuDividerState } from './MenuDivider.types';
2
+ import type { SlotClassNames } from '@fluentui/react-utilities';
3
+ /**
4
+ * @deprecated Use `menuDividerClassNames.root` instead.
5
+ */
2
6
  export declare const menuDividerClassName = "fui-MenuDivider";
7
+ export declare const menuDividerClassNames: SlotClassNames<MenuDividerSlots>;
3
8
  export declare const useMenuDividerStyles_unstable: (state: MenuDividerState) => MenuDividerState;
@@ -1,6 +1,13 @@
1
1
  import { shorthands, mergeClasses, __styles } from '@griffel/react';
2
2
  import { tokens } from '@fluentui/react-theme';
3
+ /**
4
+ * @deprecated Use `menuDividerClassNames.root` instead.
5
+ */
6
+
3
7
  export const menuDividerClassName = 'fui-MenuDivider';
8
+ export const menuDividerClassNames = {
9
+ root: 'fui-MenuDivider'
10
+ };
4
11
 
5
12
  const useStyles = /*#__PURE__*/__styles({
6
13
  "root": {
@@ -18,7 +25,7 @@ const useStyles = /*#__PURE__*/__styles({
18
25
 
19
26
  export const useMenuDividerStyles_unstable = state => {
20
27
  const styles = useStyles();
21
- state.root.className = mergeClasses(menuDividerClassName, styles.root, state.root.className);
28
+ state.root.className = mergeClasses(menuDividerClassNames.root, styles.root, state.root.className);
22
29
  return state;
23
30
  };
24
31
  //# sourceMappingURL=useMenuDividerStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA4B;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourcesContent":["import { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { MenuDividerState } from './MenuDivider.types';\n\nexport const menuDividerClassName = 'fui-MenuDivider';\n\nconst useStyles = makeStyles({\n root: {\n height: '1px',\n ...shorthands.margin('4px', '-5px', '4px', '-5px'),\n width: 'auto',\n backgroundColor: tokens.colorNeutralStroke2,\n },\n});\n\nexport const useMenuDividerStyles_unstable = (state: MenuDividerState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(menuDividerClassName, styles.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,gBAArD;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAIA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;AACP,OAAO,MAAM,qBAAqB,GAAqC;AACrE,EAAA,IAAI,EAAE;AAD+D,CAAhE;;AAIP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA4B;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,qBAAqB,CAAC,IAAvB,EAA6B,MAAM,CAAC,IAApC,EAA0C,KAAK,CAAC,IAAN,CAAW,SAArD,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourcesContent":["import { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { MenuDividerSlots, MenuDividerState } from './MenuDivider.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\n/**\n * @deprecated Use `menuDividerClassNames.root` instead.\n */\nexport const menuDividerClassName = 'fui-MenuDivider';\nexport const menuDividerClassNames: SlotClassNames<MenuDividerSlots> = {\n root: 'fui-MenuDivider',\n};\n\nconst useStyles = makeStyles({\n root: {\n height: '1px',\n ...shorthands.margin('4px', '-5px', '4px', '-5px'),\n width: 'auto',\n backgroundColor: tokens.colorNeutralStroke2,\n },\n});\n\nexport const useMenuDividerStyles_unstable = (state: MenuDividerState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(menuDividerClassNames.root, styles.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1,3 +1,8 @@
1
- import type { MenuGroupState } from './MenuGroup.types';
1
+ import type { SlotClassNames } from '@fluentui/react-utilities';
2
+ import type { MenuGroupSlots, MenuGroupState } from './MenuGroup.types';
3
+ /**
4
+ * @deprecated Use `menuGroupClassNames.root` instead.
5
+ */
2
6
  export declare const menuGroupClassName = "fui-MenuGroup";
7
+ export declare const menuGroupClassNames: SlotClassNames<MenuGroupSlots>;
3
8
  export declare const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState;
@@ -1,7 +1,14 @@
1
1
  import { mergeClasses } from '@griffel/react';
2
+ /**
3
+ * @deprecated Use `menuGroupClassNames.root` instead.
4
+ */
5
+
2
6
  export const menuGroupClassName = 'fui-MenuGroup';
7
+ export const menuGroupClassNames = {
8
+ root: 'fui-MenuGroup'
9
+ };
3
10
  export const useMenuGroupStyles_unstable = state => {
4
- state.root.className = mergeClasses(menuGroupClassName, state.root.className);
11
+ state.root.className = mergeClasses(menuGroupClassNames.root, state.root.className);
5
12
  return state;
6
13
  };
7
14
  //# sourceMappingURL=useMenuGroupStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/MenuGroup/useMenuGroupStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AAEP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0C;AACnF,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,kBAAD,EAAqB,KAAK,CAAC,IAAN,CAAW,SAAhC,CAAnC;AAEA,SAAO,KAAP;AACD,CAJM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { MenuGroupState } from './MenuGroup.types';\n\nexport const menuGroupClassName = 'fui-MenuGroup';\n\nexport const useMenuGroupStyles_unstable = (state: MenuGroupState): MenuGroupState => {\n state.root.className = mergeClasses(menuGroupClassName, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/MenuGroup/useMenuGroupStyles.ts"],"names":[],"mappings":"AACA,SAAS,YAAT,QAA6B,gBAA7B;AAGA;;AAEG;;AACH,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AACP,OAAO,MAAM,mBAAmB,GAAmC;AACjE,EAAA,IAAI,EAAE;AAD2D,CAA5D;AAIP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0C;AACnF,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,mBAAmB,CAAC,IAArB,EAA2B,KAAK,CAAC,IAAN,CAAW,SAAtC,CAAnC;AAEA,SAAO,KAAP;AACD,CAJM","sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses } from '@griffel/react';\nimport type { MenuGroupSlots, MenuGroupState } from './MenuGroup.types';\n\n/**\n * @deprecated Use `menuGroupClassNames.root` instead.\n */\nexport const menuGroupClassName = 'fui-MenuGroup';\nexport const menuGroupClassNames: SlotClassNames<MenuGroupSlots> = {\n root: 'fui-MenuGroup',\n};\n\nexport const useMenuGroupStyles_unstable = (state: MenuGroupState): MenuGroupState => {\n state.root.className = mergeClasses(menuGroupClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1,3 +1,8 @@
1
- import type { MenuGroupHeaderState } from './MenuGroupHeader.types';
1
+ import type { MenuGroupHeaderSlots, MenuGroupHeaderState } from './MenuGroupHeader.types';
2
+ import type { SlotClassNames } from '@fluentui/react-utilities';
3
+ /**
4
+ * @deprecated Use `menuGroupHeaderClassNames.root` instead.
5
+ */
2
6
  export declare const menuGroupHeaderClassName = "fui-MenuGroupHeader";
7
+ export declare const menuGroupHeaderClassNames: SlotClassNames<MenuGroupHeaderSlots>;
3
8
  export declare const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => MenuGroupHeaderState;
@@ -1,6 +1,13 @@
1
1
  import { mergeClasses, __styles } from '@griffel/react';
2
2
  import { tokens } from '@fluentui/react-theme';
3
+ /**
4
+ * @deprecated Use `menuGroupHeaderClassNames.root` instead.
5
+ */
6
+
3
7
  export const menuGroupHeaderClassName = 'fui-MenuGroupHeader';
8
+ export const menuGroupHeaderClassNames = {
9
+ root: 'fui-MenuGroupHeader'
10
+ };
4
11
 
5
12
  const useStyles = /*#__PURE__*/__styles({
6
13
  "root": {
@@ -19,7 +26,7 @@ const useStyles = /*#__PURE__*/__styles({
19
26
 
20
27
  export const useMenuGroupHeaderStyles_unstable = state => {
21
28
  const styles = useStyles();
22
- state.root.className = mergeClasses(menuGroupHeaderClassName, styles.root, state.root.className);
29
+ state.root.className = mergeClasses(menuGroupHeaderClassNames.root, styles.root, state.root.className);
23
30
  return state;
24
31
  };
25
32
  //# sourceMappingURL=useMenuGroupHeaderStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/MenuGroupHeader/useMenuGroupHeaderStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,gBAAzC;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,wBAAwB,GAAG,qBAAjC;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AAaA,OAAO,MAAM,iCAAiC,GAAI,KAAD,IAAgC;AAC/E,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,wBAAD,EAA2B,MAAM,CAAC,IAAlC,EAAwC,KAAK,CAAC,IAAN,CAAW,SAAnD,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourcesContent":["import { mergeClasses, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { MenuGroupHeaderState } from './MenuGroupHeader.types';\n\nexport const menuGroupHeaderClassName = 'fui-MenuGroupHeader';\n\nconst useStyles = makeStyles({\n root: {\n fontSize: tokens.fontSizeBase200,\n color: tokens.colorNeutralForeground3,\n paddingLeft: '12px',\n paddingRight: '12px',\n fontWeight: tokens.fontWeightSemibold,\n height: '32px',\n display: 'flex',\n alignItems: 'center',\n },\n});\n\nexport const useMenuGroupHeaderStyles_unstable = (state: MenuGroupHeaderState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(menuGroupHeaderClassName, styles.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/MenuGroupHeader/useMenuGroupHeaderStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,kBAAyC,gBAAzC;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAIA;;AAEG;;AACH,OAAO,MAAM,wBAAwB,GAAG,qBAAjC;AACP,OAAO,MAAM,yBAAyB,GAAyC;AAC7E,EAAA,IAAI,EAAE;AADuE,CAAxE;;AAIP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AAaA,OAAO,MAAM,iCAAiC,GAAI,KAAD,IAAgC;AAC/E,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,yBAAyB,CAAC,IAA3B,EAAiC,MAAM,CAAC,IAAxC,EAA8C,KAAK,CAAC,IAAN,CAAW,SAAzD,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourcesContent":["import { mergeClasses, makeStyles } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { MenuGroupHeaderSlots, MenuGroupHeaderState } from './MenuGroupHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\n/**\n * @deprecated Use `menuGroupHeaderClassNames.root` instead.\n */\nexport const menuGroupHeaderClassName = 'fui-MenuGroupHeader';\nexport const menuGroupHeaderClassNames: SlotClassNames<MenuGroupHeaderSlots> = {\n root: 'fui-MenuGroupHeader',\n};\n\nconst useStyles = makeStyles({\n root: {\n fontSize: tokens.fontSizeBase200,\n color: tokens.colorNeutralForeground3,\n paddingLeft: '12px',\n paddingRight: '12px',\n fontWeight: tokens.fontWeightSemibold,\n height: '32px',\n display: 'flex',\n alignItems: 'center',\n },\n});\n\nexport const useMenuGroupHeaderStyles_unstable = (state: MenuGroupHeaderState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(menuGroupHeaderClassNames.root, styles.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1,4 +1,9 @@
1
- import type { MenuItemState } from './MenuItem.types';
1
+ import type { MenuItemSlots, MenuItemState } from './MenuItem.types';
2
+ import type { SlotClassNames } from '@fluentui/react-utilities';
3
+ /**
4
+ * @deprecated Use `menuItemClassNames.root` instead.
5
+ */
2
6
  export declare const menuItemClassName = "fui-MenuItem";
7
+ export declare const menuItemClassNames: SlotClassNames<MenuItemSlots>;
3
8
  /** Applies style classnames to slots */
4
9
  export declare const useMenuItemStyles_unstable: (state: MenuItemState) => void;