@tap-payments/auth-jsconnect 1.0.87 → 1.0.88

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.
@@ -34,7 +34,7 @@ var Connect = memo(function (props) {
34
34
  useEffect(function () {
35
35
  dispatch(getCountries());
36
36
  }, []);
37
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: connectFeatureScreens.map(function (_a, index) {
37
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, loading: settingLoading, error: error, open: open, footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: connectFeatureScreens.map(function (_a, index) {
38
38
  var Element = _a.element, name = _a.name;
39
39
  var isActive = activeScreen.name === name;
40
40
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -14,7 +14,7 @@ import { memo } from 'react';
14
14
  import { styled } from '@mui/material/styles';
15
15
  import Box from '@mui/material/Box';
16
16
  import LogoBackground from './LogoBackground';
17
- var BackgroundStyled = styled(Box)(function (_a) {
17
+ var BackgroundStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'isTapOrigin'; } })(function (_a) {
18
18
  var isTapOrigin = _a.isTapOrigin;
19
19
  return ({
20
20
  width: '100%',
@@ -24,6 +24,6 @@ var BackgroundStyled = styled(Box)(function (_a) {
24
24
  });
25
25
  var Background = function (_a) {
26
26
  var children = _a.children, isTapOrigin = _a.isTapOrigin, loading = _a.loading;
27
- return (_jsxs(BackgroundStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsx(LogoBackground, { isTapOrigin: !loading && isTapOrigin }), children] })));
27
+ return (_jsxs(BackgroundStyled, __assign({ isTapOrigin: isTapOrigin }, { children: [_jsx(LogoBackground, { hide: loading || !isTapOrigin }), children] })));
28
28
  };
29
29
  export default memo(Background);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare type LogoBackgroundProps = {
3
- isTapOrigin: boolean;
3
+ hide?: boolean;
4
4
  };
5
- declare const _default: React.MemoExoticComponent<({ isTapOrigin }: LogoBackgroundProps) => JSX.Element>;
5
+ declare const _default: React.MemoExoticComponent<({ hide }: LogoBackgroundProps) => JSX.Element>;
6
6
  export default _default;
@@ -11,13 +11,12 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { memo } from 'react';
14
- import { styled } from '@mui/material/styles';
14
+ import { styled, useTheme } from '@mui/material/styles';
15
15
  import Collapse from '@mui/material/Collapse';
16
16
  import Box from '@mui/material/Box';
17
17
  import Icon from '../../../components/Icon';
18
18
  import { ICONS_NAMES } from '../../../constants';
19
19
  import { useLanguage } from '../../../hooks';
20
- import Fade from '@mui/material/Fade';
21
20
  var BoxStyled = styled(Box)(function (_a) {
22
21
  var _b;
23
22
  var theme = _a.theme;
@@ -26,10 +25,11 @@ var BoxStyled = styled(Box)(function (_a) {
26
25
  flexDirection: 'column',
27
26
  justifyContent: 'center',
28
27
  alignItems: 'center',
29
- paddingTop: theme.spacing(5)
28
+ paddingTop: theme.spacing(5),
29
+ paddingBottom: theme.spacing(2)
30
30
  },
31
31
  _b[theme.breakpoints.down('sm')] = {
32
- paddingTop: theme.spacing(11.5)
32
+ paddingTop: theme.spacing(11)
33
33
  },
34
34
  _b);
35
35
  });
@@ -44,7 +44,7 @@ var LogoIconBoxStyled = styled(Box)(function (_a) {
44
44
  var _b;
45
45
  var theme = _a.theme;
46
46
  return (_b = {
47
- paddingTop: theme.spacing(2.125),
47
+ paddingTop: theme.spacing(2.5),
48
48
  width: '100%',
49
49
  display: 'flex',
50
50
  justifyContent: 'center'
@@ -63,8 +63,11 @@ var LogoIconStyled = styled(Icon)(function (_a) {
63
63
  });
64
64
  });
65
65
  var LogoBackground = function (_a) {
66
- var isTapOrigin = _a.isTapOrigin;
66
+ var hide = _a.hide;
67
67
  var isAr = useLanguage().isAr;
68
- return (_jsx(Collapse, __assign({ in: isTapOrigin }, { children: _jsx(Fade, __assign({ in: isTapOrigin }, { children: _jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' }) })] }) })) })));
68
+ var theme = useTheme();
69
+ var style = getComputedStyle(document.body);
70
+ console.log(style.getPropertyValue('--rsbs-overlay-h'));
71
+ return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(BoxStyled, { children: [_jsx(LogoBadgeStyled, { src: ICONS_NAMES.TAP_LOGO_EN_ICON }), _jsx(LogoIconBoxStyled, { children: _jsx(LogoIconStyled, { src: isAr ? ICONS_NAMES.TAP_LOGO_TEXT_AR : ICONS_NAMES.TAP_LOGO_TEXT_EN, alt: 'tap logo' }) })] }) })));
69
72
  };
70
73
  export default memo(LogoBackground);
@@ -2,7 +2,6 @@ import { initReactI18next } from 'react-i18next';
2
2
  import i18n from '../i18n';
3
3
  export var updateLocale = function (locale, country) {
4
4
  var data = locale[country] || locale['default'];
5
- console.log('sssssssssssss', data);
6
5
  if (i18n.isInitialized) {
7
6
  i18n.removeResourceBundle('*', 'translation');
8
7
  i18n.addResourceBundle('en', 'translation', data.en.translation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",