@juanzbdev/tooltip-react 1.0.0 → 1.0.1

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.
@@ -0,0 +1,22 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export interface ITooltipProps {
3
+ /** The content to display in the tooltip */
4
+ children: ReactNode;
5
+ /** The content to display in the tooltip */
6
+ label: ReactNode;
7
+ /** The position of the tooltip */
8
+ position?: "top" | "bottom" | "left" | "right";
9
+ /** Show the arrow on the tooltip */
10
+ showArrow?: boolean;
11
+ /** Disable the tooltip */
12
+ disabled?: boolean;
13
+ /** Tailwind classes to override defaults */
14
+ className?: string;
15
+ /** Pure CSS inline styles */
16
+ style?: CSSProperties;
17
+ /** Delay in milliseconds before hiding the tooltip */
18
+ delayHide?: number;
19
+ /** Tailwind classes to override defaults */
20
+ containerClassName?: string;
21
+ }
22
+ export declare function Tooltip({ children, label, position, showArrow, disabled, className, style, containerClassName, delayHide, }: ITooltipProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Tooltip } from './components/Tooltip';
@@ -1 +1,2 @@
1
+ export * from './index.js'
1
2
  export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juanzbdev/tooltip-react",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/tooltip-react.umd.js",
6
6
  "module": "./dist/tooltip-react.es.js",