@bigbinary/neeto-site-blocks 1.6.3 → 1.6.5
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 +21 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +21 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15738,7 +15738,6 @@ var PageNavigation = function PageNavigation(_ref) {
|
|
|
15738
15738
|
};
|
|
15739
15739
|
|
|
15740
15740
|
var Pagination$1 = function Pagination(_ref) {
|
|
15741
|
-
var _classnames, _classnames2;
|
|
15742
15741
|
var swiper = _ref.swiper,
|
|
15743
15742
|
design = _ref.design;
|
|
15744
15743
|
var _useState = React.useState(0),
|
|
@@ -15760,15 +15759,12 @@ var Pagination$1 = function Pagination(_ref) {
|
|
|
15760
15759
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15761
15760
|
className: "swiper-pagination flex items-center justify-center space-x-4"
|
|
15762
15761
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
15763
|
-
className: classnames({
|
|
15764
|
-
"cursor-default": swiper.isBeginning
|
|
15765
|
-
}),
|
|
15766
15762
|
onClick: function onClick() {
|
|
15767
|
-
return
|
|
15763
|
+
return swiper.slidePrev();
|
|
15768
15764
|
}
|
|
15769
15765
|
}, /*#__PURE__*/React__default["default"].createElement(ArrowLeftS$1, {
|
|
15770
|
-
|
|
15771
|
-
|
|
15766
|
+
fill: (design === null || design === void 0 ? void 0 : design.navigationActiveColor) || "#1F2433",
|
|
15767
|
+
size: 26
|
|
15772
15768
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15773
15769
|
className: "space-x-2"
|
|
15774
15770
|
}, _toConsumableArray__default["default"](Array(totalSlides)).map(function (_, index) {
|
|
@@ -15781,15 +15777,12 @@ var Pagination$1 = function Pagination(_ref) {
|
|
|
15781
15777
|
}
|
|
15782
15778
|
});
|
|
15783
15779
|
})), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
15784
|
-
className: classnames({
|
|
15785
|
-
"cursor-default": swiper.isEnd
|
|
15786
|
-
}),
|
|
15787
15780
|
onClick: function onClick() {
|
|
15788
15781
|
return swiper.slideNext();
|
|
15789
15782
|
}
|
|
15790
15783
|
}, /*#__PURE__*/React__default["default"].createElement(ArrowRightS$1, {
|
|
15791
|
-
|
|
15792
|
-
|
|
15784
|
+
fill: (design === null || design === void 0 ? void 0 : design.navigationActiveColor) || "#1F2433",
|
|
15785
|
+
size: 26
|
|
15793
15786
|
})));
|
|
15794
15787
|
};
|
|
15795
15788
|
|
|
@@ -20809,7 +20802,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20809
20802
|
enableAnimation: enableAnimation,
|
|
20810
20803
|
design: design.card,
|
|
20811
20804
|
duration: 0.01,
|
|
20812
|
-
className: classnames("ns-card-in-grid-view col-span-12 cursor-pointer space-y-8
|
|
20805
|
+
className: classnames("ns-card-in-grid-view col-span-12 cursor-pointer space-y-8 sm:col-span-6 lg:col-span-4", {
|
|
20813
20806
|
"ns-card-in-grid-view--landscape": mode === "landscape",
|
|
20814
20807
|
"ns-card-in-grid-view--portrait": mode === "portrait"
|
|
20815
20808
|
}),
|
|
@@ -20863,8 +20856,10 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20863
20856
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20864
20857
|
className: "col-span-8 col-start-3 sm:col-span-10 sm:col-start-2"
|
|
20865
20858
|
}, /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
20859
|
+
loop: true,
|
|
20866
20860
|
breakpointsBase: "container",
|
|
20867
20861
|
slidesPerView: 1,
|
|
20862
|
+
spaceBetween: 10,
|
|
20868
20863
|
breakpoints: {
|
|
20869
20864
|
480: {
|
|
20870
20865
|
slidesPerView: 2,
|
|
@@ -39324,6 +39319,7 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
|
|
|
39324
39319
|
var progressBar = function progressBar() {
|
|
39325
39320
|
var width = 0;
|
|
39326
39321
|
var frame = function frame() {
|
|
39322
|
+
if (!progressRef.current) return;
|
|
39327
39323
|
if (width >= 100) {
|
|
39328
39324
|
clearInterval(id);
|
|
39329
39325
|
setSelectedTabId(function (prevSelectedTabId) {
|
|
@@ -39333,7 +39329,6 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
|
|
|
39333
39329
|
width++;
|
|
39334
39330
|
progressRef.current.style.width = "".concat(width, "%");
|
|
39335
39331
|
}
|
|
39336
|
-
return null;
|
|
39337
39332
|
};
|
|
39338
39333
|
var id = setInterval(frame, 100);
|
|
39339
39334
|
setIntervalId(id);
|
|
@@ -39358,13 +39353,13 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
|
|
|
39358
39353
|
"sm:col-start-8": contentPosition === POSITIONS.RIGHT.label
|
|
39359
39354
|
});
|
|
39360
39355
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
39356
|
+
className: className,
|
|
39357
|
+
enableAnimation: enableAnimation,
|
|
39358
|
+
id: id,
|
|
39361
39359
|
backgroundImage: mergeLeft({
|
|
39362
39360
|
src: src
|
|
39363
39361
|
}, design.backgroundImage),
|
|
39364
|
-
className: className,
|
|
39365
39362
|
design: design.body,
|
|
39366
|
-
enableAnimation: enableAnimation,
|
|
39367
|
-
id: id,
|
|
39368
39363
|
nestedClassName: baseClasses
|
|
39369
39364
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39370
39365
|
className: progressBarBaseClasses
|
|
@@ -41537,11 +41532,8 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
41537
41532
|
var configurations = _ref.configurations,
|
|
41538
41533
|
_ref$className = _ref.className,
|
|
41539
41534
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
41540
|
-
id = _ref.id
|
|
41541
|
-
|
|
41542
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
41543
|
-
activeIndex = _useState2[0],
|
|
41544
|
-
setActiveIndex = _useState2[1];
|
|
41535
|
+
id = _ref.id,
|
|
41536
|
+
disableButtonAndLinks = _ref.disableButtonAndLinks;
|
|
41545
41537
|
var swiperRef = React.useRef(null);
|
|
41546
41538
|
var properties = configurations.properties,
|
|
41547
41539
|
design = configurations.design;
|
|
@@ -41576,7 +41568,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
41576
41568
|
Icon: ArrowLeft$1,
|
|
41577
41569
|
className: "hidden sm:flex",
|
|
41578
41570
|
design: design.navigationButtons,
|
|
41579
|
-
isActive: activeIndex > 0,
|
|
41580
41571
|
onClick: function onClick() {
|
|
41581
41572
|
var _swiperRef$current;
|
|
41582
41573
|
return (_swiperRef$current = swiperRef.current) === null || _swiperRef$current === void 0 ? void 0 : _swiperRef$current.slidePrev();
|
|
@@ -41586,6 +41577,7 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
41586
41577
|
}, /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
41587
41578
|
freeMode: true,
|
|
41588
41579
|
grabCursor: true,
|
|
41580
|
+
loop: true,
|
|
41589
41581
|
breakpointsBase: "container",
|
|
41590
41582
|
modules: [Pagination, Mousewheel, freeMode],
|
|
41591
41583
|
mousewheel: {
|
|
@@ -41595,15 +41587,16 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
41595
41587
|
clickable: true
|
|
41596
41588
|
},
|
|
41597
41589
|
slidesPerView: 1,
|
|
41590
|
+
spaceBetween: 10,
|
|
41598
41591
|
breakpoints: {
|
|
41599
41592
|
640: {
|
|
41600
41593
|
slidesPerView: 2,
|
|
41601
41594
|
spaceBetween: 10
|
|
41602
41595
|
}
|
|
41603
41596
|
},
|
|
41604
|
-
|
|
41605
|
-
|
|
41606
|
-
},
|
|
41597
|
+
className: classnames({
|
|
41598
|
+
"pointer-events-none": disableButtonAndLinks
|
|
41599
|
+
}),
|
|
41607
41600
|
onSwiper: function onSwiper(swiper) {
|
|
41608
41601
|
swiperRef.current = swiper;
|
|
41609
41602
|
}
|
|
@@ -41625,7 +41618,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
41625
41618
|
Icon: ArrowRight$1,
|
|
41626
41619
|
className: "hidden sm:flex",
|
|
41627
41620
|
design: design.navigationButtons,
|
|
41628
|
-
isActive: activeIndex < images.length - 2,
|
|
41629
41621
|
onClick: function onClick() {
|
|
41630
41622
|
var _swiperRef$current2;
|
|
41631
41623
|
return (_swiperRef$current2 = swiperRef.current) === null || _swiperRef$current2 === void 0 ? void 0 : _swiperRef$current2.slideNext();
|
|
@@ -41675,6 +41667,7 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
41675
41667
|
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
41676
41668
|
className: "ns-gallery-with-sliding-images col-span-12 space-y-6 sm:col-span-10 sm:col-start-2"
|
|
41677
41669
|
}, /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
41670
|
+
loop: true,
|
|
41678
41671
|
autoplay: {
|
|
41679
41672
|
delay: 5000,
|
|
41680
41673
|
disableOnInteraction: false
|
|
@@ -42782,6 +42775,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
42782
42775
|
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42783
42776
|
className: "ns-sliding-testimonial col-span-12"
|
|
42784
42777
|
}, /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
42778
|
+
loop: true,
|
|
42785
42779
|
spaceBetween: 10,
|
|
42786
42780
|
onSwiper: setSwiper
|
|
42787
42781
|
}, testimonials.map(function (_ref2, index) {
|