@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.cjs.js +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6298,7 +6298,8 @@ var Pagination = function Pagination(_ref) {
|
|
|
6298
6298
|
_ref$className = _ref.className,
|
|
6299
6299
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
6300
6300
|
_ref$hasNavigation = _ref.hasNavigation,
|
|
6301
|
-
hasNavigation = _ref$hasNavigation === void 0 ? false : _ref$hasNavigation
|
|
6301
|
+
hasNavigation = _ref$hasNavigation === void 0 ? false : _ref$hasNavigation,
|
|
6302
|
+
totalSlides = _ref.totalSlides;
|
|
6302
6303
|
var _useState = React.useState(0),
|
|
6303
6304
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
6304
6305
|
activeSlide = _useState2[0],
|
|
@@ -6314,7 +6315,6 @@ var Pagination = function Pagination(_ref) {
|
|
|
6314
6315
|
};
|
|
6315
6316
|
}, [swiper]);
|
|
6316
6317
|
if (!swiper) return null;
|
|
6317
|
-
var totalSlides = swiper.slides.length;
|
|
6318
6318
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6319
6319
|
className: classnames__default["default"]("swiper-pagination flex items-center justify-center space-x-4", className)
|
|
6320
6320
|
}, hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
@@ -6327,7 +6327,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
6327
6327
|
size: 26
|
|
6328
6328
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6329
6329
|
className: "space-x-2"
|
|
6330
|
-
}, _toConsumableArray__default["default"](Array(totalSlides)).map(function (_, index) {
|
|
6330
|
+
}, _toConsumableArray__default["default"](Array(totalSlides !== null && totalSlides !== void 0 ? totalSlides : swiper.slides.length)).map(function (_, index) {
|
|
6331
6331
|
return /*#__PURE__*/React__default["default"].createElement(PaginationWrapper, {
|
|
6332
6332
|
design: design,
|
|
6333
6333
|
isActive: activeSlide === index,
|
|
@@ -15174,7 +15174,8 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15174
15174
|
}));
|
|
15175
15175
|
}), /*#__PURE__*/React__default["default"].createElement(Pagination, {
|
|
15176
15176
|
swiper: swiper,
|
|
15177
|
-
className: "
|
|
15177
|
+
className: "relative",
|
|
15178
|
+
totalSlides: slides.length
|
|
15178
15179
|
})), /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
|
|
15179
15180
|
Icon: ArrowRightS$1,
|
|
15180
15181
|
className: "hidden sm:flex",
|