@bigbinary/neeto-site-blocks 1.2.0 → 1.2.1
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 +8 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +8 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40840,13 +40840,13 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
|
|
|
40840
40840
|
"sm:justify-start": mediaURL && (mediaPosition === POSITIONS.LEFT.label || mediaPosition === POSITIONS.RIGHT.label)
|
|
40841
40841
|
});
|
|
40842
40842
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
40843
|
+
className: className,
|
|
40844
|
+
enableAnimation: enableAnimation,
|
|
40845
|
+
id: id,
|
|
40843
40846
|
backgroundImage: mergeLeft({
|
|
40844
40847
|
src: src
|
|
40845
40848
|
}, design.backgroundImage),
|
|
40846
|
-
className: className,
|
|
40847
40849
|
design: design.body,
|
|
40848
|
-
enableAnimation: enableAnimation,
|
|
40849
|
-
id: id,
|
|
40850
40850
|
nestedClassName: baseClasses
|
|
40851
40851
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40852
40852
|
className: textBaseClasses
|
|
@@ -40863,24 +40863,17 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
|
|
|
40863
40863
|
style: design.description
|
|
40864
40864
|
}, description), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40865
40865
|
className: buttonBaseClasses
|
|
40866
|
-
}, properties.buttons.map(function (
|
|
40867
|
-
var label = _ref2.label,
|
|
40868
|
-
url = _ref2.url,
|
|
40869
|
-
action = _ref2.action,
|
|
40870
|
-
type = _ref2.type;
|
|
40866
|
+
}, properties.buttons.map(function (button, index) {
|
|
40871
40867
|
return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
40872
|
-
action: action,
|
|
40873
40868
|
className: "w-full justify-center sm:w-auto sm:justify-start",
|
|
40874
|
-
key: getUniqueKey(label,
|
|
40875
|
-
|
|
40876
|
-
|
|
40877
|
-
style: type === "primary" ? design.primaryButtons : design.secondaryButtons
|
|
40878
|
-
}, otherProps));
|
|
40869
|
+
key: getUniqueKey(button.label, button.to, index),
|
|
40870
|
+
style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
|
|
40871
|
+
}, button, otherProps));
|
|
40879
40872
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40880
40873
|
className: mediaBaseClasses
|
|
40881
40874
|
}, /*#__PURE__*/React__default["default"].createElement(Media, {
|
|
40882
|
-
design: design.media,
|
|
40883
40875
|
isEmbedded: isEmbedded,
|
|
40876
|
+
design: design.media,
|
|
40884
40877
|
src: mediaURL
|
|
40885
40878
|
})));
|
|
40886
40879
|
};
|