@bigbinary/neeto-site-blocks 1.10.3 → 1.10.4

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 CHANGED
@@ -16667,7 +16667,8 @@ var Button = function Button(_ref) {
16667
16667
  id = _ref.id,
16668
16668
  index = _ref.index;
16669
16669
  var anchorBaseClass = classnames("inline-flex items-center justify-center transition-all duration-300 ease-in-out", {
16670
- "neeto-site-highlight__element after:z-10": disableButtonAndLinks
16670
+ "neeto-site-highlight__element after:z-10": disableButtonAndLinks,
16671
+ "pointer-events-none": !disableButtonAndLinks && action === ""
16671
16672
  });
16672
16673
  var _useElementClick = useElementClick({
16673
16674
  id: id,
@@ -16733,7 +16734,8 @@ var LinkElement = function LinkElement(_ref) {
16733
16734
  index = _ref.index,
16734
16735
  otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$x);
16735
16736
  var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out relative", {
16736
- " neeto-site-highlight__element": disableButtonAndLinks
16737
+ "neeto-site-highlight__element": disableButtonAndLinks,
16738
+ "pointer-events-none": !disableButtonAndLinks && action === ""
16737
16739
  });
16738
16740
  var _useElementClick = useElementClick({
16739
16741
  id: id,
@@ -42657,7 +42659,7 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
42657
42659
  "sm:col-span-12 sm:col-start-1 flex flex-col justify-center order-2": POSITIONS.TOP.label === mediaPosition && mediaURL,
42658
42660
  "sm:col-span-12 lg:col-start-1": !mediaURL
42659
42661
  });
42660
- var buttonBaseClasses = classnames("flex w-full items-center gap-x-3 justify-center", {
42662
+ var buttonBaseClasses = classnames("flex w-full items-center gap-x-3", {
42661
42663
  "sm:justify-start": mediaURL && (mediaPosition === POSITIONS.LEFT.label || mediaPosition === POSITIONS.RIGHT.label)
42662
42664
  });
42663
42665
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
@@ -42686,14 +42688,17 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
42686
42688
  component: "p",
42687
42689
  id: "hero-with-call-to-action-description",
42688
42690
  style: design.description
42689
- }, otherProps), description), /*#__PURE__*/React__default["default"].createElement("div", {
42690
- className: buttonBaseClasses
42691
+ }, otherProps), description), /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
42692
+ className: buttonBaseClasses,
42693
+ design: {
42694
+ justifyContent: design.primaryButtons.justifyContent
42695
+ }
42691
42696
  }, properties.buttons.map(function (button, index) {
42692
42697
  return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
42693
42698
  className: "w-full justify-center sm:w-auto sm:justify-start",
42694
42699
  id: "hero-with-call-to-action-button-".concat(index, "-button"),
42695
42700
  key: getUniqueKey(button.label, button.to, index),
42696
- style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
42701
+ style: button.type === "primary" ? dissoc("justifyContent", design.primaryButtons) : design.secondaryButtons
42697
42702
  }, _objectSpread$3(_objectSpread$3({
42698
42703
  index: index
42699
42704
  }, button), otherProps)));