@helpwave/hightide 0.1.38 → 0.1.39

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.
@@ -10537,6 +10537,7 @@ var Carousel = ({
10537
10537
  heightClassName = "h-96",
10538
10538
  widthClassName = "w-[70%] desktop:w-1/2",
10539
10539
  slideContainerProps,
10540
+ onSlideChanged,
10540
10541
  ...props
10541
10542
  }) => {
10542
10543
  const translation = useTranslation([defaultCarouselTranslationType]);
@@ -10650,6 +10651,9 @@ var Carousel = ({
10650
10651
  useEffect18(() => {
10651
10652
  setDisableClick(!dragState);
10652
10653
  }, [dragState]);
10654
+ useEffect18(() => {
10655
+ onSlideChanged?.(currentIndex);
10656
+ }, [currentIndex]);
10653
10657
  return /* @__PURE__ */ jsx31(CarouselContext.Provider, { value: { id, currentIndex, slideCount: length, isLooping }, children: /* @__PURE__ */ jsxs17(
10654
10658
  "div",
10655
10659
  {