import { Component, h, Host, Prop } from '@stencil/core';
export class DvnCard {
  constructor() {
    this.elevation = 1;
    this.leaned = false;
    this.leanedSides = false;
    this.bodyLeaned = false;
    this.outlined = false;
    this.inline = false;
    this.clip = true;
    this.selectable = false;
    this.selected = false;
    this.reverseTint = false;
  }
  render() {
    const elevation = this.outlined ? 0 : this.elevation;
    const style = this.overrideStyle || {};
    if (this.cornerRadius !== undefined) {
      style['border-radius'] = `${this.cornerRadius}px`;
    }
    if (this.width !== undefined) {
      style['width'] = this.width;
    }
    if (this.height !== undefined) {
      style['height'] = this.height;
    }
    return (h(Host, { style: style, class: {
        [this.extraClass]: !!this.extraClass,
        inline: this.inline,
        [`elevated-${elevation}`]: true,
        leaned: this.leaned,
        'leaned-sides': this.leanedSides,
        'body-leaned': this.bodyLeaned,
        outlined: this.outlined,
        [this.tint]: !!this.tint,
        'clipped': this.clip,
        'selectable': this.selectable,
        'selected': this.selected,
        'tint-reversed': this.reverseTint,
      } },
      h("slot", { name: "header" }),
      h("div", { class: "content" },
        h("slot", null)),
      h("slot", { name: "footer" })));
  }
  static get is() { return "dvn-card"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-card.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-card.css"]
  }; }
  static get properties() { return {
    "extraClass": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "extra-class",
      "reflect": false
    },
    "elevation": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "0 | 1 | 2 | 3",
        "resolved": "0 | 1 | 2 | 3",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "elevation",
      "reflect": false,
      "defaultValue": "1"
    },
    "overrideStyle": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "override-style",
      "reflect": false
    },
    "leaned": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "leaned",
      "reflect": false,
      "defaultValue": "false"
    },
    "leanedSides": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "leaned-sides",
      "reflect": false,
      "defaultValue": "false"
    },
    "bodyLeaned": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "body-leaned",
      "reflect": false,
      "defaultValue": "false"
    },
    "outlined": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "outlined",
      "reflect": false,
      "defaultValue": "false"
    },
    "inline": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "inline",
      "reflect": false,
      "defaultValue": "false"
    },
    "clip": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "clip",
      "reflect": false,
      "defaultValue": "true"
    },
    "cornerRadius": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "corner-radius",
      "reflect": false
    },
    "height": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "height",
      "reflect": false
    },
    "tint": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "Tint",
        "resolved": "\"danger\" | \"neutral\" | \"primary\" | \"secondary\" | \"warning\"",
        "references": {
          "Tint": {
            "location": "import",
            "path": "@dvn/alaca/theme"
          }
        }
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "tint",
      "reflect": false
    },
    "width": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "width",
      "reflect": false
    },
    "selectable": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "selectable",
      "reflect": false,
      "defaultValue": "false"
    },
    "selected": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "selected",
      "reflect": false,
      "defaultValue": "false"
    },
    "reverseTint": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "reverse-tint",
      "reflect": false,
      "defaultValue": "false"
    }
  }; }
}
