@cloudflare/component-tooltip 2.7.98 → 2.7.102
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 +35 -0
- package/es/Tooltip.js +3 -1
- package/lib/Tooltip.js +7 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.7.102](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.101...@cloudflare/component-tooltip@2.7.102) (2021-11-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @cloudflare/component-tooltip
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.7.101](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.100...@cloudflare/component-tooltip@2.7.101) (2021-11-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **component-tooltip:** UI-4954 Fix text color ([d1c05e7](http://stash.cfops.it:7999/fe/stratus/commits/d1c05e7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [2.7.100](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.99...@cloudflare/component-tooltip@2.7.100) (2021-11-23)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @cloudflare/component-tooltip
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [2.7.99](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.98...@cloudflare/component-tooltip@2.7.99) (2021-11-22)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @cloudflare/component-tooltip
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [2.7.98](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.97...@cloudflare/component-tooltip@2.7.98) (2021-11-17)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @cloudflare/component-tooltip
|
package/es/Tooltip.js
CHANGED
|
@@ -125,6 +125,7 @@ class Tooltip extends React.PureComponent {
|
|
|
125
125
|
"data-for": id,
|
|
126
126
|
type: "button",
|
|
127
127
|
onBlur: () => ReactTooltip.hide(this.tooltipElement),
|
|
128
|
+
color: "gray.1",
|
|
128
129
|
style: {
|
|
129
130
|
cursor: 'pointer',
|
|
130
131
|
backgroundColor: 'transparent',
|
|
@@ -133,7 +134,8 @@ class Tooltip extends React.PureComponent {
|
|
|
133
134
|
onClick: e => {
|
|
134
135
|
e.stopPropagation();
|
|
135
136
|
},
|
|
136
|
-
|
|
137
|
+
onMouseOver: () => ReactTooltip.show(this.tooltipElement),
|
|
138
|
+
onMouseOut: () => ReactTooltip.hide(this.tooltipElement),
|
|
137
139
|
"aria-controls": id
|
|
138
140
|
}, children));
|
|
139
141
|
}
|
package/lib/Tooltip.js
CHANGED
|
@@ -186,6 +186,7 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
186
186
|
onBlur: function onBlur() {
|
|
187
187
|
return _reactTooltip.default.hide(_this3.tooltipElement);
|
|
188
188
|
},
|
|
189
|
+
color: "gray.1",
|
|
189
190
|
style: {
|
|
190
191
|
cursor: 'pointer',
|
|
191
192
|
backgroundColor: 'transparent',
|
|
@@ -194,7 +195,12 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
194
195
|
onClick: function onClick(e) {
|
|
195
196
|
e.stopPropagation();
|
|
196
197
|
},
|
|
197
|
-
|
|
198
|
+
onMouseOver: function onMouseOver() {
|
|
199
|
+
return _reactTooltip.default.show(_this3.tooltipElement);
|
|
200
|
+
},
|
|
201
|
+
onMouseOut: function onMouseOut() {
|
|
202
|
+
return _reactTooltip.default.hide(_this3.tooltipElement);
|
|
203
|
+
},
|
|
198
204
|
"aria-controls": id
|
|
199
205
|
}, children));
|
|
200
206
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/component-tooltip",
|
|
3
3
|
"description": "Cloudflare Tooltip Component",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.102",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "James Kyle <jkyle@cloudflare.com>",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cloudflare/elements": "^1.11.
|
|
15
|
-
"@cloudflare/style-container": "^7.5.
|
|
14
|
+
"@cloudflare/elements": "^1.11.31",
|
|
15
|
+
"@cloudflare/style-container": "^7.5.20",
|
|
16
16
|
"lodash.uniqueid": "^4.0.1",
|
|
17
17
|
"prop-types": "^15.6.0",
|
|
18
18
|
"react-tooltip": "^3.6.0"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"test-coverage": "stratus test --coverage",
|
|
32
32
|
"test-watch": "stratus test --watch"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "8dd34fdc2ab95f21e2b7f5b87bac858036dedc39"
|
|
35
35
|
}
|