@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 CHANGED
@@ -6329,6 +6329,14 @@ var Pagination = function Pagination(_ref) {
6329
6329
  };
6330
6330
  }, [swiper]);
6331
6331
  if (!swiper) return null;
6332
+ var handleClick = function handleClick(index) {
6333
+ if (swiper.params.loop) {
6334
+ if (swiper.realIndex === index) return;
6335
+ swiper.slideToLoop(index);
6336
+ } else {
6337
+ swiper.slideTo(index);
6338
+ }
6339
+ };
6332
6340
  return /*#__PURE__*/React__default["default"].createElement("div", {
6333
6341
  className: classnames__default["default"]("swiper-pagination flex items-center justify-center space-x-4", className)
6334
6342
  }, hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
@@ -6347,7 +6355,7 @@ var Pagination = function Pagination(_ref) {
6347
6355
  isActive: activeSlide === index,
6348
6356
  key: index,
6349
6357
  onClick: function onClick() {
6350
- return swiper.slideTo(index);
6358
+ return handleClick(index);
6351
6359
  }
6352
6360
  });
6353
6361
  })), hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
@@ -13543,7 +13551,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
13543
13551
  loop: true,
13544
13552
  allowTouchMove: !disableButtonAndLinks,
13545
13553
  breakpointsBase: "container",
13546
- slidesPerView: 1,
13547
13554
  spaceBetween: 10,
13548
13555
  breakpoints: {
13549
13556
  640: {
@@ -14377,15 +14384,15 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14377
14384
  }, /*#__PURE__*/React__default["default"].createElement(Swiper, {
14378
14385
  loop: true,
14379
14386
  allowTouchMove: !otherProps.disableButtonAndLinks,
14380
- autoplay: {
14381
- delay: 5000,
14382
- disableOnInteraction: false
14383
- },
14384
14387
  modules: [Thumb, Autoplay],
14385
14388
  spaceBetween: 10,
14386
14389
  thumbs: {
14387
14390
  swiper: thumbsSwiper
14388
14391
  },
14392
+ autoplay: !otherProps.disableButtonAndLinks ? {
14393
+ delay: 5000,
14394
+ disableOnInteraction: false
14395
+ } : false,
14389
14396
  onSwiper: setSwiper
14390
14397
  }, images.map(function (_ref2, index) {
14391
14398
  var src = _ref2.src,