@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.
package/dist/index.js CHANGED
@@ -10995,6 +10995,7 @@ var Carousel = ({
10995
10995
  heightClassName = "h-96",
10996
10996
  widthClassName = "w-[70%] desktop:w-1/2",
10997
10997
  slideContainerProps,
10998
+ onSlideChanged,
10998
10999
  ...props
10999
11000
  }) => {
11000
11001
  const translation = useTranslation([defaultCarouselTranslationType]);
@@ -11108,6 +11109,9 @@ var Carousel = ({
11108
11109
  (0, import_react24.useEffect)(() => {
11109
11110
  setDisableClick(!dragState);
11110
11111
  }, [dragState]);
11112
+ (0, import_react24.useEffect)(() => {
11113
+ onSlideChanged?.(currentIndex);
11114
+ }, [currentIndex]);
11111
11115
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CarouselContext.Provider, { value: { id, currentIndex, slideCount: length, isLooping }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11112
11116
  "div",
11113
11117
  {