kitzo 2.1.27 → 2.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/react/react.esm.js +2 -0
- package/dist/react/types/tooltip.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ npm i kitzo
|
|
|
26
26
|
or
|
|
27
27
|
|
|
28
28
|
```javascript
|
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.1.
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.1.29/dist/kitzo.umd.min.js"></script>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
> Vanilla: Attach this script tag in the html head tag and you are good to go.
|
package/dist/react/react.esm.js
CHANGED
|
@@ -795,8 +795,10 @@ function Tooltip({
|
|
|
795
795
|
tooltipOptions = {},
|
|
796
796
|
animation = true,
|
|
797
797
|
style = {},
|
|
798
|
+
isHidden = false,
|
|
798
799
|
children
|
|
799
800
|
}) {
|
|
801
|
+
if (typeof isHidden === 'boolean' && isHidden) return children;
|
|
800
802
|
if (typeof content === 'string') {
|
|
801
803
|
if (!content.trim()) throw new Error('kitzo/react: tooltip content is required');
|
|
802
804
|
} else if (!content) {
|