@zag-js/toast 1.28.0 → 1.29.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.js CHANGED
@@ -52,6 +52,10 @@ function getGroupPlacementStyle(service, placement) {
52
52
  flexDirection: "column",
53
53
  "--gap": `${gap}px`,
54
54
  "--first-height": `${heights[0]?.height || 0}px`,
55
+ "--viewport-offset-left": computedOffset.left,
56
+ "--viewport-offset-right": computedOffset.right,
57
+ "--viewport-offset-top": computedOffset.top,
58
+ "--viewport-offset-bottom": computedOffset.bottom,
55
59
  zIndex: domQuery.MAX_Z_INDEX
56
60
  };
57
61
  let alignItems = "center";
package/dist/index.mjs CHANGED
@@ -50,6 +50,10 @@ function getGroupPlacementStyle(service, placement) {
50
50
  flexDirection: "column",
51
51
  "--gap": `${gap}px`,
52
52
  "--first-height": `${heights[0]?.height || 0}px`,
53
+ "--viewport-offset-left": computedOffset.left,
54
+ "--viewport-offset-right": computedOffset.right,
55
+ "--viewport-offset-top": computedOffset.top,
56
+ "--viewport-offset-bottom": computedOffset.bottom,
53
57
  zIndex: MAX_Z_INDEX
54
58
  };
55
59
  let alignItems = "center";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/toast",
3
- "version": "1.28.0",
3
+ "version": "1.29.0",
4
4
  "description": "Core logic for the toast widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,12 +26,12 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.28.0",
30
- "@zag-js/core": "1.28.0",
31
- "@zag-js/dom-query": "1.28.0",
32
- "@zag-js/dismissable": "1.28.0",
33
- "@zag-js/utils": "1.28.0",
34
- "@zag-js/types": "1.28.0"
29
+ "@zag-js/anatomy": "1.29.0",
30
+ "@zag-js/core": "1.29.0",
31
+ "@zag-js/dom-query": "1.29.0",
32
+ "@zag-js/dismissable": "1.29.0",
33
+ "@zag-js/utils": "1.29.0",
34
+ "@zag-js/types": "1.29.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"