@zag-js/slider 1.21.7 → 1.21.8

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
@@ -182,9 +182,9 @@ function getMarkerStyle(params, value) {
182
182
  position: "absolute",
183
183
  pointerEvents: "none",
184
184
  [isHorizontal ? "insetInlineStart" : "bottom"]: getThumbOffset(params, value),
185
- translate: "var(--tx) var(--ty)",
186
- "--tx": isHorizontal ? isRtl ? "50%" : "-50%" : "0%",
187
- "--ty": !isHorizontal ? "50%" : "0%"
185
+ translate: "var(--translate-x) var(--translate-y)",
186
+ "--translate-x": isHorizontal ? isRtl ? "50%" : "-50%" : "0%",
187
+ "--translate-y": !isHorizontal ? "50%" : "0%"
188
188
  };
189
189
  }
190
190
  function getMarkerGroupStyle() {
package/dist/index.mjs CHANGED
@@ -180,9 +180,9 @@ function getMarkerStyle(params, value) {
180
180
  position: "absolute",
181
181
  pointerEvents: "none",
182
182
  [isHorizontal ? "insetInlineStart" : "bottom"]: getThumbOffset(params, value),
183
- translate: "var(--tx) var(--ty)",
184
- "--tx": isHorizontal ? isRtl ? "50%" : "-50%" : "0%",
185
- "--ty": !isHorizontal ? "50%" : "0%"
183
+ translate: "var(--translate-x) var(--translate-y)",
184
+ "--translate-x": isHorizontal ? isRtl ? "50%" : "-50%" : "0%",
185
+ "--translate-y": !isHorizontal ? "50%" : "0%"
186
186
  };
187
187
  }
188
188
  function getMarkerGroupStyle() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "1.21.7",
3
+ "version": "1.21.8",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,11 +27,11 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "1.21.7",
31
- "@zag-js/core": "1.21.7",
32
- "@zag-js/dom-query": "1.21.7",
33
- "@zag-js/utils": "1.21.7",
34
- "@zag-js/types": "1.21.7"
30
+ "@zag-js/anatomy": "1.21.8",
31
+ "@zag-js/core": "1.21.8",
32
+ "@zag-js/dom-query": "1.21.8",
33
+ "@zag-js/utils": "1.21.8",
34
+ "@zag-js/types": "1.21.8"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"