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