@tap-payments/auth-jsconnect 1.0.44 → 1.0.45

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.
@@ -52,14 +52,14 @@ var BottomSheetStyled = styled(BottomSheet)(function (_a) {
52
52
  });
53
53
  var BottomSheetComponent = function (_a) {
54
54
  var open = _a.open, children = _a.children, rest = __rest(_a, ["open", "children"]);
55
- var getMinHeight = function () {
55
+ var getMinHeight = function (maxHeight) {
56
56
  var element = document.getElementById('main-feature-container');
57
57
  var height = element ? element.clientHeight + 30 : 0;
58
- return height || 500;
58
+ return height || maxHeight * 0.7;
59
59
  };
60
60
  return (_jsx(BottomSheetStyled, __assign({ open: open, snapPoints: function (_a) {
61
61
  var maxHeight = _a.maxHeight;
62
- return [getMinHeight(), maxHeight * 0.95];
62
+ return [getMinHeight(maxHeight), maxHeight * 0.95];
63
63
  } }, rest, { children: children })));
64
64
  };
65
65
  export default React.memo(BottomSheetComponent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",