@clayui/tooltip 3.107.0 → 3.108.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,409 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [3.108.0](https://github.com/liferay/clay/compare/v3.107.1...v3.108.0) (2023-12-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **@clayui/tooltip:** Fix close tooltip when pressing Escape key ([6f40c16](https://github.com/liferay/clay/commit/6f40c16ad2556a99c839822c1486a2e0b2ee710c))
11
+
12
+ # [3.107.0](https://github.com/liferay/clay/compare/v3.106.1...v3.107.0) (2023-11-27)
13
+
14
+ **Note:** Version bump only for package @clayui/tooltip
15
+
16
+ ## [3.106.1](https://github.com/liferay/clay/compare/v3.106.0...v3.106.1) (2023-10-26)
17
+
18
+ **Note:** Version bump only for package @clayui/tooltip
19
+
20
+ # [3.106.0](https://github.com/liferay/clay/compare/v3.105.0...v3.106.0) (2023-10-25)
21
+
22
+ ### Bug Fixes
23
+
24
+ - remove 'src' dir from being packaged with npm ([9383e8d](https://github.com/liferay/clay/commit/9383e8d8abb25ca3396e7c6e4dfa53bbc72691c5))
25
+ - use package's directory for baseDir when generating type ([0a5c710](https://github.com/liferay/clay/commit/0a5c710092f36243bc8d5487f70e831295715072))
26
+
27
+ # [3.104.0](https://github.com/liferay/clay/compare/v3.103.1...v3.104.0) (2023-08-25)
28
+
29
+ **Note:** Version bump only for package @clayui/tooltip
30
+
31
+ ## [3.103.1](https://github.com/liferay/clay/compare/v3.103.0...v3.103.1) (2023-08-15)
32
+
33
+ **Note:** Version bump only for package @clayui/tooltip
34
+
35
+ # [3.101.0](https://github.com/liferay/clay/compare/v3.100.0...v3.101.0) (2023-07-28)
36
+
37
+ **Note:** Version bump only for package @clayui/tooltip
38
+
39
+ # [3.100.0](https://github.com/liferay/clay/compare/v3.99.4...v3.100.0) (2023-07-13)
40
+
41
+ **Note:** Version bump only for package @clayui/tooltip
42
+
43
+ ## [3.99.1](https://github.com/liferay/clay/compare/v3.99.0...v3.99.1) (2023-07-04)
44
+
45
+ ### Bug Fixes
46
+
47
+ - **@clayui/tooltip:** fix error not showing tooltip on nested elements ([cf31736](https://github.com/liferay/clay/commit/cf31736b5515af8c2e906443c86c6cdd4c11631d))
48
+
49
+ # [3.96.0](https://github.com/liferay/clay/compare/v3.95.2...v3.96.0) (2023-05-29)
50
+
51
+ **Note:** Version bump only for package @clayui/tooltip
52
+
53
+ ## [3.95.2](https://github.com/liferay/clay/compare/v3.95.0...v3.95.2) (2023-05-17)
54
+
55
+ **Note:** Version bump only for package @clayui/tooltip
56
+
57
+ # [3.95.0](https://github.com/liferay/clay/compare/v3.94.0...v3.95.0) (2023-05-15)
58
+
59
+ **Note:** Version bump only for package @clayui/tooltip
60
+
61
+ # [3.94.0](https://github.com/liferay/clay/compare/v3.93.0...v3.94.0) (2023-05-03)
62
+
63
+ **Note:** Version bump only for package @clayui/tooltip
64
+
65
+ # [3.93.0](https://github.com/liferay/clay/compare/v3.92.0...v3.93.0) (2023-04-19)
66
+
67
+ **Note:** Version bump only for package @clayui/tooltip
68
+
69
+ # [3.92.0](https://github.com/liferay/clay/compare/v3.91.0...v3.92.0) (2023-04-06)
70
+
71
+ **Note:** Version bump only for package @clayui/tooltip
72
+
73
+ # [3.89.0](https://github.com/liferay/clay/compare/v3.88.0...v3.89.0) (2023-03-01)
74
+
75
+ **Note:** Version bump only for package @clayui/tooltip
76
+
77
+ # [3.88.0](https://github.com/liferay/clay/compare/v3.87.2...v3.88.0) (2023-02-14)
78
+
79
+ **Note:** Version bump only for package @clayui/tooltip
80
+
81
+ # [3.87.0](https://github.com/liferay/clay/compare/v3.86.1...v3.87.0) (2023-02-08)
82
+
83
+ **Note:** Version bump only for package @clayui/tooltip
84
+
85
+ ## [3.86.1](https://github.com/liferay/clay/compare/v3.86.0...v3.86.1) (2023-02-02)
86
+
87
+ **Note:** Version bump only for package @clayui/tooltip
88
+
89
+ # [3.86.0](https://github.com/liferay/clay/compare/v3.85.0...v3.86.0) (2023-01-31)
90
+
91
+ **Note:** Version bump only for package @clayui/tooltip
92
+
93
+ # [3.85.0](https://github.com/liferay/clay/compare/v3.84.0...v3.85.0) (2023-01-23)
94
+
95
+ **Note:** Version bump only for package @clayui/tooltip
96
+
97
+ ## [3.83.1](https://github.com/liferay/clay/compare/v3.83.0...v3.83.1) (2022-12-20)
98
+
99
+ **Note:** Version bump only for package @clayui/tooltip
100
+
101
+ # [3.83.0](https://github.com/liferay/clay/compare/v3.82.0...v3.83.0) (2022-12-20)
102
+
103
+ **Note:** Version bump only for package @clayui/tooltip
104
+
105
+ # [3.82.0](https://github.com/liferay/clay/compare/v3.81.0...v3.82.0) (2022-12-07)
106
+
107
+ **Note:** Version bump only for package @clayui/tooltip
108
+
109
+ # [3.81.0](https://github.com/liferay/clay/compare/v3.80.1...v3.81.0) (2022-11-30)
110
+
111
+ **Note:** Version bump only for package @clayui/tooltip
112
+
113
+ ## [3.80.1](https://github.com/liferay/clay/compare/v3.80.0...v3.80.1) (2022-11-22)
114
+
115
+ **Note:** Version bump only for package @clayui/tooltip
116
+
117
+ # [3.80.0](https://github.com/liferay/clay/compare/v3.79.0...v3.80.0) (2022-11-21)
118
+
119
+ ### Bug Fixes
120
+
121
+ - **@clayui/tooltip:** persist the title attribute when navigate via keyboard ([44fe7c4](https://github.com/liferay/clay/commit/44fe7c4113a0889a109f3d71435800468b9ab94a))
122
+
123
+ # [3.79.0](https://github.com/liferay/clay/compare/v3.78.2...v3.79.0) (2022-11-08)
124
+
125
+ ### Bug Fixes
126
+
127
+ - **@clayui/tooltip:** fixes error when not aligning the tooltip with focus in sequence of elements ([0d3e415](https://github.com/liferay/clay/commit/0d3e415746f33e62b7eb68e798c19c3ce5173b23))
128
+
129
+ ## [3.78.2](https://github.com/liferay/clay/compare/v3.78.1...v3.78.2) (2022-10-25)
130
+
131
+ **Note:** Version bump only for package @clayui/tooltip
132
+
133
+ ## [3.78.1](https://github.com/liferay/clay/compare/v3.78.0...v3.78.1) (2022-10-25)
134
+
135
+ **Note:** Version bump only for package @clayui/tooltip
136
+
137
+ # [3.78.0](https://github.com/liferay/clay/compare/v3.77.0...v3.78.0) (2022-10-25)
138
+
139
+ **Note:** Version bump only for package @clayui/tooltip
140
+
141
+ # [3.77.0](https://github.com/liferay/clay/compare/v3.76.0...v3.77.0) (2022-10-17)
142
+
143
+ **Note:** Version bump only for package @clayui/tooltip
144
+
145
+ ## [3.75.2](https://github.com/liferay/clay/compare/v3.75.1...v3.75.2) (2022-09-29)
146
+
147
+ **Note:** Version bump only for package @clayui/tooltip
148
+
149
+ # [3.75.0](https://github.com/liferay/clay/compare/v3.74.0...v3.75.0) (2022-09-28)
150
+
151
+ **Note:** Version bump only for package @clayui/tooltip
152
+
153
+ # [3.73.0](https://github.com/liferay/clay/compare/v3.72.0...v3.73.0) (2022-09-13)
154
+
155
+ **Note:** Version bump only for package @clayui/tooltip
156
+
157
+ # [3.71.0](https://github.com/liferay/clay/compare/v3.70.3...v3.71.0) (2022-08-30)
158
+
159
+ **Note:** Version bump only for package @clayui/tooltip
160
+
161
+ ## [3.70.3](https://github.com/liferay/clay/compare/v3.70.2...v3.70.3) (2022-08-30)
162
+
163
+ **Note:** Version bump only for package @clayui/tooltip
164
+
165
+ ## [3.70.2](https://github.com/liferay/clay/compare/v3.70.1...v3.70.2) (2022-08-30)
166
+
167
+ **Note:** Version bump only for package @clayui/tooltip
168
+
169
+ # [3.70.0](https://github.com/liferay/clay/compare/v3.69.0...v3.70.0) (2022-08-23)
170
+
171
+ **Note:** Version bump only for package @clayui/tooltip
172
+
173
+ # [3.69.0](https://github.com/liferay/clay/compare/v3.68.0...v3.69.0) (2022-08-16)
174
+
175
+ ### Bug Fixes
176
+
177
+ - **@clayui/tooltip): Revert "fix(@clayui/tooltip:** adds the option to disappear the floating tooltip after a while" ([43b64b9](https://github.com/liferay/clay/commit/43b64b9e0ca7b503b022f69f2aa710dd51770114))
178
+ - **@clayui/tooltip:** adds the option to disappear the floating tooltip after a while ([7438e62](https://github.com/liferay/clay/commit/7438e62797131336b6547ffd986ff977c7a59d0d))
179
+ - **@clayui/tooltip:** remove the behavior of moving the tooltip when the mouse moves ([51585ff](https://github.com/liferay/clay/commit/51585ffb16fe0dea68086ed9c320db381d788215))
180
+
181
+ # [3.67.0](https://github.com/liferay/clay/compare/v3.66.0...v3.67.0) (2022-07-25)
182
+
183
+ ### Features
184
+
185
+ - **@clayui/tooltip:** adds new properties to configure the tooltip to be floating ([c598ca3](https://github.com/liferay/clay/commit/c598ca335b96cafe01848fabdf020135126c9ff9))
186
+
187
+ # [3.65.0](https://github.com/liferay/clay/compare/v3.64.0...v3.65.0) (2022-07-11)
188
+
189
+ ### Bug Fixes
190
+
191
+ - **@clayui/tooltip:** adds the possibility to hover over the tooltip ([8b9b256](https://github.com/liferay/clay/commit/8b9b256db39be0a8f7708648946cec6faeb92bb1))
192
+
193
+ # [3.58.0](https://github.com/liferay/clay/compare/v3.57.0...v3.58.0) (2022-05-23)
194
+
195
+ **Note:** Version bump only for package @clayui/tooltip
196
+
197
+ # [3.56.0](https://github.com/liferay/clay/compare/v3.55.0...v3.56.0) (2022-05-09)
198
+
199
+ ### Bug Fixes
200
+
201
+ - **@clayui/tooltip:** cancel scheduled tooltip before scheduling new one ([62551b8](https://github.com/liferay/clay/commit/62551b87af77d6b15d95d80c47525c1071237605))
202
+
203
+ # [3.55.0](https://github.com/liferay/clay/compare/v3.54.0...v3.55.0) (2022-05-02)
204
+
205
+ **Note:** Version bump only for package @clayui/tooltip
206
+
207
+ # [3.52.0](https://github.com/liferay/clay/compare/v3.51.0...v3.52.0) (2022-04-04)
208
+
209
+ **Note:** Version bump only for package @clayui/tooltip
210
+
211
+ # [3.49.0](https://github.com/liferay/clay/compare/v3.48.0...v3.49.0) (2022-03-15)
212
+
213
+ **Note:** Version bump only for package @clayui/tooltip
214
+
215
+ # [3.47.0](https://github.com/liferay/clay/compare/v3.46.0...v3.47.0) (2022-02-23)
216
+
217
+ **Note:** Version bump only for package @clayui/tooltip
218
+
219
+ # [3.45.0](https://github.com/liferay/clay/compare/v3.44.2...v3.45.0) (2022-02-01)
220
+
221
+ **Note:** Version bump only for package @clayui/tooltip
222
+
223
+ # [3.40.0](https://github.com/liferay/clay/compare/v3.39.0...v3.40.0) (2021-11-17)
224
+
225
+ **Note:** Version bump only for package @clayui/tooltip
226
+
227
+ # [3.39.0](https://github.com/liferay/clay/compare/v3.38.0...v3.39.0) (2021-10-29)
228
+
229
+ **Note:** Version bump only for package @clayui/tooltip
230
+
231
+ # [3.38.0](https://github.com/liferay/clay/compare/v3.37.0...v3.38.0) (2021-10-22)
232
+
233
+ **Note:** Version bump only for package @clayui/tooltip
234
+
235
+ # [3.37.0](https://github.com/liferay/clay/compare/v3.36.0...v3.37.0) (2021-10-06)
236
+
237
+ **Note:** Version bump only for package @clayui/tooltip
238
+
239
+ # [3.36.0](https://github.com/liferay/clay/compare/v3.35.3...v3.36.0) (2021-09-23)
240
+
241
+ ### Bug Fixes
242
+
243
+ - **@clayui/tooltip:** forces tooltip to be repositioned when the x-axis is modified ([b62313c](https://github.com/liferay/clay/commit/b62313c))
244
+ - **@clayui/tooltip:** stop the always showing warnings ([3858bfe](https://github.com/liferay/clay/commit/3858bfe))
245
+ - **@clyaui/tooltip:** fixes error when not forcing Tooltip repositioning when X axis is modified ([187f1ef](https://github.com/liferay/clay/commit/187f1ef))
246
+
247
+ ## [3.35.3](https://github.com/liferay/clay/compare/v3.35.2...v3.35.3) (2021-09-09)
248
+
249
+ **Note:** Version bump only for package @clayui/tooltip
250
+
251
+ ## [3.35.2](https://github.com/liferay/clay/compare/v3.35.1...v3.35.2) (2021-08-30)
252
+
253
+ **Note:** Version bump only for package @clayui/tooltip
254
+
255
+ ## [3.35.1](https://github.com/liferay/clay/compare/v3.35.0...v3.35.1) (2021-08-30)
256
+
257
+ **Note:** Version bump only for package @clayui/tooltip
258
+
259
+ # [3.35.0](https://github.com/liferay/clay/compare/v3.34.0...v3.35.0) (2021-08-30)
260
+
261
+ ### Features
262
+
263
+ - **@clayui/tooltip:** replaces direct use of dom-align with doAlign with RTL support ([2afa54c](https://github.com/liferay/clay/commit/2afa54c))
264
+
265
+ # [3.32.0](https://github.com/liferay/clay/compare/v3.31.0...v3.32.0) (2021-07-28)
266
+
267
+ ### Bug Fixes
268
+
269
+ - **@clayui/tooltip:** Hide tooltip on `dragstart` ([70d78da](https://github.com/liferay/clay/commit/70d78da))
270
+
271
+ # [3.29.0](https://github.com/liferay/clay/compare/v3.28.0...v3.29.0) (2021-05-28)
272
+
273
+ **Note:** Version bump only for package @clayui/tooltip
274
+
275
+ # [3.28.0](https://github.com/liferay/clay/compare/v3.27.0...v3.28.0) (2021-05-19)
276
+
277
+ ### Features
278
+
279
+ - **@clayui/tooltip:** Add the new ContainerProps API ([728600c](https://github.com/liferay/clay/commit/728600c))
280
+ - **@clayui/tooltip:** update logic to handle scoping and a global listener ([1c83d30](https://github.com/liferay/clay/commit/1c83d30))
281
+
282
+ # [3.27.0](https://github.com/liferay/clay/compare/v3.26.0...v3.27.0) (2021-05-05)
283
+
284
+ **Note:** Version bump only for package @clayui/tooltip
285
+
286
+ ## [3.4.5](https://github.com/liferay/clay/compare/@clayui/tooltip@3.4.4...@clayui/tooltip@3.4.5) (2021-02-11)
287
+
288
+ **Note:** Version bump only for package @clayui/tooltip
289
+
290
+ ## [3.4.4](https://github.com/liferay/clay/compare/@clayui/tooltip@3.4.3...@clayui/tooltip@3.4.4) (2021-01-27)
291
+
292
+ **Note:** Version bump only for package @clayui/tooltip
293
+
294
+ ## [3.4.3](https://github.com/liferay/clay/compare/@clayui/tooltip@3.4.2...@clayui/tooltip@3.4.3) (2021-01-13)
295
+
296
+ **Note:** Version bump only for package @clayui/tooltip
297
+
298
+ ## [3.4.2](https://github.com/liferay/clay/compare/@clayui/tooltip@3.4.0...@clayui/tooltip@3.4.2) (2020-12-16)
299
+
300
+ **Note:** Version bump only for package @clayui/tooltip
301
+
302
+ ## [3.4.1](https://github.com/liferay/clay/compare/@clayui/tooltip@3.4.0...@clayui/tooltip@3.4.1) (2020-12-02)
303
+
304
+ **Note:** Version bump only for package @clayui/tooltip
305
+
306
+ # [3.4.0](https://github.com/liferay/clay/compare/@clayui/tooltip@3.3.5...@clayui/tooltip@3.4.0) (2020-10-01)
307
+
308
+ ### Features
309
+
310
+ - **clayui.com:** Move API tables to new files and update document tabs, rename files to use singular naming instead of plural, change mainTabURL of pagination-bar to a proper one ([d812ee9](https://github.com/liferay/clay/commit/d812ee9))
311
+ - add displayName for all components ([cc3211d](https://github.com/liferay/clay/commit/cc3211d))
312
+
313
+ ## [3.3.5](https://github.com/liferay/clay/compare/@clayui/tooltip@3.3.4...@clayui/tooltip@3.3.5) (2020-08-28)
314
+
315
+ **Note:** Version bump only for package @clayui/tooltip
316
+
317
+ ## [3.3.4](https://github.com/liferay/clay/compare/@clayui/tooltip@3.3.3...@clayui/tooltip@3.3.4) (2020-08-26)
318
+
319
+ **Note:** Version bump only for package @clayui/tooltip
320
+
321
+ ## [3.3.3](https://github.com/liferay/clay/compare/@clayui/tooltip@3.3.2...@clayui/tooltip@3.3.3) (2020-07-28)
322
+
323
+ ### Bug Fixes
324
+
325
+ - update packages to appropriate dependencies ([0026168](https://github.com/liferay/clay/commit/0026168))
326
+
327
+ ## [3.3.2](https://github.com/liferay/clay/compare/@clayui/tooltip@3.3.1...@clayui/tooltip@3.3.2) (2020-07-07)
328
+
329
+ **Note:** Version bump only for package @clayui/tooltip
330
+
331
+ ## [3.3.1](https://github.com/liferay/clay/compare/@clayui/tooltip@3.3.0...@clayui/tooltip@3.3.1) (2020-06-18)
332
+
333
+ **Note:** Version bump only for package @clayui/tooltip
334
+
335
+ # [3.3.0](https://github.com/liferay/clay/compare/@clayui/tooltip@3.2.3...@clayui/tooltip@3.3.0) (2020-05-21)
336
+
337
+ ### Features
338
+
339
+ - **clayui.com:** Improve component docs by updating content - Pagination, Popover, Progress Bar, Slider, Toggle & Tooltip ([01b555a](https://github.com/liferay/clay/commit/01b555a))
340
+ - **clayui.com:** Improve component docs by updating content - Typos, wording, and variable names ([f1d795c](https://github.com/liferay/clay/commit/f1d795c))
341
+
342
+ ## [3.2.3](https://github.com/liferay/clay/compare/@clayui/tooltip@3.2.2...@clayui/tooltip@3.2.3) (2020-04-24)
343
+
344
+ **Note:** Version bump only for package @clayui/tooltip
345
+
346
+ ## [3.2.2](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.2.1...@clayui/tooltip@3.2.2) (2020-03-13)
347
+
348
+ ### Bug Fixes
349
+
350
+ - **@clayui/tooltip:** remove polyfill in favor of ponyfill(ponyfill.com) ([3a149e0](https://github.com/liferay/clay/commit/3a149e0))
351
+
352
+ ## [3.2.1](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.2.0...@clayui/tooltip@3.2.1) (2020-03-12)
353
+
354
+ ### Bug Fixes
355
+
356
+ - **@clayui/tooltip:** add polyfill for element.matches ([a16ff00](https://github.com/liferay/clay/commit/a16ff00))
357
+
358
+ # 3.2.0 (2020-02-28)
359
+
360
+ ### Bug Fixes
361
+
362
+ - **css:** allow newline characters to display properly for tooltips ([2265d10](https://github.com/liferay/clay/commit/2265d10))
363
+ - **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
364
+ - **tooltip:** add missing dependency ([7203e50](https://github.com/liferay/clay/commit/7203e50))
365
+ - **tooltip:** find closest node with title attribute ([7dc7fb0](https://github.com/liferay/clay/commit/7dc7fb0))
366
+ - **tooltip+popover:** stories should be nested under Components ([f9799f9](https://github.com/liferay/clay/commit/f9799f9))
367
+
368
+ ### Features
369
+
370
+ - **tooltip:** allow custom renderer for TooltipProvider content ([bf64914](https://github.com/liferay/clay/commit/bf64914))
371
+ - **tooltip:** create Tooltip component ([cb41eef](https://github.com/liferay/clay/commit/cb41eef))
372
+
373
+ # [3.1.0](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.4...@clayui/tooltip@3.1.0) (2020-01-31)
374
+
375
+ ### Bug Fixes
376
+
377
+ - **css:** allow newline characters to display properly for tooltips ([2265d10](https://github.com/liferay/clay/commit/2265d10))
378
+ - **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
379
+
380
+ ### Features
381
+
382
+ - **tooltip:** allow custom renderer for TooltipProvider content ([bf64914](https://github.com/liferay/clay/commit/bf64914))
383
+
384
+ ## [3.0.6](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.4...@clayui/tooltip@3.0.6) (2020-01-20)
385
+
386
+ ### Bug Fixes
387
+
388
+ - **css:** allow newline characters to display properly for tooltips ([2265d10](https://github.com/liferay/clay/commit/2265d10))
389
+ - **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
390
+
391
+ ## [3.0.5](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.4...@clayui/tooltip@3.0.5) (2019-12-05)
392
+
393
+ ### Bug Fixes
394
+
395
+ - **drop-down:** use dom-align instead of metal-position ([335ff38](https://github.com/liferay/clay/commit/335ff38))
396
+
397
+ ## [3.0.4](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.3...@clayui/tooltip@3.0.4) (2019-11-07)
398
+
399
+ **Note:** Version bump only for package @clayui/tooltip
400
+
401
+ ## [3.0.3](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.2...@clayui/tooltip@3.0.3) (2019-11-01)
402
+
403
+ **Note:** Version bump only for package @clayui/tooltip
404
+
405
+ ## [3.0.2](https://github.com/liferay/clay/tree/master/packages/clay-tooltip/compare/@clayui/tooltip@3.0.1...@clayui/tooltip@3.0.2) (2019-10-28)
406
+
407
+ ### Bug Fixes
408
+
409
+ - **tooltip:** find closest node with title attribute ([7dc7fb0](https://github.com/liferay/clay/commit/7dc7fb0))
@@ -120,6 +120,12 @@ var TooltipProvider = function TooltipProvider(_ref2) {
120
120
  open = _useTooltipState.open;
121
121
 
122
122
  var _useClosestTitle = (0, _useClosestTitle2.useClosestTitle)({
123
+ forceHide: (0, _react.useCallback)(function () {
124
+ dispatch({
125
+ type: 'reset'
126
+ });
127
+ close();
128
+ }, []),
123
129
  onClick: (0, _react.useCallback)(function () {
124
130
  isFocused.current = false;
125
131
  isHovered.current = false;
@@ -134,6 +140,7 @@ var TooltipProvider = function TooltipProvider(_ref2) {
134
140
  }, []),
135
141
  tooltipRef: tooltipRef
136
142
  }),
143
+ forceHide = _useClosestTitle.forceHide,
137
144
  getProps = _useClosestTitle.getProps,
138
145
  onHide = _useClosestTitle.onHide,
139
146
  target = _useClosestTitle.target,
@@ -176,7 +183,7 @@ var TooltipProvider = function TooltipProvider(_ref2) {
176
183
  var handleEsc = function handleEsc(event) {
177
184
  if (isOpen && event.key === _shared.Keys.Esc) {
178
185
  event.stopImmediatePropagation();
179
- onHide();
186
+ forceHide();
180
187
  }
181
188
  };
182
189
 
@@ -4,11 +4,13 @@
4
4
  */
5
5
  import React from 'react';
6
6
  declare type Props = {
7
+ forceHide: () => void;
7
8
  onHide: () => void;
8
9
  onClick: () => void;
9
10
  tooltipRef: React.MutableRefObject<HTMLElement | null>;
10
11
  };
11
12
  export declare function useClosestTitle(props: Props): {
13
+ forceHide: () => void;
12
14
  getProps: (event: React.MouseEvent<HTMLElement, MouseEvent>, hideBrowserTitle: boolean) => {
13
15
  align: string | null;
14
16
  delay: string | null;
@@ -111,6 +111,19 @@ function useClosestTitle(props) {
111
111
  targetRef.current = null;
112
112
  }
113
113
  }, []);
114
+ var forceHide = (0, _react.useCallback)(function () {
115
+ props.forceHide();
116
+
117
+ if (titleNodeRef.current) {
118
+ restoreTitle(titleNodeRef.current);
119
+ titleNodeRef.current = null;
120
+ }
121
+
122
+ if (targetRef.current) {
123
+ targetRef.current.removeEventListener('click', onClick);
124
+ targetRef.current = null;
125
+ }
126
+ }, []);
114
127
  var getProps = (0, _react.useCallback)(function (event, hideBrowserTitle) {
115
128
  if (targetRef.current) {
116
129
  props.onClick();
@@ -145,6 +158,7 @@ function useClosestTitle(props) {
145
158
  }
146
159
  }, []);
147
160
  return {
161
+ forceHide: forceHide,
148
162
  getProps: getProps,
149
163
  onHide: onHide,
150
164
  target: targetRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clayui/tooltip",
3
- "version": "3.107.0",
3
+ "version": "3.108.0",
4
4
  "description": "ClayTooltip component",
5
5
  "license": "BSD-3-Clause",
6
6
  "repository": "https://github.com/liferay/clay",
@@ -38,5 +38,5 @@
38
38
  "browserslist": [
39
39
  "extends browserslist-config-clay"
40
40
  ],
41
- "gitHead": "4b538e1e0b456006e2472ae6b7ec1e6b4bb096cb"
41
+ "gitHead": "411bce66d4ea2f3cb1c62428d5347cb18219a051"
42
42
  }