import { Component, h, Host, Prop } from '@stencil/core';
export class DvnTooltip {
  constructor() {
    this.placement = 'top';
  }
  render() {
    const style = {};
    if (this.offset) {
      style['--tooltip-offset'] = this.offset;
    }
    if (this.width) {
      style['--tooltip-width'] = this.width;
      style['white-space'] = 'normal';
    }
    return (h(Host, { "data-msg": this.content, class: { [this.placement]: true }, style: style },
      h("slot", null)));
  }
  static get is() { return "dvn-tooltip"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-tooltip.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-tooltip.css"]
  }; }
  static get properties() { return {
    "content": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "content",
      "reflect": false
    },
    "offset": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "offset",
      "reflect": false
    },
    "width": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "width",
      "reflect": false
    },
    "placement": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "TooltipPlacement",
        "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
        "references": {
          "TooltipPlacement": {
            "location": "import",
            "path": "@dvn/alaca/components/dvn-tooltip/models"
          }
        }
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "placement",
      "reflect": false,
      "defaultValue": "'top'"
    }
  }; }
}
