@getflip/swirl-components 0.241.0 → 0.241.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.
@@ -176,6 +176,14 @@
176
176
  color: var(--s-icon-strong);
177
177
  }
178
178
 
179
+ .button--variant-flat.button--size-l {
180
+ padding: var(--s-space-12) var(--s-space-20);
181
+ }
182
+
183
+ .button--variant-flat.button--size-l.button--icon-only {
184
+ padding: var(--s-space-12);
185
+ }
186
+
179
187
  .button--variant-outline {
180
188
  color: var(--s-text-default);
181
189
  box-shadow: inset 0 0 0 var(--s-border-width-default) var(--s-border-strong);
@@ -303,6 +311,14 @@
303
311
  color: var(--swirl-plain-button-text-color-default);
304
312
  }
305
313
 
314
+ .button--variant-plain.button--size-l {
315
+ padding: var(--s-space-12) var(--s-space-20);
316
+ }
317
+
318
+ .button--variant-plain.button--size-l.button--icon-only {
319
+ padding: var(--s-space-12);
320
+ }
321
+
306
322
  .button--variant-on-image {
307
323
  color: var(--s-text-on-image);
308
324
  background: rgba(0, 0, 0, 0.6);
@@ -329,6 +345,14 @@
329
345
  color: var(--s-icon-on-image);
330
346
  }
331
347
 
348
+ .button--variant-on-image.button--size-l {
349
+ padding: var(--s-space-12) var(--s-space-20);
350
+ }
351
+
352
+ .button--variant-on-image.button--size-l.button--icon-only {
353
+ padding: var(--s-space-12);
354
+ }
355
+
332
356
  .button--variant-floating {
333
357
  color: var(--s-text-default);
334
358
  background-color: var(--s-surface-overlay-default);
@@ -26,6 +26,9 @@ export class SwirlTooltip {
26
26
  };
27
27
  };
28
28
  this.show = () => {
29
+ if (!this.active) {
30
+ return;
31
+ }
29
32
  this.visible = true;
30
33
  requestAnimationFrame(() => {
31
34
  const referenceElement = this.el.children[0];
@@ -37,6 +40,9 @@ export class SwirlTooltip {
37
40
  });
38
41
  };
39
42
  this.showWithDelay = () => {
43
+ if (!this.active) {
44
+ return;
45
+ }
40
46
  if (Boolean(this.showTimeout)) {
41
47
  clearTimeout(this.showTimeout);
42
48
  this.showTimeout = undefined;
@@ -82,9 +88,15 @@ export class SwirlTooltip {
82
88
  this.hide();
83
89
  }
84
90
  onWindowResize() {
91
+ if (!this.active) {
92
+ return;
93
+ }
85
94
  this.reposition();
86
95
  }
87
96
  onWindowScroll() {
97
+ if (!this.active || !this.visible) {
98
+ return;
99
+ }
88
100
  this.reposition();
89
101
  }
90
102
  componentWillLoad() {
@@ -98,7 +110,7 @@ export class SwirlTooltip {
98
110
  "tooltip--active": this.active,
99
111
  "tooltip--visible": this.visible,
100
112
  });
101
- return (h(Host, { key: '8f56d251588bf2ba5357f02030530b8529edb714', onKeydown: this.onKeydown }, h("span", { key: '61a2da29f6754906d2aa33eda9fd35332d34605c', class: className }, h("span", { key: '634ccb7169aeddc870cee955fb91116a7523430e', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.hide, onClick: this.hide, onFocusin: this.show }, h("slot", { key: '6128cdddd6ccde561c09e9a262515b7d2ef8d197' })), h("span", { key: '4f1b5ad00978ffbd9569d78a73ee7360fe73b0c1', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
113
+ return (h(Host, { key: '6b4349568aeda21be1c86dc8ba47d32fd69fcf6c', onKeydown: this.onKeydown }, h("span", { key: '23920a993ad647905f7d9aa72cf4815c762e0239', class: className }, h("span", { key: '3bc99d469fe2fb3fbe459778b3a5138e2e10d14b', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.hide, onClick: this.hide, onFocusin: this.show }, h("slot", { key: '7cb1ae022a8a668fdc43baff33ec00c23721cbf7' })), h("span", { key: 'd6afed9fe735ec487bf360673f233d57ca00a550', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
102
114
  top: Boolean(this.actualPosition)
103
115
  ? `${this.actualPosition?.y}px`
104
116
  : "",
@@ -106,7 +118,7 @@ export class SwirlTooltip {
106
118
  ? `${this.actualPosition?.x}px`
107
119
  : "",
108
120
  position: this.positioning,
109
- } }, this.visible && (h("span", { key: '4e008a825910accf5025b376cd31a4f318341a60', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: '31a7fcb6aeafc3a16d573ca93657d3179d0fc043', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: '67143598c3ce86017ef52f38fdf655aed68805e8', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
121
+ } }, this.visible && (h("span", { key: '05ab2e80cae9ef200520044028fd97aef05f36a5', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: '7c8260e768c51475675090049e8f4acdb6915861', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: '3b2642690f347c433c98e36de14b04cb99f8d9aa', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
110
122
  ...this.arrowStyles,
111
123
  visibility: this.visible ? "visible" : "hidden",
112
124
  } })))));