@bigbinary/neeto-site-blocks 1.4.2 → 1.4.4
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 +24 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +24 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40903,7 +40903,6 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
40903
40903
|
}, isThumbsView && /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
40904
40904
|
freeMode: true,
|
|
40905
40905
|
watchSlidesProgress: true,
|
|
40906
|
-
className: "hidden sm:block",
|
|
40907
40906
|
modules: [Thumb, Pagination, Mousewheel, freeMode],
|
|
40908
40907
|
mousewheel: {
|
|
40909
40908
|
sensitivity: 0.5
|
|
@@ -40913,6 +40912,9 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
40913
40912
|
},
|
|
40914
40913
|
slidesPerView: 4,
|
|
40915
40914
|
spaceBetween: 12,
|
|
40915
|
+
className: classnames("hidden sm:block", {
|
|
40916
|
+
swiper__thumbs__slide: images.length <= 3
|
|
40917
|
+
}),
|
|
40916
40918
|
onSwiper: setThumbsSwiper
|
|
40917
40919
|
}, images.map(function (_ref3, index) {
|
|
40918
40920
|
var src = _ref3.src,
|
|
@@ -41715,18 +41717,24 @@ var Slides = function Slides(_ref) {
|
|
|
41715
41717
|
var title = _ref2.title,
|
|
41716
41718
|
subTitle = _ref2.subTitle,
|
|
41717
41719
|
layout = _ref2.layout,
|
|
41718
|
-
imageUrl = _ref2.imageUrl
|
|
41720
|
+
imageUrl = _ref2.imageUrl,
|
|
41721
|
+
titleTextAlign = _ref2.titleTextAlign,
|
|
41722
|
+
subTitleTextAlign = _ref2.subTitleTextAlign;
|
|
41719
41723
|
if (layout === "titleWithSubTitle") {
|
|
41720
41724
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
41721
41725
|
className: "col-span-12"
|
|
41722
41726
|
}, /*#__PURE__*/React__default["default"].createElement(Typography$1, {
|
|
41723
41727
|
isTitle: true,
|
|
41724
41728
|
component: "h1",
|
|
41725
|
-
style: design.title
|
|
41729
|
+
style: mergeRight(design.title, {
|
|
41730
|
+
textAlign: titleTextAlign
|
|
41731
|
+
})
|
|
41726
41732
|
}, title), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
|
|
41727
41733
|
isTitle: true,
|
|
41728
41734
|
component: "h1",
|
|
41729
|
-
style: design.subTitle
|
|
41735
|
+
style: mergeRight(design.subTitle, {
|
|
41736
|
+
textAlign: subTitleTextAlign
|
|
41737
|
+
})
|
|
41730
41738
|
}, subTitle));
|
|
41731
41739
|
}
|
|
41732
41740
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -41750,7 +41758,7 @@ var Slides = function Slides(_ref) {
|
|
|
41750
41758
|
swiperRef: swiperRef,
|
|
41751
41759
|
isStart: true,
|
|
41752
41760
|
Icon: ArrowLeftS$1,
|
|
41753
|
-
className: "absolute
|
|
41761
|
+
className: "z-20 hidden sm:absolute sm:top-1/2 sm:left-0 sm:flex lg:left-28",
|
|
41754
41762
|
onClick: function onClick() {
|
|
41755
41763
|
var _swiperRef$current;
|
|
41756
41764
|
return (_swiperRef$current = swiperRef.current) === null || _swiperRef$current === void 0 ? void 0 : _swiperRef$current.slidePrev();
|
|
@@ -41763,6 +41771,9 @@ var Slides = function Slides(_ref) {
|
|
|
41763
41771
|
},
|
|
41764
41772
|
modules: swiperModules,
|
|
41765
41773
|
spaceBetween: 10,
|
|
41774
|
+
className: classnames({
|
|
41775
|
+
"pointer-events-none": disableButtonAndLinks
|
|
41776
|
+
}),
|
|
41766
41777
|
history: {
|
|
41767
41778
|
key: pageUrl ? pageUrl.slice(1) : "slides",
|
|
41768
41779
|
root: hostUrl !== null && hostUrl !== void 0 ? hostUrl : window.location.origin
|
|
@@ -41773,41 +41784,29 @@ var Slides = function Slides(_ref) {
|
|
|
41773
41784
|
onSwiper: function onSwiper(swiper) {
|
|
41774
41785
|
swiperRef.current = swiper;
|
|
41775
41786
|
}
|
|
41776
|
-
}, slides.map(function (
|
|
41777
|
-
var title = _ref3.title,
|
|
41778
|
-
url = _ref3.url,
|
|
41779
|
-
logoUrl = _ref3.logoUrl,
|
|
41780
|
-
subTitle = _ref3.subTitle,
|
|
41781
|
-
layout = _ref3.layout,
|
|
41782
|
-
imageUrl = _ref3.imageUrl,
|
|
41783
|
-
backgroundImage = _ref3.backgroundImage;
|
|
41787
|
+
}, slides.map(function (slide, index) {
|
|
41784
41788
|
return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
|
|
41785
41789
|
className: classnames("my-auto", className),
|
|
41786
|
-
"data-history": !disableButtonAndLinks ? url : "",
|
|
41787
|
-
key: getUniqueKey(title, index)
|
|
41790
|
+
"data-history": !disableButtonAndLinks ? slide.url : "",
|
|
41791
|
+
key: getUniqueKey(slide.title, index)
|
|
41788
41792
|
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
41789
41793
|
isRootWrapper: true,
|
|
41790
41794
|
backgroundImage: mergeLeft({
|
|
41791
|
-
src: backgroundImage.src
|
|
41795
|
+
src: slide.backgroundImage.src
|
|
41792
41796
|
}, design.backgroundImage),
|
|
41793
41797
|
className: classnames("neeto-site-block-wrapper relative lg:w-9/12", baseClasses),
|
|
41794
41798
|
design: mergeRight(design.container, {
|
|
41795
41799
|
paddingHorizontal: design.body.paddingHorizontal
|
|
41796
41800
|
})
|
|
41797
|
-
}, logoUrl && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
41801
|
+
}, slide.logoUrl && /*#__PURE__*/React__default["default"].createElement("img", {
|
|
41798
41802
|
className: "absolute top-8 right-12 w-20",
|
|
41799
|
-
src: logoUrl
|
|
41800
|
-
}), renderSwiperSlide(
|
|
41801
|
-
title: title,
|
|
41802
|
-
subTitle: subTitle,
|
|
41803
|
-
layout: layout,
|
|
41804
|
-
imageUrl: imageUrl
|
|
41805
|
-
})));
|
|
41803
|
+
src: slide.logoUrl
|
|
41804
|
+
}), renderSwiperSlide(slide)));
|
|
41806
41805
|
})), /*#__PURE__*/React__default["default"].createElement(PageNavigation, {
|
|
41807
41806
|
activeIndex: activeIndex,
|
|
41808
41807
|
swiperRef: swiperRef,
|
|
41809
41808
|
Icon: ArrowRightS$1,
|
|
41810
|
-
className: "absolute top-1/2 right-0
|
|
41809
|
+
className: "z-20 hidden sm:absolute sm:top-1/2 sm:right-0 sm:flex lg:right-28",
|
|
41811
41810
|
onClick: function onClick() {
|
|
41812
41811
|
var _swiperRef$current2;
|
|
41813
41812
|
return (_swiperRef$current2 = swiperRef.current) === null || _swiperRef$current2 === void 0 ? void 0 : _swiperRef$current2.slideNext();
|