@julseb-lib/react 1.1.3 → 1.1.5

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.d.cts CHANGED
@@ -2887,6 +2887,7 @@ declare const TabsContent: FC$1<ILibTabContent>;
2887
2887
  * @prop {string[]} [props.images] - Array of image URLs to display in the slideshow.
2888
2888
  * @prop {object} [props.pagination] - Configuration object for pagination indicators and behavior.
2889
2889
  * @prop {boolean} [props.hidePagination] - Whether to hide the pagination indicators.
2890
+ * @prop {number} [props.defaultSlide] - Selects the default slide shown on load of the page.
2890
2891
  * @prop {LibBorderRadius} [props.borderRadius] - Border radius variant for the slideshow container.
2891
2892
  *
2892
2893
  * @returns {JSX.Element} The rendered Slideshow component.
package/dist/index.d.ts CHANGED
@@ -2887,6 +2887,7 @@ declare const TabsContent: FC$1<ILibTabContent>;
2887
2887
  * @prop {string[]} [props.images] - Array of image URLs to display in the slideshow.
2888
2888
  * @prop {object} [props.pagination] - Configuration object for pagination indicators and behavior.
2889
2889
  * @prop {boolean} [props.hidePagination] - Whether to hide the pagination indicators.
2890
+ * @prop {number} [props.defaultSlide] - Selects the default slide shown on load of the page.
2890
2891
  * @prop {LibBorderRadius} [props.borderRadius] - Border radius variant for the slideshow container.
2891
2892
  *
2892
2893
  * @returns {JSX.Element} The rendered Slideshow component.
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(0);
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);