@vonage/vwc-tooltip 2.29.0 → 2.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vwc-tooltip",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.2",
|
|
4
4
|
"description": "tooltip component",
|
|
5
5
|
"homepage": "https://github.com/Vonage/vivid/tree/master/components/tooltip#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"url": "https://github.com/Vonage/vivid/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@vonage/vvd-core": "2.
|
|
31
|
-
"@vonage/vvd-foundation": "2.
|
|
32
|
-
"@vonage/vwc-icon-button": "2.
|
|
33
|
-
"@vonage/vwc-popup": "2.
|
|
30
|
+
"@vonage/vvd-core": "2.30.2",
|
|
31
|
+
"@vonage/vvd-foundation": "2.30.2",
|
|
32
|
+
"@vonage/vwc-icon-button": "2.30.2",
|
|
33
|
+
"@vonage/vwc-popup": "2.30.2",
|
|
34
34
|
"lit-element": "^2.4.0",
|
|
35
35
|
"lit-html": "^1.3.0",
|
|
36
36
|
"tslib": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@vonage/vvd-design-tokens": "2.
|
|
40
|
-
"@vonage/vvd-typography": "2.
|
|
41
|
-
"@vonage/vvd-umbrella": "2.
|
|
39
|
+
"@vonage/vvd-design-tokens": "2.30.2",
|
|
40
|
+
"@vonage/vvd-typography": "2.30.2",
|
|
41
|
+
"@vonage/vvd-umbrella": "2.30.2",
|
|
42
42
|
"typescript": "^4.3.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d73b307cb3204f1ccde5493947bde32815a3aa9d"
|
|
45
45
|
}
|
package/src/vwc-tooltip-base.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
html, LitElement, property
|
|
3
3
|
} from 'lit-element';
|
|
4
4
|
import type { TemplateResult } from 'lit-html';
|
|
5
|
-
import type { Placement } from '@floating-ui/
|
|
5
|
+
import type { Placement } from '@floating-ui/dom';
|
|
6
6
|
|
|
7
7
|
export class VWCTooltipBase extends LitElement {
|
|
8
8
|
|
package/vwc-tooltip-base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit-element';
|
|
2
2
|
import type { TemplateResult } from 'lit-html';
|
|
3
|
-
import type { Placement } from '@floating-ui/
|
|
3
|
+
import type { Placement } from '@floating-ui/dom';
|
|
4
4
|
export declare class VWCTooltipBase extends LitElement {
|
|
5
5
|
text: string;
|
|
6
6
|
corner?: Placement;
|
package/vwc-tooltip-base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vwc-tooltip-base.js","sourceRoot":"","sources":["src/vwc-tooltip-base.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,IAAI,EAAE,UAAU,EAAE,QAAQ,EAC1B,MAAM,aAAa,CAAC;AAIrB,MAAM,OAAO,cAAe,SAAQ,UAAU;IAA9C;;QAQE,SAAI,GAAG,EAAE,CAAC;QAgBV,SAAI,GAAG,KAAK,CAAC;QAQb,WAAM,GAAG,EAAE,CAAC;IA6Bd,CAAC;IAvBA,IAAI;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAMD,IAAI;QACH,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACnB,CAAC;IAEkB,MAAM;QACxB,OAAO,IAAI,CAAA;0BACa,IAAI,CAAC,MAAM,UAAU,IAAI,CAAC,IAAI,YAAY,IAAI,CAAC,MAAM;;;qCAG1C,IAAI,CAAC,IAAI;;;;IAI1C,CAAC;IACJ,CAAC;CACD;AArDC;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC/B;AAQV;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CACtB;AAQnB;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC7B;AAQb;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACd","sourcesContent":["import {\n\thtml, LitElement, property\n} from 'lit-element';\nimport type { TemplateResult } from 'lit-html';\nimport type { Placement } from '@floating-ui/
|
|
1
|
+
{"version":3,"file":"vwc-tooltip-base.js","sourceRoot":"","sources":["src/vwc-tooltip-base.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,IAAI,EAAE,UAAU,EAAE,QAAQ,EAC1B,MAAM,aAAa,CAAC;AAIrB,MAAM,OAAO,cAAe,SAAQ,UAAU;IAA9C;;QAQE,SAAI,GAAG,EAAE,CAAC;QAgBV,SAAI,GAAG,KAAK,CAAC;QAQb,WAAM,GAAG,EAAE,CAAC;IA6Bd,CAAC;IAvBA,IAAI;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAMD,IAAI;QACH,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACnB,CAAC;IAEkB,MAAM;QACxB,OAAO,IAAI,CAAA;0BACa,IAAI,CAAC,MAAM,UAAU,IAAI,CAAC,IAAI,YAAY,IAAI,CAAC,MAAM;;;qCAG1C,IAAI,CAAC,IAAI;;;;IAI1C,CAAC;IACJ,CAAC;CACD;AArDC;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC/B;AAQV;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CACtB;AAQnB;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC7B;AAQb;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACd","sourcesContent":["import {\n\thtml, LitElement, property\n} from 'lit-element';\nimport type { TemplateResult } from 'lit-html';\nimport type { Placement } from '@floating-ui/dom';\n\nexport class VWCTooltipBase extends LitElement {\n\n\t/**\n\t * @prop text - the text of the tooltip\n\t * accepts string\n\t * @public\n\t * */\n\t@property({ type: String, reflect: true })\n\t\ttext = '';\n\n\t/**\n\t * @prop corner - the placement of the tooltip\n\t * accepts top, top-start, top-end, bottom, bottom-start, bottom-end, right, right-start, right-end, left, left-start, left-end\n\t * @public\n\t * */\n\t@property({ type: String, reflect: true })\n\t\tcorner?: Placement;\n\n\t/**\n\t * @prop open - indicates whether the tooltip is open\n\t * accepts boolean value\n\t * @public\n\t * */\n\t@property({ type: Boolean, reflect: true })\n\t\topen = false;\n\n\t/**\n\t * @prop anchor - ID reference to element in the popup’s owner document.\n\t * accepts string\n\t * @public\n\t * */\n\t@property({ type: String })\n\t\tanchor = '';\n\n\t/**\n\t * Opens the tooltip\n\t * @public\n\t */\n\tshow(): void {\n\t\tthis.open = true;\n\t}\n\n\t/**\n\t * Closes the tooltip\n\t * @public\n\t */\n\thide(): void {\n\t\tthis.open = false;\n\t}\n\n\tprotected override render(): TemplateResult {\n\t\treturn html`\n\t\t\t\t\t<vwc-popup .corner=${this.corner} .open=${this.open} .anchor=${this.anchor} arrow alternate=\"true\" exportparts=\"vvd-scheme-alternate\">\n\t\t\t\t\t\t<div class=\"tooltip\">\n\t\t\t\t\t\t\t<header part=\"vvd-scheme-alternate\" class=\"tooltip-header\">\n\t\t\t\t\t\t\t\t<div class=\"tooltip-title\">${this.text}</div>\n\t\t\t\t\t\t\t</header>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</vwc-popup>\n\t\t\t`;\n\t}\n}\n"]}
|