@zag-js/popover 0.80.0 → 0.81.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 +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { Machine, StateMachine } from '@zag-js/core';
|
|
|
7
7
|
import { PositioningOptions } from '@zag-js/popper';
|
|
8
8
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
9
9
|
|
|
10
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"
|
|
10
|
+
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"content" | "title" | "anchor" | "arrow" | "arrowTip" | "trigger" | "indicator" | "positioner" | "description" | "closeTrigger">;
|
|
11
11
|
|
|
12
12
|
interface OpenChangeDetails {
|
|
13
13
|
open: boolean;
|
|
@@ -133,7 +133,7 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
133
133
|
|
|
134
134
|
declare function machine(userContext: UserDefinedContext): _zag_js_core.Machine<MachineContext, MachineState, _zag_js_core.StateMachine.AnyEventObject>;
|
|
135
135
|
|
|
136
|
-
declare const props: ("
|
|
137
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "
|
|
136
|
+
declare const props: ("open" | "dir" | "id" | "autoFocus" | "getRootNode" | "onFocusOutside" | "onPointerDownOutside" | "onInteractOutside" | "onEscapeKeyDown" | "ids" | "modal" | "portalled" | "initialFocusEl" | "closeOnInteractOutside" | "closeOnEscape" | "onOpenChange" | "positioning" | "open.controlled" | "persistentElements")[];
|
|
137
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "open" | "dir" | "id" | "autoFocus" | "getRootNode" | "onFocusOutside" | "onPointerDownOutside" | "onInteractOutside" | "onEscapeKeyDown" | "ids" | "modal" | "portalled" | "initialFocusEl" | "closeOnInteractOutside" | "closeOnEscape" | "onOpenChange" | "positioning" | "open.controlled" | "persistentElements">];
|
|
138
138
|
|
|
139
139
|
export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type OpenChangeDetails, type Service, anatomy, connect, machine, props, splitProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Machine, StateMachine } from '@zag-js/core';
|
|
|
7
7
|
import { PositioningOptions } from '@zag-js/popper';
|
|
8
8
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
9
9
|
|
|
10
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"
|
|
10
|
+
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"content" | "title" | "anchor" | "arrow" | "arrowTip" | "trigger" | "indicator" | "positioner" | "description" | "closeTrigger">;
|
|
11
11
|
|
|
12
12
|
interface OpenChangeDetails {
|
|
13
13
|
open: boolean;
|
|
@@ -133,7 +133,7 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
133
133
|
|
|
134
134
|
declare function machine(userContext: UserDefinedContext): _zag_js_core.Machine<MachineContext, MachineState, _zag_js_core.StateMachine.AnyEventObject>;
|
|
135
135
|
|
|
136
|
-
declare const props: ("
|
|
137
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "
|
|
136
|
+
declare const props: ("open" | "dir" | "id" | "autoFocus" | "getRootNode" | "onFocusOutside" | "onPointerDownOutside" | "onInteractOutside" | "onEscapeKeyDown" | "ids" | "modal" | "portalled" | "initialFocusEl" | "closeOnInteractOutside" | "closeOnEscape" | "onOpenChange" | "positioning" | "open.controlled" | "persistentElements")[];
|
|
137
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "open" | "dir" | "id" | "autoFocus" | "getRootNode" | "onFocusOutside" | "onPointerDownOutside" | "onInteractOutside" | "onEscapeKeyDown" | "ids" | "modal" | "portalled" | "initialFocusEl" | "closeOnInteractOutside" | "closeOnEscape" | "onOpenChange" | "positioning" | "open.controlled" | "persistentElements">];
|
|
138
138
|
|
|
139
139
|
export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type OpenChangeDetails, type Service, anatomy, connect, machine, props, splitProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/popover",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"description": "Core logic for the popover widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "0.
|
|
30
|
-
"@zag-js/aria-hidden": "0.
|
|
31
|
-
"@zag-js/core": "0.
|
|
32
|
-
"@zag-js/dom-query": "0.
|
|
33
|
-
"@zag-js/utils": "0.
|
|
34
|
-
"@zag-js/dismissable": "0.
|
|
35
|
-
"@zag-js/popper": "0.
|
|
36
|
-
"@zag-js/remove-scroll": "0.
|
|
37
|
-
"@zag-js/types": "0.
|
|
38
|
-
"@zag-js/focus-trap": "0.
|
|
29
|
+
"@zag-js/anatomy": "0.81.0",
|
|
30
|
+
"@zag-js/aria-hidden": "0.81.0",
|
|
31
|
+
"@zag-js/core": "0.81.0",
|
|
32
|
+
"@zag-js/dom-query": "0.81.0",
|
|
33
|
+
"@zag-js/utils": "0.81.0",
|
|
34
|
+
"@zag-js/dismissable": "0.81.0",
|
|
35
|
+
"@zag-js/popper": "0.81.0",
|
|
36
|
+
"@zag-js/remove-scroll": "0.81.0",
|
|
37
|
+
"@zag-js/types": "0.81.0",
|
|
38
|
+
"@zag-js/focus-trap": "0.81.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"clean-package": "2.2.0"
|