@ornikar/kitt-universal 26.3.1-canary.dd94a20641c146865234323ff2718101c6363315.0 → 26.3.1-late-ocean.ccf14ae912d02bfa0c8d62c4652911eb457e71b0.0
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 +4 -3
- 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 +2 -2
|
@@ -3923,6 +3923,11 @@ function BottomSheetContainerView(props) {
|
|
|
3923
3923
|
padding: "kitt.bottomSheet.container.padding"
|
|
3924
3924
|
}, props));
|
|
3925
3925
|
}
|
|
3926
|
+
|
|
3927
|
+
/**
|
|
3928
|
+
* @internal This component is for kitt-universal internal use only.
|
|
3929
|
+
* Please use `NavigationBottomSheet` instead.
|
|
3930
|
+
*/
|
|
3926
3931
|
const BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComp);
|
|
3927
3932
|
BottomSheet.View = BottomSheetContainerView;
|
|
3928
3933
|
BottomSheet.SheetView = BottomSheetView;
|
|
@@ -11574,6 +11579,7 @@ function NavigationBottomSheet({
|
|
|
11574
11579
|
snapPoints,
|
|
11575
11580
|
maxDynamicContentSize,
|
|
11576
11581
|
isVisible,
|
|
11582
|
+
isExpanded,
|
|
11577
11583
|
onClose
|
|
11578
11584
|
}) {
|
|
11579
11585
|
const bottomSheetRef = useBottomSheet();
|
|
@@ -11586,6 +11592,15 @@ function NavigationBottomSheet({
|
|
|
11586
11592
|
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11587
11593
|
}
|
|
11588
11594
|
}, [bottomSheetRef, isVisible]);
|
|
11595
|
+
useEffect(() => {
|
|
11596
|
+
if (isVisible && isExpanded) {
|
|
11597
|
+
var _bottomSheetRef$curre3;
|
|
11598
|
+
(_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
|
|
11599
|
+
} else {
|
|
11600
|
+
var _bottomSheetRef$curre4;
|
|
11601
|
+
(_bottomSheetRef$curre4 = bottomSheetRef.current) === null || _bottomSheetRef$curre4 === void 0 || _bottomSheetRef$curre4.collapse();
|
|
11602
|
+
}
|
|
11603
|
+
}, [bottomSheetRef, isVisible, isExpanded]);
|
|
11589
11604
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11590
11605
|
ref: bottomSheetRef,
|
|
11591
11606
|
maxDynamicContentSize: maxDynamicContentSize,
|