@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.js CHANGED
@@ -4646,7 +4646,7 @@ var withConditionalRender = function withConditionalRender(Component, condition)
4646
4646
  return ConditionalRender;
4647
4647
  };
4648
4648
 
4649
- var _excluded$B = ["id", "disableButtonAndLinks", "wrapperClassName", "index", "image", "isAddNewPane"];
4649
+ var _excluded$B = ["id", "disableButtonAndLinks", "wrapperClassName", "wrapperStyles", "index", "image", "isAddNewPane"];
4650
4650
  var StyledImage = styled.img.attrs(function () {
4651
4651
  return {
4652
4652
  className: "hover:mix-blend-multiply"
@@ -4676,6 +4676,8 @@ var StyledImageWithWrapper = function StyledImageWithWrapper(_ref2) {
4676
4676
  var id = _ref2.id,
4677
4677
  disableButtonAndLinks = _ref2.disableButtonAndLinks,
4678
4678
  wrapperClassName = _ref2.wrapperClassName,
4679
+ _ref2$wrapperStyles = _ref2.wrapperStyles,
4680
+ wrapperStyles = _ref2$wrapperStyles === void 0 ? {} : _ref2$wrapperStyles,
4679
4681
  index = _ref2.index,
4680
4682
  image = _ref2.image,
4681
4683
  _ref2$isAddNewPane = _ref2.isAddNewPane,
@@ -4688,6 +4690,7 @@ var StyledImageWithWrapper = function StyledImageWithWrapper(_ref2) {
4688
4690
  handleImageClick = _useElementClick.handleImageClick;
4689
4691
  return /*#__PURE__*/React.createElement(StyledWrapper, {
4690
4692
  id: id,
4693
+ design: wrapperStyles,
4691
4694
  className: classnames("flex justify-center", _defineProperty$1({
4692
4695
  "neeto-site-highlight__element": disableButtonAndLinks && !isAddNewPane
4693
4696
  }, wrapperClassName, wrapperClassName)),
@@ -6307,6 +6310,14 @@ var Pagination = function Pagination(_ref) {
6307
6310
  };
6308
6311
  }, [swiper]);
6309
6312
  if (!swiper) return null;
6313
+ var handleClick = function handleClick(index) {
6314
+ if (swiper.params.loop) {
6315
+ if (swiper.realIndex === index) return;
6316
+ swiper.slideToLoop(index);
6317
+ } else {
6318
+ swiper.slideTo(index);
6319
+ }
6320
+ };
6310
6321
  return /*#__PURE__*/React.createElement("div", {
6311
6322
  className: classnames("swiper-pagination flex items-center justify-center space-x-4", className)
6312
6323
  }, hasNavigation && /*#__PURE__*/React.createElement("button", {
@@ -6325,7 +6336,7 @@ var Pagination = function Pagination(_ref) {
6325
6336
  isActive: activeSlide === index,
6326
6337
  key: index,
6327
6338
  onClick: function onClick() {
6328
- return swiper.slideTo(index);
6339
+ return handleClick(index);
6329
6340
  }
6330
6341
  });
6331
6342
  })), hasNavigation && /*#__PURE__*/React.createElement("button", {
@@ -12606,7 +12617,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
12606
12617
  className: classnames({
12607
12618
  "flex flex-col gap-4 md:flex-row": icon
12608
12619
  })
12609
- }, icon && /*#__PURE__*/React.createElement("div", {
12620
+ }, isPresent(icon) && /*#__PURE__*/React.createElement("div", {
12610
12621
  className: "flex-shrink-0"
12611
12622
  }, renderIcon(_objectSpread$b({
12612
12623
  name: icon,
@@ -12716,12 +12727,16 @@ var FeatureWithGrid = function FeatureWithGrid(_ref) {
12716
12727
  image: image,
12717
12728
  index: index,
12718
12729
  alt: featureImageAlt,
12719
- design: design.featureImage,
12730
+ className: "w-full",
12731
+ design: dissoc("width", design.featureImage),
12720
12732
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12721
12733
  id: "feature-with-grid-".concat(index, "-image"),
12722
12734
  isAddNewPane: otherProps.isAddNewPane,
12723
12735
  src: featureImageUrl,
12724
- title: featureImageTitle
12736
+ title: featureImageTitle,
12737
+ wrapperStyles: {
12738
+ width: "".concat(design.featureImage.width, "%")
12739
+ }
12725
12740
  }), /*#__PURE__*/React.createElement(Typography$1, _extends$2({
12726
12741
  index: index,
12727
12742
  isTitle: true,
@@ -13083,7 +13098,8 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
13083
13098
  isAddNewPane: otherProps.isAddNewPane,
13084
13099
  isEmbedded: features[selectedTabId - 1].media.isEmbedded,
13085
13100
  src: features[selectedTabId - 1].media.src,
13086
- videoUrl: features[selectedTabId - 1].media.videoUrl
13101
+ videoUrl: features[selectedTabId - 1].media.videoUrl,
13102
+ wrapperClassName: "h-full w-full"
13087
13103
  })));
13088
13104
  };
13089
13105
 
@@ -13516,7 +13532,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
13516
13532
  loop: true,
13517
13533
  allowTouchMove: !disableButtonAndLinks,
13518
13534
  breakpointsBase: "container",
13519
- slidesPerView: 1,
13520
13535
  spaceBetween: 10,
13521
13536
  breakpoints: {
13522
13537
  640: {
@@ -14350,15 +14365,15 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14350
14365
  }, /*#__PURE__*/React.createElement(Swiper, {
14351
14366
  loop: true,
14352
14367
  allowTouchMove: !otherProps.disableButtonAndLinks,
14353
- autoplay: {
14354
- delay: 5000,
14355
- disableOnInteraction: false
14356
- },
14357
14368
  modules: [Thumb, Autoplay],
14358
14369
  spaceBetween: 10,
14359
14370
  thumbs: {
14360
14371
  swiper: thumbsSwiper
14361
14372
  },
14373
+ autoplay: !otherProps.disableButtonAndLinks ? {
14374
+ delay: 5000,
14375
+ disableOnInteraction: false
14376
+ } : false,
14362
14377
  onSwiper: setSwiper
14363
14378
  }, images.map(function (_ref2, index) {
14364
14379
  var src = _ref2.src,