@getflip/swirl-components 0.445.0 → 0.445.1
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 +1 -1
- package/dist/cjs/swirl-tooltip.cjs.entry.js +3 -4
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.css +1 -4
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +2 -3
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-tooltip2.js +3 -4
- package/dist/esm/swirl-tooltip.entry.js +3 -4
- package/dist/swirl-components/{p-460a10a6.entry.js → p-d84ee3aa.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
package/components.json
CHANGED
|
@@ -5,7 +5,7 @@ var floatingUi_dom = require('./floating-ui.dom-C8bqk2dV.js');
|
|
|
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--
|
|
8
|
+
const swirlTooltipCss = ":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--visible .tooltip__popper{display:block;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:fixed;display:none;opacity:0;border:none;padding:0;margin:0;background:transparent;overflow:visible}.tooltip__popper::backdrop{display:none}.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);text-align:start;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) {
|
|
@@ -143,10 +143,9 @@ const SwirlTooltip = class {
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
const className = index$1.classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, `tooltip--intent-${this.intent}`, {
|
|
146
|
-
"tooltip--active": this.active,
|
|
147
146
|
"tooltip--visible": this.visible,
|
|
148
147
|
});
|
|
149
|
-
return (index.h(index.Host, { key: '
|
|
148
|
+
return (index.h(index.Host, { key: '010020ddc1b958a08b9806d3e57b17e97109154d', onKeydown: this.onKeydown }, index.h("span", { key: 'a265bc8d5c392799559bb74996237bc607eeda67', class: className }, index.h("span", { key: 'cb6cae45449807674972224eb4102422fc678159', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.onFocusOut, onClick: this.hide, onFocusin: this.onFocusIn }, index.h("slot", { key: '8cb3b4429837c0a1571348384b768636b2b34e72' })), index.h("span", { key: 'a7b291999af9f054a5a13c21720dfe718d4c4d0d', class: "tooltip__popper", popover: "manual", ref: (el) => (this.popperEl = el), style: {
|
|
150
149
|
top: Boolean(this.actualPosition)
|
|
151
150
|
? `${this.actualPosition?.y}px`
|
|
152
151
|
: "",
|
|
@@ -154,7 +153,7 @@ const SwirlTooltip = class {
|
|
|
154
153
|
? `${this.actualPosition?.x}px`
|
|
155
154
|
: "",
|
|
156
155
|
maxWidth: this.maxWidth,
|
|
157
|
-
} }, this.visible && (index.h("span", { key: '
|
|
156
|
+
} }, this.visible && (index.h("span", { key: 'd65b55882eb78ac3d1ebf2d4fecd6bec1b9ae38d', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, index.h("span", { key: '01e3580f86e965d4e3b9a69590e232d6575f07ba', class: "tooltip__content", innerHTML: this.content }))), index.h("span", { key: '51d3f663e7983dd8eacd44dfed44bf96fd4a8d90', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
158
157
|
...this.arrowStyles,
|
|
159
158
|
visibility: this.visible ? "visible" : "hidden",
|
|
160
159
|
} })))));
|
|
@@ -11,11 +11,8 @@
|
|
|
11
11
|
display: contents;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.tooltip--active .tooltip__popper {
|
|
15
|
-
display: block;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
14
|
.tooltip--visible .tooltip__popper {
|
|
15
|
+
display: block;
|
|
19
16
|
animation: tooltip-fade-in 0.15s;
|
|
20
17
|
animation-delay: 0.1s;
|
|
21
18
|
animation-fill-mode: forwards;
|
|
@@ -137,10 +137,9 @@ export class SwirlTooltip {
|
|
|
137
137
|
}
|
|
138
138
|
render() {
|
|
139
139
|
const className = classnames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, `tooltip--intent-${this.intent}`, {
|
|
140
|
-
"tooltip--active": this.active,
|
|
141
140
|
"tooltip--visible": this.visible,
|
|
142
141
|
});
|
|
143
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: '010020ddc1b958a08b9806d3e57b17e97109154d', onKeydown: this.onKeydown }, h("span", { key: 'a265bc8d5c392799559bb74996237bc607eeda67', class: className }, h("span", { key: 'cb6cae45449807674972224eb4102422fc678159', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.onFocusOut, onClick: this.hide, onFocusin: this.onFocusIn }, h("slot", { key: '8cb3b4429837c0a1571348384b768636b2b34e72' })), h("span", { key: 'a7b291999af9f054a5a13c21720dfe718d4c4d0d', class: "tooltip__popper", popover: "manual", ref: (el) => (this.popperEl = el), style: {
|
|
144
143
|
top: Boolean(this.actualPosition)
|
|
145
144
|
? `${this.actualPosition?.y}px`
|
|
146
145
|
: "",
|
|
@@ -148,7 +147,7 @@ export class SwirlTooltip {
|
|
|
148
147
|
? `${this.actualPosition?.x}px`
|
|
149
148
|
: "",
|
|
150
149
|
maxWidth: this.maxWidth,
|
|
151
|
-
} }, this.visible && (h("span", { key: '
|
|
150
|
+
} }, this.visible && (h("span", { key: 'd65b55882eb78ac3d1ebf2d4fecd6bec1b9ae38d', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: '01e3580f86e965d4e3b9a69590e232d6575f07ba', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: '51d3f663e7983dd8eacd44dfed44bf96fd4a8d90', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
152
151
|
...this.arrowStyles,
|
|
153
152
|
visibility: this.visible ? "visible" : "hidden",
|
|
154
153
|
} })))));
|