@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.
Files changed (110) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -0
  2. package/build/components/Chip/style.d.ts +1 -0
  3. package/build/components/CountBadge/style.d.ts +1 -0
  4. package/build/components/Dialog/style.d.ts +1 -0
  5. package/build/components/FlippingCard/style.d.ts +1 -0
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
  7. package/build/components/JSONViewer/style.d.ts +1 -0
  8. package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
  9. package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
  10. package/build/components/SearchButton/styles.d.ts +1 -0
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
  13. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
  14. package/build/components/StatusIcons/IssuerIcon/IssuerIcon.js +1 -2
  15. package/build/components/StatusIcons/SourceIcons/components/SourceIcon.d.ts +5 -4
  16. package/build/components/StatusIcons/SourceIcons/components/SourceIcon.js +3 -19
  17. package/build/components/StatusIcons/SourceIcons/style.d.ts +3 -3
  18. package/build/components/StatusIcons/SourceIcons/style.js +6 -2
  19. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
  20. package/build/components/TableCells/CustomCells/AgreementCell/AgreementCell.js +2 -1
  21. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -266
  22. package/build/components/TableCells/CustomCells/AgreementCell/style.js +0 -22
  23. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
  24. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
  25. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
  26. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
  27. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
  28. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
  29. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
  30. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
  31. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
  32. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
  33. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
  34. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
  35. package/build/components/TableCells/CustomCells/LinkCell/LinkCell.d.ts +7 -0
  36. package/build/components/TableCells/CustomCells/LinkCell/LinkCell.js +23 -0
  37. package/build/components/TableCells/CustomCells/LinkCell/index.d.ts +1 -0
  38. package/build/components/TableCells/CustomCells/LinkCell/index.js +1 -0
  39. package/build/components/TableCells/CustomCells/LinkCell/style.d.ts +7 -0
  40. package/build/components/TableCells/CustomCells/LinkCell/style.js +19 -0
  41. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
  42. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
  43. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
  44. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
  45. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
  46. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
  47. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
  48. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
  49. package/build/components/TableCells/CustomCells/SourceCell/SourceCell.d.ts +3 -5
  50. package/build/components/TableCells/CustomCells/SourceCell/SourceCell.js +76 -30
  51. package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +2 -3
  52. package/build/components/TableCells/CustomCells/SourceCell/index.js +2 -3
  53. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +270 -0
  54. package/build/components/TableCells/CustomCells/SourceCell/style.js +42 -0
  55. package/build/components/TableCells/CustomCells/SourceCell/utils.d.ts +1 -0
  56. package/build/components/TableCells/CustomCells/SourceCell/utils.js +8 -0
  57. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
  58. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
  59. package/build/components/TableCells/CustomCells/index.d.ts +1 -0
  60. package/build/components/TableCells/CustomCells/index.js +1 -0
  61. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  62. package/build/components/TableCells/CustomCells/type.d.ts +1 -1
  63. package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
  64. package/build/components/TableReports/style.d.ts +1 -0
  65. package/build/components/VirtualTables/components/style.d.ts +1 -0
  66. package/package.json +3 -3
  67. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/PaymentAgreement.d.ts +0 -2
  68. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/PaymentAgreement.js +0 -7
  69. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.d.ts +0 -1
  70. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAgreement/index.js +0 -1
  71. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.d.ts +0 -18
  72. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/PaymentAuth.js +0 -9
  73. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.d.ts +0 -1
  74. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentAuth/index.js +0 -1
  75. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/PaymentCardNumber.d.ts +0 -10
  76. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/PaymentCardNumber.js +0 -12
  77. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.d.ts +0 -1
  78. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/index.js +0 -1
  79. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.d.ts +0 -2
  80. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentCardNumber/style.js +0 -6
  81. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.d.ts +0 -7
  82. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/PaymentDevice.js +0 -7
  83. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.d.ts +0 -1
  84. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentDevice/index.js +0 -1
  85. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/PaymentInitiated.d.ts +0 -5
  86. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/PaymentInitiated.js +0 -5
  87. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.d.ts +0 -1
  88. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentInitiated/index.js +0 -1
  89. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.d.ts +0 -7
  90. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/PaymentIssuer.js +0 -7
  91. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.d.ts +0 -1
  92. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentIssuer/index.js +0 -1
  93. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.d.ts +0 -3
  94. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/PaymentMethod.js +0 -11
  95. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.d.ts +0 -1
  96. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentMethod/index.js +0 -1
  97. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.d.ts +0 -6
  98. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/PaymentScheme.js +0 -11
  99. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.d.ts +0 -1
  100. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentScheme/index.js +0 -1
  101. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.d.ts +0 -3
  102. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/PaymentType.js +0 -11
  103. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.d.ts +0 -1
  104. package/build/components/TableCells/CustomCells/SourceCell/components/PaymentType/index.js +0 -1
  105. package/build/components/TableCells/CustomCells/SourceCell/components/index.d.ts +0 -9
  106. package/build/components/TableCells/CustomCells/SourceCell/components/index.js +0 -9
  107. package/build/components/TableCells/CustomCells/SourceCell/constant.d.ts +0 -4
  108. package/build/components/TableCells/CustomCells/SourceCell/constant.js +0 -11
  109. package/build/components/TableCells/CustomCells/SourceCell/type.d.ts +0 -17
  110. 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 UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -52,3 +52,4 @@ export * from './LeadStatusCell';
52
52
  export * from './PaymentAgreementCell';
53
53
  export * from './ProviderCell';
54
54
  export * from './PurposeCell';
55
+ export * from './LinkCell';
@@ -52,3 +52,4 @@ export * from './LeadStatusCell';
52
52
  export * from './PaymentAgreementCell';
53
53
  export * from './ProviderCell';
54
54
  export * from './PurposeCell';
55
+ export * from './LinkCell';
@@ -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 PaymentMethods = 'VISA' | 'card' | 'MASTERCARD' | 'APPLE_PAY' | 'KNET' | 'MADA';
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;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  type ExportButtonProps = {
3
4
  notificationState?: {
4
5
  success: boolean;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  interface TableWrapperProps {
3
4
  showNoDataView?: boolean;
4
5
  }
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.319-test.3",
5
- "testVersion": 3,
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,2 +0,0 @@
1
- import { AgreementIconProps } from '../../../../../index.js';
2
- export declare function PaymentAgreement({ type, hasSavedCard, totalPaymentsCount }: AgreementIconProps): import("react/jsx-runtime").JSX.Element | null;
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentAgreement';
@@ -1 +0,0 @@
1
- export * from './PaymentAgreement';
@@ -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 {};
@@ -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
- }
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentCardNumber';
@@ -1 +0,0 @@
1
- export * from './PaymentCardNumber';
@@ -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,6 +0,0 @@
1
- import { styled } from '@mui/material/styles';
2
- export const Number = styled('span')(({ theme }) => ({
3
- fontSize: '10px',
4
- fontWeight: 500,
5
- color: theme.palette.text.primary
6
- }));
@@ -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 {};
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentDevice';
@@ -1 +0,0 @@
1
- export * from './PaymentDevice';
@@ -1,5 +0,0 @@
1
- interface PaymentInitiatedProps {
2
- isCustomerInitiated: boolean;
3
- }
4
- export declare function PaymentInitiated({ isCustomerInitiated }: PaymentInitiatedProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentInitiated';
@@ -1 +0,0 @@
1
- export * from './PaymentInitiated';
@@ -1,7 +0,0 @@
1
- interface PaymentIssuerProps {
2
- countryCode?: string;
3
- cardNumber?: string;
4
- bankName?: string;
5
- }
6
- export declare function PaymentIssuer({ countryCode, cardNumber, bankName }: PaymentIssuerProps): import("react/jsx-runtime").JSX.Element | null;
7
- export {};
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentIssuer';
@@ -1 +0,0 @@
1
- export * from './PaymentIssuer';
@@ -1,3 +0,0 @@
1
- export declare function PaymentMethod({ method }: {
2
- method?: string;
3
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentMethod';
@@ -1 +0,0 @@
1
- export * from './PaymentMethod';
@@ -1,6 +0,0 @@
1
- interface PaymentSchemeProps {
2
- scheme: string;
3
- method: string;
4
- }
5
- export declare function PaymentScheme({ scheme, method }: PaymentSchemeProps): import("react/jsx-runtime").JSX.Element | null;
6
- export {};
@@ -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
- }
@@ -1 +0,0 @@
1
- export * from './PaymentScheme';
@@ -1 +0,0 @@
1
- export * from './PaymentScheme';
@@ -1,3 +0,0 @@
1
- export declare function PaymentType({ type }: {
2
- type?: string;
3
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -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
- }
@@ -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 = {}));