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 { spinnerTemplate } from './spinner.template.js';
import { spinnerStyles } from './spinner.styles.js';
/**
 * ml-spinner - Loading spinner component
 *
 * @example
 * ```html
 * <ml-spinner></ml-spinner>
 * <ml-spinner size="lg"></ml-spinner>
 * <ml-spinner label="Loading data..."></ml-spinner>
 * ```
 */
let SpinnerComponent = class SpinnerComponent {
    constructor() {
        /** Size of the spinner */
        this.size = 'md';
        /** Accessible label for screen readers */
        this.label = 'Loading';
    }
};
SpinnerComponent = __decorate([
    MelodicComponent({
        selector: 'ml-spinner',
        template: spinnerTemplate,
        styles: spinnerStyles,
        attributes: ['size', 'label']
    })
], SpinnerComponent);
export { SpinnerComponent };
