@festicket/react-aria-tooltip
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -186,3 +186,3 @@ 'use strict'; | ||
ReactARIAToolTip.propTypes = { | ||
message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.element]).isRequired, | ||
message: _propTypes2.default.string.isRequired, | ||
direction: _propTypes2.default.string, | ||
@@ -189,0 +189,0 @@ duration: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), |
@@ -49,3 +49,3 @@ 'use strict'; | ||
ToolTipContent.propTypes = { | ||
message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.element]).isRequired, | ||
message: _propTypes2.default.string.isRequired, | ||
direction: _propTypes2.default.string.isRequired, | ||
@@ -52,0 +52,0 @@ active: _propTypes2.default.bool.isRequired, |
@@ -25,11 +25,2 @@ 'use strict'; | ||
var getMessage = function getMessage(message) { | ||
if (typeof message === 'string') return _react2.default.createElement( | ||
'p', | ||
null, | ||
message | ||
); | ||
return message; | ||
}; | ||
var TooltipMessage = function TooltipMessage(_ref) { | ||
@@ -40,6 +31,10 @@ var className = _ref.className, | ||
if (typeof message === 'string') return _react2.default.createElement( | ||
return _react2.default.createElement( | ||
'div', | ||
{ className: className + ' ra-tooltip-message' }, | ||
getMessage(message) | ||
_react2.default.createElement( | ||
'p', | ||
null, | ||
message | ||
) | ||
); | ||
@@ -51,3 +46,3 @@ }; | ||
TooltipMessage.propTypes = { | ||
message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object, _propTypes2.default.element]).isRequired | ||
message: _propTypes2.default.string.isRequired | ||
}; | ||
@@ -54,0 +49,0 @@ |
{ | ||
"name": "@festicket/react-aria-tooltip", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "ReactJS ARIA tooltip component", | ||
@@ -32,7 +32,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"prop-types": "15.6.0", | ||
"styled-components": "^2.4.0" | ||
"prop-types": "15.6.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.0" | ||
"react": "^16.0", | ||
"styled-components": "^2.4.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
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
26582
516
- Removedstyled-components@^2.4.0