import { h } from "@stencil/core";
export class DgaHelperText {
    constructor() {
        this.helperText = '';
        this.error = false;
    }
    render() {
        var _a;
        return (h("div", { key: '3027091d08930ba6a5c9b1c6339ee6a07973288d', class: `dga-helper-text ${this.error ? "dga-helper-text--error" : ""}` }, h("span", { key: 'b8009e673984f1b8fd2d960ed15ca274d0cb31ba', class: "dga-helper-text__icon" }, this.helperTextIcon && ((_a = this.helperTextIcon) === null || _a === void 0 ? void 0 : _a.name) && h("dga-icon", { key: '51d329ecf87d97d2c6676253316fba7969ad7c87', icon: this.helperTextIcon.name, variant: this.helperTextIcon.variant, type: this.helperTextIcon.type, size: 16 })), h("span", { key: 'c3099672ca5b679e0b3f83a645d804d8e47de975', class: "dga-helper-text__desc" }, this.helperText)));
    }
    static get is() { return "dga-helper-text"; }
    static get properties() {
        return {
            "helperTextIcon": {
                "type": "unknown",
                "mutable": false,
                "complexType": {
                    "original": "Icon",
                    "resolved": "Icon",
                    "references": {
                        "Icon": {
                            "location": "import",
                            "path": "../dga-featured-icon/dga-featured-icon",
                            "id": "src/components/dga-featured-icon/dga-featured-icon.tsx::Icon"
                        }
                    }
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false
            },
            "helperText": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "helper-text",
                "reflect": false,
                "defaultValue": "''"
            },
            "error": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "error",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
//# sourceMappingURL=dga-helper-text.js.map
