@fluentui/react-popover 0.0.0-nightly9edaf68d4420211116.1 → 0.0.0-nightlya9c3d10d9520220113.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/CHANGELOG.json +151 -24
  2. package/CHANGELOG.md +39 -15
  3. package/dist/react-popover.d.ts +1 -3
  4. package/lib/components/Popover/usePopover.js +2 -1
  5. package/lib/components/Popover/usePopover.js.map +1 -1
  6. package/lib/components/PopoverSurface/renderPopoverSurface.js +3 -3
  7. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  8. package/lib/components/PopoverSurface/usePopoverSurface.d.ts +1 -2
  9. package/lib/components/PopoverSurface/usePopoverSurface.js +0 -1
  10. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  11. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +28 -17
  12. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  13. package/lib/popoverContext.d.ts +1 -1
  14. package/lib-commonjs/components/Popover/usePopover.js +2 -1
  15. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  16. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +3 -4
  17. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  18. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +1 -2
  19. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +2 -3
  20. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  21. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +29 -16
  22. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  23. package/lib-commonjs/popoverContext.d.ts +1 -1
  24. package/package.json +13 -12
  25. package/lib/common/isConformant.d.ts +0 -4
  26. package/lib/common/isConformant.js +0 -13
  27. package/lib/common/isConformant.js.map +0 -1
  28. package/lib/common/mockUsePopoverContext.d.ts +0 -7
  29. package/lib/common/mockUsePopoverContext.js +0 -31
  30. package/lib/common/mockUsePopoverContext.js.map +0 -1
  31. package/lib-commonjs/common/isConformant.d.ts +0 -4
  32. package/lib-commonjs/common/isConformant.js +0 -24
  33. package/lib-commonjs/common/isConformant.js.map +0 -1
  34. package/lib-commonjs/common/mockUsePopoverContext.d.ts +0 -7
  35. package/lib-commonjs/common/mockUsePopoverContext.js +0 -41
  36. package/lib-commonjs/common/mockUsePopoverContext.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,76 +2,203 @@
2
2
  "name": "@fluentui/react-popover",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 16 Nov 2021 04:18:28 GMT",
6
- "tag": "@fluentui/react-popover_v0.0.0-nightly9edaf68d4420211116.1",
7
- "version": "0.0.0-nightly9edaf68d4420211116.1",
5
+ "date": "Thu, 13 Jan 2022 04:15:44 GMT",
6
+ "tag": "@fluentui/react-popover_v0.0.0-nightlya9c3d10d9520220113.1",
7
+ "version": "0.0.0-nightlya9c3d10d9520220113.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-popover",
13
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb",
13
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "Humberto.Morimoto@microsoft.com",
18
+ "package": "@fluentui/react-popover",
19
+ "commit": "38e8f42252c69b1c749c3ca7fca9315b49e6cf31",
20
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens"
21
+ },
22
+ {
23
+ "author": "behowell@microsoft.com",
24
+ "package": "@fluentui/react-popover",
25
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
26
+ "comment": "Remove component's shorthandProps array"
27
+ },
28
+ {
29
+ "author": "behowell@microsoft.com",
30
+ "package": "@fluentui/react-popover",
31
+ "commit": "09804275c7f346db54c33d4ff347bffc33676014",
32
+ "comment": "Fix Popover arrow border in high contrast"
33
+ },
34
+ {
35
+ "author": "Humberto.Morimoto@microsoft.com",
36
+ "package": "@fluentui/react-popover",
37
+ "commit": "6c32d0180e89674a46daf795de69e5dc6ca71ef7",
38
+ "comment": "Updating based on removal of functions from makeStyles."
39
+ },
40
+ {
41
+ "author": "olfedias@microsoft.com",
42
+ "package": "@fluentui/react-popover",
43
+ "commit": "ec0e785df9c70a2202dc5cc3cb4001d1ee635124",
44
+ "comment": "update styles to not use CSS shorthands"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-popover",
49
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlya9c3d10d9520220113.1",
50
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-popover",
55
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
56
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-popover",
61
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlya9c3d10d9520220113.1",
62
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-popover",
67
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlya9c3d10d9520220113.1",
68
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-popover",
73
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlya9c3d10d9520220113.1",
74
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-popover",
79
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlya9c3d10d9520220113.1",
80
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
81
+ },
16
82
  {
17
83
  "author": "beachball",
18
84
  "package": "@fluentui/react-popover",
19
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly9edaf68d4420211116.1",
20
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
85
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlya9c3d10d9520220113.1",
86
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
21
87
  },
22
88
  {
23
89
  "author": "beachball",
24
90
  "package": "@fluentui/react-popover",
25
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
26
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
91
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
92
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
27
93
  },
28
94
  {
29
95
  "author": "beachball",
30
96
  "package": "@fluentui/react-popover",
31
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightly9edaf68d4420211116.1",
32
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
97
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
98
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
33
99
  },
34
100
  {
35
101
  "author": "beachball",
36
102
  "package": "@fluentui/react-popover",
37
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly9edaf68d4420211116.1",
38
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
103
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
104
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
105
+ }
106
+ ],
107
+ "none": [
108
+ {
109
+ "author": "elcraig@microsoft.com",
110
+ "package": "@fluentui/react-popover",
111
+ "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
112
+ "comment": "Update API file to version generated by typescript 4.3"
113
+ },
114
+ {
115
+ "author": "email not defined",
116
+ "package": "@fluentui/react-popover",
117
+ "commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
118
+ "comment": "Add workaround for cypress bug"
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "date": "Thu, 25 Nov 2021 08:34:15 GMT",
125
+ "tag": "@fluentui/react-popover_v9.0.0-beta.5",
126
+ "version": "9.0.0-beta.5",
127
+ "comments": {
128
+ "prerelease": [
129
+ {
130
+ "author": "lingfangao@hotmail.com",
131
+ "package": "@fluentui/react-popover",
132
+ "commit": "58db204f28af1d68df7260ff580cf91f0adcfb66",
133
+ "comment": "Add transparent outline to arrow for HC"
39
134
  },
40
135
  {
41
136
  "author": "beachball",
42
137
  "package": "@fluentui/react-popover",
43
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly9edaf68d4420211116.1",
44
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
138
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
139
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
140
  },
46
141
  {
47
142
  "author": "beachball",
48
143
  "package": "@fluentui/react-popover",
49
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly9edaf68d4420211116.1",
50
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
144
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
145
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
146
  },
52
147
  {
53
148
  "author": "beachball",
54
149
  "package": "@fluentui/react-popover",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly9edaf68d4420211116.1",
56
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
150
+ "comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
151
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
152
  },
58
153
  {
59
154
  "author": "beachball",
60
155
  "package": "@fluentui/react-popover",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
62
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
156
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
157
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
63
158
  },
64
159
  {
65
160
  "author": "beachball",
66
161
  "package": "@fluentui/react-popover",
67
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
68
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
162
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
163
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
69
164
  },
70
165
  {
71
166
  "author": "beachball",
72
167
  "package": "@fluentui/react-popover",
73
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
74
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
168
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
169
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
170
+ },
171
+ {
172
+ "author": "beachball",
173
+ "package": "@fluentui/react-popover",
174
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
175
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
176
+ },
177
+ {
178
+ "author": "beachball",
179
+ "package": "@fluentui/react-popover",
180
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
181
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
182
+ },
183
+ {
184
+ "author": "beachball",
185
+ "package": "@fluentui/react-popover",
186
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
187
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
188
+ },
189
+ {
190
+ "author": "beachball",
191
+ "package": "@fluentui/react-popover",
192
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
193
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
194
+ }
195
+ ],
196
+ "none": [
197
+ {
198
+ "author": "lingfangao@hotmail.com",
199
+ "package": "@fluentui/react-popover",
200
+ "commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
201
+ "comment": "Migrate package to use solution tsconfigs"
75
202
  }
76
203
  ]
77
204
  }
package/CHANGELOG.md CHANGED
@@ -1,27 +1,51 @@
1
1
  # Change Log - @fluentui/react-popover
2
2
 
3
- This log was last generated on Tue, 16 Nov 2021 04:18:28 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 13 Jan 2022 04:15:44 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly9edaf68d4420211116.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightly9edaf68d4420211116.1)
7
+ ## [0.0.0-nightlya9c3d10d9520220113.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlya9c3d10d9520220113.1)
8
8
 
9
- Tue, 16 Nov 2021 04:18:28 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.4..@fluentui/react-popover_v0.0.0-nightly9edaf68d4420211116.1)
9
+ Thu, 13 Jan 2022 04:15:44 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightlya9c3d10d9520220113.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by email not defined)
15
- - Bump @fluentui/react-context-selector to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
16
- - Bump @fluentui/react-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
17
- - Bump @fluentui/react-portal to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
18
- - Bump @fluentui/react-positioning to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
19
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
23
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
24
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by email not defined)
15
+ - Replacing use of functions in makeStyles with direct use of tokens ([PR #21049](https://github.com/microsoft/fluentui/pull/21049) by Humberto.Morimoto@microsoft.com)
16
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
17
+ - Fix Popover arrow border in high contrast ([PR #21086](https://github.com/microsoft/fluentui/pull/21086) by behowell@microsoft.com)
18
+ - Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
19
+ - update styles to not use CSS shorthands ([PR #20796](https://github.com/microsoft/fluentui/pull/20796) by olfedias@microsoft.com)
20
+ - Bump @fluentui/react-context-selector to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
21
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
22
+ - Bump @fluentui/react-portal to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
23
+ - Bump @fluentui/react-positioning to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
24
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
25
+ - Bump @fluentui/react-tabster to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
26
+ - Bump @fluentui/react-utilities to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
27
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
28
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
29
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
30
+
31
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
32
+
33
+ Thu, 25 Nov 2021 08:34:15 GMT
34
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.4..@fluentui/react-popover_v9.0.0-beta.5)
35
+
36
+ ### Changes
37
+
38
+ - Add transparent outline to arrow for HC ([PR #20541](https://github.com/microsoft/fluentui/pull/20541) by lingfangao@hotmail.com)
39
+ - Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
40
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
41
+ - Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
42
+ - Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
43
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
44
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
45
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
46
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
47
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
48
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
25
49
 
26
50
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.4)
27
51
 
@@ -148,8 +148,6 @@ export declare type PopoverSurfaceSlots = {
148
148
  root: IntrinsicShorthandProps<'div'>;
149
149
  };
150
150
 
151
- export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
152
-
153
151
  /**
154
152
  * PopoverSurface State
155
153
  */
@@ -202,7 +200,7 @@ export declare const renderPopoverTrigger: (state: PopoverTriggerState) => JSX.E
202
200
  */
203
201
  export declare const usePopover: (props: PopoverProps) => PopoverState;
204
202
 
205
- export declare const usePopoverContext: <T>(selector: ContextSelector<Pick<PopoverState, "mountNode" | "open" | "setOpen" | "triggerRef" | "contentRef" | "openOnHover" | "openOnContext" | "noArrow" | "arrowRef" | "size" | "appearance" | "trapFocus">, T>) => T;
203
+ export declare const usePopoverContext: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
206
204
 
207
205
  /**
208
206
  * 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"],"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AAZ,GAAY,KAAA,CAAZ,GAAA,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,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":""}
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Portal } from '@fluentui/react-portal';
3
3
  import { getSlots } from '@fluentui/react-utilities';
4
- import { popoverSurfaceSlots } from './usePopoverSurface';
5
4
  /**
6
5
  * Render the final JSX of PopoverSurface
7
6
  */
@@ -10,7 +9,7 @@ export const renderPopoverSurface = state => {
10
9
  const {
11
10
  slots,
12
11
  slotProps
13
- } = getSlots(state, popoverSurfaceSlots); // TODO should hidden Popovers be supported ?
12
+ } = getSlots(state); // TODO should hidden Popovers be supported ?
14
13
 
15
14
  if (!state.open) {
16
15
  return null;
@@ -18,7 +17,8 @@ export const renderPopoverSurface = state => {
18
17
 
19
18
  return /*#__PURE__*/React.createElement(Portal, {
20
19
  mountNode: state.mountNode
21
- }, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), !state.noArrow && /*#__PURE__*/React.createElement("div", {
20
+ }, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
21
+ }, !state.noArrow && /*#__PURE__*/React.createElement("div", {
22
22
  ref: state.arrowRef,
23
23
  className: state.arrowClassName
24
24
  }), 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,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,CAAC,KAAK,CAAC,OAAP,iBAAkB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM","sourceRoot":""}
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;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,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,GAAX,EACG,CAAC,KAAK,CAAC,OAAP,iBAAkB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM","sourceRoot":""}
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { PopoverSurfaceProps, PopoverSurfaceSlots, PopoverSurfaceState } from './PopoverSurface.types';
3
- export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
2
+ import type { PopoverSurfaceProps, PopoverSurfaceState } from './PopoverSurface.types';
4
3
  /**
5
4
  * Create the state required to render PopoverSurface.
6
5
  *
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';
3
3
  import { useFocusFinders, useModalAttributes } from '@fluentui/react-tabster';
4
4
  import { usePopoverContext } from '../../popoverContext';
5
- export const popoverSurfaceSlots = ['root'];
6
5
  /**
7
6
  * Create the state required to render PopoverSurface.
8
7
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,aAAhC,QAAqD,2BAArD;AACA,SAAS,eAAT,EAA0B,kBAA1B,QAAoD,yBAApD;AACA,SAAS,iBAAT,QAAkC,sBAAlC;AAGA,OAAO,MAAM,mBAAmB,GAAqC,CAAC,MAAD,CAA9D;AAEP;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAA6B,GAA7B,KAAoF;AACnH,QAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,UAApB,CAApC;AACA,QAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,IAApB,CAA9B;AACA,QAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,WAApB,CAArC;AACA,QAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,OAApB,CAAjC;AACA,QAAM,SAAS,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,SAApB,CAAnC;AACA,QAAM,QAAQ,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,QAApB,CAAlC;AACA,QAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,IAApB,CAA9B;AACA,QAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,OAApB,CAAjC;AACA,QAAM,UA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,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,6 @@
1
- import { __styles, mergeClasses } from '@fluentui/react-make-styles';
1
+ import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
2
+ import { createArrowHeightStyles, createArrowStyles } from '@fluentui/react-positioning';
3
+ import { tokens } from '@fluentui/react-theme';
2
4
  export const popoverSurfaceClassName = 'fui-PopoverSurface';
3
5
  export const arrowHeights = {
4
6
  small: 6,
@@ -12,8 +14,11 @@ export const arrowHeights = {
12
14
  const useStyles = /*#__PURE__*/__styles({
13
15
  "root": {
14
16
  "De3pzq": "fxugw4r",
15
- "E5pizo": ["f1hg901r", "f136t921"],
16
- "Dimara": "ff3glw6",
17
+ "E5pizo": "f1hg901r",
18
+ "Bbmb7ep": ["fff7au0", "f1bjk9e1"],
19
+ "Beyfa6y": ["f1bjk9e1", "fff7au0"],
20
+ "B7oj6ja": ["fwsfkhu", "f8wkphi"],
21
+ "Btl43ni": ["f8wkphi", "fwsfkhu"],
17
22
  "B4j52fo": "f5ogflp",
18
23
  "Bekrc4i": ["f1hqa2wf", "finvdd3"],
19
24
  "Bn0qgzm": "f1f09k3d",
@@ -54,38 +59,44 @@ const useStyles = /*#__PURE__*/__styles({
54
59
  "uwmqm3": ["fekwl8i", "fat0sn4"]
55
60
  },
56
61
  "smallArrow": {
57
- "a9b677": "f1smug5u",
58
- "Bqenvij": "f11ci07v"
62
+ "a9b677": "f1ekdpwm",
63
+ "Bqenvij": "f83vc9z"
59
64
  },
60
65
  "mediumLargeArrow": {
61
- "a9b677": "ftmg478",
62
- "Bqenvij": "f7bsbfx"
66
+ "a9b677": "f1kmc0fn",
67
+ "Bqenvij": "fb6lvc5"
63
68
  },
64
69
  "arrow": {
65
70
  "qhf8xq": "f1euv43f",
66
- "ayd6f0": "f1uo6wrk",
71
+ "De3pzq": "f1u2r49w",
67
72
  "Bcdw1i0": "fd7fpy0",
68
73
  "Bj3rh1h": "f1bsuimh",
69
74
  "rurcny": "fuzzvh5",
70
- "zf3lio": "f1qudtws",
75
+ "Bex5imi": "fkk33zh",
71
76
  "xx9plb": "fxf9f1y",
77
+ "Bmqnesq": "f170vdtw",
72
78
  "Bdn98qo": "f103af6e",
73
79
  "Bbc2r3f": "f15umuo5",
74
- "B4zgs9e": "ffo048g",
75
- "Bex5imi": "fkk33zh",
80
+ "B1dvbpk": "f3wpjpt",
81
+ "D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
82
+ "cqycoz": ["fiio4mc", "fc8z0qo"],
83
+ "I89eb": ["f15d5mb5", "fe45dp8"],
84
+ "k1i1uq": "fyqop9u",
85
+ "Epwjcz": "f1m5ya7j",
86
+ "Bp1vogq": "f3sp63x",
76
87
  "px8gyy": ["f5bg3dr", "f1rfdd74"],
77
- "h6z6rw": ["fzd2j21", "f2549he"],
78
- "hl6cv3": "fotnskf",
88
+ "h6z6rw": "fzd2j21",
89
+ "hl6cv3": "f1773hnp",
79
90
  "Bh2vraf": "f1n8855c",
80
- "yayu3t": ["f1nq055x", "f13ohf3"],
91
+ "yayu3t": "f1v7783n",
81
92
  "wedwtw": "fsw6im5",
82
- "rhl9o9": "ftghsr9",
93
+ "rhl9o9": "fh2hsk5",
83
94
  "Bu8t5uz": "f159pzir",
84
- "B6q6orb": ["f1l8vbt4", "fsxzh25"],
95
+ "B6q6orb": "f11yvu4",
85
96
  "Bwwlvwl": "fm1ycve"
86
97
  }
87
98
  }, {
88
- "d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f136t921{box-shadow:var(--shadow-16);}", ".ff3glw6{border-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;}", ".f1uo6wrk{background:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".f1qudtws:before{border-radius:4px;}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".ffo048g:before{background:inherit;}", ".fkk33zh:before{visibility:visible;}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".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);}", ".f2549he: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^=\"top\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1nq055x{left:0;}", "[data-popper-placement^=\"right\"] .f13ohf3{right: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\"] .f1l8vbt4{right:0;}", "[data-popper-placement^=\"left\"] .fsxzh25{left:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
99
+ "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;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".f1kmc0fn{width:11.312px;}", ".fb6lvc5{height:11.312px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f15d5mb5:before{border-right-color:var(--colorTransparentStroke);}", ".fe45dp8:before{border-left-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".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^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
89
100
  });
90
101
  /**
91
102
  * Apply styling to the PopoverSurface slots based on the state
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurfaceStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;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;AAA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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":""}
@@ -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<Pick<PopoverState, "mountNode" | "open" | "setOpen" | "triggerRef" | "contentRef" | "openOnHover" | "openOnContext" | "noArrow" | "arrowRef" | "size" | "appearance" | "trapFocus">, T>) => T;
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,O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 const React = /*#__PURE__*/require("react");
10
10
  const react_portal_1 = /*#__PURE__*/require("@fluentui/react-portal");
11
11
 
12
12
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
-
14
- const usePopoverSurface_1 = /*#__PURE__*/require("./usePopoverSurface");
15
13
  /**
16
14
  * Render the final JSX of PopoverSurface
17
15
  */
@@ -21,7 +19,7 @@ const renderPopoverSurface = state => {
21
19
  const {
22
20
  slots,
23
21
  slotProps
24
- } = react_utilities_1.getSlots(state, usePopoverSurface_1.popoverSurfaceSlots); // TODO should hidden Popovers be supported ?
22
+ } = react_utilities_1.getSlots(state); // TODO should hidden Popovers be supported ?
25
23
 
26
24
  if (!state.open) {
27
25
  return null;
@@ -29,7 +27,8 @@ const renderPopoverSurface = state => {
29
27
 
30
28
  return React.createElement(react_portal_1.Portal, {
31
29
  mountNode: state.mountNode
32
- }, React.createElement(slots.root, Object.assign({}, slotProps.root), !state.noArrow && React.createElement("div", {
30
+ }, React.createElement(slots.root, { ...slotProps.root
31
+ }, !state.noArrow && React.createElement("div", {
33
32
  ref: state.arrowRef,
34
33
  className: state.arrowClassName
35
34
  }), 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,CAA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KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { PopoverSurfaceProps, PopoverSurfaceSlots, PopoverSurfaceState } from './PopoverSurface.types';
3
- export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
2
+ import type { PopoverSurfaceProps, PopoverSurfaceState } from './PopoverSurface.types';
4
3
  /**
5
4
  * Create the state required to render PopoverSurface.
6
5
  *
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.usePopoverSurface = exports.popoverSurfaceSlots = void 0;
6
+ exports.usePopoverSurface = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -12,8 +12,6 @@ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
12
12
  const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
13
13
 
14
14
  const popoverContext_1 = /*#__PURE__*/require("../../popoverContext");
15
-
16
- exports.popoverSurfaceSlots = ['root'];
17
15
  /**
18
16
  * Create the state required to render PopoverSurface.
19
17
  *
@@ -24,6 +22,7 @@ exports.popoverSurfaceSlots = ['root'];
24
22
  * @param ref - reference to root HTMLDivElement of PopoverSurface
25
23
  */
26
24
 
25
+
27
26
  const usePopoverSurface = (props, ref) => {
28
27
  const contentRef = popoverContext_1.usePopoverContext(context => context.contentRef);
29
28
  const open = popoverContext_1.usePopoverContext(context => context.open);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurface.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,g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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,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,10 @@ 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
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
13
+
10
14
  exports.popoverSurfaceClassName = 'fui-PopoverSurface';
11
15
  exports.arrowHeights = {
12
16
  small: 6,
@@ -20,8 +24,11 @@ exports.arrowHeights = {
20
24
  const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
21
25
  "root": {
22
26
  "De3pzq": "fxugw4r",
23
- "E5pizo": ["f1hg901r", "f136t921"],
24
- "Dimara": "ff3glw6",
27
+ "E5pizo": "f1hg901r",
28
+ "Bbmb7ep": ["fff7au0", "f1bjk9e1"],
29
+ "Beyfa6y": ["f1bjk9e1", "fff7au0"],
30
+ "B7oj6ja": ["fwsfkhu", "f8wkphi"],
31
+ "Btl43ni": ["f8wkphi", "fwsfkhu"],
25
32
  "B4j52fo": "f5ogflp",
26
33
  "Bekrc4i": ["f1hqa2wf", "finvdd3"],
27
34
  "Bn0qgzm": "f1f09k3d",
@@ -62,38 +69,44 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
62
69
  "uwmqm3": ["fekwl8i", "fat0sn4"]
63
70
  },
64
71
  "smallArrow": {
65
- "a9b677": "f1smug5u",
66
- "Bqenvij": "f11ci07v"
72
+ "a9b677": "f1ekdpwm",
73
+ "Bqenvij": "f83vc9z"
67
74
  },
68
75
  "mediumLargeArrow": {
69
- "a9b677": "ftmg478",
70
- "Bqenvij": "f7bsbfx"
76
+ "a9b677": "f1kmc0fn",
77
+ "Bqenvij": "fb6lvc5"
71
78
  },
72
79
  "arrow": {
73
80
  "qhf8xq": "f1euv43f",
74
- "ayd6f0": "f1uo6wrk",
81
+ "De3pzq": "f1u2r49w",
75
82
  "Bcdw1i0": "fd7fpy0",
76
83
  "Bj3rh1h": "f1bsuimh",
77
84
  "rurcny": "fuzzvh5",
78
- "zf3lio": "f1qudtws",
85
+ "Bex5imi": "fkk33zh",
79
86
  "xx9plb": "fxf9f1y",
87
+ "Bmqnesq": "f170vdtw",
80
88
  "Bdn98qo": "f103af6e",
81
89
  "Bbc2r3f": "f15umuo5",
82
- "B4zgs9e": "ffo048g",
83
- "Bex5imi": "fkk33zh",
90
+ "B1dvbpk": "f3wpjpt",
91
+ "D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
92
+ "cqycoz": ["fiio4mc", "fc8z0qo"],
93
+ "I89eb": ["f15d5mb5", "fe45dp8"],
94
+ "k1i1uq": "fyqop9u",
95
+ "Epwjcz": "f1m5ya7j",
96
+ "Bp1vogq": "f3sp63x",
84
97
  "px8gyy": ["f5bg3dr", "f1rfdd74"],
85
- "h6z6rw": ["fzd2j21", "f2549he"],
86
- "hl6cv3": "fotnskf",
98
+ "h6z6rw": "fzd2j21",
99
+ "hl6cv3": "f1773hnp",
87
100
  "Bh2vraf": "f1n8855c",
88
- "yayu3t": ["f1nq055x", "f13ohf3"],
101
+ "yayu3t": "f1v7783n",
89
102
  "wedwtw": "fsw6im5",
90
- "rhl9o9": "ftghsr9",
103
+ "rhl9o9": "fh2hsk5",
91
104
  "Bu8t5uz": "f159pzir",
92
- "B6q6orb": ["f1l8vbt4", "fsxzh25"],
105
+ "B6q6orb": "f11yvu4",
93
106
  "Bwwlvwl": "fm1ycve"
94
107
  }
95
108
  }, {
96
- "d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".f136t921{box-shadow:var(--shadow-16);}", ".ff3glw6{border-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;}", ".f1uo6wrk{background:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".f1qudtws:before{border-radius:4px;}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".ffo048g:before{background:inherit;}", ".fkk33zh:before{visibility:visible;}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".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);}", ".f2549he: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^=\"top\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1nq055x{left:0;}", "[data-popper-placement^=\"right\"] .f13ohf3{right: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\"] .f1l8vbt4{right:0;}", "[data-popper-placement^=\"left\"] .fsxzh25{left:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
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;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".f1kmc0fn{width:11.312px;}", ".fb6lvc5{height:11.312px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f15d5mb5:before{border-right-color:var(--colorTransparentStroke);}", ".fe45dp8:before{border-left-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".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^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[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,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QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,uBADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,YAHZ,EAIrB,KAAK,CAAC,IAAN,KAAe,QAAf,IAA2B,MAAM,CAAC,aAJb,EAKrB,KAAK,CAAC,IAAN,KAAe,OAAf,IAA0B,MAAM,CAAC,YALZ,EAMrB,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QANrB,EAOrB,KAAK,CAAC,UAAN,KAAqB,OAArB,IAAgC,MAAM,CAAC,KAPlB,EAQrB,KAAK,CAAC,IAAN,CAAW,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":""}
@@ -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<Pick<PopoverState, "mountNode" | "open" | "setOpen" | "triggerRef" | "contentRef" | "openOnHover" | "openOnContext" | "noArrow" | "arrowRef" | "size" | "appearance" | "trapFocus">, T>) => T;
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-nightly9edaf68d4420211116.1",
3
+ "version": "0.0.0-nightlya9c3d10d9520220113.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-nightly9edaf68d4420211116.1",
30
+ "@fluentui/babel-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
30
31
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
32
+ "@fluentui/jest-serializer-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
32
33
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
34
+ "@fluentui/react-conformance-make-styles": "0.0.0-nightlya9c3d10d9520220113.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-nightly9edaf68d4420211116.1",
48
- "@fluentui/react-make-styles": "0.0.0-nightly9edaf68d4420211116.1",
49
- "@fluentui/react-portal": "0.0.0-nightly9edaf68d4420211116.1",
50
- "@fluentui/react-positioning": "0.0.0-nightly9edaf68d4420211116.1",
51
- "@fluentui/react-shared-contexts": "0.0.0-nightly9edaf68d4420211116.1",
52
- "@fluentui/react-tabster": "0.0.0-nightly9edaf68d4420211116.1",
53
- "@fluentui/react-utilities": "0.0.0-nightly9edaf68d4420211116.1",
48
+ "@fluentui/react-context-selector": "0.0.0-nightlya9c3d10d9520220113.1",
49
+ "@fluentui/react-make-styles": "0.0.0-nightlya9c3d10d9520220113.1",
50
+ "@fluentui/react-portal": "0.0.0-nightlya9c3d10d9520220113.1",
51
+ "@fluentui/react-positioning": "0.0.0-nightlya9c3d10d9520220113.1",
52
+ "@fluentui/react-shared-contexts": "0.0.0-nightlya9c3d10d9520220113.1",
53
+ "@fluentui/react-tabster": "0.0.0-nightlya9c3d10d9520220113.1",
54
+ "@fluentui/react-utilities": "0.0.0-nightlya9c3d10d9520220113.1",
54
55
  "tslib": "^2.1.0"
55
56
  },
56
57
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -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,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -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":""}