@fluentui/react-popover 0.0.0-nightlyd514b3e0ee20220121.1 → 0.0.0-nightlyd80c90385320220216.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/CHANGELOG.json +135 -48
  2. package/CHANGELOG.md +38 -17
  3. package/dist/react-popover.d.ts +29 -18
  4. package/lib/components/Popover/Popover.js +4 -4
  5. package/lib/components/Popover/Popover.js.map +1 -1
  6. package/lib/components/Popover/Popover.types.d.ts +2 -1
  7. package/lib/components/Popover/renderPopover.d.ts +1 -1
  8. package/lib/components/Popover/renderPopover.js +1 -1
  9. package/lib/components/Popover/renderPopover.js.map +1 -1
  10. package/lib/components/Popover/usePopover.d.ts +2 -2
  11. package/lib/components/Popover/usePopover.js +2 -2
  12. package/lib/components/Popover/usePopover.js.map +1 -1
  13. package/lib/components/PopoverSurface/PopoverSurface.js +6 -6
  14. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  15. package/lib/components/PopoverSurface/PopoverSurface.types.d.ts +2 -2
  16. package/lib/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  17. package/lib/components/PopoverSurface/renderPopoverSurface.js +1 -1
  18. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  19. package/lib/components/PopoverSurface/usePopoverSurface.d.ts +3 -3
  20. package/lib/components/PopoverSurface/usePopoverSurface.js +16 -15
  21. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  22. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  23. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +2 -2
  24. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  25. package/lib/components/PopoverTrigger/PopoverTrigger.d.ts +2 -1
  26. package/lib/components/PopoverTrigger/PopoverTrigger.js +5 -4
  27. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  28. package/lib/components/PopoverTrigger/PopoverTrigger.types.d.ts +9 -2
  29. package/lib/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  30. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  31. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  32. package/lib/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  33. package/lib/components/PopoverTrigger/usePopoverTrigger.js +33 -40
  34. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  35. package/lib/popoverContext.d.ts +1 -1
  36. package/lib/popoverContext.js +1 -1
  37. package/lib/popoverContext.js.map +1 -1
  38. package/lib-commonjs/components/Popover/Popover.js +2 -2
  39. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  40. package/lib-commonjs/components/Popover/Popover.types.d.ts +2 -1
  41. package/lib-commonjs/components/Popover/renderPopover.d.ts +1 -1
  42. package/lib-commonjs/components/Popover/renderPopover.js +3 -3
  43. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  44. package/lib-commonjs/components/Popover/usePopover.d.ts +2 -2
  45. package/lib-commonjs/components/Popover/usePopover.js +4 -4
  46. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  47. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +3 -3
  48. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  49. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.d.ts +2 -2
  50. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  51. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +3 -3
  52. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  53. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +3 -3
  54. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +17 -16
  55. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  56. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  57. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +7 -7
  58. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  59. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.d.ts +2 -1
  60. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +3 -2
  61. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  62. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.types.d.ts +9 -2
  63. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  64. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +3 -3
  65. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  66. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  67. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +33 -40
  68. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  69. package/lib-commonjs/popoverContext.d.ts +1 -1
  70. package/lib-commonjs/popoverContext.js +3 -3
  71. package/lib-commonjs/popoverContext.js.map +1 -1
  72. package/package.json +9 -11
package/CHANGELOG.json CHANGED
@@ -2,41 +2,86 @@
2
2
  "name": "@fluentui/react-popover",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 21 Jan 2022 04:16:22 GMT",
6
- "tag": "@fluentui/react-popover_v0.0.0-nightlyd514b3e0ee20220121.1",
7
- "version": "0.0.0-nightlyd514b3e0ee20220121.1",
5
+ "date": "Wed, 16 Feb 2022 04:14:20 GMT",
6
+ "tag": "@fluentui/react-popover_v0.0.0-nightlyd80c90385320220216.1",
7
+ "version": "0.0.0-nightlyd80c90385320220216.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-popover",
13
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090",
13
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
17
- "author": "Humberto.Morimoto@microsoft.com",
17
+ "author": "beachball",
18
18
  "package": "@fluentui/react-popover",
19
- "commit": "38e8f42252c69b1c749c3ca7fca9315b49e6cf31",
20
- "comment": "Replacing use of functions in makeStyles with direct use of tokens"
19
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyd80c90385320220216.1",
20
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
21
21
  },
22
22
  {
23
- "author": "behowell@microsoft.com",
23
+ "author": "beachball",
24
24
  "package": "@fluentui/react-popover",
25
- "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
26
- "comment": "Remove component's shorthandProps array"
25
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyd80c90385320220216.1",
26
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
27
27
  },
28
28
  {
29
- "author": "behowell@microsoft.com",
29
+ "author": "beachball",
30
30
  "package": "@fluentui/react-popover",
31
- "commit": "09804275c7f346db54c33d4ff347bffc33676014",
32
- "comment": "Fix Popover arrow border in high contrast"
31
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyd80c90385320220216.1",
32
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
33
33
  },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-popover",
37
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd80c90385320220216.1",
38
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-popover",
43
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyd80c90385320220216.1",
44
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-popover",
49
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyd80c90385320220216.1",
50
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-popover",
55
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyd80c90385320220216.1",
56
+ "commit": "685891ff65eff67542456c5908f5ee1c2f121f4c"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Thu, 10 Feb 2022 08:50:36 GMT",
63
+ "tag": "@fluentui/react-popover_v9.0.0-rc.1",
64
+ "version": "9.0.0-rc.1",
65
+ "comments": {
66
+ "prerelease": [
34
67
  {
35
68
  "author": "Humberto.Morimoto@microsoft.com",
36
69
  "package": "@fluentui/react-popover",
37
70
  "commit": "6c32d0180e89674a46daf795de69e5dc6ca71ef7",
38
71
  "comment": "Updating based on removal of functions from makeStyles."
39
72
  },
73
+ {
74
+ "author": "olfedias@microsoft.com",
75
+ "package": "@fluentui/react-popover",
76
+ "commit": "b1446dead62e61c9a0f6101d6dfc5a2f780403b8",
77
+ "comment": "use Griffel packages"
78
+ },
79
+ {
80
+ "author": "olfedias@microsoft.com",
81
+ "package": "@fluentui/react-popover",
82
+ "commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
83
+ "comment": "standardize trigger implementation & cloning"
84
+ },
40
85
  {
41
86
  "author": "olfedias@microsoft.com",
42
87
  "package": "@fluentui/react-popover",
@@ -44,79 +89,109 @@
44
89
  "comment": "update styles to not use CSS shorthands"
45
90
  },
46
91
  {
47
- "author": "beachball",
92
+ "author": "lingfangao@hotmail.com",
48
93
  "package": "@fluentui/react-popover",
49
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyd514b3e0ee20220121.1",
50
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
94
+ "commit": "3a5602460a0c05a2ba4e2cc0fad77e5ae0b8ce38",
95
+ "comment": "fix: Use role=complementary for Popovers without focus traps"
51
96
  },
52
97
  {
53
- "author": "beachball",
98
+ "author": "behowell@microsoft.com",
54
99
  "package": "@fluentui/react-popover",
55
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1",
56
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
100
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
101
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
57
102
  },
58
103
  {
59
- "author": "beachball",
104
+ "author": "Humberto.Morimoto@microsoft.com",
60
105
  "package": "@fluentui/react-popover",
61
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyd514b3e0ee20220121.1",
62
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
106
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
107
+ "comment": "Updating based on changes to composition types."
63
108
  },
64
109
  {
65
- "author": "beachball",
110
+ "author": "Humberto.Morimoto@microsoft.com",
66
111
  "package": "@fluentui/react-popover",
67
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyd514b3e0ee20220121.1",
68
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
112
+ "commit": "38e8f42252c69b1c749c3ca7fca9315b49e6cf31",
113
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens"
69
114
  },
70
115
  {
71
- "author": "beachball",
116
+ "author": "behowell@microsoft.com",
72
117
  "package": "@fluentui/react-popover",
73
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd514b3e0ee20220121.1",
74
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
118
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
119
+ "comment": "Remove component's shorthandProps array"
75
120
  },
76
121
  {
77
- "author": "beachball",
122
+ "author": "behowell@microsoft.com",
123
+ "package": "@fluentui/react-popover",
124
+ "commit": "09804275c7f346db54c33d4ff347bffc33676014",
125
+ "comment": "Fix Popover arrow border in high contrast"
126
+ },
127
+ {
128
+ "author": "behowell@microsoft.com",
78
129
  "package": "@fluentui/react-popover",
79
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyd514b3e0ee20220121.1",
80
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
130
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
131
+ "comment": "Refactor component Slot typings"
132
+ },
133
+ {
134
+ "author": "lingfangao@hotmail.com",
135
+ "package": "@fluentui/react-popover",
136
+ "commit": "c2706cec4dc694762b1892a505db666d2fb324c1",
137
+ "comment": "fix: Set `aria-modal` on Popover if focus trap is enabled"
138
+ },
139
+ {
140
+ "author": "mgodbolt@microsoft.com",
141
+ "package": "@fluentui/react-popover",
142
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
143
+ "comment": "remove export of commons types"
144
+ },
145
+ {
146
+ "author": "lingfangao@hotmail.com",
147
+ "package": "@fluentui/react-popover",
148
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
149
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
81
150
  },
82
151
  {
83
152
  "author": "beachball",
84
153
  "package": "@fluentui/react-popover",
85
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyd514b3e0ee20220121.1",
86
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
154
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.1",
155
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
87
156
  },
88
157
  {
89
158
  "author": "beachball",
90
159
  "package": "@fluentui/react-popover",
91
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1",
92
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
160
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.1",
161
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
93
162
  },
94
163
  {
95
164
  "author": "beachball",
96
165
  "package": "@fluentui/react-popover",
97
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1",
98
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
166
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.1",
167
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
99
168
  },
100
169
  {
101
170
  "author": "beachball",
102
171
  "package": "@fluentui/react-popover",
103
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1",
104
- "commit": "89feafb688fbb160fb8519724479b3c68a79d090"
105
- }
106
- ],
107
- "none": [
172
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
173
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
174
+ },
108
175
  {
109
- "author": "martinhochel@microsoft.com",
176
+ "author": "beachball",
110
177
  "package": "@fluentui/react-popover",
111
- "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
112
- "comment": "chore: use storybook runner for all vNext packages"
178
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
179
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
113
180
  },
114
181
  {
115
- "author": "elcraig@microsoft.com",
182
+ "author": "beachball",
116
183
  "package": "@fluentui/react-popover",
117
- "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
118
- "comment": "Update API file to version generated by typescript 4.3"
184
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
185
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
119
186
  },
187
+ {
188
+ "author": "beachball",
189
+ "package": "@fluentui/react-popover",
190
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
191
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
192
+ }
193
+ ],
194
+ "none": [
120
195
  {
121
196
  "author": "email not defined",
122
197
  "package": "@fluentui/react-popover",
@@ -128,6 +203,18 @@
128
203
  "package": "@fluentui/react-popover",
129
204
  "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
130
205
  "comment": "remove inline-style-expand-shorthand from tsconfigs"
206
+ },
207
+ {
208
+ "author": "martinhochel@microsoft.com",
209
+ "package": "@fluentui/react-popover",
210
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
211
+ "comment": "chore: use storybook runner for all vNext packages"
212
+ },
213
+ {
214
+ "author": "elcraig@microsoft.com",
215
+ "package": "@fluentui/react-popover",
216
+ "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
217
+ "comment": "Update API file to version generated by typescript 4.3"
131
218
  }
132
219
  ]
133
220
  }
package/CHANGELOG.md CHANGED
@@ -1,32 +1,53 @@
1
1
  # Change Log - @fluentui/react-popover
2
2
 
3
- This log was last generated on Fri, 21 Jan 2022 04:16:22 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 16 Feb 2022 04:14:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyd514b3e0ee20220121.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlyd514b3e0ee20220121.1)
7
+ ## [0.0.0-nightlyd80c90385320220216.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlyd80c90385320220216.1)
8
8
 
9
- Fri, 21 Jan 2022 04:16:22 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightlyd514b3e0ee20220121.1)
9
+ Wed, 16 Feb 2022 04:14:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-rc.1..@fluentui/react-popover_v0.0.0-nightlyd80c90385320220216.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by email not defined)
15
+ - Bump @fluentui/react-context-selector to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
16
+ - Bump @fluentui/react-portal to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
17
+ - Bump @fluentui/react-positioning to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
18
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
19
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
20
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
21
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyd80c90385320220216.1 ([commit](https://github.com/microsoft/fluentui/commit/685891ff65eff67542456c5908f5ee1c2f121f4c) by beachball)
22
+
23
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-rc.1)
24
+
25
+ Thu, 10 Feb 2022 08:50:36 GMT
26
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v9.0.0-rc.1)
27
+
28
+ ### Changes
29
+
30
+ - Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
31
+ - use Griffel packages ([PR #21392](https://github.com/microsoft/fluentui/pull/21392) by olfedias@microsoft.com)
32
+ - standardize trigger implementation & cloning ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
33
+ - update styles to not use CSS shorthands ([PR #20796](https://github.com/microsoft/fluentui/pull/20796) by olfedias@microsoft.com)
34
+ - fix: Use role=complementary for Popovers without focus traps ([PR #21416](https://github.com/microsoft/fluentui/pull/21416) by lingfangao@hotmail.com)
35
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
36
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
15
37
  - 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
38
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
17
39
  - 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-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
21
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
22
- - Bump @fluentui/react-portal to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
23
- - Bump @fluentui/react-positioning to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
24
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
25
- - Bump @fluentui/react-tabster to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
26
- - Bump @fluentui/react-utilities to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
27
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
28
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
29
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyd514b3e0ee20220121.1 ([commit](https://github.com/microsoft/fluentui/commit/89feafb688fbb160fb8519724479b3c68a79d090) by beachball)
40
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
41
+ - fix: Set `aria-modal` on Popover if focus trap is enabled ([PR #21387](https://github.com/microsoft/fluentui/pull/21387) by lingfangao@hotmail.com)
42
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
43
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
44
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
45
+ - Bump @fluentui/react-portal to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
46
+ - Bump @fluentui/react-positioning to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
47
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
48
+ - Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
49
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
50
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
30
51
 
31
52
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
32
53
 
@@ -2,12 +2,15 @@ import type { ComponentProps } from '@fluentui/react-utilities';
2
2
  import type { ComponentState } from '@fluentui/react-utilities';
3
3
  import type { Context } from '@fluentui/react-context-selector';
4
4
  import type { ContextSelector } from '@fluentui/react-context-selector';
5
+ import type { FluentTriggerComponent } from '@fluentui/react-utilities';
5
6
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
6
- import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
7
+ import { JSXElementConstructor } from 'react';
7
8
  import type { PopperVirtualElement } from '@fluentui/react-positioning';
8
9
  import type { PortalProps } from '@fluentui/react-portal';
9
10
  import type { PositioningShorthand } from '@fluentui/react-positioning';
10
11
  import * as React_2 from 'react';
12
+ import { ReactElement } from 'react';
13
+ import type { Slot } from '@fluentui/react-utilities';
11
14
  import type { usePopperMouseTarget } from '@fluentui/react-positioning';
12
15
 
13
16
  export declare const arrowHeights: Record<PopoverSize, number>;
@@ -29,7 +32,7 @@ export declare type OpenPopoverEvents = MouseEvent | TouchEvent | React_2.MouseE
29
32
  */
30
33
  export declare const Popover: React_2.FC<PopoverProps>;
31
34
 
32
- export declare type PopoverCommons = Pick<PortalProps, 'mountNode'> & {
35
+ declare type PopoverCommons = Pick<PortalProps, 'mountNode'> & {
33
36
  /**
34
37
  * Controls the opening of the Popover
35
38
  */
@@ -145,7 +148,7 @@ export declare type PopoverSurfaceProps = ComponentProps<PopoverSurfaceSlots>;
145
148
  * Names of the slots in PopoverSurfaceProps
146
149
  */
147
150
  export declare type PopoverSurfaceSlots = {
148
- root: IntrinsicShorthandProps<'div'>;
151
+ root: Slot<'div'>;
149
152
  };
150
153
 
151
154
  /**
@@ -161,71 +164,79 @@ export declare type PopoverSurfaceState = ComponentState<PopoverSurfaceSlots> &
161
164
  /**
162
165
  * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.
163
166
  */
164
- export declare const PopoverTrigger: React_2.FC<PopoverTriggerProps>;
167
+ export declare const PopoverTrigger: React_2.FC<PopoverTriggerProps> & FluentTriggerComponent;
168
+
169
+ export declare type PopoverTriggerChildProps = {
170
+ ref?: React_2.Ref<never>;
171
+ } & Pick<React_2.HTMLAttributes<HTMLElement>, 'aria-haspopup' | 'onClick' | 'onMouseEnter' | 'onKeyDown' | 'onMouseLeave' | 'onContextMenu'>;
165
172
 
166
173
  /**
167
174
  * PopoverTrigger Props
168
175
  */
169
176
  export declare type PopoverTriggerProps = {
170
- children: React_2.ReactElement;
177
+ children: (React_2.ReactElement & {
178
+ ref?: React_2.Ref<unknown>;
179
+ }) | ((props: PopoverTriggerChildProps) => React_2.ReactElement | null);
171
180
  };
172
181
 
173
182
  /**
174
183
  * PopoverTrigger State
175
184
  */
176
- export declare type PopoverTriggerState = PopoverTriggerProps;
185
+ export declare type PopoverTriggerState = {
186
+ children: React_2.ReactElement | null;
187
+ };
177
188
 
178
189
  /**
179
190
  * Render the final JSX of Popover
180
191
  */
181
- export declare const renderPopover: (state: PopoverState) => JSX.Element;
192
+ export declare const renderPopover_unstable: (state: PopoverState) => JSX.Element;
182
193
 
183
194
  /**
184
195
  * Render the final JSX of PopoverSurface
185
196
  */
186
- export declare const renderPopoverSurface: (state: PopoverSurfaceState) => JSX.Element | null;
197
+ export declare const renderPopoverSurface_unstable: (state: PopoverSurfaceState) => JSX.Element | null;
187
198
 
188
199
  /**
189
200
  * Render the final JSX of PopoverTrigger
190
201
  */
191
- export declare const renderPopoverTrigger: (state: PopoverTriggerState) => JSX.Element;
202
+ export declare const renderPopoverTrigger_unstable: (state: PopoverTriggerState) => ReactElement<any, string | JSXElementConstructor<any>> | null;
192
203
 
193
204
  /**
194
205
  * Create the state required to render Popover.
195
206
  *
196
207
  * The returned state can be modified with hooks such as usePopoverStyles,
197
- * before being passed to renderPopover.
208
+ * before being passed to renderPopover_unstable.
198
209
  *
199
210
  * @param props - props from this instance of Popover
200
211
  */
201
- export declare const usePopover: (props: PopoverProps) => PopoverState;
212
+ export declare const usePopover_unstable: (props: PopoverProps) => PopoverState;
202
213
 
203
- export declare const usePopoverContext: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
214
+ export declare const usePopoverContext_unstable: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
204
215
 
205
216
  /**
206
217
  * Create the state required to render PopoverSurface.
207
218
  *
208
- * The returned state can be modified with hooks such as usePopoverSurfaceStyles,
209
- * before being passed to renderPopoverSurface.
219
+ * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,
220
+ * before being passed to renderPopoverSurface_unstable.
210
221
  *
211
222
  * @param props - props from this instance of PopoverSurface
212
223
  * @param ref - reference to root HTMLDivElement of PopoverSurface
213
224
  */
214
- export declare const usePopoverSurface: (props: PopoverSurfaceProps, ref: React_2.Ref<HTMLDivElement>) => PopoverSurfaceState;
225
+ export declare const usePopoverSurface_unstable: (props: PopoverSurfaceProps, ref: React_2.Ref<HTMLDivElement>) => PopoverSurfaceState;
215
226
 
216
227
  /**
217
228
  * Apply styling to the PopoverSurface slots based on the state
218
229
  */
219
- export declare const usePopoverSurfaceStyles: (state: PopoverSurfaceState) => PopoverSurfaceState;
230
+ export declare const usePopoverSurfaceStyles_unstable: (state: PopoverSurfaceState) => PopoverSurfaceState;
220
231
 
221
232
  /**
222
233
  * Create the state required to render PopoverTrigger.
223
234
  *
224
235
  * The returned state can be modified with hooks such as usePopoverTriggerStyles,
225
- * before being passed to renderPopoverTrigger.
236
+ * before being passed to renderPopoverTrigger_unstable.
226
237
  *
227
238
  * @param props - props from this instance of PopoverTrigger
228
239
  */
229
- export declare const usePopoverTrigger: (props: PopoverTriggerProps) => PopoverTriggerState;
240
+ export declare const usePopoverTrigger_unstable: (props: PopoverTriggerProps) => PopoverTriggerState;
230
241
 
231
242
  export { }
@@ -1,12 +1,12 @@
1
- import { usePopover } from './usePopover';
2
- import { renderPopover } from './renderPopover';
1
+ import { usePopover_unstable } from './usePopover';
2
+ import { renderPopover_unstable } from './renderPopover';
3
3
  /**
4
4
  * Wrapper component that manages state for a PopoverTrigger and a PopoverSurface components.
5
5
  */
6
6
 
7
7
  export const Popover = props => {
8
- const state = usePopover(props);
9
- return renderPopover(state);
8
+ const state = usePopover_unstable(props);
9
+ return renderPopover_unstable(state);
10
10
  };
11
11
  Popover.displayName = 'Popover';
12
12
  //# sourceMappingURL=Popover.js.map
@@ -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,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":""}
1
+ {"version":3,"sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AAGA;;AAEG;;AACH,OAAO,MAAM,OAAO,GAA2B,KAAK,IAAG;AACrD,QAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,CAAjC;AAEA,SAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CAJM;AAMP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
@@ -5,7 +5,7 @@ import type { PortalProps } from '@fluentui/react-portal';
5
5
  * Determines popover padding and arrow size
6
6
  */
7
7
  export declare type PopoverSize = 'small' | 'medium' | 'large';
8
- export declare type PopoverCommons = Pick<PortalProps, 'mountNode'> & {
8
+ declare type PopoverCommons = Pick<PortalProps, 'mountNode'> & {
9
9
  /**
10
10
  * Controls the opening of the Popover
11
11
  */
@@ -100,3 +100,4 @@ export declare type OnOpenChangeData = {
100
100
  * The supported events that will trigger open/close of the menu
101
101
  */
102
102
  export declare type OpenPopoverEvents = MouseEvent | TouchEvent | React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement> | React.FocusEvent<HTMLElement>;
103
+ export {};
@@ -2,4 +2,4 @@ import type { PopoverState } from './Popover.types';
2
2
  /**
3
3
  * Render the final JSX of Popover
4
4
  */
5
- export declare const renderPopover: (state: PopoverState) => JSX.Element;
5
+ export declare const renderPopover_unstable: (state: PopoverState) => JSX.Element;
@@ -4,7 +4,7 @@ import { PopoverContext } from '../../popoverContext';
4
4
  * Render the final JSX of Popover
5
5
  */
6
6
 
7
- export const renderPopover = state => {
7
+ export const renderPopover_unstable = state => {
8
8
  const {
9
9
  open,
10
10
  setOpen,
@@ -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,MAAM,aAAa,GAAI,KAAD,IAAwB;AACnD,QAAM;A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AA,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":""}
@@ -3,8 +3,8 @@ import type { PopoverProps, PopoverState } from './Popover.types';
3
3
  * Create the state required to render Popover.
4
4
  *
5
5
  * The returned state can be modified with hooks such as usePopoverStyles,
6
- * before being passed to renderPopover.
6
+ * before being passed to renderPopover_unstable.
7
7
  *
8
8
  * @param props - props from this instance of Popover
9
9
  */
10
- export declare const usePopover: (props: PopoverProps) => PopoverState;
10
+ export declare const usePopover_unstable: (props: PopoverProps) => PopoverState;
@@ -8,12 +8,12 @@ import { arrowHeights } from '../PopoverSurface/index';
8
8
  * Create the state required to render Popover.
9
9
  *
10
10
  * The returned state can be modified with hooks such as usePopoverStyles,
11
- * before being passed to renderPopover.
11
+ * before being passed to renderPopover_unstable.
12
12
  *
13
13
  * @param props - props from this instance of Popover
14
14
  */
15
15
 
16
- export const usePopover = props => {
16
+ export const usePopover_unstable = props => {
17
17
  const [contextTarget, setContextTarget] = usePopperMouseTarget();
18
18
  const initialState = {
19
19
  size: 'medium',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Popover/usePopover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SACE,oBADF,EAEE,gBAFF,EAGE,iBAHF,EAIE,kBAJF,QAKO,2BALP;AAMA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SACE,SADF,EAEE,2BAFF,EAGE,gBAHF,EAIE,oBAJF,QAKO,6BALP;AAMA,SAAS,eAAT,QAAgC,wBAAhC;AACA,SAAS,YAAT,QAA6B,yBAA7B;AAGA;;;;;;;AAOG;;AACH,OAAO,MAAM,UAAU,GAAI,KAAD,IAAsC;AAC9D,QAAM,CAAC,aAAD,EAAgB,gBAAhB,IAAoC,oBAAoB,EAA9D;AACA,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AAA,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,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { usePopoverSurface } from './usePopoverSurface';
3
- import { renderPopoverSurface } from './renderPopoverSurface';
4
- import { usePopoverSurfaceStyles } from './usePopoverSurfaceStyles';
2
+ import { usePopoverSurface_unstable } from './usePopoverSurface';
3
+ import { renderPopoverSurface_unstable } from './renderPopoverSurface';
4
+ import { usePopoverSurfaceStyles_unstable } from './usePopoverSurfaceStyles';
5
5
  /**
6
6
  * PopoverSurface component renders react children in a positioned box
7
7
  */
8
8
 
9
9
  export const PopoverSurface = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = usePopoverSurface(props, ref);
11
- usePopoverSurfaceStyles(state);
12
- return renderPopoverSurface(state);
10
+ const state = usePopoverSurface_unstable(props, ref);
11
+ usePopoverSurfaceStyles_unstable(state);
12
+ return renderPopoverSurface_unstable(state);
13
13
  });
14
14
  PopoverSurface.displayName = 'PopoverSurface';
15
15
  //# sourceMappingURL=PopoverSurface.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/PopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AACA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverSurface/PopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,gCAAT,QAAiD,2BAAjD;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,EAAQ,GAAR,CAAxC;AAEA,EAAA,gCAAgC,CAAC,KAAD,CAAhC;AACA,SAAO,6BAA6B,CAAC,KAAD,CAApC;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  import type { PopoverContextValue } from '../../popoverContext';
3
3
  /**
4
4
  * PopoverSurface Props
@@ -8,7 +8,7 @@ export declare type PopoverSurfaceProps = ComponentProps<PopoverSurfaceSlots>;
8
8
  * Names of the slots in PopoverSurfaceProps
9
9
  */
10
10
  export declare type PopoverSurfaceSlots = {
11
- root: IntrinsicShorthandProps<'div'>;
11
+ root: Slot<'div'>;
12
12
  };
13
13
  /**
14
14
  * PopoverSurface State