import { Component, Prop, h } from '@stencil/core';
export class TeliaColorDot {
  constructor() {
    /** Change size of TeliaColorDot from xs to lg */
    this.size = 'sm';
    /** Add border. Use if color contrast is low. */
    this.withborder = false;
    /** Tracking id is used to identify and count Component usage */
    this.dataTrackingId = 'telia-color-dot';
  }
  render() {
    return (h("div", { "data-testid": "telia-color-dot-border-container", class: {
        'telia-color-dot': true,
        'telia-color-dot--with_border': this.withborder,
        [`telia-color-dot--${this.size}`]: true,
      }, style: { backgroundColor: this.color, borderColor: this.borderColor } },
      h("telia-vst", { dataTrackingId: this.dataTrackingId })));
  }
  static get is() { return "telia-color-dot"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["telia-color-dot.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["telia-color-dot.css"]
  }; }
  static get properties() { return {
    "borderColor": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": "Hex color of border"
      },
      "attribute": "border-color",
      "reflect": false
    },
    "color": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Hex color of dot"
      },
      "attribute": "color",
      "reflect": false
    },
    "size": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "TShirtSizes",
        "resolved": "\"lg\" | \"md\" | \"sm\" | \"xs\"",
        "references": {
          "TShirtSizes": {
            "location": "import",
            "path": "../../types/TShirtSizes"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Change size of TeliaColorDot from xs to lg"
      },
      "attribute": "size",
      "reflect": false,
      "defaultValue": "'sm'"
    },
    "dataTestid": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Test id set for web component host"
      },
      "attribute": "data-testid",
      "reflect": false
    },
    "withborder": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Add border. Use if color contrast is low."
      },
      "attribute": "withborder",
      "reflect": false,
      "defaultValue": "false"
    }
  }; }
}
