Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-tooltip - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

6

CHANGELOG.md

@@ -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 @@

6

es/components/Tooltip/index.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc