@getflip/swirl-components 0.30.1 → 0.30.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.
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2023-03-13T09:59:59",
2
+ "timestamp": "2023-03-13T11:48:54",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.0.0",
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-83363034.js');
6
6
  const index$1 = require('./index-2ddd0598.js');
7
7
 
8
- const swirlCarouselSlideCss = ":host{display:block;min-width:0;padding-left:var(--s-space-16)}:host(.carousel-slide--has-min-height) ::slotted(*){height:100%}:host *{box-sizing:border-box}:host ::slotted(*){width:100%;min-height:100%}";
8
+ const swirlCarouselSlideCss = ":host{display:block;min-width:0}:host(.carousel-slide--has-min-height) ::slotted(*){height:100%}:host *{box-sizing:border-box}:host ::slotted(*){width:100%;min-height:100%}";
9
9
 
10
10
  const SwirlCarouselSlide = class {
11
11
  constructor(hostRef) {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83363034.js');
6
6
 
7
- const swirlCarouselCss = ":host{position:relative;display:block;overflow:hidden;width:100%}:host(:hover) .carousel__previous-slide-button{pointer-events:auto;opacity:1}: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{position:absolute;z-index:1;top:0;left:0;width:var(--s-space-20);height:100%;background:linear-gradient(\n to right,\n rgba(var(--swirl-carousel-gradient), 1),\n rgba(var(--swirl-carousel-gradient), 0)\n );content:\"\"}.carousel:after{position:absolute;z-index:1;top:0;right:0;width:var(--s-space-20);height:100%;background:linear-gradient(\n to left,\n rgba(var(--swirl-carousel-gradient), 1),\n rgba(var(--swirl-carousel-gradient), 0)\n );content:\"\"}.carousel__slides{position:relative;display:flex;overflow-x:auto;width:100%;padding:var(--s-space-24) var(--s-space-16);scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth}.carousel__slides::-webkit-scrollbar{display:none}.carousel__slides ::slotted(*){flex-grow:0;flex-shrink:0;scroll-snap-align:start}.carousel__previous-slide-button{position:absolute;z-index:1;top:50%;left:var(--s-space-20);transition:opacity 0.2s;transform:translateY(-50%);pointer-events:none;opacity:0}.carousel__next-slide-button{position:absolute;z-index:1;top:50%;right:var(--s-space-20);transition:opacity 0.2s;transform:translateY(-50%);pointer-events:none;opacity:0}";
7
+ const swirlCarouselCss = ":host{position:relative;display:block;overflow:hidden;width:100%;margin-top:calc(-1 * var(--s-space-24));margin-bottom:calc(-1 * var(--s-space-24))}:host(:hover) .carousel__previous-slide-button{pointer-events:auto;opacity:1}:host(:hover) .carousel__next-slide-button{pointer-events:auto;opacity:1}:host *{box-sizing:border-box}.carousel{position:relative;overflow:hidden;width:100%}.carousel__slides{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;width:100%;padding:var(--s-space-24) 0 var(--s-space-24) var(--s-space-16);scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth}.carousel__slides::-webkit-scrollbar{display:none}.carousel__slides ::slotted(*){flex-grow:0;flex-shrink:0;scroll-snap-align:start;padding-left:var(--s-space-16)}.carousel__slides ::slotted(*:last-child){padding-right:var(--s-space-16)}.carousel__previous-slide-button{position:absolute;z-index:1;top:calc(50% - var(--s-space-12));left:var(--s-space-16);transition:opacity 0.2s;transform:translateY(-50%) scale(0.72);pointer-events:none;opacity:0}.carousel__next-slide-button{position:absolute;z-index:1;top:calc(50% - var(--s-space-12));right:var(--s-space-16);transition:opacity 0.2s;transform:translateY(-50%) scale(0.72);pointer-events:none;opacity:0}";
8
8
 
9
9
  const SwirlCarousel = class {
10
10
  constructor(hostRef) {
@@ -65,7 +65,7 @@ const SwirlCarousel = class {
65
65
  return inInView;
66
66
  }
67
67
  render() {
68
- return (index.h(index.Host, { "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, index.h("div", { class: "carousel" }, this.isScrollable && (index.h("swirl-button", { class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-left></swirl-icon-arrow-left>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "flat" })), this.isScrollable && (index.h("swirl-button", { class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-right></swirl-icon-arrow-right>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "flat" })), index.h("div", { "aria-live": "polite", class: "carousel__slides", ref: (el) => (this.slidesContainer = el) }, index.h("slot", null)))));
68
+ return (index.h(index.Host, { "aria-label": this.label, "aria-roledescription": "carousel", role: "group" }, index.h("div", { class: "carousel" }, this.isScrollable && (index.h("swirl-button", { class: "carousel__previous-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.previousSlideButtonLabel, onClick: this.onPreviousSlideButtonClick, pill: true, variant: "floating" })), this.isScrollable && (index.h("swirl-button", { class: "carousel__next-slide-button", hideLabel: true, icon: "<swirl-icon-arrow-forward></swirl-icon-arrow-forward>", label: this.nextSlideButtonLabel, onClick: this.onNextSlideButtonClick, pill: true, variant: "floating" })), index.h("div", { "aria-live": "polite", class: "carousel__slides", ref: (el) => (this.slidesContainer = el) }, index.h("slot", null)))));
69
69
  }
70
70
  get el() { return index.getElement(this); }
71
71
  };