@ornikar/kitt-universal 26.1.0 → 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 +17 -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 -1
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +15 -1
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +13 -1
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +5 -1
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +13 -1
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +5 -1
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +15 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +5 -1
- 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;
|
|
@@ -8870,7 +8875,6 @@ function StaticMapMarker$1({
|
|
|
8870
8875
|
alignItems: "center",
|
|
8871
8876
|
width: containerWidth,
|
|
8872
8877
|
height: containerHeight,
|
|
8873
|
-
backgroundColor: "kitt.accentLight",
|
|
8874
8878
|
children: [/*#__PURE__*/jsx(Animated.View, {
|
|
8875
8879
|
style: animatedStyle,
|
|
8876
8880
|
children: variant === MapMarkerVariantEnum.MEETING_POINT ? /*#__PURE__*/jsx(SvgMeetingPointMarkerinline, {
|
|
@@ -11546,6 +11550,7 @@ function NavigationBottomSheet({
|
|
|
11546
11550
|
snapPoints,
|
|
11547
11551
|
maxDynamicContentSize,
|
|
11548
11552
|
isVisible,
|
|
11553
|
+
isExpanded,
|
|
11549
11554
|
onClose
|
|
11550
11555
|
}) {
|
|
11551
11556
|
const bottomSheetRef = useBottomSheet();
|
|
@@ -11556,6 +11561,13 @@ function NavigationBottomSheet({
|
|
|
11556
11561
|
bottomSheetRef.current?.close();
|
|
11557
11562
|
}
|
|
11558
11563
|
}, [bottomSheetRef, isVisible]);
|
|
11564
|
+
useEffect(() => {
|
|
11565
|
+
if (isVisible && isExpanded) {
|
|
11566
|
+
bottomSheetRef.current?.expand();
|
|
11567
|
+
} else {
|
|
11568
|
+
bottomSheetRef.current?.collapse();
|
|
11569
|
+
}
|
|
11570
|
+
}, [bottomSheetRef, isVisible, isExpanded]);
|
|
11559
11571
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11560
11572
|
ref: bottomSheetRef,
|
|
11561
11573
|
maxDynamicContentSize: maxDynamicContentSize,
|