@ornikar/kitt-universal 26.3.0 → 26.3.1-canary.dd94a20641c146865234323ff2718101c6363315.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 +9 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +0 -4
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +0 -4
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +1 -11
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +0 -15
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +0 -15
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +0 -13
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +0 -5
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +0 -13
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +0 -5
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +0 -15
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +0 -5
- 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
|
@@ -3969,11 +3969,6 @@ 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
|
-
*/
|
|
3977
3972
|
var BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComp);
|
|
3978
3973
|
BottomSheet.View = BottomSheetContainerView;
|
|
3979
3974
|
BottomSheet.SheetView = BottomSheetView;
|
|
@@ -11834,7 +11829,6 @@ function NavigationBottomSheet(_ref) {
|
|
|
11834
11829
|
snapPoints = _ref.snapPoints,
|
|
11835
11830
|
maxDynamicContentSize = _ref.maxDynamicContentSize,
|
|
11836
11831
|
isVisible = _ref.isVisible,
|
|
11837
|
-
isExpanded = _ref.isExpanded,
|
|
11838
11832
|
onClose = _ref.onClose;
|
|
11839
11833
|
var bottomSheetRef = useBottomSheet();
|
|
11840
11834
|
useEffect(function () {
|
|
@@ -11846,15 +11840,6 @@ function NavigationBottomSheet(_ref) {
|
|
|
11846
11840
|
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11847
11841
|
}
|
|
11848
11842
|
}, [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]);
|
|
11858
11843
|
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11859
11844
|
ref: bottomSheetRef,
|
|
11860
11845
|
maxDynamicContentSize: maxDynamicContentSize,
|