import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { NgClass } from '@angular/common';
import * as i0 from "@angular/core";
export class LabelComponent {
    constructor() {
        this.text = '';
        this.type = 'primary';
        this.formControlName = '';
        this.hasError = false;
        this.showError = false;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: LabelComponent, isStandalone: true, selector: "ct-form-label", inputs: { text: "text", type: "type", formControlName: "formControlName", hasError: "hasError", showError: "showError" }, ngImport: i0, template: "<label\n  class=\"flex font-primary text-sm font-medium\"\n  [ngClass]=\"{\n    'text-on-primary dark:text-on-primary-dark': !hasError,\n    'text-error dark:text-error-variant-dark': type === 'error' || (hasError && showError),\n    'text-warning dark:text-warning-variant-dark': type === 'warning'\n  }\"\n  [for]=\"formControlName\"\n  >{{ text }}</label\n>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LabelComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ct-form-label', standalone: true, imports: [NgClass], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label\n  class=\"flex font-primary text-sm font-medium\"\n  [ngClass]=\"{\n    'text-on-primary dark:text-on-primary-dark': !hasError,\n    'text-error dark:text-error-variant-dark': type === 'error' || (hasError && showError),\n    'text-warning dark:text-warning-variant-dark': type === 'warning'\n  }\"\n  [for]=\"formControlName\"\n  >{{ text }}</label\n>\n" }]
        }], propDecorators: { text: [{
                type: Input,
                args: [{ required: true }]
            }], type: [{
                type: Input
            }], formControlName: [{
                type: Input
            }], hasError: [{
                type: Input
            }], showError: [{
                type: Input
            }] } });
//# sourceM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