@ornikar/kitt-universal 26.1.1 → 26.1.2

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.
@@ -3919,6 +3919,11 @@ function BottomSheetContainerView(props) {
3919
3919
  ...props
3920
3920
  });
3921
3921
  }
3922
+
3923
+ /**
3924
+ * @internal This component is for kitt-universal internal use only.
3925
+ * Please use `NavigationBottomSheet` instead.
3926
+ */
3922
3927
  const BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComp);
3923
3928
  BottomSheet.View = BottomSheetContainerView;
3924
3929
  BottomSheet.SheetView = BottomSheetView;
@@ -11545,6 +11550,7 @@ function NavigationBottomSheet({
11545
11550
  snapPoints,
11546
11551
  maxDynamicContentSize,
11547
11552
  isVisible,
11553
+ isExpanded,
11548
11554
  onClose
11549
11555
  }) {
11550
11556
  const bottomSheetRef = useBottomSheet();
@@ -11555,6 +11561,13 @@ function NavigationBottomSheet({
11555
11561
  bottomSheetRef.current?.close();
11556
11562
  }
11557
11563
  }, [bottomSheetRef, isVisible]);
11564
+ useEffect(() => {
11565
+ if (isVisible && isExpanded) {
11566
+ bottomSheetRef.current?.expand();
11567
+ } else {
11568
+ bottomSheetRef.current?.collapse();
11569
+ }
11570
+ }, [bottomSheetRef, isVisible, isExpanded]);
11558
11571
  return /*#__PURE__*/jsx(BottomSheet, {
11559
11572
  ref: bottomSheetRef,
11560
11573
  maxDynamicContentSize: maxDynamicContentSize,