@vx/tooltip
Advanced tools
Comparing version 0.0.158 to 0.0.160
@@ -26,2 +26,4 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
var propTypes = _extends({}, _bounds.withBoundingRectsProps, _Tooltip2.default.propTypes, { | ||
@@ -44,3 +46,4 @@ offsetLeft: _propTypes2.default.number, | ||
children = _ref.children, | ||
style = _ref.style; | ||
style = _ref.style, | ||
otherProps = _objectWithoutProperties(_ref, ['left', 'top', 'offsetLeft', 'offsetTop', 'rect', 'parentRect', 'children', 'style']); | ||
@@ -58,3 +61,3 @@ var left = initialLeft; | ||
_Tooltip2.default, | ||
{ style: _extends({ top: 0, transform: 'translate(' + left + 'px, ' + top + 'px)' }, style) }, | ||
_extends({ style: _extends({ top: 0, transform: 'translate(' + left + 'px, ' + top + 'px)' }, style) }, otherProps), | ||
children | ||
@@ -61,0 +64,0 @@ ); |
{ | ||
"name": "@vx/tooltip", | ||
"version": "0.0.158", | ||
"version": "0.0.160", | ||
"description": "vx tooltip", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -26,2 +26,3 @@ /* eslint react/forbid-prop-types: 0 */ | ||
style, | ||
...otherProps, | ||
}) { | ||
@@ -40,3 +41,3 @@ let left = initialLeft; | ||
return ( | ||
<Tooltip style={{ top: 0, transform: `translate(${left}px, ${top}px)`, ...style }}> | ||
<Tooltip style={{ top: 0, transform: `translate(${left}px, ${top}px)`, ...style }} {...otherProps}> | ||
{children} | ||
@@ -43,0 +44,0 @@ </Tooltip> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17022
381