@bigbinary/neeto-site-blocks 1.10.27 → 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 +29 -26
- 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 +29 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
|
|
@@ -15036,17 +15044,16 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15036
15044
|
var slides = properties.slides,
|
|
15037
15045
|
src = properties.backgroundImage.src,
|
|
15038
15046
|
enableAnimation = properties.enableAnimation;
|
|
15039
|
-
var baseClasses = "grid
|
|
15047
|
+
var baseClasses = "grid gap-y-6 lg:gap-6 grid-cols-12 grid-flow-row-dense px-0 sm:px-4";
|
|
15040
15048
|
var contentBaseClasses = function contentBaseClasses(_ref2) {
|
|
15041
15049
|
var src = _ref2.src,
|
|
15042
15050
|
position = _ref2.position,
|
|
15043
15051
|
isEmptyContent = _ref2.isEmptyContent;
|
|
15044
|
-
return classnames__default["default"]("col-span-12", {
|
|
15045
|
-
"
|
|
15046
|
-
"
|
|
15047
|
-
"
|
|
15048
|
-
"
|
|
15049
|
-
"flex flex-col justify-center sm:col-span-12": !src,
|
|
15052
|
+
return classnames__default["default"]("col-span-12 flex flex-col justify-center", {
|
|
15053
|
+
"order-1 lg:col-span-6 ": src && position === POSITIONS.LEFT.label,
|
|
15054
|
+
"order-2 lg:col-span-6": src && position === POSITIONS.RIGHT.label,
|
|
15055
|
+
"order-1": src && position === POSITIONS.BOTTOM.label,
|
|
15056
|
+
"order-2": src && position === POSITIONS.TOP.label,
|
|
15050
15057
|
hidden: isEmptyContent
|
|
15051
15058
|
});
|
|
15052
15059
|
};
|
|
@@ -15054,19 +15061,18 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15054
15061
|
var src = _ref3.src,
|
|
15055
15062
|
position = _ref3.position,
|
|
15056
15063
|
isEmptyContent = _ref3.isEmptyContent;
|
|
15057
|
-
return classnames__default["default"]("col-span-12 flex justify-center", {
|
|
15058
|
-
"
|
|
15059
|
-
"
|
|
15060
|
-
"
|
|
15061
|
-
"
|
|
15062
|
-
hidden: !src
|
|
15063
|
-
"flex justify-center": isEmptyContent
|
|
15064
|
+
return classnames__default["default"]("col-span-12 flex flex-col justify-center items-center", {
|
|
15065
|
+
"order-2 lg:col-span-6": src && position === POSITIONS.LEFT.label && !isEmptyContent,
|
|
15066
|
+
"order-1 lg:col-span-6": src && position === POSITIONS.RIGHT.label && !isEmptyContent,
|
|
15067
|
+
"order-2": src && position === POSITIONS.BOTTOM.label && !isEmptyContent,
|
|
15068
|
+
"order-1": src && position === POSITIONS.TOP.label && !isEmptyContent,
|
|
15069
|
+
hidden: !src
|
|
15064
15070
|
});
|
|
15065
15071
|
};
|
|
15066
15072
|
var buttonBaseClasses = function buttonBaseClasses(_ref4) {
|
|
15067
15073
|
var src = _ref4.src,
|
|
15068
15074
|
position = _ref4.position;
|
|
15069
|
-
return classnames__default["default"]("flex w-full gap-
|
|
15075
|
+
return classnames__default["default"]("flex flex-wrap w-full items-center gap-2", {
|
|
15070
15076
|
"justify-center": !src || position === POSITIONS.BOTTOM.label || position === POSITIONS.TOP.label
|
|
15071
15077
|
});
|
|
15072
15078
|
};
|
|
@@ -15085,10 +15091,7 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15085
15091
|
var isEmptyContent = !content.prefixTitle && !content.title && !content.description;
|
|
15086
15092
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
15087
15093
|
isRootWrapper: true,
|
|
15088
|
-
className: classnames__default["default"]("neeto-site-block-wrapper", baseClasses)
|
|
15089
|
-
design: {
|
|
15090
|
-
paddingHorizontal: design.body.paddingHorizontal
|
|
15091
|
-
}
|
|
15094
|
+
className: classnames__default["default"]("neeto-site-block-wrapper", baseClasses)
|
|
15092
15095
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15093
15096
|
className: contentBaseClasses(_objectSpread$2({
|
|
15094
15097
|
isEmptyContent: isEmptyContent
|
|
@@ -15097,6 +15100,7 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15097
15100
|
disableButtonAndLinks: disableButtonAndLinks,
|
|
15098
15101
|
index: index,
|
|
15099
15102
|
isTitle: true,
|
|
15103
|
+
className: textClasses(_objectSpread$2({}, media)),
|
|
15100
15104
|
component: "h3",
|
|
15101
15105
|
id: "hero-with-gallery-slide-".concat(index, "-prefixTitle"),
|
|
15102
15106
|
isAddNewPane: otherProps.isAddNewPane,
|
|
@@ -15122,7 +15126,6 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15122
15126
|
className: buttonBaseClasses(_objectSpread$2({}, media))
|
|
15123
15127
|
}, buttons.map(function (button, buttonIndex) {
|
|
15124
15128
|
return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
15125
|
-
className: "flex w-full justify-center sm:w-auto",
|
|
15126
15129
|
id: "hero-with-gallery-slide-".concat(index, "-buttons-").concat(buttonIndex, "-button"),
|
|
15127
15130
|
key: getUniqueKey(button.label, button.url, index),
|
|
15128
15131
|
style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
|
|
@@ -15159,7 +15162,7 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
15159
15162
|
src: src
|
|
15160
15163
|
}, design.backgroundImage),
|
|
15161
15164
|
design: design.body,
|
|
15162
|
-
nestedClassName: "flex items-center justify-between gap-x-2"
|
|
15165
|
+
nestedClassName: "flex items-center justify-between gap-x-2 ns-hero-with-gallery "
|
|
15163
15166
|
}, slides.length > 1 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
|
|
15164
15167
|
isStart: true,
|
|
15165
15168
|
Icon: ArrowLeftS$1,
|