@reach/tooltip
Advanced tools
+2
-13
@@ -365,15 +365,4 @@ var _states; | ||
| var child = Children.only(children); // We need to pass some properties from the child into useTooltip | ||
| // to make sure users can maintain control over the trigger's ref and events | ||
| var _useTooltip = useTooltip({ | ||
| DEBUG_STYLE: DEBUG_STYLE, | ||
| onMouseEnter: child.props.onMouseEnter, | ||
| onMouseMove: child.props.onMouseMove, | ||
| onMouseLeave: child.props.onMouseLeave, | ||
| onFocus: child.props.onFocus, | ||
| onBlur: child.props.onBlur, | ||
| onKeyDown: child.props.onKeyDown, | ||
| onMouseDown: child.props.onMouseDown, | ||
| ref: child.ref | ||
| DEBUG_STYLE: DEBUG_STYLE | ||
| }), | ||
@@ -383,3 +372,3 @@ trigger = _useTooltip[0], | ||
| return React.createElement(Fragment, null, cloneElement(child, trigger), React.createElement(TooltipPopup, _extends({ | ||
| return React.createElement(Fragment, null, cloneElement(Children.only(children), trigger), React.createElement(TooltipPopup, _extends({ | ||
| label: label, | ||
@@ -386,0 +375,0 @@ ariaLabel: ariaLabel |
+2
-14
@@ -350,16 +350,4 @@ "use strict"; | ||
| var child = _react.Children.only(children); // We need to pass some properties from the child into useTooltip | ||
| // to make sure users can maintain control over the trigger's ref and events | ||
| var _useTooltip = useTooltip({ | ||
| DEBUG_STYLE: DEBUG_STYLE, | ||
| onMouseEnter: child.props.onMouseEnter, | ||
| onMouseMove: child.props.onMouseMove, | ||
| onMouseLeave: child.props.onMouseLeave, | ||
| onFocus: child.props.onFocus, | ||
| onBlur: child.props.onBlur, | ||
| onKeyDown: child.props.onKeyDown, | ||
| onMouseDown: child.props.onMouseDown, | ||
| ref: child.ref | ||
| DEBUG_STYLE: DEBUG_STYLE | ||
| }), | ||
@@ -369,3 +357,3 @@ trigger = _useTooltip[0], | ||
| return _react["default"].createElement(_react.Fragment, null, (0, _react.cloneElement)(child, trigger), _react["default"].createElement(TooltipPopup, _extends({ | ||
| return _react["default"].createElement(_react.Fragment, null, (0, _react.cloneElement)(_react.Children.only(children), trigger), _react["default"].createElement(TooltipPopup, _extends({ | ||
| label: label, | ||
@@ -372,0 +360,0 @@ ariaLabel: ariaLabel |
+7
-8
| { | ||
| "name": "@reach/tooltip", | ||
| "version": "0.3.0", | ||
| "version": "0.4.0-beta.0", | ||
| "description": "Accessible tooltips", | ||
@@ -12,7 +12,7 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "@reach/auto-id": "^0.3.0", | ||
| "@reach/portal": "^0.3.0", | ||
| "@reach/rect": "^0.3.0", | ||
| "@reach/utils": "^0.3.0", | ||
| "@reach/visually-hidden": "^0.3.0", | ||
| "@reach/auto-id": "^0.4.0-beta.0", | ||
| "@reach/portal": "^0.4.0-beta.0", | ||
| "@reach/rect": "^0.4.0-beta.0", | ||
| "@reach/utils": "^0.4.0-beta.0", | ||
| "@reach/visually-hidden": "^0.4.0-beta.0", | ||
| "prop-types": "^15.7.2" | ||
@@ -35,4 +35,3 @@ }, | ||
| "styles.css" | ||
| ], | ||
| "gitHead": "5bf78a3c6261dcfb417c876bb4223c6381a14013" | ||
| ] | ||
| } |
-10
| The MIT License (MIT) | ||
| Copyright (c) 2018-present, MOGHOUSE LLC | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
44051
-4.41%5
-16.67%1279
-1.54%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated