@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.
@@ -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: '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: {
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
- } }, 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: {
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",
@@ -29,6 +29,6 @@ const Template = (args) => {
29
29
  };
30
30
  export const SwirlTooltip = Template.bind({});
31
31
  SwirlTooltip.args = {
32
- content: `Tooltip`,
32
+ content: `Lorem ipsum dolor sit amet, contetur sadipscing.`,
33
33
  position: "top",
34
34
  };