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