@bigbinary/neeto-site-blocks 1.4.5 → 1.4.7
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 +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2884,7 +2884,8 @@ var IMAGE_POSITIONS = {
|
|
|
2884
2884
|
top: "top",
|
|
2885
2885
|
bottom: "bottom",
|
|
2886
2886
|
left: "left",
|
|
2887
|
-
right: "right"
|
|
2887
|
+
right: "right",
|
|
2888
|
+
center: "center"
|
|
2888
2889
|
};
|
|
2889
2890
|
var LOGO_SIZE_VALUES = {
|
|
2890
2891
|
xs: 10,
|
|
@@ -4705,9 +4706,10 @@ var StyledWrapper = styled__default["default"].div.attrs(function (props) {
|
|
|
4705
4706
|
borderWidth: (_design$border2 = design.border) === null || _design$border2 === void 0 ? void 0 : _design$border2.borderWidth
|
|
4706
4707
|
};
|
|
4707
4708
|
var borderColorStyles = pickBy(identity, borderColors);
|
|
4708
|
-
var backgroundStyles = {
|
|
4709
|
+
var backgroundStyles = _objectSpread$7({
|
|
4709
4710
|
position: "relative",
|
|
4710
|
-
zIndex: 0
|
|
4711
|
+
zIndex: 0
|
|
4712
|
+
}, backgroundImage.src ? {
|
|
4711
4713
|
"&::before": _objectSpread$7({
|
|
4712
4714
|
content: "''",
|
|
4713
4715
|
position: "absolute",
|
|
@@ -4719,7 +4721,7 @@ var StyledWrapper = styled__default["default"].div.attrs(function (props) {
|
|
|
4719
4721
|
zIndex: -1,
|
|
4720
4722
|
opacity: backgroundImage.opacity || 1
|
|
4721
4723
|
}, backgroundImage)
|
|
4722
|
-
};
|
|
4724
|
+
} : {});
|
|
4723
4725
|
return mergeAll([design, borderColorStyles, backgroundStyles]);
|
|
4724
4726
|
});
|
|
4725
4727
|
|
|
@@ -15466,11 +15468,11 @@ var Button = function Button(_ref) {
|
|
|
15466
15468
|
className: classnames([anchorBaseClass, className]),
|
|
15467
15469
|
design: style,
|
|
15468
15470
|
href: to !== null && to !== void 0 ? to : "",
|
|
15469
|
-
rel: "noreferrer"
|
|
15471
|
+
rel: "noreferrer",
|
|
15472
|
+
isButton: true
|
|
15470
15473
|
};
|
|
15471
15474
|
if (action === "external") {
|
|
15472
15475
|
return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
|
|
15473
|
-
isButton: true,
|
|
15474
15476
|
target: "_blank"
|
|
15475
15477
|
}), label);
|
|
15476
15478
|
}
|
|
@@ -15483,9 +15485,7 @@ var Button = function Button(_ref) {
|
|
|
15483
15485
|
to: pageUrl
|
|
15484
15486
|
}), label);
|
|
15485
15487
|
}
|
|
15486
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledAnchor,
|
|
15487
|
-
isButton: true
|
|
15488
|
-
}), label);
|
|
15488
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, commonProps, label);
|
|
15489
15489
|
};
|
|
15490
15490
|
var Button$1 = withConditionalRender(Button, prop("label"));
|
|
15491
15491
|
|