v4web-components
Version:
Stencil Component Starter
63 lines (62 loc) • 1.84 kB
JavaScript
import { h } from '@stencil/core';
export class LabDsTooltip {
constructor() {
this.label = undefined;
this.tooltipPosition = 'five-hours';
}
render() {
return (h("div", { class: `v4-tooltip ${this.tooltipPosition}` }, h("div", { class: "tooltip-trigger" }, h("slot", null)), h("div", { class: "tooltip-container" }, h("div", { class: "label" }, this.label), h("div", { class: "triangle" }))));
}
static get is() { return "lab-ds-tooltip"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["lab-ds-tooltip.css"]
};
}
static get styleUrls() {
return {
"$": ["lab-ds-tooltip.css"]
};
}
static get properties() {
return {
"label": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": true,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "label",
"reflect": false
},
"tooltipPosition": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'three-hours' | 'nine-hours' | 'five-hours' | 'six-hours' | 'seven-hours' | 'eleven-hours' | 'twelve-hours'",
"resolved": "\"eleven-hours\" | \"five-hours\" | \"nine-hours\" | \"seven-hours\" | \"six-hours\" | \"three-hours\" | \"twelve-hours\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "tooltip-position",
"reflect": false,
"defaultValue": "'five-hours'"
}
};
}
}
//# sourceMappingURL=lab-ds-tooltip.js.map