@zag-js/popover 0.1.4 → 0.1.7
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.js +61 -291
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +61 -291
- package/dist/index.mjs.map +3 -3
- package/dist/popover.connect.d.ts.map +1 -1
- package/dist/popover.dom.d.ts.map +1 -1
- package/dist/popover.machine.d.ts.map +1 -1
- package/dist/popover.types.d.ts +10 -13
- package/dist/popover.types.d.ts.map +1 -1
- package/package.json +7 -6
package/dist/popover.types.d.ts
CHANGED
|
@@ -57,6 +57,10 @@ declare type PublicContext = {
|
|
|
57
57
|
* The user provided options used to position the popover content
|
|
58
58
|
*/
|
|
59
59
|
positioning: PositioningOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to open the popover on page load
|
|
62
|
+
*/
|
|
63
|
+
open?: boolean;
|
|
60
64
|
};
|
|
61
65
|
export declare type UserDefinedContext = Partial<PublicContext>;
|
|
62
66
|
declare type ComputedContext = Readonly<{
|
|
@@ -69,20 +73,13 @@ declare type ComputedContext = Readonly<{
|
|
|
69
73
|
declare type PrivateContext = Context<{
|
|
70
74
|
/**
|
|
71
75
|
* @internal
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
isTitleRendered: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* Whether the dialog description is rendered
|
|
78
|
-
*/
|
|
79
|
-
isDescriptionRendered: boolean;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @internal
|
|
83
|
-
* Whether the reference element is rendered to be used as the positioning reference
|
|
76
|
+
* The elements that are rendered on mount
|
|
84
77
|
*/
|
|
85
|
-
|
|
78
|
+
renderedElements: {
|
|
79
|
+
title: boolean;
|
|
80
|
+
description: boolean;
|
|
81
|
+
anchor: boolean;
|
|
82
|
+
};
|
|
86
83
|
/**
|
|
87
84
|
* @internal
|
|
88
85
|
* The computed placement (maybe different from initial placement)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.types.d.ts","sourceRoot":"","sources":["../src/popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,CAAC,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"popover.types.d.ts","sourceRoot":"","sources":["../src/popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,CAAC,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE1D,aAAK,UAAU,GAAG,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAEF,aAAK,aAAa,GAAG;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,CAAC,MAAM,YAAY,CAAC,CAAA;IACpD;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,WAAW,EAAE,kBAAkB,CAAA;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,oBAAY,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AAEvD,aAAK,eAAe,GAAG,QAAQ,CAAC;IAC9B;;;OAGG;IACH,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAC,CAAA;AAEF,aAAK,cAAc,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,gBAAgB,EAAE;QAChB,KAAK,EAAE,OAAO,CAAA;QACd,WAAW,EAAE,OAAO,CAAA;QACpB,MAAM,EAAE,OAAO,CAAA;KAChB,CAAA;IACD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAC,CAAA;AAEF,oBAAY,cAAc,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,CAAA;AAE7E,oBAAY,YAAY,GAAG;IACzB,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAA;CACrC,CAAA;AAED,oBAAY,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,YAAY,CAAC,CAAA;AAEzD,oBAAY,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/popover",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Core logic for the popover widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/core": "0.1.4",
|
|
33
|
-
"@zag-js/dom-utils": "0.1.1",
|
|
34
|
-
"@zag-js/types": "0.1.1",
|
|
35
|
-
"@zag-js/popper": "0.1.2",
|
|
36
|
-
"@zag-js/utils": "0.1.1",
|
|
37
32
|
"@zag-js/aria-hidden": "0.1.0",
|
|
33
|
+
"@zag-js/core": "0.1.6",
|
|
34
|
+
"@zag-js/dom-utils": "0.1.4",
|
|
35
|
+
"@zag-js/popper": "0.1.5",
|
|
36
|
+
"@zag-js/remove-scroll": "0.1.0",
|
|
37
|
+
"@zag-js/types": "0.1.2",
|
|
38
|
+
"@zag-js/utils": "0.1.2",
|
|
38
39
|
"focus-trap": "^6.7.1"
|
|
39
40
|
},
|
|
40
41
|
"scripts": {
|