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 { statCardTemplate } from './stat-card.template.js';
import { statCardStyles } from './stat-card.styles.js';
/**
 * ml-stat-card - Dashboard metric card with label, value, optional trend, and icon
 *
 * @example
 * ```html
 * <ml-stat-card
 *   label="Total Members"
 *   value="1,247"
 *   trend="+6 this month"
 *   trend-direction="up"
 *   icon="users"
 * ></ml-stat-card>
 * ```
 *
 * @csspart value - The large value display
 * @csspart label - The label text
 * @csspart trend - The trend text
 * @csspart icon - The icon container
 *
 * @cssproperty --ml-stat-card-bg - Card background color (default: var(--ml-color-surface))
 * @cssproperty --ml-stat-card-icon-color - Icon color (default: var(--ml-color-text-tertiary))
 * @cssproperty --ml-stat-card-value-color - Value text color (default: var(--ml-color-text))
 */
let StatCardComponent = class StatCardComponent {
    constructor() {
        /** Metric label */
        this.label = '';
        /** Display value */
        this.value = '';
        /** Trend text (e.g. "+6 this month") */
        this.trend = '';
        /** Trend direction for styling */
        this['trend-direction'] = 'neutral';
        /** Icon name (Phosphor icon) */
        this.icon = '';
        /** Icon color — CSS color value or token */
        this['icon-color'] = '';
        /** Value font family */
        this['value-font'] = 'serif';
    }
};
StatCardComponent = __decorate([
    MelodicComponent({
        selector: 'ml-stat-card',
        template: statCardTemplate,
        styles: statCardStyles,
        attributes: ['label', 'value', 'trend', 'trend-direction', 'icon', 'icon-color', 'value-font']
    })
], StatCardComponent);
export { StatCardComponent };
