@zag-js/popper 1.5.0 → 1.6.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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -156,6 +156,7 @@ declare function getPlacementStyles(options?: Pick<PositioningOptions, "placemen
|
|
|
156
156
|
readonly width: "var(--reference-width)" | undefined;
|
|
157
157
|
readonly maxWidth: "var(--available-width)" | undefined;
|
|
158
158
|
readonly maxHeight: "var(--available-height)" | undefined;
|
|
159
|
+
readonly pointerEvents: "none" | undefined;
|
|
159
160
|
readonly top: "0px";
|
|
160
161
|
readonly left: "0px";
|
|
161
162
|
readonly transform: "translate3d(var(--x), var(--y), 0)" | "translate3d(0, -100vh, 0)";
|
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ declare function getPlacementStyles(options?: Pick<PositioningOptions, "placemen
|
|
|
156
156
|
readonly width: "var(--reference-width)" | undefined;
|
|
157
157
|
readonly maxWidth: "var(--available-width)" | undefined;
|
|
158
158
|
readonly maxHeight: "var(--available-height)" | undefined;
|
|
159
|
+
readonly pointerEvents: "none" | undefined;
|
|
159
160
|
readonly top: "0px";
|
|
160
161
|
readonly left: "0px";
|
|
161
162
|
readonly transform: "translate3d(var(--x), var(--y), 0)" | "translate3d(0, -100vh, 0)";
|
package/dist/index.js
CHANGED
|
@@ -314,6 +314,7 @@ function getPlacementStyles(options = {}) {
|
|
|
314
314
|
width: sameWidth ? "var(--reference-width)" : void 0,
|
|
315
315
|
maxWidth: fitViewport ? "var(--available-width)" : void 0,
|
|
316
316
|
maxHeight: fitViewport ? "var(--available-height)" : void 0,
|
|
317
|
+
pointerEvents: !placement ? "none" : void 0,
|
|
317
318
|
top: "0px",
|
|
318
319
|
left: "0px",
|
|
319
320
|
// move off-screen if placement is not defined
|
package/dist/index.mjs
CHANGED
|
@@ -312,6 +312,7 @@ function getPlacementStyles(options = {}) {
|
|
|
312
312
|
width: sameWidth ? "var(--reference-width)" : void 0,
|
|
313
313
|
maxWidth: fitViewport ? "var(--available-width)" : void 0,
|
|
314
314
|
maxHeight: fitViewport ? "var(--available-height)" : void 0,
|
|
315
|
+
pointerEvents: !placement ? "none" : void 0,
|
|
315
316
|
top: "0px",
|
|
316
317
|
left: "0px",
|
|
317
318
|
// move off-screen if placement is not defined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/popper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Dynamic positioning logic for ui machines",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@floating-ui/dom": "1.6.13",
|
|
26
|
-
"@zag-js/dom-query": "1.
|
|
27
|
-
"@zag-js/utils": "1.
|
|
26
|
+
"@zag-js/dom-query": "1.6.1",
|
|
27
|
+
"@zag-js/utils": "1.6.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"clean-package": "2.2.0"
|