@tap-payments/os-micro-frontend-shared 0.1.319-test.3 → 0.1.320
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/components/AnimatedSpinnerIcon/style.d.ts +1 -0
- package/build/components/Chip/style.d.ts +1 -0
- package/build/components/CountBadge/style.d.ts +1 -0
- package/build/components/Dialog/style.d.ts +1 -0
- package/build/components/FlippingCard/style.d.ts +1 -0
- package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
- package/build/components/JSONViewer/style.d.ts +1 -0
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
- package/build/components/SearchButton/styles.d.ts +1 -0
- package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
- package/build/components/StatusIcons/IssuerIcon/IssuerIcon.js +1 -2
- package/build/components/StatusIcons/SourceIcons/components/SourceIcon.d.ts +5 -4
- package/build/components/StatusIcons/SourceIcons/components/SourceIcon.js +3 -19
- package/build/components/StatusIcons/SourceIcons/style.d.ts +3 -3
- package/build/components/StatusIcons/SourceIcons/style.js +6 -2
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AgreementCell/AgreementCell.js +2 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -266
- package/build/components/TableCells/CustomCells/AgreementCell/style.js +0 -22
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/LinkCell/LinkCell.d.ts +7 -0
- package/build/components/TableCells/CustomCells/LinkCell/LinkCell.js +23 -0
- package/build/components/TableCells/CustomCells/LinkCell/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/LinkCell/index.js +1 -0
- package/build/components/TableCells/CustomCells/LinkCell/style.d.ts +7 -0
- package/build/components/TableCells/CustomCells/LinkCell/style.js +19 -0
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/SourceCell.d.ts +3 -5
- package/build/components/TableCells/CustomCells/SourceCell/SourceCell.js +76 -30
- package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +2 -3
- package/build/components/TableCells/CustomCells/SourceCell/index.js +2 -3
- package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +270 -0
- package/build/components/TableCells/CustomCells/SourceCell/style.js +42 -0
- package/build/components/TableCells/CustomCells/SourceCell/utils.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/utils.js +8 -0
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.js +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/type.d.ts +1 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
- package/build/components/TableReports/style.d.ts +1 -0
- package/build/components/VirtualTables/components/style.d.ts +1 -0
- package/package.json +3 -3
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/PaymentAgreement.d.ts +0 -2
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/PaymentAgreement.js +0 -7
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.d.ts +0 -18
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.js +0 -9
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/PaymentCardNumber.d.ts +0 -10
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/PaymentCardNumber.js +0 -12
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.d.ts +0 -2
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.js +0 -6
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.d.ts +0 -7
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.js +0 -7
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/PaymentInitiated.d.ts +0 -5
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/PaymentInitiated.js +0 -5
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.d.ts +0 -7
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.js +0 -7
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.d.ts +0 -3
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.js +0 -11
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.d.ts +0 -6
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.js +0 -11
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.d.ts +0 -3
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.js +0 -11
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.js +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/components/index.d.ts +0 -9
- package/build/components/TableCells/CustomCells/SourceCell/components/index.js +0 -9
- package/build/components/TableCells/CustomCells/SourceCell/constant.d.ts +0 -4
- package/build/components/TableCells/CustomCells/SourceCell/constant.js +0 -11
- package/build/components/TableCells/CustomCells/SourceCell/type.d.ts +0 -17
- package/build/components/TableCells/CustomCells/SourceCell/type.js +0 -12
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: "Global" | "Regional" | "Local" | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -4,7 +4,7 @@ import type { Charge, TableMode } from '../../../types/index.js';
|
|
|
4
4
|
import { getGeographyBoxColor } from '../../../utils/index.js';
|
|
5
5
|
import type { ActionType, FlagType } from './ActionCell';
|
|
6
6
|
export type GeographyBoxVariant = keyof ReturnType<typeof getGeographyBoxColor>;
|
|
7
|
-
export type
|
|
7
|
+
export type PaymentMethod = 'VISA' | 'card' | 'MASTERCARD' | 'APPLE_PAY' | 'KNET' | 'MADA';
|
|
8
8
|
export interface DateCellBaseProps extends TableCellProps {
|
|
9
9
|
value: string | Date;
|
|
10
10
|
format?: object;
|
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.320",
|
|
5
|
+
"testVersion": 0,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"registry": "https://registry.npmjs.org/"
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { AgreementIcon } from '../../../../../index.js';
|
|
3
|
-
export function PaymentAgreement({ type, hasSavedCard, totalPaymentsCount }) {
|
|
4
|
-
if (!type)
|
|
5
|
-
return null;
|
|
6
|
-
return _jsx(AgreementIcon, { type: type, hasSavedCard: hasSavedCard, totalPaymentsCount: totalPaymentsCount });
|
|
7
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAgreement';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAgreement';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AuthenticationStatus } from '../../../../../../types/index.js';
|
|
2
|
-
import { AuthenticationType } from '../../../../../index.js';
|
|
3
|
-
interface PaymentAuthProps {
|
|
4
|
-
authType?: AuthenticationType;
|
|
5
|
-
isECIShown?: boolean;
|
|
6
|
-
isAuthenticationTypeShown?: boolean;
|
|
7
|
-
authentication?: {
|
|
8
|
-
acsEci: string;
|
|
9
|
-
transaction_status: 'Y' | 'A' | 'N' | 'R' | 'U';
|
|
10
|
-
id: string;
|
|
11
|
-
status: AuthenticationStatus;
|
|
12
|
-
threeDSecure?: {
|
|
13
|
-
status: AuthenticationStatus;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare function PaymentAuth({ authType, authentication, isECIShown, isAuthenticationTypeShown }: PaymentAuthProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
-
export {};
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { AuthIcons } from '../../../../../index.js';
|
|
3
|
-
export function PaymentAuth({ authType, authentication, isECIShown, isAuthenticationTypeShown }) {
|
|
4
|
-
var _a;
|
|
5
|
-
const eci = authentication === null || authentication === void 0 ? void 0 : authentication.acsEci;
|
|
6
|
-
if (!eci && !authType)
|
|
7
|
-
return null;
|
|
8
|
-
return (_jsx(AuthIcons, { transactionStatus: (authentication === null || authentication === void 0 ? void 0 : authentication.status) || ((_a = authentication === null || authentication === void 0 ? void 0 : authentication.threeDSecure) === null || _a === void 0 ? void 0 : _a.status), eci: isECIShown ? eci : undefined, authType: isAuthenticationTypeShown ? authType : undefined }));
|
|
9
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAuth';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentAuth';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface PaymentCardNumberProps {
|
|
2
|
-
card: {
|
|
3
|
-
last_four: string;
|
|
4
|
-
};
|
|
5
|
-
paymentMethod?: string;
|
|
6
|
-
paymentScheme?: string;
|
|
7
|
-
paymentType?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function PaymentCardNumber({ card, paymentMethod, paymentType, paymentScheme }: PaymentCardNumberProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import camelCase from 'lodash/camelCase';
|
|
4
|
-
import { Tooltip } from '../../../../../index.js';
|
|
5
|
-
import { Number } from './style';
|
|
6
|
-
export function PaymentCardNumber({ card, paymentMethod, paymentType, paymentScheme }) {
|
|
7
|
-
const { t } = useTranslation();
|
|
8
|
-
if (!card.last_four)
|
|
9
|
-
return null;
|
|
10
|
-
const title = `${t(camelCase(paymentMethod !== paymentScheme ? paymentScheme : paymentType))} - ${card === null || card === void 0 ? void 0 : card.last_four}`;
|
|
11
|
-
return (_jsx(Tooltip, Object.assign({ title: title }, { children: _jsxs(Number, { children: ["\u00B7\u00B7\u00B7 ", card === null || card === void 0 ? void 0 : card.last_four] }) })));
|
|
12
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentCardNumber';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentCardNumber';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Number: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface PaymentDeviceProps {
|
|
2
|
-
deviceType?: 'DESKTOP' | 'PHONE' | 'TABLET';
|
|
3
|
-
deviceCountry?: string;
|
|
4
|
-
regionCode?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function PaymentDevice({ deviceType, deviceCountry, regionCode }: PaymentDeviceProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export {};
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { DeviceIconChip, isDeviceIconShown } from '../../../../../index.js';
|
|
3
|
-
export function PaymentDevice({ deviceType, deviceCountry, regionCode }) {
|
|
4
|
-
if (!isDeviceIconShown(deviceType) && !regionCode)
|
|
5
|
-
return null;
|
|
6
|
-
return _jsx(DeviceIconChip, { deviceType: deviceType, deviceCountry: deviceCountry });
|
|
7
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentDevice';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentDevice';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { CustomerInitiatedIcon } from '../../../../../index.js';
|
|
3
|
-
export function PaymentInitiated({ isCustomerInitiated }) {
|
|
4
|
-
return _jsx(_Fragment, { children: isCustomerInitiated === false && _jsx(CustomerInitiatedIcon, {}) });
|
|
5
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentInitiated';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentInitiated';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { IssuerIcon } from '../../../../../index.js';
|
|
3
|
-
export function PaymentIssuer({ countryCode, cardNumber, bankName }) {
|
|
4
|
-
if (!countryCode && !cardNumber && !bankName)
|
|
5
|
-
return null;
|
|
6
|
-
return _jsx(IssuerIcon, { countryCode: countryCode, cardNumber: cardNumber, bankName: bankName });
|
|
7
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentIssuer';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentIssuer';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import camelCase from 'lodash/camelCase';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { getPaymentMethodKey, SourceIcon } from '../../../../../index.js';
|
|
5
|
-
export function PaymentMethod({ method }) {
|
|
6
|
-
var _a;
|
|
7
|
-
const { t } = useTranslation();
|
|
8
|
-
if (!method)
|
|
9
|
-
return null;
|
|
10
|
-
return _jsx(SourceIcon, { source: (_a = getPaymentMethodKey(method)) !== null && _a !== void 0 ? _a : method, title: `Payment Method - ${t(camelCase(method))}` });
|
|
11
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentMethod';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentMethod';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import camelCase from 'lodash/camelCase';
|
|
4
|
-
import { SourceIcon, getPaymentMethodKey } from '../../../../../index.js';
|
|
5
|
-
export function PaymentScheme({ scheme, method }) {
|
|
6
|
-
var _a;
|
|
7
|
-
const { t } = useTranslation();
|
|
8
|
-
if (!scheme || method === scheme)
|
|
9
|
-
return null;
|
|
10
|
-
return _jsx(SourceIcon, { source: (_a = getPaymentMethodKey(scheme)) !== null && _a !== void 0 ? _a : scheme, title: `Payment Scheme - ${t(camelCase(scheme))}` });
|
|
11
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentScheme';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentScheme';
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import camelCase from 'lodash/camelCase';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { getPaymentMethodKey, SourceIcon } from '../../../../../index.js';
|
|
5
|
-
export function PaymentType({ type }) {
|
|
6
|
-
var _a, _b;
|
|
7
|
-
const { t } = useTranslation();
|
|
8
|
-
if (!type)
|
|
9
|
-
return null;
|
|
10
|
-
return _jsx(SourceIcon, { source: (_b = (_a = getPaymentMethodKey(type)) !== null && _a !== void 0 ? _a : type) !== null && _b !== void 0 ? _b : '', title: `Payment Type - ${t(camelCase(type))}` });
|
|
11
|
-
}
|
package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentType';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PaymentType';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './PaymentCardNumber';
|
|
2
|
-
export * from './PaymentMethod';
|
|
3
|
-
export * from './PaymentType';
|
|
4
|
-
export * from './PaymentScheme';
|
|
5
|
-
export * from './PaymentAgreement';
|
|
6
|
-
export * from './PaymentAuth';
|
|
7
|
-
export * from './PaymentDevice';
|
|
8
|
-
export * from './PaymentIssuer';
|
|
9
|
-
export * from './PaymentInitiated';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './PaymentCardNumber';
|
|
2
|
-
export * from './PaymentMethod';
|
|
3
|
-
export * from './PaymentType';
|
|
4
|
-
export * from './PaymentScheme';
|
|
5
|
-
export * from './PaymentAgreement';
|
|
6
|
-
export * from './PaymentAuth';
|
|
7
|
-
export * from './PaymentDevice';
|
|
8
|
-
export * from './PaymentIssuer';
|
|
9
|
-
export * from './PaymentInitiated';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CENTER_ICON_KEY } from './type';
|
|
2
|
-
export declare const RIGHT_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
3
|
-
export declare const LEFT_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE];
|
|
4
|
-
export declare const CENTER_ICON_PRIORITY: readonly [CENTER_ICON_KEY.PAYMENT_METHOD, CENTER_ICON_KEY.PAYMENT_TYPE, CENTER_ICON_KEY.PAYMENT_SCHEME, CENTER_ICON_KEY.PAYMENT_CARD_NUMBER, CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE, CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CENTER_ICON_KEY } from './type';
|
|
2
|
-
export const RIGHT_ICON_PRIORITY = [CENTER_ICON_KEY.PAYMENT_AUTH, CENTER_ICON_KEY.PAYMENT_AGREEMENT];
|
|
3
|
-
export const LEFT_ICON_PRIORITY = [CENTER_ICON_KEY.PAYMENT_ISSUER, CENTER_ICON_KEY.PAYMENT_INITIATED, CENTER_ICON_KEY.PAYMENT_DEVICE];
|
|
4
|
-
export const CENTER_ICON_PRIORITY = [
|
|
5
|
-
CENTER_ICON_KEY.PAYMENT_METHOD,
|
|
6
|
-
CENTER_ICON_KEY.PAYMENT_TYPE,
|
|
7
|
-
CENTER_ICON_KEY.PAYMENT_SCHEME,
|
|
8
|
-
CENTER_ICON_KEY.PAYMENT_CARD_NUMBER,
|
|
9
|
-
...LEFT_ICON_PRIORITY,
|
|
10
|
-
...RIGHT_ICON_PRIORITY,
|
|
11
|
-
];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CENTER_ICON_PRIORITY } from './constant';
|
|
3
|
-
export declare enum CENTER_ICON_KEY {
|
|
4
|
-
PAYMENT_METHOD = "paymentMethod",
|
|
5
|
-
PAYMENT_TYPE = "paymentType",
|
|
6
|
-
PAYMENT_SCHEME = "paymentScheme",
|
|
7
|
-
PAYMENT_CARD_NUMBER = "paymentCardNumber",
|
|
8
|
-
PAYMENT_ISSUER = "paymentIssuer",
|
|
9
|
-
PAYMENT_INITIATED = "paymentInitiated",
|
|
10
|
-
PAYMENT_DEVICE = "paymentDevice",
|
|
11
|
-
PAYMENT_AUTH = "paymentAuth",
|
|
12
|
-
PAYMENT_AGREEMENT = "paymentAgreement"
|
|
13
|
-
}
|
|
14
|
-
export type CenterIconPropName = (typeof CENTER_ICON_PRIORITY)[number];
|
|
15
|
-
export type StatusCellProps = {
|
|
16
|
-
[K in CenterIconPropName]?: React.ReactNode;
|
|
17
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export var CENTER_ICON_KEY;
|
|
2
|
-
(function (CENTER_ICON_KEY) {
|
|
3
|
-
CENTER_ICON_KEY["PAYMENT_METHOD"] = "paymentMethod";
|
|
4
|
-
CENTER_ICON_KEY["PAYMENT_TYPE"] = "paymentType";
|
|
5
|
-
CENTER_ICON_KEY["PAYMENT_SCHEME"] = "paymentScheme";
|
|
6
|
-
CENTER_ICON_KEY["PAYMENT_CARD_NUMBER"] = "paymentCardNumber";
|
|
7
|
-
CENTER_ICON_KEY["PAYMENT_ISSUER"] = "paymentIssuer";
|
|
8
|
-
CENTER_ICON_KEY["PAYMENT_INITIATED"] = "paymentInitiated";
|
|
9
|
-
CENTER_ICON_KEY["PAYMENT_DEVICE"] = "paymentDevice";
|
|
10
|
-
CENTER_ICON_KEY["PAYMENT_AUTH"] = "paymentAuth";
|
|
11
|
-
CENTER_ICON_KEY["PAYMENT_AGREEMENT"] = "paymentAgreement";
|
|
12
|
-
})(CENTER_ICON_KEY || (CENTER_ICON_KEY = {}));
|