import { Component, Host, h, Prop } from '@stencil/core';
export class UxplTag {
  render() {
    return (h(Host, null,
      h("div", { part: "tag-outer", class: {
          "outer-tag": true,
          "grow": this.grow
        }, style: {
          borderColor: this.color
        } },
        h("div", { part: "tag-inner", class: {
            background: true,
            rectangle: true,
            percentage: this.progress ? true : false
          }, style: {
            background: this.color,
            width: this.progress ? this.progress : '100%'
          } },
          h("img", { class: "icon", style: {
              display: this.icon ? 'block' : 'none'
            }, src: this.icon }),
          h("span", { part: "tag-text", class: "description", style: {
              position: this.grow ? 'inherit' : 'absolute',
              left: this.icon ? '20px' : '0px'
            } },
            h("slot", null))))));
  }
  static get is() { return "uxpl-tag"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["uxpl-tag.css"]
  }; }
  static get styleUrls() { return {
    "$": ["uxpl-tag.css"]
  }; }
  static get properties() { return {
    "icon": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "icon",
      "reflect": false
    },
    "color": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "color",
      "reflect": false
    },
    "progress": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "progress",
      "reflect": false
    },
    "grow": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "grow",
      "reflect": false
    }
  }; }
}
