@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.
- package/dist/alert/alert.js +15 -12
- package/dist/alert/index.stories.d.ts +9 -0
- package/dist/alert/index.stories.js +26 -0
- package/dist/card/card-title.component.js +4 -1
- package/dist/card/card.component.js +162 -150
- package/dist/dropdown-menu/group.component.js +38 -35
- package/dist/index.js.map +1 -1
- package/dist/layout/sidebar.component.js +44 -25
- package/dist/meta/index.js.map +1 -1
- package/dist/option-card/option-card.component.js +67 -25
- package/dist/panel/panel-header.component.js +11 -2
- package/dist/panel/panel.component.js +18 -4
- package/dist/popover/popover-popup.js +10 -2
- package/dist/quantic-components.js +435 -272
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +2221 -2214
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/shared/auto-hide-empty-slots.mixin.d.ts +8 -3
- package/dist/shared/auto-hide-empty-slots.mixin.js +49 -3
- package/dist/table/table.component.js +1 -1
- package/dist/toast/toast.js +15 -12
- package/dist/types/alert/index.stories.d.ts +9 -0
- package/dist/types/shared/auto-hide-empty-slots.mixin.d.ts +8 -3
- package/package.json +1 -1
|
@@ -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, [
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
slot="icon"
|
|
71
|
+
size="sm"
|
|
72
|
+
></quantic-icon-lucide-panel-left-close>`
|
|
72
73
|
: html `<quantic-icon-lucide-panel-left
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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: [
|
|
90
|
+
subComponents: [
|
|
91
|
+
'quantic-sidebar-menu-item',
|
|
92
|
+
'quantic-sidebar-menu-item-group',
|
|
93
|
+
],
|
|
90
94
|
slots: {
|
|
91
|
-
header: {
|
|
92
|
-
|
|
93
|
-
|
|
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=
|
|
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({
|
|
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({
|
|
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))
|