@ctrliq/quantic-components 1.67.4 → 1.67.6

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.
@@ -20,7 +20,10 @@ import { prop } from '../shared/component-meta.decorators';
20
20
  SidebarMenuItem.ensureDefined();
21
21
  LucideIconPanelLeftClose.ensureDefined();
22
22
  LucideIconPanelLeft.ensureDefined();
23
- let Sidebar = class Sidebar extends AutoHideEmptySlotsMixin(QuanticElement, ['header', 'footer']) {
23
+ let Sidebar = class Sidebar extends AutoHideEmptySlotsMixin(QuanticElement, [
24
+ 'header',
25
+ 'footer',
26
+ ]) {
24
27
  constructor() {
25
28
  super(...arguments);
26
29
  this.ariaLabel = 'Sidebar navigation';
@@ -56,25 +59,23 @@ let Sidebar = class Sidebar extends AutoHideEmptySlotsMixin(QuanticElement, ['he
56
59
 
57
60
  ${this.isDesktopViewport && this.collapsible
58
61
  ? html `<div class="toggle-container">
59
- <quantic-sidebar-menu-item
60
- @click=${this.handleToggle}
61
- title=${this.isAsideExpanded
62
- ? 'Collapse sidebar'
63
- : 'Expand sidebar'}
64
- label=${this.isAsideExpanded ? 'Collapse' : 'Expand sidebar'}
65
- variant=${SidebarMenuItemVariant.Secondary}
66
- >
67
- ${this.isAsideExpanded
62
+ <quantic-sidebar-menu-item
63
+ @click=${this.handleToggle}
64
+ title=${this.isAsideExpanded ? 'Collapse sidebar' : 'Expand sidebar'}
65
+ label=${this.isAsideExpanded ? 'Collapse' : 'Expand sidebar'}
66
+ variant=${SidebarMenuItemVariant.Secondary}
67
+ >
68
+ ${this.isAsideExpanded
68
69
  ? html `<quantic-icon-lucide-panel-left-close
69
- slot="icon"
70
- size="sm"
71
- ></quantic-icon-lucide-panel-left-close>`
70
+ slot="icon"
71
+ size="sm"
72
+ ></quantic-icon-lucide-panel-left-close>`
72
73
  : html `<quantic-icon-lucide-panel-left
73
- slot="icon"
74
- size="sm"
75
- ></quantic-icon-lucide-panel-left>`}
76
- </quantic-sidebar-menu-item>
77
- </div>`
74
+ slot="icon"
75
+ size="sm"
76
+ ></quantic-icon-lucide-panel-left>`}
77
+ </quantic-sidebar-menu-item>
78
+ </div>`
78
79
  : null}
79
80
  </div>
80
81
  </nav>
@@ -86,11 +87,20 @@ Sidebar.meta = {
86
87
  description: 'Collapsible side navigation panel placed in the sidebar slot of quantic-layout. ' +
87
88
  'On desktop it can collapse to an icon rail; on mobile it is controlled by the layout as a drawer.',
88
89
  category: 'navigation',
89
- subComponents: ['quantic-sidebar-menu-item', 'quantic-sidebar-menu-item-group'],
90
+ subComponents: [
91
+ 'quantic-sidebar-menu-item',
92
+ 'quantic-sidebar-menu-item-group',
93
+ ],
90
94
  slots: {
91
- header: { description: 'Optional sticky header rendered above the scrollable content.' },
92
- '': { description: 'Primary nav items (quantic-sidebar-menu-item or quantic-sidebar-menu-item-group).' },
93
- footer: { description: 'Footer nav items pinned to the bottom of the sidebar.' },
95
+ header: {
96
+ description: 'Optional sticky header rendered above the scrollable content.',
97
+ },
98
+ '': {
99
+ description: 'Primary nav items (quantic-sidebar-menu-item or quantic-sidebar-menu-item-group).',
100
+ },
101
+ footer: {
102
+ description: 'Footer nav items pinned to the bottom of the sidebar.',
103
+ },
94
104
  },
95
105
  relatedTo: ['quantic-layout', 'quantic-sidebar-menu-item'],
96
106
  };
@@ -114,7 +124,7 @@ Sidebar.styles = css `
114
124
  flex-shrink: 0;
115
125
  }
116
126
 
117
- :host(:not(:has([slot="header"]))) .header {
127
+ :host(:not(:has([slot='header']))) .header {
118
128
  display: none;
119
129
  }
120
130
 
@@ -181,10 +191,19 @@ __decorate([
181
191
  consume({ context: asideExpandedContext, subscribe: true })
182
192
  ], Sidebar.prototype, "isAsideExpanded", void 0);
183
193
  __decorate([
184
- prop({ type: 'string', default: 'Sidebar navigation', description: 'Accessible label for the nav landmark.' })
194
+ prop({
195
+ type: 'string',
196
+ default: 'Sidebar navigation',
197
+ description: 'Accessible label for the nav landmark.',
198
+ })
185
199
  ], Sidebar.prototype, "ariaLabel", void 0);
186
200
  __decorate([
187
- prop({ type: 'boolean', default: 'false', attribute: 'collapsible', description: 'When true, shows a toggle button at the bottom of the sidebar on desktop viewports.' })
201
+ prop({
202
+ type: 'boolean',
203
+ default: 'false',
204
+ attribute: 'collapsible',
205
+ description: 'When true, shows a toggle button at the bottom of the sidebar on desktop viewports.',
206
+ })
188
207
  ], Sidebar.prototype, "collapsible", void 0);
189
208
  __decorate([
190
209
  respond(Breakpoint.above(1024))