@vx/tooltip
Advanced tools
Comparing version 0.0.126 to 0.0.127
@@ -25,7 +25,10 @@ 'use strict'; | ||
var className = props.className, | ||
restProps = _objectWithoutProperties(props, ['className']); | ||
top = props.top, | ||
left = props.left, | ||
style = props.style, | ||
restProps = _objectWithoutProperties(props, ['className', 'top', 'left', 'style']); | ||
return _react2.default.createElement( | ||
'div', | ||
{ | ||
_extends({ | ||
className: (0, _classnames2.default)('vx-tooltip-portal', className), | ||
@@ -41,7 +44,9 @@ style: _extends({ | ||
lineHeight: '1em', | ||
pointerEvents: 'none' | ||
}, restProps) | ||
}, | ||
pointerEvents: 'none', | ||
top: top, | ||
left: left | ||
}, style) | ||
}, restProps), | ||
props.children | ||
); | ||
} |
{ | ||
"name": "@vx/tooltip", | ||
"version": "0.0.126", | ||
"version": "0.0.127", | ||
"description": "vx tooltip", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
export default function Tooltip(props) { | ||
const { className, ...restProps } = props; | ||
const { className, top, left, style, ...restProps } = props; | ||
return ( | ||
@@ -20,4 +20,7 @@ <div | ||
pointerEvents: 'none', | ||
...restProps, | ||
top, | ||
left, | ||
...style | ||
}} | ||
{...restProps} | ||
> | ||
@@ -24,0 +27,0 @@ {props.children} |
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
10872
241