pcln-carousel
Advanced tools
Comparing version 1.1.3 to 1.2.0-nm-beta.3
@@ -105,3 +105,7 @@ "use strict"; | ||
_ref2$stretchSlideHei = _ref2.stretchSlideHeight, | ||
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei; | ||
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei, | ||
_ref2$onSlideClick = _ref2.onSlideClick, | ||
onSlideClick = _ref2$onSlideClick === void 0 ? function () {} : _ref2$onSlideClick, | ||
_ref2$onSlideKeyDown = _ref2.onSlideKeyDown, | ||
onSlideKeyDown = _ref2$onSlideKeyDown === void 0 ? function () {} : _ref2$onSlideKeyDown; | ||
@@ -166,3 +170,9 @@ var _useState3 = (0, _react.useState)(0), | ||
}, | ||
"data-testid": "slide-".concat(index) | ||
"data-testid": "slide-".concat(index), | ||
onClick: function onClick(e) { | ||
onSlideClick(item.props, e); | ||
}, | ||
onKeyDown: function onKeyDown(e) { | ||
onSlideKeyDown(item.props, e); | ||
} | ||
}, /*#__PURE__*/_react["default"].createElement(_pclnDesignSystem.Box, { | ||
@@ -264,3 +274,9 @@ p: slideSpacing | ||
/** Set height of slides based on tallest slide */ | ||
stretchSlideHeight: _propTypes["default"].bool | ||
stretchSlideHeight: _propTypes["default"].bool, | ||
/** Custom onClick event handler for each Slide child */ | ||
onSlideClick: _propTypes["default"].func, | ||
/** Custom onKeyDown event handler for each Slide child */ | ||
onSlideKeyDown: _propTypes["default"].func | ||
}; |
@@ -80,3 +80,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
_ref2$stretchSlideHei = _ref2.stretchSlideHeight, | ||
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei; | ||
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei, | ||
_ref2$onSlideClick = _ref2.onSlideClick, | ||
onSlideClick = _ref2$onSlideClick === void 0 ? function () {} : _ref2$onSlideClick, | ||
_ref2$onSlideKeyDown = _ref2.onSlideKeyDown, | ||
onSlideKeyDown = _ref2$onSlideKeyDown === void 0 ? function () {} : _ref2$onSlideKeyDown; | ||
@@ -141,3 +145,9 @@ var _useState3 = useState(0), | ||
}, | ||
"data-testid": "slide-".concat(index) | ||
"data-testid": "slide-".concat(index), | ||
onClick: function onClick(e) { | ||
onSlideClick(item.props, e); | ||
}, | ||
onKeyDown: function onKeyDown(e) { | ||
onSlideKeyDown(item.props, e); | ||
} | ||
}, /*#__PURE__*/React.createElement(Box, { | ||
@@ -237,3 +247,9 @@ p: slideSpacing | ||
/** Set height of slides based on tallest slide */ | ||
stretchSlideHeight: PropTypes.bool | ||
stretchSlideHeight: PropTypes.bool, | ||
/** Custom onClick event handler for each Slide child */ | ||
onSlideClick: PropTypes.func, | ||
/** Custom onKeyDown event handler for each Slide child */ | ||
onSlideKeyDown: PropTypes.func | ||
}; |
{ | ||
"name": "pcln-carousel", | ||
"version": "1.1.3", | ||
"version": "1.2.0-nm-beta.3", | ||
"description": "Priceline Design System Carousel Component", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
63270
996
1