react-simple-tooltip
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -0,1 +1,7 @@ | ||
# 2.3.3 — 2018-11-08 | ||
* Fixed: z-index prop | ||
* Updated: Dependencies | ||
# 2.3.2 — 2018-06-13 | ||
@@ -2,0 +8,0 @@ |
var _templateObject = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"], ["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]), | ||
_templateObject2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n ", "\n ", ";\n"], ["\n position: absolute;\n ", "\n ", ";\n"]), | ||
_templateObject2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n ", ";\n ", ";\n"], ["\n position: absolute;\n ", ";\n ", ";\n"]), | ||
_templateObject3 = _taggedTemplateLiteralLoose(["\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: ", "px;\n"], ["\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: ", "px;\n"]), | ||
@@ -18,3 +18,3 @@ _templateObject4 = _taggedTemplateLiteralLoose(["\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: ", "px;\n"], ["\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: ", "px;\n"]), | ||
var createAnimation = function createAnimation(props) { | ||
return "animation:\n " + props.fadeDuration + "ms\n " + props.fadeEasing + "\n 0s\n 1\n " + fadeAnimation + "\n "; | ||
return "animation:\n " + props.fadeDuration + "ms\n " + props.fadeEasing + "\n 0s\n 1\n " + fadeAnimation + ";\n "; | ||
}; | ||
@@ -24,3 +24,3 @@ | ||
var Base = styled.div(_templateObject2, function (props) { | ||
return props.fadeDuration && createAnimation(props) + ";"; | ||
return props.fadeDuration && props.fadeDuration > 0 && "" + createAnimation(props); | ||
}, function (props) { | ||
@@ -27,0 +27,0 @@ return props.zIndex && "z-index: " + props.zIndex + ";"; |
@@ -6,3 +6,3 @@ "use strict"; | ||
var _templateObject = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"], ["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]), | ||
_templateObject2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n ", "\n ", ";\n"], ["\n position: absolute;\n ", "\n ", ";\n"]), | ||
_templateObject2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n ", ";\n ", ";\n"], ["\n position: absolute;\n ", ";\n ", ";\n"]), | ||
_templateObject3 = _taggedTemplateLiteralLoose(["\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: ", "px;\n"], ["\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: ", "px;\n"]), | ||
@@ -34,3 +34,3 @@ _templateObject4 = _taggedTemplateLiteralLoose(["\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: ", "px;\n"], ["\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: ", "px;\n"]), | ||
var createAnimation = function createAnimation(props) { | ||
return "animation:\n " + props.fadeDuration + "ms\n " + props.fadeEasing + "\n 0s\n 1\n " + fadeAnimation + "\n "; | ||
return "animation:\n " + props.fadeDuration + "ms\n " + props.fadeEasing + "\n 0s\n 1\n " + fadeAnimation + ";\n "; | ||
}; | ||
@@ -40,3 +40,3 @@ | ||
var Base = _styledComponents2.default.div(_templateObject2, function (props) { | ||
return props.fadeDuration && createAnimation(props) + ";"; | ||
return props.fadeDuration && props.fadeDuration > 0 && "" + createAnimation(props); | ||
}, function (props) { | ||
@@ -43,0 +43,0 @@ return props.zIndex && "z-index: " + props.zIndex + ";"; |
{ | ||
"name": "react-simple-tooltip", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"author": { | ||
@@ -9,5 +9,14 @@ "name": "Cédric Delpoux", | ||
"description": "A lightweight and simple tooltip component for React", | ||
"files": ["css", "es", "lib", "umd"], | ||
"files": [ | ||
"css", | ||
"es", | ||
"lib", | ||
"umd" | ||
], | ||
"homepage": "https://github.com/xuopled/react-simple-tooltip#readme", | ||
"keywords": ["react", "tooltip", "bubble"], | ||
"keywords": [ | ||
"react", | ||
"tooltip", | ||
"bubble" | ||
], | ||
"license": "MIT", | ||
@@ -14,0 +23,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
176359
4171