@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.
@@ -10636,6 +10636,7 @@ var Carousel = ({
10636
10636
  heightClassName = "h-96",
10637
10637
  widthClassName = "w-[70%] desktop:w-1/2",
10638
10638
  slideContainerProps,
10639
+ onSlideChanged,
10639
10640
  ...props
10640
10641
  }) => {
10641
10642
  const translation = useTranslation([defaultCarouselTranslationType]);
@@ -10749,6 +10750,9 @@ var Carousel = ({
10749
10750
  (0, import_react24.useEffect)(() => {
10750
10751
  setDisableClick(!dragState);
10751
10752
  }, [dragState]);
10753
+ (0, import_react24.useEffect)(() => {
10754
+ onSlideChanged?.(currentIndex);
10755
+ }, [currentIndex]);
10752
10756
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CarouselContext.Provider, { value: { id, currentIndex, slideCount: length, isLooping }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
10753
10757
  "div",
10754
10758
  {