@total_onion/onion-library 2.0.142 → 2.0.144

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.
@@ -13,8 +13,9 @@ export default function carouselmultilayoutv3Js(options = {}) {
13
13
  const {Swiper} = values[0][0];
14
14
 
15
15
  const dataAttributes = block.dataset;
16
- const slidesDesktopFull = Number(dataAttributes.desktopslidesfull);
17
16
  const slidesDesktop = Number(dataAttributes.desktopslides);
17
+ const slidesDesktopFull =
18
+ Number(dataAttributes.desktopslidesfull) || slidesDesktop;
18
19
  const slidesTablet = Number(dataAttributes.tabletslides);
19
20
  const slidesMobile = Number(dataAttributes.mobileslides);
20
21
  const slidesOffsetDesktopBefore = Number(
@@ -46,9 +47,9 @@ export default function carouselmultilayoutv3Js(options = {}) {
46
47
  const spaceBetweenSlidesDesktop = Number(
47
48
  dataAttributes.desktopspacebetweenslides
48
49
  );
49
- const spaceBetweenSlidesDesktopFull = Number(
50
- dataAttributes.desktopfullspacebetweenslides
51
- );
50
+ const spaceBetweenSlidesDesktopFull =
51
+ Number(dataAttributes.desktopfullspacebetweenslides) ||
52
+ spaceBetweenSlidesDesktop;
52
53
  const spaceBetweenSlidesMobile = Number(
53
54
  dataAttributes.mobilespacebetweenslides
54
55
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.142",
3
+ "version": "2.0.144",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {