@bigbinary/neeto-site-blocks 1.4.0 → 1.4.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 CHANGED
@@ -15486,7 +15486,9 @@ var LinkElement = function LinkElement(_ref) {
15486
15486
  _ref$isHighlighted = _ref.isHighlighted,
15487
15487
  isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted,
15488
15488
  _ref$disableButtonAnd = _ref.disableButtonAndLinks,
15489
- disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
15489
+ disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd,
15490
+ _ref$children = _ref.children,
15491
+ children = _ref$children === void 0 ? null : _ref$children;
15490
15492
  var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out", {
15491
15493
  "pointer-events-none": action === "" || disableButtonAndLinks
15492
15494
  });
@@ -15501,18 +15503,18 @@ var LinkElement = function LinkElement(_ref) {
15501
15503
  if (action === "external") {
15502
15504
  return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
15503
15505
  target: "_blank"
15504
- }), label, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null));
15506
+ }), label, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null), children);
15505
15507
  }
15506
15508
  if (action === "page") {
15507
15509
  return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({
15508
15510
  as: Link !== null && Link !== void 0 ? Link : "a"
15509
15511
  }, commonProps, {
15510
15512
  to: draftMode ? "".concat(baseUrl).concat(to) : to
15511
- }), label, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null));
15513
+ }), label, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null), children);
15512
15514
  }
15513
15515
  return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({
15514
15516
  as: !draftMode && Link
15515
- }, commonProps), label, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null));
15517
+ }, commonProps), label, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, null), children);
15516
15518
  };
15517
15519
  var Link = withConditionalRender(LinkElement, function () {
15518
15520
  return !!(prop("label") || prop("icon"));
@@ -40984,14 +40986,11 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
40984
40986
  className: classnames("col-start-2 ml-3 flex max-h-8 justify-start sm:ml-0 sm:max-h-10 lg:col-span-3 lg:col-start-1 lg:max-h-14", {
40985
40987
  "col-span-10": isEmpty(buttons),
40986
40988
  "col-span-3 sm:col-span-4 sm:col-start-2": neetoCist.isNotEmpty(buttons)
40987
- }),
40988
- icon: function icon() {
40989
- return /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
40990
- design: design.logo,
40991
- src: properties.logo.src
40992
- });
40993
- }
40994
- }, otherProps)), /*#__PURE__*/React__default["default"].createElement("div", {
40989
+ })
40990
+ }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
40991
+ design: design.logo,
40992
+ src: properties.logo.src
40993
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
40995
40994
  className: classnames("col-span-5 col-start-4 hidden items-center justify-center gap-x-6 lg:flex", {
40996
40995
  "col-span-9 sm:justify-end": isEmpty(buttons)
40997
40996
  })
@@ -41074,14 +41073,11 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
41074
41073
  })), /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
41075
41074
  action: properties.logo.action,
41076
41075
  className: "col-span-6 col-start-4 m-auto flex max-h-8 justify-center sm:col-span-4 sm:col-start-5 sm:max-h-10 lg:col-span-3 lg:col-start-6 lg:max-h-14",
41077
- to: properties.logo.to,
41078
- icon: function icon() {
41079
- return /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
41080
- design: design.logo,
41081
- src: properties.logo.src
41082
- });
41083
- }
41084
- }, otherProps)), /*#__PURE__*/React__default["default"].createElement("div", {
41076
+ to: properties.logo.to
41077
+ }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
41078
+ design: design.logo,
41079
+ src: properties.logo.src
41080
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
41085
41081
  className: "col-span-5 col-start-8 hidden justify-end sm:col-span-3 sm:col-start-10 sm:flex"
41086
41082
  }, properties.icons.map(function (_icon, index) {
41087
41083
  return /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
@@ -41176,21 +41172,18 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
41176
41172
  }, /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
41177
41173
  action: properties.logo.action,
41178
41174
  className: "flex w-full gap-x-2",
41179
- to: properties.logo.to,
41180
- icon: function icon() {
41181
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
41182
- className: "max-h-8 sm:max-h-10 lg:max-h-14",
41183
- design: design.logo,
41184
- src: properties.logo.src
41185
- }), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
41186
- component: "p",
41187
- style: design.logoTitle,
41188
- className: classnames({
41189
- "hidden sm:flex": properties.logo.src
41190
- })
41191
- }, properties.logo.title));
41192
- }
41193
- }, otherProps))), /*#__PURE__*/React__default["default"].createElement("div", {
41175
+ to: properties.logo.to
41176
+ }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
41177
+ className: "max-h-8 sm:max-h-10 lg:max-h-14",
41178
+ design: design.logo,
41179
+ src: properties.logo.src
41180
+ }), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
41181
+ component: "p",
41182
+ style: design.logoTitle,
41183
+ className: classnames({
41184
+ "hidden sm:flex": properties.logo.src
41185
+ })
41186
+ }, properties.logo.title))), /*#__PURE__*/React__default["default"].createElement("div", {
41194
41187
  className: "col-span-6 col-start-7 flex items-center justify-end gap-x-6 sm:col-span-5 sm:col-start-8 lg:col-span-7 lg:col-start-6"
41195
41188
  }, properties.links.map(function (link, index) {
41196
41189
  return /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({