@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.
- package/CHANGELOG.md +8 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +4 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +4 -0
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +11 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +15 -0
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +15 -0
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +13 -0
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +5 -0
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +13 -0
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +5 -0
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +15 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +5 -0
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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,
|