@xsolla/xui-tooltip 0.74.0 → 0.76.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/native/index.js.flow +71 -0
- package/package.json +4 -4
- package/web/index.js.flow +71 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for index
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { Node } from "react";
|
|
9
|
+
declare type TooltipSize = "sm" | "md" | "lg" | "xl";
|
|
10
|
+
declare type TooltipPlacement =
|
|
11
|
+
| "top"
|
|
12
|
+
| "top-left"
|
|
13
|
+
| "top-right"
|
|
14
|
+
| "bottom"
|
|
15
|
+
| "bottom-left"
|
|
16
|
+
| "bottom-right"
|
|
17
|
+
| "left"
|
|
18
|
+
| "right";
|
|
19
|
+
declare interface TooltipProps {
|
|
20
|
+
/**
|
|
21
|
+
* The content of the tooltip.
|
|
22
|
+
*/
|
|
23
|
+
content: Node;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Trigger element.
|
|
27
|
+
*/
|
|
28
|
+
children: Node;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Size of the tooltip.
|
|
32
|
+
* @default "md"
|
|
33
|
+
*/
|
|
34
|
+
size?: TooltipSize;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Delay before displaying (ms).
|
|
38
|
+
*/
|
|
39
|
+
delayEnter?: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Delay before leaving (ms).
|
|
43
|
+
*/
|
|
44
|
+
delayLeave?: number;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Indentation from trigger.
|
|
48
|
+
* @default 12
|
|
49
|
+
*/
|
|
50
|
+
offset?: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Location of the tooltip.
|
|
54
|
+
* @default "top"
|
|
55
|
+
*/
|
|
56
|
+
placement?: TooltipPlacement;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Controlled parameter for visibility.
|
|
60
|
+
*/
|
|
61
|
+
controlledVisible?: boolean;
|
|
62
|
+
style?: any;
|
|
63
|
+
"data-testid"?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
declare var Tooltip: React.ForwardRefExoticComponent<{
|
|
67
|
+
...TooltipProps,
|
|
68
|
+
...React.RefAttributes<any>,
|
|
69
|
+
}>;
|
|
70
|
+
export type { TooltipPlacement, TooltipProps, TooltipSize };
|
|
71
|
+
declare export { Tooltip };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-tooltip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-button": "0.
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-button": "0.76.0",
|
|
17
|
+
"@xsolla/xui-core": "0.76.0",
|
|
18
|
+
"@xsolla/xui-primitives-core": "0.76.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.8.0",
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for index
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { Node } from "react";
|
|
9
|
+
declare type TooltipSize = "sm" | "md" | "lg" | "xl";
|
|
10
|
+
declare type TooltipPlacement =
|
|
11
|
+
| "top"
|
|
12
|
+
| "top-left"
|
|
13
|
+
| "top-right"
|
|
14
|
+
| "bottom"
|
|
15
|
+
| "bottom-left"
|
|
16
|
+
| "bottom-right"
|
|
17
|
+
| "left"
|
|
18
|
+
| "right";
|
|
19
|
+
declare interface TooltipProps {
|
|
20
|
+
/**
|
|
21
|
+
* The content of the tooltip.
|
|
22
|
+
*/
|
|
23
|
+
content: Node;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Trigger element.
|
|
27
|
+
*/
|
|
28
|
+
children: Node;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Size of the tooltip.
|
|
32
|
+
* @default "md"
|
|
33
|
+
*/
|
|
34
|
+
size?: TooltipSize;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Delay before displaying (ms).
|
|
38
|
+
*/
|
|
39
|
+
delayEnter?: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Delay before leaving (ms).
|
|
43
|
+
*/
|
|
44
|
+
delayLeave?: number;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Indentation from trigger.
|
|
48
|
+
* @default 12
|
|
49
|
+
*/
|
|
50
|
+
offset?: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Location of the tooltip.
|
|
54
|
+
* @default "top"
|
|
55
|
+
*/
|
|
56
|
+
placement?: TooltipPlacement;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Controlled parameter for visibility.
|
|
60
|
+
*/
|
|
61
|
+
controlledVisible?: boolean;
|
|
62
|
+
style?: any;
|
|
63
|
+
"data-testid"?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
declare var Tooltip: React.ForwardRefExoticComponent<{
|
|
67
|
+
...TooltipProps,
|
|
68
|
+
...React.RefAttributes<any>,
|
|
69
|
+
}>;
|
|
70
|
+
export type { TooltipPlacement, TooltipProps, TooltipSize };
|
|
71
|
+
declare export { Tooltip };
|