@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.
@@ -3942,6 +3942,11 @@ function BottomSheetContainerView(props) {
3942
3942
  ...props
3943
3943
  });
3944
3944
  }
3945
+
3946
+ /**
3947
+ * @internal This component is for kitt-universal internal use only.
3948
+ * Please use `NavigationBottomSheet` instead.
3949
+ */
3945
3950
  const BottomSheet = /*#__PURE__*/React.forwardRef(BottomSheetComp);
3946
3951
  BottomSheet.View = BottomSheetContainerView;
3947
3952
  BottomSheet.SheetView = bottomSheet$1.BottomSheetView;
@@ -11568,6 +11573,7 @@ function NavigationBottomSheet({
11568
11573
  snapPoints,
11569
11574
  maxDynamicContentSize,
11570
11575
  isVisible,
11576
+ isExpanded,
11571
11577
  onClose
11572
11578
  }) {
11573
11579
  const bottomSheetRef = useBottomSheet();
@@ -11578,6 +11584,13 @@ function NavigationBottomSheet({
11578
11584
  bottomSheetRef.current?.close();
11579
11585
  }
11580
11586
  }, [bottomSheetRef, isVisible]);
11587
+ React.useEffect(() => {
11588
+ if (isVisible && isExpanded) {
11589
+ bottomSheetRef.current?.expand();
11590
+ } else {
11591
+ bottomSheetRef.current?.collapse();
11592
+ }
11593
+ }, [bottomSheetRef, isVisible, isExpanded]);
11581
11594
  return /*#__PURE__*/jsxRuntime.jsx(BottomSheet, {
11582
11595
  ref: bottomSheetRef,
11583
11596
  maxDynamicContentSize: maxDynamicContentSize,