@getflip/swirl-components 0.406.0 → 0.407.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 +30 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-tooltip.cjs.entry.js +5 -3
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.css +3 -2
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +24 -2
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.stories.js +1 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-tooltip2.js +6 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-tooltip.entry.js +5 -3
- package/dist/swirl-components/p-d1162034.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-tooltip/swirl-tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/vscode-data.json +4 -0
- package/dist/swirl-components/p-31157c43.entry.js +0 -1
|
@@ -7,6 +7,7 @@ export class SwirlTooltip {
|
|
|
7
7
|
this.active = true;
|
|
8
8
|
this.delay = 200;
|
|
9
9
|
this.intent = "default";
|
|
10
|
+
this.maxWidth = "17.5rem";
|
|
10
11
|
this.position = "top";
|
|
11
12
|
this.positioning = "absolute";
|
|
12
13
|
this.trigger = ["focus", "hover"];
|
|
@@ -135,7 +136,7 @@ export class SwirlTooltip {
|
|
|
135
136
|
"tooltip--active": this.active,
|
|
136
137
|
"tooltip--visible": this.visible,
|
|
137
138
|
});
|
|
138
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: '96bfe5772085b0355180e0a5529ee02826958de1', onKeydown: this.onKeydown }, h("span", { key: 'b3a26fc2aabd2446a460e3e57e869d3c53e94df1', class: className }, h("span", { key: '16e9df7f2d679688ef70811871a96a7f2f0de121', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.onFocusOut, onClick: this.hide, onFocusin: this.onFocusIn }, h("slot", { key: 'e8f975020ccf67878b639fe9f81d8db972b105ed' })), h("span", { key: '308db04b1ee01609715fd9402525ff800c400ce1', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
|
|
139
140
|
top: Boolean(this.actualPosition)
|
|
140
141
|
? `${this.actualPosition?.y}px`
|
|
141
142
|
: "",
|
|
@@ -143,7 +144,8 @@ export class SwirlTooltip {
|
|
|
143
144
|
? `${this.actualPosition?.x}px`
|
|
144
145
|
: "",
|
|
145
146
|
position: this.positioning,
|
|
146
|
-
|
|
147
|
+
maxWidth: this.maxWidth,
|
|
148
|
+
} }, this.visible && (h("span", { key: 'aac57d3834798bb48566e23911c810237342d18c', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: 'ac370eaeca8aa321ee1785f557bf0bb0db2103bb', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: 'c60fb13d7681cd5de23d9d8ccfc17068f9201468', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
|
|
147
149
|
...this.arrowStyles,
|
|
148
150
|
visibility: this.visible ? "visible" : "hidden",
|
|
149
151
|
} })))));
|
|
@@ -247,6 +249,26 @@ export class SwirlTooltip {
|
|
|
247
249
|
"reflect": false,
|
|
248
250
|
"defaultValue": "\"default\""
|
|
249
251
|
},
|
|
252
|
+
"maxWidth": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"attribute": "max-width",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "string",
|
|
258
|
+
"resolved": "string",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": true,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": ""
|
|
266
|
+
},
|
|
267
|
+
"getter": false,
|
|
268
|
+
"setter": false,
|
|
269
|
+
"reflect": false,
|
|
270
|
+
"defaultValue": "\"17.5rem\""
|
|
271
|
+
},
|
|
250
272
|
"position": {
|
|
251
273
|
"type": "string",
|
|
252
274
|
"attribute": "position",
|