@fluentui/react-menu 0.0.0-nightly8faa94d11420211118.1 → 0.0.0-nightlya0ab3454ed20211208.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 +127 -26
- package/CHANGELOG.md +38 -16
- package/lib/components/MenuDivider/useMenuDividerStyles.js +1 -1
- package/lib/components/MenuDivider/useMenuDividerStyles.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +0 -2
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/useMenuItemStyles.js +11 -4
- package/lib/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib/components/MenuList/useMenuListStyles.js +4 -3
- package/lib/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib/components/MenuPopover/useMenuPopoverStyles.js +6 -3
- package/lib/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/lib-commonjs/components/MenuItem/MenuItem.js +0 -3
- package/lib-commonjs/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js +11 -3
- package/lib-commonjs/components/MenuItem/useMenuItemStyles.js.map +1 -1
- package/lib-commonjs/components/MenuList/useMenuListStyles.js +3 -2
- package/lib-commonjs/components/MenuList/useMenuListStyles.js.map +1 -1
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js +5 -2
- package/lib-commonjs/components/MenuPopover/useMenuPopoverStyles.js.map +1 -1
- package/package.json +16 -15
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib/common/mockUseMenuContext.d.ts +0 -7
- package/lib/common/mockUseMenuContext.js +0 -29
- package/lib/common/mockUseMenuContext.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/mockUseMenuContext.d.ts +0 -7
- package/lib-commonjs/common/mockUseMenuContext.js +0 -39
- package/lib-commonjs/common/mockUseMenuContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,82 +2,183 @@
|
|
|
2
2
|
"name": "@fluentui/react-menu",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-menu_v0.0.0-
|
|
7
|
-
"version": "0.0.0-
|
|
5
|
+
"date": "Wed, 08 Dec 2021 04:18:24 GMT",
|
|
6
|
+
"tag": "@fluentui/react-menu_v0.0.0-nightlya0ab3454ed20211208.1",
|
|
7
|
+
"version": "0.0.0-nightlya0ab3454ed20211208.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": "bb962fc41a7769ab102b88c7cc76973034ede2d1",
|
|
14
14
|
"comment": "Release nightly v9"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"author": "olfedias@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-menu",
|
|
19
|
+
"commit": "7e0933ed386742df28c416e6b3a6903a0c041f28",
|
|
20
|
+
"comment": "update styles to not use CSS shorthands"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "lingfangao@hotmail.com",
|
|
24
|
+
"package": "@fluentui/react-menu",
|
|
25
|
+
"commit": "4121754498bba5137f769295e2b7a2899f557278",
|
|
26
|
+
"comment": "fix: Call `useCheckmarkStyles` in `useMenuItemStyles`"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "ololubek@microsoft.com",
|
|
30
|
+
"package": "@fluentui/react-menu",
|
|
31
|
+
"commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
|
|
32
|
+
"comment": "(fix): Update react-icons dependency to latest version"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-menu",
|
|
37
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
38
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-menu",
|
|
43
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
44
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-menu",
|
|
49
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
50
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui/react-menu",
|
|
55
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
56
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui/react-menu",
|
|
61
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
62
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui/react-menu",
|
|
67
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
68
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui/react-menu",
|
|
73
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
74
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@fluentui/react-menu",
|
|
79
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
80
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@fluentui/react-menu",
|
|
85
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
86
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@fluentui/react-menu",
|
|
91
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
92
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
93
|
+
},
|
|
16
94
|
{
|
|
17
95
|
"author": "beachball",
|
|
18
96
|
"package": "@fluentui/react-menu",
|
|
19
|
-
"comment": "Bump @fluentui/
|
|
20
|
-
"commit": "
|
|
97
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya0ab3454ed20211208.1",
|
|
98
|
+
"commit": "bb962fc41a7769ab102b88c7cc76973034ede2d1"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"date": "Thu, 25 Nov 2021 08:34:14 GMT",
|
|
105
|
+
"tag": "@fluentui/react-menu_v9.0.0-beta.5",
|
|
106
|
+
"version": "9.0.0-beta.5",
|
|
107
|
+
"comments": {
|
|
108
|
+
"none": [
|
|
109
|
+
{
|
|
110
|
+
"author": "lingfangao@hotmail.com",
|
|
111
|
+
"package": "@fluentui/react-menu",
|
|
112
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
|
113
|
+
"comment": "Migrate package to use solution tsconfigs"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"prerelease": [
|
|
117
|
+
{
|
|
118
|
+
"author": "ololubek@microsoft.com",
|
|
119
|
+
"package": "@fluentui/react-menu",
|
|
120
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
|
121
|
+
"comment": "update react-icons dependency"
|
|
21
122
|
},
|
|
22
123
|
{
|
|
23
124
|
"author": "beachball",
|
|
24
125
|
"package": "@fluentui/react-menu",
|
|
25
|
-
"comment": "Bump @fluentui/react-context-selector to
|
|
26
|
-
"commit": "
|
|
126
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
|
|
127
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
27
128
|
},
|
|
28
129
|
{
|
|
29
130
|
"author": "beachball",
|
|
30
131
|
"package": "@fluentui/react-menu",
|
|
31
|
-
"comment": "Bump @fluentui/react-make-styles to
|
|
32
|
-
"commit": "
|
|
132
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
|
133
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
33
134
|
},
|
|
34
135
|
{
|
|
35
136
|
"author": "beachball",
|
|
36
137
|
"package": "@fluentui/react-menu",
|
|
37
|
-
"comment": "Bump @fluentui/react-portal to
|
|
38
|
-
"commit": "
|
|
138
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
|
|
139
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
39
140
|
},
|
|
40
141
|
{
|
|
41
142
|
"author": "beachball",
|
|
42
143
|
"package": "@fluentui/react-menu",
|
|
43
|
-
"comment": "Bump @fluentui/react-positioning to
|
|
44
|
-
"commit": "
|
|
144
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
|
|
145
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
45
146
|
},
|
|
46
147
|
{
|
|
47
148
|
"author": "beachball",
|
|
48
149
|
"package": "@fluentui/react-menu",
|
|
49
|
-
"comment": "Bump @fluentui/react-shared-contexts to
|
|
50
|
-
"commit": "
|
|
150
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
|
151
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
51
152
|
},
|
|
52
153
|
{
|
|
53
154
|
"author": "beachball",
|
|
54
155
|
"package": "@fluentui/react-menu",
|
|
55
|
-
"comment": "Bump @fluentui/react-tabster to
|
|
56
|
-
"commit": "
|
|
156
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
|
157
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
57
158
|
},
|
|
58
159
|
{
|
|
59
160
|
"author": "beachball",
|
|
60
161
|
"package": "@fluentui/react-menu",
|
|
61
|
-
"comment": "Bump @fluentui/react-utilities to
|
|
62
|
-
"commit": "
|
|
162
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
|
163
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
63
164
|
},
|
|
64
165
|
{
|
|
65
166
|
"author": "beachball",
|
|
66
167
|
"package": "@fluentui/react-menu",
|
|
67
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
|
68
|
-
"commit": "
|
|
168
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
|
169
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
69
170
|
},
|
|
70
171
|
{
|
|
71
172
|
"author": "beachball",
|
|
72
173
|
"package": "@fluentui/react-menu",
|
|
73
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
|
74
|
-
"commit": "
|
|
174
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
|
175
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
75
176
|
},
|
|
76
177
|
{
|
|
77
178
|
"author": "beachball",
|
|
78
179
|
"package": "@fluentui/react-menu",
|
|
79
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
|
80
|
-
"commit": "
|
|
180
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
|
181
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
81
182
|
}
|
|
82
183
|
]
|
|
83
184
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,50 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-menu
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 08 Dec 2021 04:18:24 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightlya0ab3454ed20211208.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v0.0.0-nightlya0ab3454ed20211208.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.
|
|
9
|
+
Wed, 08 Dec 2021 04:18:24 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.5..@fluentui/react-menu_v0.0.0-nightlya0ab3454ed20211208.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- Bump @fluentui/
|
|
19
|
-
- Bump @fluentui/react-
|
|
20
|
-
- Bump @fluentui/react-
|
|
21
|
-
- Bump @fluentui/react-
|
|
22
|
-
- Bump @fluentui/react-
|
|
23
|
-
- Bump @fluentui/
|
|
24
|
-
- Bump @fluentui/
|
|
25
|
-
- Bump @fluentui/react-
|
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by email not defined)
|
|
15
|
+
- update styles to not use CSS shorthands ([PR #20820](https://github.com/microsoft/fluentui/pull/20820) by olfedias@microsoft.com)
|
|
16
|
+
- fix: Call `useCheckmarkStyles` in `useMenuItemStyles` ([PR #20956](https://github.com/microsoft/fluentui/pull/20956) by lingfangao@hotmail.com)
|
|
17
|
+
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
|
18
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
19
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
20
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
21
|
+
- Bump @fluentui/react-portal to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
22
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
23
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
24
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
25
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
26
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
27
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
28
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya0ab3454ed20211208.1 ([commit](https://github.com/microsoft/fluentui/commit/bb962fc41a7769ab102b88c7cc76973034ede2d1) by beachball)
|
|
29
|
+
|
|
30
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.5)
|
|
31
|
+
|
|
32
|
+
Thu, 25 Nov 2021 08:34:14 GMT
|
|
33
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-menu_v9.0.0-beta.4..@fluentui/react-menu_v9.0.0-beta.5)
|
|
34
|
+
|
|
35
|
+
### Changes
|
|
36
|
+
|
|
37
|
+
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
|
38
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
39
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
40
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
41
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
42
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
43
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
44
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
45
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
46
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
47
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
26
48
|
|
|
27
49
|
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-menu_v9.0.0-beta.4)
|
|
28
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuDivider/useMenuDividerStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;;AASA,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA4B;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,oBAAD,EAAuB,MAAM,CAAC,IAA9B,EAAoC,KAAK,CAAC,IAAN,CAAW,SAA/C,CAAnC;AAEA,SAAO,KAAP;AACD,CALM","sourceRoot":""}
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { useMenuItem } from './useMenuItem';
|
|
3
3
|
import { renderMenuItem } from './renderMenuItem';
|
|
4
4
|
import { useMenuItemStyles } from './useMenuItemStyles';
|
|
5
|
-
import { useCheckmarkStyles } from '../../selectable/index';
|
|
6
5
|
/**
|
|
7
6
|
* Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
|
|
8
7
|
*/
|
|
@@ -10,7 +9,6 @@ import { useCheckmarkStyles } from '../../selectable/index';
|
|
|
10
9
|
export const MenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
11
10
|
const state = useMenuItem(props, ref);
|
|
12
11
|
useMenuItemStyles(state);
|
|
13
|
-
useCheckmarkStyles(state);
|
|
14
12
|
return renderMenuItem(state);
|
|
15
13
|
});
|
|
16
14
|
MenuItem.displayName = 'MenuItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,WAAT,QAA4B,eAA5B;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,iBAAT,QAAkC,qBAAlC;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,WAAT,QAA4B,eAA5B;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AAIA;;AAEG;;AACH,OAAO,MAAM,QAAQ,gBAAuC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,WAAW,CAAC,KAAD,EAAQ,GAAR,CAAzB;AAEA,EAAA,iBAAiB,CAAC,KAAD,CAAjB;AACA,SAAO,cAAc,CAAC,KAAD,CAArB;AACD,CAL2D,CAArD;AAOP,QAAQ,CAAC,WAAT,GAAuB,UAAvB","sourceRoot":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
|
1
|
+
import { mergeClasses, __styles, shorthands } from '@fluentui/react-make-styles';
|
|
2
2
|
import { createFocusOutlineStyle } from '@fluentui/react-tabster';
|
|
3
|
+
import { useCheckmarkStyles } from '../../selectable/index';
|
|
3
4
|
export const menuItemClassName = 'fui-MenuItem';
|
|
4
5
|
|
|
5
6
|
const useStyles = /*#__PURE__*/__styles({
|
|
@@ -33,7 +34,10 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
33
34
|
"B1a67j7": ["f12y1wz2", "fvabyfg"]
|
|
34
35
|
},
|
|
35
36
|
"root": {
|
|
36
|
-
"
|
|
37
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
|
38
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
|
39
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
|
40
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
|
37
41
|
"qhf8xq": "f10pi13n",
|
|
38
42
|
"sj55zd": "f19n0e5",
|
|
39
43
|
"De3pzq": "fxugw4r",
|
|
@@ -44,7 +48,8 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
44
48
|
"Bt984gj": "f122n59",
|
|
45
49
|
"Be2twd7": "fkhj508",
|
|
46
50
|
"Bceei9c": "f1k6fduh",
|
|
47
|
-
"
|
|
51
|
+
"i8kkvl": "f1q8lukm",
|
|
52
|
+
"Belr9w4": "f1ma2n7n",
|
|
48
53
|
"Jwef8y": "f1knas48",
|
|
49
54
|
"Bi91k9c": "fnwyq0v",
|
|
50
55
|
"famaaq": "f1xqy1su"
|
|
@@ -77,7 +82,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
77
82
|
}
|
|
78
83
|
}, {
|
|
79
84
|
"i": [".f2hkw1w:focus-visible{outline-style:none;}"],
|
|
80
|
-
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fmqgchs:focus:after{border-top-style:solid;}", "[data-keyboard-nav] .f1lv6wi8:focus:after{border-right-style:solid;}", "[data-keyboard-nav] .famjx04:focus:after{border-left-style:solid;}", "[data-keyboard-nav] .f1nbyjd2:focus:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f5n18is:focus:after{border-top-width:2px;}", "[data-keyboard-nav] .f13az7yk:focus:after{border-right-width:2px;}", "[data-keyboard-nav] .f14kwzu1:focus:after{border-left-width:2px;}", "[data-keyboard-nav] .fneogx5:focus:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1f43d5r:focus:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1ib27sc:focus:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f14s7j5v:focus:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f13oqbgc:focus:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".
|
|
85
|
+
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fmqgchs:focus:after{border-top-style:solid;}", "[data-keyboard-nav] .f1lv6wi8:focus:after{border-right-style:solid;}", "[data-keyboard-nav] .famjx04:focus:after{border-left-style:solid;}", "[data-keyboard-nav] .f1nbyjd2:focus:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f5n18is:focus:after{border-top-width:2px;}", "[data-keyboard-nav] .f13az7yk:focus:after{border-right-width:2px;}", "[data-keyboard-nav] .f14kwzu1:focus:after{border-left-width:2px;}", "[data-keyboard-nav] .fneogx5:focus:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1f43d5r:focus:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1ib27sc:focus:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f14s7j5v:focus:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f13oqbgc:focus:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".f1d2rq10{height:32px;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1k6fduh{cursor:pointer;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f161knb0{padding-left:2px;}", ".f12huiiw{padding-right:2px;}", ".f3rmtva{background-color:transparent;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],
|
|
81
86
|
"h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}", ".f1jp5ecu:hover{color:var(--colorNeutralForeground3Hover);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}"],
|
|
82
87
|
"f": [".fc1cou1:focus{color:var(--colorNeutralForeground3Hover);}", ".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"]
|
|
83
88
|
});
|
|
@@ -100,5 +105,7 @@ export const useMenuItemStyles = state => {
|
|
|
100
105
|
if (state.submenuIndicator) {
|
|
101
106
|
state.submenuIndicator.className = mergeClasses(styles.submenuIndicator, state.submenuIndicator.className);
|
|
102
107
|
}
|
|
108
|
+
|
|
109
|
+
useCheckmarkStyles(state);
|
|
103
110
|
};
|
|
104
111
|
//# sourceMappingURL=useMenuItemStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuItem/useMenuItemStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuItem/useMenuItemStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,YAAmC,UAAnC,QAAqD,6BAArD;AACA,SAAS,uBAAT,QAAwC,yBAAxC;AACA,SAAS,kBAAT,QAAmC,wBAAnC;AAIA,OAAO,MAAM,iBAAiB,GAAG,cAA1B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA4DA;;;AACA,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAAyB;AACxD,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,iBADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,MAAM,CAAC,cAH0B,EAIjC,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJQ,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;AAOA,EAAA,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,YAAY,CAAC,MAAM,CAAC,OAAR,EAAiB,KAAK,CAAC,OAAN,CAAc,SAA/B,CAAtC;;AACA,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,YAAY,CAC7C,CAAC,KAAK,CAAC,QAAP,IAAmB,MAAM,CAAC,gBADmB,EAE7C,KAAK,CAAC,gBAAN,CAAuB,SAFsB,CAA/C;AAID;;AAED,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,MAAM,CAAC,IAAR,EAAc,KAAK,CAAC,IAAN,CAAW,SAAzB,CAAnC;AACD;;AAED,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,YAAY,CAAC,MAAM,CAAC,gBAAR,EAA0B,KAAK,CAAC,gBAAN,CAAuB,SAAjD,CAA/C;AACD;;AACD,EAAA,kBAAkB,CAAC,KAAD,CAAlB;AACD,CAzBM","sourceRoot":""}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
|
1
|
+
import { mergeClasses, __styles, shorthands } from '@fluentui/react-make-styles';
|
|
2
2
|
export const menuListClassName = 'fui-MenuList';
|
|
3
3
|
|
|
4
4
|
const useStyles = /*#__PURE__*/__styles({
|
|
5
5
|
"root": {
|
|
6
6
|
"mc9l5x": "f22iagw",
|
|
7
7
|
"Beiy3e4": "f1vx9l62",
|
|
8
|
-
"
|
|
8
|
+
"i8kkvl": "f16mnhsx",
|
|
9
|
+
"Belr9w4": "fbi42co"
|
|
9
10
|
}
|
|
10
11
|
}, {
|
|
11
|
-
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".
|
|
12
|
+
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16mnhsx{-webkit-column-gap:2px;column-gap:2px;}", ".fbi42co{row-gap:2px;}"]
|
|
12
13
|
});
|
|
13
14
|
/**
|
|
14
15
|
* Apply styling to the Menu slots based on the state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,YAAmC,UAAnC,QAAqD,6BAArD;AAGA,OAAO,MAAM,iBAAiB,GAAG,cAA1B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAAwC;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,iBAAD,EAAoB,MAAM,CAAC,IAA3B,EAAiC,KAAK,CAAC,IAAN,CAAW,SAA5C,CAAnC;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
|
1
|
+
import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
|
|
2
2
|
export const menuPopoverClassName = 'fui-MenuPopover';
|
|
3
3
|
|
|
4
4
|
const useStyles = /*#__PURE__*/__styles({
|
|
5
5
|
"root": {
|
|
6
|
-
"
|
|
6
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
|
7
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
|
8
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
|
9
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
|
7
10
|
"De3pzq": "fxugw4r",
|
|
8
11
|
"Bf4jedk": "fkqu4gx",
|
|
9
12
|
"B2u0y6b": "f1kaai3v",
|
|
@@ -27,7 +30,7 @@ const useStyles = /*#__PURE__*/__styles({
|
|
|
27
30
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
|
28
31
|
}
|
|
29
32
|
}, {
|
|
30
|
-
"d": [".
|
|
33
|
+
"d": [".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkqu4gx{min-width:128px;}", ".f1kaai3v{max-width:300px;}", ".f1ahpp82{width:-webkit-max-content;width:-moz-max-content;width:max-content;}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}"]
|
|
31
34
|
});
|
|
32
35
|
/**
|
|
33
36
|
* Apply styling to the Menu slots based on the state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":"AAAA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AAGA,OAAO,MAAM,oBAAoB,GAAG,iBAA7B;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAaA;;AAEG;;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA8C;AAChF,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;AACA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
|
|
@@ -12,8 +12,6 @@ const useMenuItem_1 = /*#__PURE__*/require("./useMenuItem");
|
|
|
12
12
|
const renderMenuItem_1 = /*#__PURE__*/require("./renderMenuItem");
|
|
13
13
|
|
|
14
14
|
const useMenuItemStyles_1 = /*#__PURE__*/require("./useMenuItemStyles");
|
|
15
|
-
|
|
16
|
-
const index_1 = /*#__PURE__*/require("../../selectable/index");
|
|
17
15
|
/**
|
|
18
16
|
* Define a styled MenuItem, using the `useMenuItem` and `useMenuItemStyles` hook.
|
|
19
17
|
*/
|
|
@@ -22,7 +20,6 @@ const index_1 = /*#__PURE__*/require("../../selectable/index");
|
|
|
22
20
|
exports.MenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
23
21
|
const state = useMenuItem_1.useMenuItem(props, ref);
|
|
24
22
|
useMenuItemStyles_1.useMenuItemStyles(state);
|
|
25
|
-
index_1.useCheckmarkStyles(state);
|
|
26
23
|
return renderMenuItem_1.renderMenuItem(state);
|
|
27
24
|
});
|
|
28
25
|
exports.MenuItem.displayName = 'MenuItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuItem/MenuItem.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,QAAA,gBAA+C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC1F,QAAM,KAAK,GAAG,aAAA,CAAA,WAAA,CAAY,KAAZ,EAAmB,GAAnB,CAAd;AAEA,EAAA,mBAAA,CAAA,iBAAA,CAAkB,KAAlB;AACA,SAAO,gBAAA,CAAA,cAAA,CAAe,KAAf,CAAP;AACD,CAL2D,CAA/C;AAOb,OAAA,CAAA,QAAA,CAAS,WAAT,GAAuB,UAAvB","sourceRoot":""}
|
|
@@ -9,6 +9,8 @@ const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
|
|
9
9
|
|
|
10
10
|
const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
|
|
11
11
|
|
|
12
|
+
const index_1 = /*#__PURE__*/require("../../selectable/index");
|
|
13
|
+
|
|
12
14
|
exports.menuItemClassName = 'fui-MenuItem';
|
|
13
15
|
|
|
14
16
|
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
@@ -42,7 +44,10 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
|
42
44
|
"B1a67j7": ["f12y1wz2", "fvabyfg"]
|
|
43
45
|
},
|
|
44
46
|
"root": {
|
|
45
|
-
"
|
|
47
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
|
48
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
|
49
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
|
50
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
|
46
51
|
"qhf8xq": "f10pi13n",
|
|
47
52
|
"sj55zd": "f19n0e5",
|
|
48
53
|
"De3pzq": "fxugw4r",
|
|
@@ -53,7 +58,8 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
|
53
58
|
"Bt984gj": "f122n59",
|
|
54
59
|
"Be2twd7": "fkhj508",
|
|
55
60
|
"Bceei9c": "f1k6fduh",
|
|
56
|
-
"
|
|
61
|
+
"i8kkvl": "f1q8lukm",
|
|
62
|
+
"Belr9w4": "f1ma2n7n",
|
|
57
63
|
"Jwef8y": "f1knas48",
|
|
58
64
|
"Bi91k9c": "fnwyq0v",
|
|
59
65
|
"famaaq": "f1xqy1su"
|
|
@@ -86,7 +92,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
|
86
92
|
}
|
|
87
93
|
}, {
|
|
88
94
|
"i": [".f2hkw1w:focus-visible{outline-style:none;}"],
|
|
89
|
-
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fmqgchs:focus:after{border-top-style:solid;}", "[data-keyboard-nav] .f1lv6wi8:focus:after{border-right-style:solid;}", "[data-keyboard-nav] .famjx04:focus:after{border-left-style:solid;}", "[data-keyboard-nav] .f1nbyjd2:focus:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f5n18is:focus:after{border-top-width:2px;}", "[data-keyboard-nav] .f13az7yk:focus:after{border-right-width:2px;}", "[data-keyboard-nav] .f14kwzu1:focus:after{border-left-width:2px;}", "[data-keyboard-nav] .fneogx5:focus:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1f43d5r:focus:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1ib27sc:focus:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f14s7j5v:focus:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f13oqbgc:focus:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".
|
|
95
|
+
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f1pxpxw8:focus:after{content:\"\";}", "[data-keyboard-nav] .f1149fnl:focus:after{position:absolute;}", "[data-keyboard-nav] .fd1orka:focus:after{pointer-events:none;}", "[data-keyboard-nav] .fgtqheg:focus:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fq7mjg8:focus:after{z-index:1;}", "[data-keyboard-nav] .fmqgchs:focus:after{border-top-style:solid;}", "[data-keyboard-nav] .f1lv6wi8:focus:after{border-right-style:solid;}", "[data-keyboard-nav] .famjx04:focus:after{border-left-style:solid;}", "[data-keyboard-nav] .f1nbyjd2:focus:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f5n18is:focus:after{border-top-width:2px;}", "[data-keyboard-nav] .f13az7yk:focus:after{border-right-width:2px;}", "[data-keyboard-nav] .f14kwzu1:focus:after{border-left-width:2px;}", "[data-keyboard-nav] .fneogx5:focus:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f1ha6shg:focus:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1f43d5r:focus:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1ib27sc:focus:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f14s7j5v:focus:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f13oqbgc:focus:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1284xzw:focus:after{top:-2px;}", "[data-keyboard-nav] .f14dru39:focus:after{bottom:-2px;}", "[data-keyboard-nav] .fvabyfg:focus:after{left:-2px;}", "[data-keyboard-nav] .f12y1wz2:focus:after{right:-2px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f10pi13n{position:relative;}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f81rol6{padding-right:10px;}", ".frdkuqy{padding-left:10px;}", ".f1d2rq10{height:32px;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1k6fduh{cursor:pointer;}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f161knb0{padding-left:2px;}", ".f12huiiw{padding-right:2px;}", ".f3rmtva{background-color:transparent;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],
|
|
90
96
|
"h": [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}", ".f1jp5ecu:hover{color:var(--colorNeutralForeground3Hover);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}"],
|
|
91
97
|
"f": [".fc1cou1:focus{color:var(--colorNeutralForeground3Hover);}", ".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"]
|
|
92
98
|
});
|
|
@@ -109,6 +115,8 @@ const useMenuItemStyles = state => {
|
|
|
109
115
|
if (state.submenuIndicator) {
|
|
110
116
|
state.submenuIndicator.className = react_make_styles_1.mergeClasses(styles.submenuIndicator, state.submenuIndicator.className);
|
|
111
117
|
}
|
|
118
|
+
|
|
119
|
+
index_1.useCheckmarkStyles(state);
|
|
112
120
|
};
|
|
113
121
|
|
|
114
122
|
exports.useMenuItemStyles = useMenuItemStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuItem/useMenuItemStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuItem/useMenuItemStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAIa,OAAA,CAAA,iBAAA,GAAoB,cAApB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA4DA;;;AACO,MAAM,iBAAiB,GAAI,KAAD,IAAyB;AACxD,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,iBADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,MAAM,CAAC,cAHc,EAIrB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAJJ,EAKrB,KAAK,CAAC,IAAN,CAAW,SALU,CAAvB;AAOA,EAAA,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,mBAAA,CAAA,YAAA,CAAa,MAAM,CAAC,OAApB,EAA6B,KAAK,CAAC,OAAN,CAAc,SAA3C,CAA1B;;AACA,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,mBAAA,CAAA,YAAA,CACjC,CAAC,KAAK,CAAC,QAAP,IAAmB,MAAM,CAAC,gBADO,EAEjC,KAAK,CAAC,gBAAN,CAAuB,SAFU,CAAnC;AAID;;AAED,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,MAAM,CAAC,IAApB,EAA0B,KAAK,CAAC,IAAN,CAAW,SAArC,CAAvB;AACD;;AAED,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,mBAAA,CAAA,YAAA,CAAa,MAAM,CAAC,gBAApB,EAAsC,KAAK,CAAC,gBAAN,CAAuB,SAA7D,CAAnC;AACD;;AACD,EAAA,OAAA,CAAA,kBAAA,CAAmB,KAAnB;AACD,CAzBM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
|
|
@@ -13,10 +13,11 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
|
13
13
|
"root": {
|
|
14
14
|
"mc9l5x": "f22iagw",
|
|
15
15
|
"Beiy3e4": "f1vx9l62",
|
|
16
|
-
"
|
|
16
|
+
"i8kkvl": "f16mnhsx",
|
|
17
|
+
"Belr9w4": "fbi42co"
|
|
17
18
|
}
|
|
18
19
|
}, {
|
|
19
|
-
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".
|
|
20
|
+
"d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16mnhsx{-webkit-column-gap:2px;column-gap:2px;}", ".fbi42co{row-gap:2px;}"]
|
|
20
21
|
});
|
|
21
22
|
/**
|
|
22
23
|
* Apply styling to the Menu slots based on the state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,iBAAA,GAAoB,cAApB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAAwC;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,OAAA,CAAA,iBAAb,EAAgC,MAAM,CAAC,IAAvC,EAA6C,KAAK,CAAC,IAAN,CAAW,SAAxD,CAAvB;AACA,SAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuList/useMenuListStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,iBAAA,GAAoB,cAApB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAQA;;AAEG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAAwC;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,OAAA,CAAA,iBAAb,EAAgC,MAAM,CAAC,IAAvC,EAA6C,KAAK,CAAC,IAAN,CAAW,SAAxD,CAAvB;AACA,SAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
|
|
@@ -11,7 +11,10 @@ exports.menuPopoverClassName = 'fui-MenuPopover';
|
|
|
11
11
|
|
|
12
12
|
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
13
13
|
"root": {
|
|
14
|
-
"
|
|
14
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
|
15
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
|
16
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
|
17
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
|
15
18
|
"De3pzq": "fxugw4r",
|
|
16
19
|
"Bf4jedk": "fkqu4gx",
|
|
17
20
|
"B2u0y6b": "f1kaai3v",
|
|
@@ -35,7 +38,7 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
|
35
38
|
"zhjwy3": ["fjscplz", "f1gn591s"]
|
|
36
39
|
}
|
|
37
40
|
}, {
|
|
38
|
-
"d": [".
|
|
41
|
+
"d": [".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fkqu4gx{min-width:128px;}", ".f1kaai3v{max-width:300px;}", ".f1ahpp82{width:-webkit-max-content;width:-moz-max-content;width:max-content;}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f10ra9hq{padding-top:4px;}", ".f8wuabp{padding-right:4px;}", ".fycuoez{padding-left:4px;}", ".f1y2xyjm{padding-bottom:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}"]
|
|
39
42
|
});
|
|
40
43
|
/**
|
|
41
44
|
* Apply styling to the Menu slots based on the state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAaA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA8C;AAChF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,OAAA,CAAA,oBAAb,EAAmC,MAAM,CAAC,IAA1C,EAAgD,KAAK,CAAC,IAAN,CAAW,SAA3D,CAAvB;AACA,SAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuPopover/useMenuPopoverStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGa,OAAA,CAAA,oBAAA,GAAuB,iBAAvB;;AAEb,MAAM,SAAS,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAaA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA8C;AAChF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CAAa,OAAA,CAAA,oBAAb,EAAmC,MAAM,CAAC,IAA1C,EAAgD,KAAK,CAAC,IAAN,CAAW,SAA3D,CAAvB;AACA,SAAO,KAAP;AACD,CAJM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
|
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-nightlya0ab3454ed20211208.1",
|
|
4
4
|
"description": "Fluent UI menu component",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
|
16
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-menu/src && yarn docs",
|
|
16
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-menu/src && yarn docs",
|
|
17
17
|
"build": "just-scripts build",
|
|
18
18
|
"bundle-size": "bundle-size measure",
|
|
19
19
|
"clean": "just-scripts clean",
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
"lint": "just-scripts lint",
|
|
24
24
|
"start": "yarn storybook",
|
|
25
25
|
"storybook": "start-storybook",
|
|
26
|
-
"test": "jest"
|
|
26
|
+
"test": "jest",
|
|
27
|
+
"type-check": "tsc -b tsconfig.json"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@fluentui/babel-make-styles": "0.0.0-
|
|
30
|
+
"@fluentui/babel-make-styles": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
30
31
|
"@fluentui/eslint-plugin": "*",
|
|
31
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-
|
|
32
|
+
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
32
33
|
"@fluentui/react-conformance": "*",
|
|
33
|
-
"@fluentui/react-conformance-make-styles": "0.0.0-
|
|
34
|
+
"@fluentui/react-conformance-make-styles": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
34
35
|
"@fluentui/scripts": "^1.0.0",
|
|
35
36
|
"@types/enzyme": "3.10.3",
|
|
36
37
|
"@types/enzyme-adapter-react-16": "1.0.3",
|
|
@@ -44,15 +45,15 @@
|
|
|
44
45
|
"react-test-renderer": "^16.3.0"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
|
-
"@fluentui/keyboard-keys": "0.0.0-
|
|
48
|
-
"@fluentui/react-context-selector": "0.0.0-
|
|
49
|
-
"@fluentui/react-icons": "^
|
|
50
|
-
"@fluentui/react-make-styles": "0.0.0-
|
|
51
|
-
"@fluentui/react-portal": "0.0.0-
|
|
52
|
-
"@fluentui/react-positioning": "0.0.0-
|
|
53
|
-
"@fluentui/react-shared-contexts": "0.0.0-
|
|
54
|
-
"@fluentui/react-tabster": "0.0.0-
|
|
55
|
-
"@fluentui/react-utilities": "0.0.0-
|
|
48
|
+
"@fluentui/keyboard-keys": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
49
|
+
"@fluentui/react-context-selector": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
50
|
+
"@fluentui/react-icons": "^2.0.154-beta.5",
|
|
51
|
+
"@fluentui/react-make-styles": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
52
|
+
"@fluentui/react-portal": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
53
|
+
"@fluentui/react-positioning": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
54
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
55
|
+
"@fluentui/react-tabster": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
56
|
+
"@fluentui/react-utilities": "0.0.0-nightlya0ab3454ed20211208.1",
|
|
56
57
|
"tslib": "^2.1.0"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
|
|
2
|
-
import makeStylesTests from '@fluentui/react-conformance-make-styles';
|
|
3
|
-
export function isConformant(testInfo) {
|
|
4
|
-
const defaultOptions = {
|
|
5
|
-
asPropHandlesRef: true,
|
|
6
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
|
7
|
-
skipAsPropTests: true,
|
|
8
|
-
extraTests: makeStylesTests
|
|
9
|
-
};
|
|
10
|
-
baseIsConformant(defaultOptions, testInfo);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=isConformant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE;AAJ+C,GAA7D;AAOA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MenuContextValue } from '../contexts/menuContext';
|
|
2
|
-
/**
|
|
3
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
|
5
|
-
* @param options Menu context values to set for testing
|
|
6
|
-
*/
|
|
7
|
-
export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useMenuContext } from '../contexts/menuContext';
|
|
2
|
-
/**
|
|
3
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
|
5
|
-
* @param options Menu context values to set for testing
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export const mockUseMenuContext = (options = {}) => {
|
|
9
|
-
const mockContext = {
|
|
10
|
-
open: false,
|
|
11
|
-
setOpen: () => null,
|
|
12
|
-
triggerRef: {
|
|
13
|
-
current: null
|
|
14
|
-
},
|
|
15
|
-
menuPopoverRef: {
|
|
16
|
-
current: null
|
|
17
|
-
},
|
|
18
|
-
openOnContext: false,
|
|
19
|
-
openOnHover: false,
|
|
20
|
-
isSubmenu: false,
|
|
21
|
-
triggerId: 'id',
|
|
22
|
-
...options
|
|
23
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
|
|
25
|
-
useMenuContext.mockImplementation(selector => {
|
|
26
|
-
return selector(mockContext);
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=mockUseMenuContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":"AACA,SAAS,cAAT,QAA+B,yBAA/B;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAqC,EAAtC,KAA4C;AAC5E,QAAM,WAAW,GAAqB;AACpC,IAAA,IAAI,EAAE,KAD8B;AAEpC,IAAA,OAAO,EAAE,MAAM,IAFqB;AAGpC,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHuB;AAIpC,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJmB;AAKpC,IAAA,aAAa,EAAE,KALqB;AAMpC,IAAA,WAAW,EAAE,KANuB;AAOpC,IAAA,SAAS,EAAE,KAPyB;AAQpC,IAAA,SAAS,EAAE,IARyB;AASpC,OAAG;AATiC,GAAtC,CAD4E,CAY5E;;AACC,EAAA,cAA4B,CAAC,kBAA7B,CAAiD,QAAD,IAAiD;AAChG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isConformant = void 0;
|
|
7
|
-
|
|
8
|
-
const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
|
|
9
|
-
|
|
10
|
-
const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
|
|
11
|
-
|
|
12
|
-
function isConformant(testInfo) {
|
|
13
|
-
const defaultOptions = {
|
|
14
|
-
asPropHandlesRef: true,
|
|
15
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
|
16
|
-
skipAsPropTests: true,
|
|
17
|
-
extraTests: react_conformance_make_styles_1.default
|
|
18
|
-
};
|
|
19
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
exports.isConformant = isConformant;
|
|
23
|
-
//# sourceMappingURL=isConformant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,eAAe,EAAE,IAH0C;AAI3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAJ+C,GAA7D;AAOA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAXD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MenuContextValue } from '../contexts/menuContext';
|
|
2
|
-
/**
|
|
3
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
|
5
|
-
* @param options Menu context values to set for testing
|
|
6
|
-
*/
|
|
7
|
-
export declare const mockUseMenuContext: (options?: Partial<MenuContextValue>) => void;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.mockUseMenuContext = void 0;
|
|
7
|
-
|
|
8
|
-
const menuContext_1 = /*#__PURE__*/require("../contexts/menuContext");
|
|
9
|
-
/**
|
|
10
|
-
* A test utility to mock the useMenuContext hook that relies on context selector
|
|
11
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
|
12
|
-
* @param options Menu context values to set for testing
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const mockUseMenuContext = (options = {}) => {
|
|
17
|
-
const mockContext = {
|
|
18
|
-
open: false,
|
|
19
|
-
setOpen: () => null,
|
|
20
|
-
triggerRef: {
|
|
21
|
-
current: null
|
|
22
|
-
},
|
|
23
|
-
menuPopoverRef: {
|
|
24
|
-
current: null
|
|
25
|
-
},
|
|
26
|
-
openOnContext: false,
|
|
27
|
-
openOnHover: false,
|
|
28
|
-
isSubmenu: false,
|
|
29
|
-
triggerId: 'id',
|
|
30
|
-
...options
|
|
31
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
|
-
|
|
33
|
-
menuContext_1.useMenuContext.mockImplementation(selector => {
|
|
34
|
-
return selector(mockContext);
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
exports.mockUseMenuContext = mockUseMenuContext;
|
|
39
|
-
//# sourceMappingURL=mockUseMenuContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUseMenuContext.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAqC,EAAtC,KAA4C;AAC5E,QAAM,WAAW,GAAqB;AACpC,IAAA,IAAI,EAAE,KAD8B;AAEpC,IAAA,OAAO,EAAE,MAAM,IAFqB;AAGpC,IAAA,UAAU,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAHuB;AAIpC,IAAA,cAAc,EAAG;AAAE,MAAA,OAAO,EAAE;AAAX,KAJmB;AAKpC,IAAA,aAAa,EAAE,KALqB;AAMpC,IAAA,WAAW,EAAE,KANuB;AAOpC,IAAA,SAAS,EAAE,KAPyB;AAQpC,IAAA,SAAS,EAAE,IARyB;AASpC,OAAG;AATiC,GAAtC,CAD4E,CAY5E;;AACC,EAAA,aAAA,CAAA,cAAA,CAA6B,kBAA7B,CAAiD,QAAD,IAAiD;AAChG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
|