Socket
Socket
Sign inDemoInstall

@elvia/elvis-tooltip

Package Overview
Dependencies
Maintainers
7
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elvia/elvis-tooltip - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

10

CHANGELOG.json

@@ -6,2 +6,12 @@ {

"date": "18.10.22",
"version": "1.0.8",
"changelog": [
{
"type": "patch",
"changes": ["The tooltip now has <span class=\"code-text\">pointer-events: none</span>."]
}
]
},
{
"date": "18.10.22",
"version": "1.0.7",

@@ -8,0 +18,0 @@ "changelog": [

2

dist/react/js/styledComponents.js

@@ -5,3 +5,3 @@ /*

*/
"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.colors=exports.arrowSize=exports.TriggerContainer=exports.TooltipPopup=exports.TooltipFadeOut=exports.TooltipFadeIn=void 0;var _styledComponents=_interopRequireWildcard(require("styled-components")),_elvisColors=require("@elvia/elvis-colors"),_elvisTypography=require("@elvia/elvis-typography");function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!==_typeof(a)&&"function"!=typeof a)return{default:a};var c=_getRequireWildcardCache(b);if(c&&c.has(a))return c.get(a);var d={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!=f&&Object.prototype.hasOwnProperty.call(a,f)){var g=e?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=a[f]}return d.default=a,c&&c.set(a,d),d}var arrowSize=6;exports.arrowSize=6;var colors={tooltipText:(0,_elvisColors.getColor)("white"),tooltipBg:(0,_elvisColors.getColor)("grey-80")};exports.colors=colors;var TooltipFadeIn=(0,_styledComponents.keyframes)(["from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}"]);exports.TooltipFadeIn=TooltipFadeIn;var TooltipFadeOut=(0,_styledComponents.keyframes)(["from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.7)}"]);exports.TooltipFadeOut=TooltipFadeOut;var TriggerContainer=_styledComponents.default.span.withConfig({displayName:"styledComponents__TriggerContainer",componentId:"sc-jdpnf4-0"})(["display:inline-block;"]);exports.TriggerContainer=TriggerContainer;var TooltipPopup=_styledComponents.default.div.withConfig({displayName:"styledComponents__TooltipPopup",componentId:"sc-jdpnf4-1"})([""," white-space:pre-wrap;color:",";background:",";display:flex;align-items:center;justify-content:center;padding:0.5rem 0.625rem;border-radius:0.25rem;position:absolute;animation:"," 200ms 1ms forwards;max-width:min(350px,96%);width:max-content;opacity:0;z-index:99999;&::after{content:'';position:absolute;width:0;height:0;}"," ",""],(0,_elvisTypography.getTypographyCss)("text-sm"),colors.tooltipText,colors.tooltipBg,TooltipFadeIn,function(a){switch(a.position){case"top":return(0,_styledComponents.css)(["transform-origin:center bottom;&::after{border-left:","px solid transparent;border-right:","px solid transparent;border-top:","px solid ",";top:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);case"left":return(0,_styledComponents.css)(["transform-origin:right center;&::after{border-top:","px solid transparent;border-bottom:","px solid transparent;border-left:","px solid ",";left:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);case"right":return(0,_styledComponents.css)(["transform-origin:left center;&::after{border-top:","px solid transparent;border-bottom:","px solid transparent;border-right:","px solid ",";right:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);default:return(0,_styledComponents.css)(["transform-origin:center top;&::after{border-left:","px solid transparent;border-right:","px solid transparent;border-bottom:","px solid ",";bottom:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);}},function(a){return a.fadeOut?(0,_styledComponents.css)(["animation:"," 200ms ease;"],TooltipFadeOut):""});exports.TooltipPopup=TooltipPopup;
"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.colors=exports.arrowSize=exports.TriggerContainer=exports.TooltipPopup=exports.TooltipFadeOut=exports.TooltipFadeIn=void 0;var _styledComponents=_interopRequireWildcard(require("styled-components")),_elvisColors=require("@elvia/elvis-colors"),_elvisTypography=require("@elvia/elvis-typography");function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!==_typeof(a)&&"function"!=typeof a)return{default:a};var c=_getRequireWildcardCache(b);if(c&&c.has(a))return c.get(a);var d={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!=f&&Object.prototype.hasOwnProperty.call(a,f)){var g=e?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=a[f]}return d.default=a,c&&c.set(a,d),d}var arrowSize=6;exports.arrowSize=6;var colors={tooltipText:(0,_elvisColors.getColor)("white"),tooltipBg:(0,_elvisColors.getColor)("grey-80")};exports.colors=colors;var TooltipFadeIn=(0,_styledComponents.keyframes)(["from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}"]);exports.TooltipFadeIn=TooltipFadeIn;var TooltipFadeOut=(0,_styledComponents.keyframes)(["from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.7)}"]);exports.TooltipFadeOut=TooltipFadeOut;var TriggerContainer=_styledComponents.default.span.withConfig({displayName:"styledComponents__TriggerContainer",componentId:"sc-jdpnf4-0"})(["display:inline-block;"]);exports.TriggerContainer=TriggerContainer;var TooltipPopup=_styledComponents.default.div.withConfig({displayName:"styledComponents__TooltipPopup",componentId:"sc-jdpnf4-1"})([""," white-space:pre-wrap;color:",";background:",";display:flex;align-items:center;justify-content:center;padding:0.5rem 0.625rem;border-radius:0.25rem;position:absolute;animation:"," 200ms 1ms forwards;max-width:min(350px,96%);width:max-content;opacity:0;z-index:99999;pointer-events:none;&::after{content:'';position:absolute;width:0;height:0;}"," ",""],(0,_elvisTypography.getTypographyCss)("text-sm"),colors.tooltipText,colors.tooltipBg,TooltipFadeIn,function(a){switch(a.position){case"top":return(0,_styledComponents.css)(["transform-origin:center bottom;&::after{border-left:","px solid transparent;border-right:","px solid transparent;border-top:","px solid ",";top:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);case"left":return(0,_styledComponents.css)(["transform-origin:right center;&::after{border-top:","px solid transparent;border-bottom:","px solid transparent;border-left:","px solid ",";left:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);case"right":return(0,_styledComponents.css)(["transform-origin:left center;&::after{border-top:","px solid transparent;border-bottom:","px solid transparent;border-right:","px solid ",";right:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);default:return(0,_styledComponents.css)(["transform-origin:center top;&::after{border-left:","px solid transparent;border-right:","px solid transparent;border-bottom:","px solid ",";bottom:100%;}"],arrowSize,arrowSize,arrowSize,colors.tooltipBg);}},function(a){return a.fadeOut?(0,_styledComponents.css)(["animation:"," 200ms ease;"],TooltipFadeOut):""});exports.TooltipPopup=TooltipPopup;
//# sourceMappingURL=styledComponents.js.map
{
"name": "@elvia/elvis-tooltip",
"version": "1.0.7",
"version": "1.0.8",
"description": "",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -0,0 +0,0 @@ declare module '@elvia/elvis-tooltip/react';

export { default as Tooltip } from './dist/react/js/elvia-tooltip.js';

@@ -0,0 +0,0 @@ # Elvia Tooltip

@@ -0,0 +0,0 @@ import { OverlayHorizontalPosition, OverlayVerticalPosition } from '@elvia/elvis-toolbox';

export { default as Tooltip } from './dist/web_component/js/elvia-tooltip';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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