@tap-payments/os-micro-frontend-shared 0.1.9-test.1 → 0.1.10

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.
@@ -55,7 +55,7 @@ function SourceMergedCell(_a) {
55
55
  } }, { children: _jsx(StatusContainer, Object.assign({ animate: isHovering ? 'hover' : 'initial', onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false), initial: "initial", sx: {
56
56
  minHeight: '20px',
57
57
  maxWidth: '55px',
58
- }, isReversed: isReversed }, { children: _jsxs(_Fragment, { children: [collapsedViewIcon && (_jsx(CollapsedViewIcon, { hasPreviousIcon: hasPreviousIcon, hasNextIcon: hasNextIcon, isTextShown: isTextShown, collapsedViewIcon: collapsedViewIcon, sx: props.sx }, 'collapsedViewIcon')), iconsList === null || iconsList === void 0 ? void 0 : iconsList.map((icon, index) => {
58
+ }, isReversed: isReversed }, { children: _jsxs(_Fragment, { children: [_jsx(CollapsedViewIcon, { hasPreviousIcon: hasPreviousIcon, hasNextIcon: hasNextIcon, isTextShown: isTextShown, collapsedViewIcon: collapsedViewIcon, sx: props.sx }, 'collapsedViewIcon'), iconsList === null || iconsList === void 0 ? void 0 : iconsList.map((icon, index) => {
59
59
  if (!icon)
60
60
  return;
61
61
  const tableMode = isTextShown ? 'text' : 'default';
@@ -9,7 +9,7 @@ export interface SourceMergedCellProps extends TableCellProps {
9
9
  }[];
10
10
  isTextShown?: boolean;
11
11
  centerIconKey?: SourceMergedCellIcons;
12
- collapsedViewIcon?: {
12
+ collapsedViewIcon: {
13
13
  key: SourceMergedCellIcons;
14
14
  icon: React.ReactNode;
15
15
  };
@@ -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;
@@ -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`;
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.9-test.1",
5
- "testVersion": 1,
4
+ "version": "0.1.10",
5
+ "testVersion": 0,
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
+ }