@julseb-lib/react 1.0.41 → 1.0.43
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/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -68310,6 +68310,8 @@ var Slideshow = ({
|
|
|
68310
68310
|
setCurrentSlide((prev) => (prev - 1 + totalSlides) % totalSlides);
|
|
68311
68311
|
setTimeout(() => setIsTransitioning(false), options?.speed ?? 300);
|
|
68312
68312
|
};
|
|
68313
|
+
useKeyPress("ArrowLeft", handlePrev);
|
|
68314
|
+
useKeyPress("ArrowRight", handleNext);
|
|
68313
68315
|
const goToSlide = (n) => {
|
|
68314
68316
|
if (isTransitioning || n === currentSlide) return;
|
|
68315
68317
|
setIsTransitioning(true);
|