@bigbinary/neeto-site-blocks 1.16.1 → 1.16.2

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
@@ -16366,6 +16366,8 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
16366
16366
  var position = properties.position;
16367
16367
  var headerIntersectorRef = React.useRef(null);
16368
16368
  var isHeadingWrapperVisible = useElementVisible(headerIntersectorRef);
16369
+ var logo = properties.logo,
16370
+ links = properties.links;
16369
16371
  var baseClasses = "grid grid-cols-12 sm:gap-x-4 items-center grid-flow-row-dense";
16370
16372
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
16371
16373
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
@@ -16380,8 +16382,10 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
16380
16382
  "neeto-site-sticky-header--scroll": !isHeadingWrapperVisible
16381
16383
  }, className),
16382
16384
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
16383
- className: "col-span-5 col-start-1 hidden items-center gap-6 lg:flex",
16384
- children: properties.links.map(function (link, index) {
16385
+ className: classnames__default["default"]("col-span-5 col-start-1 hidden items-center gap-6 lg:flex", {
16386
+ "lg:col-start-4 lg:justify-center": logo.position === POSITIONS.LEFT.label
16387
+ }),
16388
+ children: links.map(function (link, index) {
16385
16389
  return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$7(_objectSpread$7({
16386
16390
  isHighlighted: isLinkHighlighted(link.to, currentPath),
16387
16391
  style: design.links
@@ -16392,19 +16396,22 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
16392
16396
  }, otherProps), getUniqueKey(link.label, index));
16393
16397
  })
16394
16398
  }), /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$7(_objectSpread$7({
16395
- action: properties.logo.action,
16396
- 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",
16397
- to: properties.logo.to
16399
+ action: logo.action,
16400
+ to: logo.to,
16401
+ className: classnames__default["default"]("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:max-h-14", {
16402
+ "lg:col-start-1": logo.position === POSITIONS.LEFT.label,
16403
+ "lg:col-start-6": logo.position === POSITIONS.RIGHT.label
16404
+ })
16398
16405
  }, otherProps), {}, {
16399
16406
  children: /*#__PURE__*/jsxRuntime.jsx(StyledImage$1, {
16400
16407
  image: image,
16401
16408
  priority: true,
16402
- alt: properties.logo.alt,
16409
+ alt: logo.alt,
16403
16410
  design: design.logo,
16404
16411
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
16405
16412
  id: "header-with-icons-logo",
16406
16413
  isAddNewPane: otherProps.isAddNewPane,
16407
- src: properties.logo.src
16414
+ src: logo.src
16408
16415
  })
16409
16416
  })), /*#__PURE__*/jsxRuntime.jsx("div", {
16410
16417
  className: "col-span-5 col-start-8 hidden justify-end sm:col-span-3 sm:col-start-10 sm:flex",
@@ -16445,7 +16452,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
16445
16452
  })
16446
16453
  }), isLinksOpen && /*#__PURE__*/jsxRuntime.jsxs("div", {
16447
16454
  className: "fadeIn col-span-12 col-start-1 my-6 flex flex-col gap-y-6 lg:hidden",
16448
- children: [properties.links.map(function (icon, index) {
16455
+ children: [links.map(function (icon, index) {
16449
16456
  return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$7({
16450
16457
  className: "w-fit",
16451
16458
  id: "header-with-icons-links-".concat(index, "-link"),