@fluentui/react-popover 9.0.0-beta.1 → 9.0.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +287 -1
- package/CHANGELOG.md +72 -2
- package/dist/react-popover.d.ts +7 -3
- package/lib/components/Popover/Popover.js +2 -2
- package/lib/components/Popover/Popover.js.map +1 -1
- package/lib/components/Popover/Popover.types.d.ts +5 -3
- package/lib/components/Popover/renderPopover.js +27 -25
- package/lib/components/Popover/renderPopover.js.map +1 -1
- package/lib/components/Popover/usePopover.js +39 -51
- package/lib/components/Popover/usePopover.js.map +1 -1
- package/lib/components/PopoverSurface/PopoverSurface.js +2 -2
- package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/renderPopoverSurface.js +6 -7
- package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/usePopoverSurface.js +41 -55
- package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -0
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +16 -8
- package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/lib/components/PopoverTrigger/PopoverTrigger.js +2 -2
- package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
- package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
- package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
- package/lib/components/PopoverTrigger/usePopoverTrigger.js +25 -33
- package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
- package/lib/popoverContext.js +3 -7
- package/lib/popoverContext.js.map +1 -1
- package/lib-commonjs/Popover.js +1 -1
- package/lib-commonjs/PopoverSurface.js +1 -1
- package/lib-commonjs/PopoverTrigger.js +1 -1
- package/lib-commonjs/components/Popover/Popover.js +4 -4
- package/lib-commonjs/components/Popover/Popover.js.map +1 -1
- package/lib-commonjs/components/Popover/Popover.types.d.ts +5 -3
- package/lib-commonjs/components/Popover/index.js +1 -1
- package/lib-commonjs/components/Popover/renderPopover.js +29 -27
- package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
- package/lib-commonjs/components/Popover/usePopover.js +45 -58
- package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +6 -6
- package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/index.js +1 -1
- package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +10 -12
- package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +44 -59
- package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -0
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +18 -9
- package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
- package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +4 -4
- package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
- package/lib-commonjs/components/PopoverTrigger/index.js +1 -1
- package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
- package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
- package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +29 -38
- package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/popoverContext.js +3 -7
- package/lib-commonjs/popoverContext.js.map +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 -38
- 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 -49
- package/lib-commonjs/common/mockUsePopoverContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,293 @@
|
|
2
2
|
"name": "@fluentui/react-popover",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Thu, 25 Nov 2021 08:31:33 GMT",
|
6
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.5",
|
7
|
+
"version": "9.0.0-beta.5",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "lingfangao@hotmail.com",
|
12
|
+
"package": "@fluentui/react-popover",
|
13
|
+
"commit": "58db204f28af1d68df7260ff580cf91f0adcfb66",
|
14
|
+
"comment": "Add transparent outline to arrow for HC"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-popover",
|
19
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
|
20
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-popover",
|
25
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
26
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-popover",
|
31
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
|
32
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-popover",
|
37
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
|
38
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-popover",
|
43
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
44
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-popover",
|
49
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
50
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-popover",
|
55
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
56
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "beachball",
|
60
|
+
"package": "@fluentui/react-popover",
|
61
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
62
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"author": "beachball",
|
66
|
+
"package": "@fluentui/react-popover",
|
67
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
68
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"author": "beachball",
|
72
|
+
"package": "@fluentui/react-popover",
|
73
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
74
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"none": [
|
78
|
+
{
|
79
|
+
"author": "lingfangao@hotmail.com",
|
80
|
+
"package": "@fluentui/react-popover",
|
81
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
82
|
+
"comment": "Migrate package to use solution tsconfigs"
|
83
|
+
}
|
84
|
+
]
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"date": "Fri, 12 Nov 2021 13:25:28 GMT",
|
89
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.4",
|
90
|
+
"version": "9.0.0-beta.4",
|
91
|
+
"comments": {
|
92
|
+
"none": [
|
93
|
+
{
|
94
|
+
"author": "mgodbolt@microsoft.com",
|
95
|
+
"package": "@fluentui/react-popover",
|
96
|
+
"commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
|
97
|
+
"comment": "update docs descriptions"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"author": "lingfangao@hotmail.com",
|
101
|
+
"package": "@fluentui/react-popover",
|
102
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
103
|
+
"comment": "Remove beta release tag"
|
104
|
+
}
|
105
|
+
],
|
106
|
+
"prerelease": [
|
107
|
+
{
|
108
|
+
"author": "gcox@microsoft.com",
|
109
|
+
"package": "@fluentui/react-popover",
|
110
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
111
|
+
"comment": "Updated beta and RC components to ES2019"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"author": "lingfangao@hotmail.com",
|
115
|
+
"package": "@fluentui/react-popover",
|
116
|
+
"commit": "054822c82e40601815f6cd77733a761b72047e4b",
|
117
|
+
"comment": "fix(Popover): use `dialog` as value for `aria-haspopup` for focus trap"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"author": "olfedias@microsoft.com",
|
121
|
+
"package": "@fluentui/react-popover",
|
122
|
+
"commit": "ade4f5d3fa5a6b1c81097403f5c2f2afd859aa14",
|
123
|
+
"comment": "export static classes for components"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"author": "beachball",
|
127
|
+
"package": "@fluentui/react-popover",
|
128
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.3",
|
129
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"author": "beachball",
|
133
|
+
"package": "@fluentui/react-popover",
|
134
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
135
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"author": "beachball",
|
139
|
+
"package": "@fluentui/react-popover",
|
140
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.4",
|
141
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"author": "beachball",
|
145
|
+
"package": "@fluentui/react-popover",
|
146
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.3",
|
147
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"author": "beachball",
|
151
|
+
"package": "@fluentui/react-popover",
|
152
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
153
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"author": "beachball",
|
157
|
+
"package": "@fluentui/react-popover",
|
158
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
159
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"author": "beachball",
|
163
|
+
"package": "@fluentui/react-popover",
|
164
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
165
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"author": "beachball",
|
169
|
+
"package": "@fluentui/react-popover",
|
170
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
171
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"author": "beachball",
|
175
|
+
"package": "@fluentui/react-popover",
|
176
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
177
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"author": "beachball",
|
181
|
+
"package": "@fluentui/react-popover",
|
182
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
183
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
184
|
+
}
|
185
|
+
]
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"date": "Wed, 27 Oct 2021 12:14:20 GMT",
|
190
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.3",
|
191
|
+
"version": "9.0.0-beta.3",
|
192
|
+
"comments": {
|
193
|
+
"prerelease": [
|
194
|
+
{
|
195
|
+
"author": "peter@draxler.ml",
|
196
|
+
"package": "@fluentui/react-popover",
|
197
|
+
"commit": "f6db7c8d6b7db0902775e7857b62b745be35b59a",
|
198
|
+
"comment": "added styling of documentation"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"author": "olfedias@microsoft.com",
|
202
|
+
"package": "@fluentui/react-popover",
|
203
|
+
"commit": "1efadb35b4fc630435968de2ee44fe80d539ba1a",
|
204
|
+
"comment": "Simplify type for OnOpenChangeData"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"author": "beachball",
|
208
|
+
"package": "@fluentui/react-popover",
|
209
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.2",
|
210
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"author": "beachball",
|
214
|
+
"package": "@fluentui/react-popover",
|
215
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.2",
|
216
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"author": "beachball",
|
220
|
+
"package": "@fluentui/react-popover",
|
221
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.3",
|
222
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"author": "beachball",
|
226
|
+
"package": "@fluentui/react-popover",
|
227
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.2",
|
228
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"author": "beachball",
|
232
|
+
"package": "@fluentui/react-popover",
|
233
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.2",
|
234
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"author": "beachball",
|
238
|
+
"package": "@fluentui/react-popover",
|
239
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.3",
|
240
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"author": "beachball",
|
244
|
+
"package": "@fluentui/react-popover",
|
245
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.2",
|
246
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"author": "beachball",
|
250
|
+
"package": "@fluentui/react-popover",
|
251
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.2",
|
252
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"author": "beachball",
|
256
|
+
"package": "@fluentui/react-popover",
|
257
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2",
|
258
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"author": "beachball",
|
262
|
+
"package": "@fluentui/react-popover",
|
263
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2",
|
264
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
265
|
+
}
|
266
|
+
]
|
267
|
+
}
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"date": "Tue, 12 Oct 2021 19:45:58 GMT",
|
271
|
+
"tag": "@fluentui/react-popover_v9.0.0-beta.2",
|
272
|
+
"version": "9.0.0-beta.2",
|
273
|
+
"comments": {
|
274
|
+
"prerelease": [
|
275
|
+
{
|
276
|
+
"author": "beachball",
|
277
|
+
"package": "@fluentui/react-popover",
|
278
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.2",
|
279
|
+
"commit": "bdd19e2bb827fc1d8eb329e6ed48cd0542048358"
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"author": "beachball",
|
283
|
+
"package": "@fluentui/react-popover",
|
284
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.2",
|
285
|
+
"commit": "bdd19e2bb827fc1d8eb329e6ed48cd0542048358"
|
286
|
+
}
|
287
|
+
]
|
288
|
+
}
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"date": "Wed, 06 Oct 2021 10:37:22 GMT",
|
6
292
|
"tag": "@fluentui/react-popover_v9.0.0-beta.1",
|
7
293
|
"version": "9.0.0-beta.1",
|
8
294
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,82 @@
|
|
1
1
|
# Change Log - @fluentui/react-popover
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 25 Nov 2021 08:31:33 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
|
8
|
+
|
9
|
+
Thu, 25 Nov 2021 08:31:33 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.4..@fluentui/react-popover_v9.0.0-beta.5)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Add transparent outline to arrow for HC ([PR #20541](https://github.com/microsoft/fluentui/pull/20541) by lingfangao@hotmail.com)
|
15
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
16
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
17
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
18
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
19
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
20
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
21
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
22
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
23
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
24
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
25
|
+
|
26
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.4)
|
27
|
+
|
28
|
+
Fri, 12 Nov 2021 13:25:28 GMT
|
29
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.3..@fluentui/react-popover_v9.0.0-beta.4)
|
30
|
+
|
31
|
+
### Changes
|
32
|
+
|
33
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
34
|
+
- 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)
|
35
|
+
- export static classes for components ([PR #20450](https://github.com/microsoft/fluentui/pull/20450) by olfedias@microsoft.com)
|
36
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
37
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
38
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
39
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
40
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
41
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
42
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
43
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
44
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
45
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
46
|
+
|
47
|
+
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.3)
|
48
|
+
|
49
|
+
Wed, 27 Oct 2021 12:14:20 GMT
|
50
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.2..@fluentui/react-popover_v9.0.0-beta.3)
|
51
|
+
|
52
|
+
### Changes
|
53
|
+
|
54
|
+
- added styling of documentation ([PR #20193](https://github.com/microsoft/fluentui/pull/20193) by peter@draxler.ml)
|
55
|
+
- Simplify type for OnOpenChangeData ([PR #20096](https://github.com/microsoft/fluentui/pull/20096) by olfedias@microsoft.com)
|
56
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
57
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
58
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
59
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
60
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
61
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
62
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
63
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
64
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
65
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
66
|
+
|
67
|
+
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.2)
|
68
|
+
|
69
|
+
Tue, 12 Oct 2021 19:45:58 GMT
|
70
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.1..@fluentui/react-popover_v9.0.0-beta.2)
|
71
|
+
|
72
|
+
### Changes
|
73
|
+
|
74
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.2 ([PR #20132](https://github.com/microsoft/fluentui/pull/20132) by beachball)
|
75
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.2 ([PR #20132](https://github.com/microsoft/fluentui/pull/20132) by beachball)
|
76
|
+
|
7
77
|
## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.1)
|
8
78
|
|
9
|
-
Wed, 06 Oct 2021 10:
|
79
|
+
Wed, 06 Oct 2021 10:37:22 GMT
|
10
80
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-alpha.56..@fluentui/react-popover_v9.0.0-beta.1)
|
11
81
|
|
12
82
|
### Changes
|
package/dist/react-popover.d.ts
CHANGED
@@ -15,7 +15,9 @@ export declare const arrowHeights: Record<PopoverSize, number>;
|
|
15
15
|
/**
|
16
16
|
* Data attached to open/close events
|
17
17
|
*/
|
18
|
-
export declare type OnOpenChangeData =
|
18
|
+
export declare type OnOpenChangeData = {
|
19
|
+
open: boolean;
|
20
|
+
};
|
19
21
|
|
20
22
|
/**
|
21
23
|
* The supported events that will trigger open/close of the menu
|
@@ -85,8 +87,8 @@ export declare type PopoverContextValue = Pick<PopoverState, 'open' | 'setOpen'
|
|
85
87
|
*/
|
86
88
|
export declare type PopoverProps = Partial<PopoverCommons> & {
|
87
89
|
/**
|
88
|
-
* Can contain two children including {@link PopoverTrigger} and {@link
|
89
|
-
* Alternatively can only contain {@link
|
90
|
+
* Can contain two children including {@link PopoverTrigger} and {@link PopoverSurface}.
|
91
|
+
* Alternatively can only contain {@link PopoverSurface} if using a custom `target`.
|
90
92
|
*/
|
91
93
|
children: [JSX.Element, JSX.Element] | JSX.Element;
|
92
94
|
};
|
@@ -132,6 +134,8 @@ export declare type PopoverState = PopoverCommons & Pick<PopoverProps, 'children
|
|
132
134
|
*/
|
133
135
|
export declare const PopoverSurface: ForwardRefComponent<PopoverSurfaceProps>;
|
134
136
|
|
137
|
+
export declare const popoverSurfaceClassName = "fui-PopoverSurface";
|
138
|
+
|
135
139
|
/**
|
136
140
|
* PopoverSurface Props
|
137
141
|
*/
|
@@ -4,8 +4,8 @@ import { renderPopover } from './renderPopover';
|
|
4
4
|
* Wrapper component that manages state for a PopoverTrigger and a PopoverSurface components.
|
5
5
|
*/
|
6
6
|
|
7
|
-
export
|
8
|
-
|
7
|
+
export const Popover = props => {
|
8
|
+
const state = usePopover(props);
|
9
9
|
return renderPopover(state);
|
10
10
|
};
|
11
11
|
Popover.displayName = 'Popover';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAGA;;AAEG;;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAGA;;AAEG;;AACH,OAAO,MAAM,OAAO,GAA2B,KAAK,IAAG;AACrD,QAAM,KAAK,GAAG,UAAU,CAAC,KAAD,CAAxB;AAEA,SAAO,aAAa,CAAC,KAAD,CAApB;AACD,CAJM;AAMP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
|
@@ -55,8 +55,8 @@ export declare type PopoverCommons = Pick<PortalProps, 'mountNode'> & {
|
|
55
55
|
*/
|
56
56
|
export declare type PopoverProps = Partial<PopoverCommons> & {
|
57
57
|
/**
|
58
|
-
* Can contain two children including {@link PopoverTrigger} and {@link
|
59
|
-
* Alternatively can only contain {@link
|
58
|
+
* Can contain two children including {@link PopoverTrigger} and {@link PopoverSurface}.
|
59
|
+
* Alternatively can only contain {@link PopoverSurface} if using a custom `target`.
|
60
60
|
*/
|
61
61
|
children: [JSX.Element, JSX.Element] | JSX.Element;
|
62
62
|
};
|
@@ -93,7 +93,9 @@ export declare type PopoverState = PopoverCommons & Pick<PopoverProps, 'children
|
|
93
93
|
/**
|
94
94
|
* Data attached to open/close events
|
95
95
|
*/
|
96
|
-
export declare type OnOpenChangeData =
|
96
|
+
export declare type OnOpenChangeData = {
|
97
|
+
open: boolean;
|
98
|
+
};
|
97
99
|
/**
|
98
100
|
* The supported events that will trigger open/close of the menu
|
99
101
|
*/
|
@@ -4,33 +4,35 @@ import { PopoverContext } from '../../popoverContext';
|
|
4
4
|
* Render the final JSX of Popover
|
5
5
|
*/
|
6
6
|
|
7
|
-
export
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
7
|
+
export const renderPopover = state => {
|
8
|
+
const {
|
9
|
+
open,
|
10
|
+
setOpen,
|
11
|
+
triggerRef,
|
12
|
+
contentRef,
|
13
|
+
openOnContext,
|
14
|
+
openOnHover,
|
15
|
+
mountNode,
|
16
|
+
arrowRef,
|
17
|
+
size,
|
18
|
+
noArrow,
|
19
|
+
appearance,
|
20
|
+
trapFocus
|
21
|
+
} = state;
|
20
22
|
return /*#__PURE__*/React.createElement(PopoverContext.Provider, {
|
21
23
|
value: {
|
22
|
-
open
|
23
|
-
setOpen
|
24
|
-
triggerRef
|
25
|
-
contentRef
|
26
|
-
openOnHover
|
27
|
-
openOnContext
|
28
|
-
mountNode
|
29
|
-
arrowRef
|
30
|
-
size
|
31
|
-
noArrow
|
32
|
-
appearance
|
33
|
-
trapFocus
|
24
|
+
open,
|
25
|
+
setOpen,
|
26
|
+
triggerRef,
|
27
|
+
contentRef,
|
28
|
+
openOnHover,
|
29
|
+
openOnContext,
|
30
|
+
mountNode,
|
31
|
+
arrowRef,
|
32
|
+
size,
|
33
|
+
noArrow,
|
34
|
+
appearance,
|
35
|
+
trapFocus
|
34
36
|
}
|
35
37
|
}, state.children);
|
36
38
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Popover/renderPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,sBAA/B;AAGA;;AAEG;;AACH,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/Popover/renderPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,sBAA/B;AAGA;;AAEG;;AACH,OAAO,MAAM,aAAa,GAAI,KAAD,IAAwB;AACnD,QAAM;AACJ,IAAA,IADI;AAEJ,IAAA,OAFI;AAGJ,IAAA,UAHI;AAIJ,IAAA,UAJI;AAKJ,IAAA,aALI;AAMJ,IAAA,WANI;AAOJ,IAAA,SAPI;AAQJ,IAAA,QARI;AASJ,IAAA,IATI;AAUJ,IAAA,OAVI;AAWJ,IAAA,UAXI;AAYJ,IAAA;AAZI,MAaF,KAbJ;AAeA,sBACE,KAAA,CAAA,aAAA,CAAC,cAAc,CAAC,QAAhB,EAAwB;AACtB,IAAA,KAAK,EAAE;AACL,MAAA,IADK;AAEL,MAAA,OAFK;AAGL,MAAA,UAHK;AAIL,MAAA,UAJK;AAKL,MAAA,WALK;AAML,MAAA,aANK;AAOL,MAAA,SAPK;AAQL,MAAA,QARK;AASL,MAAA,IATK;AAUL,MAAA,OAVK;AAWL,MAAA,UAXK;AAYL,MAAA;AAZK;AADe,GAAxB,EAgBG,KAAK,CAAC,QAhBT,CADF;AAoBD,CApCM","sourceRoot":""}
|