@bigbinary/neeto-site-blocks 2.0.9 → 2.0.11
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 +249 -78
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +249 -78
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5563,7 +5563,7 @@ var StyledWrapper = styled.div.attrs(function (props) {
|
|
|
5563
5563
|
position: "absolute",
|
|
5564
5564
|
top: 0,
|
|
5565
5565
|
left: 0,
|
|
5566
|
-
backgroundImage: "url(".concat(backgroundImage.src, ")"),
|
|
5566
|
+
backgroundImage: "url(\"".concat(backgroundImage.src, "\")"),
|
|
5567
5567
|
width: "100%",
|
|
5568
5568
|
height: "100%",
|
|
5569
5569
|
zIndex: -1,
|
|
@@ -7425,7 +7425,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7425
7425
|
paddingHorizontal: paddingHorizontal,
|
|
7426
7426
|
totalLength: totalLength,
|
|
7427
7427
|
children: [/*#__PURE__*/jsxs("div", {
|
|
7428
|
-
className: "flex cursor-pointer items-center gap-x-2 lg:h-full lg:justify-center lg:gap-x-0",
|
|
7428
|
+
className: "flex cursor-pointer items-center justify-between gap-x-2 lg:h-full lg:justify-center lg:gap-x-0",
|
|
7429
7429
|
id: "dropdown-".concat(index),
|
|
7430
7430
|
onClick: function onClick() {
|
|
7431
7431
|
return isSmallerScreen && setIsOpen(!isOpen);
|
|
@@ -7441,6 +7441,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7441
7441
|
label: label,
|
|
7442
7442
|
action: isLargerScreen ? "external" : "",
|
|
7443
7443
|
as: "h6",
|
|
7444
|
+
className: "[&::before]:hidden md:[&::before]:block",
|
|
7444
7445
|
id: "header-with-dropdown-links-link-".concat(index, "-link"),
|
|
7445
7446
|
style: design
|
|
7446
7447
|
}, otherProps)), /*#__PURE__*/jsx(motion.div, {
|
|
@@ -7473,7 +7474,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7473
7474
|
},
|
|
7474
7475
|
children: renderDropdownItems("px-4 py-2 hover:bg-gray-100 last:rounded-b-md")
|
|
7475
7476
|
}), /*#__PURE__*/jsx("div", {
|
|
7476
|
-
className:
|
|
7477
|
+
className: classnames({
|
|
7478
|
+
"mt-4 block bg-gray-100/70 p-2 lg:hidden": isOpen
|
|
7479
|
+
}),
|
|
7477
7480
|
children: /*#__PURE__*/jsx(AnimatePresence, {
|
|
7478
7481
|
children: isOpen && /*#__PURE__*/jsx(motion.div, {
|
|
7479
7482
|
animate: {
|
|
@@ -7492,7 +7495,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
7492
7495
|
transition: {
|
|
7493
7496
|
duration: 0.3
|
|
7494
7497
|
},
|
|
7495
|
-
children: renderDropdownItems("rounded-md
|
|
7498
|
+
children: renderDropdownItems("rounded-md p-2 hover:bg-white text-sm")
|
|
7496
7499
|
})
|
|
7497
7500
|
})
|
|
7498
7501
|
})]
|
|
@@ -16254,6 +16257,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
16254
16257
|
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",
|
|
16255
16258
|
children: buttons.map(function (button, index) {
|
|
16256
16259
|
return /*#__PURE__*/jsx(Button$1, _objectSpread$9({
|
|
16260
|
+
className: "flex-shrink-0",
|
|
16257
16261
|
id: "header-with-buttons-buttons-".concat(index, "-button"),
|
|
16258
16262
|
style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
|
|
16259
16263
|
}, _objectSpread$9(_objectSpread$9({
|
|
@@ -16261,33 +16265,68 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
16261
16265
|
}, button), otherProps)), getUniqueKey(button.label, index));
|
|
16262
16266
|
})
|
|
16263
16267
|
}), /*#__PURE__*/jsx("button", {
|
|
16264
|
-
className:
|
|
16265
|
-
"rotate-90 transform": isMenuOpen
|
|
16266
|
-
}),
|
|
16268
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16267
16269
|
onClick: function onClick() {
|
|
16268
16270
|
return setIsMenuOpen(function (open) {
|
|
16269
16271
|
return !open;
|
|
16270
16272
|
});
|
|
16271
16273
|
},
|
|
16272
|
-
children:
|
|
16273
|
-
className: "fadeIn",
|
|
16274
|
-
fill: design.hamburgerMenu.color,
|
|
16275
|
-
size: 32
|
|
16276
|
-
}) : /*#__PURE__*/jsx(Close, {
|
|
16274
|
+
children: /*#__PURE__*/jsx(Menu, {
|
|
16277
16275
|
className: "fadeIn",
|
|
16278
16276
|
fill: design.hamburgerMenu.color,
|
|
16279
16277
|
size: 32
|
|
16280
16278
|
})
|
|
16281
|
-
})
|
|
16282
|
-
|
|
16279
|
+
})]
|
|
16280
|
+
}), /*#__PURE__*/jsx("div", {
|
|
16281
|
+
role: "button",
|
|
16282
|
+
tabIndex: isMenuOpen ? 0 : -1,
|
|
16283
|
+
className: classnames("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isMenuOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16284
|
+
onClick: function onClick() {
|
|
16285
|
+
return setIsMenuOpen(false);
|
|
16286
|
+
}
|
|
16287
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
16288
|
+
style: {
|
|
16289
|
+
backgroundColor: design.body.backgroundColor
|
|
16290
|
+
},
|
|
16291
|
+
className: classnames("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"),
|
|
16292
|
+
onClick: function onClick(e) {
|
|
16293
|
+
return e.stopPropagation();
|
|
16294
|
+
},
|
|
16295
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
16296
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16297
|
+
children: [/*#__PURE__*/jsx(Link, _objectSpread$9(_objectSpread$9({
|
|
16298
|
+
action: properties.logo.action,
|
|
16299
|
+
to: properties.logo.to
|
|
16300
|
+
}, otherProps), {}, {
|
|
16301
|
+
children: /*#__PURE__*/jsx(StyledImage$1, {
|
|
16302
|
+
image: image,
|
|
16303
|
+
priority: true,
|
|
16304
|
+
alt: properties.logo.alt,
|
|
16305
|
+
className: "sm:max-h-18 max-h-16 lg:max-h-20",
|
|
16306
|
+
design: design.logo,
|
|
16307
|
+
src: properties.logo.src
|
|
16308
|
+
})
|
|
16309
|
+
})), /*#__PURE__*/jsx("button", {
|
|
16310
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16311
|
+
onClick: function onClick() {
|
|
16312
|
+
return setIsMenuOpen(false);
|
|
16313
|
+
},
|
|
16314
|
+
children: /*#__PURE__*/jsx(Close, {
|
|
16315
|
+
className: "fadeIn",
|
|
16316
|
+
fill: design.hamburgerMenu.color,
|
|
16317
|
+
size: 32
|
|
16318
|
+
})
|
|
16319
|
+
})]
|
|
16320
|
+
}), /*#__PURE__*/jsx("nav", {
|
|
16321
|
+
className: classnames("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isMenuOpen ? "opacity-100" : "opacity-0"),
|
|
16283
16322
|
children: properties.links.map(function (button, index) {
|
|
16284
16323
|
return /*#__PURE__*/jsx(Link, _objectSpread$9({
|
|
16285
|
-
className: "w-
|
|
16324
|
+
className: "w-full py-4 hover:opacity-80 [&::before]:!bottom-0 [&::before]:!w-full [&::before]:!opacity-40",
|
|
16286
16325
|
id: "header-with-buttons-".concat(index, "-link"),
|
|
16287
16326
|
isHighlighted: isLinkHighlighted(button.to, currentPath),
|
|
16288
16327
|
style: mergeRight(design.links, {
|
|
16289
16328
|
fontSize: "1em",
|
|
16290
|
-
fontWeight: "
|
|
16329
|
+
fontWeight: "600"
|
|
16291
16330
|
})
|
|
16292
16331
|
}, _objectSpread$9(_objectSpread$9({
|
|
16293
16332
|
index: index,
|
|
@@ -16389,39 +16428,87 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
16389
16428
|
}, otherProps)), getUniqueKey(dropdownLink.label, dropdownLink.to, index));
|
|
16390
16429
|
})
|
|
16391
16430
|
}), /*#__PURE__*/jsx("button", {
|
|
16392
|
-
className:
|
|
16393
|
-
"rotate-90 transform": isMenuOpen
|
|
16394
|
-
}),
|
|
16431
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16395
16432
|
onClick: function onClick() {
|
|
16396
16433
|
return setIsMenuOpen(function (open) {
|
|
16397
16434
|
return !open;
|
|
16398
16435
|
});
|
|
16399
16436
|
},
|
|
16400
|
-
children:
|
|
16437
|
+
children: /*#__PURE__*/jsx(Menu, {
|
|
16401
16438
|
className: "fadeIn",
|
|
16402
16439
|
fill: design.hamburgerMenu.color,
|
|
16403
16440
|
size: 32
|
|
16404
|
-
})
|
|
16441
|
+
})
|
|
16442
|
+
})]
|
|
16443
|
+
})
|
|
16444
|
+
}), /*#__PURE__*/jsx("div", {
|
|
16445
|
+
role: "button",
|
|
16446
|
+
tabIndex: isMenuOpen ? 0 : -1,
|
|
16447
|
+
className: classnames("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isMenuOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16448
|
+
onClick: function onClick() {
|
|
16449
|
+
return setIsMenuOpen(false);
|
|
16450
|
+
}
|
|
16451
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
16452
|
+
style: {
|
|
16453
|
+
backgroundColor: design.body.backgroundColor
|
|
16454
|
+
},
|
|
16455
|
+
className: classnames("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"),
|
|
16456
|
+
onClick: function onClick(e) {
|
|
16457
|
+
return e.stopPropagation();
|
|
16458
|
+
},
|
|
16459
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
16460
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16461
|
+
children: [/*#__PURE__*/jsxs(Link, _objectSpread$8(_objectSpread$8({
|
|
16462
|
+
action: properties.logo.action,
|
|
16463
|
+
className: "flex w-full gap-x-2",
|
|
16464
|
+
to: properties.logo.to
|
|
16465
|
+
}, otherProps), {}, {
|
|
16466
|
+
children: [/*#__PURE__*/jsx(StyledImage$1, {
|
|
16467
|
+
image: image,
|
|
16468
|
+
priority: true,
|
|
16469
|
+
alt: properties.logo.alt,
|
|
16470
|
+
className: "sm:max-h-18 max-h-16 lg:max-h-20",
|
|
16471
|
+
design: design.logo,
|
|
16472
|
+
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
16473
|
+
id: "header-with-dropdown-links-logo",
|
|
16474
|
+
isAddNewPane: otherProps.isAddNewPane,
|
|
16475
|
+
src: properties.logo.src
|
|
16476
|
+
}), /*#__PURE__*/jsx(Typography$1, _objectSpread$8(_objectSpread$8({
|
|
16477
|
+
component: "p",
|
|
16478
|
+
id: "header-with-dropdown-links-logo-title",
|
|
16479
|
+
style: design.logoTitle,
|
|
16480
|
+
className: classnames({
|
|
16481
|
+
"hidden sm:flex": properties.logo.src
|
|
16482
|
+
})
|
|
16483
|
+
}, otherProps), {}, {
|
|
16484
|
+
children: properties.logo.title
|
|
16485
|
+
}))]
|
|
16486
|
+
})), /*#__PURE__*/jsx("button", {
|
|
16487
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16488
|
+
onClick: function onClick() {
|
|
16489
|
+
return setIsMenuOpen(false);
|
|
16490
|
+
},
|
|
16491
|
+
children: /*#__PURE__*/jsx(Close, {
|
|
16405
16492
|
className: "fadeIn",
|
|
16406
16493
|
fill: design.hamburgerMenu.color,
|
|
16407
16494
|
size: 32
|
|
16408
16495
|
})
|
|
16409
|
-
}), isMenuOpen && /*#__PURE__*/jsx("div", {
|
|
16410
|
-
className: "fadeIn col-span-12 col-start-1 my-6 flex flex-col gap-y-6 lg:hidden",
|
|
16411
|
-
children: properties.links.map(function (link, index) {
|
|
16412
|
-
return /*#__PURE__*/createElement$1(Dropdown, {
|
|
16413
|
-
index: index,
|
|
16414
|
-
className: "w-fit ",
|
|
16415
|
-
dropdownLink: link,
|
|
16416
|
-
key: getUniqueKey(link.label, link.to, index),
|
|
16417
|
-
design: mergeRight(design.links, {
|
|
16418
|
-
fontSize: "1em",
|
|
16419
|
-
fontWeight: "500"
|
|
16420
|
-
})
|
|
16421
|
-
});
|
|
16422
|
-
})
|
|
16423
16496
|
})]
|
|
16424
|
-
})
|
|
16497
|
+
}), /*#__PURE__*/jsx("nav", {
|
|
16498
|
+
className: classnames("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isMenuOpen ? "opacity-100" : "opacity-0"),
|
|
16499
|
+
children: properties.links.map(function (link, index) {
|
|
16500
|
+
return /*#__PURE__*/createElement$1(Dropdown, {
|
|
16501
|
+
index: index,
|
|
16502
|
+
className: "w-full border-b border-gray-200 py-4",
|
|
16503
|
+
dropdownLink: link,
|
|
16504
|
+
key: getUniqueKey(link.label, link.to, index),
|
|
16505
|
+
design: mergeRight(design.links, {
|
|
16506
|
+
fontSize: "1em",
|
|
16507
|
+
fontWeight: "600"
|
|
16508
|
+
})
|
|
16509
|
+
});
|
|
16510
|
+
})
|
|
16511
|
+
})]
|
|
16425
16512
|
})]
|
|
16426
16513
|
});
|
|
16427
16514
|
};
|
|
@@ -16513,53 +16600,90 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
16513
16600
|
}, _icon), otherProps)), getUniqueKey(_icon.to, index));
|
|
16514
16601
|
})
|
|
16515
16602
|
}), /*#__PURE__*/jsx("button", {
|
|
16516
|
-
className:
|
|
16517
|
-
"rotate-90 transform": isLinksOpen
|
|
16518
|
-
}),
|
|
16603
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16519
16604
|
onClick: function onClick() {
|
|
16520
16605
|
return setIsLinksOpen(function (open) {
|
|
16521
16606
|
return !open;
|
|
16522
16607
|
});
|
|
16523
16608
|
},
|
|
16524
|
-
children:
|
|
16525
|
-
className: "fadeIn",
|
|
16526
|
-
fill: design.hamburgerMenu.color,
|
|
16527
|
-
size: 32
|
|
16528
|
-
}) : /*#__PURE__*/jsx(Close, {
|
|
16609
|
+
children: /*#__PURE__*/jsx(Menu, {
|
|
16529
16610
|
className: "fadeIn",
|
|
16530
16611
|
fill: design.hamburgerMenu.color,
|
|
16531
16612
|
size: 32
|
|
16532
16613
|
})
|
|
16533
|
-
})
|
|
16534
|
-
|
|
16535
|
-
|
|
16614
|
+
})]
|
|
16615
|
+
}), /*#__PURE__*/jsx("div", {
|
|
16616
|
+
role: "button",
|
|
16617
|
+
tabIndex: isLinksOpen ? 0 : -1,
|
|
16618
|
+
className: classnames("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isLinksOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16619
|
+
onClick: function onClick() {
|
|
16620
|
+
return setIsLinksOpen(false);
|
|
16621
|
+
}
|
|
16622
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
16623
|
+
style: {
|
|
16624
|
+
backgroundColor: design.body.backgroundColor
|
|
16625
|
+
},
|
|
16626
|
+
className: classnames("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"),
|
|
16627
|
+
onClick: function onClick(e) {
|
|
16628
|
+
return e.stopPropagation();
|
|
16629
|
+
},
|
|
16630
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
16631
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16632
|
+
children: [/*#__PURE__*/jsx(Link, _objectSpread$7(_objectSpread$7({
|
|
16633
|
+
action: logo.action,
|
|
16634
|
+
to: logo.to
|
|
16635
|
+
}, otherProps), {}, {
|
|
16636
|
+
children: /*#__PURE__*/jsx(StyledImage$1, {
|
|
16637
|
+
image: image,
|
|
16638
|
+
priority: true,
|
|
16639
|
+
alt: logo.alt,
|
|
16640
|
+
design: design.logo,
|
|
16641
|
+
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
16642
|
+
id: "header-with-icons-logo",
|
|
16643
|
+
isAddNewPane: otherProps.isAddNewPane,
|
|
16644
|
+
src: logo.src
|
|
16645
|
+
})
|
|
16646
|
+
})), /*#__PURE__*/jsx("button", {
|
|
16647
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16648
|
+
onClick: function onClick() {
|
|
16649
|
+
return setIsLinksOpen(false);
|
|
16650
|
+
},
|
|
16651
|
+
children: /*#__PURE__*/jsx(Close, {
|
|
16652
|
+
className: "fadeIn",
|
|
16653
|
+
fill: design.hamburgerMenu.color,
|
|
16654
|
+
size: 32
|
|
16655
|
+
})
|
|
16656
|
+
})]
|
|
16657
|
+
}), /*#__PURE__*/jsx("nav", {
|
|
16658
|
+
className: classnames("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isLinksOpen ? "opacity-100" : "opacity-0"),
|
|
16659
|
+
children: links.map(function (icon, index) {
|
|
16536
16660
|
return /*#__PURE__*/jsx(Link, _objectSpread$7({
|
|
16537
|
-
className: "w-
|
|
16661
|
+
className: "w-full py-4 hover:opacity-80 [&::before]:!bottom-0 [&::before]:!w-full [&::before]:!opacity-40",
|
|
16538
16662
|
id: "header-with-icons-links-".concat(index, "-link"),
|
|
16539
16663
|
isHighlighted: isLinkHighlighted(icon.to, currentPath),
|
|
16540
16664
|
setIsMenuOpen: setIsLinksOpen,
|
|
16541
16665
|
style: mergeRight(design.links, {
|
|
16542
16666
|
fontSize: "1em",
|
|
16543
|
-
fontWeight: "
|
|
16667
|
+
fontWeight: "600"
|
|
16544
16668
|
})
|
|
16545
16669
|
}, icon), getUniqueKey(icon.url, icon.label, index));
|
|
16546
|
-
})
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
}
|
|
16560
|
-
}
|
|
16561
|
-
})
|
|
16562
|
-
})
|
|
16670
|
+
})
|
|
16671
|
+
}), /*#__PURE__*/jsx("div", {
|
|
16672
|
+
className: "flex flex-shrink-0 items-center justify-center gap-x-2 p-6 md:hidden",
|
|
16673
|
+
children: properties.icons.map(function (_icon2, index) {
|
|
16674
|
+
return /*#__PURE__*/jsx(Link, _objectSpread$7(_objectSpread$7({
|
|
16675
|
+
disableHovering: true,
|
|
16676
|
+
className: "hover:no-underline",
|
|
16677
|
+
id: "header-with-icons-icons-".concat(index, "-icon"),
|
|
16678
|
+
style: design.icons,
|
|
16679
|
+
icon: function icon() {
|
|
16680
|
+
return renderIcon(_objectSpread$7({
|
|
16681
|
+
name: _icon2.name,
|
|
16682
|
+
type: _icon2.type
|
|
16683
|
+
}, design.icons));
|
|
16684
|
+
}
|
|
16685
|
+
}, _icon2), otherProps), getUniqueKey(_icon2.to, index));
|
|
16686
|
+
})
|
|
16563
16687
|
})]
|
|
16564
16688
|
})]
|
|
16565
16689
|
});
|
|
@@ -16649,25 +16773,72 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
16649
16773
|
}, button), otherProps)), getUniqueKey(button.label, button.url, index));
|
|
16650
16774
|
})]
|
|
16651
16775
|
}), /*#__PURE__*/jsx("button", {
|
|
16652
|
-
className:
|
|
16653
|
-
"rotate-90 transform": isMenuOpen
|
|
16654
|
-
}),
|
|
16776
|
+
className: "col-span-1 col-start-1 flex items-center transition-all lg:hidden",
|
|
16655
16777
|
onClick: function onClick() {
|
|
16656
16778
|
return setIsMenuOpen(function (open) {
|
|
16657
16779
|
return !open;
|
|
16658
16780
|
});
|
|
16659
16781
|
},
|
|
16660
|
-
children:
|
|
16661
|
-
className: "fadeIn",
|
|
16662
|
-
fill: design.hamburgerMenu.color,
|
|
16663
|
-
size: 32
|
|
16664
|
-
}) : /*#__PURE__*/jsx(Close, {
|
|
16782
|
+
children: /*#__PURE__*/jsx(Menu, {
|
|
16665
16783
|
className: "fadeIn",
|
|
16666
16784
|
fill: design.hamburgerMenu.color,
|
|
16667
16785
|
size: 32
|
|
16668
16786
|
})
|
|
16669
|
-
})
|
|
16670
|
-
|
|
16787
|
+
})]
|
|
16788
|
+
}), /*#__PURE__*/jsx("div", {
|
|
16789
|
+
role: "button",
|
|
16790
|
+
tabIndex: isMenuOpen ? 0 : -1,
|
|
16791
|
+
className: classnames("fixed inset-0 z-[999] bg-black/60 transition-opacity duration-300 lg:hidden", isMenuOpen ? "opacity-70" : "pointer-events-none opacity-0"),
|
|
16792
|
+
onClick: function onClick() {
|
|
16793
|
+
return setIsMenuOpen(false);
|
|
16794
|
+
}
|
|
16795
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
16796
|
+
style: {
|
|
16797
|
+
backgroundColor: design.body.backgroundColor
|
|
16798
|
+
},
|
|
16799
|
+
className: classnames("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"),
|
|
16800
|
+
onClick: function onClick(e) {
|
|
16801
|
+
return e.stopPropagation();
|
|
16802
|
+
},
|
|
16803
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
16804
|
+
className: "flex items-center justify-between gap-6 px-6 py-6",
|
|
16805
|
+
children: [/*#__PURE__*/jsxs(Link, _objectSpread$6(_objectSpread$6({
|
|
16806
|
+
action: properties.logo.action,
|
|
16807
|
+
className: "flex w-full gap-x-2",
|
|
16808
|
+
to: properties.logo.to
|
|
16809
|
+
}, otherProps), {}, {
|
|
16810
|
+
children: [/*#__PURE__*/jsx(StyledImage$1, {
|
|
16811
|
+
image: image,
|
|
16812
|
+
priority: true,
|
|
16813
|
+
alt: properties.logo.alt,
|
|
16814
|
+
className: "sm:max-h-18 max-h-16 lg:max-h-20",
|
|
16815
|
+
design: design.logo,
|
|
16816
|
+
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
16817
|
+
id: "header-with-logo-title-logo",
|
|
16818
|
+
isAddNewPane: otherProps.isAddNewPane,
|
|
16819
|
+
src: properties.logo.src
|
|
16820
|
+
}), /*#__PURE__*/jsx(Typography$1, {
|
|
16821
|
+
component: "p",
|
|
16822
|
+
id: "header-with-logo-title-logo-title",
|
|
16823
|
+
style: design.logoTitle,
|
|
16824
|
+
className: classnames({
|
|
16825
|
+
"hidden sm:flex": properties.logo.src
|
|
16826
|
+
}),
|
|
16827
|
+
children: properties.logo.title
|
|
16828
|
+
})]
|
|
16829
|
+
})), /*#__PURE__*/jsx("button", {
|
|
16830
|
+
className: "flex items-center transition-opacity duration-300 lg:hidden",
|
|
16831
|
+
onClick: function onClick() {
|
|
16832
|
+
return setIsMenuOpen(false);
|
|
16833
|
+
},
|
|
16834
|
+
children: /*#__PURE__*/jsx(Close, {
|
|
16835
|
+
className: "fadeIn",
|
|
16836
|
+
fill: design.hamburgerMenu.color,
|
|
16837
|
+
size: 32
|
|
16838
|
+
})
|
|
16839
|
+
})]
|
|
16840
|
+
}), /*#__PURE__*/jsx("nav", {
|
|
16841
|
+
className: classnames("flex flex-grow flex-col overflow-y-auto px-6 pb-6 transition-opacity delay-200 duration-300", isMenuOpen ? "opacity-100" : "opacity-0"),
|
|
16671
16842
|
children: properties.links.map(function (_ref2, index) {
|
|
16672
16843
|
var label = _ref2.label,
|
|
16673
16844
|
to = _ref2.to,
|
|
@@ -16678,13 +16849,13 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
16678
16849
|
label: label,
|
|
16679
16850
|
setIsMenuOpen: setIsMenuOpen,
|
|
16680
16851
|
to: to,
|
|
16681
|
-
className: "w-
|
|
16852
|
+
className: "w-full py-4 hover:opacity-80 [&::before]:!bottom-0 [&::before]:!w-full [&::before]:!opacity-40",
|
|
16682
16853
|
id: "header-with-logo-title-links-".concat(index, "-link"),
|
|
16683
16854
|
isHighlighted: isLinkHighlighted(to, currentPath),
|
|
16684
16855
|
key: getUniqueKey(to, label, index),
|
|
16685
16856
|
style: mergeRight(design.links, {
|
|
16686
16857
|
fontSize: "1em",
|
|
16687
|
-
fontWeight: "
|
|
16858
|
+
fontWeight: "600"
|
|
16688
16859
|
})
|
|
16689
16860
|
}, otherProps));
|
|
16690
16861
|
})
|