@zag-js/tooltip 0.0.0-dev-20221212111136 → 0.0.0-dev-20221212123305
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 +9 -9
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -852,11 +852,11 @@ declare const anatomy: Omit<{
|
|
|
852
852
|
}>;
|
|
853
853
|
}, "parts">;
|
|
854
854
|
|
|
855
|
-
|
|
855
|
+
type ElementIds = Partial<{
|
|
856
856
|
trigger: string;
|
|
857
857
|
content: string;
|
|
858
858
|
}>;
|
|
859
|
-
|
|
859
|
+
type PublicContext = CommonProperties & {
|
|
860
860
|
/**
|
|
861
861
|
* The ids of the elements in the tooltip. Useful for composition.
|
|
862
862
|
*/
|
|
@@ -908,21 +908,21 @@ declare type PublicContext = CommonProperties & {
|
|
|
908
908
|
*/
|
|
909
909
|
disabled?: boolean;
|
|
910
910
|
};
|
|
911
|
-
|
|
912
|
-
|
|
911
|
+
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
912
|
+
type ComputedContext = Readonly<{
|
|
913
913
|
/**
|
|
914
914
|
* @computed Whether an `aria-label` is set.
|
|
915
915
|
*/
|
|
916
916
|
readonly hasAriaLabel: boolean;
|
|
917
917
|
}>;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
918
|
+
type PrivateContext = RootProperties & {};
|
|
919
|
+
type MachineContext = PublicContext & ComputedContext & PrivateContext;
|
|
920
|
+
type MachineState = {
|
|
921
921
|
value: "unknown" | "opening" | "open" | "closing" | "closed";
|
|
922
922
|
tags: "open" | "closed";
|
|
923
923
|
};
|
|
924
|
-
|
|
925
|
-
|
|
924
|
+
type State = StateMachine.State<MachineContext, MachineState>;
|
|
925
|
+
type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
926
926
|
|
|
927
927
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
928
928
|
isOpen: boolean;
|
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-20221212123305",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@zag-js/anatomy": "0.1.1",
|
|
33
|
-
"@zag-js/core": "0.
|
|
34
|
-
"@zag-js/popper": "0.
|
|
33
|
+
"@zag-js/core": "0.0.0-dev-20221212123305",
|
|
34
|
+
"@zag-js/popper": "0.0.0-dev-20221212123305",
|
|
35
35
|
"@zag-js/types": "0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|