@bigbinary/neeto-site-blocks 1.10.24 → 1.10.25

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.js CHANGED
@@ -6279,7 +6279,8 @@ var Pagination = function Pagination(_ref) {
6279
6279
  _ref$className = _ref.className,
6280
6280
  className = _ref$className === void 0 ? "" : _ref$className,
6281
6281
  _ref$hasNavigation = _ref.hasNavigation,
6282
- hasNavigation = _ref$hasNavigation === void 0 ? false : _ref$hasNavigation;
6282
+ hasNavigation = _ref$hasNavigation === void 0 ? false : _ref$hasNavigation,
6283
+ totalSlides = _ref.totalSlides;
6283
6284
  var _useState = useState(0),
6284
6285
  _useState2 = _slicedToArray(_useState, 2),
6285
6286
  activeSlide = _useState2[0],
@@ -6295,7 +6296,6 @@ var Pagination = function Pagination(_ref) {
6295
6296
  };
6296
6297
  }, [swiper]);
6297
6298
  if (!swiper) return null;
6298
- var totalSlides = swiper.slides.length;
6299
6299
  return /*#__PURE__*/React.createElement("div", {
6300
6300
  className: classnames("swiper-pagination flex items-center justify-center space-x-4", className)
6301
6301
  }, hasNavigation && /*#__PURE__*/React.createElement("button", {
@@ -6308,7 +6308,7 @@ var Pagination = function Pagination(_ref) {
6308
6308
  size: 26
6309
6309
  })), /*#__PURE__*/React.createElement("div", {
6310
6310
  className: "space-x-2"
6311
- }, _toConsumableArray(Array(totalSlides)).map(function (_, index) {
6311
+ }, _toConsumableArray(Array(totalSlides !== null && totalSlides !== void 0 ? totalSlides : swiper.slides.length)).map(function (_, index) {
6312
6312
  return /*#__PURE__*/React.createElement(PaginationWrapper, {
6313
6313
  design: design,
6314
6314
  isActive: activeSlide === index,
@@ -15155,7 +15155,8 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
15155
15155
  }));
15156
15156
  }), /*#__PURE__*/React.createElement(Pagination, {
15157
15157
  swiper: swiper,
15158
- className: "!relative"
15158
+ className: "relative",
15159
+ totalSlides: slides.length
15159
15160
  })), /*#__PURE__*/React.createElement(ArrowButton, {
15160
15161
  Icon: ArrowRightS$1,
15161
15162
  className: "hidden sm:flex",