@versini/ui-tooltip 6.1.3 → 6.2.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.
package/dist/index.d.ts CHANGED
@@ -1,18 +1,6 @@
1
1
  import { JSX } from 'react';
2
2
 
3
- declare type Placement =
4
- | "top"
5
- | "right"
6
- | "bottom"
7
- | "left"
8
- | "top-start"
9
- | "top-end"
10
- | "right-start"
11
- | "right-end"
12
- | "bottom-start"
13
- | "bottom-end"
14
- | "left-start"
15
- | "left-end";
3
+ declare type Placement = "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
16
4
 
17
5
  export declare const Tooltip: ({ trigger, label, placement, mode, animationDuration, delay, className, tooltipClassName, arrowClassName, }: TooltipTypes.Props) => JSX.Element;
18
6
 
@@ -20,52 +8,52 @@ export declare const TOOLTIP_ARROW_CLASSNAME = "av-tooltip-arrow";
20
8
 
21
9
  export declare const TOOLTIP_CLASSNAME = "av-tooltip";
22
10
 
23
- declare namespace TooltipTypes {
24
- type Props = {
25
- /**
26
- * CSS class(es) to add to the main component wrapper.
27
- * This is different from the tooltip itself and should be used to
28
- * style the main component wrapper, such as margins, padding, etc.
29
- */
30
- className?: string;
31
- /**
32
- * CSS class(es) to add to the tooltip.
33
- * This is different from the main component wrapper and should be used to
34
- * style the tooltip itself, such as background color, text color, etc.
35
- */
36
- tooltipClassName?: string;
37
- /**
38
- * CSS class(es) to add to the arrow portion of the tooltip.
39
- */
40
- arrowClassName?: string;
41
- /**
42
- * The label to show in the tooltip.
43
- */
44
- label: string;
45
- /**
46
- * The trigger element for the tooltip.
47
- */
48
- trigger: React.ReactNode;
49
- /**
50
- * The placement of the tooltip.
51
- * @default top
52
- */
53
- placement?: Placement;
54
- /**
55
- * The mode of tooltip. This will change the color of the tooltip.
56
- */
57
- mode?: "dark" | "light" | "system" | "alt-system";
58
- /**
59
- * The duration in milliseconds of the tooltip fade-in animation.
60
- * @default 300
61
- */
62
- animationDuration?: number;
63
- /**
64
- * The delay in milliseconds before showing the tooltip after hovering.
65
- * @default 0
66
- */
67
- delay?: number;
68
- };
11
+ export declare namespace TooltipTypes {
12
+ export type Props = {
13
+ /**
14
+ * CSS class(es) to add to the main component wrapper. This is different from
15
+ * the tooltip itself and should be used to style the main component wrapper,
16
+ * such as margins, padding, etc.
17
+ */
18
+ className?: string;
19
+ /**
20
+ * CSS class(es) to add to the tooltip. This is different from the main
21
+ * component wrapper and should be used to style the tooltip itself, such as
22
+ * background color, text color, etc.
23
+ */
24
+ tooltipClassName?: string;
25
+ /**
26
+ * CSS class(es) to add to the arrow portion of the tooltip.
27
+ */
28
+ arrowClassName?: string;
29
+ /**
30
+ * The label to show in the tooltip.
31
+ */
32
+ label: string;
33
+ /**
34
+ * The trigger element for the tooltip.
35
+ */
36
+ trigger: React.ReactNode;
37
+ /**
38
+ * The placement of the tooltip.
39
+ * @default top
40
+ */
41
+ placement?: Placement;
42
+ /**
43
+ * The mode of tooltip. This will change the color of the tooltip.
44
+ */
45
+ mode?: "dark" | "light" | "system" | "alt-system";
46
+ /**
47
+ * The duration in milliseconds of the tooltip fade-in animation.
48
+ * @default 300
49
+ */
50
+ animationDuration?: number;
51
+ /**
52
+ * The delay in milliseconds before showing the tooltip after hovering.
53
+ * @default 0
54
+ */
55
+ delay?: number;
56
+ };
69
57
  }
70
58
 
71
59
  export { }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-tooltip v6.1.3
2
+ @versini/ui-tooltip v6.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-tooltip",
3
- "version": "6.1.3",
3
+ "version": "6.2.1",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -37,16 +37,18 @@
37
37
  "test": "vitest run"
38
38
  },
39
39
  "devDependencies": {
40
- "@testing-library/jest-dom": "6.10.0",
41
- "@versini/ui-types": "10.1.0"
40
+ "@testing-library/jest-dom": "7.0.0"
42
41
  },
43
42
  "dependencies": {
44
- "@versini/ui-hooks": "6.2.0",
43
+ "@versini/ui-hooks": "6.2.1",
45
44
  "clsx": "2.1.1",
46
45
  "tailwindcss": "4.3.3"
47
46
  },
48
47
  "sideEffects": [
49
48
  "**/*.css"
50
49
  ],
51
- "gitHead": "897d5d5404b5061b86b4939841ee29f54088728f"
50
+ "peerDependencies": {
51
+ "react": "^19.0.0"
52
+ },
53
+ "gitHead": "8edfc28ac74f82af2ecdd5c639534f0be6fe4044"
52
54
  }