@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.
@@ -441,6 +441,7 @@ var Carousel = ({
441
441
  heightClassName = "h-96",
442
442
  widthClassName = "w-[70%] desktop:w-1/2",
443
443
  slideContainerProps,
444
+ onSlideChanged,
444
445
  ...props
445
446
  }) => {
446
447
  const translation = useTranslation([defaultCarouselTranslationType]);
@@ -554,6 +555,9 @@ var Carousel = ({
554
555
  useEffect2(() => {
555
556
  setDisableClick(!dragState);
556
557
  }, [dragState]);
558
+ useEffect2(() => {
559
+ onSlideChanged?.(currentIndex);
560
+ }, [currentIndex]);
557
561
  return /* @__PURE__ */ jsx3(CarouselContext.Provider, { value: { id, currentIndex, slideCount: length, isLooping }, children: /* @__PURE__ */ jsxs2(
558
562
  "div",
559
563
  {