@tap-payments/auth-jsconnect 2.4.33-test → 2.4.34-test
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.
|
@@ -28,8 +28,19 @@ import Box from '@mui/material/Box';
|
|
|
28
28
|
import 'react-spring-bottom-sheet/dist/style.css';
|
|
29
29
|
import { ICONS_NAMES } from '../../constants';
|
|
30
30
|
import { useLanguage } from '../../hooks';
|
|
31
|
-
import { PoweredByFooter } from '../../features/shared/Footer';
|
|
31
|
+
import { CustomFooter, PoweredByFooter } from '../../features/shared/Footer';
|
|
32
32
|
import LogoBadge from '../LogoBadge';
|
|
33
|
+
var LanguageFooterStyled = styled(Box)(function (_a) {
|
|
34
|
+
var theme = _a.theme;
|
|
35
|
+
return ({
|
|
36
|
+
top: theme.spacing(2.5),
|
|
37
|
+
position: 'fixed',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
width: '100%',
|
|
40
|
+
cursor: 'pointer',
|
|
41
|
+
zIndex: 99999
|
|
42
|
+
});
|
|
43
|
+
});
|
|
33
44
|
var BottomSheetStyled = styled(BottomSheet, { shouldForwardProp: function (prop) { return prop !== 'isMaturityExpress'; } })(function (_a) {
|
|
34
45
|
var theme = _a.theme, isMaturityExpress = _a.isMaturityExpress;
|
|
35
46
|
return ({
|
|
@@ -38,7 +49,7 @@ var BottomSheetStyled = styled(BottomSheet, { shouldForwardProp: function (prop)
|
|
|
38
49
|
backgroundColor: 'transparent'
|
|
39
50
|
},
|
|
40
51
|
'[data-rsbs-header]': __assign({ paddingBottom: theme.spacing(6), position: 'absolute', width: '100vw' }, (isMaturityExpress && { display: 'none' })),
|
|
41
|
-
'[data-rsbs-overlay]': __assign({ backgroundColor: theme.palette.background.paper, zIndex: 9999 }, (isMaturityExpress && { maxHeight: 'calc(100vh -
|
|
52
|
+
'[data-rsbs-overlay]': __assign({ backgroundColor: theme.palette.background.paper, zIndex: 9999, maxHeight: 'calc(100vh - 60px)' }, (isMaturityExpress && { maxHeight: 'calc(100vh - 140px)', marginBottom: theme.spacing(5.625), paddingTop: theme.spacing(5) })),
|
|
42
53
|
'[data-rsbs-scroll]': {
|
|
43
54
|
'&::-webkit-scrollbar': {
|
|
44
55
|
width: '0px'
|
|
@@ -81,7 +92,7 @@ var BottomSheetComponent = function (_a) {
|
|
|
81
92
|
}, 500);
|
|
82
93
|
}
|
|
83
94
|
}, [screenId]);
|
|
84
|
-
return (_jsxs(BottomSheetStyled, __assign({ isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
|
|
95
|
+
return (_jsxs(BottomSheetStyled, __assign({ sibling: _jsx(LanguageFooterStyled, { children: _jsx(CustomFooter, {}) }), isMaturityExpress: isMaturityExpress, sx: { pointerEvents: pointerEvents }, ref: sheetRef, open: open, snapPoints: function (_a) {
|
|
85
96
|
var maxHeight = _a.maxHeight;
|
|
86
97
|
return [getMinHeight(maxHeight), maxHeight * 0.95];
|
|
87
98
|
} }, rest, { children: [isMaturityExpress && _jsx(LogoBadge, { src: isMaturityExpress ? logo || ICONS_NAMES.LOGO_ICON : ICONS_NAMES.LOGO_ICON }), children, isMaturityExpress && (_jsx(FooterStyled, { children: _jsx(PoweredByFooter, { id: 'bottom-sheet-powered_by_footer', sx: { margin: '0px' }, textSx: { color: 'rgba(63, 66, 77, 0.6)' }, icon: isAr ? ICONS_NAMES.LOGO_WITH_NAME_DARK_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_DARK_EN_ICON }) }))] })));
|