@getflip/swirl-components 0.404.0 → 0.406.0
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/components.json +117 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tooltip.cjs.entry.js +42 -40
- package/dist/collection/components/swirl-popover/swirl-popover.css +4 -7
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.css +3 -4
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +124 -50
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-popover2.js +1 -1
- package/dist/components/swirl-tooltip2.js +47 -43
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-popover_2.entry.js +1 -1
- package/dist/esm/swirl-tooltip.entry.js +43 -41
- package/dist/swirl-components/p-31157c43.entry.js +1 -0
- package/dist/swirl-components/p-691a2260.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-tooltip/swirl-tooltip.d.ts +8 -9
- package/dist/types/components.d.ts +16 -8
- package/package.json +1 -1
- package/vscode-data.json +14 -2
- package/dist/swirl-components/p-8293861d.entry.js +0 -1
- package/dist/swirl-components/p-e8c9b581.entry.js +0 -1
|
@@ -5,25 +5,30 @@ var floatingUi_dom_browser_min = require('./floating-ui.dom.browser.min-PA1q-Uql
|
|
|
5
5
|
var index$1 = require('./index-DcAhLZUH.js');
|
|
6
6
|
var utils = require('./utils-UfZG-xPD.js');
|
|
7
7
|
|
|
8
|
-
const swirlTooltipCss = ":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--active .tooltip__popper{display:block}.tooltip--visible .tooltip__popper{animation:tooltip-fade-in 0.15s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}.tooltip--actual-placement-top .tooltip__arrow{top:calc(100% - 0.0625rem);transform:translate3d(0, -50%, 0) rotate(45deg)}.tooltip--actual-placement-bottom .tooltip__arrow{bottom:calc(100% - 0.0625rem);transform:translate3d(0, 50%, 0) rotate(45deg)}.tooltip--actual-placement-left .tooltip__arrow{left:calc(100% - 0.0625rem);transform:translate3d(-50%, 0, 0) rotate(45deg)}.tooltip--actual-placement-right .tooltip__arrow{right:calc(100% - 0.0625rem);transform:translate3d(50%, 0, 0) rotate(45deg)}.tooltip .tooltip__reference{display:contents}.tooltip__popper{position:absolute;z-index:var(--s-z-40);display:none;max-width:17.5rem;opacity:0}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:calc(var(--s-space-8) + 0.0625rem);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);box-shadow:var(--s-shadow-level-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__content{white-space:normal}.tooltip__arrow{position:absolute;width:0.6875rem;height:0.6875rem;border-radius:0.125rem;background-color:var(--s-surface-neutral-default)}.tooltip--
|
|
8
|
+
const swirlTooltipCss = ":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--active .tooltip__popper{display:block}.tooltip--visible .tooltip__popper{animation:tooltip-fade-in 0.15s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}.tooltip--actual-placement-top .tooltip__arrow{top:calc(100% - 0.0625rem);transform:translate3d(0, -50%, 0) rotate(45deg)}.tooltip--actual-placement-bottom .tooltip__arrow{bottom:calc(100% - 0.0625rem);transform:translate3d(0, 50%, 0) rotate(45deg)}.tooltip--actual-placement-left .tooltip__arrow{left:calc(100% - 0.0625rem);transform:translate3d(-50%, 0, 0) rotate(45deg)}.tooltip--actual-placement-right .tooltip__arrow{right:calc(100% - 0.0625rem);transform:translate3d(50%, 0, 0) rotate(45deg)}.tooltip .tooltip__reference{display:contents}.tooltip__popper{position:absolute;z-index:var(--s-z-40);display:none;max-width:17.5rem;opacity:0}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:calc(var(--s-space-8) + 0.0625rem);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);box-shadow:var(--s-shadow-level-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__content{white-space:normal}.tooltip__arrow{position:absolute;width:0.6875rem;height:0.6875rem;border-radius:0.125rem;background-color:var(--s-surface-neutral-default)}.tooltip--intent-info .tooltip__bubble,.tooltip--intent-info .tooltip__arrow{background-color:var(--s-surface-info-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}";
|
|
9
9
|
|
|
10
10
|
const SwirlTooltip = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.active = true;
|
|
14
14
|
this.delay = 200;
|
|
15
|
+
this.intent = "default";
|
|
15
16
|
this.position = "top";
|
|
16
17
|
this.positioning = "absolute";
|
|
17
|
-
|
|
18
|
-
* If set to true, tooltip will be initially visible.
|
|
19
|
-
* It will only be dismissible via a click and will not reappear.
|
|
20
|
-
* Tooltip will have a blue background color.
|
|
21
|
-
*/
|
|
22
|
-
this.isPromo = false;
|
|
18
|
+
this.trigger = ["focus", "hover"];
|
|
23
19
|
this.visible = false;
|
|
24
|
-
this.isPromoShown = false;
|
|
25
20
|
this.onKeydown = (event) => {
|
|
26
|
-
if (event.code === "Escape"
|
|
21
|
+
if (event.code === "Escape") {
|
|
22
|
+
this.hide();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.onFocusIn = () => {
|
|
26
|
+
if (this.trigger.includes("focus")) {
|
|
27
|
+
this.show();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.onFocusOut = () => {
|
|
31
|
+
if (this.trigger.includes("focus")) {
|
|
27
32
|
this.hide();
|
|
28
33
|
}
|
|
29
34
|
};
|
|
@@ -44,20 +49,6 @@ const SwirlTooltip = class {
|
|
|
44
49
|
top: Boolean(arrowY) ? arrowY + "px" : undefined,
|
|
45
50
|
};
|
|
46
51
|
};
|
|
47
|
-
this.show = () => {
|
|
48
|
-
if (!this.active || (this.isPromo && this.isPromoShown)) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.visible = true;
|
|
52
|
-
requestAnimationFrame(() => {
|
|
53
|
-
const referenceElement = this.el.children[0];
|
|
54
|
-
if (!Boolean(referenceElement)) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
this.reposition();
|
|
58
|
-
this.disableAutoUpdate = floatingUi_dom_browser_min.N(referenceElement, this.popperEl, this.reposition.bind(this));
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
52
|
this.showWithDelay = () => {
|
|
62
53
|
if (!this.active) {
|
|
63
54
|
return;
|
|
@@ -70,14 +61,6 @@ const SwirlTooltip = class {
|
|
|
70
61
|
this.show();
|
|
71
62
|
}, this.delay);
|
|
72
63
|
};
|
|
73
|
-
this.hide = () => {
|
|
74
|
-
if (Boolean(this.showTimeout)) {
|
|
75
|
-
clearTimeout(this.showTimeout);
|
|
76
|
-
this.showTimeout = undefined;
|
|
77
|
-
}
|
|
78
|
-
this.visible = false;
|
|
79
|
-
this.disableAutoUpdate?.();
|
|
80
|
-
};
|
|
81
64
|
this.updateOptions = () => {
|
|
82
65
|
const margin = utils.getPixelsFromRemToken("--s-space-12");
|
|
83
66
|
const shiftPaddingY = utils.getPixelsFromRemToken("--s-space-8");
|
|
@@ -104,10 +87,12 @@ const SwirlTooltip = class {
|
|
|
104
87
|
this.updateOptions();
|
|
105
88
|
}
|
|
106
89
|
onMouseEnter() {
|
|
107
|
-
this.
|
|
90
|
+
if (this.trigger.includes("hover")) {
|
|
91
|
+
this.showWithDelay();
|
|
92
|
+
}
|
|
108
93
|
}
|
|
109
94
|
onMouseLeave() {
|
|
110
|
-
if (
|
|
95
|
+
if (this.trigger.includes("hover")) {
|
|
111
96
|
this.hide();
|
|
112
97
|
}
|
|
113
98
|
}
|
|
@@ -128,18 +113,35 @@ const SwirlTooltip = class {
|
|
|
128
113
|
}
|
|
129
114
|
componentDidLoad() {
|
|
130
115
|
this.updateOptions();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
116
|
+
}
|
|
117
|
+
async show() {
|
|
118
|
+
if (!this.active) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.visible = true;
|
|
122
|
+
requestAnimationFrame(() => {
|
|
123
|
+
const referenceElement = this.el.children[0];
|
|
124
|
+
if (!Boolean(referenceElement)) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
this.reposition();
|
|
128
|
+
this.disableAutoUpdate = floatingUi_dom_browser_min.N(referenceElement, this.popperEl, this.reposition.bind(this));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
async hide() {
|
|
132
|
+
if (Boolean(this.showTimeout)) {
|
|
133
|
+
clearTimeout(this.showTimeout);
|
|
134
|
+
this.showTimeout = undefined;
|
|
134
135
|
}
|
|
136
|
+
this.visible = false;
|
|
137
|
+
this.disableAutoUpdate?.();
|
|
135
138
|
}
|
|
136
139
|
render() {
|
|
137
|
-
const className = index$1.classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, {
|
|
140
|
+
const className = index$1.classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, `tooltip--intent-${this.intent}`, {
|
|
138
141
|
"tooltip--active": this.active,
|
|
139
142
|
"tooltip--visible": this.visible,
|
|
140
|
-
"tooltip--promo": this.isPromo,
|
|
141
143
|
});
|
|
142
|
-
return (index.h(index.Host, { key: '
|
|
144
|
+
return (index.h(index.Host, { key: 'e418f075955973796c17ba8994cfb63284b99d13', onKeydown: this.onKeydown }, index.h("span", { key: '410ac8bc16773617287b73b4676682b4e887eeb3', class: className }, index.h("span", { key: 'e111062966a91142006124131819095cd3e41e69', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.onFocusOut, onClick: this.hide, onFocusin: this.onFocusIn }, index.h("slot", { key: 'fc43ad1b5a655a0512157a6cc6c9877c592caa1c' })), index.h("span", { key: '360545df93f2ea5b655166769d1a3d95c8dca299', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
|
|
143
145
|
top: Boolean(this.actualPosition)
|
|
144
146
|
? `${this.actualPosition?.y}px`
|
|
145
147
|
: "",
|
|
@@ -147,7 +149,7 @@ const SwirlTooltip = class {
|
|
|
147
149
|
? `${this.actualPosition?.x}px`
|
|
148
150
|
: "",
|
|
149
151
|
position: this.positioning,
|
|
150
|
-
} }, this.visible && (index.h("span", { key: '
|
|
152
|
+
} }, this.visible && (index.h("span", { key: 'b4af0145c86950a1a863f73d63f77000bd98f95a', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, index.h("span", { key: '84a35eb842594411f9deac1c47b04034bdd64362', class: "tooltip__content", innerHTML: this.content }))), index.h("span", { key: 'c6796dee53c0fd6d1fbc2a39d6495f91360671fc', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
151
153
|
...this.arrowStyles,
|
|
152
154
|
visibility: this.visible ? "visible" : "hidden",
|
|
153
155
|
} })))));
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.popover--closing .popover__backdrop {
|
|
54
|
-
animation: 0.15s popover-fade-out;
|
|
55
|
-
animation-fill-mode: forwards;
|
|
54
|
+
animation: 0.15s popover-fade-out forwards;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
@media (prefers-reduced-motion) {
|
|
@@ -63,14 +62,13 @@
|
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
.popover--closing .popover__content {
|
|
66
|
-
animation: 0.15s popover-slide-out;
|
|
67
|
-
animation-fill-mode: forwards;
|
|
65
|
+
animation: 0.15s popover-slide-out forwards;
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
@media (min-width: 768px) {
|
|
71
69
|
|
|
72
70
|
.popover--closing .popover__content {
|
|
73
|
-
animation: 0.15s popover-fade-out
|
|
71
|
+
animation: 0.15s popover-fade-out forwards
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
|
|
@@ -96,8 +94,7 @@
|
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
.popover--fullscreen-bottom-sheet.popover--closing .popover__content {
|
|
99
|
-
animation: 0.15s popover-fade-out;
|
|
100
|
-
animation-fill-mode: forwards;
|
|
97
|
+
animation: 0.15s popover-fade-out forwards;
|
|
101
98
|
}
|
|
102
99
|
|
|
103
100
|
@media (prefers-reduced-motion) {
|
|
@@ -88,10 +88,9 @@
|
|
|
88
88
|
background-color: var(--s-surface-neutral-default);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.tooltip--
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
91
|
+
.tooltip--intent-info .tooltip__bubble, .tooltip--intent-info .tooltip__arrow {
|
|
92
|
+
background-color: var(--s-surface-info-default);
|
|
93
|
+
}
|
|
95
94
|
|
|
96
95
|
@keyframes tooltip-fade-in {
|
|
97
96
|
from {
|
|
@@ -6,18 +6,23 @@ export class SwirlTooltip {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.active = true;
|
|
8
8
|
this.delay = 200;
|
|
9
|
+
this.intent = "default";
|
|
9
10
|
this.position = "top";
|
|
10
11
|
this.positioning = "absolute";
|
|
11
|
-
|
|
12
|
-
* If set to true, tooltip will be initially visible.
|
|
13
|
-
* It will only be dismissible via a click and will not reappear.
|
|
14
|
-
* Tooltip will have a blue background color.
|
|
15
|
-
*/
|
|
16
|
-
this.isPromo = false;
|
|
12
|
+
this.trigger = ["focus", "hover"];
|
|
17
13
|
this.visible = false;
|
|
18
|
-
this.isPromoShown = false;
|
|
19
14
|
this.onKeydown = (event) => {
|
|
20
|
-
if (event.code === "Escape"
|
|
15
|
+
if (event.code === "Escape") {
|
|
16
|
+
this.hide();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
this.onFocusIn = () => {
|
|
20
|
+
if (this.trigger.includes("focus")) {
|
|
21
|
+
this.show();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.onFocusOut = () => {
|
|
25
|
+
if (this.trigger.includes("focus")) {
|
|
21
26
|
this.hide();
|
|
22
27
|
}
|
|
23
28
|
};
|
|
@@ -38,20 +43,6 @@ export class SwirlTooltip {
|
|
|
38
43
|
top: Boolean(arrowY) ? arrowY + "px" : undefined,
|
|
39
44
|
};
|
|
40
45
|
};
|
|
41
|
-
this.show = () => {
|
|
42
|
-
if (!this.active || (this.isPromo && this.isPromoShown)) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
this.visible = true;
|
|
46
|
-
requestAnimationFrame(() => {
|
|
47
|
-
const referenceElement = this.el.children[0];
|
|
48
|
-
if (!Boolean(referenceElement)) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
this.reposition();
|
|
52
|
-
this.disableAutoUpdate = autoUpdate(referenceElement, this.popperEl, this.reposition.bind(this));
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
46
|
this.showWithDelay = () => {
|
|
56
47
|
if (!this.active) {
|
|
57
48
|
return;
|
|
@@ -64,14 +55,6 @@ export class SwirlTooltip {
|
|
|
64
55
|
this.show();
|
|
65
56
|
}, this.delay);
|
|
66
57
|
};
|
|
67
|
-
this.hide = () => {
|
|
68
|
-
if (Boolean(this.showTimeout)) {
|
|
69
|
-
clearTimeout(this.showTimeout);
|
|
70
|
-
this.showTimeout = undefined;
|
|
71
|
-
}
|
|
72
|
-
this.visible = false;
|
|
73
|
-
this.disableAutoUpdate?.();
|
|
74
|
-
};
|
|
75
58
|
this.updateOptions = () => {
|
|
76
59
|
const margin = getPixelsFromRemToken("--s-space-12");
|
|
77
60
|
const shiftPaddingY = getPixelsFromRemToken("--s-space-8");
|
|
@@ -98,10 +81,12 @@ export class SwirlTooltip {
|
|
|
98
81
|
this.updateOptions();
|
|
99
82
|
}
|
|
100
83
|
onMouseEnter() {
|
|
101
|
-
this.
|
|
84
|
+
if (this.trigger.includes("hover")) {
|
|
85
|
+
this.showWithDelay();
|
|
86
|
+
}
|
|
102
87
|
}
|
|
103
88
|
onMouseLeave() {
|
|
104
|
-
if (
|
|
89
|
+
if (this.trigger.includes("hover")) {
|
|
105
90
|
this.hide();
|
|
106
91
|
}
|
|
107
92
|
}
|
|
@@ -122,18 +107,35 @@ export class SwirlTooltip {
|
|
|
122
107
|
}
|
|
123
108
|
componentDidLoad() {
|
|
124
109
|
this.updateOptions();
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
110
|
+
}
|
|
111
|
+
async show() {
|
|
112
|
+
if (!this.active) {
|
|
113
|
+
return;
|
|
128
114
|
}
|
|
115
|
+
this.visible = true;
|
|
116
|
+
requestAnimationFrame(() => {
|
|
117
|
+
const referenceElement = this.el.children[0];
|
|
118
|
+
if (!Boolean(referenceElement)) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.reposition();
|
|
122
|
+
this.disableAutoUpdate = autoUpdate(referenceElement, this.popperEl, this.reposition.bind(this));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
async hide() {
|
|
126
|
+
if (Boolean(this.showTimeout)) {
|
|
127
|
+
clearTimeout(this.showTimeout);
|
|
128
|
+
this.showTimeout = undefined;
|
|
129
|
+
}
|
|
130
|
+
this.visible = false;
|
|
131
|
+
this.disableAutoUpdate?.();
|
|
129
132
|
}
|
|
130
133
|
render() {
|
|
131
|
-
const className = classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, {
|
|
134
|
+
const className = classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, `tooltip--intent-${this.intent}`, {
|
|
132
135
|
"tooltip--active": this.active,
|
|
133
136
|
"tooltip--visible": this.visible,
|
|
134
|
-
"tooltip--promo": this.isPromo,
|
|
135
137
|
});
|
|
136
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'e418f075955973796c17ba8994cfb63284b99d13', onKeydown: this.onKeydown }, h("span", { key: '410ac8bc16773617287b73b4676682b4e887eeb3', class: className }, h("span", { key: 'e111062966a91142006124131819095cd3e41e69', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.onFocusOut, onClick: this.hide, onFocusin: this.onFocusIn }, h("slot", { key: 'fc43ad1b5a655a0512157a6cc6c9877c592caa1c' })), h("span", { key: '360545df93f2ea5b655166769d1a3d95c8dca299', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
|
|
137
139
|
top: Boolean(this.actualPosition)
|
|
138
140
|
? `${this.actualPosition?.y}px`
|
|
139
141
|
: "",
|
|
@@ -141,7 +143,7 @@ export class SwirlTooltip {
|
|
|
141
143
|
? `${this.actualPosition?.x}px`
|
|
142
144
|
: "",
|
|
143
145
|
position: this.positioning,
|
|
144
|
-
} }, this.visible && (h("span", { key: '
|
|
146
|
+
} }, this.visible && (h("span", { key: 'b4af0145c86950a1a863f73d63f77000bd98f95a', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: '84a35eb842594411f9deac1c47b04034bdd64362', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: 'c6796dee53c0fd6d1fbc2a39d6495f91360671fc', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
145
147
|
...this.arrowStyles,
|
|
146
148
|
visibility: this.visible ? "visible" : "hidden",
|
|
147
149
|
} })))));
|
|
@@ -219,6 +221,32 @@ export class SwirlTooltip {
|
|
|
219
221
|
"reflect": false,
|
|
220
222
|
"defaultValue": "200"
|
|
221
223
|
},
|
|
224
|
+
"intent": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"attribute": "intent",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "SwirlTooltipIntent",
|
|
230
|
+
"resolved": "\"default\" | \"info\"",
|
|
231
|
+
"references": {
|
|
232
|
+
"SwirlTooltipIntent": {
|
|
233
|
+
"location": "local",
|
|
234
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-tooltip/swirl-tooltip.tsx",
|
|
235
|
+
"id": "src/components/swirl-tooltip/swirl-tooltip.tsx::SwirlTooltipIntent"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": ""
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
247
|
+
"reflect": false,
|
|
248
|
+
"defaultValue": "\"default\""
|
|
249
|
+
},
|
|
222
250
|
"position": {
|
|
223
251
|
"type": "string",
|
|
224
252
|
"attribute": "position",
|
|
@@ -271,25 +299,30 @@ export class SwirlTooltip {
|
|
|
271
299
|
"reflect": false,
|
|
272
300
|
"defaultValue": "\"absolute\""
|
|
273
301
|
},
|
|
274
|
-
"
|
|
275
|
-
"type": "
|
|
276
|
-
"attribute": "
|
|
302
|
+
"trigger": {
|
|
303
|
+
"type": "unknown",
|
|
304
|
+
"attribute": "trigger",
|
|
277
305
|
"mutable": false,
|
|
278
306
|
"complexType": {
|
|
279
|
-
"original": "
|
|
280
|
-
"resolved": "
|
|
281
|
-
"references": {
|
|
307
|
+
"original": "SwirlTooltipTrigger[]",
|
|
308
|
+
"resolved": "SwirlTooltipTrigger[]",
|
|
309
|
+
"references": {
|
|
310
|
+
"SwirlTooltipTrigger": {
|
|
311
|
+
"location": "local",
|
|
312
|
+
"path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-tooltip/swirl-tooltip.tsx",
|
|
313
|
+
"id": "src/components/swirl-tooltip/swirl-tooltip.tsx::SwirlTooltipTrigger"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
282
316
|
},
|
|
283
317
|
"required": false,
|
|
284
318
|
"optional": false,
|
|
285
319
|
"docs": {
|
|
286
320
|
"tags": [],
|
|
287
|
-
"text": "
|
|
321
|
+
"text": ""
|
|
288
322
|
},
|
|
289
323
|
"getter": false,
|
|
290
324
|
"setter": false,
|
|
291
|
-
"
|
|
292
|
-
"defaultValue": "false"
|
|
325
|
+
"defaultValue": "[\"focus\", \"hover\"]"
|
|
293
326
|
}
|
|
294
327
|
};
|
|
295
328
|
}
|
|
@@ -297,8 +330,49 @@ export class SwirlTooltip {
|
|
|
297
330
|
return {
|
|
298
331
|
"actualPosition": {},
|
|
299
332
|
"arrowStyles": {},
|
|
300
|
-
"visible": {}
|
|
301
|
-
|
|
333
|
+
"visible": {}
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
static get methods() {
|
|
337
|
+
return {
|
|
338
|
+
"show": {
|
|
339
|
+
"complexType": {
|
|
340
|
+
"signature": "() => Promise<void>",
|
|
341
|
+
"parameters": [],
|
|
342
|
+
"references": {
|
|
343
|
+
"Promise": {
|
|
344
|
+
"location": "global",
|
|
345
|
+
"id": "global::Promise"
|
|
346
|
+
},
|
|
347
|
+
"HTMLElement": {
|
|
348
|
+
"location": "global",
|
|
349
|
+
"id": "global::HTMLElement"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"return": "Promise<void>"
|
|
353
|
+
},
|
|
354
|
+
"docs": {
|
|
355
|
+
"text": "",
|
|
356
|
+
"tags": []
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"hide": {
|
|
360
|
+
"complexType": {
|
|
361
|
+
"signature": "() => Promise<void>",
|
|
362
|
+
"parameters": [],
|
|
363
|
+
"references": {
|
|
364
|
+
"Promise": {
|
|
365
|
+
"location": "global",
|
|
366
|
+
"id": "global::Promise"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"return": "Promise<void>"
|
|
370
|
+
},
|
|
371
|
+
"docs": {
|
|
372
|
+
"text": "",
|
|
373
|
+
"tags": []
|
|
374
|
+
}
|
|
375
|
+
}
|
|
302
376
|
};
|
|
303
377
|
}
|
|
304
378
|
static get elementRef() { return "el"; }
|