@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.
@@ -37611,32 +37611,38 @@ const Jn="important",Qn=" !"+Jn,Yn=Fe(class extends Re{constructor(e){if(super(e
37611
37611
  aria-label=${this.ariaLabel}
37612
37612
  aria-expanded=${!1!==this.isAsideExpanded?"true":"false"}
37613
37613
  >
37614
- <div class="body">
37615
- <slot @slotchange=${this.handleAutoHide}></slot>
37614
+ <div class="header">
37615
+ <slot name="header" @slotchange=${this.handleAutoHide}></slot>
37616
37616
  </div>
37617
37617
 
37618
- <div class="footer">
37619
- <slot name="footer" @slotchange=${this.handleAutoHide}></slot>
37620
- </div>
37618
+ <div class="scroll-area">
37619
+ <div class="body">
37620
+ <slot @slotchange=${this.handleAutoHide}></slot>
37621
+ </div>
37621
37622
 
37622
- ${this.isDesktopViewport&&this.collapsible?je`<div class="toggle-container">
37623
- <quantic-sidebar-menu-item
37624
- @click=${this.handleToggle}
37625
- title=${this.isAsideExpanded?"Collapse sidebar":"Expand sidebar"}
37626
- label=${this.isAsideExpanded?"Collapse":"Expand sidebar"}
37627
- variant=${Co.Secondary}
37628
- >
37629
- ${this.isAsideExpanded?je`<quantic-icon-lucide-panel-left-close
37630
- slot="icon"
37631
- size="sm"
37632
- ></quantic-icon-lucide-panel-left-close>`:je`<quantic-icon-lucide-panel-left
37633
- slot="icon"
37634
- size="sm"
37635
- ></quantic-icon-lucide-panel-left>`}
37636
- </quantic-sidebar-menu-item>
37637
- </div>`:null}
37623
+ <div class="footer">
37624
+ <slot name="footer" @slotchange=${this.handleAutoHide}></slot>
37625
+ </div>
37626
+
37627
+ ${this.isDesktopViewport&&this.collapsible?je`<div class="toggle-container">
37628
+ <quantic-sidebar-menu-item
37629
+ @click=${this.handleToggle}
37630
+ title=${this.isAsideExpanded?"Collapse sidebar":"Expand sidebar"}
37631
+ label=${this.isAsideExpanded?"Collapse":"Expand sidebar"}
37632
+ variant=${Co.Secondary}
37633
+ >
37634
+ ${this.isAsideExpanded?je`<quantic-icon-lucide-panel-left-close
37635
+ slot="icon"
37636
+ size="sm"
37637
+ ></quantic-icon-lucide-panel-left-close>`:je`<quantic-icon-lucide-panel-left
37638
+ slot="icon"
37639
+ size="sm"
37640
+ ></quantic-icon-lucide-panel-left>`}
37641
+ </quantic-sidebar-menu-item>
37642
+ </div>`:null}
37643
+ </div>
37638
37644
  </nav>
37639
- `}},e.Sidebar.meta={tag:"quantic-sidebar",description:"Collapsible side navigation panel placed in the sidebar slot of quantic-layout. On desktop it can collapse to an icon rail; on mobile it is controlled by the layout as a drawer.",category:"navigation",subComponents:["quantic-sidebar-menu-item","quantic-sidebar-menu-item-group"],slots:{"":{description:"Primary nav items (quantic-sidebar-menu-item or quantic-sidebar-menu-item-group)."},footer:{description:"Footer nav items pinned to the bottom of the sidebar."}},relatedTo:["quantic-layout","quantic-sidebar-menu-item"]},e.Sidebar.styles=l`
37645
+ `}},e.Sidebar.meta={tag:"quantic-sidebar",description:"Collapsible side navigation panel placed in the sidebar slot of quantic-layout. On desktop it can collapse to an icon rail; on mobile it is controlled by the layout as a drawer.",category:"navigation",subComponents:["quantic-sidebar-menu-item","quantic-sidebar-menu-item-group"],slots:{header:{description:"Optional sticky header rendered above the scrollable content."},"":{description:"Primary nav items (quantic-sidebar-menu-item or quantic-sidebar-menu-item-group)."},footer:{description:"Footer nav items pinned to the bottom of the sidebar."}},relatedTo:["quantic-layout","quantic-sidebar-menu-item"]},e.Sidebar.styles=l`
37640
37646
  :host {
37641
37647
  height: 100%;
37642
37648
  }
@@ -37646,6 +37652,24 @@ const Jn="important",Qn=" !"+Jn,Yn=Fe(class extends Re{constructor(e){if(super(e
37646
37652
  flex-direction: column;
37647
37653
  height: 100%;
37648
37654
  flex: 1;
37655
+ box-sizing: border-box;
37656
+ overflow: hidden;
37657
+ }
37658
+
37659
+ .header {
37660
+ padding: var(--quantic-spacing-2);
37661
+ padding-bottom: 0;
37662
+ flex-shrink: 0;
37663
+ }
37664
+
37665
+ .header:has(slot[hidden]) {
37666
+ display: none;
37667
+ }
37668
+
37669
+ .scroll-area {
37670
+ flex: 1;
37671
+ display: flex;
37672
+ flex-direction: column;
37649
37673
  padding: var(--quantic-spacing-2);
37650
37674
  box-sizing: border-box;
37651
37675
  overflow-x: hidden;
@@ -37654,20 +37678,20 @@ const Jn="important",Qn=" !"+Jn,Yn=Fe(class extends Re{constructor(e){if(super(e
37654
37678
  scrollbar-color: var(--quantic-border-secondary) transparent;
37655
37679
  }
37656
37680
 
37657
- .main::-webkit-scrollbar {
37681
+ .scroll-area::-webkit-scrollbar {
37658
37682
  width: 4px;
37659
37683
  }
37660
37684
 
37661
- .main::-webkit-scrollbar-track {
37685
+ .scroll-area::-webkit-scrollbar-track {
37662
37686
  background: transparent;
37663
37687
  }
37664
37688
 
37665
- .main::-webkit-scrollbar-thumb {
37689
+ .scroll-area::-webkit-scrollbar-thumb {
37666
37690
  background: var(--quantic-border-secondary);
37667
37691
  border-radius: var(--quantic-radius-full);
37668
37692
  }
37669
37693
 
37670
- .main:not(.is-aside-expanded) .main {
37694
+ .main:not(.is-aside-expanded) .scroll-area {
37671
37695
  padding: var(--quantic-spacing-1);
37672
37696
  }
37673
37697