@tap-payments/auth-jsconnect 2.11.0-beta → 2.11.1-beta
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/README.md +2 -2
- package/build/assets/currencies/AEDSymbol.d.ts +7 -0
- package/build/assets/currencies/AEDSymbol.js +28 -0
- package/build/assets/currencies/index.d.ts +2 -2
- package/build/assets/currencies/index.js +2 -2
- package/build/assets/currencies/utils.js +3 -1
- package/build/components/TextWithCurrency/TextWithCurrency.js +1 -1
- package/build/constants/assets.d.ts +11 -6
- package/build/constants/assets.js +118 -107
- package/build/constants/dummy.js +27 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ const App = () => {
|
|
|
77
77
|
<meta charset="utf-8" />
|
|
78
78
|
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
|
|
79
79
|
<title>Auth-JsConnect</title>
|
|
80
|
-
<script src="https://auth-jsconnect
|
|
81
|
-
<link href="https://auth-jsconnect
|
|
80
|
+
<script src="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.js"></script>
|
|
81
|
+
<link href="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.css" rel="stylesheet" />
|
|
82
82
|
</head>
|
|
83
83
|
<body>
|
|
84
84
|
<div id="root"></div>
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
var AEDSymbol = function (_a) {
|
|
25
|
+
var _b = _a.height, height = _b === void 0 ? 10 : _b, svgProps = __rest(_a, ["height"]);
|
|
26
|
+
return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 344.84 299.91' }, svgProps, { children: _jsx("path", { d: 'M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z' }) })) })));
|
|
27
|
+
};
|
|
28
|
+
export default AEDSymbol;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export {
|
|
1
|
+
import { CURRENCY_ICON } from './utils';
|
|
2
|
+
export { CURRENCY_ICON };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export {
|
|
1
|
+
import { CURRENCY_ICON } from './utils';
|
|
2
|
+
export { CURRENCY_ICON };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getCurrencyByCountryIso2 } from '../../utils';
|
|
3
|
-
import { CURRENCY_ICON } from '../../assets/currencies
|
|
3
|
+
import { CURRENCY_ICON } from '../../assets/currencies';
|
|
4
4
|
var TextWithCurrency = function (_a) {
|
|
5
5
|
var text = _a.text, countryCode = _a.countryCode;
|
|
6
6
|
if (!countryCode)
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const ASSETS_BASE_URL = "https://tap-assets.b-cdn.net";
|
|
4
|
-
export declare const ASSETS_PATH = "/icons/connect";
|
|
5
|
-
export declare const ICONS_EXTENSION = ".svg";
|
|
1
|
+
export declare const SVG_ICON_EXTENSION = ".svg";
|
|
2
|
+
export declare const PNG_ICON_EXTENSION = ".png";
|
|
6
3
|
export declare const ICONS_FULL_PATH: string;
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const BACKEND_ICONS_FULL_PATH: string;
|
|
5
|
+
export declare const ASSETS_DASHBOARD_FULL_PATH: string;
|
|
8
6
|
export declare const ICONS_NAMES: {
|
|
9
7
|
SIDE_MENU_CLOSE_ICON: string;
|
|
10
8
|
SIDE_MENU_CLOSE_ICON_DARK: string;
|
|
@@ -107,9 +105,16 @@ export declare const ICONS_NAMES: {
|
|
|
107
105
|
entity_green_icon: string;
|
|
108
106
|
entity_white_icon: string;
|
|
109
107
|
brand_filled_icon: string;
|
|
108
|
+
terminal_filled_icon: string;
|
|
109
|
+
terminal_green_icon: string;
|
|
110
|
+
terminal_white_icon: string;
|
|
110
111
|
Arrow_filled_right_icon: string;
|
|
111
112
|
Arrow_green_right_icon: string;
|
|
112
113
|
Arrow_white_right_icon: string;
|
|
113
114
|
account_not_found: string;
|
|
114
115
|
email_icon: string;
|
|
116
|
+
terminal_device: string;
|
|
117
|
+
device_image: string;
|
|
118
|
+
platform_image: string;
|
|
119
|
+
radio_checked: string;
|
|
115
120
|
};
|
|
@@ -1,118 +1,129 @@
|
|
|
1
1
|
import { ThemeMode } from '../@types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export var
|
|
8
|
-
export var
|
|
9
|
-
var
|
|
2
|
+
var CDN_BASE_URL = 'https://cdn.tap.company';
|
|
3
|
+
var TAP_ASSETS_PATH = '/tap-assets/icons';
|
|
4
|
+
var DASHBOARD_PATH = '/dashboard/icons/menu';
|
|
5
|
+
var ASSETS_PATH = TAP_ASSETS_PATH + '/connect';
|
|
6
|
+
var BACKEND_ASSETS_PATH = '/back-end';
|
|
7
|
+
export var SVG_ICON_EXTENSION = '.svg';
|
|
8
|
+
export var PNG_ICON_EXTENSION = '.png';
|
|
9
|
+
export var ICONS_FULL_PATH = CDN_BASE_URL + DASHBOARD_PATH;
|
|
10
|
+
var ASSETS_FULL_PATH = CDN_BASE_URL + ASSETS_PATH;
|
|
11
|
+
export var BACKEND_ICONS_FULL_PATH = CDN_BASE_URL + BACKEND_ASSETS_PATH;
|
|
12
|
+
export var ASSETS_DASHBOARD_FULL_PATH = CDN_BASE_URL + TAP_ASSETS_PATH + '/dashboard/light';
|
|
13
|
+
var generateAssetPath = function (name, theme) { return "".concat(ASSETS_FULL_PATH, "/").concat(theme, "/").concat(name).concat(SVG_ICON_EXTENSION); };
|
|
10
14
|
var generateLightAssetPath = function (name) { return generateAssetPath(name, ThemeMode.LIGHT); };
|
|
11
15
|
export var ICONS_NAMES = {
|
|
12
|
-
SIDE_MENU_CLOSE_ICON: ICONS_FULL_PATH + '/side-menu-close' +
|
|
13
|
-
SIDE_MENU_CLOSE_ICON_DARK: ICONS_FULL_PATH + '/side-menu-close-dark' +
|
|
14
|
-
THREE_LINES_ICON: ICONS_FULL_PATH + '/three-lines' +
|
|
15
|
-
THREE_LINES_ICON_DARK: ICONS_FULL_PATH + '/three-lines-dark' +
|
|
16
|
-
TAP_LOGO_ICON_AR: ICONS_FULL_PATH + '/tap-ar-logo' +
|
|
17
|
-
TAP_LOGO_ICON_AR_DARK: ICONS_FULL_PATH + '/tap-ar-logo-dark' +
|
|
18
|
-
TAP_LOGO_ICON_EN: ICONS_FULL_PATH + '/tap-en-logo' +
|
|
19
|
-
TAP_LOGO_ICON_EN_DARK: ICONS_FULL_PATH + '/tap-en-logo-dark' +
|
|
20
|
-
DOWN_ARROW_ICON: ICONS_FULL_PATH + '/popup_arrow' +
|
|
21
|
-
DOWN_ARROW_ICON_DARK: ICONS_FULL_PATH + '/popup_arrow_dark' +
|
|
22
|
-
CLEAR_ICON: ICONS_FULL_PATH + '/clear' +
|
|
23
|
-
LOGO_ICON: ICONS_FULL_PATH + '/tap_logo_icon' +
|
|
24
|
-
LOGO_WITH_NAME_WHITE_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_en' +
|
|
25
|
-
LOGO_WITH_NAME_WHITE_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_ar' +
|
|
26
|
-
LOGO_WITH_NAME_DARK_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_en' +
|
|
27
|
-
LOGO_WITH_NAME_DARK_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_ar' +
|
|
28
|
-
WEB_ICON: ICONS_FULL_PATH + '/website' +
|
|
29
|
-
WEB_ACTIVE_ICON: ICONS_FULL_PATH + '/website-active' +
|
|
30
|
-
TWITTER_ICON: ICONS_FULL_PATH + '/twitter-icon' +
|
|
31
|
-
TWITTER_ACTIVE_ICON: ICONS_FULL_PATH + '/twitter-active-icon' +
|
|
32
|
-
INSTAGRAM_ICON: ICONS_FULL_PATH + '/insta' +
|
|
33
|
-
INSTAGRAM_ACTIVE_ICON: ICONS_FULL_PATH + '/insta-active' +
|
|
34
|
-
APP_APPLE_ICON: ICONS_FULL_PATH + '/apple' +
|
|
35
|
-
APP_APPLE_ACTIVE_ICON: ICONS_FULL_PATH + '/apple-active' +
|
|
36
|
-
APP_ANDROID_ICON: ICONS_FULL_PATH + '/play-store' +
|
|
37
|
-
APP_ANDROID_ACTIVE_ICON: ICONS_FULL_PATH + '/play-store-active' +
|
|
38
|
-
PHYSICAL_STORE_ICON: ICONS_FULL_PATH + '/physical-store' +
|
|
39
|
-
PHYSICAL_STORE_ACTIVE_ICON: ICONS_FULL_PATH + '/physical-store-active' +
|
|
40
|
-
CALL_CENTER_ICON: ICONS_FULL_PATH + '/call-center' +
|
|
41
|
-
CALL_CENTER_ACTIVE_ICON: ICONS_FULL_PATH + '/call-center-active' +
|
|
42
|
-
FL_ICON: ICONS_FULL_PATH + '/fl' +
|
|
43
|
-
FL_ACTIVE_ICON: ICONS_FULL_PATH + '/fl_active' +
|
|
44
|
-
CR_ICON: ICONS_FULL_PATH + '/cr' +
|
|
45
|
-
CR_ACTIVE_ICON: ICONS_FULL_PATH + '/cr_active' +
|
|
46
|
-
TAP_LOGO_EN_ICON: ICONS_FULL_PATH + '/tap-white-logo' +
|
|
47
|
-
TAP_LOGO_TEXT_AR: ICONS_FULL_PATH + '/tap-white-text-ar' +
|
|
48
|
-
TAP_LOGO_TEXT_EN: ICONS_FULL_PATH + '/tap-white-text-en' +
|
|
16
|
+
SIDE_MENU_CLOSE_ICON: ICONS_FULL_PATH + '/side-menu-close' + SVG_ICON_EXTENSION,
|
|
17
|
+
SIDE_MENU_CLOSE_ICON_DARK: ICONS_FULL_PATH + '/side-menu-close-dark' + SVG_ICON_EXTENSION,
|
|
18
|
+
THREE_LINES_ICON: ICONS_FULL_PATH + '/three-lines' + SVG_ICON_EXTENSION,
|
|
19
|
+
THREE_LINES_ICON_DARK: ICONS_FULL_PATH + '/three-lines-dark' + SVG_ICON_EXTENSION,
|
|
20
|
+
TAP_LOGO_ICON_AR: ICONS_FULL_PATH + '/tap-ar-logo' + SVG_ICON_EXTENSION,
|
|
21
|
+
TAP_LOGO_ICON_AR_DARK: ICONS_FULL_PATH + '/tap-ar-logo-dark' + SVG_ICON_EXTENSION,
|
|
22
|
+
TAP_LOGO_ICON_EN: ICONS_FULL_PATH + '/tap-en-logo' + SVG_ICON_EXTENSION,
|
|
23
|
+
TAP_LOGO_ICON_EN_DARK: ICONS_FULL_PATH + '/tap-en-logo-dark' + SVG_ICON_EXTENSION,
|
|
24
|
+
DOWN_ARROW_ICON: ICONS_FULL_PATH + '/popup_arrow' + SVG_ICON_EXTENSION,
|
|
25
|
+
DOWN_ARROW_ICON_DARK: ICONS_FULL_PATH + '/popup_arrow_dark' + SVG_ICON_EXTENSION,
|
|
26
|
+
CLEAR_ICON: ICONS_FULL_PATH + '/clear' + SVG_ICON_EXTENSION,
|
|
27
|
+
LOGO_ICON: ICONS_FULL_PATH + '/tap_logo_icon' + SVG_ICON_EXTENSION,
|
|
28
|
+
LOGO_WITH_NAME_WHITE_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_en' + SVG_ICON_EXTENSION,
|
|
29
|
+
LOGO_WITH_NAME_WHITE_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_white_ar' + SVG_ICON_EXTENSION,
|
|
30
|
+
LOGO_WITH_NAME_DARK_EN_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_en' + SVG_ICON_EXTENSION,
|
|
31
|
+
LOGO_WITH_NAME_DARK_AR_ICON: ICONS_FULL_PATH + '/tap_logo_with_name_dark_ar' + SVG_ICON_EXTENSION,
|
|
32
|
+
WEB_ICON: ICONS_FULL_PATH + '/website' + SVG_ICON_EXTENSION,
|
|
33
|
+
WEB_ACTIVE_ICON: ICONS_FULL_PATH + '/website-active' + SVG_ICON_EXTENSION,
|
|
34
|
+
TWITTER_ICON: ICONS_FULL_PATH + '/twitter-icon' + SVG_ICON_EXTENSION,
|
|
35
|
+
TWITTER_ACTIVE_ICON: ICONS_FULL_PATH + '/twitter-active-icon' + SVG_ICON_EXTENSION,
|
|
36
|
+
INSTAGRAM_ICON: ICONS_FULL_PATH + '/insta' + SVG_ICON_EXTENSION,
|
|
37
|
+
INSTAGRAM_ACTIVE_ICON: ICONS_FULL_PATH + '/insta-active' + SVG_ICON_EXTENSION,
|
|
38
|
+
APP_APPLE_ICON: ICONS_FULL_PATH + '/apple' + SVG_ICON_EXTENSION,
|
|
39
|
+
APP_APPLE_ACTIVE_ICON: ICONS_FULL_PATH + '/apple-active' + SVG_ICON_EXTENSION,
|
|
40
|
+
APP_ANDROID_ICON: ICONS_FULL_PATH + '/play-store' + SVG_ICON_EXTENSION,
|
|
41
|
+
APP_ANDROID_ACTIVE_ICON: ICONS_FULL_PATH + '/play-store-active' + SVG_ICON_EXTENSION,
|
|
42
|
+
PHYSICAL_STORE_ICON: ICONS_FULL_PATH + '/physical-store' + SVG_ICON_EXTENSION,
|
|
43
|
+
PHYSICAL_STORE_ACTIVE_ICON: ICONS_FULL_PATH + '/physical-store-active' + SVG_ICON_EXTENSION,
|
|
44
|
+
CALL_CENTER_ICON: ICONS_FULL_PATH + '/call-center' + SVG_ICON_EXTENSION,
|
|
45
|
+
CALL_CENTER_ACTIVE_ICON: ICONS_FULL_PATH + '/call-center-active' + SVG_ICON_EXTENSION,
|
|
46
|
+
FL_ICON: ICONS_FULL_PATH + '/fl' + SVG_ICON_EXTENSION,
|
|
47
|
+
FL_ACTIVE_ICON: ICONS_FULL_PATH + '/fl_active' + SVG_ICON_EXTENSION,
|
|
48
|
+
CR_ICON: ICONS_FULL_PATH + '/cr' + SVG_ICON_EXTENSION,
|
|
49
|
+
CR_ACTIVE_ICON: ICONS_FULL_PATH + '/cr_active' + SVG_ICON_EXTENSION,
|
|
50
|
+
TAP_LOGO_EN_ICON: ICONS_FULL_PATH + '/tap-white-logo' + SVG_ICON_EXTENSION,
|
|
51
|
+
TAP_LOGO_TEXT_AR: ICONS_FULL_PATH + '/tap-white-text-ar' + SVG_ICON_EXTENSION,
|
|
52
|
+
TAP_LOGO_TEXT_EN: ICONS_FULL_PATH + '/tap-white-text-en' + SVG_ICON_EXTENSION,
|
|
49
53
|
PACI_VERIFY_ICON: ICONS_FULL_PATH + '/PACI_verify_icon' + '.png',
|
|
50
54
|
NAFATH_LOGO: generateLightAssetPath('nafath_button_logo'),
|
|
51
55
|
NAFATH_VERIFY_ICON: generateLightAssetPath('nafath_logo'),
|
|
52
56
|
EXPRESS_ERROR_ICON: ICONS_FULL_PATH + '/EXPRESS_error_icon' + '.svg',
|
|
53
57
|
TAP_LOGO: generateLightAssetPath('tap-logo'),
|
|
54
|
-
TAP_EN: 'https://tap
|
|
55
|
-
TAP_AR: 'https://tap
|
|
58
|
+
TAP_EN: 'https://cdn.tap.company/tap-connect/imgs/tapEN' + SVG_ICON_EXTENSION,
|
|
59
|
+
TAP_AR: 'https://cdn.tap.company/tap-connect/imgs/tapAR' + SVG_ICON_EXTENSION,
|
|
56
60
|
ID_IMAGE: 'https://villageofwarwick.org/wp-content/uploads/2020/02/ICON99-512-1.png',
|
|
57
61
|
MOBILE_IMAGE: 'https://image.shutterstock.com/image-vector/smartphone-icon-logo-260nw-767440327.jpg',
|
|
58
|
-
WHITE_ARROW: 'https://tap
|
|
59
|
-
BLACK_ARROW: 'https://
|
|
60
|
-
BLUE_ARROW: 'https://
|
|
61
|
-
GREEN_ARROW: 'https://
|
|
62
|
-
REQUEST_EMAIL: 'https://
|
|
63
|
-
REQUEST_EMAIL_GREEN: 'https://
|
|
64
|
-
ADD_DETAIL: 'https://
|
|
65
|
-
ADD_DETAIL_GREEN: 'https://
|
|
66
|
-
SUCCESS: 'https://
|
|
67
|
-
UNFINISHED: 'https://
|
|
68
|
-
ABSHER_LOGO: 'https://
|
|
69
|
-
EMAIL_ICON: 'https://
|
|
70
|
-
MOBILE_ICON: 'https://
|
|
71
|
-
SEARCH_ICON: 'https://
|
|
72
|
-
SUCCESS_GIF: 'https://
|
|
73
|
-
DELETE_ICON: 'https://
|
|
74
|
-
UPLOAD_ICON: 'https://
|
|
75
|
-
ACTIVE_UPLOAD_ICON: 'https://
|
|
76
|
-
WARNING_ICON: 'https://
|
|
77
|
-
ERROR_ICON: 'https://
|
|
78
|
-
DONE_ICON: 'https://
|
|
79
|
-
DOC_ICON: 'https://
|
|
80
|
-
DROP_FILE_ICON: 'https://
|
|
81
|
-
CLOSE_ICON: 'https://
|
|
82
|
-
PACI_ICON: 'https://
|
|
83
|
-
SIGNED_UP_SUCCESS: 'https://
|
|
84
|
-
SWITCH_HIJRI_CALENDER: 'https://
|
|
85
|
-
SWITCH_CALENDER: 'https://
|
|
86
|
-
GMAIL_Filled_ICON: 'https://
|
|
87
|
-
GMAIL_White_ICON: 'https://
|
|
88
|
-
outlook_Filled_ICON: 'https://
|
|
89
|
-
outlook_White_ICON: 'https://
|
|
90
|
-
Apple_Filled_ICON: 'https://
|
|
91
|
-
apple_white_icon: 'https://
|
|
92
|
-
Mail_Filled_icon: 'https://
|
|
93
|
-
Mail_white_icon: 'https://
|
|
94
|
-
tax_filled_icon: 'https://
|
|
95
|
-
tax_green_icon: 'https://
|
|
96
|
-
tax_white_icon: 'https://
|
|
97
|
-
bank_filled_icon: 'https://
|
|
98
|
-
bank_green_icon: 'https://
|
|
99
|
-
bank_white_icon: 'https://
|
|
100
|
-
individual_filled_icon: 'https://
|
|
101
|
-
individual_green_icon: 'https://
|
|
102
|
-
individual_white_icon: 'https://
|
|
103
|
-
password_filled_icon: 'https://
|
|
104
|
-
password_green_icon: 'https://
|
|
105
|
-
password_white_icon: 'https://
|
|
106
|
-
business_filled_icon: 'https://
|
|
107
|
-
business_green_icon: 'https://
|
|
108
|
-
business_white_icon: 'https://
|
|
109
|
-
entity_filled_icon: 'https://
|
|
110
|
-
entity_green_icon: 'https://
|
|
111
|
-
entity_white_icon: 'https://
|
|
112
|
-
brand_filled_icon: 'https://
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
62
|
+
WHITE_ARROW: 'https://cdn.tap.company/tap-connect/imgs/whiteArrow.svg',
|
|
63
|
+
BLACK_ARROW: 'https://cdn.tap.company/dashboard/icons/menu/arrow_right_icon.svg',
|
|
64
|
+
BLUE_ARROW: 'https://cdn.tap.company/dashboard/icons/menu/blue_arrow_next.svg',
|
|
65
|
+
GREEN_ARROW: 'https://cdn.tap.company/dashboard/icons/menu/green_arrow_next.svg',
|
|
66
|
+
REQUEST_EMAIL: 'https://cdn.tap.company/dashboard/icons/menu/request_email.svg',
|
|
67
|
+
REQUEST_EMAIL_GREEN: 'https://cdn.tap.company/dashboard/icons/menu/request_email_green.svg',
|
|
68
|
+
ADD_DETAIL: 'https://cdn.tap.company/dashboard/icons/menu/add_detail.svg',
|
|
69
|
+
ADD_DETAIL_GREEN: 'https://cdn.tap.company/dashboard/icons/menu/add_detail_green.svg',
|
|
70
|
+
SUCCESS: 'https://cdn.tap.company/dashboard/icons/menu/image.png',
|
|
71
|
+
UNFINISHED: 'https://cdn.tap.company/dashboard/icons/menu/not-finished.png',
|
|
72
|
+
ABSHER_LOGO: 'https://cdn.tap.company/dashboard/icons/menu/Absher.svg',
|
|
73
|
+
EMAIL_ICON: 'https://cdn.tap.company/dashboard/icons/menu/email.png',
|
|
74
|
+
MOBILE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/mobile.svg',
|
|
75
|
+
SEARCH_ICON: 'https://cdn.tap.company/dashboard/icons/menu/search-icon.svg',
|
|
76
|
+
SUCCESS_GIF: 'https://cdn.tap.company/dashboard/icons/menu/success_icon.gif',
|
|
77
|
+
DELETE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/delete-icon.png',
|
|
78
|
+
UPLOAD_ICON: 'https://cdn.tap.company/dashboard/icons/menu/upload-file.svg',
|
|
79
|
+
ACTIVE_UPLOAD_ICON: 'https://cdn.tap.company/dashboard/icons/menu/active-upload-icon.png',
|
|
80
|
+
WARNING_ICON: 'https://cdn.tap.company/dashboard/icons/menu/warning-icon.svg',
|
|
81
|
+
ERROR_ICON: 'https://cdn.tap.company/dashboard/icons/menu/upload_error_icon.svg',
|
|
82
|
+
DONE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/done.svg',
|
|
83
|
+
DOC_ICON: 'https://cdn.tap.company/dashboard/icons/menu/document-icon.svg',
|
|
84
|
+
DROP_FILE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/upload-file-sample.svg',
|
|
85
|
+
CLOSE_ICON: 'https://cdn.tap.company/dashboard/icons/menu/close-btn.svg',
|
|
86
|
+
PACI_ICON: 'https://cdn.tap.company/dashboard/icons/menu/PACI-filled.svg',
|
|
87
|
+
SIGNED_UP_SUCCESS: 'https://cdn.tap.company/dashboard/icons/menu/signed_up_success.svg',
|
|
88
|
+
SWITCH_HIJRI_CALENDER: 'https://cdn.tap.company/dashboard/icons/menu/switch_hijri_calender.svg',
|
|
89
|
+
SWITCH_CALENDER: 'https://cdn.tap.company/dashboard/icons/menu/calender_icon.svg',
|
|
90
|
+
GMAIL_Filled_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Gmail-filled.svg',
|
|
91
|
+
GMAIL_White_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Gmail-white.svg',
|
|
92
|
+
outlook_Filled_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Outlook-filled.svg',
|
|
93
|
+
outlook_White_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Outlook-white.svg',
|
|
94
|
+
Apple_Filled_ICON: 'https://cdn.tap.company/dashboard/icons/menu/Apple-mail-filled.svg',
|
|
95
|
+
apple_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/Apple-mail-white.svg',
|
|
96
|
+
Mail_Filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/Mail-filled.svg',
|
|
97
|
+
Mail_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/Mail-white.svg',
|
|
98
|
+
tax_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/tax-filled-blue.svg',
|
|
99
|
+
tax_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/tax-filled-green.svg',
|
|
100
|
+
tax_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/tax-white.svg',
|
|
101
|
+
bank_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/bank-filled-blue.svg',
|
|
102
|
+
bank_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/bank-filled-green.svg',
|
|
103
|
+
bank_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/bank-white.svg',
|
|
104
|
+
individual_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/user-filled-blue.svg',
|
|
105
|
+
individual_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/user-filled-green.svg',
|
|
106
|
+
individual_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/user-white.svg',
|
|
107
|
+
password_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/password-filled-blue.svg',
|
|
108
|
+
password_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/password-filled-green.svg',
|
|
109
|
+
password_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/password-white.svg',
|
|
110
|
+
business_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-blue.svg',
|
|
111
|
+
business_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-green.svg',
|
|
112
|
+
business_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-white.svg',
|
|
113
|
+
entity_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-blue.svg',
|
|
114
|
+
entity_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-filled-green.svg',
|
|
115
|
+
entity_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/business-white.svg',
|
|
116
|
+
brand_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/brand-icon.svg',
|
|
117
|
+
terminal_filled_icon: 'https://cdn.tap.company/dashboard/icons/menu/terminal-filled-blue.svg',
|
|
118
|
+
terminal_green_icon: 'https://cdn.tap.company/dashboard/icons/menu/terminal-filled-green.svg',
|
|
119
|
+
terminal_white_icon: 'https://cdn.tap.company/dashboard/icons/menu/terminal-white.svg',
|
|
120
|
+
Arrow_filled_right_icon: 'https://cdn.tap.company/dashboard/icons/menu/right-arrow-filled-blue.svg',
|
|
121
|
+
Arrow_green_right_icon: 'https://cdn.tap.company/dashboard/icons/menu/right-arrow-filled-green.svg',
|
|
122
|
+
Arrow_white_right_icon: 'https://cdn.tap.company/dashboard/icons/menu/right-arrow-white.svg',
|
|
123
|
+
account_not_found: 'https://cdn.tap.company/tap-connect/imgs/account_not_found.svg',
|
|
124
|
+
email_icon: 'https://cdn.tap.company/tap-connect/imgs/email_outlined.svg',
|
|
125
|
+
terminal_device: 'https://cdn.tap.company/tap-assets/icons/connect/light/terminal_device.svg',
|
|
126
|
+
device_image: 'https://cdn.tap.company/tap-assets/icons/connect/light/device_default.svg',
|
|
127
|
+
platform_image: 'https://cdn.tap.company/tap-assets/icons/connect/light/platform_default.svg',
|
|
128
|
+
radio_checked: 'https://cdn.tap.company/tap-assets/icons/connect/light/radio_checked.svg'
|
|
118
129
|
};
|
package/build/constants/dummy.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { ASSETS_DASHBOARD_FULL_PATH, BACKEND_ICONS_FULL_PATH, PNG_ICON_EXTENSION, SVG_ICON_EXTENSION } from './assets';
|
|
2
|
+
var getCountryLogoSVGPath = function (country) {
|
|
3
|
+
return "".concat(ASSETS_DASHBOARD_FULL_PATH, "/country/").concat(country).concat(SVG_ICON_EXTENSION);
|
|
4
|
+
};
|
|
5
|
+
var getCountryLogoPNGPath = function (country) {
|
|
6
|
+
return "".concat(BACKEND_ICONS_FULL_PATH, "/country/png/").concat(country).concat(PNG_ICON_EXTENSION);
|
|
7
|
+
};
|
|
1
8
|
export var OTHER_BRAND = {
|
|
2
9
|
id: 'other',
|
|
3
10
|
code: 'other',
|
|
@@ -358,7 +365,7 @@ export var defaultCountry = {
|
|
|
358
365
|
capital: 'Riyadh',
|
|
359
366
|
geoNameId: '102358',
|
|
360
367
|
idd_prefix: 966,
|
|
361
|
-
logo: '
|
|
368
|
+
logo: getCountryLogoPNGPath('SA'),
|
|
362
369
|
digits: 10,
|
|
363
370
|
supported_by_tap: true,
|
|
364
371
|
min_digits: 10,
|
|
@@ -608,7 +615,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
608
615
|
iso2: 'SA',
|
|
609
616
|
iso3: 'SAU',
|
|
610
617
|
idd_prefix: '966',
|
|
611
|
-
logo: '
|
|
618
|
+
logo: getCountryLogoSVGPath('SA'),
|
|
612
619
|
min_digits: 10,
|
|
613
620
|
max_digits: 10
|
|
614
621
|
}
|
|
@@ -623,7 +630,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
623
630
|
iso2: 'BH',
|
|
624
631
|
iso3: 'BHR',
|
|
625
632
|
idd_prefix: '973',
|
|
626
|
-
logo: '
|
|
633
|
+
logo: getCountryLogoSVGPath('BH'),
|
|
627
634
|
min_digits: 8,
|
|
628
635
|
max_digits: 8
|
|
629
636
|
}
|
|
@@ -638,7 +645,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
638
645
|
iso2: 'EG',
|
|
639
646
|
iso3: 'EGY',
|
|
640
647
|
idd_prefix: '20',
|
|
641
|
-
logo: '
|
|
648
|
+
logo: getCountryLogoSVGPath('EG'),
|
|
642
649
|
min_digits: 10,
|
|
643
650
|
max_digits: 10
|
|
644
651
|
}
|
|
@@ -653,7 +660,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
653
660
|
iso2: 'JO',
|
|
654
661
|
iso3: 'JOR',
|
|
655
662
|
idd_prefix: '962',
|
|
656
|
-
logo: '
|
|
663
|
+
logo: getCountryLogoSVGPath('JO'),
|
|
657
664
|
min_digits: 9,
|
|
658
665
|
max_digits: 9
|
|
659
666
|
}
|
|
@@ -668,7 +675,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
668
675
|
iso2: 'KW',
|
|
669
676
|
iso3: 'KWT',
|
|
670
677
|
idd_prefix: '965',
|
|
671
|
-
logo: '
|
|
678
|
+
logo: getCountryLogoSVGPath('KW'),
|
|
672
679
|
min_digits: 8,
|
|
673
680
|
max_digits: 8
|
|
674
681
|
}
|
|
@@ -683,7 +690,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
683
690
|
iso2: 'LB',
|
|
684
691
|
iso3: 'LBN',
|
|
685
692
|
idd_prefix: '961',
|
|
686
|
-
logo: '
|
|
693
|
+
logo: getCountryLogoSVGPath('LB'),
|
|
687
694
|
min_digits: 7,
|
|
688
695
|
max_digits: 8
|
|
689
696
|
}
|
|
@@ -698,7 +705,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
698
705
|
iso2: 'OM',
|
|
699
706
|
iso3: 'OMN',
|
|
700
707
|
idd_prefix: '968',
|
|
701
|
-
logo: '
|
|
708
|
+
logo: getCountryLogoSVGPath('OM'),
|
|
702
709
|
min_digits: 7,
|
|
703
710
|
max_digits: 8
|
|
704
711
|
}
|
|
@@ -713,7 +720,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
713
720
|
iso2: 'QA',
|
|
714
721
|
iso3: 'QAT',
|
|
715
722
|
idd_prefix: '974',
|
|
716
|
-
logo: '
|
|
723
|
+
logo: getCountryLogoSVGPath('QA'),
|
|
717
724
|
min_digits: 8,
|
|
718
725
|
max_digits: 8
|
|
719
726
|
}
|
|
@@ -728,7 +735,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
728
735
|
iso2: 'AE',
|
|
729
736
|
iso3: 'ARE',
|
|
730
737
|
idd_prefix: '971',
|
|
731
|
-
logo: '
|
|
738
|
+
logo: getCountryLogoSVGPath('AE'),
|
|
732
739
|
min_digits: 9,
|
|
733
740
|
max_digits: 9
|
|
734
741
|
}
|
|
@@ -750,7 +757,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
750
757
|
iso2: 'GB',
|
|
751
758
|
iso3: 'GBR',
|
|
752
759
|
idd_prefix: '44',
|
|
753
|
-
logo: '
|
|
760
|
+
logo: getCountryLogoSVGPath('GB'),
|
|
754
761
|
min_digits: 10,
|
|
755
762
|
max_digits: 10
|
|
756
763
|
}
|
|
@@ -765,7 +772,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
765
772
|
iso2: 'IE',
|
|
766
773
|
iso3: 'IRL',
|
|
767
774
|
idd_prefix: '353',
|
|
768
|
-
logo: '
|
|
775
|
+
logo: getCountryLogoSVGPath('IE'),
|
|
769
776
|
min_digits: 10,
|
|
770
777
|
max_digits: 10
|
|
771
778
|
}
|
|
@@ -780,7 +787,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
780
787
|
iso2: 'FR',
|
|
781
788
|
iso3: 'FRA',
|
|
782
789
|
idd_prefix: '33',
|
|
783
|
-
logo: '
|
|
790
|
+
logo: getCountryLogoSVGPath('FR'),
|
|
784
791
|
min_digits: 9,
|
|
785
792
|
max_digits: 9
|
|
786
793
|
}
|
|
@@ -795,7 +802,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
795
802
|
iso2: 'NL',
|
|
796
803
|
iso3: 'NLD',
|
|
797
804
|
idd_prefix: '31',
|
|
798
|
-
logo: '
|
|
805
|
+
logo: getCountryLogoSVGPath('NL'),
|
|
799
806
|
min_digits: 9,
|
|
800
807
|
max_digits: 9
|
|
801
808
|
}
|
|
@@ -810,7 +817,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
810
817
|
iso2: 'DE',
|
|
811
818
|
iso3: 'DEU',
|
|
812
819
|
idd_prefix: '49',
|
|
813
|
-
logo: '
|
|
820
|
+
logo: getCountryLogoSVGPath('DE'),
|
|
814
821
|
min_digits: 11,
|
|
815
822
|
max_digits: 11
|
|
816
823
|
}
|
|
@@ -825,7 +832,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
825
832
|
iso2: 'ES',
|
|
826
833
|
iso3: 'ESP',
|
|
827
834
|
idd_prefix: '34',
|
|
828
|
-
logo: '
|
|
835
|
+
logo: getCountryLogoSVGPath('ES'),
|
|
829
836
|
min_digits: 9,
|
|
830
837
|
max_digits: 9
|
|
831
838
|
}
|
|
@@ -840,7 +847,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
840
847
|
iso2: 'IT',
|
|
841
848
|
iso3: 'ITA',
|
|
842
849
|
idd_prefix: '39',
|
|
843
|
-
logo: '
|
|
850
|
+
logo: getCountryLogoSVGPath('IT'),
|
|
844
851
|
min_digits: 11,
|
|
845
852
|
max_digits: 11
|
|
846
853
|
}
|
|
@@ -862,7 +869,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
862
869
|
iso2: 'PK',
|
|
863
870
|
iso3: 'PAK',
|
|
864
871
|
idd_prefix: '92',
|
|
865
|
-
logo: '
|
|
872
|
+
logo: getCountryLogoSVGPath('PK'),
|
|
866
873
|
min_digits: 10,
|
|
867
874
|
max_digits: 10
|
|
868
875
|
}
|
|
@@ -877,7 +884,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
877
884
|
iso2: 'IN',
|
|
878
885
|
iso3: 'IND',
|
|
879
886
|
idd_prefix: '91',
|
|
880
|
-
logo: '
|
|
887
|
+
logo: getCountryLogoSVGPath('IN'),
|
|
881
888
|
min_digits: 10,
|
|
882
889
|
max_digits: 10
|
|
883
890
|
}
|
|
@@ -899,7 +906,7 @@ export var BUSINESS_COUNTRIES = [
|
|
|
899
906
|
iso2: 'SG',
|
|
900
907
|
iso3: 'SGP',
|
|
901
908
|
idd_prefix: '65',
|
|
902
|
-
logo: '
|
|
909
|
+
logo: getCountryLogoSVGPath('SG'),
|
|
903
910
|
min_digits: 8,
|
|
904
911
|
max_digits: 8
|
|
905
912
|
}
|