@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.
@@ -3918,6 +3918,11 @@ function BottomSheetContainerView(props) {
3918
3918
  padding: "kitt.bottomSheet.container.padding"
3919
3919
  }, props));
3920
3920
  }
3921
+
3922
+ /**
3923
+ * @internal This component is for kitt-universal internal use only.
3924
+ * Please use `NavigationBottomSheet` instead.
3925
+ */
3921
3926
  const BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComp);
3922
3927
  BottomSheet.View = BottomSheetContainerView;
3923
3928
  BottomSheet.SheetView = BottomSheetView;
@@ -11564,6 +11569,7 @@ function NavigationBottomSheet({
11564
11569
  snapPoints,
11565
11570
  maxDynamicContentSize,
11566
11571
  isVisible,
11572
+ isExpanded,
11567
11573
  onClose
11568
11574
  }) {
11569
11575
  const bottomSheetRef = useBottomSheet();
@@ -11576,6 +11582,15 @@ function NavigationBottomSheet({
11576
11582
  (_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
11577
11583
  }
11578
11584
  }, [bottomSheetRef, isVisible]);
11585
+ useEffect(() => {
11586
+ if (isVisible && isExpanded) {
11587
+ var _bottomSheetRef$curre3;
11588
+ (_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
11589
+ } else {
11590
+ var _bottomSheetRef$curre4;
11591
+ (_bottomSheetRef$curre4 = bottomSheetRef.current) === null || _bottomSheetRef$curre4 === void 0 || _bottomSheetRef$curre4.collapse();
11592
+ }
11593
+ }, [bottomSheetRef, isVisible, isExpanded]);
11579
11594
  return /*#__PURE__*/jsx(BottomSheet, {
11580
11595
  ref: bottomSheetRef,
11581
11596
  maxDynamicContentSize: maxDynamicContentSize,