@cloudflare/component-tooltip 2.7.114 → 2.7.118

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 CHANGED
@@ -3,6 +3,38 @@
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.118](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.117...@cloudflare/component-tooltip@2.7.118) (2022-02-17)
7
+
8
+ **Note:** Version bump only for package @cloudflare/component-tooltip
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.7.117](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.116...@cloudflare/component-tooltip@2.7.117) (2022-02-16)
15
+
16
+ **Note:** Version bump only for package @cloudflare/component-tooltip
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.7.116](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.115...@cloudflare/component-tooltip@2.7.116) (2022-02-14)
23
+
24
+ **Note:** Version bump only for package @cloudflare/component-tooltip
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.7.115](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.114...@cloudflare/component-tooltip@2.7.115) (2022-02-10)
31
+
32
+ **Note:** Version bump only for package @cloudflare/component-tooltip
33
+
34
+
35
+
36
+
37
+
6
38
  ## [2.7.114](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-tooltip@2.7.113...@cloudflare/component-tooltip@2.7.114) (2022-02-08)
7
39
 
8
40
  **Note:** Version bump only for package @cloudflare/component-tooltip
package/es/Tooltip.js CHANGED
@@ -100,7 +100,8 @@ class Tooltip extends React.PureComponent {
100
100
  getContent = _this$props.getContent,
101
101
  type = _this$props.type,
102
102
  anchored = _this$props.anchored,
103
- isCapture = _this$props.isCapture;
103
+ isCapture = _this$props.isCapture,
104
+ display = _this$props.display;
104
105
  const id = this.props.id ? this.props.id : this.id;
105
106
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReactTooltip, {
106
107
  id: id,
@@ -119,7 +120,7 @@ class Tooltip extends React.PureComponent {
119
120
  role: "status"
120
121
  }), /*#__PURE__*/React.createElement(Button, {
121
122
  innerRef: ref => this.tooltipElement = ref,
122
- display: "flex",
123
+ display: display ? display : 'flex',
123
124
  pointerEvents: "bounding-box",
124
125
  padding: 0,
125
126
  backgroundColor: "transparent",
@@ -156,7 +157,8 @@ Tooltip.propTypes = {
156
157
  afterShow: PropTypes.func,
157
158
  getContent: PropTypes.func,
158
159
  forceRebuild: PropTypes.bool,
159
- onClick: PropTypes.func
160
+ onClick: PropTypes.func,
161
+ display: PropTypes.string
160
162
  };
161
163
  Tooltip.defaultProps = {
162
164
  disable: false,
package/lib/Tooltip.js CHANGED
@@ -155,7 +155,8 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
155
155
  getContent = _this$props.getContent,
156
156
  type = _this$props.type,
157
157
  anchored = _this$props.anchored,
158
- isCapture = _this$props.isCapture;
158
+ isCapture = _this$props.isCapture,
159
+ display = _this$props.display;
159
160
  var id = this.props.id ? this.props.id : this.id;
160
161
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactTooltip.default, {
161
162
  id: id,
@@ -178,7 +179,7 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
178
179
  innerRef: function innerRef(ref) {
179
180
  return _this3.tooltipElement = ref;
180
181
  },
181
- display: "flex",
182
+ display: display ? display : 'flex',
182
183
  pointerEvents: "bounding-box",
183
184
  padding: 0,
184
185
  backgroundColor: "transparent",
@@ -223,7 +224,8 @@ Tooltip.propTypes = {
223
224
  afterShow: _propTypes.default.func,
224
225
  getContent: _propTypes.default.func,
225
226
  forceRebuild: _propTypes.default.bool,
226
- onClick: _propTypes.default.func
227
+ onClick: _propTypes.default.func,
228
+ display: _propTypes.default.string
227
229
  };
228
230
  Tooltip.defaultProps = {
229
231
  disable: false,
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.114",
4
+ "version": "2.7.118",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -11,11 +11,11 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@cloudflare/elements": "^1.11.43",
15
- "@cloudflare/style-container": "^7.6.4",
14
+ "@cloudflare/elements": "^1.11.46",
15
+ "@cloudflare/style-container": "^7.6.7",
16
16
  "lodash.uniqueid": "^4.0.1",
17
17
  "prop-types": "^15.6.0",
18
- "react-tooltip": "^3.6.0"
18
+ "react-tooltip": "^3.11.6"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
@@ -31,5 +31,5 @@
31
31
  "test-coverage": "stratus test --coverage",
32
32
  "test-watch": "stratus test --watch"
33
33
  },
34
- "gitHead": "994e89f08c4e6809252f6f49ea25de5af4dc2888"
34
+ "gitHead": "b4e1fec98bd520c89f2895a006b91e43adf4c8d5"
35
35
  }