@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.cjs
CHANGED
|
@@ -69031,13 +69031,14 @@ var Slideshow = ({
|
|
|
69031
69031
|
pagination,
|
|
69032
69032
|
hidePagination,
|
|
69033
69033
|
borderRadius,
|
|
69034
|
+
defaultSlide = 0,
|
|
69034
69035
|
...rest
|
|
69035
69036
|
}) => {
|
|
69036
69037
|
const Element = element;
|
|
69037
69038
|
const childrenArray = import_react102.Children.toArray(children);
|
|
69038
69039
|
const slides = images ?? childrenArray;
|
|
69039
69040
|
const totalSlides = slides.length;
|
|
69040
|
-
const [currentSlide, setCurrentSlide] = (0, import_react102.useState)(
|
|
69041
|
+
const [currentSlide, setCurrentSlide] = (0, import_react102.useState)(defaultSlide);
|
|
69041
69042
|
const [isTransitioning, setIsTransitioning] = (0, import_react102.useState)(false);
|
|
69042
69043
|
const touchStartX = (0, import_react102.useRef)(0);
|
|
69043
69044
|
const touchEndX = (0, import_react102.useRef)(0);
|