@bigbinary/neeto-site-blocks 1.10.25 → 1.10.26
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 +12 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +12 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14928,24 +14928,21 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
|
|
|
14928
14928
|
autoPlay = _properties$media.autoPlay,
|
|
14929
14929
|
src = properties.backgroundImage.src;
|
|
14930
14930
|
var mediaURL = isEmbedded ? videoUrl : imageURL;
|
|
14931
|
-
var baseClasses = "grid
|
|
14932
|
-
var mediaBaseClasses = classnames__default["default"]("col-span-12 col-
|
|
14933
|
-
"
|
|
14934
|
-
"
|
|
14935
|
-
"
|
|
14936
|
-
"
|
|
14931
|
+
var baseClasses = "grid gap-y-6 lg:gap-6 grid-cols-12 grid-flow-row-dense";
|
|
14932
|
+
var mediaBaseClasses = classnames__default["default"]("col-span-12 flex flex-col items-center justify-center", {
|
|
14933
|
+
"order-1 lg:col-span-6": POSITIONS.LEFT.label === mediaPosition,
|
|
14934
|
+
"order-2 lg:col-span-6": POSITIONS.RIGHT.label === mediaPosition,
|
|
14935
|
+
"lg:col-span-12 flex justify-center": POSITIONS.BOTTOM.label === mediaPosition,
|
|
14936
|
+
"lg:col-span-12 justify-center order-1": POSITIONS.TOP.label === mediaPosition,
|
|
14937
14937
|
hidden: !mediaURL
|
|
14938
14938
|
});
|
|
14939
|
-
var textBaseClasses = classnames__default["default"]("col-span-12", {
|
|
14940
|
-
"
|
|
14941
|
-
"
|
|
14942
|
-
"
|
|
14943
|
-
"
|
|
14944
|
-
"sm:col-span-12 lg:col-start-1": !mediaURL
|
|
14945
|
-
});
|
|
14946
|
-
var buttonBaseClasses = classnames__default["default"]("flex w-full items-center gap-x-3", {
|
|
14947
|
-
"sm:!justify-start": mediaURL && (mediaPosition === POSITIONS.LEFT.label || mediaPosition === POSITIONS.RIGHT.label)
|
|
14939
|
+
var textBaseClasses = classnames__default["default"]("col-span-12 flex flex-col item-center justify-center", {
|
|
14940
|
+
"order-2 lg:col-span-6": POSITIONS.LEFT.label === mediaPosition && mediaURL,
|
|
14941
|
+
"order-1 lg:col-span-6": POSITIONS.RIGHT.label === mediaPosition && mediaURL,
|
|
14942
|
+
"lg:col-span-12": POSITIONS.BOTTOM.label === mediaPosition && mediaURL,
|
|
14943
|
+
"lg:col-span-12 order-2": POSITIONS.TOP.label === mediaPosition && mediaURL
|
|
14948
14944
|
});
|
|
14945
|
+
var buttonBaseClasses = classnames__default["default"]("flex flex-wrap w-full items-center gap-2");
|
|
14949
14946
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
14950
14947
|
className: className,
|
|
14951
14948
|
enableAnimation: enableAnimation,
|
|
@@ -14979,7 +14976,6 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
|
|
|
14979
14976
|
}
|
|
14980
14977
|
}, properties.buttons.map(function (button, index) {
|
|
14981
14978
|
return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
14982
|
-
className: "w-full justify-center sm:w-auto sm:justify-start",
|
|
14983
14979
|
id: "hero-with-call-to-action-button-".concat(index, "-button"),
|
|
14984
14980
|
key: getUniqueKey(button.label, button.to, index),
|
|
14985
14981
|
style: button.type === "primary" ? ramda.dissoc("justifyContent", design.primaryButtons) : design.secondaryButtons
|