import { h } from '@stencil/core';
import { Css } from '@ema/core';
export class CardContent {
    constructor() {
        this.background = 'none';
        this.color = 'inherit';
        this.padding = '10px 20px';
    }
    componentDidLoad() {
        this.postRender();
    }
    componentDidUpdate() {
        this.postRender();
    }
    postRender() {
        setTimeout(() => {
            Css.setVar('ema-card-content-background', this.background, this.el.querySelector('.ema-card-content'));
            Css.setVar('ema-card-content-color', this.color, this.el.querySelector('.ema-card-content'));
            Css.setVar('ema-card-content-padding', this.padding, this.el.querySelector('.ema-card-content'));
        });
    }
    render() {
        return (h("div", { class: "ema-card-content" },
            h("slot", null)));
    }
    static get is() { return "ema-card-content"; }
    static get originalStyleUrls() { return {
        "$": ["card-content.scss"]
    }; }
    static get styleUrls() { return {
        "$": ["card-content.css"]
    }; }
    static get properties() { return {
        "background": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "background",
            "reflect": false,
            "defaultValue": "'none'"
        },
        "color": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "color",
            "reflect": false,
            "defaultValue": "'inherit'"
        },
        "padding": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "padding",
            "reflect": false,
            "defaultValue": "'10px 20px'"
        }
    }; }
    static get elementRef() { return "el"; }
}
