@bigbinary/neeto-site-blocks 1.8.15 → 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 +16 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -16135,7 +16135,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
16135
16135
|
paddingHorizontal: paddingHorizontal,
|
|
16136
16136
|
totalLength: totalLength
|
|
16137
16137
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16138
|
-
className: "flex cursor-pointer items-center
|
|
16138
|
+
className: "flex cursor-pointer items-center gap-x-2 lg:h-full lg:justify-center lg:gap-x-0",
|
|
16139
16139
|
id: "dropdown-".concat(index),
|
|
16140
16140
|
onClick: function onClick() {
|
|
16141
16141
|
return isSmallerScreen && setIsOpen(!isOpen);
|
|
@@ -16170,7 +16170,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
16170
16170
|
fill: design.color,
|
|
16171
16171
|
size: 20
|
|
16172
16172
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16173
|
-
className: classnames("hidden rounded-b
|
|
16173
|
+
className: classnames("hidden min-w-40 rounded-b border border-t-0 border-gray-300 bg-white", {
|
|
16174
16174
|
"fixed flex-col lg:flex": isOpen
|
|
16175
16175
|
}),
|
|
16176
16176
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -42546,6 +42546,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
42546
42546
|
"col-span-3 sm:col-span-4 sm:col-start-2": neetoCist.isNotEmpty(buttons)
|
|
42547
42547
|
})
|
|
42548
42548
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
42549
|
+
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
42549
42550
|
design: design.logo,
|
|
42550
42551
|
src: properties.logo.src
|
|
42551
42552
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -42581,14 +42582,15 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
42581
42582
|
}, /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
42582
42583
|
fill: design.hamburgerMenu.color
|
|
42583
42584
|
})), isMenuOpen && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42584
|
-
className: "fadeIn col-span-
|
|
42585
|
+
className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
|
|
42585
42586
|
}, properties.links.map(function (button, index) {
|
|
42586
42587
|
return /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
|
|
42588
|
+
className: "w-fit",
|
|
42587
42589
|
id: "header-with-buttons-".concat(index, "-link"),
|
|
42588
42590
|
isHighlighted: isLinkHighlighted(button.to, currentPath),
|
|
42589
42591
|
key: getUniqueKey(button.to, button.label, index),
|
|
42590
42592
|
style: mergeRight(design.links, {
|
|
42591
|
-
fontSize: "
|
|
42593
|
+
fontSize: "1em",
|
|
42592
42594
|
fontWeight: "500"
|
|
42593
42595
|
})
|
|
42594
42596
|
}, _objectSpread$6(_objectSpread$6({
|
|
@@ -42664,10 +42666,9 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
42664
42666
|
"hidden sm:flex": properties.logo.src
|
|
42665
42667
|
})
|
|
42666
42668
|
}, otherProps), properties.logo.title))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42667
|
-
className: "col-span-6 col-start-7
|
|
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"
|
|
42668
42670
|
}, properties.links.map(function (dropdownLink, index) {
|
|
42669
42671
|
return /*#__PURE__*/React__default["default"].createElement(Dropdown, _extends__default["default"]({
|
|
42670
|
-
className: "hidden lg:block",
|
|
42671
42672
|
design: design.links,
|
|
42672
42673
|
height: headerHeight,
|
|
42673
42674
|
key: getUniqueKey(dropdownLink.label, dropdownLink.to, index),
|
|
@@ -42687,14 +42688,15 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
42687
42688
|
}, /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
42688
42689
|
fill: design.hamburgerMenu.color
|
|
42689
42690
|
})), isMenuOpen && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42690
|
-
className: "fadeIn col-span-12 col-start-1
|
|
42691
|
+
className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
|
|
42691
42692
|
}, properties.links.map(function (link, index) {
|
|
42692
42693
|
return /*#__PURE__*/React__default["default"].createElement(Dropdown, {
|
|
42693
42694
|
index: index,
|
|
42695
|
+
className: "w-fit ",
|
|
42694
42696
|
dropdownLink: link,
|
|
42695
42697
|
key: getUniqueKey(link.label, link.to, index),
|
|
42696
42698
|
design: mergeRight(design.links, {
|
|
42697
|
-
fontSize: "
|
|
42699
|
+
fontSize: "1em",
|
|
42698
42700
|
fontWeight: "500"
|
|
42699
42701
|
})
|
|
42700
42702
|
});
|
|
@@ -42792,16 +42794,16 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
42792
42794
|
}, /*#__PURE__*/React__default["default"].createElement(More2, {
|
|
42793
42795
|
fill: design.hamburgerMenu.color
|
|
42794
42796
|
})), isLinksOpen && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42795
|
-
className: "fadeIn col-span-
|
|
42797
|
+
className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
|
|
42796
42798
|
}, properties.links.map(function (icon, index) {
|
|
42797
42799
|
return /*#__PURE__*/React__default["default"].createElement(Link, _extends__default["default"]({
|
|
42798
|
-
className: "w-
|
|
42800
|
+
className: "w-fit",
|
|
42799
42801
|
id: "header-with-icons-links-".concat(index, "-link"),
|
|
42800
42802
|
isHighlighted: isLinkHighlighted(icon.to, currentPath),
|
|
42801
42803
|
key: getUniqueKey(icon.url, icon.label, index),
|
|
42802
42804
|
setIsMenuOpen: setIsLinksOpen,
|
|
42803
42805
|
style: mergeRight(design.links, {
|
|
42804
|
-
fontSize: "
|
|
42806
|
+
fontSize: "1em",
|
|
42805
42807
|
fontWeight: "500"
|
|
42806
42808
|
})
|
|
42807
42809
|
}, icon));
|
|
@@ -42908,7 +42910,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
42908
42910
|
}, /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
42909
42911
|
fill: design.hamburgerMenu.color
|
|
42910
42912
|
})), isMenuOpen && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42911
|
-
className: "fadeIn col-span-12
|
|
42913
|
+
className: "fadeIn col-span-12 col-start-1 my-6 ml-2 flex flex-col gap-y-6 lg:hidden"
|
|
42912
42914
|
}, properties.links.map(function (_ref2, index) {
|
|
42913
42915
|
var label = _ref2.label,
|
|
42914
42916
|
to = _ref2.to,
|
|
@@ -42919,11 +42921,12 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
42919
42921
|
label: label,
|
|
42920
42922
|
setIsMenuOpen: setIsMenuOpen,
|
|
42921
42923
|
to: to,
|
|
42924
|
+
className: "w-fit",
|
|
42922
42925
|
id: "header-with-logo-title-links-".concat(index, "-link"),
|
|
42923
42926
|
isHighlighted: isLinkHighlighted(to, currentPath),
|
|
42924
42927
|
key: getUniqueKey(to, label, index),
|
|
42925
42928
|
style: mergeRight(design.links, {
|
|
42926
|
-
fontSize: "
|
|
42929
|
+
fontSize: "1em",
|
|
42927
42930
|
fontWeight: "500"
|
|
42928
42931
|
})
|
|
42929
42932
|
}, otherProps));
|