@ornikar/kitt-universal 26.3.1-canary.dd94a20641c146865234323ff2718101c6363315.0 → 26.3.1-late-ocean.ccf14ae912d02bfa0c8d62c4652911eb457e71b0.0
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 +4 -3
- 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 +2 -2
package/dist/index.es.js
CHANGED
|
@@ -3969,6 +3969,11 @@ function BottomSheetContainerView(props) {
|
|
|
3969
3969
|
padding: "kitt.bottomSheet.container.padding"
|
|
3970
3970
|
}, props));
|
|
3971
3971
|
}
|
|
3972
|
+
|
|
3973
|
+
/**
|
|
3974
|
+
* @internal This component is for kitt-universal internal use only.
|
|
3975
|
+
* Please use `NavigationBottomSheet` instead.
|
|
3976
|
+
*/
|
|
3972
3977
|
var BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComp);
|
|
3973
3978
|
BottomSheet.View = BottomSheetContainerView;
|
|
3974
3979
|
BottomSheet.SheetView = BottomSheetView;
|
|
@@ -11829,6 +11834,7 @@ function NavigationBottomSheet(_ref) {
|
|
|
11829
11834
|
snapPoints = _ref.snapPoints,
|
|
11830
11835
|
maxDynamicContentSize = _ref.maxDynamicContentSize,
|
|
11831
11836
|
isVisible = _ref.isVisible,
|
|
11837
|
+
isExpanded = _ref.isExpanded,
|
|
11832
11838
|
onClose = _ref.onClose;
|
|
11833
11839
|
var bottomSheetRef = useBottomSheet();
|
|
11834
11840
|
useEffect(function () {
|
|
@@ -11840,6 +11846,15 @@ function NavigationBottomSheet(_ref) {
|
|
|
11840
11846
|
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11841
11847
|
}
|
|
11842
11848
|
}, [bottomSheetRef, isVisible]);
|
|
11849
|
+
useEffect(function () {
|
|
11850
|
+
if (isVisible && isExpanded) {
|
|
11851
|
+
var _bottomSheetRef$curre3;
|
|
11852
|
+
(_bottomSheetRef$curre3 = bottomSheetRef.current) === null || _bottomSheetRef$curre3 === void 0 || _bottomSheetRef$curre3.expand();
|
|
11853
|
+
} else {
|
|
11854
|
+
var _bottomSheetRef$curre4;
|
|
11855
|
+
(_bottomSheetRef$curre4 = bottomSheetRef.current) === null || _bottomSheetRef$curre4 === void 0 || _bottomSheetRef$curre4.collapse();
|
|
11856
|
+
}
|
|
11857
|
+
}, [bottomSheetRef, isVisible, isExpanded]);
|
|
11843
11858
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11844
11859
|
ref: bottomSheetRef,
|
|
11845
11860
|
maxDynamicContentSize: maxDynamicContentSize,
|