@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
|
@@ -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,
|