pcln-carousel
Advanced tools
Comparing version 1.3.1 to 1.3.2-carousel-fixes-080422
@@ -184,3 +184,4 @@ "use strict"; | ||
}, /*#__PURE__*/_react["default"].createElement(_pclnDesignSystem.Box, { | ||
p: slideSpacing | ||
p: slideSpacing, | ||
height: "100%" | ||
}, !layout && stretchSlideHeight ? /*#__PURE__*/_react["default"].createElement(_StretchSlide.StretchSlide, { | ||
@@ -187,0 +188,0 @@ slideSpacing: slideSpacing, |
@@ -14,3 +14,6 @@ "use strict"; | ||
var layoutValues = layout === null || layout === void 0 ? void 0 : layout.split('-').map(function (i) { | ||
return parseInt(i); | ||
var value = parseInt(i); // 33-33-33 is the only supported layout where values don't sum to 100. We need to | ||
// account for this in order for slides not to be cut off. | ||
return value === 33 ? value + 1 / 3 : value; | ||
}); | ||
@@ -17,0 +20,0 @@ var numLayoutValues = layoutValues.length; |
@@ -158,3 +158,4 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
}, /*#__PURE__*/React.createElement(Box, { | ||
p: slideSpacing | ||
p: slideSpacing, | ||
height: "100%" | ||
}, !layout && stretchSlideHeight ? /*#__PURE__*/React.createElement(StretchSlide, { | ||
@@ -161,0 +162,0 @@ slideSpacing: slideSpacing, |
@@ -7,3 +7,6 @@ export var layoutToFlexWidths = function layoutToFlexWidths(layout, totalSlides) { | ||
var layoutValues = layout === null || layout === void 0 ? void 0 : layout.split('-').map(function (i) { | ||
return parseInt(i); | ||
var value = parseInt(i); // 33-33-33 is the only supported layout where values don't sum to 100. We need to | ||
// account for this in order for slides not to be cut off. | ||
return value === 33 ? value + 1 / 3 : value; | ||
}); | ||
@@ -10,0 +13,0 @@ var numLayoutValues = layoutValues.length; |
{ | ||
"name": "pcln-carousel", | ||
"version": "1.3.1", | ||
"version": "1.3.2-carousel-fixes-080422", | ||
"description": "Priceline Design System Carousel Component", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
64191
1018
1