import { Component, Prop, h } from '@stencil/core';
import { Force } from '../../types/Force';
export class TeliaDivider {
  constructor() {
    /**
     * The contrast of the divider against the background.
     */
    this.variant = Force.WEAK;
    /**
     * When used on a dark background, set this
     * property to true. The color of the divider will
     * change to something suitable on a dark background.
     */
    this.darkBackground = false;
    /** Tracking id is used to identify and count Component usage */
    this.dataTrackingId = 'telia-divider';
    this.baseClass = 'telia-divider';
  }
  getAppearenceClass() {
    return `${this.baseClass}--${this.darkBackground ? 'dark-bg' : 'light-bg'}-${this.variant}`;
  }
  render() {
    const classes = {
      [`${this.baseClass}`]: true,
      [this.getAppearenceClass()]: true,
    };
    return (h("div", { class: classes, "data-testid": this.dataTestid },
      h("telia-vst", { dataTrackingId: this.dataTrackingId })));
  }
  static get is() { return "telia-divider"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["telia-divider.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["telia-divider.css"]
  }; }
  static get properties() { return {
    "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
    },
    "variant": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "ForceType",
        "resolved": "\"medium\" | \"strong\" | \"weak\"",
        "references": {
          "ForceType": {
            "location": "import",
            "path": "../../types/Force"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "The contrast of the divider against the background."
      },
      "attribute": "variant",
      "reflect": false,
      "defaultValue": "Force.WEAK"
    },
    "darkBackground": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "When used on a dark background, set this\nproperty to true. The color of the divider will\nchange to something suitable on a dark background."
      },
      "attribute": "dark-background",
      "reflect": false,
      "defaultValue": "false"
    }
  }; }
}
