@getflip/swirl-components 0.240.1 → 0.241.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-09-20T10:44:06",
2
+ "timestamp": "2024-09-23T11:25:15",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -127,10 +127,10 @@ const SwirlImageGridItem = class {
127
127
  backgroundImage: showBlurredBackground
128
128
  ? `url(${this.src})`
129
129
  : undefined,
130
- }, ref: (el) => (this.backgroundImg = el) }), this.loading !== "intersecting" || this.inViewport ? (index.h("img", { alt: this.alt, class: "image-grid-item__image", loading: this.loading !== "intersecting" ? this.loading : undefined, onError: this.onError, onLoad: this.onLoad, ref: (el) => (this.img = el), src: this.src })) : (index.h("div", { class: "image-grid-item__loading-placeholder" })), this.showGifControls && (index.h("swirl-stack", { key: '0a1a18a75771a1723bf95ea1114a7c2e600dcca8', class: "image-grid-item__gif-controls", orientation: "horizontal", spacing: "4" }, index.h("button", { key: 'bc0a37b547a700ae3800884c0329a04811e5902d', class: "image-grid-item__gif-controls__icon image-grid-item__gif-controls__icon--button", onClick: this.handleControlClick, type: "button", "aria-label": this.gifPaused ? this.gifPlayLabel : this.gifPauseLabel }, this.gifPaused ? (index.h("swirl-icon-play-arrow", null)) : (index.h("swirl-icon-pause", null))), index.h("div", { key: '38e17721eb87f49d6c84e649bcae9cbf9a9701d8', class: "image-grid-item__gif-controls__icon image-grid-item__gif-controls__icon--label" }, index.h("swirl-icon-gif", { key: 'b7d086f5defcbe4852fd9797711c849dc30178dc' })))), this.loaded &&
130
+ }, ref: (el) => (this.backgroundImg = el) }), this.loading !== "intersecting" || this.inViewport ? (index.h("img", { alt: this.alt, class: "image-grid-item__image", loading: this.loading !== "intersecting" ? this.loading : undefined, onError: this.onError, onLoad: this.onLoad, ref: (el) => (this.img = el), src: this.src })) : (index.h("div", { class: "image-grid-item__loading-placeholder" })), this.showGifControls && (index.h("swirl-stack", { key: '0a1a18a75771a1723bf95ea1114a7c2e600dcca8', class: "image-grid-item__gif-controls", orientation: "horizontal", spacing: "4" }, index.h("button", { key: 'bc0a37b547a700ae3800884c0329a04811e5902d', class: "image-grid-item__gif-controls__icon image-grid-item__gif-controls__icon--button", onClick: this.handleControlClick, type: "button", "aria-label": this.gifPaused ? this.gifPlayLabel : this.gifPauseLabel }, this.gifPaused ? (index.h("swirl-icon-play-arrow", { size: 20 })) : (index.h("swirl-icon-pause", { size: 20 }))), index.h("div", { key: '420b1cd665764a92329904b5e49e18881a81e052', class: "image-grid-item__gif-controls__icon image-grid-item__gif-controls__icon--label" }, index.h("swirl-icon-gif", { key: 'a219d5ba815a5518355513d6368ed9c6faa408cc', size: 20 })))), this.loaded &&
131
131
  !this.error &&
132
132
  this.icon &&
133
- !Boolean(this.overlay) && (index.h("div", { key: '0ae7a70a3751a3655a97373f30b3e5e0afa9dfb6', class: "image-grid-item__icon", innerHTML: this.icon })), this.overlay && (index.h("div", { key: '46b6bbc2c069c6b0702ad0a6daa084707307e368', class: "image-grid-item__overlay" }, this.overlay)), !this.loaded && (index.h("div", { key: '7717ed85bd8fe462568737da3f6b4fb3ffc9ec1a', class: "image-grid-item__spinner" }, index.h("swirl-spinner", { key: 'b7bfa2477052e94e57fe567d73bd9e600eb0166f' }))), this.loaded && this.error && (index.h("div", { key: 'd60f0a2b7d1a4ee98a58c9ed620b91f9ef83c941', class: "image-grid-item__error" }, index.h("swirl-icon-error", { key: '21cab1b6b681da0e47fd44b5895d2d2ae18813b2', color: "critical" }))))));
133
+ !Boolean(this.overlay) && (index.h("div", { key: 'cd742662f7df9c1558ddf869fd38e1d0ad276f6e', class: "image-grid-item__icon", innerHTML: this.icon })), this.overlay && (index.h("div", { key: 'e0a34345307c32082a608eb8ff1ae66b83c119e0', class: "image-grid-item__overlay" }, this.overlay)), !this.loaded && (index.h("div", { key: 'a3abfbcdf9b2c5635b6c2b0bfbafcbb63ce07727', class: "image-grid-item__spinner" }, index.h("swirl-spinner", { key: 'd201a574a6476eaee4ce81175e1f0a680cdf2298' }))), this.loaded && this.error && (index.h("div", { key: '589a79240ead52dca92e1c6dee29458de61868b4', class: "image-grid-item__error" }, index.h("swirl-icon-error", { key: '8aa0db04696a2d6852d2a6ec46b58e6a869f2b59', color: "critical" }))))));
134
134
  }
135
135
  get el() { return index.getElement(this); }
136
136
  };