mp-design-system 2.0.73 → 2.0.74

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.
@@ -1124,9 +1124,9 @@
1124
1124
  const wrapper = getComputedStyle(document.documentElement).getPropertyValue("--wrapper").trim();
1125
1125
  const wrapperWidth = parseInt(wrapper);
1126
1126
  const gap = parseInt(getComputedStyle(el).getPropertyValue("--row-gap"));
1127
- const cardWidth = (wrapperWidth - (perPage - 1) * gap) / perPage;
1127
+ const cardWidth = (wrapperWidth + "px" - (perPage - 1) * gap) / perPage;
1128
1128
  el.querySelectorAll(".splide__slide").forEach((slide) => {
1129
- slide.style.width = `${cardWidth}px`;
1129
+ slide.style.width = `${cardWidth}`;
1130
1130
  });
1131
1131
  const splide = new import_splide_min.default(el, {
1132
1132
  type,
@@ -1139,7 +1139,7 @@
1139
1139
  pagination: false,
1140
1140
  preventClick: true,
1141
1141
  rewind,
1142
- // speed: 0,
1142
+ clones: 0,
1143
1143
  breakpoints: {
1144
1144
  768: { perPage: 3 },
1145
1145
  608: { perPage: 2 },
@@ -1154,9 +1154,12 @@
1154
1154
  "click",
1155
1155
  () => splide.go(">")
1156
1156
  );
1157
- const padding = `calc((100vw - var(--wrapper)) * 0.5)`;
1158
- el.querySelector(".splide__list").style.paddingInlineStart = padding;
1159
- el.querySelector(".splide__list").style.paddingInlineEnd = padding;
1157
+ const list = el.querySelector(".splide__list");
1158
+ if (list) {
1159
+ const padding = `calc((100vw - var(--wrapper)) * 0.5)`;
1160
+ list.style.paddingInlineStart = padding;
1161
+ list.style.paddingInlineEnd = padding;
1162
+ }
1160
1163
  el.querySelectorAll("a").forEach((link) => {
1161
1164
  link.addEventListener("click", (e) => e.stopPropagation());
1162
1165
  });