kitzo 2.1.28 → 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 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.28/dist/kitzo.umd.min.js"></script>
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.
@@ -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) {
@@ -64,6 +64,7 @@ type TooltipCoreProps = {
64
64
  tooltipOptions?: TooltipOptions;
65
65
  animation?: TooltipAnimation;
66
66
  style?: TooltipStyles;
67
+ isHidden?: boolean;
67
68
  };
68
69
 
69
70
  type TooltipProps = PropsWithChildren<TooltipCoreProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitzo",
3
- "version": "2.1.28",
3
+ "version": "2.1.29",
4
4
  "description": "A lightweight JavaScript & React UI micro-library.",
5
5
  "type": "module",
6
6
  "main": "./dist/vanilla/vanilla.umd.js",