@bigbinary/neeto-site-blocks 1.10.29 → 1.10.30
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.cjs.js +13 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6310,6 +6310,14 @@ var Pagination = function Pagination(_ref) {
|
|
|
6310
6310
|
};
|
|
6311
6311
|
}, [swiper]);
|
|
6312
6312
|
if (!swiper) return null;
|
|
6313
|
+
var handleClick = function handleClick(index) {
|
|
6314
|
+
if (swiper.params.loop) {
|
|
6315
|
+
if (swiper.realIndex === index) return;
|
|
6316
|
+
swiper.slideToLoop(index);
|
|
6317
|
+
} else {
|
|
6318
|
+
swiper.slideTo(index);
|
|
6319
|
+
}
|
|
6320
|
+
};
|
|
6313
6321
|
return /*#__PURE__*/React.createElement("div", {
|
|
6314
6322
|
className: classnames("swiper-pagination flex items-center justify-center space-x-4", className)
|
|
6315
6323
|
}, hasNavigation && /*#__PURE__*/React.createElement("button", {
|
|
@@ -6328,7 +6336,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
6328
6336
|
isActive: activeSlide === index,
|
|
6329
6337
|
key: index,
|
|
6330
6338
|
onClick: function onClick() {
|
|
6331
|
-
return
|
|
6339
|
+
return handleClick(index);
|
|
6332
6340
|
}
|
|
6333
6341
|
});
|
|
6334
6342
|
})), hasNavigation && /*#__PURE__*/React.createElement("button", {
|
|
@@ -13524,7 +13532,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
13524
13532
|
loop: true,
|
|
13525
13533
|
allowTouchMove: !disableButtonAndLinks,
|
|
13526
13534
|
breakpointsBase: "container",
|
|
13527
|
-
slidesPerView: 1,
|
|
13528
13535
|
spaceBetween: 10,
|
|
13529
13536
|
breakpoints: {
|
|
13530
13537
|
640: {
|
|
@@ -14358,15 +14365,15 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
14358
14365
|
}, /*#__PURE__*/React.createElement(Swiper, {
|
|
14359
14366
|
loop: true,
|
|
14360
14367
|
allowTouchMove: !otherProps.disableButtonAndLinks,
|
|
14361
|
-
autoplay: {
|
|
14362
|
-
delay: 5000,
|
|
14363
|
-
disableOnInteraction: false
|
|
14364
|
-
},
|
|
14365
14368
|
modules: [Thumb, Autoplay],
|
|
14366
14369
|
spaceBetween: 10,
|
|
14367
14370
|
thumbs: {
|
|
14368
14371
|
swiper: thumbsSwiper
|
|
14369
14372
|
},
|
|
14373
|
+
autoplay: !otherProps.disableButtonAndLinks ? {
|
|
14374
|
+
delay: 5000,
|
|
14375
|
+
disableOnInteraction: false
|
|
14376
|
+
} : false,
|
|
14370
14377
|
onSwiper: setSwiper
|
|
14371
14378
|
}, images.map(function (_ref2, index) {
|
|
14372
14379
|
var src = _ref2.src,
|