@tap-payments/auth-jsconnect 1.0.36 → 1.0.40

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.
Files changed (114) hide show
  1. package/build/@types/app.d.ts +4 -4
  2. package/build/components/AnimationFlow/BottomSheet.js +26 -2
  3. package/build/components/OTPTimer/OTPTimer.js +4 -2
  4. package/build/constants/app.js +2 -2
  5. package/build/constants/dummy.d.ts +2 -2
  6. package/build/constants/dummy.js +6 -6
  7. package/build/constants/validation.d.ts +1 -0
  8. package/build/constants/validation.js +1 -0
  9. package/build/features/app/business/businessStore.d.ts +4 -6
  10. package/build/features/app/business/businessStore.js +43 -30
  11. package/build/features/app/connect/connectStore.d.ts +1 -1
  12. package/build/features/app/connect/connectStore.js +23 -15
  13. package/build/features/business/screens/Activities/Activities.js +10 -5
  14. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  15. package/build/features/business/screens/Activities/OperationStartDate.js +1 -12
  16. package/build/features/business/screens/Activities/SalesChannels.js +1 -1
  17. package/build/features/business/screens/BusinessType/BusinessType.js +16 -23
  18. package/build/features/business/screens/BusinessType/CompanyLicense.js +23 -9
  19. package/build/features/business/screens/BusinessType/FreelanceLicense.js +23 -9
  20. package/build/features/business/screens/Confirm/Confirm.js +4 -3
  21. package/build/features/business/screens/Customers/Customers.js +1 -1
  22. package/build/features/business/screens/OTP/OTP.js +5 -2
  23. package/build/features/business/screens/OTP/OTPInput.js +1 -2
  24. package/build/features/business/screens/Verify/OTPInput.js +1 -2
  25. package/build/features/business/screens/Verify/Verify.js +7 -4
  26. package/build/features/connect/screens/Individual/Email.js +10 -1
  27. package/build/features/connect/screens/Individual/Individual.js +8 -10
  28. package/build/features/connect/screens/Individual/MobileNumber.js +3 -16
  29. package/build/features/connect/screens/Merchant/BrandName.js +6 -2
  30. package/build/features/connect/screens/Merchant/Merchant.js +11 -11
  31. package/build/features/connect/screens/Merchant/SocialMedia.js +2 -1
  32. package/build/features/connect/screens/Merchant/TAC.js +1 -1
  33. package/build/features/connect/screens/Merchant/validation.js +3 -2
  34. package/build/features/connect/screens/Mobile/BusinessCountry.js +1 -1
  35. package/build/features/connect/screens/Mobile/Mobile.js +1 -9
  36. package/build/features/connect/screens/Mobile/MobileNumber.js +3 -16
  37. package/build/features/connect/screens/NID/IDNumber.d.ts +0 -1
  38. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  39. package/build/features/connect/screens/NID/NID.js +1 -6
  40. package/build/features/connect/screens/OTP/OTP.js +2 -4
  41. package/build/features/connect/screens/Password/Password.js +1 -6
  42. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +1 -1
  43. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +1 -1
  44. package/build/features/shared/Button/Button.js +13 -3
  45. package/build/features/shared/SuccessScreen/SuccessScreen.js +10 -5
  46. package/build/hooks/index.d.ts +1 -0
  47. package/build/hooks/index.js +1 -0
  48. package/build/hooks/useWindowSize.d.ts +6 -0
  49. package/build/hooks/useWindowSize.js +19 -0
  50. package/package.json +126 -126
  51. package/build/features/app/business/midStore.d.ts +0 -10
  52. package/build/features/app/business/midStore.js +0 -18
  53. package/build/features/app/connect/midStore.d.ts +0 -10
  54. package/build/features/app/connect/midStore.js +0 -18
  55. package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +0 -5
  56. package/build/features/business/screens/VerifyNumber/OTPInput.js +0 -39
  57. package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +0 -13
  58. package/build/features/business/screens/VerifyNumber/VerifyNumber.js +0 -76
  59. package/build/features/business/screens/VerifyNumber/index.d.ts +0 -3
  60. package/build/features/business/screens/VerifyNumber/index.js +0 -2
  61. package/build/features/business/screens/VerifyNumber/validation.d.ts +0 -8
  62. package/build/features/business/screens/VerifyNumber/validation.js +0 -4
  63. package/build/features/connect/screens/MID/BusinessCountry.d.ts +0 -11
  64. package/build/features/connect/screens/MID/BusinessCountry.js +0 -92
  65. package/build/features/connect/screens/MID/DOB.d.ts +0 -6
  66. package/build/features/connect/screens/MID/DOB.js +0 -38
  67. package/build/features/connect/screens/MID/IDNumber.d.ts +0 -7
  68. package/build/features/connect/screens/MID/IDNumber.js +0 -70
  69. package/build/features/connect/screens/MID/MID.d.ts +0 -5
  70. package/build/features/connect/screens/MID/MID.js +0 -87
  71. package/build/features/connect/screens/MID/MIDTitle.d.ts +0 -8
  72. package/build/features/connect/screens/MID/MIDTitle.js +0 -29
  73. package/build/features/connect/screens/MID/MobileNumber.d.ts +0 -12
  74. package/build/features/connect/screens/MID/MobileNumber.js +0 -148
  75. package/build/features/connect/screens/MID/index.d.ts +0 -3
  76. package/build/features/connect/screens/MID/index.js +0 -2
  77. package/build/features/connect/screens/MID/validation.d.ts +0 -18
  78. package/build/features/connect/screens/MID/validation.js +0 -15
  79. package/build/features/owner/Owner.d.ts +0 -6
  80. package/build/features/owner/Owner.js +0 -50
  81. package/build/features/owner/index.d.ts +0 -1
  82. package/build/features/owner/index.js +0 -1
  83. package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.d.ts +0 -8
  84. package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.js +0 -77
  85. package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.d.ts +0 -10
  86. package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.js +0 -80
  87. package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.d.ts +0 -6
  88. package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.js +0 -40
  89. package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.d.ts +0 -6
  90. package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.js +0 -45
  91. package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.d.ts +0 -6
  92. package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.js +0 -35
  93. package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.d.ts +0 -6
  94. package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.js +0 -45
  95. package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.d.ts +0 -9
  96. package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.js +0 -85
  97. package/build/features/owner/screens/AdditionalOwnerInfo/index.d.ts +0 -3
  98. package/build/features/owner/screens/AdditionalOwnerInfo/index.js +0 -2
  99. package/build/features/owner/screens/AdditionalOwnerInfo/validation.d.ts +0 -25
  100. package/build/features/owner/screens/AdditionalOwnerInfo/validation.js +0 -35
  101. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.d.ts +0 -19
  102. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +0 -52
  103. package/build/features/owner/screens/ShowOwnerInfo/index.d.ts +0 -3
  104. package/build/features/owner/screens/ShowOwnerInfo/index.js +0 -2
  105. package/build/features/owner/screens/ShowOwnerInfo/info.d.ts +0 -7
  106. package/build/features/owner/screens/ShowOwnerInfo/info.js +0 -28
  107. package/build/features/owner/screens/Success/Success.d.ts +0 -5
  108. package/build/features/owner/screens/Success/Success.js +0 -14
  109. package/build/features/owner/screens/Success/index.d.ts +0 -3
  110. package/build/features/owner/screens/Success/index.js +0 -2
  111. package/build/features/shared/ExpandIcon/ExpandIcon.d.ts +0 -7
  112. package/build/features/shared/ExpandIcon/ExpandIcon.js +0 -24
  113. package/build/features/shared/ExpandIcon/index.d.ts +0 -2
  114. package/build/features/shared/ExpandIcon/index.js +0 -2
@@ -1,52 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import * as React from 'react';
14
- import Box from '@mui/material/Box';
15
- import { useTranslation } from 'react-i18next';
16
- import { useAppDispatch } from '../../../../hooks';
17
- import { handleNextScreenStep } from '../../../../app/settings';
18
- import { styled } from '@mui/material/styles';
19
- import Collapse from '../../../../components/Collapse';
20
- import Button from '../../../shared/Button';
21
- import ScreenContainer from '../../../shared/Containers/ScreenContainer';
22
- import { useLanguage } from '../../../../hooks';
23
- import Info from './info';
24
- var InputsContainerStyled = styled(Box)(function (_a) {
25
- var _b;
26
- var theme = _a.theme;
27
- return (_b = {
28
- paddingBottom: theme.spacing(5)
29
- },
30
- _b[theme.transitions.create(['padding-bottom'])] = {
31
- duration: theme.transitions.duration.standard
32
- },
33
- _b);
34
- });
35
- var ShowOwnerInfo = function (_a) {
36
- var citizenship = _a.citizenship, nationalAddr = _a.nationalAddr, birthDate = _a.birthDate, placeOfBirth = _a.placeOfBirth, maritalStatus = _a.maritalStatus;
37
- var t = useTranslation().t;
38
- var isAr = useLanguage().isAr;
39
- var dispatch = useAppDispatch();
40
- var handleClickNext = function () {
41
- dispatch(handleNextScreenStep());
42
- };
43
- return (_jsxs(ScreenContainer, { children: [_jsxs(InputsContainerStyled, { children: [_jsx(Collapse, __assign({ in: !!citizenship }, { children: _jsx(Info, { label: 'citizenship', value: citizenship }) })), _jsx(Collapse, __assign({ in: !!nationalAddr }, { children: _jsx(Info, { label: 'national_address', value: nationalAddr }) })), _jsx(Info, { label: t('birthdate'), value: birthDate }), _jsx(Info, { label: 'place_of_birth', value: placeOfBirth }), _jsx(Collapse, __assign({ in: !!maritalStatus }, { children: _jsx(Info, { label: 'marital_status', value: maritalStatus }) }))] }), _jsx(Button, __assign({ isAr: isAr, disabled: false, loading: false, onClick: handleClickNext }, { children: t('next') }))] }));
44
- };
45
- export default React.memo(ShowOwnerInfo);
46
- ShowOwnerInfo.defaultProps = {
47
- citizenship: '',
48
- nationalAddr: 'India',
49
- birthDate: '03-06-1986',
50
- placeOfBirth: 'India',
51
- maritalStatus: ''
52
- };
@@ -1,3 +0,0 @@
1
- import ShowOwnerInfo, { ShowOwnerInfoProps } from './ShowOwnerInfo';
2
- export type { ShowOwnerInfoProps };
3
- export default ShowOwnerInfo;
@@ -1,2 +0,0 @@
1
- import ShowOwnerInfo from './ShowOwnerInfo';
2
- export default ShowOwnerInfo;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface InfoProps {
3
- label: string;
4
- value: string;
5
- }
6
- export default function Info({ label, value }: InfoProps): JSX.Element;
7
- export {};
@@ -1,28 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useTranslation } from 'react-i18next';
14
- import { styled, alpha } from '@mui/material/styles';
15
- import Text from '../../../../components/Text';
16
- var LabelTextStyled = styled(Text)(function (_a) {
17
- var theme = _a.theme;
18
- return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), paddingInlineStart: theme.spacing(2.5), marginBlockStart: theme.spacing(3.5), marginBlockEnd: theme.spacing(1.25) }));
19
- });
20
- var ValueTextStyled = styled(Text)(function (_a) {
21
- var theme = _a.theme;
22
- return (__assign(__assign({ background: theme.palette.common.white, color: theme.palette.text.primary, border: "".concat(theme.spacing(0.125), " solid ").concat(theme.palette.divider), maxHeight: theme.spacing(5.5), paddingBlock: theme.spacing(1.75), paddingInlineStart: theme.spacing(2.5), fontWeight: theme.typography.fontWeightLight }, theme.typography.body2), { lineHeight: theme.spacing(2.125) }));
23
- });
24
- export default function Info(_a) {
25
- var label = _a.label, value = _a.value;
26
- var t = useTranslation().t;
27
- return (_jsxs(_Fragment, { children: [_jsx(LabelTextStyled, { children: t(label) }), _jsx(ValueTextStyled, { children: value })] }));
28
- }
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export interface SuccessProps {
3
- }
4
- declare const _default: React.MemoExoticComponent<({}: SuccessProps) => JSX.Element>;
5
- export default _default;
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from 'react';
3
- import { useTranslation } from 'react-i18next';
4
- import SuccessScreen from '../../../shared/SuccessScreen';
5
- var Success = function (_a) {
6
- var t = useTranslation().t;
7
- var onSuccess = function () {
8
- console.log('success');
9
- alert('Account created successfully, please check your email');
10
- alert("It's a fake message, plz wait us to integrate with the backend. <A.Sharkawy>");
11
- };
12
- return _jsx(SuccessScreen, { title: t('ide_successfully_updated_message'), onSuccess: onSuccess });
13
- };
14
- export default React.memo(Success);
@@ -1,3 +0,0 @@
1
- import Success, { SuccessProps } from './Success';
2
- export type { SuccessProps };
3
- export default Success;
@@ -1,2 +0,0 @@
1
- import Success from './Success';
2
- export default Success;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface ExpandIconProps {
3
- anchorEl?: boolean;
4
- onClick?: () => void;
5
- }
6
- export default function CustomExpandIcon(props: ExpandIconProps): JSX.Element;
7
- export {};
@@ -1,24 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { styled } from '@mui/material/styles';
14
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
15
- var ExpandIcon = styled(ExpandMoreIcon, { shouldForwardProp: function (prop) { return prop !== 'anchorEl'; } })(function (_a) {
16
- var _b;
17
- var theme = _a.theme, anchorEl = _a.anchorEl;
18
- return (__assign(__assign({}, theme.typography.h6), (_b = { display: 'flex', cursor: 'pointer', transform: !!anchorEl ? 'rotate(180deg)' : '' }, _b[theme.transitions.create(['transform'])] = {
19
- duration: theme.transitions.duration.standard
20
- }, _b)));
21
- });
22
- export default function CustomExpandIcon(props) {
23
- return _jsx(ExpandIcon, __assign({}, props));
24
- }
@@ -1,2 +0,0 @@
1
- import ExpandIcon from './ExpandIcon';
2
- export default ExpandIcon;
@@ -1,2 +0,0 @@
1
- import ExpandIcon from './ExpandIcon';
2
- export default ExpandIcon;