@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
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;
|
|
@@ -11819,6 +11824,7 @@ function NavigationBottomSheet(_ref) {
|
|
|
11819
11824
|
snapPoints = _ref.snapPoints,
|
|
11820
11825
|
maxDynamicContentSize = _ref.maxDynamicContentSize,
|
|
11821
11826
|
isVisible = _ref.isVisible,
|
|
11827
|
+
isExpanded = _ref.isExpanded,
|
|
11822
11828
|
onClose = _ref.onClose;
|
|
11823
11829
|
var bottomSheetRef = useBottomSheet();
|
|
11824
11830
|
useEffect(function () {
|
|
@@ -11830,6 +11836,15 @@ function NavigationBottomSheet(_ref) {
|
|
|
11830
11836
|
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11831
11837
|
}
|
|
11832
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]);
|
|
11833
11848
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11834
11849
|
ref: bottomSheetRef,
|
|
11835
11850
|
maxDynamicContentSize: maxDynamicContentSize,
|