@fluentui/react-popover 0.0.0-nightlybc5ff01fb020211104.1 → 0.0.0-nightlycc44f3625c20211220.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +208 -30
- package/CHANGELOG.md +54 -15
- package/dist/react-popover.d.ts +1 -1
- package/lib/components/Popover/usePopover.js +2 -1
- package/lib/components/Popover/usePopover.js.map +1 -1
- package/lib/components/PopoverSurface/renderPopoverSurface.js +2 -1
- package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +23 -11
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/lib/components/PopoverTrigger/usePopoverTrigger.js +2 -1
- package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
- package/lib/popoverContext.d.ts +1 -1
- package/lib-commonjs/components/Popover/usePopover.js +2 -1
- package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +2 -1
- package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +23 -10
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +2 -1
- package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
- package/lib-commonjs/popoverContext.d.ts +1 -1
- package/package.json +13 -13
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -13
- package/lib/common/isConformant.js.map +0 -1
- package/lib/common/mockUsePopoverContext.d.ts +0 -7
- package/lib/common/mockUsePopoverContext.js +0 -31
- package/lib/common/mockUsePopoverContext.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -24
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/mockUsePopoverContext.d.ts +0 -7
- package/lib-commonjs/common/mockUsePopoverContext.js +0 -41
- package/lib-commonjs/common/mockUsePopoverContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,96 +2,274 @@
|
|
2
2
|
"name": "@fluentui/react-popover",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-popover_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Mon, 20 Dec 2021 04:17:51 GMT",
|
6
|
+
"tag": "@fluentui/react-popover_v0.0.0-nightlycc44f3625c20211220.1",
|
7
|
+
"version": "0.0.0-nightlycc44f3625c20211220.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-popover",
|
13
|
-
"commit": "
|
13
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"author": "
|
17
|
+
"author": "olfedias@microsoft.com",
|
18
18
|
"package": "@fluentui/react-popover",
|
19
|
-
"commit": "
|
20
|
-
"comment": "
|
19
|
+
"commit": "ec0e785df9c70a2202dc5cc3cb4001d1ee635124",
|
20
|
+
"comment": "update styles to not use CSS shorthands"
|
21
21
|
},
|
22
22
|
{
|
23
|
-
"author": "
|
23
|
+
"author": "beachball",
|
24
24
|
"package": "@fluentui/react-popover",
|
25
|
-
"
|
26
|
-
"
|
25
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlycc44f3625c20211220.1",
|
26
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-popover",
|
31
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlycc44f3625c20211220.1",
|
32
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-popover",
|
37
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightlycc44f3625c20211220.1",
|
38
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-popover",
|
43
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightlycc44f3625c20211220.1",
|
44
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-popover",
|
49
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlycc44f3625c20211220.1",
|
50
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-popover",
|
55
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlycc44f3625c20211220.1",
|
56
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "beachball",
|
60
|
+
"package": "@fluentui/react-popover",
|
61
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlycc44f3625c20211220.1",
|
62
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"author": "beachball",
|
66
|
+
"package": "@fluentui/react-popover",
|
67
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlycc44f3625c20211220.1",
|
68
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
27
69
|
},
|
28
70
|
{
|
29
71
|
"author": "beachball",
|
30
72
|
"package": "@fluentui/react-popover",
|
31
|
-
"comment": "Bump @fluentui/
|
32
|
-
"commit": "
|
73
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlycc44f3625c20211220.1",
|
74
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
33
75
|
},
|
34
76
|
{
|
35
77
|
"author": "beachball",
|
36
78
|
"package": "@fluentui/react-popover",
|
37
|
-
"comment": "Bump @fluentui/react-make-styles to v0.0.0-
|
38
|
-
"commit": "
|
79
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlycc44f3625c20211220.1",
|
80
|
+
"commit": "0839b0d96424e04706bd895d731d371acd3baaf5"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"none": [
|
84
|
+
{
|
85
|
+
"author": "elcraig@microsoft.com",
|
86
|
+
"package": "@fluentui/react-popover",
|
87
|
+
"commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
|
88
|
+
"comment": "Update API file to version generated by typescript 4.3"
|
89
|
+
}
|
90
|
+
]
|
91
|
+
}
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"date": "Thu, 25 Nov 2021 08:34:15 GMT",
|
95
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.5",
|
96
|
+
"version": "9.0.0-beta.5",
|
97
|
+
"comments": {
|
98
|
+
"prerelease": [
|
99
|
+
{
|
100
|
+
"author": "lingfangao@hotmail.com",
|
101
|
+
"package": "@fluentui/react-popover",
|
102
|
+
"commit": "58db204f28af1d68df7260ff580cf91f0adcfb66",
|
103
|
+
"comment": "Add transparent outline to arrow for HC"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"author": "beachball",
|
107
|
+
"package": "@fluentui/react-popover",
|
108
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
|
109
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"author": "beachball",
|
113
|
+
"package": "@fluentui/react-popover",
|
114
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
115
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
39
116
|
},
|
40
117
|
{
|
41
118
|
"author": "beachball",
|
42
119
|
"package": "@fluentui/react-popover",
|
43
|
-
"comment": "Bump @fluentui/react-portal to
|
44
|
-
"commit": "
|
120
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
|
121
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
45
122
|
},
|
46
123
|
{
|
47
124
|
"author": "beachball",
|
48
125
|
"package": "@fluentui/react-popover",
|
49
|
-
"comment": "Bump @fluentui/react-positioning to
|
50
|
-
"commit": "
|
126
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
|
127
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
51
128
|
},
|
52
129
|
{
|
53
130
|
"author": "beachball",
|
54
131
|
"package": "@fluentui/react-popover",
|
55
|
-
"comment": "Bump @fluentui/react-shared-contexts to
|
56
|
-
"commit": "
|
132
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
133
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
57
134
|
},
|
58
135
|
{
|
59
136
|
"author": "beachball",
|
60
137
|
"package": "@fluentui/react-popover",
|
61
|
-
"comment": "Bump @fluentui/react-tabster to
|
62
|
-
"commit": "
|
138
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
139
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
63
140
|
},
|
64
141
|
{
|
65
142
|
"author": "beachball",
|
66
143
|
"package": "@fluentui/react-popover",
|
67
|
-
"comment": "Bump @fluentui/react-utilities to
|
68
|
-
"commit": "
|
144
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
145
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
69
146
|
},
|
70
147
|
{
|
71
148
|
"author": "beachball",
|
72
149
|
"package": "@fluentui/react-popover",
|
73
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
74
|
-
"commit": "
|
150
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
151
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
75
152
|
},
|
76
153
|
{
|
77
154
|
"author": "beachball",
|
78
155
|
"package": "@fluentui/react-popover",
|
79
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
80
|
-
"commit": "
|
156
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
157
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
81
158
|
},
|
82
159
|
{
|
83
160
|
"author": "beachball",
|
84
161
|
"package": "@fluentui/react-popover",
|
85
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
86
|
-
"commit": "
|
162
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
163
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
87
164
|
}
|
88
165
|
],
|
166
|
+
"none": [
|
167
|
+
{
|
168
|
+
"author": "lingfangao@hotmail.com",
|
169
|
+
"package": "@fluentui/react-popover",
|
170
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
171
|
+
"comment": "Migrate package to use solution tsconfigs"
|
172
|
+
}
|
173
|
+
]
|
174
|
+
}
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"date": "Fri, 12 Nov 2021 13:25:28 GMT",
|
178
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.4",
|
179
|
+
"version": "9.0.0-beta.4",
|
180
|
+
"comments": {
|
89
181
|
"none": [
|
90
182
|
{
|
91
183
|
"author": "mgodbolt@microsoft.com",
|
92
184
|
"package": "@fluentui/react-popover",
|
93
185
|
"commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
|
94
186
|
"comment": "update docs descriptions"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"author": "lingfangao@hotmail.com",
|
190
|
+
"package": "@fluentui/react-popover",
|
191
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
192
|
+
"comment": "Remove beta release tag"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"prerelease": [
|
196
|
+
{
|
197
|
+
"author": "gcox@microsoft.com",
|
198
|
+
"package": "@fluentui/react-popover",
|
199
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
200
|
+
"comment": "Updated beta and RC components to ES2019"
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"author": "lingfangao@hotmail.com",
|
204
|
+
"package": "@fluentui/react-popover",
|
205
|
+
"commit": "054822c82e40601815f6cd77733a761b72047e4b",
|
206
|
+
"comment": "fix(Popover): use `dialog` as value for `aria-haspopup` for focus trap"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"author": "olfedias@microsoft.com",
|
210
|
+
"package": "@fluentui/react-popover",
|
211
|
+
"commit": "ade4f5d3fa5a6b1c81097403f5c2f2afd859aa14",
|
212
|
+
"comment": "export static classes for components"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"author": "beachball",
|
216
|
+
"package": "@fluentui/react-popover",
|
217
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.3",
|
218
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"author": "beachball",
|
222
|
+
"package": "@fluentui/react-popover",
|
223
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
224
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"author": "beachball",
|
228
|
+
"package": "@fluentui/react-popover",
|
229
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.4",
|
230
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"author": "beachball",
|
234
|
+
"package": "@fluentui/react-popover",
|
235
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.3",
|
236
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"author": "beachball",
|
240
|
+
"package": "@fluentui/react-popover",
|
241
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
242
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"author": "beachball",
|
246
|
+
"package": "@fluentui/react-popover",
|
247
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
248
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"author": "beachball",
|
252
|
+
"package": "@fluentui/react-popover",
|
253
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
254
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"author": "beachball",
|
258
|
+
"package": "@fluentui/react-popover",
|
259
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
260
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"author": "beachball",
|
264
|
+
"package": "@fluentui/react-popover",
|
265
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
266
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"author": "beachball",
|
270
|
+
"package": "@fluentui/react-popover",
|
271
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
272
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
95
273
|
}
|
96
274
|
]
|
97
275
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,29 +1,68 @@
|
|
1
1
|
# Change Log - @fluentui/react-popover
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Mon, 20 Dec 2021 04:17:51 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlycc44f3625c20211220.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlycc44f3625c20211220.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.
|
9
|
+
Mon, 20 Dec 2021 04:17:51 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightlycc44f3625c20211220.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by email not defined)
|
15
|
+
- update styles to not use CSS shorthands ([PR #20796](https://github.com/microsoft/fluentui/pull/20796) by olfedias@microsoft.com)
|
16
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
17
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
18
|
+
- Bump @fluentui/react-portal to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
19
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
20
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
21
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
22
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
23
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
24
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
25
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlycc44f3625c20211220.1 ([commit](https://github.com/microsoft/fluentui/commit/0839b0d96424e04706bd895d731d371acd3baaf5) by beachball)
|
26
|
+
|
27
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
|
28
|
+
|
29
|
+
Thu, 25 Nov 2021 08:34:15 GMT
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.4..@fluentui/react-popover_v9.0.0-beta.5)
|
31
|
+
|
32
|
+
### Changes
|
33
|
+
|
34
|
+
- Add transparent outline to arrow for HC ([PR #20541](https://github.com/microsoft/fluentui/pull/20541) by lingfangao@hotmail.com)
|
35
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
36
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
37
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
38
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
39
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
40
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
41
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
42
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
43
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
44
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
45
|
+
|
46
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.4)
|
47
|
+
|
48
|
+
Fri, 12 Nov 2021 13:25:28 GMT
|
49
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.3..@fluentui/react-popover_v9.0.0-beta.4)
|
11
50
|
|
12
51
|
### Changes
|
13
52
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by email not defined)
|
15
53
|
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
54
|
+
- fix(Popover): use `dialog` as value for `aria-haspopup` for focus trap ([PR #20494](https://github.com/microsoft/fluentui/pull/20494) by lingfangao@hotmail.com)
|
16
55
|
- export static classes for components ([PR #20450](https://github.com/microsoft/fluentui/pull/20450) by olfedias@microsoft.com)
|
17
|
-
- Bump @fluentui/react-context-selector to
|
18
|
-
- Bump @fluentui/react-make-styles to
|
19
|
-
- Bump @fluentui/react-portal to
|
20
|
-
- Bump @fluentui/react-positioning to
|
21
|
-
- Bump @fluentui/react-shared-contexts to
|
22
|
-
- Bump @fluentui/react-tabster to
|
23
|
-
- Bump @fluentui/react-utilities to
|
24
|
-
- Bump @fluentui/babel-make-styles to
|
25
|
-
- Bump @fluentui/jest-serializer-make-styles to
|
26
|
-
- Bump @fluentui/react-conformance-make-styles to
|
56
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
57
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
58
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
59
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
60
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
61
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
62
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
63
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
64
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
65
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
27
66
|
|
28
67
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.3)
|
29
68
|
|
package/dist/react-popover.d.ts
CHANGED
@@ -202,7 +202,7 @@ export declare const renderPopoverTrigger: (state: PopoverTriggerState) => JSX.E
|
|
202
202
|
*/
|
203
203
|
export declare const usePopover: (props: PopoverProps) => PopoverState;
|
204
204
|
|
205
|
-
export declare const usePopoverContext: <T>(selector: ContextSelector<
|
205
|
+
export declare const usePopoverContext: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
|
206
206
|
|
207
207
|
/**
|
208
208
|
* Create the state required to render PopoverSurface.
|
@@ -38,7 +38,8 @@ export const usePopover = props => {
|
|
38
38
|
element: targetDocument,
|
39
39
|
callback: ev => setOpen(ev, false),
|
40
40
|
refs: [popperRefs.triggerRef, popperRefs.contentRef],
|
41
|
-
disabled: !open || !initialState.openOnContext
|
41
|
+
disabled: !open || !initialState.openOnContext // only close on scroll for context
|
42
|
+
|
42
43
|
});
|
43
44
|
return { ...initialState,
|
44
45
|
...popperRefs,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Popover/usePopover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SACE,oBADF,EAEE,gBAFF,EAGE,iBAHF,EAIE,kBAJF,QAKO,2BALP;AAMA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SACE,SADF,EAEE,2BAFF,EAGE,gBAHF,EAIE,oBAJF,QAKO,6BALP;AAMA,SAAS,eAAT,QAAgC,wBAAhC;AACA,SAAS,YAAT,QAA6B,yBAA7B;AAGA;;;;;;;AAOG;;AACH,OAAO,MAAM,UAA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P;AACD,KARW,CAAZ;AASD,GAnBa,EAoBd,CAAC,YAAD,EAAe,YAAf,EAA6B,gBAA7B,CApBc,CAAhB;AAuBA,SAAO,CAAC,IAAD,EAAO,OAAP,CAAP;AACD;AAED;;AAEG;;;AACH,SAAS,cAAT,CACE,KADF,EACuH;AAErH,QAAM,aAAa,GAAG;AACpB,IAAA,QAAQ,EAAE,OADU;AAEpB,IAAA,KAAK,EAAE,QAFa;AAGpB,IAAA,MAAM,EAAE,KAAK,CAAC,aAAN,GAAsB,KAAK,CAAC,aAA5B,GAA4C,SAHhC;AAIpB,OAAG,2BAA2B,CAAC,KAAK,CAAC,WAAP;AAJV,GAAtB,CAFqH,CASrH;;AACA,MAAI,aAAa,CAAC,WAAlB,EAA+B;AAC7B,IAAA,KAAK,CAAC,OAAN,GAAgB,IAAhB;AACD;;AAED,MAAI,CAAC,KAAK,CAAC,OAAX,EAAoB;AAClB,IAAA,aAAa,CAAC,MAAd,GAAuB,gBAAgB,CAAC,aAAa,CAAC,MAAf,EAAuB,YAAY,CAAC,KAAK,CAAC,IAAP,CAAnC,CAAvC;AACD;;AAED,QAAM;AAAE,IAAA,SAAS,EAAE,UAAb;AAAyB,IAAA,YAAY,EAAE,UAAvC;AAAmD,IAAA;AAAnD,MAAgE,SAAS,CAAC,aAAD,CAA/E;AAEA,SAAO;AACL,IAAA,UADK;AAEL,IAAA,UAFK;AAGL,IAAA;AAHK,GAAP;AAKD","sourceRoot":""}
|
@@ -18,7 +18,8 @@ export const renderPopoverSurface = state => {
|
|
18
18
|
|
19
19
|
return /*#__PURE__*/React.createElement(Portal, {
|
20
20
|
mountNode: state.mountNode
|
21
|
-
}, /*#__PURE__*/React.createElement(slots.root,
|
21
|
+
}, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
22
|
+
}, !state.noArrow && /*#__PURE__*/React.createElement("div", {
|
22
23
|
ref: state.arrowRef,
|
23
24
|
className: state.arrowClassName
|
24
25
|
}), slotProps.root.children));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,mBAAT,QAAoC,qBAApC;AAEA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,mBAA7B,CAArC,CADiE,CAGjE;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,mBAAT,QAAoC,qBAApC;AAEA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,mBAA7B,CAArC,CADiE,CAGjE;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf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AAoB,CAAG,CAAH,CAApB;AACD,GAND;;AAQA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAwB,CAAD,IAA2C;WAAA,CAChE;AACA;;;AACA,QAAI,CAAC,CAAC,GAAF,KAAU,QAAV,KAAsB,CAAA,EAAA,GAAA,UAAU,CAAC,OAAX,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,KAAA,CAAlB,GAAkB,EAAA,CAAE,QAAF,CAAW,CAAC,CAAC,MAAb,CAAxC,CAAJ,EAAoF;AAClF,MAAA,OAAO,CAAC,CAAD,EAAI,KAAJ,CAAP;AACD;;AAED,IAAA,iBAAiB,KAAA,IAAjB,IAAA,iBAAiB,KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAA,iBAAiB,CAAG,CAAH,CAAjB;AACD,GARD;;AAUA,QAAM;AAAE,IAAA;AAAF,MAAyB,eAAe,EAA9C;AAEA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB,QAAI,KAAK,CAAC,IAAN,IAAc,UAAU,CAAC,OAA7B,EAAsC;AACpC,YAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAZ,CAAzC;AACA,MAAA,cAAc,KAAA,IAAd,IAAA,cAAc,KAAA,KAAA,CAAd,GAAc,KAAA,CAAd,GAAA,cAAc,CAAE,KAAhB,EAAA;AACD;AACF,GALD,EAKG,CAAC,UAAD,EAAa,kBAAb,EAAiC,KAAK,CAAC,IAAvC,CALH;AAMA,SAAO,KAAP;AACD,CAvEM","sourceRoot":""}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
|
+
import { createArrowStyles } from '@fluentui/react-positioning';
|
2
3
|
export const popoverSurfaceClassName = 'fui-PopoverSurface';
|
3
4
|
export const arrowHeights = {
|
4
5
|
small: 6,
|
@@ -12,8 +13,11 @@ export const arrowHeights = {
|
|
12
13
|
const useStyles = /*#__PURE__*/__styles({
|
13
14
|
"root": {
|
14
15
|
"De3pzq": "fxugw4r",
|
15
|
-
"E5pizo":
|
16
|
-
"
|
16
|
+
"E5pizo": "f1hg901r",
|
17
|
+
"Bbmb7ep": ["fff7au0", "f1bjk9e1"],
|
18
|
+
"Beyfa6y": ["f1bjk9e1", "fff7au0"],
|
19
|
+
"B7oj6ja": ["fwsfkhu", "f8wkphi"],
|
20
|
+
"Btl43ni": ["f8wkphi", "fwsfkhu"],
|
17
21
|
"B4j52fo": "f5ogflp",
|
18
22
|
"Bekrc4i": ["f1hqa2wf", "finvdd3"],
|
19
23
|
"Bn0qgzm": "f1f09k3d",
|
@@ -63,29 +67,37 @@ const useStyles = /*#__PURE__*/__styles({
|
|
63
67
|
},
|
64
68
|
"arrow": {
|
65
69
|
"qhf8xq": "f1euv43f",
|
66
|
-
"
|
70
|
+
"De3pzq": "f1u2r49w",
|
67
71
|
"Bcdw1i0": "fd7fpy0",
|
68
72
|
"Bj3rh1h": "f1bsuimh",
|
69
73
|
"rurcny": "fuzzvh5",
|
70
|
-
"
|
74
|
+
"px8gyy": ["f5bg3dr", "f1rfdd74"],
|
75
|
+
"B5c9fhp": ["fijcjxk", "f11y671q"],
|
76
|
+
"Bhe99jt": ["f1vtdej5", "f7y375m"],
|
77
|
+
"B2r1szc": ["f7y375m", "f1vtdej5"],
|
71
78
|
"xx9plb": "fxf9f1y",
|
72
79
|
"Bdn98qo": "f103af6e",
|
73
80
|
"Bbc2r3f": "f15umuo5",
|
74
|
-
"
|
81
|
+
"B1dvbpk": "f3wpjpt",
|
75
82
|
"Bex5imi": "fkk33zh",
|
76
|
-
"
|
77
|
-
"
|
83
|
+
"h6z6rw": "fzd2j21",
|
84
|
+
"Iykf4b": ["feexxpo", "f7s5fvx"],
|
85
|
+
"F42hee": ["f1jq8eg5", "f12n7c5j"],
|
86
|
+
"Blxsnla": ["f1wv7y6t", "fi4qyh6"],
|
87
|
+
"t2scew": "fcvru7r",
|
88
|
+
"Emsed9": "f7ybgnc",
|
89
|
+
"E11wbp": "f16xtfle",
|
78
90
|
"hl6cv3": "fotnskf",
|
79
91
|
"Bh2vraf": "f1n8855c",
|
80
|
-
"yayu3t":
|
92
|
+
"yayu3t": "fwwuk3n",
|
81
93
|
"wedwtw": "fsw6im5",
|
82
94
|
"rhl9o9": "ftghsr9",
|
83
95
|
"Bu8t5uz": "f159pzir",
|
84
|
-
"B6q6orb":
|
96
|
+
"B6q6orb": "fwghsev",
|
85
97
|
"Bwwlvwl": "fm1ycve"
|
86
98
|
}
|
87
99
|
}, {
|
88
|
-
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".
|
100
|
+
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius: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);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".f1smug5u{width:8.485281374238571px;}", ".f11ci07v{height:8.485281374238571px;}", ".ftmg478{width:11.313708498984761px;}", ".f7bsbfx{height:11.313708498984761px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fijcjxk:before{border-bottom-left-radius:4px;}", ".f11y671q:before{border-bottom-right-radius:4px;}", ".f1vtdej5:before{border-top-right-radius:4px;}", ".f7y375m:before{border-top-left-radius:4px;}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".fkk33zh:before{visibility:visible;}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement] .feexxpo:before{border-right-width:1px;}", "[data-popper-placement] .f7s5fvx:before{border-left-width:1px;}", "[data-popper-placement] .f1jq8eg5:before{border-right-style:solid;}", "[data-popper-placement] .f12n7c5j:before{border-left-style:solid;}", "[data-popper-placement] .f1wv7y6t:before{border-right-color:transparent;}", "[data-popper-placement] .fi4qyh6:before{border-left-color:transparent;}", "[data-popper-placement] .fcvru7r:before{border-bottom-width:1px;}", "[data-popper-placement] .f7ybgnc:before{border-bottom-style:solid;}", "[data-popper-placement] .f16xtfle:before{border-bottom-color:transparent;}", "[data-popper-placement^=\"top\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .fwwuk3n{left:0;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .ftghsr9{top:0;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .fwghsev{right:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
89
101
|
});
|
90
102
|
/**
|
91
103
|
* Apply styling to the PopoverSurface slots based on the state
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,iBAAT,QAAkC,6BAAlC;AAIA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;AAEP,OAAO,MAAM,YAAY,GAAgC;AACvD,EAAA,KAAK,EAAE,CADgD;AAEvD,EAAA,MAAM,EAAE,CAF+C;AAGvD,EAAA,KAAK,EAAE;AAHgD,CAAlD;AAMP;;AAEG;;AACH,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AA6CA;;AAEG;;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAoD;AACzF,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,uBADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,YAHA,EAIjC,KAAK,CAAC,IAAN,KAAe,QAAf,IAA2B,MAAM,CAAC,aAJD,EAKjC,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,YALA,EAMjC,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QANT,EAOjC,KAAK,CAAC,UAAN,KAAqB,OAArB,IAAgC,MAAM,CAAC,KAPN,EAQjC,KAAK,CAAC,IAAN,CAAW,SARsB,CAAnC;AAWA,EAAA,KAAK,CAAC,cAAN,GAAuB,YAAY,CACjC,MAAM,CAAC,KAD0B,EAEjC,KAAK,CAAC,IAAN,KAAe,OAAf,GAAyB,MAAM,CAAC,UAAhC,GAA6C,MAAM,CAAC,gBAFnB,CAAnC;AAKA,SAAO,KAAP;AACD,CAnBM","sourceRoot":""}
|
@@ -17,6 +17,7 @@ export const usePopoverTrigger = props => {
|
|
17
17
|
const triggerRef = usePopoverContext(context => context.triggerRef);
|
18
18
|
const openOnHover = usePopoverContext(context => context.openOnHover);
|
19
19
|
const openOnContext = usePopoverContext(context => context.openOnContext);
|
20
|
+
const trapFocus = usePopoverContext(context => context.trapFocus);
|
20
21
|
const {
|
21
22
|
triggerAttributes
|
22
23
|
} = useModalAttributes();
|
@@ -74,7 +75,7 @@ export const usePopoverTrigger = props => {
|
|
74
75
|
const child = React.Children.only(props.children);
|
75
76
|
return {
|
76
77
|
children: /*#__PURE__*/React.cloneElement(child, { ...triggerAttributes,
|
77
|
-
'aria-haspopup': 'true',
|
78
|
+
'aria-haspopup': trapFocus ? 'dialog' : 'true',
|
78
79
|
...child.props,
|
79
80
|
onClick,
|
80
81
|
onMouseEnter,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverTrigger/usePopoverTrigger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,aAAT,EAAwB,gBAAxB,EAA0C,6BAA1C,QAA+E,2BAA/E;AACA,SAAS,kBAAT,QAAmC,yBAAnC;AACA,SAAS,iBAAT,QAAkC,sBAAlC;AAGA;;;;;;;AAOG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAAoD;AACnF,QAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,OAApB,CAAjC;AACA,QAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,IAApB,CAA9B;AACA,QAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,UAApB,CAApC;AACA,QAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,WAApB,CAArC;AACA,QAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,aAApB,CAAvC;AACA,QAAM;AAAE,IAAA;AAAF,MAAwB,kBAAkB,EAAhD;AAEA,QAAM,aAAa,GAAG,gBAAgB,CAAE,CAAD,IAAqC;;;AAC1E,QAAI,aAAJ,EAAmB;AACjB,MAAA,CAAC,CAAC,cAAF;AACA,MAAA,OAAO,CAAC,CAAD,EAAI,IAAJ,CAAP;AACD;;AAED,KAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAK,CAAC,KAAN,MAAW,IAAX,IAAW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M","sourceRoot":""}
|
package/lib/popoverContext.d.ts
CHANGED
@@ -5,4 +5,4 @@ export declare const PopoverContext: Context<PopoverContextValue>;
|
|
5
5
|
* Context shared between Popover and its children components
|
6
6
|
*/
|
7
7
|
export declare type PopoverContextValue = Pick<PopoverState, 'open' | 'setOpen' | 'triggerRef' | 'contentRef' | 'openOnHover' | 'openOnContext' | 'mountNode' | 'noArrow' | 'arrowRef' | 'size' | 'appearance' | 'trapFocus'>;
|
8
|
-
export declare const usePopoverContext: <T>(selector: ContextSelector<
|
8
|
+
export declare const usePopoverContext: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
|
@@ -51,7 +51,8 @@ const usePopover = props => {
|
|
51
51
|
element: targetDocument,
|
52
52
|
callback: ev => setOpen(ev, false),
|
53
53
|
refs: [popperRefs.triggerRef, popperRefs.contentRef],
|
54
|
-
disabled: !open || !initialState.openOnContext
|
54
|
+
disabled: !open || !initialState.openOnContext // only close on scroll for context
|
55
|
+
|
55
56
|
});
|
56
57
|
return { ...initialState,
|
57
58
|
...popperRefs,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Popover/usePopover.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAMA,MAAA,uBAAA,gBAAA,OAAA,CAAA,iCAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAMA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;AAGA;;;;;;;AAOG;;;AACI,MAAM,UAAU,GAAI,KAAD,IAAsC;AAC9D,QAAM,CAAC,aAAD,EAAgB,gBAAhB,IAAoC,mBAAA,CAAA,oBAAA,EAA1C;AACA,QAAM,YAAY,GAAG;AACnB,IAAA,IAAI,EAAE,QAD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A,YAAY,CAAG,CAAH,EAAM;AAAE,UAAA,IAAI,EAAE;AAAR,SAAN,CAAZ;AACD;;AAED,aAAO,UAAP;AACD,KARW,CAAZ;AASD,GAnBa,EAoBd,CAAC,YAAD,EAAe,YAAf,EAA6B,gBAA7B,CApBc,CAAhB;AAuBA,SAAO,CAAC,IAAD,EAAO,OAAP,CAAP;AACD;AAED;;AAEG;;;AACH,SAAS,cAAT,CACE,KADF,EACuH;AAErH,QAAM,aAAa,GAAG;AACpB,IAAA,QAAQ,EAAE,OADU;AAEpB,IAAA,KAAK,EAAE,QAFa;AAGpB,IAAA,MAAM,EAAE,KAAK,CAAC,aAAN,GAAsB,KAAK,CAAC,aAA5B,GAA4C,SAHhC;AAIpB,OAAG,mBAAA,CAAA,2BAAA,CAA4B,KAAK,CAAC,WAAlC;AAJiB,GAAtB,CAFqH,CASrH;;AACA,MAAI,aAAa,CAAC,WAAlB,EAA+B;AAC7B,IAAA,KAAK,CAAC,OAAN,GAAgB,IAAhB;AACD;;AAED,MAAI,CAAC,KAAK,CAAC,OAAX,EAAoB;AAClB,IAAA,aAAa,CAAC,MAAd,GAAuB,mBAAA,CAAA,gBAAA,CAAiB,aAAa,CAAC,MAA/B,EAAuC,OAAA,CAAA,YAAA,CAAa,KAAK,CAAC,IAAnB,CAAvC,CAAvB;AACD;;AAED,QAAM;AAAE,IAAA,SAAS,EAAE,UAAb;AAAyB,IAAA,YAAY,EAAE,UAAvC;AAAmD,IAAA;AAAnD,MAAgE,mBAAA,CAAA,SAAA,CAAU,aAAV,CAAtE;AAEA,SAAO;AACL,IAAA,UADK;AAEL,IAAA,UAFK;AAGL,IAAA;AAHK,GAAP;AAKD","sourceRoot":""}
|
@@ -29,7 +29,8 @@ const renderPopoverSurface = state => {
|
|
29
29
|
|
30
30
|
return React.createElement(react_portal_1.Portal, {
|
31
31
|
mountNode: state.mountNode
|
32
|
-
}, React.createElement(slots.root,
|
32
|
+
}, React.createElement(slots.root, { ...slotProps.root
|
33
|
+
}, !state.noArrow && React.createElement("div", {
|
33
34
|
ref: state.arrowRef,
|
34
35
|
className: state.arrowClassName
|
35
36
|
}), slotProps.root.children));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAA8B,KAA9B,EAAqC,mBAAA,CAAA,mBAArC,CAA7B,CADiE,CAGjE;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,SACE,KAAA,CAAA,aAAA,CAAC,cAAA,CAAA,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CA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KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAA,iBAAiB,CAAG,CAAH,CAAjB;AACD,GARD;;AAUA,QAAM;AAAE,IAAA;AAAF,MAAyB,eAAA,CAAA,eAAA,EAA/B;AAEA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB,QAAI,KAAK,CAAC,IAAN,IAAc,UAAU,CAAC,OAA7B,EAAsC;AACpC,YAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAZ,CAAzC;AACA,MAAA,cAAc,KAAA,IAAd,IAAA,cAAc,KAAA,KAAA,CAAd,GAAc,KAAA,CAAd,GAAA,cAAc,CAAE,KAAhB,EAAA;AACD;AACF,GALD,EAKG,CAAC,UAAD,EAAa,kBAAb,EAAiC,KAAK,CAAC,IAAvC,CALH;AAMA,SAAO,KAAP;AACD,CAvEM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
|
@@ -7,6 +7,8 @@ exports.usePopoverSurfaceStyles = exports.arrowHeights = exports.popoverSurfaceC
|
|
7
7
|
|
8
8
|
const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
|
9
9
|
|
10
|
+
const react_positioning_1 = /*#__PURE__*/require("@fluentui/react-positioning");
|
11
|
+
|
10
12
|
exports.popoverSurfaceClassName = 'fui-PopoverSurface';
|
11
13
|
exports.arrowHeights = {
|
12
14
|
small: 6,
|
@@ -20,8 +22,11 @@ exports.arrowHeights = {
|
|
20
22
|
const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
21
23
|
"root": {
|
22
24
|
"De3pzq": "fxugw4r",
|
23
|
-
"E5pizo":
|
24
|
-
"
|
25
|
+
"E5pizo": "f1hg901r",
|
26
|
+
"Bbmb7ep": ["fff7au0", "f1bjk9e1"],
|
27
|
+
"Beyfa6y": ["f1bjk9e1", "fff7au0"],
|
28
|
+
"B7oj6ja": ["fwsfkhu", "f8wkphi"],
|
29
|
+
"Btl43ni": ["f8wkphi", "fwsfkhu"],
|
25
30
|
"B4j52fo": "f5ogflp",
|
26
31
|
"Bekrc4i": ["f1hqa2wf", "finvdd3"],
|
27
32
|
"Bn0qgzm": "f1f09k3d",
|
@@ -71,29 +76,37 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
71
76
|
},
|
72
77
|
"arrow": {
|
73
78
|
"qhf8xq": "f1euv43f",
|
74
|
-
"
|
79
|
+
"De3pzq": "f1u2r49w",
|
75
80
|
"Bcdw1i0": "fd7fpy0",
|
76
81
|
"Bj3rh1h": "f1bsuimh",
|
77
82
|
"rurcny": "fuzzvh5",
|
78
|
-
"
|
83
|
+
"px8gyy": ["f5bg3dr", "f1rfdd74"],
|
84
|
+
"B5c9fhp": ["fijcjxk", "f11y671q"],
|
85
|
+
"Bhe99jt": ["f1vtdej5", "f7y375m"],
|
86
|
+
"B2r1szc": ["f7y375m", "f1vtdej5"],
|
79
87
|
"xx9plb": "fxf9f1y",
|
80
88
|
"Bdn98qo": "f103af6e",
|
81
89
|
"Bbc2r3f": "f15umuo5",
|
82
|
-
"
|
90
|
+
"B1dvbpk": "f3wpjpt",
|
83
91
|
"Bex5imi": "fkk33zh",
|
84
|
-
"
|
85
|
-
"
|
92
|
+
"h6z6rw": "fzd2j21",
|
93
|
+
"Iykf4b": ["feexxpo", "f7s5fvx"],
|
94
|
+
"F42hee": ["f1jq8eg5", "f12n7c5j"],
|
95
|
+
"Blxsnla": ["f1wv7y6t", "fi4qyh6"],
|
96
|
+
"t2scew": "fcvru7r",
|
97
|
+
"Emsed9": "f7ybgnc",
|
98
|
+
"E11wbp": "f16xtfle",
|
86
99
|
"hl6cv3": "fotnskf",
|
87
100
|
"Bh2vraf": "f1n8855c",
|
88
|
-
"yayu3t":
|
101
|
+
"yayu3t": "fwwuk3n",
|
89
102
|
"wedwtw": "fsw6im5",
|
90
103
|
"rhl9o9": "ftghsr9",
|
91
104
|
"Bu8t5uz": "f159pzir",
|
92
|
-
"B6q6orb":
|
105
|
+
"B6q6orb": "fwghsev",
|
93
106
|
"Bwwlvwl": "fm1ycve"
|
94
107
|
}
|
95
108
|
}, {
|
96
|
-
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".
|
109
|
+
"d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius: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);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".f1smug5u{width:8.485281374238571px;}", ".f11ci07v{height:8.485281374238571px;}", ".ftmg478{width:11.313708498984761px;}", ".f7bsbfx{height:11.313708498984761px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fijcjxk:before{border-bottom-left-radius:4px;}", ".f11y671q:before{border-bottom-right-radius:4px;}", ".f1vtdej5:before{border-top-right-radius:4px;}", ".f7y375m:before{border-top-left-radius:4px;}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".fkk33zh:before{visibility:visible;}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement] .feexxpo:before{border-right-width:1px;}", "[data-popper-placement] .f7s5fvx:before{border-left-width:1px;}", "[data-popper-placement] .f1jq8eg5:before{border-right-style:solid;}", "[data-popper-placement] .f12n7c5j:before{border-left-style:solid;}", "[data-popper-placement] .f1wv7y6t:before{border-right-color:transparent;}", "[data-popper-placement] .fi4qyh6:before{border-left-color:transparent;}", "[data-popper-placement] .fcvru7r:before{border-bottom-width:1px;}", "[data-popper-placement] .f7ybgnc:before{border-bottom-style:solid;}", "[data-popper-placement] .f16xtfle:before{border-bottom-color:transparent;}", "[data-popper-placement^=\"top\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .fwwuk3n{left:0;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .ftghsr9{top:0;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .fwghsev{right:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
97
110
|
});
|
98
111
|
/**
|
99
112
|
* Apply styling to the PopoverSurface slots based on the state
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAIa,OAAA,CAAA,uBAAA,GAA0B,oBAA1B;AAEA,OAAA,CAAA,YAAA,GAA4C;AACvD,EAAA,KAAK,EAAE,CADgD;AAEvD,EAAA,MAAM,EAAE,CAF+C;AAGvD,EAAA,KAAK,EAAE;AAHgD,CAA5C;AAMb;;AAEG;;AACH,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,EAAlB;
|
1
|
+
{"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAIa,OAAA,CAAA,uBAAA,GAA0B,oBAA1B;AAEA,OAAA,CAAA,YAAA,GAA4C;AACvD,EAAA,KAAK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SARU,CAAvB;AAWA,EAAA,KAAK,CAAC,cAAN,GAAuB,mBAAA,CAAA,YAAA,CACrB,MAAM,CAAC,KADc,EAErB,KAAK,CAAC,IAAN,KAAe,OAAf,GAAyB,MAAM,CAAC,UAAhC,GAA6C,MAAM,CAAC,gBAF/B,CAAvB;AAKA,SAAO,KAAP;AACD,CAnBM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
|
@@ -28,6 +28,7 @@ const usePopoverTrigger = props => {
|
|
28
28
|
const triggerRef = popoverContext_1.usePopoverContext(context => context.triggerRef);
|
29
29
|
const openOnHover = popoverContext_1.usePopoverContext(context => context.openOnHover);
|
30
30
|
const openOnContext = popoverContext_1.usePopoverContext(context => context.openOnContext);
|
31
|
+
const trapFocus = popoverContext_1.usePopoverContext(context => context.trapFocus);
|
31
32
|
const {
|
32
33
|
triggerAttributes
|
33
34
|
} = react_tabster_1.useModalAttributes();
|
@@ -85,7 +86,7 @@ const usePopoverTrigger = props => {
|
|
85
86
|
const child = React.Children.only(props.children);
|
86
87
|
return {
|
87
88
|
children: React.cloneElement(child, { ...triggerAttributes,
|
88
|
-
'aria-haspopup': 'true',
|
89
|
+
'aria-haspopup': trapFocus ? 'dialog' : 'true',
|
89
90
|
...child.props,
|
90
91
|
onClick,
|
91
92
|
onMouseEnter,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/PopoverTrigger/usePopoverTrigger.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;AAGA;;;;;;;AAOG;;;AACI,MAAM,iBAAiB,GAAI,KAAD,IAAoD;AACnF,QAAM,OAAO,GAAG,gBAAA,CAAA,iBAAA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AyB,EAAA,CAAA,IAAA,CAAA,EAAA,EAAG,CAAH,CAAzB;AACD,GALoB,CAArB;AAOA,QAAM,YAAY,GAAG,iBAAA,CAAA,gBAAA,CAAkB,CAAD,IAAqC;;;AACzE,QAAI,WAAJ,EAAiB;AACf,MAAA,OAAO,CAAC,CAAD,EAAI,KAAJ,CAAP;AACD;;AACD,KAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAK,CAAC,KAAN,MAAW,IAAX,IAAW,EAAA,KAAA,KAAA,CAAX,GAAW,KAAA,CAAX,GAAW,EAAA,CAAE,YAAb,MAAyB,IAAzB,IAAyB,EAAA,KAAA,KAAA,CAAzB,GAAyB,KAAA,CAAzB,GAAyB,EAAA,CAAA,IAAA,CAAA,EAAA,EAAG,CAAH,CAAzB;AACD,GALoB,CAArB;AAOA,QAAM,KAAK,GAAG,KAAK,CAAC,QAAN,CAAe,IAAf,CAAoB,KAAK,CAAC,QAA1B,CAAd;AACA,SAAO;AACL,IAAA,QAAQ,EAAE,KAAK,CAAC,YAAN,CAAmB,KAAnB,EAA0B,EAClC,GAAG,iBAD+B;AAElC,uBAAiB,SAAS,GAAG,QAAH,GAAc,MAFN;AAGlC,SAAG,KAAK,CAAC,KAHyB;AAIlC,MAAA,OAJkC;AAKlC,MAAA,YALkC;AAMlC,MAAA,SANkC;AAOlC,MAAA,YAPkC;AAQlC,MAAA,aARkC;AASlC,MAAA,GAAG,EAAE,iBAAA,CAAA,aAAA,CAAgB,KAAuE,CAAC,GAAxF,EAA6F,UAA7F;AAT6B,KAA1B;AADL,GAAP;AAaD,CAlEM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
|
@@ -5,4 +5,4 @@ export declare const PopoverContext: Context<PopoverContextValue>;
|
|
5
5
|
* Context shared between Popover and its children components
|
6
6
|
*/
|
7
7
|
export declare type PopoverContextValue = Pick<PopoverState, 'open' | 'setOpen' | 'triggerRef' | 'contentRef' | 'openOnHover' | 'openOnContext' | 'mountNode' | 'noArrow' | 'arrowRef' | 'size' | 'appearance' | 'trapFocus'>;
|
8
|
-
export declare const usePopoverContext: <T>(selector: ContextSelector<
|
8
|
+
export declare const usePopoverContext: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-popover",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-nightlycc44f3625c20211220.1",
|
4
4
|
"description": "Popover component for Fluent UI",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -23,14 +23,15 @@
|
|
23
23
|
"storybook": "start-storybook",
|
24
24
|
"test": "jest",
|
25
25
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
26
|
-
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-popover/src && yarn docs"
|
26
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-popover/src && yarn docs",
|
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-nightlycc44f3625c20211220.1",
|
30
31
|
"@fluentui/eslint-plugin": "*",
|
31
|
-
"@fluentui/jest-serializer-make-styles": "0.0.0-
|
32
|
+
"@fluentui/jest-serializer-make-styles": "0.0.0-nightlycc44f3625c20211220.1",
|
32
33
|
"@fluentui/react-conformance": "*",
|
33
|
-
"@fluentui/react-conformance-make-styles": "0.0.0-
|
34
|
+
"@fluentui/react-conformance-make-styles": "0.0.0-nightlycc44f3625c20211220.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,13 +45,13 @@
|
|
44
45
|
"react-test-renderer": "^16.3.0"
|
45
46
|
},
|
46
47
|
"dependencies": {
|
47
|
-
"@fluentui/react-context-selector": "0.0.0-
|
48
|
-
"@fluentui/react-make-styles": "0.0.0-
|
49
|
-
"@fluentui/react-portal": "0.0.0-
|
50
|
-
"@fluentui/react-positioning": "0.0.0-
|
51
|
-
"@fluentui/react-shared-contexts": "0.0.0-
|
52
|
-
"@fluentui/react-tabster": "0.0.0-
|
53
|
-
"@fluentui/react-utilities": "0.0.0-
|
48
|
+
"@fluentui/react-context-selector": "0.0.0-nightlycc44f3625c20211220.1",
|
49
|
+
"@fluentui/react-make-styles": "0.0.0-nightlycc44f3625c20211220.1",
|
50
|
+
"@fluentui/react-portal": "0.0.0-nightlycc44f3625c20211220.1",
|
51
|
+
"@fluentui/react-positioning": "0.0.0-nightlycc44f3625c20211220.1",
|
52
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightlycc44f3625c20211220.1",
|
53
|
+
"@fluentui/react-tabster": "0.0.0-nightlycc44f3625c20211220.1",
|
54
|
+
"@fluentui/react-utilities": "0.0.0-nightlycc44f3625c20211220.1",
|
54
55
|
"tslib": "^2.1.0"
|
55
56
|
},
|
56
57
|
"peerDependencies": {
|
@@ -60,7 +61,6 @@
|
|
60
61
|
"react-dom": ">=16.8.0 <18.0.0"
|
61
62
|
},
|
62
63
|
"beachball": {
|
63
|
-
"tag": "beta",
|
64
64
|
"disallowedChangeTypes": [
|
65
65
|
"major",
|
66
66
|
"minor",
|
@@ -1,13 +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
|
-
// TODO // https://github.com/microsoft/fluentui/issues/19522
|
8
|
-
skipAsPropTests: true,
|
9
|
-
extraTests: makeStylesTests
|
10
|
-
};
|
11
|
-
baseIsConformant(defaultOptions, testInfo);
|
12
|
-
}
|
13
|
-
//# 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;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE;AAL+C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { PopoverContextValue } from '../popoverContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Popover context values to set for testing
|
6
|
-
*/
|
7
|
-
export declare const mockPopoverContext: (options?: Partial<PopoverContextValue>) => void;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { usePopoverContext } from '../popoverContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Popover context values to set for testing
|
6
|
-
*/
|
7
|
-
|
8
|
-
export const mockPopoverContext = (options = {}) => {
|
9
|
-
const mockContext = {
|
10
|
-
open: false,
|
11
|
-
setOpen: () => null,
|
12
|
-
triggerRef: {
|
13
|
-
current: null
|
14
|
-
},
|
15
|
-
contentRef: {
|
16
|
-
current: null
|
17
|
-
},
|
18
|
-
arrowRef: {
|
19
|
-
current: null
|
20
|
-
},
|
21
|
-
openOnContext: false,
|
22
|
-
openOnHover: false,
|
23
|
-
size: 'medium',
|
24
|
-
...options
|
25
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
26
|
-
|
27
|
-
usePopoverContext.mockImplementation(selector => {
|
28
|
-
return selector(mockContext);
|
29
|
-
});
|
30
|
-
};
|
31
|
-
//# sourceMappingURL=mockUsePopoverContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUsePopoverContext.ts"],"names":[],"mappings":"AAAA,SAAS,iBAAT,QAAkC,mBAAlC;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAwC,EAAzC,KAA+C;AAC/E,QAAM,WAAW,GAAwB;AACvC,IAAA,IAAI,EAAE,KADiC;AAEvC,IAAA,OAAO,EAAE,MAAM,IAFwB;AAGvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAH2B;AAIvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAJ2B;AAKvC,IAAA,QAAQ,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAL6B;AAMvC,IAAA,aAAa,EAAE,KANwB;AAOvC,IAAA,WAAW,EAAE,KAP0B;AAQvC,IAAA,IAAI,EAAE,QARiC;AASvC,OAAG;AAToC,GAAzC,CAD+E,CAY/E;;AACC,EAAA,iBAA+B,CAAC,kBAAhC,CAAoD,QAAD,IAAoD;AACtG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
|
@@ -1,24 +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
|
-
// TODO // https://github.com/microsoft/fluentui/issues/19522
|
17
|
-
skipAsPropTests: true,
|
18
|
-
extraTests: react_conformance_make_styles_1.default
|
19
|
-
};
|
20
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
21
|
-
}
|
22
|
-
|
23
|
-
exports.isConformant = isConformant;
|
24
|
-
//# 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;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAL+C,GAA7D;AAQA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAZD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { PopoverContextValue } from '../popoverContext';
|
2
|
-
/**
|
3
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
4
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
5
|
-
* @param options Popover context values to set for testing
|
6
|
-
*/
|
7
|
-
export declare const mockPopoverContext: (options?: Partial<PopoverContextValue>) => void;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.mockPopoverContext = void 0;
|
7
|
-
|
8
|
-
const popoverContext_1 = /*#__PURE__*/require("../popoverContext");
|
9
|
-
/**
|
10
|
-
* A test utility to mock the usePopoverContext hook that relies on context selector
|
11
|
-
* Don't forget to call `jest.mock(**\/popupContext.ts)` while using this
|
12
|
-
* @param options Popover context values to set for testing
|
13
|
-
*/
|
14
|
-
|
15
|
-
|
16
|
-
const mockPopoverContext = (options = {}) => {
|
17
|
-
const mockContext = {
|
18
|
-
open: false,
|
19
|
-
setOpen: () => null,
|
20
|
-
triggerRef: {
|
21
|
-
current: null
|
22
|
-
},
|
23
|
-
contentRef: {
|
24
|
-
current: null
|
25
|
-
},
|
26
|
-
arrowRef: {
|
27
|
-
current: null
|
28
|
-
},
|
29
|
-
openOnContext: false,
|
30
|
-
openOnHover: false,
|
31
|
-
size: 'medium',
|
32
|
-
...options
|
33
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
34
|
-
|
35
|
-
popoverContext_1.usePopoverContext.mockImplementation(selector => {
|
36
|
-
return selector(mockContext);
|
37
|
-
});
|
38
|
-
};
|
39
|
-
|
40
|
-
exports.mockPopoverContext = mockPopoverContext;
|
41
|
-
//# sourceMappingURL=mockUsePopoverContext.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/mockUsePopoverContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,gBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAA,GAAwC,EAAzC,KAA+C;AAC/E,QAAM,WAAW,GAAwB;AACvC,IAAA,IAAI,EAAE,KADiC;AAEvC,IAAA,OAAO,EAAE,MAAM,IAFwB;AAGvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAH2B;AAIvC,IAAA,UAAU,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAJ2B;AAKvC,IAAA,QAAQ,EAAE;AAAE,MAAA,OAAO,EAAE;AAAX,KAL6B;AAMvC,IAAA,aAAa,EAAE,KANwB;AAOvC,IAAA,WAAW,EAAE,KAP0B;AAQvC,IAAA,IAAI,EAAE,QARiC;AASvC,OAAG;AAToC,GAAzC,CAD+E,CAY/E;;AACC,EAAA,gBAAA,CAAA,iBAAA,CAAgC,kBAAhC,CAAoD,QAAD,IAAoD;AACtG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM;;AAAM,OAAA,CAAA,kBAAA,GAAkB,kBAAlB","sourceRoot":""}
|