@fluentui/react-tooltip 0.0.0-nightly6a6e258c4020220125.1 → 0.0.0-nightly6faffd280a20220221.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.json +198 -42
  2. package/CHANGELOG.md +53 -14
  3. package/MIGRATION.md +51 -43
  4. package/Spec.md +201 -337
  5. package/dist/react-tooltip.d.ts +31 -37
  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 +4 -4
  9. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  10. package/lib/components/Tooltip/Tooltip.types.d.ts +29 -33
  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.js.map +1 -1
  14. package/lib/components/Tooltip/renderTooltip.js +2 -2
  15. package/lib/components/Tooltip/renderTooltip.js.map +1 -1
  16. package/lib/components/Tooltip/useTooltip.d.ts +1 -3
  17. package/lib/components/Tooltip/useTooltip.js +40 -55
  18. package/lib/components/Tooltip/useTooltip.js.map +1 -1
  19. package/lib/components/Tooltip/useTooltipStyles.js +2 -2
  20. package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib-commonjs/Tooltip.js.map +1 -1
  23. package/lib-commonjs/components/Tooltip/Tooltip.d.ts +3 -2
  24. package/lib-commonjs/components/Tooltip/Tooltip.js +6 -5
  25. package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
  26. package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +29 -33
  27. package/lib-commonjs/components/Tooltip/Tooltip.types.js.map +1 -1
  28. package/lib-commonjs/components/Tooltip/index.js.map +1 -1
  29. package/lib-commonjs/components/Tooltip/private/constants.js.map +1 -1
  30. package/lib-commonjs/components/Tooltip/renderTooltip.js +2 -2
  31. package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
  32. package/lib-commonjs/components/Tooltip/useTooltip.d.ts +1 -3
  33. package/lib-commonjs/components/Tooltip/useTooltip.js +39 -54
  34. package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
  35. package/lib-commonjs/components/Tooltip/useTooltipStyles.js +3 -3
  36. package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
  37. package/lib-commonjs/index.js.map +1 -1
  38. package/package.json +8 -10
package/CHANGELOG.json CHANGED
@@ -2,29 +2,185 @@
2
2
  "name": "@fluentui/react-tooltip",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 25 Jan 2022 04:17:22 GMT",
6
- "tag": "@fluentui/react-tooltip_v0.0.0-nightly6a6e258c4020220125.1",
7
- "version": "0.0.0-nightly6a6e258c4020220125.1",
5
+ "date": "Mon, 21 Feb 2022 04:15:32 GMT",
6
+ "tag": "@fluentui/react-tooltip_v0.0.0-nightly6faffd280a20220221.1",
7
+ "version": "0.0.0-nightly6faffd280a20220221.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-tooltip",
13
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d",
13
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd",
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-nightly6faffd280a20220221.1",
20
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-tooltip",
25
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly6faffd280a20220221.1",
26
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-tooltip",
31
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly6faffd280a20220221.1",
32
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-tooltip",
37
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly6faffd280a20220221.1",
38
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-tooltip",
43
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly6faffd280a20220221.1",
44
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-tooltip",
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly6faffd280a20220221.1",
50
+ "commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
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
+ },
73
+ {
74
+ "author": "olfedias@microsoft.com",
75
+ "package": "@fluentui/react-tooltip",
76
+ "commit": "2bf88fea066244bc078912bb6e45edb960f3b866",
77
+ "comment": "update trigger implementation to be consistent"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-tooltip",
82
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.3",
83
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@fluentui/react-tooltip",
88
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.3",
89
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-tooltip",
94
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.3",
95
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-tooltip",
100
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.3",
101
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui/react-tooltip",
106
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
107
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-tooltip",
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
+ },
16
160
  {
17
161
  "author": "behowell@microsoft.com",
18
162
  "package": "@fluentui/react-tooltip",
19
163
  "commit": "caaf3307f864b04369c13fe69d7dc8fe7ab84735",
20
164
  "comment": "Move arrowHeight and tooltipBorderRadius into a shared constants.ts file"
21
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
+ },
22
172
  {
23
173
  "author": "Humberto.Morimoto@microsoft.com",
24
174
  "package": "@fluentui/react-tooltip",
25
175
  "commit": "9204703d0a42ee34a20ae4cf28952e13872647ba",
26
176
  "comment": "Replacing use of functions in makeStyles with direct use of tokens."
27
177
  },
178
+ {
179
+ "author": "behowell@microsoft.com",
180
+ "package": "@fluentui/react-tooltip",
181
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
182
+ "comment": "Refactor component Slot typings"
183
+ },
28
184
  {
29
185
  "author": "olfedias@microsoft.com",
30
186
  "package": "@fluentui/react-tooltip",
@@ -44,85 +200,73 @@
44
200
  "comment": "Remove component's shorthandProps array"
45
201
  },
46
202
  {
47
- "author": "behowell@microsoft.com",
203
+ "author": "Humberto.Morimoto@microsoft.com",
48
204
  "package": "@fluentui/react-tooltip",
49
- "commit": "09804275c7f346db54c33d4ff347bffc33676014",
50
- "comment": "Fix tooltip arrow rendering, and add high contrast border around Tooltip"
205
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
206
+ "comment": "Updating based on changes to composition types."
51
207
  },
52
208
  {
53
209
  "author": "behowell@microsoft.com",
54
210
  "package": "@fluentui/react-tooltip",
55
- "commit": "1513362b9adaae5d7dbda6b364e40e736710a79f",
56
- "comment": "Remove Tooltip's inverted prop in favor of the appearance prop"
211
+ "commit": "97c3818f7faf8733a0cfc9c91f5e94ddb8652d3a",
212
+ "comment": "Update documentation stories"
57
213
  },
58
214
  {
59
- "author": "beachball",
215
+ "author": "olfedias@microsoft.com",
60
216
  "package": "@fluentui/react-tooltip",
61
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
62
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
217
+ "commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
218
+ "comment": "update types related to trigger (allow only React.ReactElement & null)"
63
219
  },
64
220
  {
65
- "author": "beachball",
221
+ "author": "behowell@microsoft.com",
66
222
  "package": "@fluentui/react-tooltip",
67
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightly6a6e258c4020220125.1",
68
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
223
+ "commit": "09804275c7f346db54c33d4ff347bffc33676014",
224
+ "comment": "Fix tooltip arrow rendering, and add high contrast border around Tooltip"
69
225
  },
70
226
  {
71
- "author": "beachball",
227
+ "author": "behowell@microsoft.com",
72
228
  "package": "@fluentui/react-tooltip",
73
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly6a6e258c4020220125.1",
74
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
229
+ "commit": "1513362b9adaae5d7dbda6b364e40e736710a79f",
230
+ "comment": "Remove Tooltip's inverted prop in favor of the appearance prop"
75
231
  },
76
232
  {
77
233
  "author": "beachball",
78
234
  "package": "@fluentui/react-tooltip",
79
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly6a6e258c4020220125.1",
80
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
235
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.1",
236
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
81
237
  },
82
238
  {
83
239
  "author": "beachball",
84
240
  "package": "@fluentui/react-tooltip",
85
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly6a6e258c4020220125.1",
86
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
241
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.1",
242
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
87
243
  },
88
244
  {
89
245
  "author": "beachball",
90
246
  "package": "@fluentui/react-tooltip",
91
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly6a6e258c4020220125.1",
92
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
247
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
248
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
93
249
  },
94
250
  {
95
251
  "author": "beachball",
96
252
  "package": "@fluentui/react-tooltip",
97
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
98
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
253
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
254
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
99
255
  },
100
256
  {
101
257
  "author": "beachball",
102
258
  "package": "@fluentui/react-tooltip",
103
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
104
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
259
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
260
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
105
261
  },
106
262
  {
107
263
  "author": "beachball",
108
264
  "package": "@fluentui/react-tooltip",
109
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
110
- "commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
265
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
266
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
111
267
  }
112
268
  ],
113
269
  "none": [
114
- {
115
- "author": "martinhochel@microsoft.com",
116
- "package": "@fluentui/react-tooltip",
117
- "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
118
- "comment": "chore: use storybook runner for all vNext packages"
119
- },
120
- {
121
- "author": "andredias@microsoft.com",
122
- "package": "@fluentui/react-tooltip",
123
- "commit": "b59f44ed5db37b457476fdb3ec86ff273b776646",
124
- "comment": "Migrate package to use solution tsconfigs"
125
- },
126
270
  {
127
271
  "author": "olfedias@microsoft.com",
128
272
  "package": "@fluentui/react-tooltip",
@@ -134,6 +278,18 @@
134
278
  "package": "@fluentui/react-tooltip",
135
279
  "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
136
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
+ },
288
+ {
289
+ "author": "andredias@microsoft.com",
290
+ "package": "@fluentui/react-tooltip",
291
+ "commit": "b59f44ed5db37b457476fdb3ec86ff273b776646",
292
+ "comment": "Migrate package to use solution tsconfigs"
137
293
  }
138
294
  ]
139
295
  }
package/CHANGELOG.md CHANGED
@@ -1,33 +1,72 @@
1
1
  # Change Log - @fluentui/react-tooltip
2
2
 
3
- This log was last generated on Tue, 25 Jan 2022 04:17:22 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 21 Feb 2022 04:15:32 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly6a6e258c4020220125.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightly6a6e258c4020220125.1)
7
+ ## [0.0.0-nightly6faffd280a20220221.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightly6faffd280a20220221.1)
8
8
 
9
- Tue, 25 Jan 2022 04:17:22 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v0.0.0-nightly6a6e258c4020220125.1)
9
+ Mon, 21 Feb 2022 04:15:32 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.3..@fluentui/react-tooltip_v0.0.0-nightly6faffd280a20220221.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by email not defined)
15
+ - Bump @fluentui/react-portal to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
16
+ - Bump @fluentui/react-positioning to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) 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)
15
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)
16
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)
17
56
  - update styles to not use CSS shorthands ([PR #20795](https://github.com/microsoft/fluentui/pull/20795) by olfedias@microsoft.com)
18
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)
19
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)
20
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)
21
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)
22
- - Bump @fluentui/react-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
23
- - Bump @fluentui/react-portal to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
24
- - Bump @fluentui/react-positioning to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
25
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
26
- - Bump @fluentui/react-theme to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
27
- - Bump @fluentui/react-utilities to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
28
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
29
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
30
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
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)
31
70
 
32
71
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-beta.5)
33
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`