@bigbinary/neeto-site-blocks 1.10.28 → 1.10.30

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 CHANGED
@@ -4665,7 +4665,7 @@ var withConditionalRender = function withConditionalRender(Component, condition)
4665
4665
  return ConditionalRender;
4666
4666
  };
4667
4667
 
4668
- var _excluded$B = ["id", "disableButtonAndLinks", "wrapperClassName", "index", "image", "isAddNewPane"];
4668
+ var _excluded$B = ["id", "disableButtonAndLinks", "wrapperClassName", "wrapperStyles", "index", "image", "isAddNewPane"];
4669
4669
  var StyledImage = styled__default["default"].img.attrs(function () {
4670
4670
  return {
4671
4671
  className: "hover:mix-blend-multiply"
@@ -4695,6 +4695,8 @@ var StyledImageWithWrapper = function StyledImageWithWrapper(_ref2) {
4695
4695
  var id = _ref2.id,
4696
4696
  disableButtonAndLinks = _ref2.disableButtonAndLinks,
4697
4697
  wrapperClassName = _ref2.wrapperClassName,
4698
+ _ref2$wrapperStyles = _ref2.wrapperStyles,
4699
+ wrapperStyles = _ref2$wrapperStyles === void 0 ? {} : _ref2$wrapperStyles,
4698
4700
  index = _ref2.index,
4699
4701
  image = _ref2.image,
4700
4702
  _ref2$isAddNewPane = _ref2.isAddNewPane,
@@ -4707,6 +4709,7 @@ var StyledImageWithWrapper = function StyledImageWithWrapper(_ref2) {
4707
4709
  handleImageClick = _useElementClick.handleImageClick;
4708
4710
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
4709
4711
  id: id,
4712
+ design: wrapperStyles,
4710
4713
  className: classnames__default["default"]("flex justify-center", _defineProperty__default["default"]({
4711
4714
  "neeto-site-highlight__element": disableButtonAndLinks && !isAddNewPane
4712
4715
  }, wrapperClassName, wrapperClassName)),
@@ -6326,6 +6329,14 @@ var Pagination = function Pagination(_ref) {
6326
6329
  };
6327
6330
  }, [swiper]);
6328
6331
  if (!swiper) return null;
6332
+ var handleClick = function handleClick(index) {
6333
+ if (swiper.params.loop) {
6334
+ if (swiper.realIndex === index) return;
6335
+ swiper.slideToLoop(index);
6336
+ } else {
6337
+ swiper.slideTo(index);
6338
+ }
6339
+ };
6329
6340
  return /*#__PURE__*/React__default["default"].createElement("div", {
6330
6341
  className: classnames__default["default"]("swiper-pagination flex items-center justify-center space-x-4", className)
6331
6342
  }, hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
@@ -6344,7 +6355,7 @@ var Pagination = function Pagination(_ref) {
6344
6355
  isActive: activeSlide === index,
6345
6356
  key: index,
6346
6357
  onClick: function onClick() {
6347
- return swiper.slideTo(index);
6358
+ return handleClick(index);
6348
6359
  }
6349
6360
  });
6350
6361
  })), hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
@@ -12625,7 +12636,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
12625
12636
  className: classnames__default["default"]({
12626
12637
  "flex flex-col gap-4 md:flex-row": icon
12627
12638
  })
12628
- }, icon && /*#__PURE__*/React__default["default"].createElement("div", {
12639
+ }, neetoCist.isPresent(icon) && /*#__PURE__*/React__default["default"].createElement("div", {
12629
12640
  className: "flex-shrink-0"
12630
12641
  }, renderIcon(_objectSpread$b({
12631
12642
  name: icon,
@@ -12735,12 +12746,16 @@ var FeatureWithGrid = function FeatureWithGrid(_ref) {
12735
12746
  image: image,
12736
12747
  index: index,
12737
12748
  alt: featureImageAlt,
12738
- design: design.featureImage,
12749
+ className: "w-full",
12750
+ design: ramda.dissoc("width", design.featureImage),
12739
12751
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12740
12752
  id: "feature-with-grid-".concat(index, "-image"),
12741
12753
  isAddNewPane: otherProps.isAddNewPane,
12742
12754
  src: featureImageUrl,
12743
- title: featureImageTitle
12755
+ title: featureImageTitle,
12756
+ wrapperStyles: {
12757
+ width: "".concat(design.featureImage.width, "%")
12758
+ }
12744
12759
  }), /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
12745
12760
  index: index,
12746
12761
  isTitle: true,
@@ -13102,7 +13117,8 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
13102
13117
  isAddNewPane: otherProps.isAddNewPane,
13103
13118
  isEmbedded: features[selectedTabId - 1].media.isEmbedded,
13104
13119
  src: features[selectedTabId - 1].media.src,
13105
- videoUrl: features[selectedTabId - 1].media.videoUrl
13120
+ videoUrl: features[selectedTabId - 1].media.videoUrl,
13121
+ wrapperClassName: "h-full w-full"
13106
13122
  })));
13107
13123
  };
13108
13124
 
@@ -13535,7 +13551,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
13535
13551
  loop: true,
13536
13552
  allowTouchMove: !disableButtonAndLinks,
13537
13553
  breakpointsBase: "container",
13538
- slidesPerView: 1,
13539
13554
  spaceBetween: 10,
13540
13555
  breakpoints: {
13541
13556
  640: {
@@ -14369,15 +14384,15 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14369
14384
  }, /*#__PURE__*/React__default["default"].createElement(Swiper, {
14370
14385
  loop: true,
14371
14386
  allowTouchMove: !otherProps.disableButtonAndLinks,
14372
- autoplay: {
14373
- delay: 5000,
14374
- disableOnInteraction: false
14375
- },
14376
14387
  modules: [Thumb, Autoplay],
14377
14388
  spaceBetween: 10,
14378
14389
  thumbs: {
14379
14390
  swiper: thumbsSwiper
14380
14391
  },
14392
+ autoplay: !otherProps.disableButtonAndLinks ? {
14393
+ delay: 5000,
14394
+ disableOnInteraction: false
14395
+ } : false,
14381
14396
  onSwiper: setSwiper
14382
14397
  }, images.map(function (_ref2, index) {
14383
14398
  var src = _ref2.src,