@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
|
@@ -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;
|
|
@@ -8900,7 +8905,6 @@ function StaticMapMarker$1({
|
|
|
8900
8905
|
alignItems: "center",
|
|
8901
8906
|
width: containerWidth,
|
|
8902
8907
|
height: containerHeight,
|
|
8903
|
-
backgroundColor: "kitt.accentLight",
|
|
8904
8908
|
children: [/*#__PURE__*/jsx(Animated.View, {
|
|
8905
8909
|
style: animatedStyle,
|
|
8906
8910
|
children: variant === MapMarkerVariantEnum.MEETING_POINT ? /*#__PURE__*/jsx(SvgMeetingPointMarkerinline, {
|
|
@@ -11565,6 +11569,7 @@ function NavigationBottomSheet({
|
|
|
11565
11569
|
snapPoints,
|
|
11566
11570
|
maxDynamicContentSize,
|
|
11567
11571
|
isVisible,
|
|
11572
|
+
isExpanded,
|
|
11568
11573
|
onClose
|
|
11569
11574
|
}) {
|
|
11570
11575
|
const bottomSheetRef = useBottomSheet();
|
|
@@ -11577,6 +11582,15 @@ function NavigationBottomSheet({
|
|
|
11577
11582
|
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11578
11583
|
}
|
|
11579
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]);
|
|
11580
11594
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11581
11595
|
ref: bottomSheetRef,
|
|
11582
11596
|
maxDynamicContentSize: maxDynamicContentSize,
|