@wix/interact 2.0.0-rc.8 → 2.0.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.
@@ -434,10 +434,10 @@ function Lt(e) {
434
434
  return e.reversed ? `${t ? `${t}-` : ""}reverse` : t || "normal";
435
435
  }
436
436
  function te(e) {
437
- return `${e.value}${Et(e.type)}`;
437
+ return `${e.value}${Et(e.unit)}`;
438
438
  }
439
439
  function ve(e, t, n) {
440
- return `${e.name || "cover"} ${n && e.offset.type !== "percentage" ? `calc(100% + ${te(e.offset)}${t ? ` + ${t}` : ""})` : t ? `calc(${te(e.offset)} + ${t})` : te(e.offset)}`;
440
+ return `${e.name || "cover"} ${n && e.offset.unit !== "percentage" ? `calc(100% + ${te(e.offset)}${t ? ` + ${t}` : ""})` : t ? `calc(${te(e.offset)} + ${t})` : te(e.offset)}`;
441
441
  }
442
442
  function Ct(e) {
443
443
  return {
@@ -754,8 +754,8 @@ function K(e, t) {
754
754
  }
755
755
  }
756
756
  const M = {
757
- rangeStart: { name: "cover", offset: { value: 0, type: "percentage" } },
758
- rangeEnd: { name: "cover", offset: { value: 100, type: "percentage" } }
757
+ rangeStart: { name: "cover", offset: { value: 0, unit: "percentage" } },
758
+ rangeEnd: { name: "cover", offset: { value: 100, unit: "percentage" } }
759
759
  };
760
760
  function Ht(e, t) {
761
761
  const n = e?.name ?? M.rangeStart.name, s = t?.name ?? e?.name ?? M.rangeEnd.name, r = {
@@ -2303,4 +2303,4 @@ export {
2303
2303
  Zn as g,
2304
2304
  Jn as r
2305
2305
  };
2306
- //# sourceMappingURL=index-DsvFkLS4.mjs.map
2306
+ //# sourceMappingURL=index-wDdpOvzw.mjs.map