react-tooltip 4.3.1 → 4.4.2
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/README.md +1 -0
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/react-tooltip.d.ts +13 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2459,6 +2459,7 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
2459
2459
|
// float or fixed
|
|
2460
2460
|
show: false,
|
|
2461
2461
|
border: false,
|
|
2462
|
+
borderClass: 'border',
|
|
2462
2463
|
customColors: {},
|
|
2463
2464
|
offset: {},
|
|
2464
2465
|
padding: props.padding,
|
|
@@ -2793,6 +2794,7 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
2793
2794
|
delayHide: target.getAttribute('data-delay-hide') || self.props.delayHide || 0,
|
|
2794
2795
|
delayUpdate: target.getAttribute('data-delay-update') || self.props.delayUpdate || 0,
|
|
2795
2796
|
border: (target.getAttribute('data-border') ? target.getAttribute('data-border') === 'true' : self.props.border) || false,
|
|
2797
|
+
borderClass: target.getAttribute('data-border-class') || self.props.borderClass || 'border',
|
|
2796
2798
|
extraClass: target.getAttribute('data-class') || self.props["class"] || self.props.className || '',
|
|
2797
2799
|
disable: (target.getAttribute('data-tip-disable') ? target.getAttribute('data-tip-disable') === 'true' : self.props.disable) || false,
|
|
2798
2800
|
currentTarget: target
|
|
@@ -3059,7 +3061,7 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
3059
3061
|
var content = this.getTooltipContent();
|
|
3060
3062
|
var isEmptyTip = this.isEmptyTip(content);
|
|
3061
3063
|
var style = generateTooltipStyle(this.state.uuid, this.state.customColors, this.state.type, this.state.border, this.state.padding);
|
|
3062
|
-
var tooltipClass = '__react_component_tooltip' + " ".concat(this.state.uuid) + (this.state.show && !disable && !isEmptyTip ? ' show' : '') + (this.state.border ? '
|
|
3064
|
+
var tooltipClass = '__react_component_tooltip' + " ".concat(this.state.uuid) + (this.state.show && !disable && !isEmptyTip ? ' show' : '') + (this.state.border ? ' ' + this.state.borderClass : '') + " place-".concat(this.state.place) + // top, bottom, left, right
|
|
3063
3065
|
" type-".concat(this.hasCustomColors() ? 'custom' : this.state.type) + (
|
|
3064
3066
|
// dark, success, warning, error, info, light, custom
|
|
3065
3067
|
this.props.delayUpdate ? ' allow_hover' : '') + (this.props.clickable ? ' allow_click' : '');
|
|
@@ -3112,6 +3114,7 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
3112
3114
|
padding: PropTypes__default["default"].string,
|
|
3113
3115
|
multiline: PropTypes__default["default"].bool,
|
|
3114
3116
|
border: PropTypes__default["default"].bool,
|
|
3117
|
+
borderClass: PropTypes__default["default"].string,
|
|
3115
3118
|
textColor: PropTypes__default["default"].string,
|
|
3116
3119
|
backgroundColor: PropTypes__default["default"].string,
|
|
3117
3120
|
borderColor: PropTypes__default["default"].string,
|