@bigbinary/neeto-site-blocks 1.8.14 → 1.8.16

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
@@ -14512,11 +14512,7 @@ var StyledAnchor = styled__default["default"].a.attrs(function (props) {
14512
14512
  };
14513
14513
  var borderColorStyles = pickBy(identity, borderColors);
14514
14514
  var anchorStyles = disableHovering ? {} : {
14515
- color: isHighlighted ? blendColors({
14516
- color0: design.color,
14517
- color1: "#0e19e8",
14518
- percentage: 0.4
14519
- }) : design.color,
14515
+ color: design.color,
14520
14516
  "&:hover": {
14521
14517
  transitionDuration: "0.3s",
14522
14518
  borderColor: isButton && blendColors({
@@ -14540,7 +14536,7 @@ var StyledAnchor = styled__default["default"].a.attrs(function (props) {
14540
14536
  position: "absolute",
14541
14537
  bottom: "-0.225rem",
14542
14538
  left: 0,
14543
- width: 0,
14539
+ width: isHighlighted ? "100%" : 0,
14544
14540
  height: "1px",
14545
14541
  backgroundColor: blendColors({
14546
14542
  color0: design.color,
@@ -16139,7 +16135,7 @@ var Dropdown = function Dropdown(_ref) {
16139
16135
  paddingHorizontal: paddingHorizontal,
16140
16136
  totalLength: totalLength
16141
16137
  }, /*#__PURE__*/React__default["default"].createElement("div", {
16142
- className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
16138
+ className: "flex cursor-pointer items-center gap-x-2 lg:h-full lg:justify-center lg:gap-x-0",
16143
16139
  id: "dropdown-".concat(index),
16144
16140
  onClick: function onClick() {
16145
16141
  return isSmallerScreen && setIsOpen(!isOpen);
@@ -16174,7 +16170,7 @@ var Dropdown = function Dropdown(_ref) {
16174
16170
  fill: design.color,
16175
16171
  size: 20
16176
16172
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
16177
- className: classnames("hidden rounded-b-md border border-gray-200 bg-white", {
16173
+ className: classnames("hidden min-w-40 rounded-b border border-t-0 border-gray-300 bg-white", {
16178
16174
  "fixed flex-col lg:flex": isOpen
16179
16175
  }),
16180
16176
  onMouseEnter: function onMouseEnter() {
@@ -21680,8 +21676,7 @@ var CardsWithImage = function CardsWithImage(_ref) {
21680
21676
  className: "ns-card-animation col-span-12 flex h-40 items-center justify-center transition-all duration-300 ease-in-out sm:col-span-6 lg:col-span-4",
21681
21677
  design: _objectSpread$f(_objectSpread$f({}, design.card), {}, {
21682
21678
  paddingHorizontal: 0,
21683
- paddingVertical: 0,
21684
- backgroundColor: "transparent"
21679
+ paddingVertical: 0
21685
21680
  })
21686
21681
  }, /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
21687
21682
  className: "col-span-12 flex items-center justify-center gap-x-2",
@@ -42551,6 +42546,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
42551
42546
  "col-span-3 sm:col-span-4 sm:col-start-2": neetoCist.isNotEmpty(buttons)
42552
42547
  })
42553
42548
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
42549
+ className: "max-h-8 sm:max-h-10 lg:max-h-14",
42554
42550
  design: design.logo,
42555
42551
  src: properties.logo.src
42556
42552
  })), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -42586,14 +42582,15 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
42586
42582
  }, /*#__PURE__*/React__default["default"].createElement(Menu, {
42587
42583
  fill: design.hamburgerMenu.color
42588
42584
  })), isMenuOpen && /*#__PURE__*/React__default["default"].createElement("div", {
42589
- className: "fadeIn col-span-2 col-start-1 ml-2 mt-4 flex flex-col gap-y-6 lg:hidden"
42585
+ className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
42590
42586
  }, properties.links.map(function (button, index) {
42591
42587
  return /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
42588
+ className: "w-fit",
42592
42589
  id: "header-with-buttons-".concat(index, "-link"),
42593
42590
  isHighlighted: isLinkHighlighted(button.to, currentPath),
42594
42591
  key: getUniqueKey(button.to, button.label, index),
42595
42592
  style: mergeRight(design.links, {
42596
- fontSize: "1.25em",
42593
+ fontSize: "1em",
42597
42594
  fontWeight: "500"
42598
42595
  })
42599
42596
  }, _objectSpread$6(_objectSpread$6({
@@ -42669,10 +42666,9 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
42669
42666
  "hidden sm:flex": properties.logo.src
42670
42667
  })
42671
42668
  }, otherProps), properties.logo.title))), /*#__PURE__*/React__default["default"].createElement("div", {
42672
- 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"
42669
+ className: "col-span-6 col-start-7 hidden items-center justify-end gap-x-6 sm:col-span-5 sm:col-start-8 lg:col-span-7 lg:col-start-6 lg:flex"
42673
42670
  }, properties.links.map(function (dropdownLink, index) {
42674
42671
  return /*#__PURE__*/React__default["default"].createElement(Dropdown, _extends__default["default"]({
42675
- className: "hidden lg:block",
42676
42672
  design: design.links,
42677
42673
  height: headerHeight,
42678
42674
  key: getUniqueKey(dropdownLink.label, dropdownLink.to, index),
@@ -42692,14 +42688,15 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
42692
42688
  }, /*#__PURE__*/React__default["default"].createElement(Menu, {
42693
42689
  fill: design.hamburgerMenu.color
42694
42690
  })), isMenuOpen && /*#__PURE__*/React__default["default"].createElement("div", {
42695
- className: "fadeIn col-span-12 col-start-1 mt-4 flex flex-col gap-y-6 lg:hidden"
42691
+ className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
42696
42692
  }, properties.links.map(function (link, index) {
42697
42693
  return /*#__PURE__*/React__default["default"].createElement(Dropdown, {
42698
42694
  index: index,
42695
+ className: "w-fit ",
42699
42696
  dropdownLink: link,
42700
42697
  key: getUniqueKey(link.label, link.to, index),
42701
42698
  design: mergeRight(design.links, {
42702
- fontSize: "1.25em",
42699
+ fontSize: "1em",
42703
42700
  fontWeight: "500"
42704
42701
  })
42705
42702
  });
@@ -42797,16 +42794,16 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
42797
42794
  }, /*#__PURE__*/React__default["default"].createElement(More2, {
42798
42795
  fill: design.hamburgerMenu.color
42799
42796
  })), isLinksOpen && /*#__PURE__*/React__default["default"].createElement("div", {
42800
- className: "fadeIn col-span-4 col-start-1 ml-2 mt-4 flex flex-col gap-y-6 lg:hidden"
42797
+ className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
42801
42798
  }, properties.links.map(function (icon, index) {
42802
42799
  return /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
42803
- className: "w-full",
42800
+ className: "w-fit",
42804
42801
  id: "header-with-icons-links-".concat(index, "-link"),
42805
42802
  isHighlighted: isLinkHighlighted(icon.to, currentPath),
42806
42803
  key: getUniqueKey(icon.url, icon.label, index),
42807
42804
  setIsMenuOpen: setIsLinksOpen,
42808
42805
  style: mergeRight(design.links, {
42809
- fontSize: "1.25em",
42806
+ fontSize: "1em",
42810
42807
  fontWeight: "500"
42811
42808
  })
42812
42809
  }, icon));
@@ -42913,7 +42910,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
42913
42910
  }, /*#__PURE__*/React__default["default"].createElement(Menu, {
42914
42911
  fill: design.hamburgerMenu.color
42915
42912
  })), isMenuOpen && /*#__PURE__*/React__default["default"].createElement("div", {
42916
- className: "fadeIn col-span-12 mt-4 flex flex-col gap-y-6 lg:hidden"
42913
+ className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
42917
42914
  }, properties.links.map(function (_ref2, index) {
42918
42915
  var label = _ref2.label,
42919
42916
  to = _ref2.to,
@@ -42924,11 +42921,12 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
42924
42921
  label: label,
42925
42922
  setIsMenuOpen: setIsMenuOpen,
42926
42923
  to: to,
42924
+ className: "w-fit",
42927
42925
  id: "header-with-logo-title-links-".concat(index, "-link"),
42928
42926
  isHighlighted: isLinkHighlighted(to, currentPath),
42929
42927
  key: getUniqueKey(to, label, index),
42930
42928
  style: mergeRight(design.links, {
42931
- fontSize: "1.25em",
42929
+ fontSize: "1em",
42932
42930
  fontWeight: "500"
42933
42931
  })
42934
42932
  }, otherProps));