react-tooltip-lite
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -206,2 +206,4 @@ "use strict"; | ||
}); | ||
it('should support onToggle prop'); | ||
it('should support zIndex prop'); | ||
}); |
@@ -28,4 +28,4 @@ declare module 'react-tooltip-lite' { | ||
useDefaultStyles?: boolean; | ||
zIndex: number; | ||
onToggle: (showTip: boolean) => void; | ||
zIndex?: number; | ||
onToggle?: (showTip: boolean) => void; | ||
} | ||
@@ -32,0 +32,0 @@ |
@@ -206,2 +206,4 @@ "use strict"; | ||
}); | ||
it('should support onToggle prop'); | ||
it('should support zIndex prop'); | ||
}); |
@@ -61,5 +61,5 @@ import React from 'react'; | ||
</Tooltip> | ||
<Tooltip onToggle={(isOpen) => {alert(`Is tooltip open ? \n Answer : ${isOpen? 'Yes' : 'No' }`) }} content="alert shown" className="target" tipContentClassName=""> | ||
Hover Me | ||
<Tooltip onToggle={(isOpen) => { alert(`Is tooltip open ? \n Answer : ${isOpen ? 'Yes' : 'No'}`); }} content="alert shown" className="target" tipContentClassName=""> | ||
Hover Me | ||
</Tooltip> | ||
@@ -353,2 +353,11 @@ </div> | ||
</section> | ||
<section> | ||
<Tooltip tagName="span" content="check the console log" onToggle={isVisible => console.log(`is visible: ${isVisible}`)}> | ||
On toggle example | ||
</Tooltip> | ||
| ||
<Tooltip tagName="span" content="This has a z-index of 5000" zIndex={5000} eventToggle="onClick"> | ||
z-index example | ||
</Tooltip> | ||
</section> | ||
</div> | ||
@@ -355,0 +364,0 @@ ); |
{ | ||
"name": "react-tooltip-lite", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "React tooltip, focused on simplicity and performance", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
1845942
21929