@zag-js/popover 1.0.0 → 1.0.1
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ export { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from
|
|
|
3
3
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
4
4
|
import { CommonProperties, DirectionProperty, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
|
|
5
5
|
import * as _zag_js_core from '@zag-js/core';
|
|
6
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
6
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
7
7
|
import { PositioningOptions, Placement } from '@zag-js/popper';
|
|
8
8
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
9
9
|
|
|
@@ -114,6 +114,7 @@ interface PopoverSchema {
|
|
|
114
114
|
guard: string;
|
|
115
115
|
}
|
|
116
116
|
type PopoverService = Service<PopoverSchema>;
|
|
117
|
+
type PopoverMachine = Machine<PopoverSchema>;
|
|
117
118
|
interface PopoverApi<T extends PropTypes = PropTypes> {
|
|
118
119
|
/**
|
|
119
120
|
* Whether the popover is portalled.
|
|
@@ -145,9 +146,9 @@ interface PopoverApi<T extends PropTypes = PropTypes> {
|
|
|
145
146
|
|
|
146
147
|
declare function connect<T extends PropTypes>(service: PopoverService, normalize: NormalizeProps<T>): PopoverApi<T>;
|
|
147
148
|
|
|
148
|
-
declare const machine: _zag_js_core.
|
|
149
|
+
declare const machine: _zag_js_core.Machine<PopoverSchema>;
|
|
149
150
|
|
|
150
151
|
declare const props: (keyof PopoverProps)[];
|
|
151
152
|
declare const splitProps: <Props extends Partial<PopoverProps>>(props: Props) => [Partial<PopoverProps>, Omit<Props, keyof PopoverProps>];
|
|
152
153
|
|
|
153
|
-
export { type PopoverApi as Api, type ElementIds, type OpenChangeDetails, type PopoverProps as Props, type PopoverService as Service, anatomy, connect, machine, props, splitProps };
|
|
154
|
+
export { type PopoverApi as Api, type ElementIds, type PopoverMachine as Machine, type OpenChangeDetails, type PopoverProps as Props, type PopoverService as Service, anatomy, connect, machine, props, splitProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from
|
|
|
3
3
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
4
4
|
import { CommonProperties, DirectionProperty, PropTypes, RequiredBy, NormalizeProps } from '@zag-js/types';
|
|
5
5
|
import * as _zag_js_core from '@zag-js/core';
|
|
6
|
-
import { Service, EventObject } from '@zag-js/core';
|
|
6
|
+
import { Service, Machine, EventObject } from '@zag-js/core';
|
|
7
7
|
import { PositioningOptions, Placement } from '@zag-js/popper';
|
|
8
8
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
9
9
|
|
|
@@ -114,6 +114,7 @@ interface PopoverSchema {
|
|
|
114
114
|
guard: string;
|
|
115
115
|
}
|
|
116
116
|
type PopoverService = Service<PopoverSchema>;
|
|
117
|
+
type PopoverMachine = Machine<PopoverSchema>;
|
|
117
118
|
interface PopoverApi<T extends PropTypes = PropTypes> {
|
|
118
119
|
/**
|
|
119
120
|
* Whether the popover is portalled.
|
|
@@ -145,9 +146,9 @@ interface PopoverApi<T extends PropTypes = PropTypes> {
|
|
|
145
146
|
|
|
146
147
|
declare function connect<T extends PropTypes>(service: PopoverService, normalize: NormalizeProps<T>): PopoverApi<T>;
|
|
147
148
|
|
|
148
|
-
declare const machine: _zag_js_core.
|
|
149
|
+
declare const machine: _zag_js_core.Machine<PopoverSchema>;
|
|
149
150
|
|
|
150
151
|
declare const props: (keyof PopoverProps)[];
|
|
151
152
|
declare const splitProps: <Props extends Partial<PopoverProps>>(props: Props) => [Partial<PopoverProps>, Omit<Props, keyof PopoverProps>];
|
|
152
153
|
|
|
153
|
-
export { type PopoverApi as Api, type ElementIds, type OpenChangeDetails, type PopoverProps as Props, type PopoverService as Service, anatomy, connect, machine, props, splitProps };
|
|
154
|
+
export { type PopoverApi as Api, type ElementIds, type PopoverMachine as Machine, type OpenChangeDetails, type PopoverProps as Props, type PopoverService as Service, anatomy, connect, machine, props, splitProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/popover",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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": "1.0.
|
|
30
|
-
"@zag-js/aria-hidden": "1.0.
|
|
31
|
-
"@zag-js/core": "1.0.
|
|
32
|
-
"@zag-js/dom-query": "1.0.
|
|
33
|
-
"@zag-js/utils": "1.0.
|
|
34
|
-
"@zag-js/dismissable": "1.0.
|
|
35
|
-
"@zag-js/popper": "1.0.
|
|
36
|
-
"@zag-js/remove-scroll": "1.0.
|
|
37
|
-
"@zag-js/types": "1.0.
|
|
38
|
-
"@zag-js/focus-trap": "1.0.
|
|
29
|
+
"@zag-js/anatomy": "1.0.1",
|
|
30
|
+
"@zag-js/aria-hidden": "1.0.1",
|
|
31
|
+
"@zag-js/core": "1.0.1",
|
|
32
|
+
"@zag-js/dom-query": "1.0.1",
|
|
33
|
+
"@zag-js/utils": "1.0.1",
|
|
34
|
+
"@zag-js/dismissable": "1.0.1",
|
|
35
|
+
"@zag-js/popper": "1.0.1",
|
|
36
|
+
"@zag-js/remove-scroll": "1.0.1",
|
|
37
|
+
"@zag-js/types": "1.0.1",
|
|
38
|
+
"@zag-js/focus-trap": "1.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"clean-package": "2.2.0"
|