@codesinger0/shared-components 1.1.46 → 1.1.47

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.
@@ -66,39 +66,39 @@ const Menu = ({
66
66
  <div className="w-full">
67
67
 
68
68
  {/* Top section - Logo and Children content */}
69
- {children && (
70
- <div className="w-full flex items-center py-4 px-6">
71
- {/* Logo - takes only required space */}
72
- <Link to="/" className={`flex-shrink-0 ${logoClassName}`}>
73
- <div className="relative w-24 h-12 lg:w-32 lg:h-16 overflow-hidden flex items-center justify-center">
74
- <img
75
- src={businessInfo.logo}
76
- alt={businessInfo.name}
77
- className="relative z-10 w-full h-full object-contain"
78
- onError={(e) => {
79
- e.target.style.display = 'none';
80
- e.target.nextElementSibling.style.display = 'flex';
81
- }}
82
- />
83
- {/* Fallback text */}
84
- <div
85
- className="relative z-10 w-full h-full flex items-center justify-center text-primary text-xs font-bold"
86
- style={{ display: 'none' }}
87
- >
88
- {businessInfo.name?.slice(0, 2) || ''}
89
- </div>
69
+ <div className="w-full flex items-center pt-4 px-6">
70
+ {/* Logo - takes only required space */}
71
+ <Link to="/" className={`flex-shrink-0 ${logoClassName}`}>
72
+ <div className="relative w-24 h-12 lg:w-32 lg:h-16 overflow-hidden flex items-center justify-center">
73
+ <img
74
+ src={businessInfo.logo}
75
+ alt={businessInfo.name}
76
+ className="relative z-10 w-full h-full object-contain"
77
+ onError={(e) => {
78
+ e.target.style.display = 'none';
79
+ e.target.nextElementSibling.style.display = 'flex';
80
+ }}
81
+ />
82
+ {/* Fallback text */}
83
+ <div
84
+ className="relative z-10 w-full h-full flex items-center justify-center text-primary text-xs font-bold"
85
+ style={{ display: 'none' }}
86
+ >
87
+ {businessInfo.name?.slice(0, 2) || ''}
90
88
  </div>
91
- </Link>
92
-
93
- {/* Children - grows to fill available space */}
94
- <div className="flex-grow">
95
- {children}
96
89
  </div>
90
+ </Link>
91
+
92
+ {/* Children - grows to fill available space */}
93
+ <div className="flex-grow">
94
+ {children && (
95
+ { children }
96
+ )}
97
97
  </div>
98
- )}
98
+ </div>
99
99
 
100
100
  {/* Bottom section - Menu navigation bar */}
101
- <div className="w-full px-6 py-4 flex justify-between items-center">
101
+ <div className="w-full px-6 pb-2 flex justify-between items-center">
102
102
  {/* Left side - Auth buttons */}
103
103
  <div className="flex items-center">
104
104
  {AuthButtonsComponent && <AuthButtonsComponent />}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.46",
3
+ "version": "1.1.47",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [