@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 +1 -1
- package/dist/cjs/swirl-image-grid-item.cjs.entry.js +2 -2
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-image-grid-item/swirl-image-grid-item.js +2 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-image-grid-item.js +2 -2
- package/dist/esm/swirl-image-grid-item.entry.js +2 -2
- package/dist/swirl-components/p-37b46f67.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/swirl-components/p-5c5eee8c.entry.js +0 -1
package/components.json
CHANGED
|
@@ -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",
|
|
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: '
|
|
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
|
};
|