@fluentui/react-tooltip 0.0.0-nightly0e0cf06c3420211029.1 → 0.0.0-nightly3082edf34720220208.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.
- package/CHANGELOG.json +278 -22
- package/CHANGELOG.md +64 -14
- package/dist/react-tooltip.d.ts +29 -46
- package/lib/components/Tooltip/Tooltip.d.ts +3 -2
- package/lib/components/Tooltip/Tooltip.js +9 -9
- package/lib/components/Tooltip/Tooltip.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.types.d.ts +20 -37
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/lib/components/Tooltip/index.js +1 -1
- package/lib/components/Tooltip/index.js.map +1 -1
- package/lib/components/Tooltip/private/constants.d.ts +12 -0
- package/lib/components/Tooltip/private/constants.js +14 -0
- package/lib/components/Tooltip/private/constants.js.map +1 -0
- package/lib/components/Tooltip/renderTooltip.d.ts +1 -1
- package/lib/components/Tooltip/renderTooltip.js +8 -8
- package/lib/components/Tooltip/renderTooltip.js.map +1 -1
- package/lib/components/Tooltip/useTooltip.d.ts +3 -6
- package/lib/components/Tooltip/useTooltip.js +97 -119
- package/lib/components/Tooltip/useTooltip.js.map +1 -1
- package/lib/components/Tooltip/useTooltipStyles.d.ts +2 -1
- package/lib/components/Tooltip/useTooltipStyles.js +50 -23
- package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
- package/lib-commonjs/Tooltip.js +1 -1
- package/lib-commonjs/components/Tooltip/Tooltip.d.ts +3 -2
- package/lib-commonjs/components/Tooltip/Tooltip.js +11 -10
- package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +20 -37
- package/lib-commonjs/components/Tooltip/index.d.ts +1 -1
- package/lib-commonjs/components/Tooltip/index.js +2 -10
- package/lib-commonjs/components/Tooltip/index.js.map +1 -1
- package/lib-commonjs/components/Tooltip/private/constants.d.ts +12 -0
- package/lib-commonjs/components/Tooltip/private/constants.js +21 -0
- package/lib-commonjs/components/Tooltip/private/constants.js.map +1 -0
- package/lib-commonjs/components/Tooltip/renderTooltip.d.ts +1 -1
- package/lib-commonjs/components/Tooltip/renderTooltip.js +13 -14
- package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/useTooltip.d.ts +3 -6
- package/lib-commonjs/components/Tooltip/useTooltip.js +105 -127
- package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +2 -1
- package/lib-commonjs/components/Tooltip/useTooltipStyles.js +56 -26
- package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/package.json +12 -14
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -11
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -22
- package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,76 +2,332 @@
|
|
2
2
|
"name": "@fluentui/react-tooltip",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-tooltip_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Tue, 08 Feb 2022 04:14:28 GMT",
|
6
|
+
"tag": "@fluentui/react-tooltip_v0.0.0-nightly3082edf34720220208.1",
|
7
|
+
"version": "0.0.0-nightly3082edf34720220208.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-tooltip",
|
13
|
-
"commit": "
|
13
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "behowell@microsoft.com",
|
18
|
+
"package": "@fluentui/react-tooltip",
|
19
|
+
"commit": "caaf3307f864b04369c13fe69d7dc8fe7ab84735",
|
20
|
+
"comment": "Move arrowHeight and tooltipBorderRadius into a shared constants.ts file"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "behowell@microsoft.com",
|
24
|
+
"package": "@fluentui/react-tooltip",
|
25
|
+
"commit": "2aacc839785a2f96d84a959aea207dfdb99116f8",
|
26
|
+
"comment": "Prevent Tooltip from overriding any aria-label, etc. props on its child"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
30
|
+
"package": "@fluentui/react-tooltip",
|
31
|
+
"commit": "9204703d0a42ee34a20ae4cf28952e13872647ba",
|
32
|
+
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "behowell@microsoft.com",
|
36
|
+
"package": "@fluentui/react-tooltip",
|
37
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
38
|
+
"comment": "Refactor component Slot typings"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "olfedias@microsoft.com",
|
42
|
+
"package": "@fluentui/react-tooltip",
|
43
|
+
"commit": "1bbb753830028fbf133858d523ae2d56ceefeecf",
|
44
|
+
"comment": "update styles to not use CSS shorthands"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "behowell@microsoft.com",
|
48
|
+
"package": "@fluentui/react-tooltip",
|
49
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
50
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "behowell@microsoft.com",
|
54
|
+
"package": "@fluentui/react-tooltip",
|
55
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
56
|
+
"comment": "Remove component's shorthandProps array"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
60
|
+
"package": "@fluentui/react-tooltip",
|
61
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
62
|
+
"comment": "Updating based on changes to composition types."
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"author": "behowell@microsoft.com",
|
66
|
+
"package": "@fluentui/react-tooltip",
|
67
|
+
"commit": "97c3818f7faf8733a0cfc9c91f5e94ddb8652d3a",
|
68
|
+
"comment": "Update documentation stories"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"author": "olfedias@microsoft.com",
|
72
|
+
"package": "@fluentui/react-tooltip",
|
73
|
+
"commit": "aa6cfd8ac825b5a280206808101de549a91094fc",
|
74
|
+
"comment": "update types related to trigger (allow only React.ReactElement & null)"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"author": "behowell@microsoft.com",
|
78
|
+
"package": "@fluentui/react-tooltip",
|
79
|
+
"commit": "09804275c7f346db54c33d4ff347bffc33676014",
|
80
|
+
"comment": "Fix tooltip arrow rendering, and add high contrast border around Tooltip"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"author": "behowell@microsoft.com",
|
84
|
+
"package": "@fluentui/react-tooltip",
|
85
|
+
"commit": "1513362b9adaae5d7dbda6b364e40e736710a79f",
|
86
|
+
"comment": "Remove Tooltip's inverted prop in favor of the appearance prop"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"author": "olfedias@microsoft.com",
|
90
|
+
"package": "@fluentui/react-tooltip",
|
91
|
+
"commit": "02e6236e4db8e1b591223475896537e905bf3580",
|
92
|
+
"comment": "BREAKING: implement `content` slot"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"author": "olfedias@microsoft.com",
|
96
|
+
"package": "@fluentui/react-tooltip",
|
97
|
+
"commit": "17c0b18d7983d414095661bf9f57e14c0c22685d",
|
98
|
+
"comment": "Replace make-styles packages with griffel equivalents."
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"author": "behowell@microsoft.com",
|
102
|
+
"package": "@fluentui/react-tooltip",
|
103
|
+
"commit": "58ae40d6817b1fa4e095a94707dfef5050aa4c11",
|
104
|
+
"comment": "Replace `triggerAriaAttribute` prop with `relationship` and make it required with no default"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"author": "behowell@microsoft.com",
|
108
|
+
"package": "@fluentui/react-tooltip",
|
109
|
+
"commit": "f30e7585a8d2abd9db06c4076f39a779008b0eca",
|
110
|
+
"comment": "Update MenuTrigger and Tooltip to work together"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"author": "beachball",
|
114
|
+
"package": "@fluentui/react-tooltip",
|
115
|
+
"comment": "Bump @fluentui/react-portal to v0.0.0-nightly3082edf34720220208.1",
|
116
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"author": "beachball",
|
120
|
+
"package": "@fluentui/react-tooltip",
|
121
|
+
"comment": "Bump @fluentui/react-positioning to v0.0.0-nightly3082edf34720220208.1",
|
122
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"author": "beachball",
|
126
|
+
"package": "@fluentui/react-tooltip",
|
127
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly3082edf34720220208.1",
|
128
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"author": "beachball",
|
132
|
+
"package": "@fluentui/react-tooltip",
|
133
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly3082edf34720220208.1",
|
134
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"author": "beachball",
|
138
|
+
"package": "@fluentui/react-tooltip",
|
139
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly3082edf34720220208.1",
|
140
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"author": "beachball",
|
144
|
+
"package": "@fluentui/react-tooltip",
|
145
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly3082edf34720220208.1",
|
146
|
+
"commit": "2995e3262243608331236b8d12b1652c84d313bc"
|
147
|
+
}
|
148
|
+
],
|
149
|
+
"none": [
|
150
|
+
{
|
151
|
+
"author": "martinhochel@microsoft.com",
|
152
|
+
"package": "@fluentui/react-tooltip",
|
153
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
154
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"author": "andredias@microsoft.com",
|
158
|
+
"package": "@fluentui/react-tooltip",
|
159
|
+
"commit": "b59f44ed5db37b457476fdb3ec86ff273b776646",
|
160
|
+
"comment": "Migrate package to use solution tsconfigs"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"author": "olfedias@microsoft.com",
|
164
|
+
"package": "@fluentui/react-tooltip",
|
165
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
166
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"author": "elcraig@microsoft.com",
|
170
|
+
"package": "@fluentui/react-tooltip",
|
171
|
+
"commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
|
172
|
+
"comment": "Remove outdated boilerplate comment in useTooltip"
|
173
|
+
}
|
174
|
+
]
|
175
|
+
}
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"date": "Thu, 25 Nov 2021 08:34:17 GMT",
|
179
|
+
"tag": "@fluentui/react-tooltip_v9.0.0-beta.5",
|
180
|
+
"version": "9.0.0-beta.5",
|
181
|
+
"comments": {
|
182
|
+
"prerelease": [
|
183
|
+
{
|
184
|
+
"author": "lingfangao@hotmail.com",
|
185
|
+
"package": "@fluentui/react-tooltip",
|
186
|
+
"commit": "58db204f28af1d68df7260ff580cf91f0adcfb66",
|
187
|
+
"comment": "Add transparent outline to arrow for HC"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"author": "beachball",
|
191
|
+
"package": "@fluentui/react-tooltip",
|
192
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
193
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"author": "beachball",
|
197
|
+
"package": "@fluentui/react-tooltip",
|
198
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.5",
|
199
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"author": "beachball",
|
203
|
+
"package": "@fluentui/react-tooltip",
|
204
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.4",
|
205
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"author": "beachball",
|
209
|
+
"package": "@fluentui/react-tooltip",
|
210
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
211
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"author": "beachball",
|
215
|
+
"package": "@fluentui/react-tooltip",
|
216
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
217
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"author": "beachball",
|
221
|
+
"package": "@fluentui/react-tooltip",
|
222
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
223
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"author": "beachball",
|
227
|
+
"package": "@fluentui/react-tooltip",
|
228
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
229
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"author": "beachball",
|
233
|
+
"package": "@fluentui/react-tooltip",
|
234
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
235
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"author": "beachball",
|
239
|
+
"package": "@fluentui/react-tooltip",
|
240
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
241
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
242
|
+
}
|
243
|
+
]
|
244
|
+
}
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"date": "Fri, 12 Nov 2021 13:25:09 GMT",
|
248
|
+
"tag": "@fluentui/react-tooltip_v9.0.0-beta.4",
|
249
|
+
"version": "9.0.0-beta.4",
|
250
|
+
"comments": {
|
251
|
+
"none": [
|
252
|
+
{
|
253
|
+
"author": "lingfangao@hotmail.com",
|
254
|
+
"package": "@fluentui/react-tooltip",
|
255
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
256
|
+
"comment": "Remove beta release tag"
|
257
|
+
}
|
258
|
+
],
|
259
|
+
"prerelease": [
|
16
260
|
{
|
17
261
|
"author": "gcox@microsoft.com",
|
18
262
|
"package": "@fluentui/react-tooltip",
|
19
263
|
"commit": "d5810cfc819dcb2126ffaa081bf117fcae83dc73",
|
20
264
|
"comment": "Updated stories to support codesandbox"
|
21
265
|
},
|
266
|
+
{
|
267
|
+
"author": "olfedias@microsoft.com",
|
268
|
+
"package": "@fluentui/react-tooltip",
|
269
|
+
"commit": "f078af73d95d0f2c380144a40127bd08e389aa2d",
|
270
|
+
"comment": "export static classes for components"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"author": "gcox@microsoft.com",
|
274
|
+
"package": "@fluentui/react-tooltip",
|
275
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
276
|
+
"comment": "Updated beta and RC components to ES2019"
|
277
|
+
},
|
22
278
|
{
|
23
279
|
"author": "beachball",
|
24
280
|
"package": "@fluentui/react-tooltip",
|
25
|
-
"comment": "Bump @fluentui/react-make-styles to
|
26
|
-
"commit": "
|
281
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
282
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
27
283
|
},
|
28
284
|
{
|
29
285
|
"author": "beachball",
|
30
286
|
"package": "@fluentui/react-tooltip",
|
31
|
-
"comment": "Bump @fluentui/react-portal to
|
32
|
-
"commit": "
|
287
|
+
"comment": "Bump @fluentui/react-portal to v9.0.0-beta.4",
|
288
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
33
289
|
},
|
34
290
|
{
|
35
291
|
"author": "beachball",
|
36
292
|
"package": "@fluentui/react-tooltip",
|
37
|
-
"comment": "Bump @fluentui/react-positioning to
|
38
|
-
"commit": "
|
293
|
+
"comment": "Bump @fluentui/react-positioning to v9.0.0-beta.3",
|
294
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
39
295
|
},
|
40
296
|
{
|
41
297
|
"author": "beachball",
|
42
298
|
"package": "@fluentui/react-tooltip",
|
43
|
-
"comment": "Bump @fluentui/react-shared-contexts to
|
44
|
-
"commit": "
|
299
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
300
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
45
301
|
},
|
46
302
|
{
|
47
303
|
"author": "beachball",
|
48
304
|
"package": "@fluentui/react-tooltip",
|
49
|
-
"comment": "Bump @fluentui/react-theme to
|
50
|
-
"commit": "
|
305
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
|
306
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
51
307
|
},
|
52
308
|
{
|
53
309
|
"author": "beachball",
|
54
310
|
"package": "@fluentui/react-tooltip",
|
55
|
-
"comment": "Bump @fluentui/react-utilities to
|
56
|
-
"commit": "
|
311
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
312
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
57
313
|
},
|
58
314
|
{
|
59
315
|
"author": "beachball",
|
60
316
|
"package": "@fluentui/react-tooltip",
|
61
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
62
|
-
"commit": "
|
317
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
318
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
63
319
|
},
|
64
320
|
{
|
65
321
|
"author": "beachball",
|
66
322
|
"package": "@fluentui/react-tooltip",
|
67
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
68
|
-
"commit": "
|
323
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
324
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
69
325
|
},
|
70
326
|
{
|
71
327
|
"author": "beachball",
|
72
328
|
"package": "@fluentui/react-tooltip",
|
73
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
74
|
-
"commit": "
|
329
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
330
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
75
331
|
}
|
76
332
|
]
|
77
333
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,27 +1,77 @@
|
|
1
1
|
# Change Log - @fluentui/react-tooltip
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 08 Feb 2022 04:14:28 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightly3082edf34720220208.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightly3082edf34720220208.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.
|
9
|
+
Tue, 08 Feb 2022 04:14:28 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v0.0.0-nightly3082edf34720220208.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by email not defined)
|
15
|
+
- Move arrowHeight and tooltipBorderRadius into a shared constants.ts file ([PR #21204](https://github.com/microsoft/fluentui/pull/21204) by behowell@microsoft.com)
|
16
|
+
- 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)
|
17
|
+
- 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)
|
18
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
19
|
+
- update styles to not use CSS shorthands ([PR #20795](https://github.com/microsoft/fluentui/pull/20795) by olfedias@microsoft.com)
|
20
|
+
- 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)
|
21
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
22
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
23
|
+
- Update documentation stories ([PR #21298](https://github.com/microsoft/fluentui/pull/21298) by behowell@microsoft.com)
|
24
|
+
- update types related to trigger (allow only React.ReactElement & null) ([PR #21609](https://github.com/microsoft/fluentui/pull/21609) by olfedias@microsoft.com)
|
25
|
+
- Fix tooltip arrow rendering, and add high contrast border around Tooltip ([PR #21086](https://github.com/microsoft/fluentui/pull/21086) by behowell@microsoft.com)
|
26
|
+
- Remove Tooltip's inverted prop in favor of the appearance prop ([PR #21327](https://github.com/microsoft/fluentui/pull/21327) by behowell@microsoft.com)
|
27
|
+
- BREAKING: implement `content` slot ([PR #21470](https://github.com/microsoft/fluentui/pull/21470) by olfedias@microsoft.com)
|
28
|
+
- Replace make-styles packages with griffel equivalents. ([PR #21422](https://github.com/microsoft/fluentui/pull/21422) by olfedias@microsoft.com)
|
29
|
+
- 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)
|
30
|
+
- Update MenuTrigger and Tooltip to work together ([PR #21495](https://github.com/microsoft/fluentui/pull/21495) by behowell@microsoft.com)
|
31
|
+
- Bump @fluentui/react-portal to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
|
32
|
+
- Bump @fluentui/react-positioning to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
|
33
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
|
34
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
|
35
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
|
36
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
|
37
|
+
|
38
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-beta.5)
|
39
|
+
|
40
|
+
Thu, 25 Nov 2021 08:34:17 GMT
|
41
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.4..@fluentui/react-tooltip_v9.0.0-beta.5)
|
42
|
+
|
43
|
+
### Changes
|
44
|
+
|
45
|
+
- Add transparent outline to arrow for HC ([PR #20541](https://github.com/microsoft/fluentui/pull/20541) by lingfangao@hotmail.com)
|
46
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
47
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
48
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
49
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
50
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
51
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
52
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
53
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
54
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
55
|
+
|
56
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-beta.4)
|
57
|
+
|
58
|
+
Fri, 12 Nov 2021 13:25:09 GMT
|
59
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.3..@fluentui/react-tooltip_v9.0.0-beta.4)
|
11
60
|
|
12
61
|
### Changes
|
13
62
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/3535f78f7af73f13f2c1e7470293fb5e592866de) by email not defined)
|
15
63
|
- Updated stories to support codesandbox ([PR #20373](https://github.com/microsoft/fluentui/pull/20373) by gcox@microsoft.com)
|
16
|
-
-
|
17
|
-
-
|
18
|
-
- Bump @fluentui/react-
|
19
|
-
- Bump @fluentui/react-
|
20
|
-
- Bump @fluentui/react-
|
21
|
-
- Bump @fluentui/react-
|
22
|
-
- Bump @fluentui/
|
23
|
-
- Bump @fluentui/
|
24
|
-
- Bump @fluentui/
|
64
|
+
- export static classes for components ([PR #20455](https://github.com/microsoft/fluentui/pull/20455) by olfedias@microsoft.com)
|
65
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
66
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
67
|
+
- Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
68
|
+
- Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
69
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
70
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
71
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
72
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
73
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
74
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
25
75
|
|
26
76
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-beta.3)
|
27
77
|
|
package/dist/react-tooltip.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
2
2
|
import type { ComponentState } from '@fluentui/react-utilities';
|
3
|
-
import type {
|
4
|
-
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
3
|
+
import type { FluentTriggerComponent } from '@fluentui/react-utilities';
|
5
4
|
import type { PositioningShorthand } from '@fluentui/react-positioning';
|
6
5
|
import * as React_2 from 'react';
|
6
|
+
import type { Slot } from '@fluentui/react-utilities';
|
7
7
|
|
8
8
|
/**
|
9
9
|
* Data for the Tooltip's onVisibleChange event.
|
@@ -15,32 +15,27 @@ export declare type OnVisibleChangeData = {
|
|
15
15
|
/**
|
16
16
|
* Render the final JSX of Tooltip
|
17
17
|
*/
|
18
|
-
export declare const
|
18
|
+
export declare const renderTooltip_unstable: (state: TooltipState) => JSX.Element;
|
19
19
|
|
20
20
|
/**
|
21
21
|
* A tooltip provides light weight contextual information on top of its target element.
|
22
22
|
*/
|
23
|
-
export declare const Tooltip:
|
23
|
+
export declare const Tooltip: React_2.FC<TooltipProps> & FluentTriggerComponent;
|
24
|
+
|
25
|
+
export declare const tooltipClassName = "fui-Tooltip";
|
24
26
|
|
25
27
|
/**
|
26
28
|
* Properties and state for Tooltip
|
27
29
|
*/
|
28
30
|
export declare type TooltipCommons = {
|
29
31
|
/**
|
30
|
-
*
|
31
|
-
*
|
32
|
-
|
33
|
-
appearance?: 'inverted';
|
34
|
-
/**
|
35
|
-
* The content displayed inside the tooltip.
|
36
|
-
*/
|
37
|
-
content: React_2.ReactNode;
|
38
|
-
/**
|
39
|
-
* Color variant with inverted colors
|
32
|
+
* The tooltip's visual appearance.
|
33
|
+
* * `normal` - Uses the theme's background and text colors.
|
34
|
+
* * `inverted` - Higher contrast variant that uses the theme's inverted colors.
|
40
35
|
*
|
41
|
-
* @defaultvalue
|
36
|
+
* @defaultvalue normal
|
42
37
|
*/
|
43
|
-
|
38
|
+
appearance?: 'normal' | 'inverted';
|
44
39
|
/**
|
45
40
|
* Render an arrow pointing to the target element
|
46
41
|
*
|
@@ -67,15 +62,15 @@ export declare type TooltipCommons = {
|
|
67
62
|
*/
|
68
63
|
onVisibleChange?: (event: React_2.PointerEvent<HTMLElement> | React_2.FocusEvent<HTMLElement> | undefined, data: OnVisibleChangeData) => void;
|
69
64
|
/**
|
70
|
-
* Specifies
|
71
|
-
* * `label` - Set aria-label to the tooltip's content. Requires content to be a string; if not, uses `labelledby`.
|
72
|
-
* * `labelledby` - Set aria-labelledby to the tooltip's id. The id is generated if not provided.
|
73
|
-
* * `describedby` - Set aria-describedby to the tooltip's id. The id is generated if not provided.
|
74
|
-
* * null - Do not set any aria attributes on the trigger element.
|
65
|
+
* (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.
|
75
66
|
*
|
76
|
-
*
|
67
|
+
* * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons
|
68
|
+
* displaying only an icon, for example.
|
69
|
+
* * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.
|
70
|
+
* * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to
|
71
|
+
* screen readers, and should only be used if the tooltip's text is available by some other means.
|
77
72
|
*/
|
78
|
-
|
73
|
+
relationship: 'label' | 'description' | 'inaccessible';
|
79
74
|
/**
|
80
75
|
* Delay before the tooltip is shown, in milliseconds.
|
81
76
|
*
|
@@ -93,36 +88,26 @@ export declare type TooltipCommons = {
|
|
93
88
|
/**
|
94
89
|
* Properties for Tooltip
|
95
90
|
*/
|
96
|
-
export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, '
|
91
|
+
export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, 'relationship'>> & Pick<TooltipCommons, 'relationship'> & {
|
92
|
+
children?: (React_2.ReactElement & {
|
93
|
+
ref?: React_2.Ref<unknown>;
|
94
|
+
}) | ((props: TooltipTriggerProps) => React_2.ReactElement | null) | null;
|
95
|
+
};
|
97
96
|
|
98
97
|
/**
|
99
98
|
* Slot properties for Tooltip
|
100
99
|
*/
|
101
100
|
export declare type TooltipSlots = {
|
102
|
-
|
103
|
-
/**
|
104
|
-
* The child is the element that triggers the Tooltip. It will have additional properties added,
|
105
|
-
* including events and aria properties.
|
106
|
-
* Alternatively, children can be a render function that takes the props and adds
|
107
|
-
* them to the appropriate elements.
|
108
|
-
*/
|
109
|
-
children?: (React_2.ReactElement<React_2.HTMLAttributes<HTMLElement>> & {
|
110
|
-
ref?: React_2.Ref<unknown>;
|
111
|
-
}) | ((props: TooltipTriggerProps) => React_2.ReactNode) | null;
|
112
|
-
};
|
101
|
+
content: NonNullable<Slot<'div'>>;
|
113
102
|
};
|
114
103
|
|
115
104
|
/**
|
116
105
|
* State used in rendering Tooltip
|
117
106
|
*/
|
118
107
|
export declare type TooltipState = ComponentState<TooltipSlots> & TooltipCommons & {
|
108
|
+
children?: React_2.ReactElement | null;
|
119
109
|
/**
|
120
110
|
* Whether the tooltip should be rendered to the DOM.
|
121
|
-
*
|
122
|
-
* Normally the tooltip will only be rendered when visible. However, if
|
123
|
-
* triggerAriaAttribute is labelledby or describedby, the tooltip will
|
124
|
-
* always be rendered even when hidden so that those aria attributes
|
125
|
-
* to always refer to a valid DOM element.
|
126
111
|
*/
|
127
112
|
shouldRenderTooltip?: boolean;
|
128
113
|
/**
|
@@ -145,18 +130,16 @@ export declare type TooltipTriggerProps = {
|
|
145
130
|
/**
|
146
131
|
* Create the state required to render Tooltip.
|
147
132
|
*
|
148
|
-
* The returned state can be modified with hooks such as
|
149
|
-
* before being passed to
|
133
|
+
* The returned state can be modified with hooks such as useTooltipStyles_unstable,
|
134
|
+
* before being passed to renderTooltip_unstable.
|
150
135
|
*
|
151
136
|
* @param props - props from this instance of Tooltip
|
152
|
-
* @param ref - reference to root HTMLElement of Tooltip
|
153
|
-
* @param defaultProps - (optional) default prop values provided by the implementing type
|
154
137
|
*/
|
155
|
-
export declare const
|
138
|
+
export declare const useTooltip_unstable: (props: TooltipProps) => TooltipState;
|
156
139
|
|
157
140
|
/**
|
158
141
|
* Apply styling to the Tooltip slots based on the state
|
159
142
|
*/
|
160
|
-
export declare const
|
143
|
+
export declare const useTooltipStyles_unstable: (state: TooltipState) => TooltipState;
|
161
144
|
|
162
145
|
export { }
|
@@ -1,6 +1,7 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import type { TooltipProps } from './Tooltip.types';
|
2
|
-
import type {
|
3
|
+
import type { FluentTriggerComponent } from '@fluentui/react-utilities';
|
3
4
|
/**
|
4
5
|
* A tooltip provides light weight contextual information on top of its target element.
|
5
6
|
*/
|
6
|
-
export declare const Tooltip:
|
7
|
+
export declare const Tooltip: React.FC<TooltipProps> & FluentTriggerComponent;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { useTooltipStyles } from './useTooltipStyles';
|
1
|
+
import { useTooltip_unstable } from './useTooltip';
|
2
|
+
import { renderTooltip_unstable } from './renderTooltip';
|
3
|
+
import { useTooltipStyles_unstable } from './useTooltipStyles';
|
5
4
|
/**
|
6
5
|
* A tooltip provides light weight contextual information on top of its target element.
|
7
6
|
*/
|
8
7
|
|
9
|
-
export
|
10
|
-
|
11
|
-
|
12
|
-
return
|
13
|
-
}
|
8
|
+
export const Tooltip = props => {
|
9
|
+
const state = useTooltip_unstable(props);
|
10
|
+
useTooltipStyles_unstable(state);
|
11
|
+
return renderTooltip_unstable(state);
|
12
|
+
};
|
14
13
|
Tooltip.displayName = 'Tooltip';
|
14
|
+
Tooltip.isFluentTriggerComponent = true;
|
15
15
|
//# sourceMappingURL=Tooltip.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/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","sourceRoot":""}
|