sgh-navbar 0.0.57 → 0.1.1

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/README.md CHANGED
@@ -22,16 +22,21 @@ A comprehensive Angular navigation library that provides a responsive sidebar na
22
22
  ## Features
23
23
 
24
24
  ✨ **Rich Feature Set**
25
- - 🎨 **Multiple Themes** - Built-in theme switching (Default, Light, Blue)
26
- - 🔧 **Highly Configurable** - Extensive customization options
27
- - 📱 **Responsive Design** - Mobile-friendly collapsible navigation
28
- - 🧭 **Navigation Management** - Multi-level menu support with animations
29
- - 👥 **Client Management** - Built-in client/sub-client selection
25
+ - 🎨 **Multiple Themes** - Built-in theme switching with modern radio button design
26
+ - 🔧 **Highly Configurable** - Extensive customization options with CSS variables
27
+ - 📱 **Responsive Design** - Mobile-first design with adaptive layouts
28
+ - 🧭 **Navigation Management** - Multi-level menu support with smooth animations
29
+ - 👥 **Client Management** - Enhanced client/sub-client selection with search
30
30
  - 🍞 **Breadcrumbs** - Automatic breadcrumb generation
31
- - 🔔 **Notifications** - Notification panel support
32
- - 👤 **User Profile** - Profile dropdown integration
33
- - ⚡ **Performance Optimized** - Lazy loading and memory leak prevention
31
+ - 🔔 **Notifications** - Modern notification panel with badges and animations
32
+ - 👤 **User Profile** - Redesigned profile dropdown integration
33
+ - ⚡ **Performance Optimized** - Hardware-accelerated animations and transitions
34
34
  - 🎯 **Type Safe** - Full TypeScript support
35
+ - ♿ **Accessible** - WCAG compliant with ARIA labels and keyboard navigation
36
+ - 🌓 **Dark Mode** - Automatic dark mode support
37
+ - 🎭 **Modern UI** - Glassmorphism effects with backdrop blur
38
+ - 🔍 **Enhanced Search** - Redesigned search bar with submit button
39
+ - 🎬 **Smooth Animations** - Professional transitions and micro-interactions
35
40
 
36
41
  ## Installation
37
42
 
@@ -157,6 +162,123 @@ body {
157
162
  }
158
163
  ```
159
164
 
165
+ ## Modern Toolbar Redesign ✨
166
+
167
+ The toolbar component has been completely redesigned with a modern, professional look and enhanced user experience.
168
+
169
+ ### 🎨 Design Improvements
170
+
171
+ #### **Layout Structure**
172
+ ```
173
+ ┌─────────────────────────────────────────────────────────────────┐
174
+ │ [Logo] [☰] [🔍 Search.................→] [🔔³] [⚙] [👤] │
175
+ │ ↑ ↑ ↑ ↑ ↑ ↑ │
176
+ │ Fixed Menu Flexible Center Notifications │
177
+ │ Left Toggle (grows to fill) Settings │
178
+ │ Profile │
179
+ └─────────────────────────────────────────────────────────────────┘
180
+ ```
181
+
182
+ #### **Key Visual Enhancements**
183
+ - **Glassmorphism**: Backdrop blur effects on toolbar and dropdowns
184
+ - **Modern Shadows**: Multiple shadow levels for depth hierarchy
185
+ - **Smooth Transitions**: 150ms fast and 300ms base transitions
186
+ - **Hover Effects**: Subtle lift animations with color changes
187
+ - **Active States**: Button press feedback with scale effects
188
+ - **Rounded Corners**: 12px-16px border radius for modern look
189
+ - **Notification Badge**: Animated pulsing badge with count display
190
+ - **Focus States**: Clear keyboard navigation indicators
191
+
192
+ #### **Component Redesign**
193
+
194
+ **🔤 Logo**
195
+ - Adaptive sizing: 42px (desktop), 36px (mobile), 48px (large screens)
196
+ - Hover scale effect with drop shadow
197
+ - Positioned at far left with proper constraints
198
+
199
+ **🍔 Menu Toggle**
200
+ - 42x42px button with 12px border radius
201
+ - Hover effects with background and icon scale
202
+ - Positioned next to logo for easy access
203
+
204
+ **🔍 Search Bar**
205
+ - Modern rounded design with icon-first layout
206
+ - Hover: Background change with border highlight
207
+ - Focus: Primary color border with glow effect
208
+ - Submit button with arrow icon and slide animation
209
+ - Adaptive sizing: 600px max (desktop), 400px (tablet), hidden (mobile)
210
+
211
+ **🔔 Notification Button**
212
+ - Animated notification badge showing count
213
+ - Pulsing animation to attract attention
214
+ - Modern dropdown with smooth slide-in animation
215
+
216
+ **⚙️ Settings Menu**
217
+ - Icons added to menu items for visual clarity
218
+ - Enhanced theme selector with custom radio buttons
219
+ - Improved client selector with search functionality
220
+
221
+ **👤 Profile Button**
222
+ - Larger icon for better visibility
223
+ - Redesigned dropdown card with modern styling
224
+
225
+ ### 📱 Responsive Breakpoints
226
+
227
+ | Screen Size | Toolbar Height | Logo Size | Search | Special Features |
228
+ |-------------|---------------|-----------|---------|------------------|
229
+ | **Mobile** (≤768px) | 56px | 36px × 140px | Hidden | Tighter spacing, overlay mode |
230
+ | **Tablet** (≤1024px) | 64px | 42px × 200px | 400px max | Optimized spacing |
231
+ | **Desktop** (default) | 64px | 42px × 200px | 600px max | Full features |
232
+ | **Large** (≥1920px) | 64px | 48px × 240px | 700px max | Enhanced sizing |
233
+
234
+ ### ♿ Accessibility Features
235
+
236
+ - **ARIA Labels**: All interactive elements have descriptive labels
237
+ - **Keyboard Navigation**: Full keyboard support with visible focus indicators
238
+ - **Screen Reader**: Semantic HTML with proper roles and labels
239
+ - **High Contrast**: Special styles for high contrast mode
240
+ - **Reduced Motion**: Respects user's motion preferences
241
+ - **Focus Management**: Proper focus trapping in dropdowns
242
+
243
+ ### 🌓 Dark Mode Support
244
+
245
+ Automatic dark mode detection with proper color adjustments:
246
+ ```scss
247
+ // Dark mode colors
248
+ --sgh-toolbar-bg: rgba(15, 23, 42, 0.95)
249
+ --sgh-surface-color: #1e293b
250
+ --sgh-text-primary: #f1f5f9
251
+ --sgh-border-color: #334155
252
+ ```
253
+
254
+ ### 🎬 Animations & Transitions
255
+
256
+ - **Dropdown Slide-In**: 250ms cubic-bezier animation
257
+ - **Button Hover**: 150ms fast transition
258
+ - **Badge Pulse**: 2s infinite subtle pulse
259
+ - **Icon Scale**: Smooth scale on hover
260
+ - **Submit Arrow**: Slide animation on hover
261
+
262
+ ### 🎨 Customization with CSS Variables
263
+
264
+ ```scss
265
+ // Primary customizable variables
266
+ --sgh-primary-color: #3b82f6
267
+ --sgh-toolbar-bg: rgba(255, 255, 255, 0.95)
268
+ --sgh-text-primary: #1e293b
269
+ --sgh-text-secondary: #64748b
270
+ --sgh-border-color: #e2e8f0
271
+ --sgh-hover-bg: rgba(59, 130, 246, 0.08)
272
+ ```
273
+
274
+ ### 🚀 Performance Optimizations
275
+
276
+ - Hardware-accelerated transforms
277
+ - Optimized animations using `transform` and `opacity`
278
+ - Efficient CSS with proper specificity
279
+ - Minimal repaints and reflows
280
+ - Debounced search input handling
281
+
160
282
  ## Components
161
283
 
162
284
  ### Main Component: `<lib-sgh-navbar>`
@@ -556,8 +678,62 @@ npm publish
556
678
  | 18 | 0.0.52 | Angular 18 support |
557
679
  | 19 | 0.0.54 | Angular 19 support, Major fixes and improvements |
558
680
  | 19 | 0.0.57 | Enhanced layout behavior, responsive design improvements |
559
-
560
- ### Latest Changes (v0.0.55)
681
+ | 19 | 0.0.58 | **Modern Toolbar Redesign** - Complete UI overhaul with glassmorphism, accessibility, and performance improvements |
682
+
683
+ ### Latest Changes (v0.0.58) - Modern Toolbar Redesign 🎨
684
+
685
+ #### **Complete Toolbar Overhaul**
686
+ - ✅ **Modern UI Design**: Complete redesign with glassmorphism and modern aesthetics
687
+ - ✅ **Enhanced Layout**: Logo at far left, hamburger menu next to logo, responsive search bar, action buttons on right
688
+ - ✅ **Semantic HTML**: Changed to `<header>` tag with proper ARIA roles and labels
689
+ - ✅ **Improved Search**: New search bar design with icon-first layout and submit button
690
+ - ✅ **Notification Badge**: Animated badge showing notification count with pulse effect
691
+ - ✅ **Better Icons**: Updated FontAwesome icons (fa-cog, fa-user-circle) for better clarity
692
+
693
+ #### **Visual Enhancements**
694
+ - ✅ **Glassmorphism**: Backdrop blur effects on toolbar and all dropdowns
695
+ - ✅ **Modern Shadows**: 4-level shadow system (sm, md, lg, xl) for proper depth
696
+ - ✅ **Smooth Animations**: Professional transitions (150ms fast, 300ms base)
697
+ - ✅ **Hover Effects**: Subtle lift animations with color changes on all interactive elements
698
+ - ✅ **Active States**: Button press feedback with scale effects
699
+ - ✅ **Rounded Corners**: Consistent 12-16px border radius throughout
700
+ - ✅ **Focus States**: Clear keyboard navigation indicators for accessibility
701
+
702
+ #### **Enhanced Components**
703
+ - ✅ **Settings Menu**: Added icons to menu items, modern theme selector with custom radio buttons
704
+ - ✅ **Client Menu**: Enhanced with search icon, check icon for selected items, "no results" state
705
+ - ✅ **Notification List**: Redesigned with modern card styling and smooth animations
706
+ - ✅ **Profile Dropdown**: New card-based design with proper spacing
707
+
708
+ #### **Responsive Design**
709
+ - ✅ **Mobile (≤768px)**: 56px height, 36px logo, hidden search, tighter spacing
710
+ - ✅ **Tablet (≤1024px)**: Optimized spacing with 400px search max-width
711
+ - ✅ **Desktop**: Full features with 600px search max-width
712
+ - ✅ **Large Screens (≥1920px)**: Enhanced sizing with 700px search and 48px logo
713
+
714
+ #### **Accessibility Improvements**
715
+ - ✅ **ARIA Labels**: Complete aria-label coverage on all buttons and interactive elements
716
+ - ✅ **Keyboard Navigation**: Full keyboard support with visible focus indicators
717
+ - ✅ **Screen Readers**: Proper semantic HTML with roles and labels
718
+ - ✅ **High Contrast Mode**: Special styling for high contrast display
719
+ - ✅ **Reduced Motion**: Respects `prefers-reduced-motion` user preference
720
+ - ✅ **Tooltips**: Title attributes on all action buttons
721
+
722
+ #### **Performance & Technical**
723
+ - ✅ **CSS Variables**: Complete design system with customizable CSS custom properties
724
+ - ✅ **Hardware Acceleration**: Optimized animations using transform and opacity
725
+ - ✅ **Efficient CSS**: Proper specificity and minimal repaints
726
+ - ✅ **Dark Mode**: Automatic dark mode detection with proper color adjustments
727
+ - ✅ **Print Styles**: Toolbar hidden in print mode
728
+ - ✅ **Cross-browser**: Fallbacks for backdrop-filter and other modern CSS
729
+
730
+ #### **Code Quality**
731
+ - ✅ **Better Structure**: Organized SCSS with clear sections and comments
732
+ - ✅ **Maintainability**: Variables-based design system for easy customization
733
+ - ✅ **Documentation**: Comprehensive inline comments explaining each section
734
+ - ✅ **Best Practices**: Following Angular and SCSS best practices
735
+
736
+ ### Previous Changes (v0.0.55-57)
561
737
  - ✅ Fixed notification component typo
562
738
  - ✅ Added proper TypeScript types throughout
563
739
  - ✅ Updated component selectors to use sgh- prefix