@fluentui/react-tooltip 0.0.0-nightlyf1be0a972820211214.1 → 0.0.0-nightlyf3017f159620220222.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/CHANGELOG.json +234 -24
  2. package/CHANGELOG.md +59 -14
  3. package/MIGRATION.md +51 -43
  4. package/Spec.md +201 -337
  5. package/dist/react-tooltip.d.ts +38 -48
  6. package/lib/Tooltip.js.map +1 -1
  7. package/lib/components/Tooltip/Tooltip.d.ts +3 -2
  8. package/lib/components/Tooltip/Tooltip.js +9 -9
  9. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  10. package/lib/components/Tooltip/Tooltip.types.d.ts +32 -39
  11. package/lib/components/Tooltip/Tooltip.types.js.map +1 -1
  12. package/lib/components/Tooltip/index.js.map +1 -1
  13. package/lib/components/Tooltip/private/constants.d.ts +12 -0
  14. package/lib/components/Tooltip/private/constants.js +14 -0
  15. package/lib/components/Tooltip/private/constants.js.map +1 -0
  16. package/lib/components/Tooltip/renderTooltip.d.ts +1 -1
  17. package/lib/components/Tooltip/renderTooltip.js +4 -4
  18. package/lib/components/Tooltip/renderTooltip.js.map +1 -1
  19. package/lib/components/Tooltip/useTooltip.d.ts +3 -6
  20. package/lib/components/Tooltip/useTooltip.js +44 -65
  21. package/lib/components/Tooltip/useTooltip.js.map +1 -1
  22. package/lib/components/Tooltip/useTooltipStyles.d.ts +1 -1
  23. package/lib/components/Tooltip/useTooltipStyles.js +38 -25
  24. package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
  25. package/lib/index.js.map +1 -1
  26. package/lib-commonjs/Tooltip.js.map +1 -1
  27. package/lib-commonjs/components/Tooltip/Tooltip.d.ts +3 -2
  28. package/lib-commonjs/components/Tooltip/Tooltip.js +8 -7
  29. package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
  30. package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +32 -39
  31. package/lib-commonjs/components/Tooltip/Tooltip.types.js.map +1 -1
  32. package/lib-commonjs/components/Tooltip/index.js.map +1 -1
  33. package/lib-commonjs/components/Tooltip/private/constants.d.ts +12 -0
  34. package/lib-commonjs/components/Tooltip/private/constants.js +21 -0
  35. package/lib-commonjs/components/Tooltip/private/constants.js.map +1 -0
  36. package/lib-commonjs/components/Tooltip/renderTooltip.d.ts +1 -1
  37. package/lib-commonjs/components/Tooltip/renderTooltip.js +6 -6
  38. package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
  39. package/lib-commonjs/components/Tooltip/useTooltip.d.ts +3 -6
  40. package/lib-commonjs/components/Tooltip/useTooltip.js +49 -69
  41. package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
  42. package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +1 -1
  43. package/lib-commonjs/components/Tooltip/useTooltipStyles.js +43 -28
  44. package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
  45. package/lib-commonjs/index.js.map +1 -1
  46. package/package.json +9 -11
package/CHANGELOG.json CHANGED
@@ -2,79 +2,289 @@
2
2
  "name": "@fluentui/react-tooltip",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 14 Dec 2021 04:16:19 GMT",
6
- "tag": "@fluentui/react-tooltip_v0.0.0-nightlyf1be0a972820211214.1",
7
- "version": "0.0.0-nightlyf1be0a972820211214.1",
5
+ "date": "Tue, 22 Feb 2022 04:13:20 GMT",
6
+ "tag": "@fluentui/react-tooltip_v0.0.0-nightlyf3017f159620220222.1",
7
+ "version": "0.0.0-nightlyf3017f159620220222.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-tooltip",
13
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca",
13
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-tooltip",
19
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyf3017f159620220222.1",
20
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-tooltip",
25
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyf3017f159620220222.1",
26
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-tooltip",
31
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf3017f159620220222.1",
32
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-tooltip",
37
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyf3017f159620220222.1",
38
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-tooltip",
43
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf3017f159620220222.1",
44
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-tooltip",
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyf3017f159620220222.1",
50
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Fri, 18 Feb 2022 13:35:36 GMT",
57
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.3",
58
+ "version": "9.0.0-rc.3",
59
+ "comments": {
60
+ "prerelease": [
61
+ {
62
+ "author": "behowell@microsoft.com",
63
+ "package": "@fluentui/react-tooltip",
64
+ "commit": "50ae56ec346d762d66b3d74ed1127943ffda344f",
65
+ "comment": "Update documentation comments"
66
+ },
67
+ {
68
+ "author": "lingfangao@hotmail.com",
69
+ "package": "@fluentui/react-tooltip",
70
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
71
+ "comment": "fix: Source maps contain original source code"
72
+ },
16
73
  {
17
74
  "author": "olfedias@microsoft.com",
18
75
  "package": "@fluentui/react-tooltip",
19
- "commit": "1bbb753830028fbf133858d523ae2d56ceefeecf",
20
- "comment": "update styles to not use CSS shorthands"
76
+ "commit": "2bf88fea066244bc078912bb6e45edb960f3b866",
77
+ "comment": "update trigger implementation to be consistent"
21
78
  },
22
79
  {
23
80
  "author": "beachball",
24
81
  "package": "@fluentui/react-tooltip",
25
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
26
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
82
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.3",
83
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
27
84
  },
28
85
  {
29
86
  "author": "beachball",
30
87
  "package": "@fluentui/react-tooltip",
31
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightlyf1be0a972820211214.1",
32
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
88
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.3",
89
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
33
90
  },
34
91
  {
35
92
  "author": "beachball",
36
93
  "package": "@fluentui/react-tooltip",
37
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlyf1be0a972820211214.1",
38
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
94
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.3",
95
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
39
96
  },
40
97
  {
41
98
  "author": "beachball",
42
99
  "package": "@fluentui/react-tooltip",
43
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf1be0a972820211214.1",
44
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
100
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.3",
101
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
45
102
  },
46
103
  {
47
104
  "author": "beachball",
48
105
  "package": "@fluentui/react-tooltip",
49
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyf1be0a972820211214.1",
50
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
106
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
107
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
51
108
  },
52
109
  {
53
110
  "author": "beachball",
54
111
  "package": "@fluentui/react-tooltip",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1",
56
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
112
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
113
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
114
+ }
115
+ ]
116
+ }
117
+ },
118
+ {
119
+ "date": "Thu, 10 Feb 2022 08:50:30 GMT",
120
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.1",
121
+ "version": "9.0.0-rc.1",
122
+ "comments": {
123
+ "prerelease": [
124
+ {
125
+ "author": "olfedias@microsoft.com",
126
+ "package": "@fluentui/react-tooltip",
127
+ "commit": "02e6236e4db8e1b591223475896537e905bf3580",
128
+ "comment": "BREAKING: implement `content` slot"
129
+ },
130
+ {
131
+ "author": "olfedias@microsoft.com",
132
+ "package": "@fluentui/react-tooltip",
133
+ "commit": "17c0b18d7983d414095661bf9f57e14c0c22685d",
134
+ "comment": "Replace make-styles packages with griffel equivalents."
135
+ },
136
+ {
137
+ "author": "behowell@microsoft.com",
138
+ "package": "@fluentui/react-tooltip",
139
+ "commit": "58ae40d6817b1fa4e095a94707dfef5050aa4c11",
140
+ "comment": "Replace `triggerAriaAttribute` prop with `relationship` and make it required with no default"
141
+ },
142
+ {
143
+ "author": "behowell@microsoft.com",
144
+ "package": "@fluentui/react-tooltip",
145
+ "commit": "f30e7585a8d2abd9db06c4076f39a779008b0eca",
146
+ "comment": "Update MenuTrigger and Tooltip to work together"
147
+ },
148
+ {
149
+ "author": "mgodbolt@microsoft.com",
150
+ "package": "@fluentui/react-tooltip",
151
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
152
+ "comment": "remove export of commons types"
153
+ },
154
+ {
155
+ "author": "lingfangao@hotmail.com",
156
+ "package": "@fluentui/react-tooltip",
157
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
158
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
159
+ },
160
+ {
161
+ "author": "behowell@microsoft.com",
162
+ "package": "@fluentui/react-tooltip",
163
+ "commit": "caaf3307f864b04369c13fe69d7dc8fe7ab84735",
164
+ "comment": "Move arrowHeight and tooltipBorderRadius into a shared constants.ts file"
165
+ },
166
+ {
167
+ "author": "behowell@microsoft.com",
168
+ "package": "@fluentui/react-tooltip",
169
+ "commit": "2aacc839785a2f96d84a959aea207dfdb99116f8",
170
+ "comment": "Prevent Tooltip from overriding any aria-label, etc. props on its child"
171
+ },
172
+ {
173
+ "author": "Humberto.Morimoto@microsoft.com",
174
+ "package": "@fluentui/react-tooltip",
175
+ "commit": "9204703d0a42ee34a20ae4cf28952e13872647ba",
176
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens."
177
+ },
178
+ {
179
+ "author": "behowell@microsoft.com",
180
+ "package": "@fluentui/react-tooltip",
181
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
182
+ "comment": "Refactor component Slot typings"
183
+ },
184
+ {
185
+ "author": "olfedias@microsoft.com",
186
+ "package": "@fluentui/react-tooltip",
187
+ "commit": "1bbb753830028fbf133858d523ae2d56ceefeecf",
188
+ "comment": "update styles to not use CSS shorthands"
189
+ },
190
+ {
191
+ "author": "behowell@microsoft.com",
192
+ "package": "@fluentui/react-tooltip",
193
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
194
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
195
+ },
196
+ {
197
+ "author": "behowell@microsoft.com",
198
+ "package": "@fluentui/react-tooltip",
199
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
200
+ "comment": "Remove component's shorthandProps array"
201
+ },
202
+ {
203
+ "author": "Humberto.Morimoto@microsoft.com",
204
+ "package": "@fluentui/react-tooltip",
205
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
206
+ "comment": "Updating based on changes to composition types."
207
+ },
208
+ {
209
+ "author": "behowell@microsoft.com",
210
+ "package": "@fluentui/react-tooltip",
211
+ "commit": "97c3818f7faf8733a0cfc9c91f5e94ddb8652d3a",
212
+ "comment": "Update documentation stories"
213
+ },
214
+ {
215
+ "author": "olfedias@microsoft.com",
216
+ "package": "@fluentui/react-tooltip",
217
+ "commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
218
+ "comment": "update types related to trigger (allow only React.ReactElement & null)"
219
+ },
220
+ {
221
+ "author": "behowell@microsoft.com",
222
+ "package": "@fluentui/react-tooltip",
223
+ "commit": "09804275c7f346db54c33d4ff347bffc33676014",
224
+ "comment": "Fix tooltip arrow rendering, and add high contrast border around Tooltip"
225
+ },
226
+ {
227
+ "author": "behowell@microsoft.com",
228
+ "package": "@fluentui/react-tooltip",
229
+ "commit": "1513362b9adaae5d7dbda6b364e40e736710a79f",
230
+ "comment": "Remove Tooltip's inverted prop in favor of the appearance prop"
57
231
  },
58
232
  {
59
233
  "author": "beachball",
60
234
  "package": "@fluentui/react-tooltip",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
62
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
235
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.1",
236
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
63
237
  },
64
238
  {
65
239
  "author": "beachball",
66
240
  "package": "@fluentui/react-tooltip",
67
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
68
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
241
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.1",
242
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
69
243
  },
70
244
  {
71
245
  "author": "beachball",
72
246
  "package": "@fluentui/react-tooltip",
73
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
74
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
247
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
248
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
249
+ },
250
+ {
251
+ "author": "beachball",
252
+ "package": "@fluentui/react-tooltip",
253
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
254
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
255
+ },
256
+ {
257
+ "author": "beachball",
258
+ "package": "@fluentui/react-tooltip",
259
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
260
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
261
+ },
262
+ {
263
+ "author": "beachball",
264
+ "package": "@fluentui/react-tooltip",
265
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
266
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
75
267
  }
76
268
  ],
77
269
  "none": [
270
+ {
271
+ "author": "olfedias@microsoft.com",
272
+ "package": "@fluentui/react-tooltip",
273
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
274
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
275
+ },
276
+ {
277
+ "author": "elcraig@microsoft.com",
278
+ "package": "@fluentui/react-tooltip",
279
+ "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
280
+ "comment": "Remove outdated boilerplate comment in useTooltip"
281
+ },
282
+ {
283
+ "author": "martinhochel@microsoft.com",
284
+ "package": "@fluentui/react-tooltip",
285
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
286
+ "comment": "chore: use storybook runner for all vNext packages"
287
+ },
78
288
  {
79
289
  "author": "andredias@microsoft.com",
80
290
  "package": "@fluentui/react-tooltip",
package/CHANGELOG.md CHANGED
@@ -1,27 +1,72 @@
1
1
  # Change Log - @fluentui/react-tooltip
2
2
 
3
- This log was last generated on Tue, 14 Dec 2021 04:16:19 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 22 Feb 2022 04:13:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyf1be0a972820211214.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightlyf1be0a972820211214.1)
7
+ ## [0.0.0-nightlyf3017f159620220222.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightlyf3017f159620220222.1)
8
8
 
9
- Tue, 14 Dec 2021 04:16:19 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v0.0.0-nightlyf1be0a972820211214.1)
9
+ Tue, 22 Feb 2022 04:13:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.3..@fluentui/react-tooltip_v0.0.0-nightlyf3017f159620220222.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by email not defined)
15
+ - Bump @fluentui/react-portal to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
16
+ - Bump @fluentui/react-positioning to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
21
+
22
+ ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.3)
23
+
24
+ Fri, 18 Feb 2022 13:35:36 GMT
25
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.1..@fluentui/react-tooltip_v9.0.0-rc.3)
26
+
27
+ ### Changes
28
+
29
+ - Update documentation comments ([PR #21736](https://github.com/microsoft/fluentui/pull/21736) by behowell@microsoft.com)
30
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
31
+ - update trigger implementation to be consistent ([PR #21626](https://github.com/microsoft/fluentui/pull/21626) by olfedias@microsoft.com)
32
+ - Bump @fluentui/react-portal to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
33
+ - Bump @fluentui/react-positioning to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
34
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
35
+ - Bump @fluentui/react-theme to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
36
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
37
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
38
+
39
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.1)
40
+
41
+ Thu, 10 Feb 2022 08:50:30 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v9.0.0-rc.1)
43
+
44
+ ### Changes
45
+
46
+ - BREAKING: implement `content` slot ([PR #21470](https://github.com/microsoft/fluentui/pull/21470) by olfedias@microsoft.com)
47
+ - Replace make-styles packages with griffel equivalents. ([PR #21422](https://github.com/microsoft/fluentui/pull/21422) by olfedias@microsoft.com)
48
+ - Replace `triggerAriaAttribute` prop with `relationship` and make it required with no default ([PR #21331](https://github.com/microsoft/fluentui/pull/21331) by behowell@microsoft.com)
49
+ - Update MenuTrigger and Tooltip to work together ([PR #21495](https://github.com/microsoft/fluentui/pull/21495) by behowell@microsoft.com)
50
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
51
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
52
+ - Move arrowHeight and tooltipBorderRadius into a shared constants.ts file ([PR #21204](https://github.com/microsoft/fluentui/pull/21204) by behowell@microsoft.com)
53
+ - Prevent Tooltip from overriding any aria-label, etc. props on its child ([PR #21532](https://github.com/microsoft/fluentui/pull/21532) by behowell@microsoft.com)
54
+ - Replacing use of functions in makeStyles with direct use of tokens. ([PR #21058](https://github.com/microsoft/fluentui/pull/21058) by Humberto.Morimoto@microsoft.com)
55
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
15
56
  - update styles to not use CSS shorthands ([PR #20795](https://github.com/microsoft/fluentui/pull/20795) by olfedias@microsoft.com)
16
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
17
- - Bump @fluentui/react-portal to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
18
- - Bump @fluentui/react-positioning to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
19
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
20
- - Bump @fluentui/react-theme to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
23
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
24
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
57
+ - 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)
58
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
59
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
60
+ - Update documentation stories ([PR #21298](https://github.com/microsoft/fluentui/pull/21298) by behowell@microsoft.com)
61
+ - update types related to trigger (allow only React.ReactElement & null) ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
62
+ - Fix tooltip arrow rendering, and add high contrast border around Tooltip ([PR #21086](https://github.com/microsoft/fluentui/pull/21086) by behowell@microsoft.com)
63
+ - Remove Tooltip's inverted prop in favor of the appearance prop ([PR #21327](https://github.com/microsoft/fluentui/pull/21327) by behowell@microsoft.com)
64
+ - Bump @fluentui/react-portal to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
65
+ - Bump @fluentui/react-positioning to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
66
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
67
+ - Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
68
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
69
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
25
70
 
26
71
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-beta.5)
27
72
 
package/MIGRATION.md CHANGED
@@ -6,55 +6,63 @@ This Migration guide is a work in progress and is not yet ready for use.
6
6
 
7
7
  ## Migration from v8
8
8
 
9
- The converged API does not support many of the custom features of the v8 tooltip. We may need to revisit and add additional features to the converged Tooltip if needed.
9
+ TooltipHost is replaced by Tooltip itself, as the wrapper around the element that should receive a tooltip.
10
10
 
11
11
  - `Tooltip`
12
- - `calloutProps` => Not supported. The arrow's visibility can be controlled using `noArrow`.
13
- - `componentRef` => `componentRef`
14
- - `delay` => `showDelay` on the TooltipTrigger
15
- - `directionalHint` => `position` and `align`
16
- - `topLeftEdge` => `position: 'above', align: 'start'`
17
- - `topCenter` => `position: 'above'`
18
- - `topRightEdge` => `position: 'above', align: 'end'`
12
+ - `calloutProps`
13
+ - `isBeakVisible` => `withArrow`
14
+ - `beakWidth` => Not supported.
15
+ - `gapSpace` => Not supported.
16
+ - `doNotLayer` => Not supported. Tooltips are always layered by rendering in a Portal.
17
+ - `setInitialFocus` => Not supported. Tooltips can't be focused, by design.
18
+ - `componentRef` => Not supported. Tooltips can be controlled declaratively with props like `visible`, instead of using an imperative API like `componentRef`.
19
+ - `delay` => `showDelay`
20
+ - `directionalHint` => `positioning`
21
+ - `topLeftEdge` => `positioning="above-start"`
22
+ - `topCenter` => `positioning="above"`
23
+ - `topRightEdge` => `positioning="above-end"`
19
24
  - `topAutoEdge` => Not supported
20
- - `bottomLeftEdge` => `position: 'below', align: 'start'`
21
- - `bottomCenter` => `position: 'below'`
22
- - `bottomRightEdge` => `position: 'below', align: 'end'`
25
+ - `bottomLeftEdge` => `positioning="below-start"`
26
+ - `bottomCenter` => `positioning="below"`
27
+ - `bottomRightEdge` => `positioning="below-end"`
23
28
  - `bottomAutoEdge` => Not supported
24
- - `leftTopEdge` => `position: 'before', align: 'top'`
25
- - `leftCenter` => `position: 'before'`
26
- - `leftBottomEdge` => `position: 'before', align: 'bottom'`
27
- - `rightTopEdge` => `position: 'after', align: 'top'`
28
- - `rightCenter` => `position: 'after'`
29
- - `rightBottomEdge` => `position: 'after', align: 'bottom'`
30
- - `directionalHintForRTL` => Automatic based on whether the element is in an RTL context
31
- - `maxWidth` => Add styling to the Tooltip: `tooltip={{ style: { maxWidth: ... }, children: 'Tooltip Content' }}`
32
- - `onRenderContent` => Set the Tooltip's `children` to a custom render function
33
- - `TooltipHost` => `TooltipTrigger`
34
- - `calloutProps` => Not supported
29
+ - `leftTopEdge` => `positioning="before-top"`
30
+ - `leftCenter` => `positioning="before"`
31
+ - `leftBottomEdge` => `positioning="before-bottom"`
32
+ - `rightTopEdge` => `positioning="after-top"`
33
+ - `rightCenter` => `positioning="after"`
34
+ - `rightBottomEdge` => `positioning="after-bottom"`
35
+ - `directionalHintForRTL` => Automatic based on whether the element is in an RTL context according to `FluentProvider`.
36
+ - `maxWidth` => Supported only through CSS styling of the `content` slot.
37
+ - `onRenderContent` => Set the `content` slot to a custom render function.
38
+ - `TooltipHost` => The tooltip itself is the "host".
35
39
  - `closeDelay` => `hideDelay`
36
- - `hostClassName` => Not needed because there is no element rendered by TooltipTrigger
37
- - `onTooltipToggle` => Not supported
38
- - `overflowMode` => `onlyIfTruncated`
39
- - `TooltipOverflowMode.self` => `onlyIfTruncated="true"`
40
- - `TooltipOverflowMode.parent` => `onlyIfTruncated="true"` and set `targetRef` to the parent element
40
+ - `hostClassName` => Not needed because there is no element rendered inline by Tooltip
41
+ - `onTooltipToggle` => `onVisibleChange`
42
+ - `overflowMode` => Not supported. If this behavior is needed, the tooltip's visibility can be controlled using the `visible` prop and `onVisibleChange` event.
41
43
 
42
44
  ## Migration from v0
43
45
 
44
- - `Tooltip` => `TooltipTrigger`
45
- - `content="..."` => `tooltip="..."`
46
- - `defaultOpen` => Not supported
47
- - `flipBoundary` => Not supported
48
- - `mountNode` => Unknown
46
+ The v9 Tooltip swaps the meaning of children between content and trigger. In v0, Tooltip's children is the tooltip content, and its trigger is a prop. In v9, that is swapped: Tooltip's children is the trigger, and its content is a prop.
47
+
48
+ - `Tooltip`
49
+ - children => `content`
50
+ - `trigger` => children
51
+ - `defaultOpen` => Not supported. The tooltip's visibility can be controlled using the `visible` prop and `onVisibleChange` event.
52
+ - `mountNode` => Not supported
53
+ - `open` => `visible`
54
+ - `onOpenChange` => `onVisibleChange`
55
+ - `pointing` => `withArrow`
56
+ - `mouseEnterDelay` => `showDelay`
49
57
  - `mouseLeaveDelay` => `hideDelay`
50
- - `offset` => `offset`
51
- - `onOpenChange` => Not supported
52
- - `open` => Not supported
53
- - `overflowBoundary` => Not supported
54
- - `pointing={false}` => `noArrow={true}`
55
- - `popperRef` => Not supported
56
- - `position` => `position`
57
- - `align` => `align`
58
- - `positionFixed` => Not supported
59
- - `target` => `targetRef`
60
- - `trigger` => The child of the `TooltipTrigger`
58
+ - `subtle={true}` = `appearance="normal"` (default)
59
+ - `subtle={false}` => `appearance="inverted"`
60
+ - Positioning props are now attributes of the `positioning` prop:
61
+ - `flipBoundary` => `positioning.flipBoundary`
62
+ - `offset` => `positioning.offset`
63
+ - `overflowBoundary` => `positioning.overflowBoundary`
64
+ - `popperRef` => `positioning.popperRef`
65
+ - `position` => `positioning.position`
66
+ - `align` => `positioning.align`
67
+ - `positionFixed` => `positioning.positionFixed`
68
+ - `target` => `positioning.target`