@bigbinary/neeto-site-blocks 1.8.0 → 1.8.1
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 +23 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15985,7 +15985,12 @@ var PageNavigation = function PageNavigation(_ref) {
|
|
|
15985
15985
|
|
|
15986
15986
|
var Pagination$1 = function Pagination(_ref) {
|
|
15987
15987
|
var swiper = _ref.swiper,
|
|
15988
|
-
design = _ref.design
|
|
15988
|
+
_ref$design = _ref.design,
|
|
15989
|
+
design = _ref$design === void 0 ? {} : _ref$design,
|
|
15990
|
+
_ref$className = _ref.className,
|
|
15991
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15992
|
+
_ref$hasNavigation = _ref.hasNavigation,
|
|
15993
|
+
hasNavigation = _ref$hasNavigation === void 0 ? false : _ref$hasNavigation;
|
|
15989
15994
|
var _useState = React.useState(0),
|
|
15990
15995
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
15991
15996
|
activeSlide = _useState2[0],
|
|
@@ -16003,8 +16008,8 @@ var Pagination$1 = function Pagination(_ref) {
|
|
|
16003
16008
|
if (!swiper) return null;
|
|
16004
16009
|
var totalSlides = swiper.slides.length;
|
|
16005
16010
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16006
|
-
className: "swiper-pagination flex items-center justify-center space-x-4"
|
|
16007
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
16011
|
+
className: classnames("swiper-pagination flex items-center justify-center space-x-4", className)
|
|
16012
|
+
}, hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
16008
16013
|
onClick: function onClick() {
|
|
16009
16014
|
return swiper.slidePrev();
|
|
16010
16015
|
}
|
|
@@ -16022,7 +16027,7 @@ var Pagination$1 = function Pagination(_ref) {
|
|
|
16022
16027
|
return swiper.slideTo(index);
|
|
16023
16028
|
}
|
|
16024
16029
|
});
|
|
16025
|
-
})), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
16030
|
+
})), hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
16026
16031
|
onClick: function onClick() {
|
|
16027
16032
|
return swiper.slideNext();
|
|
16028
16033
|
}
|
|
@@ -42728,7 +42733,10 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
42728
42733
|
id = _ref.id,
|
|
42729
42734
|
disableButtonAndLinks = _ref.disableButtonAndLinks,
|
|
42730
42735
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$4);
|
|
42731
|
-
var
|
|
42736
|
+
var _useState = React.useState(null),
|
|
42737
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
42738
|
+
swiper = _useState2[0],
|
|
42739
|
+
setSwiper = _useState2[1];
|
|
42732
42740
|
var properties = configurations.properties,
|
|
42733
42741
|
design = configurations.design;
|
|
42734
42742
|
var slides = properties.slides,
|
|
@@ -42857,23 +42865,14 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
42857
42865
|
className: "hidden sm:flex",
|
|
42858
42866
|
design: design.navigationButtons,
|
|
42859
42867
|
onClick: function onClick() {
|
|
42860
|
-
|
|
42861
|
-
return (_swiperRef$current = swiperRef.current) === null || _swiperRef$current === void 0 ? void 0 : _swiperRef$current.slidePrev();
|
|
42868
|
+
return swiper === null || swiper === void 0 ? void 0 : swiper.slidePrev();
|
|
42862
42869
|
}
|
|
42863
42870
|
}), /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
42864
42871
|
loop: true,
|
|
42865
|
-
className: "ns-hero-with-slider",
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
},
|
|
42870
|
-
modules: [Pagination, Keyboard],
|
|
42871
|
-
pagination: {
|
|
42872
|
-
clickable: true
|
|
42873
|
-
},
|
|
42874
|
-
onSwiper: function onSwiper(swiper) {
|
|
42875
|
-
swiperRef.current = swiper;
|
|
42876
|
-
}
|
|
42872
|
+
className: classnames("ns-hero-with-slider", {
|
|
42873
|
+
"pointer-events-none": disableButtonAndLinks
|
|
42874
|
+
}),
|
|
42875
|
+
onSwiper: setSwiper
|
|
42877
42876
|
}, slides.map(function (_ref7, index) {
|
|
42878
42877
|
var content = _ref7.content,
|
|
42879
42878
|
buttons = _ref7.buttons,
|
|
@@ -42887,13 +42886,15 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
42887
42886
|
media: media,
|
|
42888
42887
|
index: index
|
|
42889
42888
|
}));
|
|
42889
|
+
}), /*#__PURE__*/React__default["default"].createElement(Pagination$1, {
|
|
42890
|
+
swiper: swiper,
|
|
42891
|
+
className: "!pointer-events-auto !relative"
|
|
42890
42892
|
})), /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
|
|
42891
42893
|
Icon: ArrowRightS$1,
|
|
42892
42894
|
className: "hidden sm:flex",
|
|
42893
42895
|
design: design.navigationButtons,
|
|
42894
42896
|
onClick: function onClick() {
|
|
42895
|
-
|
|
42896
|
-
return (_swiperRef$current2 = swiperRef.current) === null || _swiperRef$current2 === void 0 ? void 0 : _swiperRef$current2.slideNext();
|
|
42897
|
+
return swiper === null || swiper === void 0 ? void 0 : swiper.slideNext();
|
|
42897
42898
|
}
|
|
42898
42899
|
})) : renderHeroWithMedia(slides[0] || {
|
|
42899
42900
|
content: {},
|
|
@@ -43399,6 +43400,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
43399
43400
|
}), testimonialDescription))));
|
|
43400
43401
|
}), /*#__PURE__*/React__default["default"].createElement(Pagination$1, {
|
|
43401
43402
|
swiper: swiper,
|
|
43403
|
+
hasNavigation: true,
|
|
43402
43404
|
design: design.buttons
|
|
43403
43405
|
}))), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
43404
43406
|
className: "col-span-12 flex",
|