@tap-payments/auth-jsconnect 1.0.9 → 1.0.13
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/build/@types/app.d.ts +5 -0
- package/build/assets/locales/ar.json +26 -10
- package/build/assets/locales/en.json +21 -5
- package/build/components/AnimationFlow/Dialog.js +12 -1
- package/build/components/DatePicker/DatePicker.d.ts +3 -1
- package/build/components/DatePicker/DatePicker.js +5 -2
- package/build/components/Radio/Radio.d.ts +5 -0
- package/build/components/Radio/Radio.js +31 -0
- package/build/components/Radio/index.d.ts +3 -0
- package/build/components/Radio/index.js +2 -0
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -0
- package/build/components/RadioGroup/RadioGroup.js +41 -0
- package/build/components/RadioGroup/index.d.ts +3 -0
- package/build/components/RadioGroup/index.js +2 -0
- package/build/components/RadioLabel/RadioLabel.d.ts +7 -0
- package/build/components/RadioLabel/RadioLabel.js +34 -0
- package/build/components/RadioLabel/index.d.ts +3 -0
- package/build/components/RadioLabel/index.js +2 -0
- package/build/constants/app.js +5 -17
- package/build/constants/dummy.d.ts +5 -0
- package/build/constants/dummy.js +8 -0
- package/build/features/bank/Bank.js +1 -1
- package/build/features/business/Business.js +1 -1
- package/build/features/business/screens/Activities/Activities.js +14 -40
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +6 -0
- package/build/features/business/screens/Activities/OperationStartDate.js +31 -0
- package/build/features/business/screens/Activities/SalesChannels.js +3 -10
- package/build/features/business/screens/Activities/validation.d.ts +3 -0
- package/build/features/business/screens/Activities/validation.js +3 -2
- package/build/features/business/screens/BusinessType/BusinessType.js +2 -2
- package/build/features/business/screens/IDBOD/DOB.d.ts +2 -1
- package/build/features/business/screens/IDBOD/DOB.js +4 -1
- package/build/features/business/screens/IDBOD/ID.js +7 -48
- package/build/features/business/screens/IDBOD/IDBOD.js +9 -41
- package/build/features/business/screens/IDBOD/validation.js +2 -2
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/MID/BusinessCountry.js +3 -3
- package/build/features/connect/screens/MID/IDNumber.js +9 -6
- package/build/features/connect/screens/MID/MID.js +2 -2
- package/build/features/connect/screens/MID/MobileNumber.js +7 -15
- package/build/features/connect/screens/MID/validation.d.ts +1 -1
- package/build/features/connect/screens/MID/validation.js +5 -3
- package/build/features/connect/screens/Merchant/BrandName.js +2 -2
- package/build/features/connect/screens/Merchant/TAC.js +1 -1
- package/build/features/connect/screens/OTP/OTP.js +1 -1
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +12 -7
- package/build/features/owner/Owner.js +1 -1
- package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.d.ts +8 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.js +77 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.d.ts +10 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.js +80 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.js +35 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.js +45 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.js +35 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.d.ts +6 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.js +45 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.d.ts +9 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.js +85 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/index.d.ts +3 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/index.js +2 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/validation.d.ts +25 -0
- package/build/features/owner/screens/AdditionalOwnerInfo/validation.js +32 -0
- package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +1 -1
- package/build/features/password/Password.js +1 -1
- package/build/features/shared/ExpandIcon/ExpandIcon.js +1 -1
- package/build/features/shared/Footer/Footer.js +1 -1
- package/build/features/shared/Input/Input.d.ts +0 -1
- package/build/features/shared/Input/Input.js +2 -5
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -0
- package/build/features/shared/Mandatory/Mandatory.js +20 -0
- package/build/features/shared/Mandatory/index.d.ts +2 -0
- package/build/features/shared/Mandatory/index.js +2 -0
- package/build/features/shared/OTP/OTP.js +2 -2
- package/build/index.css +128 -1
- package/build/theme/typography.js +2 -2
- package/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +6 -0
- package/package.json +1 -1
package/build/index.css
CHANGED
|
@@ -1,8 +1,135 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
|
|
2
2
|
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
|
|
3
3
|
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
|
|
5
|
+
@import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
8
|
+
v2.0 | 20110126
|
|
9
|
+
License: none (public domain)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
html,
|
|
13
|
+
body,
|
|
14
|
+
div,
|
|
15
|
+
span,
|
|
16
|
+
applet,
|
|
17
|
+
object,
|
|
18
|
+
iframe,
|
|
19
|
+
h1,
|
|
20
|
+
h2,
|
|
21
|
+
h3,
|
|
22
|
+
h4,
|
|
23
|
+
h5,
|
|
24
|
+
h6,
|
|
25
|
+
p,
|
|
26
|
+
blockquote,
|
|
27
|
+
pre,
|
|
28
|
+
a,
|
|
29
|
+
abbr,
|
|
30
|
+
acronym,
|
|
31
|
+
address,
|
|
32
|
+
big,
|
|
33
|
+
cite,
|
|
34
|
+
code,
|
|
35
|
+
del,
|
|
36
|
+
dfn,
|
|
37
|
+
em,
|
|
38
|
+
img,
|
|
39
|
+
ins,
|
|
40
|
+
kbd,
|
|
41
|
+
q,
|
|
42
|
+
s,
|
|
43
|
+
samp,
|
|
44
|
+
small,
|
|
45
|
+
strike,
|
|
46
|
+
strong,
|
|
47
|
+
sub,
|
|
48
|
+
sup,
|
|
49
|
+
tt,
|
|
50
|
+
var,
|
|
51
|
+
b,
|
|
52
|
+
u,
|
|
53
|
+
i,
|
|
54
|
+
center,
|
|
55
|
+
dl,
|
|
56
|
+
dt,
|
|
57
|
+
dd,
|
|
58
|
+
ol,
|
|
59
|
+
ul,
|
|
60
|
+
li,
|
|
61
|
+
fieldset,
|
|
62
|
+
form,
|
|
63
|
+
label,
|
|
64
|
+
legend,
|
|
65
|
+
table,
|
|
66
|
+
caption,
|
|
67
|
+
tbody,
|
|
68
|
+
tfoot,
|
|
69
|
+
thead,
|
|
70
|
+
tr,
|
|
71
|
+
th,
|
|
72
|
+
td,
|
|
73
|
+
article,
|
|
74
|
+
aside,
|
|
75
|
+
canvas,
|
|
76
|
+
details,
|
|
77
|
+
embed,
|
|
78
|
+
figure,
|
|
79
|
+
figcaption,
|
|
80
|
+
footer,
|
|
81
|
+
header,
|
|
82
|
+
hgroup,
|
|
83
|
+
menu,
|
|
84
|
+
nav,
|
|
85
|
+
output,
|
|
86
|
+
ruby,
|
|
87
|
+
section,
|
|
88
|
+
summary,
|
|
89
|
+
time,
|
|
90
|
+
mark,
|
|
91
|
+
audio,
|
|
92
|
+
video {
|
|
6
93
|
margin: 0;
|
|
7
94
|
padding: 0;
|
|
95
|
+
border: 0;
|
|
96
|
+
font-size: 100%;
|
|
97
|
+
font: inherit;
|
|
98
|
+
vertical-align: baseline;
|
|
99
|
+
}
|
|
100
|
+
/* HTML5 display-role reset for older browsers */
|
|
101
|
+
article,
|
|
102
|
+
aside,
|
|
103
|
+
details,
|
|
104
|
+
figcaption,
|
|
105
|
+
figure,
|
|
106
|
+
footer,
|
|
107
|
+
header,
|
|
108
|
+
hgroup,
|
|
109
|
+
menu,
|
|
110
|
+
nav,
|
|
111
|
+
section {
|
|
112
|
+
display: block;
|
|
113
|
+
}
|
|
114
|
+
body {
|
|
115
|
+
line-height: 1;
|
|
116
|
+
}
|
|
117
|
+
ol,
|
|
118
|
+
ul {
|
|
119
|
+
list-style: none;
|
|
120
|
+
}
|
|
121
|
+
blockquote,
|
|
122
|
+
q {
|
|
123
|
+
quotes: none;
|
|
124
|
+
}
|
|
125
|
+
blockquote:before,
|
|
126
|
+
blockquote:after,
|
|
127
|
+
q:before,
|
|
128
|
+
q:after {
|
|
129
|
+
content: '';
|
|
130
|
+
content: none;
|
|
131
|
+
}
|
|
132
|
+
table {
|
|
133
|
+
border-collapse: collapse;
|
|
134
|
+
border-spacing: 0;
|
|
8
135
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export var typography = {
|
|
2
2
|
htmlFontSize: 16,
|
|
3
|
-
fontFamily: '"Lato", "
|
|
3
|
+
fontFamily: '"Lato", "Tajawal", "Roboto"',
|
|
4
4
|
fontSize: 14,
|
|
5
5
|
fontWeightLight: 300,
|
|
6
6
|
fontWeightRegular: 400,
|
|
7
7
|
fontWeightMedium: 500,
|
|
8
8
|
fontWeightBold: 700,
|
|
9
9
|
allVariants: {
|
|
10
|
-
fontFamily: '"Lato", "
|
|
10
|
+
fontFamily: '"Lato", "Tajawal", "Roboto"',
|
|
11
11
|
fontSize: '0.875rem',
|
|
12
12
|
lineHeight: 'normal',
|
|
13
13
|
fontStyle: 'normal',
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare const isNumber: (value: string) => boolean;
|
|
2
2
|
export declare const removeAllCharsFromNumber: (str: string) => string;
|
|
3
|
+
export declare const removeOnlyNumbers: (str: string) => string;
|
|
3
4
|
export declare const removeAllOtherThanAlphabet: (str: string) => string;
|
|
4
5
|
export declare const removeAllNumberFromChars: (str: string) => string;
|
|
5
6
|
export declare const keepEmailCharacters: (str: string) => string;
|
|
6
7
|
export declare const removeAllOtherThanCharsAndNumber: (str: string) => string;
|
|
8
|
+
export declare const removeAllOtherThanCharsNumbersAndSpace: (str: string) => string;
|
|
7
9
|
export declare function PasswordMatchLength(password: string): boolean;
|
|
8
10
|
export declare function isPasswordHasUpperLetter(password: string): boolean;
|
|
9
11
|
export declare function isPasswordHasLowerLetter(password: string): boolean;
|
|
@@ -4,6 +4,9 @@ export var isNumber = function (value) {
|
|
|
4
4
|
export var removeAllCharsFromNumber = function (str) {
|
|
5
5
|
return str.replace(/[^0-9]/g, '');
|
|
6
6
|
};
|
|
7
|
+
export var removeOnlyNumbers = function (str) {
|
|
8
|
+
return str.replace(/[^\D]/g, '');
|
|
9
|
+
};
|
|
7
10
|
export var removeAllOtherThanAlphabet = function (str) {
|
|
8
11
|
return str.replace(/[^[A-Za-z]/g, '');
|
|
9
12
|
};
|
|
@@ -16,6 +19,9 @@ export var keepEmailCharacters = function (str) {
|
|
|
16
19
|
export var removeAllOtherThanCharsAndNumber = function (str) {
|
|
17
20
|
return str.replace(/[^A-Za-z0-9]/g, '');
|
|
18
21
|
};
|
|
22
|
+
export var removeAllOtherThanCharsNumbersAndSpace = function (str) {
|
|
23
|
+
return str.replace(/[^A-Za-z0-9 ]/g, '');
|
|
24
|
+
};
|
|
19
25
|
export function PasswordMatchLength(password) {
|
|
20
26
|
return password.length > 7;
|
|
21
27
|
}
|