@tap-payments/os-micro-frontend-shared 0.0.296-test.1 → 0.0.296-test.1-test.2
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/LICENSE +21 -21
- package/README.md +12 -12
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +1 -3
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.js +2 -8
- package/build/components/StatusIcons/PayoutIcon/PayoutIcon.d.ts +1 -3
- package/build/components/StatusIcons/PayoutIcon/PayoutIcon.js +2 -8
- package/build/components/StatusIcons/RefundIcon/RefundIcon.d.ts +1 -3
- package/build/components/StatusIcons/RefundIcon/RefundIcon.js +1 -6
- package/build/components/TableCells/CustomCells/BrandsCell/style.js +1 -2
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +6 -13
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/constant.d.ts +0 -34
- package/build/components/TableCells/CustomCells/StatusCell/constant.js +0 -30
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +12 -12
- package/build/constants/table/cell/chargeTableCellWidth.js +12 -12
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Tap Payments
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tap Payments
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# os-micro-frontend-shared
|
|
2
|
-
|
|
3
|
-
## Publishing Workflow
|
|
4
|
-
|
|
5
|
-
1. Update version in package.json
|
|
6
|
-
2. Commit changes
|
|
7
|
-
3. Create and push a tag:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm version patch # or minor, major
|
|
11
|
-
git push origin main --tags
|
|
12
|
-
```
|
|
1
|
+
# os-micro-frontend-shared
|
|
2
|
+
|
|
3
|
+
## Publishing Workflow
|
|
4
|
+
|
|
5
|
+
1. Update version in package.json
|
|
6
|
+
2. Commit changes
|
|
7
|
+
3. Create and push a tag:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm version patch # or minor, major
|
|
11
|
+
git push origin main --tags
|
|
12
|
+
```
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { type ChargeStatus } from '../../TableCells';
|
|
3
|
-
|
|
4
|
-
export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, tableMode, showBadge, }: Readonly<{
|
|
3
|
+
export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge, }: Readonly<{
|
|
5
4
|
chargeStatus?: ChargeStatus;
|
|
6
5
|
gatewayTooltip?: string;
|
|
7
6
|
showAuthorizedStatus?: boolean;
|
|
@@ -18,5 +17,4 @@ export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquire
|
|
|
18
17
|
gatewayContainerStyles?: CSSProperties;
|
|
19
18
|
gateWayIconStyles?: CSSProperties;
|
|
20
19
|
showBadge?: boolean;
|
|
21
|
-
tableMode?: TableMode;
|
|
22
20
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,23 +5,17 @@ import { useTranslation } from 'react-i18next';
|
|
|
5
5
|
import Tooltip from '../../Tooltip';
|
|
6
6
|
import { unCapturedStatuses } from '../../../constants/index.js';
|
|
7
7
|
import { AcquirerContainerAnimationVariants, ErrorCodeLabel, ErrorCodeLabelAnimationVariants, ErrorCodeVariants, ErrorCodeWrapper, GateWayIcon, GatewayIconWrapper, GatewayIconWrapperAnimationTransition, GatewaysContainer, GatewaysContainerAnimationVariants, StatusTextLabel, UnCapturedBadge, UnCapturedContainer, errorCodeLabelAnimation, TextViewWrapper, } from './style';
|
|
8
|
-
import { capturedStatusesStyles, unCapturedStatusesStyles, statusIcons
|
|
8
|
+
import { capturedStatusesStyles, unCapturedStatusesStyles, statusIcons } from '../../TableCells/CustomCells/StatusCell/constant';
|
|
9
9
|
import { StatusIcon, StatusIconWrapper, TextLabel } from '../../TableCells/CustomCells/style';
|
|
10
|
-
|
|
11
|
-
export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, tableMode, showBadge = true, }) {
|
|
10
|
+
export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge = true, }) {
|
|
12
11
|
const unCapturedStatusStyle = chargeStatus ? unCapturedStatusesStyles[chargeStatus] : null;
|
|
13
12
|
const captureStatusStyle = chargeStatus ? capturedStatusesStyles[chargeStatus] : null;
|
|
14
|
-
const sheetViewStatusStyle = chargeStatus ? chargeSheetViewChipStyles[chargeStatus] : {};
|
|
15
13
|
const theme = useTheme();
|
|
16
14
|
const { t } = useTranslation();
|
|
17
15
|
const chargeTooltipTitle = chargeTooltip && (_jsx(_Fragment, { children: _jsx("div", { children: chargeTooltip }) }));
|
|
18
16
|
const acquirerTooltipTitle = acquirerTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Acquirer" }), _jsx("div", { children: acquirerTooltip })] }));
|
|
19
17
|
const gatewayTooltipTitle = gatewayTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Gateway" }), _jsx("div", { children: gatewayTooltip })] }));
|
|
20
18
|
const chargeIcon = chargeStatus && statusIcons[chargeStatus] && (_jsx("div", Object.assign({ "data-testid": "ChargeStatusIcon_ChargeIcon", style: Object.assign({ display: 'flex', alignItems: 'center', justifyContent: 'center', width: '16px', height: '16px', borderRadius: unCapturedStatusStyle ? '50%' : '' }, iconWrapperStyles) }, { children: _jsx(StatusIcon, { src: statusIcons[chargeStatus], alt: "charge-icon", "data-testid": "ChargeStatusIcon_StatusIcon", style: Object.assign({ borderRadius: unCapturedStatusStyle ? '50%' : '', width: '16px', height: '16px' }, iconStyles) }) })));
|
|
21
|
-
if (tableMode === 'sheet') {
|
|
22
|
-
const { background, color, border } = sheetViewStatusStyle;
|
|
23
|
-
return _jsx(StatusChip, Object.assign({ sx: { background, color, border } }, { children: t(camelCase(chargeStatus)) }));
|
|
24
|
-
}
|
|
25
19
|
if (isTextShown) {
|
|
26
20
|
return (_jsxs(TextViewWrapper, { children: [_jsx(Tooltip, Object.assign({ title: chargeTooltipTitle }, { children: _jsxs(StatusTextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: {
|
|
27
21
|
background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PayoutStatusType } from '../../TableCells';
|
|
3
|
-
import { TableMode } from '../../../types/index.js';
|
|
4
3
|
type PayoutIconProps = {
|
|
5
4
|
iconStyles?: React.CSSProperties;
|
|
6
5
|
payoutStatus?: PayoutStatusType;
|
|
7
6
|
payoutTooltip?: React.ReactNode;
|
|
8
7
|
isTextShown?: boolean;
|
|
9
|
-
tableMode?: TableMode;
|
|
10
8
|
};
|
|
11
|
-
export declare const PayoutIcon: ({ payoutStatus,
|
|
9
|
+
export declare const PayoutIcon: ({ payoutStatus, isTextShown, payoutTooltip, iconStyles }: PayoutIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
10
|
export {};
|
|
@@ -4,15 +4,9 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import Tooltip from '../../Tooltip';
|
|
5
5
|
import { StatusIcon } from '../../TableCells/CustomCells/style';
|
|
6
6
|
import { StatusTextLabel } from '../../TableCells/CustomCells/InvoiceStatusCell/style';
|
|
7
|
-
import { payoutStatusIcons
|
|
8
|
-
|
|
9
|
-
export const PayoutIcon = ({ payoutStatus = 'PENDING', tableMode, isTextShown, payoutTooltip, iconStyles }) => {
|
|
7
|
+
import { payoutStatusIcons } from '../../TableCells/CustomCells/StatusCell/constant';
|
|
8
|
+
export const PayoutIcon = ({ payoutStatus = 'PENDING', isTextShown, payoutTooltip, iconStyles }) => {
|
|
10
9
|
const { t } = useTranslation();
|
|
11
|
-
const payoutStatusStyle = payoutStatusStyles[payoutStatus];
|
|
12
|
-
if (tableMode === 'sheet') {
|
|
13
|
-
const chipText = payoutStatus === 'PENDING' ? t('scheduledPayout') : t(camelCase(payoutStatus));
|
|
14
|
-
return _jsx(StatusChip, Object.assign({ sx: Object.assign({}, payoutStatusStyle) }, { children: chipText }));
|
|
15
|
-
}
|
|
16
10
|
const title = payoutTooltip ? payoutTooltip : t(camelCase(payoutStatus));
|
|
17
11
|
return (_jsx(Tooltip, Object.assign({ title: title }, { children: isTextShown ? (_jsx(StatusTextLabel, Object.assign({ "data-testid": "StatusCell_PayoutStatusLabel" }, { children: t(camelCase(payoutStatus)) }))) : (_jsx(StatusIcon, { src: payoutStatusIcons[payoutStatus], alt: "settled-icon", "data-testid": "StatusCell_PayoutStatusIcon", style: iconStyles })) })));
|
|
18
12
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type RefundStatusType } from '../../TableCells';
|
|
3
|
-
import { TableMode } from '../../../types/index.js';
|
|
4
3
|
type RefundIconProps = {
|
|
5
4
|
iconStyles?: React.CSSProperties;
|
|
6
5
|
refundStatus?: RefundStatusType;
|
|
7
6
|
refundTooltip?: React.ReactNode;
|
|
8
7
|
refundCount?: number;
|
|
9
8
|
isTextShown?: boolean;
|
|
10
|
-
tableMode?: TableMode;
|
|
11
9
|
};
|
|
12
|
-
declare const RefundIcon: ({ isTextShown, refundStatus, refundTooltip, refundCount, iconStyles
|
|
10
|
+
declare const RefundIcon: ({ isTextShown, refundStatus, refundTooltip, refundCount, iconStyles }: RefundIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export default RefundIcon;
|
|
@@ -8,8 +8,7 @@ import { MultiRefundContainer, MultiRefundIcon, RefundsCountBadge } from '../../
|
|
|
8
8
|
import { StatusIcon } from '../../TableCells/CustomCells/style';
|
|
9
9
|
import { StatusTextLabel } from '../../TableCells/CustomCells/InvoiceStatusCell/style';
|
|
10
10
|
import { refundStatusIcons, refundStyles } from '../../TableCells/CustomCells/StatusCell/constant';
|
|
11
|
-
|
|
12
|
-
const RefundIcon = ({ isTextShown, refundStatus = 'PENDING', refundTooltip = '', refundCount, iconStyles, tableMode }) => {
|
|
11
|
+
const RefundIcon = ({ isTextShown, refundStatus = 'PENDING', refundTooltip = '', refundCount, iconStyles }) => {
|
|
13
12
|
const { t } = useTranslation();
|
|
14
13
|
const theme = useTheme();
|
|
15
14
|
const refundCountBadge = (_jsxs(RefundsCountBadge, Object.assign({ "data-testid": "StatusCell_RefundsCountBadge", initial: { width: 0, opacity: 0, padding: '0px' }, transition: {
|
|
@@ -33,10 +32,6 @@ const RefundIcon = ({ isTextShown, refundStatus = 'PENDING', refundTooltip = '',
|
|
|
33
32
|
},
|
|
34
33
|
} }, { children: [refundCount, "x"] })));
|
|
35
34
|
const refundCountShown = (refundCount || 0) > 1;
|
|
36
|
-
if (tableMode === 'sheet') {
|
|
37
|
-
const { color, backgroundColor } = refundStyles[refundStatus];
|
|
38
|
-
return (_jsx(StatusChip, Object.assign({ textColor: color, bgColor: backgroundColor }, { children: t(camelCase(refundStatus)) })));
|
|
39
|
-
}
|
|
40
35
|
return (_jsx(_Fragment, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: _jsx("div", { children: _jsx("div", { children: refundTooltip }) }) }, { children: _jsx(StatusTextLabel, Object.assign({ "data-testid": "StatusCell_RefundStatusLabel", sx: {
|
|
41
36
|
color: refundStyles[refundStatus].color,
|
|
42
37
|
backgroundColor: refundStyles[refundStatus].backgroundColor,
|
|
@@ -3,10 +3,9 @@ export const BrandsWrapper = styled('div')(({ theme }) => ({
|
|
|
3
3
|
display: 'flex',
|
|
4
4
|
alignItems: 'center',
|
|
5
5
|
gap: theme.spacing(1),
|
|
6
|
-
border: '1 solid #F2F2F2',
|
|
7
6
|
borderRadius: '44px',
|
|
8
|
-
padding: '4px 8px',
|
|
9
7
|
lineHeight: '120%',
|
|
8
|
+
cursor: 'pointer',
|
|
10
9
|
}));
|
|
11
10
|
export const BrandName = styled('div')(({ theme }) => ({
|
|
12
11
|
fontSize: '14px',
|
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import Tooltip from '../../../Tooltip';
|
|
14
14
|
import { destinationSolidIcon } from '../../../../constants/index.js';
|
|
15
15
|
import { formatAmount } from '../../../../utils/index.js';
|
|
@@ -25,19 +25,12 @@ function DestinationCell(_a) {
|
|
|
25
25
|
const firstDestinationFormattedAmount = formatAmount(((_b = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _b === void 0 ? void 0 : _b.amount) || 0);
|
|
26
26
|
const isSheetView = tableMode === 'sheet';
|
|
27
27
|
if (isSheetView) {
|
|
28
|
-
const sheetViewChips = destinations === null || destinations === void 0 ? void 0 : destinations.
|
|
28
|
+
const sheetViewChips = destinations === null || destinations === void 0 ? void 0 : destinations.map((dest) => {
|
|
29
29
|
const formattedDestAmount = formatAmount((dest === null || dest === void 0 ? void 0 : dest.amount) || 0);
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
content: dest === null || dest === void 0 ? void 0 : dest.id,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
key: 'amount',
|
|
38
|
-
content: (_jsxs(_Fragment, { children: [_jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
|
|
39
|
-
},
|
|
40
|
-
];
|
|
30
|
+
return {
|
|
31
|
+
key: 'destination',
|
|
32
|
+
content: (_jsxs(_Fragment, { children: [_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " |"] }), _jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
|
|
33
|
+
};
|
|
41
34
|
}, []);
|
|
42
35
|
return (_jsx(TableCell, Object.assign({ sx: {
|
|
43
36
|
width: 'fit-content',
|
|
@@ -32,7 +32,7 @@ function SegmentsCell(_a) {
|
|
|
32
32
|
}, onClose: () => {
|
|
33
33
|
setIsTooltipOpen(false);
|
|
34
34
|
}, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: referenceSourceAnimation(index, theme.shadows[4], isTextShown ? 83 : 0), sx: {
|
|
35
|
-
width: isTextShown ? '79px' : '
|
|
35
|
+
width: isTextShown ? '79px' : '24px',
|
|
36
36
|
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(StyledSourceImage, { src: (segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) || segmentsIcons[segment], alt: segment, sx: Object.assign(Object.assign({}, (segment === 'order' && { width: '11.82px' })), ((segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) && { borderRadius: '40px' })), onError: (e) => {
|
|
37
37
|
e.currentTarget.src = segmentsIcons[segment];
|
|
38
38
|
e.currentTarget.style.borderRadius = '0px';
|
|
@@ -38,23 +38,6 @@ export declare const payoutStatusIcons: {
|
|
|
38
38
|
SETTLED: string;
|
|
39
39
|
PENDING: string;
|
|
40
40
|
};
|
|
41
|
-
export declare const payoutStatusStyles: {
|
|
42
|
-
PAID_OUT: {
|
|
43
|
-
color: string;
|
|
44
|
-
background: string;
|
|
45
|
-
border: string;
|
|
46
|
-
};
|
|
47
|
-
SETTLED: {
|
|
48
|
-
color: string;
|
|
49
|
-
background: string;
|
|
50
|
-
border: string;
|
|
51
|
-
};
|
|
52
|
-
PENDING: {
|
|
53
|
-
color: string;
|
|
54
|
-
background: string;
|
|
55
|
-
border: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
41
|
export declare const authorizedStatusIcons: {
|
|
59
42
|
AUTHORIZED: string;
|
|
60
43
|
};
|
|
@@ -62,20 +45,3 @@ export declare const capturedStatusesStyles: Record<(typeof unCapturedStatuses)[
|
|
|
62
45
|
color: string;
|
|
63
46
|
background: string;
|
|
64
47
|
}>;
|
|
65
|
-
export declare const chargeSheetViewChipStyles: {
|
|
66
|
-
ABANDONED: {
|
|
67
|
-
color: string;
|
|
68
|
-
background: string;
|
|
69
|
-
border: string;
|
|
70
|
-
};
|
|
71
|
-
CANCELLED: {
|
|
72
|
-
color: string;
|
|
73
|
-
background: string;
|
|
74
|
-
border: string;
|
|
75
|
-
};
|
|
76
|
-
INITIATED: {
|
|
77
|
-
color: string;
|
|
78
|
-
background: string;
|
|
79
|
-
border: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
@@ -82,23 +82,6 @@ export const payoutStatusIcons = {
|
|
|
82
82
|
SETTLED: settledIcon,
|
|
83
83
|
PENDING: settlementInitiatedIcon,
|
|
84
84
|
};
|
|
85
|
-
export const payoutStatusStyles = {
|
|
86
|
-
PAID_OUT: {
|
|
87
|
-
color: '#2ACE00',
|
|
88
|
-
background: '#2ACE001A',
|
|
89
|
-
border: 'none',
|
|
90
|
-
},
|
|
91
|
-
SETTLED: {
|
|
92
|
-
color: '#2ACE00',
|
|
93
|
-
background: 'transparent',
|
|
94
|
-
border: '1px solid #2ACE0066',
|
|
95
|
-
},
|
|
96
|
-
PENDING: {
|
|
97
|
-
color: '#FF7A00',
|
|
98
|
-
background: '#FF7A000D',
|
|
99
|
-
border: 'none',
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
85
|
export const authorizedStatusIcons = {
|
|
103
86
|
AUTHORIZED: authorizedIcon,
|
|
104
87
|
};
|
|
@@ -108,16 +91,3 @@ export const capturedStatusesStyles = {
|
|
|
108
91
|
background: '#1F88D00D',
|
|
109
92
|
},
|
|
110
93
|
};
|
|
111
|
-
export const chargeSheetViewChipStyles = Object.assign(Object.assign(Object.assign({}, unCapturedStatusesStyles), capturedStatusesStyles), { ABANDONED: {
|
|
112
|
-
color: '#FFD600',
|
|
113
|
-
background: 'white',
|
|
114
|
-
border: '1px solid #FFD60080',
|
|
115
|
-
}, CANCELLED: {
|
|
116
|
-
color: '#EDC806',
|
|
117
|
-
background: '#FFD6001A',
|
|
118
|
-
border: 'none',
|
|
119
|
-
}, INITIATED: {
|
|
120
|
-
color: '#8D8D94',
|
|
121
|
-
background: 'white',
|
|
122
|
-
border: '1px solid #8D8D941A',
|
|
123
|
-
} });
|
|
@@ -12,7 +12,7 @@ export declare const chargeTableCellWidth: {
|
|
|
12
12
|
readonly id: {
|
|
13
13
|
readonly default: "225px";
|
|
14
14
|
readonly text: "225px";
|
|
15
|
-
readonly sheet: "
|
|
15
|
+
readonly sheet: "235px";
|
|
16
16
|
};
|
|
17
17
|
readonly product: {
|
|
18
18
|
readonly default: "85px";
|
|
@@ -37,7 +37,7 @@ export declare const chargeTableCellWidth: {
|
|
|
37
37
|
readonly customer: {
|
|
38
38
|
readonly default: "180px";
|
|
39
39
|
readonly text: "180px";
|
|
40
|
-
readonly sheet: "
|
|
40
|
+
readonly sheet: "145px";
|
|
41
41
|
};
|
|
42
42
|
readonly source: {
|
|
43
43
|
readonly default: "114px";
|
|
@@ -62,7 +62,7 @@ export declare const chargeTableCellWidth: {
|
|
|
62
62
|
readonly destinations: {
|
|
63
63
|
readonly default: "70px";
|
|
64
64
|
readonly text: "240px";
|
|
65
|
-
readonly sheet: "
|
|
65
|
+
readonly sheet: "340px";
|
|
66
66
|
};
|
|
67
67
|
readonly topup: {
|
|
68
68
|
readonly default: "20px";
|
|
@@ -97,17 +97,17 @@ export declare const chargeTableCellWidth: {
|
|
|
97
97
|
readonly receipt: {
|
|
98
98
|
readonly default: "85px";
|
|
99
99
|
readonly text: "150px";
|
|
100
|
-
readonly sheet: "
|
|
100
|
+
readonly sheet: "155px";
|
|
101
101
|
};
|
|
102
102
|
readonly fees: {
|
|
103
103
|
readonly default: "150px";
|
|
104
104
|
readonly text: "150px";
|
|
105
|
-
readonly sheet: "
|
|
105
|
+
readonly sheet: "170px";
|
|
106
106
|
};
|
|
107
107
|
readonly metadata: {
|
|
108
108
|
readonly default: "180px";
|
|
109
109
|
readonly text: "180px";
|
|
110
|
-
readonly sheet: "
|
|
110
|
+
readonly sheet: "265px";
|
|
111
111
|
};
|
|
112
112
|
readonly settlement: {
|
|
113
113
|
readonly default: "200px";
|
|
@@ -137,12 +137,12 @@ export declare const chargeTableCellWidth: {
|
|
|
137
137
|
readonly auth_code: {
|
|
138
138
|
readonly default: "80px";
|
|
139
139
|
readonly text: "80px";
|
|
140
|
-
readonly sheet: "
|
|
140
|
+
readonly sheet: "100px";
|
|
141
141
|
};
|
|
142
142
|
readonly rrn: {
|
|
143
143
|
readonly default: "100px";
|
|
144
144
|
readonly text: "100px";
|
|
145
|
-
readonly sheet: "
|
|
145
|
+
readonly sheet: "105px";
|
|
146
146
|
};
|
|
147
147
|
readonly device: {
|
|
148
148
|
readonly default: "70px";
|
|
@@ -182,21 +182,21 @@ export declare const chargeTableCellWidth: {
|
|
|
182
182
|
readonly acquirer_ref: {
|
|
183
183
|
readonly default: "125px";
|
|
184
184
|
readonly text: "125px";
|
|
185
|
-
readonly sheet: "
|
|
185
|
+
readonly sheet: "145px";
|
|
186
186
|
};
|
|
187
187
|
readonly order_ref: {
|
|
188
188
|
readonly default: "200px";
|
|
189
189
|
readonly text: "200px";
|
|
190
|
-
readonly sheet: "
|
|
190
|
+
readonly sheet: "220px";
|
|
191
191
|
};
|
|
192
192
|
readonly payment_ref: {
|
|
193
193
|
readonly default: "150px";
|
|
194
194
|
readonly text: "150px";
|
|
195
|
-
readonly sheet: "
|
|
195
|
+
readonly sheet: "170px";
|
|
196
196
|
};
|
|
197
197
|
readonly generic_ref: {
|
|
198
198
|
readonly default: "125px";
|
|
199
199
|
readonly text: "125px";
|
|
200
|
-
readonly sheet: "
|
|
200
|
+
readonly sheet: "145px";
|
|
201
201
|
};
|
|
202
202
|
};
|
|
@@ -12,7 +12,7 @@ export const chargeTableCellWidth = {
|
|
|
12
12
|
id: {
|
|
13
13
|
default: '225px',
|
|
14
14
|
text: '225px',
|
|
15
|
-
sheet: '
|
|
15
|
+
sheet: '235px',
|
|
16
16
|
},
|
|
17
17
|
product: {
|
|
18
18
|
default: '85px',
|
|
@@ -37,7 +37,7 @@ export const chargeTableCellWidth = {
|
|
|
37
37
|
customer: {
|
|
38
38
|
default: '180px',
|
|
39
39
|
text: '180px',
|
|
40
|
-
sheet: '
|
|
40
|
+
sheet: '145px',
|
|
41
41
|
},
|
|
42
42
|
source: {
|
|
43
43
|
default: '114px',
|
|
@@ -62,7 +62,7 @@ export const chargeTableCellWidth = {
|
|
|
62
62
|
destinations: {
|
|
63
63
|
default: '70px',
|
|
64
64
|
text: '240px',
|
|
65
|
-
sheet: '
|
|
65
|
+
sheet: '340px',
|
|
66
66
|
},
|
|
67
67
|
topup: {
|
|
68
68
|
default: '20px',
|
|
@@ -97,17 +97,17 @@ export const chargeTableCellWidth = {
|
|
|
97
97
|
receipt: {
|
|
98
98
|
default: '85px',
|
|
99
99
|
text: '150px',
|
|
100
|
-
sheet: '
|
|
100
|
+
sheet: '155px',
|
|
101
101
|
},
|
|
102
102
|
fees: {
|
|
103
103
|
default: '150px',
|
|
104
104
|
text: '150px',
|
|
105
|
-
sheet: '
|
|
105
|
+
sheet: '170px',
|
|
106
106
|
},
|
|
107
107
|
metadata: {
|
|
108
108
|
default: '180px',
|
|
109
109
|
text: '180px',
|
|
110
|
-
sheet: '
|
|
110
|
+
sheet: '265px',
|
|
111
111
|
},
|
|
112
112
|
settlement: {
|
|
113
113
|
default: '200px',
|
|
@@ -137,12 +137,12 @@ export const chargeTableCellWidth = {
|
|
|
137
137
|
auth_code: {
|
|
138
138
|
default: '80px',
|
|
139
139
|
text: '80px',
|
|
140
|
-
sheet: '
|
|
140
|
+
sheet: '100px',
|
|
141
141
|
},
|
|
142
142
|
rrn: {
|
|
143
143
|
default: '100px',
|
|
144
144
|
text: '100px',
|
|
145
|
-
sheet: '
|
|
145
|
+
sheet: '105px',
|
|
146
146
|
},
|
|
147
147
|
device: {
|
|
148
148
|
default: '70px',
|
|
@@ -182,21 +182,21 @@ export const chargeTableCellWidth = {
|
|
|
182
182
|
acquirer_ref: {
|
|
183
183
|
default: '125px',
|
|
184
184
|
text: '125px',
|
|
185
|
-
sheet: '
|
|
185
|
+
sheet: '145px',
|
|
186
186
|
},
|
|
187
187
|
order_ref: {
|
|
188
188
|
default: '200px',
|
|
189
189
|
text: '200px',
|
|
190
|
-
sheet: '
|
|
190
|
+
sheet: '220px',
|
|
191
191
|
},
|
|
192
192
|
payment_ref: {
|
|
193
193
|
default: '150px',
|
|
194
194
|
text: '150px',
|
|
195
|
-
sheet: '
|
|
195
|
+
sheet: '170px',
|
|
196
196
|
},
|
|
197
197
|
generic_ref: {
|
|
198
198
|
default: '125px',
|
|
199
199
|
text: '125px',
|
|
200
|
-
sheet: '
|
|
200
|
+
sheet: '145px',
|
|
201
201
|
},
|
|
202
202
|
};
|
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.0.296-test.1",
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.0.296-test.1-test.2",
|
|
5
|
+
"testVersion": 2,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|