@fluentui/react-tooltip 9.0.0-rc.9 → 9.0.0

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 (40) hide show
  1. package/CHANGELOG.json +293 -1
  2. package/CHANGELOG.md +91 -2
  3. package/dist/index.d.ts +42 -51
  4. package/{lib → dist}/tsdoc-metadata.json +0 -0
  5. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  6. package/lib/components/Tooltip/Tooltip.types.js.map +1 -1
  7. package/lib/components/Tooltip/renderTooltip.js.map +1 -1
  8. package/lib/components/Tooltip/useTooltip.js +11 -11
  9. package/lib/components/Tooltip/useTooltip.js.map +1 -1
  10. package/lib/components/Tooltip/useTooltipStyles.js +17 -24
  11. package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
  12. package/lib/index.js +1 -2
  13. package/lib/index.js.map +1 -1
  14. package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
  15. package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
  16. package/lib-commonjs/components/Tooltip/useTooltip.js +10 -10
  17. package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
  18. package/lib-commonjs/components/Tooltip/useTooltipStyles.js +18 -25
  19. package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
  20. package/lib-commonjs/index.js +1 -8
  21. package/lib-commonjs/index.js.map +1 -1
  22. package/package.json +10 -12
  23. package/lib/Tooltip.d.ts +0 -1
  24. package/lib/components/Tooltip/Tooltip.d.ts +0 -7
  25. package/lib/components/Tooltip/Tooltip.types.d.ts +0 -118
  26. package/lib/components/Tooltip/index.d.ts +0 -5
  27. package/lib/components/Tooltip/private/constants.d.ts +0 -12
  28. package/lib/components/Tooltip/renderTooltip.d.ts +0 -5
  29. package/lib/components/Tooltip/useTooltip.d.ts +0 -10
  30. package/lib/components/Tooltip/useTooltipStyles.d.ts +0 -11
  31. package/lib/index.d.ts +0 -2
  32. package/lib-commonjs/Tooltip.d.ts +0 -1
  33. package/lib-commonjs/components/Tooltip/Tooltip.d.ts +0 -7
  34. package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +0 -118
  35. package/lib-commonjs/components/Tooltip/index.d.ts +0 -5
  36. package/lib-commonjs/components/Tooltip/private/constants.d.ts +0 -12
  37. package/lib-commonjs/components/Tooltip/renderTooltip.d.ts +0 -5
  38. package/lib-commonjs/components/Tooltip/useTooltip.d.ts +0 -10
  39. package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +0 -11
  40. package/lib-commonjs/index.d.ts +0 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,299 @@
2
2
  "name": "@fluentui/react-tooltip",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 05 May 2022 18:24:37 GMT",
5
+ "date": "Tue, 28 Jun 2022 15:08:35 GMT",
6
+ "tag": "@fluentui/react-tooltip_v9.0.0",
7
+ "version": "9.0.0",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "lingfangao@hotmail.com",
12
+ "package": "@fluentui/react-tooltip",
13
+ "commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
14
+ "comment": "Update 9.0.0-rc dependencies to use caret range"
15
+ },
16
+ {
17
+ "author": "lingfangao@hotmail.com",
18
+ "package": "@fluentui/react-tooltip",
19
+ "commit": "675acea49c97f10837ddee9b8c4350ca27750125",
20
+ "comment": "Bump Griffel dependencies"
21
+ }
22
+ ],
23
+ "patch": [
24
+ {
25
+ "author": "lingfangao@hotmail.com",
26
+ "package": "@fluentui/react-tooltip",
27
+ "commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
28
+ "comment": "feat: Initial 9.0.0 release"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@fluentui/react-tooltip",
33
+ "comment": "Bump @fluentui/react-portal to v9.0.0",
34
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
35
+ },
36
+ {
37
+ "author": "beachball",
38
+ "package": "@fluentui/react-tooltip",
39
+ "comment": "Bump @fluentui/react-positioning to v9.0.0",
40
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
41
+ },
42
+ {
43
+ "author": "beachball",
44
+ "package": "@fluentui/react-tooltip",
45
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0",
46
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
47
+ },
48
+ {
49
+ "author": "beachball",
50
+ "package": "@fluentui/react-tooltip",
51
+ "comment": "Bump @fluentui/react-theme to v9.0.0",
52
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
53
+ },
54
+ {
55
+ "author": "beachball",
56
+ "package": "@fluentui/react-tooltip",
57
+ "comment": "Bump @fluentui/react-utilities to v9.0.0",
58
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
59
+ },
60
+ {
61
+ "author": "beachball",
62
+ "package": "@fluentui/react-tooltip",
63
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
64
+ "commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
65
+ }
66
+ ],
67
+ "none": [
68
+ {
69
+ "author": "mgodbolt@microsoft.com",
70
+ "package": "@fluentui/react-tooltip",
71
+ "commit": "65acf47a55095642d98116d2eb20ca6bae6e5a04",
72
+ "comment": "chore: update tooltip to index based stories"
73
+ }
74
+ ]
75
+ }
76
+ },
77
+ {
78
+ "date": "Thu, 23 Jun 2022 14:25:31 GMT",
79
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.14",
80
+ "version": "9.0.0-rc.14",
81
+ "comments": {
82
+ "prerelease": [
83
+ {
84
+ "author": "beachball",
85
+ "package": "@fluentui/react-tooltip",
86
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.14",
87
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
88
+ },
89
+ {
90
+ "author": "beachball",
91
+ "package": "@fluentui/react-tooltip",
92
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.12",
93
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
94
+ },
95
+ {
96
+ "author": "beachball",
97
+ "package": "@fluentui/react-tooltip",
98
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.11",
99
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
100
+ },
101
+ {
102
+ "author": "beachball",
103
+ "package": "@fluentui/react-tooltip",
104
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
105
+ "commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
106
+ }
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "date": "Tue, 31 May 2022 21:28:49 GMT",
112
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.13",
113
+ "version": "9.0.0-rc.13",
114
+ "comments": {
115
+ "prerelease": [
116
+ {
117
+ "author": "olfedias@microsoft.com",
118
+ "package": "@fluentui/react-tooltip",
119
+ "commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
120
+ "comment": "chore: Update Griffel to latest version"
121
+ },
122
+ {
123
+ "author": "bernardo.sunderhus@gmail.com",
124
+ "package": "@fluentui/react-tooltip",
125
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd",
126
+ "comment": "updates import to react-shared-components"
127
+ },
128
+ {
129
+ "author": "beachball",
130
+ "package": "@fluentui/react-tooltip",
131
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.13",
132
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
133
+ },
134
+ {
135
+ "author": "beachball",
136
+ "package": "@fluentui/react-tooltip",
137
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.11",
138
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
139
+ },
140
+ {
141
+ "author": "beachball",
142
+ "package": "@fluentui/react-tooltip",
143
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.10",
144
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
145
+ },
146
+ {
147
+ "author": "beachball",
148
+ "package": "@fluentui/react-tooltip",
149
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
150
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
151
+ },
152
+ {
153
+ "author": "beachball",
154
+ "package": "@fluentui/react-tooltip",
155
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
156
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
157
+ }
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "date": "Thu, 26 May 2022 21:01:32 GMT",
163
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.12",
164
+ "version": "9.0.0-rc.12",
165
+ "comments": {
166
+ "prerelease": [
167
+ {
168
+ "author": "beachball",
169
+ "package": "@fluentui/react-tooltip",
170
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.12",
171
+ "commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
172
+ }
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ "date": "Mon, 23 May 2022 18:56:50 GMT",
178
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.11",
179
+ "version": "9.0.0-rc.11",
180
+ "comments": {
181
+ "prerelease": [
182
+ {
183
+ "author": "esteban.230@hotmail.com",
184
+ "package": "@fluentui/react-tooltip",
185
+ "commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
186
+ "comment": "Removing <componentName>ClassName exports."
187
+ },
188
+ {
189
+ "author": "lingfangao@hotmail.com",
190
+ "package": "@fluentui/react-tooltip",
191
+ "commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
192
+ "comment": "BREAKING: changes to positioning prop"
193
+ },
194
+ {
195
+ "author": "beachball",
196
+ "package": "@fluentui/react-tooltip",
197
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.11",
198
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
199
+ },
200
+ {
201
+ "author": "beachball",
202
+ "package": "@fluentui/react-tooltip",
203
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.10",
204
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
205
+ },
206
+ {
207
+ "author": "beachball",
208
+ "package": "@fluentui/react-tooltip",
209
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.9",
210
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
211
+ },
212
+ {
213
+ "author": "beachball",
214
+ "package": "@fluentui/react-tooltip",
215
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
216
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
217
+ },
218
+ {
219
+ "author": "beachball",
220
+ "package": "@fluentui/react-tooltip",
221
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
222
+ "commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
223
+ }
224
+ ]
225
+ }
226
+ },
227
+ {
228
+ "date": "Mon, 23 May 2022 12:13:56 GMT",
229
+ "tag": "@fluentui/react-tooltip_v9.0.0-rc.10",
230
+ "version": "9.0.0-rc.10",
231
+ "comments": {
232
+ "prerelease": [
233
+ {
234
+ "author": "Humberto.Morimoto@microsoft.com",
235
+ "package": "@fluentui/react-tooltip",
236
+ "commit": "13543c30b0a05b61cb8d75c804d9b2aee45a8ae5",
237
+ "comment": "Removing TooltipCommons type."
238
+ },
239
+ {
240
+ "author": "martinhochel@microsoft.com",
241
+ "package": "@fluentui/react-tooltip",
242
+ "commit": "e7b70cb06f4422e5574993fd2ad44d9073647417",
243
+ "comment": "feat: ship rolluped only dts"
244
+ },
245
+ {
246
+ "author": "olfedias@microsoft.com",
247
+ "package": "@fluentui/react-tooltip",
248
+ "commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
249
+ "comment": "chore: Update Griffel to latest version"
250
+ },
251
+ {
252
+ "author": "olfedias@microsoft.com",
253
+ "package": "@fluentui/react-tooltip",
254
+ "commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
255
+ "comment": "chore: Update Griffel to latest version"
256
+ },
257
+ {
258
+ "author": "beachball",
259
+ "package": "@fluentui/react-tooltip",
260
+ "comment": "Bump @fluentui/react-portal to v9.0.0-rc.10",
261
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
262
+ },
263
+ {
264
+ "author": "beachball",
265
+ "package": "@fluentui/react-tooltip",
266
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-rc.9",
267
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
268
+ },
269
+ {
270
+ "author": "beachball",
271
+ "package": "@fluentui/react-tooltip",
272
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.8",
273
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
274
+ },
275
+ {
276
+ "author": "beachball",
277
+ "package": "@fluentui/react-tooltip",
278
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
279
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
280
+ },
281
+ {
282
+ "author": "beachball",
283
+ "package": "@fluentui/react-tooltip",
284
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
285
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
286
+ },
287
+ {
288
+ "author": "beachball",
289
+ "package": "@fluentui/react-tooltip",
290
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
291
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
292
+ }
293
+ ]
294
+ }
295
+ },
296
+ {
297
+ "date": "Thu, 05 May 2022 18:26:30 GMT",
6
298
  "tag": "@fluentui/react-tooltip_v9.0.0-rc.9",
7
299
  "version": "9.0.0-rc.9",
8
300
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,101 @@
1
1
  # Change Log - @fluentui/react-tooltip
2
2
 
3
- This log was last generated on Thu, 05 May 2022 18:24:37 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 28 Jun 2022 15:08:35 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0)
8
+
9
+ Tue, 28 Jun 2022 15:08:35 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.14..@fluentui/react-tooltip_v9.0.0)
11
+
12
+ ### Patches
13
+
14
+ - feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-portal to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
16
+ - Bump @fluentui/react-positioning to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
18
+ - Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
21
+
22
+ ### Changes
23
+
24
+ - Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
25
+ - Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
26
+
27
+ ## [9.0.0-rc.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.14)
28
+
29
+ Thu, 23 Jun 2022 14:25:31 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.13..@fluentui/react-tooltip_v9.0.0-rc.14)
31
+
32
+ ### Changes
33
+
34
+ - Bump @fluentui/react-portal to v9.0.0-rc.14 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
35
+ - Bump @fluentui/react-positioning to v9.0.0-rc.12 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
36
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.11 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
37
+ - Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
38
+
39
+ ## [9.0.0-rc.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.13)
40
+
41
+ Tue, 31 May 2022 21:28:49 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.12..@fluentui/react-tooltip_v9.0.0-rc.13)
43
+
44
+ ### Changes
45
+
46
+ - chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
47
+ - updates import to react-shared-components ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by bernardo.sunderhus@gmail.com)
48
+ - Bump @fluentui/react-portal to v9.0.0-rc.13 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
49
+ - Bump @fluentui/react-positioning to v9.0.0-rc.11 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
50
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
51
+ - Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
52
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
53
+
54
+ ## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.12)
55
+
56
+ Thu, 26 May 2022 21:01:32 GMT
57
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.11..@fluentui/react-tooltip_v9.0.0-rc.12)
58
+
59
+ ### Changes
60
+
61
+ - Bump @fluentui/react-portal to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
62
+
63
+ ## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.11)
64
+
65
+ Mon, 23 May 2022 18:56:50 GMT
66
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.10..@fluentui/react-tooltip_v9.0.0-rc.11)
67
+
68
+ ### Changes
69
+
70
+ - Removing <componentName>ClassName exports. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by esteban.230@hotmail.com)
71
+ - BREAKING: changes to positioning prop ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by lingfangao@hotmail.com)
72
+ - Bump @fluentui/react-portal to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
73
+ - Bump @fluentui/react-positioning to v9.0.0-rc.10 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
74
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
75
+ - Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
76
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
77
+
78
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.10)
79
+
80
+ Mon, 23 May 2022 12:13:56 GMT
81
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.9..@fluentui/react-tooltip_v9.0.0-rc.10)
82
+
83
+ ### Changes
84
+
85
+ - Removing TooltipCommons type. ([PR #22953](https://github.com/microsoft/fluentui/pull/22953) by Humberto.Morimoto@microsoft.com)
86
+ - feat: ship rolluped only dts ([PR #22828](https://github.com/microsoft/fluentui/pull/22828) by martinhochel@microsoft.com)
87
+ - chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
88
+ - chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
89
+ - Bump @fluentui/react-portal to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
90
+ - Bump @fluentui/react-positioning to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
91
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
92
+ - Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
93
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
94
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
95
+
7
96
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-rc.9)
8
97
 
9
- Thu, 05 May 2022 18:24:37 GMT
98
+ Thu, 05 May 2022 18:26:30 GMT
10
99
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-rc.8..@fluentui/react-tooltip_v9.0.0-rc.9)
11
100
 
12
101
  ### Changes
package/dist/index.d.ts CHANGED
@@ -24,87 +24,78 @@ export declare const renderTooltip_unstable: (state: TooltipState) => JSX.Elemen
24
24
  */
25
25
  export declare const Tooltip: React_2.FC<TooltipProps> & FluentTriggerComponent;
26
26
 
27
- /**
28
- * @deprecated Use `tooltipClassNames.root` instead.
29
- */
30
- export declare const tooltipClassName = "fui-Tooltip";
31
-
32
27
  export declare const tooltipClassNames: SlotClassNames<TooltipSlots>;
33
28
 
34
29
  /**
35
- * Properties and state for Tooltip
30
+ * Properties for Tooltip
36
31
  */
37
- declare type TooltipCommons = Pick<PortalProps, 'mountNode'> & {
38
- /**
39
- * (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.
40
- *
41
- * * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons
42
- * displaying only an icon, for example.
43
- * * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.
44
- * * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to
45
- * screen readers, and should only be used if the tooltip's text is available by some other means.
46
- */
47
- relationship: 'label' | 'description' | 'inaccessible';
32
+ export declare type TooltipProps = ComponentProps<TooltipSlots> & Pick<PortalProps, 'mountNode'> & {
48
33
  /**
49
34
  * The tooltip's visual appearance.
50
35
  * * `normal` - Uses the theme's background and text colors.
51
36
  * * `inverted` - Higher contrast variant that uses the theme's inverted colors.
52
37
  *
53
- * @defaultvalue normal
38
+ * @default normal
54
39
  */
55
40
  appearance?: 'normal' | 'inverted';
56
41
  /**
57
- * Render an arrow pointing to the target element
42
+ * The tooltip can have a single JSX child, or a render function that accepts TooltipTriggerProps.
58
43
  *
59
- * @defaultvalue false
44
+ * If no child is provided, the tooltip's target must be set with the `positioning` prop, and its
45
+ * visibility must be controlled with the `visible` prop.
60
46
  */
61
- withArrow?: boolean;
47
+ children?: (React_2.ReactElement & {
48
+ ref?: React_2.Ref<unknown>;
49
+ }) | ((props: TooltipTriggerProps) => React_2.ReactElement | null) | null;
62
50
  /**
63
- * Configure the positioning of the tooltip
51
+ * Delay before the tooltip is hidden, in milliseconds.
64
52
  *
65
- * @defaultvalue above
53
+ * @default 250
66
54
  */
67
- positioning?: PositioningShorthand;
55
+ hideDelay?: number;
68
56
  /**
69
- * Control the tooltip's visibility programatically.
70
- *
71
- * This can be used in conjunction with onVisibleChange to modify the tooltip's show and hide behavior.
57
+ * Notification when the visibility of the tooltip is changing
58
+ */
59
+ onVisibleChange?: (event: React_2.PointerEvent<HTMLElement> | React_2.FocusEvent<HTMLElement> | undefined, data: OnVisibleChangeData) => void;
60
+ /**
61
+ * Configure the positioning of the tooltip
72
62
  *
73
- * If not provided, the visibility will be controlled by the tooltip itself, based on hover and focus events on the
74
- * trigger (child) element.
63
+ * @default above
75
64
  */
76
- visible?: boolean;
65
+ positioning?: PositioningShorthand;
77
66
  /**
78
- * Notification when the visibility of the tooltip is changing
67
+ * (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.
68
+ *
69
+ * * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons
70
+ * displaying only an icon, for example.
71
+ * * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.
72
+ * * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to
73
+ * screen readers, and should only be used if the tooltip's text is available by some other means.
79
74
  */
80
- onVisibleChange?: (event: React_2.PointerEvent<HTMLElement> | React_2.FocusEvent<HTMLElement> | undefined, data: OnVisibleChangeData) => void;
75
+ relationship: 'label' | 'description' | 'inaccessible';
81
76
  /**
82
77
  * Delay before the tooltip is shown, in milliseconds.
83
78
  *
84
- * @defaultvalue 250
79
+ * @default 250
85
80
  */
86
- showDelay: number;
81
+ showDelay?: number;
87
82
  /**
88
- * Delay before the tooltip is hidden, in milliseconds.
83
+ * Control the tooltip's visibility programatically.
84
+ *
85
+ * This can be used in conjunction with onVisibleChange to modify the tooltip's show and hide behavior.
89
86
  *
90
- * @defaultvalue 250
87
+ * If not provided, the visibility will be controlled by the tooltip itself, based on hover and focus events on the
88
+ * trigger (child) element.
89
+ *
90
+ * @default false
91
91
  */
92
- hideDelay: number;
93
- };
94
-
95
- /**
96
- * Properties for Tooltip
97
- */
98
- export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, 'relationship'>> & Pick<TooltipCommons, 'relationship'> & {
92
+ visible?: boolean;
99
93
  /**
100
- * The tooltip can have a single JSX child, or a render function that accepts TooltipTriggerProps.
94
+ * Render an arrow pointing to the target element
101
95
  *
102
- * If no child is provided, the tooltip's target must be set with the `positioning` prop, and its
103
- * visibility must be controlled with the `visible` prop.
96
+ * @default false
104
97
  */
105
- children?: (React_2.ReactElement & {
106
- ref?: React_2.Ref<unknown>;
107
- }) | ((props: TooltipTriggerProps) => React_2.ReactElement | null) | null;
98
+ withArrow?: boolean;
108
99
  };
109
100
 
110
101
  /**
@@ -120,7 +111,7 @@ export declare type TooltipSlots = {
120
111
  /**
121
112
  * State used in rendering Tooltip
122
113
  */
123
- export declare type TooltipState = ComponentState<TooltipSlots> & TooltipCommons & {
114
+ export declare type TooltipState = ComponentState<TooltipSlots> & Pick<TooltipProps, 'mountNode' | 'relationship'> & Required<Pick<TooltipProps, 'appearance' | 'hideDelay' | 'positioning' | 'showDelay' | 'visible' | 'withArrow'>> & {
124
115
  children?: React_2.ReactElement | null;
125
116
  /**
126
117
  * Whether the tooltip should be rendered to the DOM.
@@ -141,7 +132,7 @@ export declare type TooltipState = ComponentState<TooltipSlots> & TooltipCommons
141
132
  */
142
133
  export declare type TooltipTriggerProps = {
143
134
  ref?: React_2.Ref<never>;
144
- } & Pick<React_2.HTMLAttributes<HTMLElement>, 'onPointerEnter' | 'onPointerLeave' | 'onFocus' | 'onBlur' | 'aria-describedby' | 'aria-labelledby' | 'aria-label'>;
135
+ } & Pick<React_2.HTMLAttributes<HTMLElement>, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onPointerEnter' | 'onPointerLeave'>;
145
136
 
146
137
  /**
147
138
  * Create the state required to render Tooltip.
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,GAAoD,KAAK,IAAG;AAC9E,QAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,CAAjC;AAEA,EAAA,yBAAyB,CAAC,KAAD,CAAzB;AACA,SAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CALM;AAOP,OAAO,CAAC,WAAR,GAAsB,SAAtB;AACA,OAAO,CAAC,wBAAR,GAAmC,IAAnC","sourcesContent":["import * as React from 'react';\nimport { useTooltip_unstable } from './useTooltip';\nimport { renderTooltip_unstable } from './renderTooltip';\nimport { useTooltipStyles_unstable } from './useTooltipStyles';\nimport type { TooltipProps } from './Tooltip.types';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\n\n/**\n * A tooltip provides light weight contextual information on top of its target element.\n */\nexport const Tooltip: React.FC<TooltipProps> & FluentTriggerComponent = props => {\n const state = useTooltip_unstable(props);\n\n useTooltipStyles_unstable(state);\n return renderTooltip_unstable(state);\n};\n\nTooltip.displayName = 'Tooltip';\nTooltip.isFluentTriggerComponent = true;\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,GAAoD,KAAK,IAAG;EAC9E,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,CAAjC;EAEA,yBAAyB,CAAC,KAAD,CAAzB;EACA,OAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CALM;AAOP,OAAO,CAAC,WAAR,GAAsB,SAAtB;AACA,OAAO,CAAC,wBAAR,GAAmC,IAAnC","sourcesContent":["import * as React from 'react';\nimport { useTooltip_unstable } from './useTooltip';\nimport { renderTooltip_unstable } from './renderTooltip';\nimport { useTooltipStyles_unstable } from './useTooltipStyles';\nimport type { TooltipProps } from './Tooltip.types';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\n\n/**\n * A tooltip provides light weight contextual information on top of its target element.\n */\nexport const Tooltip: React.FC<TooltipProps> & FluentTriggerComponent = props => {\n const state = useTooltip_unstable(props);\n\n useTooltipStyles_unstable(state);\n return renderTooltip_unstable(state);\n};\n\nTooltip.displayName = 'Tooltip';\nTooltip.isFluentTriggerComponent = true;\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.types.js","sourceRoot":"../src/","sources":["components/Tooltip/Tooltip.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { PositioningShorthand } from '@fluentui/react-positioning';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { PortalProps } from '@fluentui/react-portal';\n\n/**\n * Slot properties for Tooltip\n */\nexport type TooltipSlots = {\n /**\n * The text or JSX content of the tooltip.\n */\n content: NonNullable<Slot<'div'>>;\n};\n\n/**\n * Properties and state for Tooltip\n */\ntype TooltipCommons = Pick<PortalProps, 'mountNode'> & {\n /**\n * (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.\n *\n * * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons\n * displaying only an icon, for example.\n * * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.\n * * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to\n * screen readers, and should only be used if the tooltip's text is available by some other means.\n */\n relationship: 'label' | 'description' | 'inaccessible';\n\n /**\n * The tooltip's visual appearance.\n * * `normal` - Uses the theme's background and text colors.\n * * `inverted` - Higher contrast variant that uses the theme's inverted colors.\n *\n * @defaultvalue normal\n */\n appearance?: 'normal' | 'inverted';\n\n /**\n * Render an arrow pointing to the target element\n *\n * @defaultvalue false\n */\n withArrow?: boolean;\n\n /**\n * Configure the positioning of the tooltip\n *\n * @defaultvalue above\n */\n positioning?: PositioningShorthand;\n\n /**\n * Control the tooltip's visibility programatically.\n *\n * This can be used in conjunction with onVisibleChange to modify the tooltip's show and hide behavior.\n *\n * If not provided, the visibility will be controlled by the tooltip itself, based on hover and focus events on the\n * trigger (child) element.\n */\n visible?: boolean;\n\n /**\n * Notification when the visibility of the tooltip is changing\n */\n onVisibleChange?: (\n event: React.PointerEvent<HTMLElement> | React.FocusEvent<HTMLElement> | undefined,\n data: OnVisibleChangeData,\n ) => void;\n\n /**\n * Delay before the tooltip is shown, in milliseconds.\n *\n * @defaultvalue 250\n */\n showDelay: number;\n\n /**\n * Delay before the tooltip is hidden, in milliseconds.\n *\n * @defaultvalue 250\n */\n hideDelay: number;\n};\n\n/**\n * The properties that are added to the trigger of the Tooltip\n */\nexport type TooltipTriggerProps = {\n ref?: React.Ref<never>;\n} & Pick<\n React.HTMLAttributes<HTMLElement>,\n 'onPointerEnter' | 'onPointerLeave' | 'onFocus' | 'onBlur' | 'aria-describedby' | 'aria-labelledby' | 'aria-label'\n>;\n\n/**\n * Data for the Tooltip's onVisibleChange event.\n */\nexport type OnVisibleChangeData = {\n visible: boolean;\n};\n\n/**\n * Properties for Tooltip\n */\nexport type TooltipProps = ComponentProps<TooltipSlots> &\n Partial<Omit<TooltipCommons, 'relationship'>> &\n Pick<TooltipCommons, 'relationship'> & {\n /**\n * The tooltip can have a single JSX child, or a render function that accepts TooltipTriggerProps.\n *\n * If no child is provided, the tooltip's target must be set with the `positioning` prop, and its\n * visibility must be controlled with the `visible` prop.\n */\n children?:\n | (React.ReactElement & { ref?: React.Ref<unknown> })\n | ((props: TooltipTriggerProps) => React.ReactElement | null)\n | null;\n };\n\n/**\n * State used in rendering Tooltip\n */\nexport type TooltipState = ComponentState<TooltipSlots> &\n TooltipCommons & {\n children?: React.ReactElement | null;\n\n /**\n * Whether the tooltip should be rendered to the DOM.\n */\n shouldRenderTooltip?: boolean;\n\n /**\n * Ref to the arrow element\n */\n arrowRef?: React.Ref<HTMLDivElement>;\n\n /**\n * CSS class for the arrow element\n */\n arrowClassName?: string;\n };\n"]}
1
+ {"version":3,"file":"Tooltip.types.js","sourceRoot":"../src/","sources":["components/Tooltip/Tooltip.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { PositioningShorthand } from '@fluentui/react-positioning';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { PortalProps } from '@fluentui/react-portal';\n\n/**\n * Slot properties for Tooltip\n */\nexport type TooltipSlots = {\n /**\n * The text or JSX content of the tooltip.\n */\n content: NonNullable<Slot<'div'>>;\n};\n\n/**\n * The properties that are added to the trigger of the Tooltip\n */\nexport type TooltipTriggerProps = {\n ref?: React.Ref<never>;\n} & Pick<\n React.HTMLAttributes<HTMLElement>,\n 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onPointerEnter' | 'onPointerLeave'\n>;\n\n/**\n * Data for the Tooltip's onVisibleChange event.\n */\nexport type OnVisibleChangeData = {\n visible: boolean;\n};\n\n/**\n * Properties for Tooltip\n */\nexport type TooltipProps = ComponentProps<TooltipSlots> &\n Pick<PortalProps, 'mountNode'> & {\n /**\n * The tooltip's visual appearance.\n * * `normal` - Uses the theme's background and text colors.\n * * `inverted` - Higher contrast variant that uses the theme's inverted colors.\n *\n * @default normal\n */\n appearance?: 'normal' | 'inverted';\n\n /**\n * The tooltip can have a single JSX child, or a render function that accepts TooltipTriggerProps.\n *\n * If no child is provided, the tooltip's target must be set with the `positioning` prop, and its\n * visibility must be controlled with the `visible` prop.\n */\n children?:\n | (React.ReactElement & { ref?: React.Ref<unknown> })\n | ((props: TooltipTriggerProps) => React.ReactElement | null)\n | null;\n\n /**\n * Delay before the tooltip is hidden, in milliseconds.\n *\n * @default 250\n */\n hideDelay?: number;\n\n /**\n * Notification when the visibility of the tooltip is changing\n */\n onVisibleChange?: (\n event: React.PointerEvent<HTMLElement> | React.FocusEvent<HTMLElement> | undefined,\n data: OnVisibleChangeData,\n ) => void;\n\n /**\n * Configure the positioning of the tooltip\n *\n * @default above\n */\n positioning?: PositioningShorthand;\n\n /**\n * (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.\n *\n * * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons\n * displaying only an icon, for example.\n * * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.\n * * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to\n * screen readers, and should only be used if the tooltip's text is available by some other means.\n */\n relationship: 'label' | 'description' | 'inaccessible';\n\n /**\n * Delay before the tooltip is shown, in milliseconds.\n *\n * @default 250\n */\n showDelay?: number;\n\n /**\n * Control the tooltip's visibility programatically.\n *\n * This can be used in conjunction with onVisibleChange to modify the tooltip's show and hide behavior.\n *\n * If not provided, the visibility will be controlled by the tooltip itself, based on hover and focus events on the\n * trigger (child) element.\n *\n * @default false\n */\n visible?: boolean;\n\n /**\n * Render an arrow pointing to the target element\n *\n * @default false\n */\n withArrow?: boolean;\n };\n\n/**\n * State used in rendering Tooltip\n */\nexport type TooltipState = ComponentState<TooltipSlots> &\n Pick<TooltipProps, 'mountNode' | 'relationship'> &\n Required<Pick<TooltipProps, 'appearance' | 'hideDelay' | 'positioning' | 'showDelay' | 'visible' | 'withArrow'>> & {\n children?: React.ReactElement | null;\n\n /**\n * Whether the tooltip should be rendered to the DOM.\n */\n shouldRenderTooltip?: boolean;\n\n /**\n * Ref to the arrow element\n */\n arrowRef?: React.Ref<HTMLDivElement>;\n\n /**\n * CSS class for the arrow element\n */\n arrowClassName?: string;\n };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Tooltip/renderTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAwB;AAC5D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAe,KAAf,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,EACG,KAAK,CAAC,QADT,EAEG,KAAK,CAAC,mBAAN,iBACC,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,EACG,KAAK,CAAC,SAAN,iBAAmB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADtB,EAEG,KAAK,CAAC,OAAN,CAAc,QAFjB,CADF,CAHJ,CADF;AAaD,CAhBM","sourcesContent":["import * as React from 'react';\nimport { Portal } from '@fluentui/react-portal';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TooltipSlots, TooltipState } from './Tooltip.types';\n\n/**\n * Render the final JSX of Tooltip\n */\nexport const renderTooltip_unstable = (state: TooltipState) => {\n const { slots, slotProps } = getSlots<TooltipSlots>(state);\n\n return (\n <>\n {state.children}\n {state.shouldRenderTooltip && (\n <Portal mountNode={state.mountNode}>\n <slots.content {...slotProps.content}>\n {state.withArrow && <div ref={state.arrowRef} className={state.arrowClassName} />}\n {state.content.children}\n </slots.content>\n </Portal>\n )}\n </>\n );\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/Tooltip/renderTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAwB;EAC5D,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAe,KAAf,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,EACG,KAAK,CAAC,QADT,EAEG,KAAK,CAAC,mBAAN,iBACC,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;IAAC,SAAS,EAAE,KAAK,CAAC;EAAlB,CAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;EAAf,CAAd,EACG,KAAK,CAAC,SAAN,iBAAmB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;IAAK,GAAG,EAAE,KAAK,CAAC,QAAhB;IAA0B,SAAS,EAAE,KAAK,CAAC;EAA3C,CAAA,CADtB,EAEG,KAAK,CAAC,OAAN,CAAc,QAFjB,CADF,CAHJ,CADF;AAaD,CAhBM","sourcesContent":["import * as React from 'react';\nimport { Portal } from '@fluentui/react-portal';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TooltipSlots, TooltipState } from './Tooltip.types';\n\n/**\n * Render the final JSX of Tooltip\n */\nexport const renderTooltip_unstable = (state: TooltipState) => {\n const { slots, slotProps } = getSlots<TooltipSlots>(state);\n\n return (\n <>\n {state.children}\n {state.shouldRenderTooltip && (\n <Portal mountNode={state.mountNode}>\n <slots.content {...slotProps.content}>\n {state.withArrow && <div ref={state.arrowRef} className={state.arrowClassName} />}\n {state.content.children}\n </slots.content>\n </Portal>\n )}\n </>\n );\n};\n"],"sourceRoot":"../src/"}