nuka-carousel
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -31,3 +31,2 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
transform: "".concat(animation === 'zoom' ? "scale(".concat(isCurrentSlide ? 1 : zoomScale || 0.85, ")") : 'initial'), | ||
touchAction: 'none', | ||
opacity: animation === 'fade' ? visibleSlideOpacity : 1 | ||
@@ -139,5 +138,6 @@ }; | ||
var currentSlideClass = isCurrentSlide && isVisible ? ' slide-current' : ''; | ||
return /*#__PURE__*/React.createElement("div", { | ||
ref: slideRef, | ||
className: "slide".concat(typeOfSlide ? " ".concat(typeOfSlide) : '').concat(isVisible ? ' slide-visible' : ''), | ||
className: "slide".concat(currentSlideClass).concat(typeOfSlide ? " ".concat(typeOfSlide) : '').concat(isVisible ? ' slide-visible' : ''), | ||
style: getSlideStyles(count, isCurrentSlide, isVisible, wrapAround, cellSpacing, animation, speed, zoomScale, adaptiveHeight) | ||
@@ -144,0 +144,0 @@ }, children); |
@@ -45,3 +45,2 @@ "use strict"; | ||
transform: "".concat(animation === 'zoom' ? "scale(".concat(isCurrentSlide ? 1 : zoomScale || 0.85, ")") : 'initial'), | ||
touchAction: 'none', | ||
opacity: animation === 'fade' ? visibleSlideOpacity : 1 | ||
@@ -153,5 +152,6 @@ }; | ||
var currentSlideClass = isCurrentSlide && isVisible ? ' slide-current' : ''; | ||
return /*#__PURE__*/_react["default"].createElement("div", { | ||
ref: slideRef, | ||
className: "slide".concat(typeOfSlide ? " ".concat(typeOfSlide) : '').concat(isVisible ? ' slide-visible' : ''), | ||
className: "slide".concat(currentSlideClass).concat(typeOfSlide ? " ".concat(typeOfSlide) : '').concat(isVisible ? ' slide-visible' : ''), | ||
style: getSlideStyles(count, isCurrentSlide, isVisible, wrapAround, cellSpacing, animation, speed, zoomScale, adaptiveHeight) | ||
@@ -158,0 +158,0 @@ }, children); |
{ | ||
"name": "nuka-carousel", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "Pure React Carousel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142170