@getflip/swirl-components 0.300.2 → 0.300.4

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": "2025-03-06T16:19:16",
2
+ "timestamp": "2025-03-10T08:09:02",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -60,6 +60,9 @@ const SwirlBox = class {
60
60
  });
61
61
  }
62
62
  updateScrollState() {
63
+ if (!this.el.isConnected) {
64
+ return;
65
+ }
63
66
  const newScrollState = {
64
67
  scrollable: this.el.scrollHeight > this.el.clientHeight,
65
68
  scrolledToTop: this.el.scrollTop === 0,
@@ -120,7 +123,7 @@ const SwirlBox = class {
120
123
  "box--scrolled-to-top": this.scrollState.scrolledToTop,
121
124
  "box--scrolled-to-bottom": this.scrollState.scrolledToBottom,
122
125
  });
123
- return (index.h(index.Host, { key: 'c8296ade3ea2dcaa4e14897557c343b433de562c', class: className, onScroll: this.onScroll, style: styles }, index.h("slot", { key: 'a0029e22b4fc9b60cb679af27f7ae66d366c0ef4' })));
126
+ return (index.h(index.Host, { key: '3fe66bb155b98d59e332ccc874be031a02f75ca4', class: className, onScroll: this.onScroll, style: styles }, index.h("slot", { key: '48f27e0dd192e68a9605d97e3a685a2c89ec5cb0' })));
124
127
  }
125
128
  get el() { return index.getElement(this); }
126
129
  };
@@ -6,7 +6,7 @@ const index = require('./index-1a9a1551.js');
6
6
  const utils = require('./utils-1a1dd8d3.js');
7
7
  const index$1 = require('./index-9f94303c.js');
8
8
 
9
- const swirlCarouselCss = ":host{--swirl-carousel-spacing:var(--s-space-16);position:relative;display:block;overflow:hidden;width:100%}:host(:hover) .carousel__previous-slide-button,:host(:hover) .carousel__next-slide-button{pointer-events:auto;opacity:1}:host *{box-sizing:border-box}.carousel{position:relative;overflow:hidden;width:100%}.carousel:before,.carousel:after{content:'';width:var(--s-space-32);height:100%;position:absolute;top:0;z-index:1;pointer-events:none;transition:opacity 0.2s;opacity:0}.carousel:before{left:0;background:linear-gradient(90deg, var(--s-background-default) 0%, transparent 100%)}.carousel:after{right:0;background:linear-gradient(270deg, var(--s-background-default) 0%, transparent 100%)}.carousel--fade:before,.carousel--fade:after{opacity:1}.carousel--is-at-start:before,.carousel--is-at-end:after{opacity:0}.carousel__slides{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;width:100%;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth}.carousel__slides::-webkit-scrollbar{display:none}.carousel__slides ::slotted(*:not(:first-of-type)){margin-left:var(--swirl-carousel-spacing)}.carousel__slides ::slotted(*){flex-grow:0;flex-shrink:0;scroll-snap-align:start}.carousel__previous-slide-button,.carousel__next-slide-button{position:absolute;z-index:2;top:calc(50% - var(--s-space-12));visibility:hidden;transition:opacity 0.2s;transform:translateY(-50%) scale(0.72);pointer-events:none;opacity:0}@media (min-width: 768px){.carousel__previous-slide-button,.carousel__next-slide-button{visibility:visible}}.carousel__previous-slide-button{left:var(--s-space-4)}.carousel__next-slide-button{right:var(--s-space-4)}";
9
+ const swirlCarouselCss = ":host{--swirl-carousel-spacing:var(--s-space-16);position:relative;display:block;overflow:hidden;width:100%}:host(:hover) .carousel__previous-slide-button,:host(:hover) .carousel__next-slide-button{pointer-events:auto}:host *{box-sizing:border-box}.carousel{position:relative;overflow:hidden;width:100%}.carousel:before,.carousel:after{position:absolute;z-index:1;top:0;width:var(--s-space-32);height:100%;content:\"\";transition:opacity 0.2s;pointer-events:none;opacity:0}.carousel:before{left:0;background:linear-gradient(\n 90deg,\n var(--s-background-default) 0%,\n transparent 100%\n )}.carousel:after{right:0;background:linear-gradient(\n 270deg,\n var(--s-background-default) 0%,\n transparent 100%\n )}.carousel--fade:before,.carousel--fade:after{opacity:1}.carousel--is-at-start:before,.carousel--is-at-end:after{opacity:0}.carousel__slides{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;width:100%;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth}.carousel__slides::-webkit-scrollbar{display:none}.carousel__slides ::slotted(*:not(:first-of-type)){margin-left:var(--swirl-carousel-spacing)}.carousel__slides ::slotted(*){flex-grow:0;flex-shrink:0;scroll-snap-align:start}.carousel__previous-slide-button,.carousel__next-slide-button{position:absolute;z-index:2;top:50%;transform:translateY(-50%) scale(0.72);pointer-events:none}.carousel__previous-slide-button{left:var(--s-space-4)}.carousel__next-slide-button{right:var(--s-space-4)}";
10
10
  const SwirlCarouselStyle0 = swirlCarouselCss;
11
11
 
12
12
  const SwirlCarousel = class {