@zag-js/tooltip 0.0.0-dev-20230222120620 → 0.0.0-dev-20230222181847
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.
|
@@ -24,13 +24,25 @@ function connect(state, send, normalize) {
|
|
|
24
24
|
placement: state.context.currentPlacement
|
|
25
25
|
});
|
|
26
26
|
return {
|
|
27
|
+
/**
|
|
28
|
+
* Whether the tooltip is open.
|
|
29
|
+
*/
|
|
27
30
|
isOpen,
|
|
31
|
+
/**
|
|
32
|
+
* Function to open the tooltip.
|
|
33
|
+
*/
|
|
28
34
|
open() {
|
|
29
35
|
send("OPEN");
|
|
30
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* Function to close the tooltip.
|
|
39
|
+
*/
|
|
31
40
|
close() {
|
|
32
41
|
send("CLOSE");
|
|
33
42
|
},
|
|
43
|
+
/**
|
|
44
|
+
* Returns the animation state of the tooltip.
|
|
45
|
+
*/
|
|
34
46
|
getAnimationState() {
|
|
35
47
|
return {
|
|
36
48
|
enter: store.prevId === null && id === store.id,
|
package/dist/index.js
CHANGED
|
@@ -74,13 +74,25 @@ function connect(state, send, normalize) {
|
|
|
74
74
|
placement: state.context.currentPlacement
|
|
75
75
|
});
|
|
76
76
|
return {
|
|
77
|
+
/**
|
|
78
|
+
* Whether the tooltip is open.
|
|
79
|
+
*/
|
|
77
80
|
isOpen,
|
|
81
|
+
/**
|
|
82
|
+
* Function to open the tooltip.
|
|
83
|
+
*/
|
|
78
84
|
open() {
|
|
79
85
|
send("OPEN");
|
|
80
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* Function to close the tooltip.
|
|
89
|
+
*/
|
|
81
90
|
close() {
|
|
82
91
|
send("CLOSE");
|
|
83
92
|
},
|
|
93
|
+
/**
|
|
94
|
+
* Returns the animation state of the tooltip.
|
|
95
|
+
*/
|
|
84
96
|
getAnimationState() {
|
|
85
97
|
return {
|
|
86
98
|
enter: store.prevId === null && id === store.id,
|
package/dist/index.mjs
CHANGED
|
@@ -4,9 +4,21 @@ import '@zag-js/core';
|
|
|
4
4
|
import '@zag-js/popper';
|
|
5
5
|
|
|
6
6
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the tooltip is open.
|
|
9
|
+
*/
|
|
7
10
|
isOpen: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Function to open the tooltip.
|
|
13
|
+
*/
|
|
8
14
|
open(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Function to close the tooltip.
|
|
17
|
+
*/
|
|
9
18
|
close(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the animation state of the tooltip.
|
|
21
|
+
*/
|
|
10
22
|
getAnimationState(): {
|
|
11
23
|
enter: boolean;
|
|
12
24
|
exit: boolean;
|
package/dist/tooltip.connect.js
CHANGED
|
@@ -70,13 +70,25 @@ function connect(state, send, normalize) {
|
|
|
70
70
|
placement: state.context.currentPlacement
|
|
71
71
|
});
|
|
72
72
|
return {
|
|
73
|
+
/**
|
|
74
|
+
* Whether the tooltip is open.
|
|
75
|
+
*/
|
|
73
76
|
isOpen,
|
|
77
|
+
/**
|
|
78
|
+
* Function to open the tooltip.
|
|
79
|
+
*/
|
|
74
80
|
open() {
|
|
75
81
|
send("OPEN");
|
|
76
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* Function to close the tooltip.
|
|
85
|
+
*/
|
|
77
86
|
close() {
|
|
78
87
|
send("CLOSE");
|
|
79
88
|
},
|
|
89
|
+
/**
|
|
90
|
+
* Returns the animation state of the tooltip.
|
|
91
|
+
*/
|
|
80
92
|
getAnimationState() {
|
|
81
93
|
return {
|
|
82
94
|
enter: store.prevId === null && id === store.id,
|
package/dist/tooltip.connect.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tooltip",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230222181847",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@zag-js/anatomy": "0.1.4",
|
|
30
|
-
"@zag-js/core": "0.0.0-dev-
|
|
31
|
-
"@zag-js/popper": "0.0.0-dev-
|
|
32
|
-
"@zag-js/dom-query": "0.0.0-dev-
|
|
33
|
-
"@zag-js/dom-event": "0.0.0-dev-
|
|
30
|
+
"@zag-js/core": "0.0.0-dev-20230222181847",
|
|
31
|
+
"@zag-js/popper": "0.0.0-dev-20230222181847",
|
|
32
|
+
"@zag-js/dom-query": "0.0.0-dev-20230222181847",
|
|
33
|
+
"@zag-js/dom-event": "0.0.0-dev-20230222181847",
|
|
34
34
|
"@zag-js/utils": "0.3.3",
|
|
35
|
-
"@zag-js/visually-hidden": "0.0.0-dev-
|
|
35
|
+
"@zag-js/visually-hidden": "0.0.0-dev-20230222181847",
|
|
36
36
|
"@zag-js/types": "0.3.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|