var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { MelodicComponent } from '@melodicdev/core';
import { sidebarGroupTemplate } from './sidebar-group.template.js';
import { sidebarGroupStyles } from './sidebar-group.styles.js';
/**
 * ml-sidebar-group - Section group with optional heading for sidebar navigation
 *
 * @example
 * ```html
 * <ml-sidebar-group label="GENERAL">
 *   <ml-sidebar-item icon="house" label="Home" value="home"></ml-sidebar-item>
 *   <ml-sidebar-item icon="chart-bar" label="Dashboard" value="dashboard"></ml-sidebar-item>
 * </ml-sidebar-group>
 * ```
 *
 * @slot default - Sidebar items
 */
let SidebarGroupComponent = class SidebarGroupComponent {
    constructor() {
        /** Group heading label */
        this.label = '';
        /** Collapsed state (set by parent sidebar) */
        this.collapsed = false;
    }
};
SidebarGroupComponent = __decorate([
    MelodicComponent({
        selector: 'ml-sidebar-group',
        template: sidebarGroupTemplate,
        styles: sidebarGroupStyles,
        attributes: ['label', 'collapsed']
    })
], SidebarGroupComponent);
export { SidebarGroupComponent };
