@helpwave/hightide 0.1.39 → 0.1.40

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
@@ -10941,11 +10941,11 @@ var defaultCarouselSlideTranslationType = {
10941
10941
  var CarouselSlide = (0, import_react24.forwardRef)(
10942
10942
  function CarouselSlide2({
10943
10943
  index,
10944
+ isSelected,
10944
10945
  ...props
10945
10946
  }, ref) {
10946
10947
  const translation = useTranslation([defaultCarouselSlideTranslationType]);
10947
- const { id, currentIndex, slideCount } = useCarouselContext();
10948
- const isSelected = currentIndex === index;
10948
+ const { id, slideCount } = useCarouselContext();
10949
10949
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
10950
10950
  "div",
10951
10951
  {
@@ -10993,7 +10993,7 @@ var Carousel = ({
10993
10993
  dots = true,
10994
10994
  blurColor = "from-background",
10995
10995
  heightClassName = "h-96",
10996
- widthClassName = "w-[70%] desktop:w-1/2",
10996
+ slideClassName = "w-[70%] desktop:w-1/2",
10997
10997
  slideContainerProps,
10998
10998
  onSlideChanged,
10999
10999
  ...props
@@ -11147,9 +11147,10 @@ var Carousel = ({
11147
11147
  {
11148
11148
  ref: isInItems ? slideRefs[index] : void 0,
11149
11149
  index,
11150
+ isSelected: isInItems && currentIndex === index,
11150
11151
  className: (0, import_clsx20.default)(
11151
11152
  `absolute left-[50%] h-full overflow-hidden transition-transform ease-in-out`,
11152
- widthClassName
11153
+ slideClassName
11153
11154
  ),
11154
11155
  onClick: () => !disableClick && setCurrentIndex(index),
11155
11156
  style: {