@codesinger0/shared-components 1.1.44 → 1.1.45

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.
@@ -62,43 +62,41 @@ const Menu = ({
62
62
 
63
63
  // Desktop Menu Component
64
64
  const DesktopMenu = () => (
65
- <nav className="sticky top-0 z-50 bg-menu py-4 border-b-2 border-primary">
66
- <div className="w-full px-6 flex justify-between items-center">
67
- {/* Left side - Auth buttons */}
68
- <div className="flex items-center">
69
- {AuthButtonsComponent && <AuthButtonsComponent />}
70
- </div>
65
+ <nav className="sticky top-0 z-50 bg-menu border-b-2 border-primary">
66
+ {/* Parent container with two vertically stacked sections */}
67
+ <div className="w-full">
68
+
69
+ {/* Top section - Children content (full width) */}
70
+ {children && (
71
+ <div className="w-full">
72
+ {children}
73
+ </div>
74
+ )}
71
75
 
72
- {/* Right side - Menu items and logo */}
73
- <div className="flex items-center space-x-8 space-x-reverse">
74
- {/* Menu items section */}
75
- <div className="flex flex-col items-end mr-8" dir="rtl">
76
- {/* Children above menu items */}
77
- {children && (
78
- <div className="mb-2">
79
- {children}
80
- </div>
81
- )}
82
-
83
- {/* Menu items - horizontal */}
84
- <div className="flex items-center space-x-6 space-x-reverse">
85
-
86
- {navigationItems.map((item, index) => (
87
- item.adminRoute && !isAdmin ? null : (
88
- <Link
89
- key={index}
90
- to={item.href}
91
- onClick={() => handleMenuItemClick(item)}
92
- className={`subtitle font-normal cursor-pointer menu-item-hover px-4 py-2 rounded-md text transition-colors duration-500 ease-in-out hover:text-primary ${menuItemClassName}`}
93
- >
94
- {item.label}
95
- </Link>
96
- )
97
- ))}
98
- </div>
76
+ {/* Bottom section - Menu navigation bar */}
77
+ <div className="w-full px-6 py-4 flex justify-between items-center">
78
+ {/* Left side - Auth buttons */}
79
+ <div className="flex items-center">
80
+ {AuthButtonsComponent && <AuthButtonsComponent />}
81
+ </div>
82
+
83
+ {/* Center - Menu items */}
84
+ <div className="flex items-center space-x-6 space-x-reverse" dir="rtl">
85
+ {navigationItems.map((item, index) => (
86
+ item.adminRoute && !isAdmin ? null : (
87
+ <Link
88
+ key={index}
89
+ to={item.href}
90
+ onClick={() => handleMenuItemClick(item)}
91
+ className={`subtitle font-normal cursor-pointer menu-item-hover px-4 py-2 rounded-md text transition-colors duration-500 ease-in-out hover:text-primary ${menuItemClassName}`}
92
+ >
93
+ {item.label}
94
+ </Link>
95
+ )
96
+ ))}
99
97
  </div>
100
98
 
101
- {/* Desktop Logo */}
99
+ {/* Right side - Logo */}
102
100
  <Link to="/" className={`text-primary font-bold text-xl ml-8 ${logoClassName}`}>
103
101
  <div className="text-primary font-bold text-xl ml-8">
104
102
  <div className="relative w-24 h-12 lg:w-32 lg:h-16 overflow-hidden flex items-center justify-center">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [