@bigbinary/neeto-site-blocks 2.0.9 → 2.0.10
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 +248 -77
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +248 -77
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7444,7 +7444,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7444
7444
|
paddingHorizontal: paddingHorizontal,
|
|
7445
7445
|
totalLength: totalLength,
|
|
7446
7446
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7447
|
-
className: "flex cursor-pointer items-center gap-x-2 lg:h-full lg:justify-center lg:gap-x-0",
|
|
7447
|
+
className: "flex cursor-pointer items-center justify-between gap-x-2 lg:h-full lg:justify-center lg:gap-x-0",
|
|
7448
7448
|
id: "dropdown-".concat(index),
|
|
7449
7449
|
onClick: function onClick() {
|
|
7450
7450
|
return isSmallerScreen && setIsOpen(!isOpen);
|
|
@@ -7460,6 +7460,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7460
7460
|
label: label,
|
|
7461
7461
|
action: isLargerScreen ? "external" : "",
|
|
7462
7462
|
as: "h6",
|
|
7463
|
+
className: "[&::before]:hidden md:[&::before]:block",
|
|
7463
7464
|
id: "header-with-dropdown-links-link-".concat(index, "-link"),
|
|
7464
7465
|
style: design
|
|
7465
7466
|
}, otherProps)), /*#__PURE__*/jsxRuntime.jsx(framerMotion.motion.div, {
|
|
@@ -7492,7 +7493,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7492
7493
|
},
|
|
7493
7494
|
children: renderDropdownItems("px-4 py-2 hover:bg-gray-100 last:rounded-b-md")
|
|
7494
7495
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7495
|
-
className: "
|
|
7496
|
+
className: classnames__default["default"]({
|
|
7497
|
+
"mt-4 block bg-gray-100/70 p-2 lg:hidden": isOpen
|
|
7498
|
+
}),
|
|
7496
7499
|
children: /*#__PURE__*/jsxRuntime.jsx(framerMotion.AnimatePresence, {
|
|
7497
7500
|
children: isOpen && /*#__PURE__*/jsxRuntime.jsx(framerMotion.motion.div, {
|
|
7498
7501
|
animate: {
|
|
@@ -7511,7 +7514,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7511
7514
|
transition: {
|
|
7512
7515
|
duration: 0.3
|
|
7513
7516
|
},
|
|
7514
|
-
children: renderDropdownItems("rounded-md
|
|
7517
|
+
children: renderDropdownItems("rounded-md p-2 hover:bg-white text-sm")
|
|
7515
7518
|
})
|
|
7516
7519
|
})
|
|
7517
7520
|
})]
|
|
@@ -16273,6 +16276,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
16273
16276
|
className: "col-span-8 col-start-5 flex justify-end gap-x-2 sm:col-span-4 sm:col-start-9 lg:col-span-3 lg:col-start-10",
|
|
16274
16277
|
children: buttons.map(function (button, index) {
|
|
16275
16278
|
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$9({
|
|
16279
|
+
className: "flex-shrink-0",
|
|
16276
16280
|
id: "header-with-buttons-buttons-".concat(index, "-button"),
|
|
16277
16281
|
style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
|
|
16278
16282
|
}, _objectSpread$9(_objectSpread$9({
|
|
@@ -16280,33 +16284,68 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
16280
16284
|
}, button), otherProps)), getUniqueKey(button.label, index));
|
|
16281
16285
|
})
|
|
16282
16286
|
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16283
|
-
className:
|
|
16284
|
-
"rotate-90 transform": isMenuOpen
|
|
16285
|
-
}),
|
|
16287
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16286
16288
|
onClick: function onClick() {
|
|
16287
16289
|
return setIsMenuOpen(function (open) {
|
|
16288
16290
|
return !open;
|
|
16289
16291
|
});
|
|
16290
16292
|
},
|
|
16291
|
-
children:
|
|
16292
|
-
className: "fadeIn",
|
|
16293
|
-
fill: design.hamburgerMenu.color,
|
|
16294
|
-
size: 32
|
|
16295
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16293
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu, {
|
|
16296
16294
|
className: "fadeIn",
|
|
16297
16295
|
fill: design.hamburgerMenu.color,
|
|
16298
16296
|
size: 32
|
|
16299
16297
|
})
|
|
16300
|
-
})
|
|
16301
|
-
|
|
16298
|
+
})]
|
|
16299
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16300
|
+
role: "button",
|
|
16301
|
+
tabIndex: isMenuOpen ? 0 : -1,
|
|
16302
|
+
className: classnames__default["default"]("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isMenuOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16303
|
+
onClick: function onClick() {
|
|
16304
|
+
return setIsMenuOpen(false);
|
|
16305
|
+
}
|
|
16306
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16307
|
+
style: {
|
|
16308
|
+
backgroundColor: design.body.backgroundColor
|
|
16309
|
+
},
|
|
16310
|
+
className: classnames__default["default"]("fixed inset-y-0 start-0 z-[999] flex flex-col overflow-x-hidden shadow-md transition-all duration-500 ease-in-out lg:hidden", isMenuOpen ? "w-[80%]" : "w-0"),
|
|
16311
|
+
onClick: function onClick(e) {
|
|
16312
|
+
return e.stopPropagation();
|
|
16313
|
+
},
|
|
16314
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16315
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16316
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$9(_objectSpread$9({
|
|
16317
|
+
action: properties.logo.action,
|
|
16318
|
+
to: properties.logo.to
|
|
16319
|
+
}, otherProps), {}, {
|
|
16320
|
+
children: /*#__PURE__*/jsxRuntime.jsx(StyledImage$1, {
|
|
16321
|
+
image: image,
|
|
16322
|
+
priority: true,
|
|
16323
|
+
alt: properties.logo.alt,
|
|
16324
|
+
className: "sm:max-h-18 max-h-16 lg:max-h-20",
|
|
16325
|
+
design: design.logo,
|
|
16326
|
+
src: properties.logo.src
|
|
16327
|
+
})
|
|
16328
|
+
})), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16329
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16330
|
+
onClick: function onClick() {
|
|
16331
|
+
return setIsMenuOpen(false);
|
|
16332
|
+
},
|
|
16333
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16334
|
+
className: "fadeIn",
|
|
16335
|
+
fill: design.hamburgerMenu.color,
|
|
16336
|
+
size: 32
|
|
16337
|
+
})
|
|
16338
|
+
})]
|
|
16339
|
+
}), /*#__PURE__*/jsxRuntime.jsx("nav", {
|
|
16340
|
+
className: classnames__default["default"]("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isMenuOpen ? "opacity-100" : "opacity-0"),
|
|
16302
16341
|
children: properties.links.map(function (button, index) {
|
|
16303
16342
|
return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$9({
|
|
16304
|
-
className: "w-
|
|
16343
|
+
className: "w-full py-4 hover:opacity-80 [&::before]:!bottom-0 [&::before]:!w-full [&::before]:!opacity-40",
|
|
16305
16344
|
id: "header-with-buttons-".concat(index, "-link"),
|
|
16306
16345
|
isHighlighted: isLinkHighlighted(button.to, currentPath),
|
|
16307
16346
|
style: ramda.mergeRight(design.links, {
|
|
16308
16347
|
fontSize: "1em",
|
|
16309
|
-
fontWeight: "
|
|
16348
|
+
fontWeight: "600"
|
|
16310
16349
|
})
|
|
16311
16350
|
}, _objectSpread$9(_objectSpread$9({
|
|
16312
16351
|
index: index,
|
|
@@ -16408,39 +16447,87 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
16408
16447
|
}, otherProps)), getUniqueKey(dropdownLink.label, dropdownLink.to, index));
|
|
16409
16448
|
})
|
|
16410
16449
|
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16411
|
-
className:
|
|
16412
|
-
"rotate-90 transform": isMenuOpen
|
|
16413
|
-
}),
|
|
16450
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16414
16451
|
onClick: function onClick() {
|
|
16415
16452
|
return setIsMenuOpen(function (open) {
|
|
16416
16453
|
return !open;
|
|
16417
16454
|
});
|
|
16418
16455
|
},
|
|
16419
|
-
children:
|
|
16456
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu, {
|
|
16420
16457
|
className: "fadeIn",
|
|
16421
16458
|
fill: design.hamburgerMenu.color,
|
|
16422
16459
|
size: 32
|
|
16423
|
-
})
|
|
16460
|
+
})
|
|
16461
|
+
})]
|
|
16462
|
+
})
|
|
16463
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16464
|
+
role: "button",
|
|
16465
|
+
tabIndex: isMenuOpen ? 0 : -1,
|
|
16466
|
+
className: classnames__default["default"]("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isMenuOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16467
|
+
onClick: function onClick() {
|
|
16468
|
+
return setIsMenuOpen(false);
|
|
16469
|
+
}
|
|
16470
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16471
|
+
style: {
|
|
16472
|
+
backgroundColor: design.body.backgroundColor
|
|
16473
|
+
},
|
|
16474
|
+
className: classnames__default["default"]("fixed inset-y-0 start-0 z-[999] flex flex-col overflow-x-hidden shadow-md transition-all duration-500 ease-in-out lg:hidden", isMenuOpen ? "w-[80%]" : "w-0"),
|
|
16475
|
+
onClick: function onClick(e) {
|
|
16476
|
+
return e.stopPropagation();
|
|
16477
|
+
},
|
|
16478
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16479
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16480
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(Link, _objectSpread$8(_objectSpread$8({
|
|
16481
|
+
action: properties.logo.action,
|
|
16482
|
+
className: "flex w-full gap-x-2",
|
|
16483
|
+
to: properties.logo.to
|
|
16484
|
+
}, otherProps), {}, {
|
|
16485
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(StyledImage$1, {
|
|
16486
|
+
image: image,
|
|
16487
|
+
priority: true,
|
|
16488
|
+
alt: properties.logo.alt,
|
|
16489
|
+
className: "sm:max-h-18 max-h-16 lg:max-h-20",
|
|
16490
|
+
design: design.logo,
|
|
16491
|
+
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
16492
|
+
id: "header-with-dropdown-links-logo",
|
|
16493
|
+
isAddNewPane: otherProps.isAddNewPane,
|
|
16494
|
+
src: properties.logo.src
|
|
16495
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography$1, _objectSpread$8(_objectSpread$8({
|
|
16496
|
+
component: "p",
|
|
16497
|
+
id: "header-with-dropdown-links-logo-title",
|
|
16498
|
+
style: design.logoTitle,
|
|
16499
|
+
className: classnames__default["default"]({
|
|
16500
|
+
"hidden sm:flex": properties.logo.src
|
|
16501
|
+
})
|
|
16502
|
+
}, otherProps), {}, {
|
|
16503
|
+
children: properties.logo.title
|
|
16504
|
+
}))]
|
|
16505
|
+
})), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16506
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16507
|
+
onClick: function onClick() {
|
|
16508
|
+
return setIsMenuOpen(false);
|
|
16509
|
+
},
|
|
16510
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16424
16511
|
className: "fadeIn",
|
|
16425
16512
|
fill: design.hamburgerMenu.color,
|
|
16426
16513
|
size: 32
|
|
16427
16514
|
})
|
|
16428
|
-
}), isMenuOpen && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16429
|
-
className: "fadeIn col-span-12 col-start-1 my-6 flex flex-col gap-y-6 lg:hidden",
|
|
16430
|
-
children: properties.links.map(function (link, index) {
|
|
16431
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
16432
|
-
index: index,
|
|
16433
|
-
className: "w-fit ",
|
|
16434
|
-
dropdownLink: link,
|
|
16435
|
-
key: getUniqueKey(link.label, link.to, index),
|
|
16436
|
-
design: ramda.mergeRight(design.links, {
|
|
16437
|
-
fontSize: "1em",
|
|
16438
|
-
fontWeight: "500"
|
|
16439
|
-
})
|
|
16440
|
-
});
|
|
16441
|
-
})
|
|
16442
16515
|
})]
|
|
16443
|
-
})
|
|
16516
|
+
}), /*#__PURE__*/jsxRuntime.jsx("nav", {
|
|
16517
|
+
className: classnames__default["default"]("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isMenuOpen ? "opacity-100" : "opacity-0"),
|
|
16518
|
+
children: properties.links.map(function (link, index) {
|
|
16519
|
+
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
16520
|
+
index: index,
|
|
16521
|
+
className: "w-full border-b border-gray-200 py-4",
|
|
16522
|
+
dropdownLink: link,
|
|
16523
|
+
key: getUniqueKey(link.label, link.to, index),
|
|
16524
|
+
design: ramda.mergeRight(design.links, {
|
|
16525
|
+
fontSize: "1em",
|
|
16526
|
+
fontWeight: "600"
|
|
16527
|
+
})
|
|
16528
|
+
});
|
|
16529
|
+
})
|
|
16530
|
+
})]
|
|
16444
16531
|
})]
|
|
16445
16532
|
});
|
|
16446
16533
|
};
|
|
@@ -16532,53 +16619,90 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
16532
16619
|
}, _icon), otherProps)), getUniqueKey(_icon.to, index));
|
|
16533
16620
|
})
|
|
16534
16621
|
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16535
|
-
className:
|
|
16536
|
-
"rotate-90 transform": isLinksOpen
|
|
16537
|
-
}),
|
|
16622
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16538
16623
|
onClick: function onClick() {
|
|
16539
16624
|
return setIsLinksOpen(function (open) {
|
|
16540
16625
|
return !open;
|
|
16541
16626
|
});
|
|
16542
16627
|
},
|
|
16543
|
-
children:
|
|
16544
|
-
className: "fadeIn",
|
|
16545
|
-
fill: design.hamburgerMenu.color,
|
|
16546
|
-
size: 32
|
|
16547
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16628
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu, {
|
|
16548
16629
|
className: "fadeIn",
|
|
16549
16630
|
fill: design.hamburgerMenu.color,
|
|
16550
16631
|
size: 32
|
|
16551
16632
|
})
|
|
16552
|
-
})
|
|
16553
|
-
|
|
16554
|
-
|
|
16633
|
+
})]
|
|
16634
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16635
|
+
role: "button",
|
|
16636
|
+
tabIndex: isLinksOpen ? 0 : -1,
|
|
16637
|
+
className: classnames__default["default"]("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isLinksOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16638
|
+
onClick: function onClick() {
|
|
16639
|
+
return setIsLinksOpen(false);
|
|
16640
|
+
}
|
|
16641
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16642
|
+
style: {
|
|
16643
|
+
backgroundColor: design.body.backgroundColor
|
|
16644
|
+
},
|
|
16645
|
+
className: classnames__default["default"]("fixed inset-y-0 start-0 z-[999] flex flex-col overflow-x-hidden shadow-md transition-all duration-500 ease-in-out lg:hidden", isLinksOpen ? "w-[80%]" : "w-0"),
|
|
16646
|
+
onClick: function onClick(e) {
|
|
16647
|
+
return e.stopPropagation();
|
|
16648
|
+
},
|
|
16649
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16650
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16651
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$7(_objectSpread$7({
|
|
16652
|
+
action: logo.action,
|
|
16653
|
+
to: logo.to
|
|
16654
|
+
}, otherProps), {}, {
|
|
16655
|
+
children: /*#__PURE__*/jsxRuntime.jsx(StyledImage$1, {
|
|
16656
|
+
image: image,
|
|
16657
|
+
priority: true,
|
|
16658
|
+
alt: logo.alt,
|
|
16659
|
+
design: design.logo,
|
|
16660
|
+
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
16661
|
+
id: "header-with-icons-logo",
|
|
16662
|
+
isAddNewPane: otherProps.isAddNewPane,
|
|
16663
|
+
src: logo.src
|
|
16664
|
+
})
|
|
16665
|
+
})), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16666
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16667
|
+
onClick: function onClick() {
|
|
16668
|
+
return setIsLinksOpen(false);
|
|
16669
|
+
},
|
|
16670
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16671
|
+
className: "fadeIn",
|
|
16672
|
+
fill: design.hamburgerMenu.color,
|
|
16673
|
+
size: 32
|
|
16674
|
+
})
|
|
16675
|
+
})]
|
|
16676
|
+
}), /*#__PURE__*/jsxRuntime.jsx("nav", {
|
|
16677
|
+
className: classnames__default["default"]("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isLinksOpen ? "opacity-100" : "opacity-0"),
|
|
16678
|
+
children: links.map(function (icon, index) {
|
|
16555
16679
|
return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$7({
|
|
16556
|
-
className: "w-
|
|
16680
|
+
className: "w-full py-4 hover:opacity-80 [&::before]:!bottom-0 [&::before]:!w-full [&::before]:!opacity-40",
|
|
16557
16681
|
id: "header-with-icons-links-".concat(index, "-link"),
|
|
16558
16682
|
isHighlighted: isLinkHighlighted(icon.to, currentPath),
|
|
16559
16683
|
setIsMenuOpen: setIsLinksOpen,
|
|
16560
16684
|
style: ramda.mergeRight(design.links, {
|
|
16561
16685
|
fontSize: "1em",
|
|
16562
|
-
fontWeight: "
|
|
16686
|
+
fontWeight: "600"
|
|
16563
16687
|
})
|
|
16564
16688
|
}, icon), getUniqueKey(icon.url, icon.label, index));
|
|
16565
|
-
})
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
}
|
|
16579
|
-
}
|
|
16580
|
-
})
|
|
16581
|
-
})
|
|
16689
|
+
})
|
|
16690
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16691
|
+
className: "flex flex-shrink-0 items-center justify-center gap-x-2 p-6 md:hidden",
|
|
16692
|
+
children: properties.icons.map(function (_icon2, index) {
|
|
16693
|
+
return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread$7(_objectSpread$7({
|
|
16694
|
+
disableHovering: true,
|
|
16695
|
+
className: "hover:no-underline",
|
|
16696
|
+
id: "header-with-icons-icons-".concat(index, "-icon"),
|
|
16697
|
+
style: design.icons,
|
|
16698
|
+
icon: function icon() {
|
|
16699
|
+
return renderIcon(_objectSpread$7({
|
|
16700
|
+
name: _icon2.name,
|
|
16701
|
+
type: _icon2.type
|
|
16702
|
+
}, design.icons));
|
|
16703
|
+
}
|
|
16704
|
+
}, _icon2), otherProps), getUniqueKey(_icon2.to, index));
|
|
16705
|
+
})
|
|
16582
16706
|
})]
|
|
16583
16707
|
})]
|
|
16584
16708
|
});
|
|
@@ -16668,25 +16792,72 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
16668
16792
|
}, button), otherProps)), getUniqueKey(button.label, button.url, index));
|
|
16669
16793
|
})]
|
|
16670
16794
|
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16671
|
-
className:
|
|
16672
|
-
"rotate-90 transform": isMenuOpen
|
|
16673
|
-
}),
|
|
16795
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16674
16796
|
onClick: function onClick() {
|
|
16675
16797
|
return setIsMenuOpen(function (open) {
|
|
16676
16798
|
return !open;
|
|
16677
16799
|
});
|
|
16678
16800
|
},
|
|
16679
|
-
children:
|
|
16680
|
-
className: "fadeIn",
|
|
16681
|
-
fill: design.hamburgerMenu.color,
|
|
16682
|
-
size: 32
|
|
16683
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16801
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Menu, {
|
|
16684
16802
|
className: "fadeIn",
|
|
16685
16803
|
fill: design.hamburgerMenu.color,
|
|
16686
16804
|
size: 32
|
|
16687
16805
|
})
|
|
16688
|
-
})
|
|
16689
|
-
|
|
16806
|
+
})]
|
|
16807
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16808
|
+
role: "button",
|
|
16809
|
+
tabIndex: isMenuOpen ? 0 : -1,
|
|
16810
|
+
className: classnames__default["default"]("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isMenuOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16811
|
+
onClick: function onClick() {
|
|
16812
|
+
return setIsMenuOpen(false);
|
|
16813
|
+
}
|
|
16814
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16815
|
+
style: {
|
|
16816
|
+
backgroundColor: design.body.backgroundColor
|
|
16817
|
+
},
|
|
16818
|
+
className: classnames__default["default"]("fixed inset-y-0 start-0 z-[999] flex flex-col overflow-x-hidden shadow-md transition-all duration-500 ease-in-out lg:hidden", isMenuOpen ? "w-[80%]" : "w-0"),
|
|
16819
|
+
onClick: function onClick(e) {
|
|
16820
|
+
return e.stopPropagation();
|
|
16821
|
+
},
|
|
16822
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16823
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16824
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(Link, _objectSpread$6(_objectSpread$6({
|
|
16825
|
+
action: properties.logo.action,
|
|
16826
|
+
className: "flex w-full gap-x-2",
|
|
16827
|
+
to: properties.logo.to
|
|
16828
|
+
}, otherProps), {}, {
|
|
16829
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(StyledImage$1, {
|
|
16830
|
+
image: image,
|
|
16831
|
+
priority: true,
|
|
16832
|
+
alt: properties.logo.alt,
|
|
16833
|
+
className: "sm:max-h-18 max-h-16 lg:max-h-20",
|
|
16834
|
+
design: design.logo,
|
|
16835
|
+
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
16836
|
+
id: "header-with-logo-title-logo",
|
|
16837
|
+
isAddNewPane: otherProps.isAddNewPane,
|
|
16838
|
+
src: properties.logo.src
|
|
16839
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography$1, {
|
|
16840
|
+
component: "p",
|
|
16841
|
+
id: "header-with-logo-title-logo-title",
|
|
16842
|
+
style: design.logoTitle,
|
|
16843
|
+
className: classnames__default["default"]({
|
|
16844
|
+
"hidden sm:flex": properties.logo.src
|
|
16845
|
+
}),
|
|
16846
|
+
children: properties.logo.title
|
|
16847
|
+
})]
|
|
16848
|
+
})), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
16849
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16850
|
+
onClick: function onClick() {
|
|
16851
|
+
return setIsMenuOpen(false);
|
|
16852
|
+
},
|
|
16853
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Close, {
|
|
16854
|
+
className: "fadeIn",
|
|
16855
|
+
fill: design.hamburgerMenu.color,
|
|
16856
|
+
size: 32
|
|
16857
|
+
})
|
|
16858
|
+
})]
|
|
16859
|
+
}), /*#__PURE__*/jsxRuntime.jsx("nav", {
|
|
16860
|
+
className: classnames__default["default"]("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isMenuOpen ? "opacity-100" : "opacity-0"),
|
|
16690
16861
|
children: properties.links.map(function (_ref2, index) {
|
|
16691
16862
|
var label = _ref2.label,
|
|
16692
16863
|
to = _ref2.to,
|
|
@@ -16697,13 +16868,13 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
16697
16868
|
label: label,
|
|
16698
16869
|
setIsMenuOpen: setIsMenuOpen,
|
|
16699
16870
|
to: to,
|
|
16700
|
-
className: "w-
|
|
16871
|
+
className: "w-full py-4 hover:opacity-80 [&::before]:!bottom-0 [&::before]:!w-full [&::before]:!opacity-40",
|
|
16701
16872
|
id: "header-with-logo-title-links-".concat(index, "-link"),
|
|
16702
16873
|
isHighlighted: isLinkHighlighted(to, currentPath),
|
|
16703
16874
|
key: getUniqueKey(to, label, index),
|
|
16704
16875
|
style: ramda.mergeRight(design.links, {
|
|
16705
16876
|
fontSize: "1em",
|
|
16706
|
-
fontWeight: "
|
|
16877
|
+
fontWeight: "600"
|
|
16707
16878
|
})
|
|
16708
16879
|
}, otherProps));
|
|
16709
16880
|
})
|