@tap-payments/os-micro-frontend-shared 0.1.9 → 0.1.11-test.1
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/constants/assets.d.ts +9 -7
- package/build/constants/assets.js +12 -10
- package/package.json +3 -3
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare const lightUrl: string;
|
|
2
2
|
export declare const appBaseUrl: string;
|
|
3
3
|
export declare const functionBaseUrl: string;
|
|
4
|
+
export declare const getLightUrlIcon: (source: string) => string;
|
|
5
|
+
export declare const getPaymentMethodsIcon: (source: string) => string;
|
|
6
|
+
export declare const getPaymentIssuersIcon: (source: string) => string;
|
|
7
|
+
export declare const getCountriesIcon: (source: string) => string;
|
|
8
|
+
export declare const getServiceFunctionIcon: (functionCode: string) => string;
|
|
9
|
+
export declare const getCurrenciesIcon: (currency: string) => string;
|
|
10
|
+
export declare const getAuthorityIcon: (authority: string) => string;
|
|
4
11
|
export declare const SARIconImage: string;
|
|
5
12
|
export declare const DirhamIconImage: string;
|
|
6
13
|
export declare const abandonedIcon: string;
|
|
@@ -360,11 +367,6 @@ export declare const brandPlaceholderIcon: string;
|
|
|
360
367
|
export declare const usersIcon: string;
|
|
361
368
|
export declare const clipboardIcon: string;
|
|
362
369
|
export declare const noAgreementIcon: string;
|
|
363
|
-
export declare const getPaymentMethodsIcon: (source: string) => string;
|
|
364
|
-
export declare const getPaymentIssuersIcon: (source: string) => string;
|
|
365
|
-
export declare const getCountriesIcon: (source: string) => string;
|
|
366
|
-
export declare const getCurrenciesIcon: (currency: string) => string;
|
|
367
|
-
export declare const getAuthorityIcon: (authority: string) => string;
|
|
368
370
|
export declare const acceptanceWindowIcon: string;
|
|
369
371
|
export declare const walletWindowIcon: string;
|
|
370
372
|
export declare const billingWindowIcon: string;
|
|
@@ -424,7 +426,6 @@ export declare const redVerifyIcon: string;
|
|
|
424
426
|
export declare const closedVerifyIcon: string;
|
|
425
427
|
export declare const archivedVerifyIcon: string;
|
|
426
428
|
export declare const penIcon: string;
|
|
427
|
-
export declare const getServiceFunctionIcon: (functionCode: string) => string;
|
|
428
429
|
export declare const listShadowBg: string;
|
|
429
430
|
export declare const defaultCountryIcon: string;
|
|
430
431
|
export declare const defaultDeviceIcon: string;
|
|
@@ -514,4 +515,5 @@ export declare const dashedOutlinedCircle: string;
|
|
|
514
515
|
export declare const deactivatedCircle: string;
|
|
515
516
|
export declare const exclamationOutlinedCircle: string;
|
|
516
517
|
export declare const outlinedCircle: string;
|
|
517
|
-
export declare const
|
|
518
|
+
export declare const radioButtonChecked: string;
|
|
519
|
+
export declare const radioButtonUnchecked: string;
|
|
@@ -2,6 +2,16 @@ const cdnUrl = 'https://cdn.tap.company/tap-assets';
|
|
|
2
2
|
export const lightUrl = `${cdnUrl}/icons/dashboard/light`;
|
|
3
3
|
export const appBaseUrl = `${lightUrl}/other`;
|
|
4
4
|
export const functionBaseUrl = `${lightUrl}/function`;
|
|
5
|
+
export const getLightUrlIcon = (source) => `${lightUrl}/${source}.svg`;
|
|
6
|
+
export const getPaymentMethodsIcon = (source) => `${lightUrl}/payment-method/v2/${source}.svg`;
|
|
7
|
+
export const getPaymentIssuersIcon = (source) => `${lightUrl}/payment-issuer/${source}.svg`;
|
|
8
|
+
export const getCountriesIcon = (source) => `${lightUrl}/country/${source}.svg`;
|
|
9
|
+
export const getServiceFunctionIcon = (functionCode) => `${lightUrl}/function/${functionCode}.svg`;
|
|
10
|
+
export const getCurrenciesIcon = (currency) => `${cdnUrl}/currency/v2/light/${currency}.svg`;
|
|
11
|
+
export const getAuthorityIcon = (authority) => {
|
|
12
|
+
const authorityWithoutSpaces = authority.replace(/\s/g, '');
|
|
13
|
+
return `${cdnUrl}/icons/dashboard/light/authority/v2/${authorityWithoutSpaces}.svg`;
|
|
14
|
+
};
|
|
5
15
|
export const SARIconImage = `${lightUrl}/currency/sar.svg`;
|
|
6
16
|
export const DirhamIconImage = `${lightUrl}/currency/dirham.svg`;
|
|
7
17
|
export const abandonedIcon = `${lightUrl}/abandoned.svg`;
|
|
@@ -361,14 +371,6 @@ export const brandPlaceholderIcon = `${lightUrl}/brandPlaceholder.svg`;
|
|
|
361
371
|
export const usersIcon = `${lightUrl}/users-icons.svg`;
|
|
362
372
|
export const clipboardIcon = `${lightUrl}/Board-Icons.svg`;
|
|
363
373
|
export const noAgreementIcon = `${appBaseUrl}/No Agreement.svg`;
|
|
364
|
-
export const getPaymentMethodsIcon = (source) => `${lightUrl}/payment-method/v2/${source}.svg`;
|
|
365
|
-
export const getPaymentIssuersIcon = (source) => `${lightUrl}/payment-issuer/${source}.svg`;
|
|
366
|
-
export const getCountriesIcon = (source) => `${lightUrl}/country/${source}.svg`;
|
|
367
|
-
export const getCurrenciesIcon = (currency) => `${cdnUrl}/currency/v2/light/${currency}.svg`;
|
|
368
|
-
export const getAuthorityIcon = (authority) => {
|
|
369
|
-
const authorityWithoutSpaces = authority.replace(/\s/g, '');
|
|
370
|
-
return `${cdnUrl}/icons/dashboard/light/authority/v2/${authorityWithoutSpaces}.svg`;
|
|
371
|
-
};
|
|
372
374
|
export const acceptanceWindowIcon = `${lightUrl}/window/acceptance.svg`;
|
|
373
375
|
export const walletWindowIcon = `${lightUrl}/window/wallet.svg`;
|
|
374
376
|
export const billingWindowIcon = `${lightUrl}/window/billing.svg`;
|
|
@@ -428,7 +430,6 @@ export const redVerifyIcon = `${lightUrl}/redVerifyIcon.svg`;
|
|
|
428
430
|
export const closedVerifyIcon = `${lightUrl}/closedVerifyIcon.svg`;
|
|
429
431
|
export const archivedVerifyIcon = `${lightUrl}/archivedVerifyIcon.svg`;
|
|
430
432
|
export const penIcon = `${lightUrl}/penIcon.svg`;
|
|
431
|
-
export const getServiceFunctionIcon = (functionCode) => `${lightUrl}/function/${functionCode}.svg`;
|
|
432
433
|
export const listShadowBg = `${appBaseUrl}/listShadow.svg`;
|
|
433
434
|
export const defaultCountryIcon = `${lightUrl}/defaultCountryIcon.svg`;
|
|
434
435
|
export const defaultDeviceIcon = `${lightUrl}/defaultDeviceIcon.svg`;
|
|
@@ -518,4 +519,5 @@ export const dashedOutlinedCircle = `${lightUrl}/dashedOutlinedCircle.svg`;
|
|
|
518
519
|
export const deactivatedCircle = `${lightUrl}/deactivatedCircle.svg`;
|
|
519
520
|
export const exclamationOutlinedCircle = `${lightUrl}/exclamationOutlinedCircle.svg`;
|
|
520
521
|
export const outlinedCircle = `${lightUrl}/outlinedCircle.svg`;
|
|
521
|
-
export const
|
|
522
|
+
export const radioButtonChecked = `${lightUrl}/radioButtonChecked.svg`;
|
|
523
|
+
export const radioButtonUnchecked = `${lightUrl}/radioButtonUnchecked.svg`;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.11-test.1",
|
|
5
|
+
"testVersion": 1,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -131,4 +131,4 @@
|
|
|
131
131
|
"publishConfig": {
|
|
132
132
|
"registry": "https://registry.npmjs.org/"
|
|
133
133
|
}
|
|
134
|
-
}
|
|
134
|
+
}
|