@ctrliq/quantic-components 1.62.2 → 1.63.0

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.
@@ -64462,36 +64462,42 @@
64462
64462
  aria-label=${this.ariaLabel}
64463
64463
  aria-expanded=${this.isAsideExpanded !== false ? 'true' : 'false'}
64464
64464
  >
64465
- <div class="body">
64466
- <slot @slotchange=${this.handleAutoHide}></slot>
64465
+ <div class="header">
64466
+ <slot name="header" @slotchange=${this.handleAutoHide}></slot>
64467
64467
  </div>
64468
64468
 
64469
- <div class="footer">
64470
- <slot name="footer" @slotchange=${this.handleAutoHide}></slot>
64471
- </div>
64469
+ <div class="scroll-area">
64470
+ <div class="body">
64471
+ <slot @slotchange=${this.handleAutoHide}></slot>
64472
+ </div>
64472
64473
 
64473
- ${this.isDesktopViewport && this.collapsible
64474
+ <div class="footer">
64475
+ <slot name="footer" @slotchange=${this.handleAutoHide}></slot>
64476
+ </div>
64477
+
64478
+ ${this.isDesktopViewport && this.collapsible
64474
64479
  ? u$2 `<div class="toggle-container">
64475
- <quantic-sidebar-menu-item
64476
- @click=${this.handleToggle}
64477
- title=${this.isAsideExpanded
64480
+ <quantic-sidebar-menu-item
64481
+ @click=${this.handleToggle}
64482
+ title=${this.isAsideExpanded
64478
64483
  ? 'Collapse sidebar'
64479
64484
  : 'Expand sidebar'}
64480
- label=${this.isAsideExpanded ? 'Collapse' : 'Expand sidebar'}
64481
- variant=${SidebarMenuItemVariant.Secondary}
64482
- >
64483
- ${this.isAsideExpanded
64485
+ label=${this.isAsideExpanded ? 'Collapse' : 'Expand sidebar'}
64486
+ variant=${SidebarMenuItemVariant.Secondary}
64487
+ >
64488
+ ${this.isAsideExpanded
64484
64489
  ? u$2 `<quantic-icon-lucide-panel-left-close
64485
- slot="icon"
64486
- size="sm"
64487
- ></quantic-icon-lucide-panel-left-close>`
64490
+ slot="icon"
64491
+ size="sm"
64492
+ ></quantic-icon-lucide-panel-left-close>`
64488
64493
  : u$2 `<quantic-icon-lucide-panel-left
64489
- slot="icon"
64490
- size="sm"
64491
- ></quantic-icon-lucide-panel-left>`}
64492
- </quantic-sidebar-menu-item>
64493
- </div>`
64494
+ slot="icon"
64495
+ size="sm"
64496
+ ></quantic-icon-lucide-panel-left>`}
64497
+ </quantic-sidebar-menu-item>
64498
+ </div>`
64494
64499
  : null}
64500
+ </div>
64495
64501
  </nav>
64496
64502
  `;
64497
64503
  }
@@ -64503,6 +64509,7 @@
64503
64509
  category: 'navigation',
64504
64510
  subComponents: ['quantic-sidebar-menu-item', 'quantic-sidebar-menu-item-group'],
64505
64511
  slots: {
64512
+ header: { description: 'Optional sticky header rendered above the scrollable content.' },
64506
64513
  '': { description: 'Primary nav items (quantic-sidebar-menu-item or quantic-sidebar-menu-item-group).' },
64507
64514
  footer: { description: 'Footer nav items pinned to the bottom of the sidebar.' },
64508
64515
  },
@@ -64518,6 +64525,24 @@
64518
64525
  flex-direction: column;
64519
64526
  height: 100%;
64520
64527
  flex: 1;
64528
+ box-sizing: border-box;
64529
+ overflow: hidden;
64530
+ }
64531
+
64532
+ .header {
64533
+ padding: var(--quantic-spacing-2);
64534
+ padding-bottom: 0;
64535
+ flex-shrink: 0;
64536
+ }
64537
+
64538
+ .header:has(slot[hidden]) {
64539
+ display: none;
64540
+ }
64541
+
64542
+ .scroll-area {
64543
+ flex: 1;
64544
+ display: flex;
64545
+ flex-direction: column;
64521
64546
  padding: var(--quantic-spacing-2);
64522
64547
  box-sizing: border-box;
64523
64548
  overflow-x: hidden;
@@ -64526,20 +64551,20 @@
64526
64551
  scrollbar-color: var(--quantic-border-secondary) transparent;
64527
64552
  }
64528
64553
 
64529
- .main::-webkit-scrollbar {
64554
+ .scroll-area::-webkit-scrollbar {
64530
64555
  width: 4px;
64531
64556
  }
64532
64557
 
64533
- .main::-webkit-scrollbar-track {
64558
+ .scroll-area::-webkit-scrollbar-track {
64534
64559
  background: transparent;
64535
64560
  }
64536
64561
 
64537
- .main::-webkit-scrollbar-thumb {
64562
+ .scroll-area::-webkit-scrollbar-thumb {
64538
64563
  background: var(--quantic-border-secondary);
64539
64564
  border-radius: var(--quantic-radius-full);
64540
64565
  }
64541
64566
 
64542
- .main:not(.is-aside-expanded) .main {
64567
+ .main:not(.is-aside-expanded) .scroll-area {
64543
64568
  padding: var(--quantic-spacing-1);
64544
64569
  }
64545
64570