@zag-js/popover 0.0.0-dev-20221212111455 → 0.0.0-dev-20221213123137
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
|
@@ -853,7 +853,7 @@ declare const anatomy: Omit<{
|
|
|
853
853
|
}>;
|
|
854
854
|
}, "parts">;
|
|
855
855
|
|
|
856
|
-
|
|
856
|
+
type ElementIds = Partial<{
|
|
857
857
|
anchor: string;
|
|
858
858
|
trigger: string;
|
|
859
859
|
content: string;
|
|
@@ -861,7 +861,7 @@ declare type ElementIds = Partial<{
|
|
|
861
861
|
description: string;
|
|
862
862
|
closeTrigger: string;
|
|
863
863
|
}>;
|
|
864
|
-
|
|
864
|
+
type PublicContext = DismissableElementHandlers & CommonProperties & {
|
|
865
865
|
/**
|
|
866
866
|
* The ids of the elements in the popover. Useful for composition.
|
|
867
867
|
*/
|
|
@@ -910,26 +910,26 @@ declare type PublicContext = DismissableElementHandlers & CommonProperties & {
|
|
|
910
910
|
*/
|
|
911
911
|
defaultOpen?: boolean;
|
|
912
912
|
};
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
914
|
+
type ComputedContext = Readonly<{
|
|
915
915
|
/**
|
|
916
916
|
* @computed
|
|
917
917
|
* The computed value of `portalled`
|
|
918
918
|
*/
|
|
919
919
|
currentPortalled: boolean;
|
|
920
920
|
}>;
|
|
921
|
-
|
|
921
|
+
type PrivateContext = Context<{
|
|
922
922
|
/**
|
|
923
923
|
* Whether to prevent returning focus to the trigger
|
|
924
924
|
*/
|
|
925
925
|
focusTriggerOnClose?: boolean;
|
|
926
926
|
}>;
|
|
927
|
-
|
|
928
|
-
|
|
927
|
+
type MachineContext = PublicContext & ComputedContext & PrivateContext;
|
|
928
|
+
type MachineState = {
|
|
929
929
|
value: "unknown" | "open" | "closed";
|
|
930
930
|
};
|
|
931
|
-
|
|
932
|
-
|
|
931
|
+
type State = StateMachine.State<MachineContext, MachineState>;
|
|
932
|
+
type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
933
933
|
|
|
934
934
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
935
935
|
portalled: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/popover",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20221213123137",
|
|
4
4
|
"description": "Core logic for the popover widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"focus-trap": "7.2.0",
|
|
33
33
|
"@zag-js/anatomy": "0.1.1",
|
|
34
34
|
"@zag-js/aria-hidden": "0.2.0",
|
|
35
|
-
"@zag-js/core": "0.
|
|
35
|
+
"@zag-js/core": "0.0.0-dev-20221213123137",
|
|
36
36
|
"@zag-js/dismissable": "0.2.0",
|
|
37
|
-
"@zag-js/popper": "0.
|
|
37
|
+
"@zag-js/popper": "0.0.0-dev-20221213123137",
|
|
38
38
|
"@zag-js/remove-scroll": "0.2.0",
|
|
39
39
|
"@zag-js/types": "0.3.1"
|
|
40
40
|
},
|