@versini/ui-tooltip 6.1.3 → 6.2.0
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 +47 -59
- package/dist/index.js +1 -1
- package/package.json +3 -4
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-tooltip",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
"test": "vitest run"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@testing-library/jest-dom": "
|
|
41
|
-
"@versini/ui-types": "10.1.0"
|
|
40
|
+
"@testing-library/jest-dom": "7.0.0"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
44
43
|
"@versini/ui-hooks": "6.2.0",
|
|
@@ -48,5 +47,5 @@
|
|
|
48
47
|
"sideEffects": [
|
|
49
48
|
"**/*.css"
|
|
50
49
|
],
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "eb1f5e7f3c5baf8d551bd85fcc7aa6c06e6806a3"
|
|
52
51
|
}
|