@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
package/dist/index.es.js
CHANGED
|
@@ -3964,6 +3964,11 @@ function BottomSheetContainerView(props) {
|
|
|
3964
3964
|
padding: "kitt.bottomSheet.container.padding"
|
|
3965
3965
|
}, props));
|
|
3966
3966
|
}
|
|
3967
|
+
|
|
3968
|
+
/**
|
|
3969
|
+
* @internal This component is for kitt-universal internal use only.
|
|
3970
|
+
* Please use `NavigationBottomSheet` instead.
|
|
3971
|
+
*/
|
|
3967
3972
|
var BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComp);
|
|
3968
3973
|
BottomSheet.View = BottomSheetContainerView;
|
|
3969
3974
|
BottomSheet.SheetView = BottomSheetView;
|
|
@@ -9152,7 +9157,6 @@ function StaticMapMarker$1(_ref) {
|
|
|
9152
9157
|
alignItems: "center",
|
|
9153
9158
|
width: containerWidth,
|
|
9154
9159
|
height: containerHeight,
|
|
9155
|
-
backgroundColor: "kitt.accentLight",
|
|
9156
9160
|
children: [/*#__PURE__*/jsx(Animated.View, {
|
|
9157
9161
|
style: animatedStyle,
|
|
9158
9162
|
children: variant === MapMarkerVariantEnum.MEETING_POINT ? /*#__PURE__*/jsx(SvgMeetingPointMarkerinline, {
|
|
@@ -11820,6 +11824,7 @@ function NavigationBottomSheet(_ref) {
|
|
|
11820
11824
|
snapPoints = _ref.snapPoints,
|
|
11821
11825
|
maxDynamicContentSize = _ref.maxDynamicContentSize,
|
|
11822
11826
|
isVisible = _ref.isVisible,
|
|
11827
|
+
isExpanded = _ref.isExpanded,
|
|
11823
11828
|
onClose = _ref.onClose;
|
|
11824
11829
|
var bottomSheetRef = useBottomSheet();
|
|
11825
11830
|
useEffect(function () {
|
|
@@ -11831,6 +11836,15 @@ function NavigationBottomSheet(_ref) {
|
|
|
11831
11836
|
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11832
11837
|
}
|
|
11833
11838
|
}, [bottomSheetRef, isVisible]);
|
|
11839
|
+
useEffect(function () {
|
|
11840
|
+
if (isVisible && isExpanded) {
|
|
11841
|
+
var _bottomSheetRef$curre3;
|
|
11842
|
+
(_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
|
|
11843
|
+
} else {
|
|
11844
|
+
var _bottomSheetRef$curre4;
|
|
11845
|
+
(_bottomSheetRef$curre4 = bottomSheetRef.current) === null || _bottomSheetRef$curre4 === void 0 || _bottomSheetRef$curre4.collapse();
|
|
11846
|
+
}
|
|
11847
|
+
}, [bottomSheetRef, isVisible, isExpanded]);
|
|
11834
11848
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11835
11849
|
ref: bottomSheetRef,
|
|
11836
11850
|
maxDynamicContentSize: maxDynamicContentSize,
|