@zag-js/popover 0.0.0-dev-20230222120620 → 0.0.0-dev-20230223072304

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.
@@ -18,11 +18,23 @@ function connect(state, send, normalize) {
18
18
  placement: currentPlacement
19
19
  });
20
20
  return {
21
+ /**
22
+ * Whether the popover is portalled
23
+ */
21
24
  portalled,
25
+ /**
26
+ * Whether the popover is open
27
+ */
22
28
  isOpen,
29
+ /**
30
+ * Function to open the popover
31
+ */
23
32
  open() {
24
33
  send("OPEN");
25
34
  },
35
+ /**
36
+ * Function to close the popover
37
+ */
26
38
  close() {
27
39
  send("CLOSE");
28
40
  },
package/dist/index.js CHANGED
@@ -92,11 +92,23 @@ function connect(state, send, normalize) {
92
92
  placement: currentPlacement
93
93
  });
94
94
  return {
95
+ /**
96
+ * Whether the popover is portalled
97
+ */
95
98
  portalled,
99
+ /**
100
+ * Whether the popover is open
101
+ */
96
102
  isOpen,
103
+ /**
104
+ * Function to open the popover
105
+ */
97
106
  open() {
98
107
  send("OPEN");
99
108
  },
109
+ /**
110
+ * Function to close the popover
111
+ */
100
112
  close() {
101
113
  send("CLOSE");
102
114
  },
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  connect
3
- } from "./chunk-5BYTQ7U3.mjs";
3
+ } from "./chunk-GKHXQZZB.mjs";
4
4
  import {
5
5
  anatomy
6
6
  } from "./chunk-KTOPDXGV.mjs";
@@ -5,9 +5,21 @@ import '@zag-js/dismissable';
5
5
  import '@zag-js/popper';
6
6
 
7
7
  declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
8
+ /**
9
+ * Whether the popover is portalled
10
+ */
8
11
  portalled: boolean;
12
+ /**
13
+ * Whether the popover is open
14
+ */
9
15
  isOpen: boolean;
16
+ /**
17
+ * Function to open the popover
18
+ */
10
19
  open(): void;
20
+ /**
21
+ * Function to close the popover
22
+ */
11
23
  close(): void;
12
24
  arrowProps: T["element"];
13
25
  arrowTipProps: T["element"];
@@ -88,11 +88,23 @@ function connect(state, send, normalize) {
88
88
  placement: currentPlacement
89
89
  });
90
90
  return {
91
+ /**
92
+ * Whether the popover is portalled
93
+ */
91
94
  portalled,
95
+ /**
96
+ * Whether the popover is open
97
+ */
92
98
  isOpen,
99
+ /**
100
+ * Function to open the popover
101
+ */
93
102
  open() {
94
103
  send("OPEN");
95
104
  },
105
+ /**
106
+ * Function to close the popover
107
+ */
96
108
  close() {
97
109
  send("CLOSE");
98
110
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  connect
3
- } from "./chunk-5BYTQ7U3.mjs";
3
+ } from "./chunk-GKHXQZZB.mjs";
4
4
  import "./chunk-KTOPDXGV.mjs";
5
5
  import "./chunk-4IGGT6KB.mjs";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/popover",
3
- "version": "0.0.0-dev-20230222120620",
3
+ "version": "0.0.0-dev-20230223072304",
4
4
  "description": "Core logic for the popover widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,17 +26,17 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "focus-trap": "7.2.0",
29
+ "focus-trap": "7.3.1",
30
30
  "@zag-js/anatomy": "0.1.4",
31
31
  "@zag-js/aria-hidden": "0.2.2",
32
- "@zag-js/core": "0.0.0-dev-20230222120620",
33
- "@zag-js/dom-query": "0.0.0-dev-20230222120620",
34
- "@zag-js/dom-event": "0.0.0-dev-20230222120620",
32
+ "@zag-js/core": "0.0.0-dev-20230223072304",
33
+ "@zag-js/dom-query": "0.0.0-dev-20230223072304",
34
+ "@zag-js/dom-event": "0.0.0-dev-20230223072304",
35
35
  "@zag-js/utils": "0.3.3",
36
- "@zag-js/dismissable": "0.0.0-dev-20230222120620",
37
- "@zag-js/tabbable": "0.0.0-dev-20230222120620",
38
- "@zag-js/popper": "0.0.0-dev-20230222120620",
39
- "@zag-js/remove-scroll": "0.0.0-dev-20230222120620",
36
+ "@zag-js/dismissable": "0.0.0-dev-20230223072304",
37
+ "@zag-js/tabbable": "0.0.0-dev-20230223072304",
38
+ "@zag-js/popper": "0.0.0-dev-20230223072304",
39
+ "@zag-js/remove-scroll": "0.0.0-dev-20230223072304",
40
40
  "@zag-js/types": "0.3.4"
41
41
  },
42
42
  "devDependencies": {