ml-ui-lib 1.0.42 → 1.0.43
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.
|
@@ -67,12 +67,16 @@
|
|
|
67
67
|
gap: 30px;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.navbar-products {
|
|
71
|
+
gap: 30px;
|
|
72
|
+
}
|
|
73
|
+
|
|
70
74
|
.navbar-services-cols {
|
|
71
75
|
display: flex;
|
|
72
76
|
flex-direction: column;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
|
-
.navbar-services a{
|
|
79
|
+
.navbar-services a {
|
|
76
80
|
border-radius: 15px;
|
|
77
81
|
padding: 10px 30px;
|
|
78
82
|
}
|
|
@@ -90,7 +94,7 @@
|
|
|
90
94
|
box-shadow: 0 1px 10px #00000017;
|
|
91
95
|
border-radius: 20px;
|
|
92
96
|
padding: 15px;
|
|
93
|
-
gap:
|
|
97
|
+
gap: 15px 40px;
|
|
94
98
|
align-items: center;
|
|
95
99
|
width: 350px;
|
|
96
100
|
}
|
|
@@ -267,6 +271,28 @@
|
|
|
267
271
|
Responsive
|
|
268
272
|
------------------------- */
|
|
269
273
|
@media (max-width: 1100px) {
|
|
274
|
+
|
|
275
|
+
.navbar-dropdown-content {
|
|
276
|
+
flex-direction: column;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.navbar-services {
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
gap: 0px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.navbar-services a {
|
|
285
|
+
border-radius: 0px !important;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.navbar-services a:hover {
|
|
289
|
+
background: #ff0000 !important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.navbar-products {
|
|
293
|
+
display: none;
|
|
294
|
+
}
|
|
295
|
+
|
|
270
296
|
.navbar-container {
|
|
271
297
|
/* margin: 0 20px; */
|
|
272
298
|
padding: 1rem 1.5rem;
|
|
@@ -84,7 +84,7 @@ export const Navbar = ({ siteUrl, items, products, logoSrc = '', logoAlt = 'Logo
|
|
|
84
84
|
const isActive = currentPath === linkPath;
|
|
85
85
|
const isDropdownOpen = openDropdown === item.name;
|
|
86
86
|
return (_jsxs("div", { className: `navbar-item ${hasSubLinks ? 'has-dropdown' : ''} ${isDropdownOpen ? 'open' : ''}`, children: [_jsx("a", { href: hasSubLinks ? '#' : item.link, target: item.target || '_self', className: `navbar-link ${isActive ? 'active' : ''} ${hasSubLinks ? 'parent-link' : ''}`, onClick: (e) => {
|
|
87
|
-
if (hasSubLinks
|
|
87
|
+
if (hasSubLinks) {
|
|
88
88
|
e.preventDefault();
|
|
89
89
|
setOpenDropdown(prev => (prev === item.name ? null : item.name));
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ export const Navbar = ({ siteUrl, items, products, logoSrc = '', logoAlt = 'Logo
|
|
|
94
94
|
}, children: item.name }), hasSubLinks && (_jsx("div", { className: "navbar-dropdown", children: _jsxs("div", { className: "navbar-dropdown-content", children: [_jsx("div", { className: "navbar-services", children: Array.from({ length: Math.ceil(item.subLinks.length / 5) }, (_, i) => item.subLinks.slice(i * 5, i * 5 + 5)).map((column, index) => (_jsx("div", { className: 'navbar-services-cols', children: column.map(sub => (_jsx("a", { href: sub.link, target: sub.target || '_self', className: "navbar-dropdown-link", onClick: () => {
|
|
95
95
|
setMenuOpen(false);
|
|
96
96
|
setOpenDropdown(null);
|
|
97
|
-
}, children: sub.name }, sub.name))) }, index))) }), _jsx("div", { className: "navbar-
|
|
97
|
+
}, children: sub.name }, sub.name))) }, index))) }), _jsx("div", { className: "navbar-products", children: _jsx("div", { className: 'navbar-services-container', children: products.map(product => (_jsx("div", { className: 'navbar-services-item', children: _jsx("span", { style: {
|
|
98
98
|
textAlign: 'center'
|
|
99
99
|
}, children: product.name }) }))) }) })] }) }))] }, item.name));
|
|
100
100
|
}) }), isMobile && login && !logedinData && (_jsx("div", { className: 'navbar-item', style: { background: '#ffffff' }, children: _jsx("button", { className: "mobile-login-btn", onClick: toggleLogin, children: "Login" }) }))] }), _jsxs("div", { className: "navbar-right", children: [_jsxs("button", { className: `burger ${menuOpen ? 'active' : ''}`, onClick: toggleMenu, children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] }), !isMobile && login && !logedinData && (_jsx("span", { className: "login-btn", onClick: toggleLogin, children: "Login" }))] })] })] }) }), login && !logedinData && (_jsx(_Fragment, { children: !isMobile ? (showLogin && (_jsxs(_Fragment, { children: [_jsx("div", { className: "overlay-side-content", children: otherContent }), _jsx("div", { className: "navbar-login-panel", children: _jsxs(SlidingPanel, { isOpen: showLogin && !isClosing, width: "400px", height: "100%", position: "right", closeOnOverlayClick: false, onClose: handleInternalClose, children: [_jsx("div", { className: "navbar-panel-header" }), _jsx("div", { className: "navbar-panel-content", children: loginContent })] }) })] }))) : (_jsx("div", { className: "navbar-login-panel", children: _jsxs(SlidingPanel, { isOpen: showLogin, height: "70%", position: "bottom", onClose: handleInternalClose, children: [_jsx("div", { className: "navbar-panel-header" }), _jsx("div", { className: "navbar-panel-content", children: loginContent })] }) })) }))] }));
|