@julseb-lib/react 1.1.3 → 1.1.4
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.js
CHANGED
|
@@ -66409,13 +66409,14 @@ var Slideshow = ({
|
|
|
66409
66409
|
pagination,
|
|
66410
66410
|
hidePagination,
|
|
66411
66411
|
borderRadius,
|
|
66412
|
+
defaultSlide = 0,
|
|
66412
66413
|
...rest
|
|
66413
66414
|
}) => {
|
|
66414
66415
|
const Element = element;
|
|
66415
66416
|
const childrenArray = Children3.toArray(children);
|
|
66416
66417
|
const slides = images ?? childrenArray;
|
|
66417
66418
|
const totalSlides = slides.length;
|
|
66418
|
-
const [currentSlide, setCurrentSlide] = useState24(
|
|
66419
|
+
const [currentSlide, setCurrentSlide] = useState24(defaultSlide);
|
|
66419
66420
|
const [isTransitioning, setIsTransitioning] = useState24(false);
|
|
66420
66421
|
const touchStartX = useRef15(0);
|
|
66421
66422
|
const touchEndX = useRef15(0);
|