import { h } from "@stencil/core";
import { cls } from "../../utils/helpers";
export class XLogo {
    constructor() {
        this.name = undefined;
        this.color = 'default';
        this.size = '1rem';
    }
    /**
     * Emit onclick event
     *
     * @param e
     */
    onClickHandler(e) {
        this.press.emit(e);
    }
    /**
     * Render component
     */
    render() {
        return h("i", { key: 'a9ff707092e98e746ceda687381aa9a822923408', class: cls(`logo-${this.name}`, `logo-color-${this.color}`), style: { fontSize: this.size } });
    }
    static get is() { return "x-logo"; }
    static get originalStyleUrls() {
        return {
            "$": ["./style.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["style.css"]
        };
    }
    static get properties() {
        return {
            "name": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "LogoType",
                    "resolved": "\"3d-secure\" | \"3d-secure-badge\" | \"amex\" | \"banrural\" | \"comodo-secure\" | \"compatible-en\" | \"compatible-es\" | \"diners\" | \"discover\" | \"isotype\" | \"jcb\" | \"logotype\" | \"mastercard\" | \"pci\" | \"pixelpay\" | \"powered-by\" | \"visa\"",
                    "references": {
                        "LogoType": {
                            "location": "import",
                            "path": "../../constants/icons",
                            "id": "src/constants/icons.ts::LogoType"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element name id in catalog (https://www.unpkg.com/@pixelpay/fonts/dist/logos.html)"
                },
                "attribute": "name",
                "reflect": false
            },
            "color": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "ColorType",
                    "resolved": "\"accent\" | \"blue\" | \"brown\" | \"cyan\" | \"danger\" | \"default\" | \"green\" | \"indigo\" | \"info\" | \"orange\" | \"pink\" | \"primary\" | \"purple\" | \"red\" | \"stone\" | \"success\" | \"teal\" | \"warning\" | \"yellow\"",
                    "references": {
                        "ColorType": {
                            "location": "import",
                            "path": "../../constants/colors",
                            "id": "src/constants/colors.ts::ColorType"
                        }
                    }
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element color"
                },
                "attribute": "color",
                "reflect": false,
                "defaultValue": "'default'"
            },
            "size": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element font size"
                },
                "attribute": "size",
                "reflect": false,
                "defaultValue": "'1rem'"
            }
        };
    }
    static get events() {
        return [{
                "method": "press",
                "name": "press",
                "bubbles": false,
                "cancelable": true,
                "composed": true,
                "docs": {
                    "tags": [],
                    "text": "Element event press"
                },
                "complexType": {
                    "original": "MouseEvent",
                    "resolved": "MouseEvent",
                    "references": {
                        "MouseEvent": {
                            "location": "global",
                            "id": "global::MouseEvent"
                        }
                    }
                }
            }];
    }
}
