@zag-js/tooltip 0.74.2 → 0.75.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.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
20
20
|
/**
|
|
21
21
|
* The ids of the elements in the tooltip. Useful for composition.
|
|
22
22
|
*/
|
|
23
|
-
ids?: ElementIds;
|
|
23
|
+
ids?: ElementIds | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* The `id` of the tooltip.
|
|
26
26
|
*/
|
|
@@ -44,17 +44,17 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
44
44
|
* Whether to close the tooltip when the Escape key is pressed.
|
|
45
45
|
* @default true
|
|
46
46
|
*/
|
|
47
|
-
closeOnEscape?: boolean;
|
|
47
|
+
closeOnEscape?: boolean | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Whether the tooltip should close on scroll
|
|
50
50
|
* @default true
|
|
51
51
|
*/
|
|
52
|
-
closeOnScroll?: boolean;
|
|
52
|
+
closeOnScroll?: boolean | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Whether the tooltip should close on click
|
|
55
55
|
* @default true
|
|
56
56
|
*/
|
|
57
|
-
closeOnClick?: boolean;
|
|
57
|
+
closeOnClick?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Whether the tooltip's content is interactive.
|
|
60
60
|
* In this mode, the tooltip will remain open when user hovers over the content.
|
|
@@ -70,7 +70,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
70
70
|
/**
|
|
71
71
|
* Custom label for the tooltip.
|
|
72
72
|
*/
|
|
73
|
-
"aria-label"?: string;
|
|
73
|
+
"aria-label"?: string | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* The user provided options used to position the popover content
|
|
76
76
|
*/
|
|
@@ -78,15 +78,15 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
78
78
|
/**
|
|
79
79
|
* Whether the tooltip is disabled
|
|
80
80
|
*/
|
|
81
|
-
disabled?: boolean;
|
|
81
|
+
disabled?: boolean | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Whether the tooltip is open
|
|
84
84
|
*/
|
|
85
|
-
open?: boolean;
|
|
85
|
+
open?: boolean | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* Whether the tooltip is controlled by the user
|
|
88
88
|
*/
|
|
89
|
-
"open.controlled"?: boolean;
|
|
89
|
+
"open.controlled"?: boolean | undefined;
|
|
90
90
|
}
|
|
91
91
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
92
92
|
type ComputedContext = Readonly<{
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
20
20
|
/**
|
|
21
21
|
* The ids of the elements in the tooltip. Useful for composition.
|
|
22
22
|
*/
|
|
23
|
-
ids?: ElementIds;
|
|
23
|
+
ids?: ElementIds | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* The `id` of the tooltip.
|
|
26
26
|
*/
|
|
@@ -44,17 +44,17 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
44
44
|
* Whether to close the tooltip when the Escape key is pressed.
|
|
45
45
|
* @default true
|
|
46
46
|
*/
|
|
47
|
-
closeOnEscape?: boolean;
|
|
47
|
+
closeOnEscape?: boolean | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Whether the tooltip should close on scroll
|
|
50
50
|
* @default true
|
|
51
51
|
*/
|
|
52
|
-
closeOnScroll?: boolean;
|
|
52
|
+
closeOnScroll?: boolean | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Whether the tooltip should close on click
|
|
55
55
|
* @default true
|
|
56
56
|
*/
|
|
57
|
-
closeOnClick?: boolean;
|
|
57
|
+
closeOnClick?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Whether the tooltip's content is interactive.
|
|
60
60
|
* In this mode, the tooltip will remain open when user hovers over the content.
|
|
@@ -70,7 +70,7 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
70
70
|
/**
|
|
71
71
|
* Custom label for the tooltip.
|
|
72
72
|
*/
|
|
73
|
-
"aria-label"?: string;
|
|
73
|
+
"aria-label"?: string | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* The user provided options used to position the popover content
|
|
76
76
|
*/
|
|
@@ -78,15 +78,15 @@ interface PublicContext extends DirectionProperty, CommonProperties {
|
|
|
78
78
|
/**
|
|
79
79
|
* Whether the tooltip is disabled
|
|
80
80
|
*/
|
|
81
|
-
disabled?: boolean;
|
|
81
|
+
disabled?: boolean | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Whether the tooltip is open
|
|
84
84
|
*/
|
|
85
|
-
open?: boolean;
|
|
85
|
+
open?: boolean | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* Whether the tooltip is controlled by the user
|
|
88
88
|
*/
|
|
89
|
-
"open.controlled"?: boolean;
|
|
89
|
+
"open.controlled"?: boolean | undefined;
|
|
90
90
|
}
|
|
91
91
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
92
92
|
type ComputedContext = Readonly<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tooltip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "0.
|
|
30
|
-
"@zag-js/core": "0.
|
|
31
|
-
"@zag-js/popper": "0.
|
|
32
|
-
"@zag-js/focus-visible": "0.
|
|
33
|
-
"@zag-js/dom-query": "0.
|
|
34
|
-
"@zag-js/dom-event": "0.
|
|
35
|
-
"@zag-js/utils": "0.
|
|
36
|
-
"@zag-js/types": "0.
|
|
29
|
+
"@zag-js/anatomy": "0.75.0",
|
|
30
|
+
"@zag-js/core": "0.75.0",
|
|
31
|
+
"@zag-js/popper": "0.75.0",
|
|
32
|
+
"@zag-js/focus-visible": "0.75.0",
|
|
33
|
+
"@zag-js/dom-query": "0.75.0",
|
|
34
|
+
"@zag-js/dom-event": "0.75.0",
|
|
35
|
+
"@zag-js/utils": "0.75.0",
|
|
36
|
+
"@zag-js/types": "0.75.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"clean-package": "2.2.0"
|