import { h } from "@stencil/core";
/**
 * Text 文本组件
 * 用于文本展示的基础组件
 */
export class Text {
    /**
     * 文本类型
     * @default ''
     */
    type = '';
    /**
     * 文本大小
     * @default 'default'
     */
    size = 'default';
    /**
     * 是否省略
     * @default false
     */
    truncated = false;
    /**
     * 是否加粗
     * @default false
     */
    bold = false;
    /**
     * 是否斜体
     * @default false
     */
    italic = false;
    /**
     * 是否删除线
     * @default false
     */
    deleted = false;
    render() {
        return (h("span", { key: '71ef3be634ff5831895415e3225d0197c66319d9', class: {
                'hb-text': true,
                [`hb-text--${this.type}`]: !!this.type,
                [`hb-text--${this.size}`]: true,
                'hb-text--truncated': this.truncated,
                'hb-text--bold': this.bold,
                'hb-text--italic': this.italic,
                'hb-text--deleted': this.deleted,
            } }, h("slot", { key: '801d3ae1c36d0d62c7853e4f16e28c4b27eaa865' })));
    }
    static get is() { return "hb-text"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["text.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["text.css"]
        };
    }
    static get properties() {
        return {
            "type": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'primary' | 'success' | 'warning' | 'danger' | 'info' | ''",
                    "resolved": "\"\" | \"danger\" | \"info\" | \"primary\" | \"success\" | \"warning\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "default",
                            "text": "''"
                        }],
                    "text": "\u6587\u672C\u7C7B\u578B"
                },
                "getter": false,
                "setter": false,
                "attribute": "type",
                "reflect": false,
                "defaultValue": "''"
            },
            "size": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'large' | 'default' | 'small'",
                    "resolved": "\"default\" | \"large\" | \"small\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "default",
                            "text": "'default'"
                        }],
                    "text": "\u6587\u672C\u5927\u5C0F"
                },
                "getter": false,
                "setter": false,
                "attribute": "size",
                "reflect": false,
                "defaultValue": "'default'"
            },
            "truncated": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "default",
                            "text": "false"
                        }],
                    "text": "\u662F\u5426\u7701\u7565"
                },
                "getter": false,
                "setter": false,
                "attribute": "truncated",
                "reflect": false,
                "defaultValue": "false"
            },
            "bold": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "default",
                            "text": "false"
                        }],
                    "text": "\u662F\u5426\u52A0\u7C97"
                },
                "getter": false,
                "setter": false,
                "attribute": "bold",
                "reflect": false,
                "defaultValue": "false"
            },
            "italic": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "default",
                            "text": "false"
                        }],
                    "text": "\u662F\u5426\u659C\u4F53"
                },
                "getter": false,
                "setter": false,
                "attribute": "italic",
                "reflect": false,
                "defaultValue": "false"
            },
            "deleted": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "default",
                            "text": "false"
                        }],
                    "text": "\u662F\u5426\u5220\u9664\u7EBF"
                },
                "getter": false,
                "setter": false,
                "attribute": "deleted",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
//# sourceMappingURL=Text.js.map
