@bigbinary/neeto-site-blocks 1.10.28 → 1.10.29

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)),
@@ -12625,7 +12628,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
12625
12628
  className: classnames__default["default"]({
12626
12629
  "flex flex-col gap-4 md:flex-row": icon
12627
12630
  })
12628
- }, icon && /*#__PURE__*/React__default["default"].createElement("div", {
12631
+ }, neetoCist.isPresent(icon) && /*#__PURE__*/React__default["default"].createElement("div", {
12629
12632
  className: "flex-shrink-0"
12630
12633
  }, renderIcon(_objectSpread$b({
12631
12634
  name: icon,
@@ -12735,12 +12738,16 @@ var FeatureWithGrid = function FeatureWithGrid(_ref) {
12735
12738
  image: image,
12736
12739
  index: index,
12737
12740
  alt: featureImageAlt,
12738
- design: design.featureImage,
12741
+ className: "w-full",
12742
+ design: ramda.dissoc("width", design.featureImage),
12739
12743
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12740
12744
  id: "feature-with-grid-".concat(index, "-image"),
12741
12745
  isAddNewPane: otherProps.isAddNewPane,
12742
12746
  src: featureImageUrl,
12743
- title: featureImageTitle
12747
+ title: featureImageTitle,
12748
+ wrapperStyles: {
12749
+ width: "".concat(design.featureImage.width, "%")
12750
+ }
12744
12751
  }), /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
12745
12752
  index: index,
12746
12753
  isTitle: true,
@@ -13102,7 +13109,8 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
13102
13109
  isAddNewPane: otherProps.isAddNewPane,
13103
13110
  isEmbedded: features[selectedTabId - 1].media.isEmbedded,
13104
13111
  src: features[selectedTabId - 1].media.src,
13105
- videoUrl: features[selectedTabId - 1].media.videoUrl
13112
+ videoUrl: features[selectedTabId - 1].media.videoUrl,
13113
+ wrapperClassName: "h-full w-full"
13106
13114
  })));
13107
13115
  };
13108
13116