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