@tap-payments/os-micro-frontend-shared 0.0.139 → 0.0.141
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/SearchButton/styles.d.ts +1 -1
- package/build/components/StatusChip/style.js +1 -1
- package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.js +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +3 -1
- package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.js +7 -2
- package/build/components/StatusIcons/PayoutIcon/PayoutIcon.d.ts +3 -1
- package/build/components/StatusIcons/PayoutIcon/PayoutIcon.js +7 -2
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/AmountCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/AmountCell.js +2 -2
- package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +7 -2
- package/build/components/TableCells/CustomCells/AmountCell/style.js +4 -4
- package/build/components/TableCells/CustomCells/CustomerCell/CustomerCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/CustomerCell/CustomerCell.js +4 -1
- package/build/components/TableCells/CustomCells/CustomerCell/style.d.ts +4 -1
- package/build/components/TableCells/CustomCells/CustomerCell/style.js +3 -7
- package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateCell.js +3 -2
- package/build/components/TableCells/CustomCells/OrderCell/OrderCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/OrderCell/OrderCell.js +4 -1
- package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.js +2 -2
- package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.js +21 -2
- package/build/components/TableCells/CustomCells/ReferenceCell/constant.d.ts +5 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/constant.js +9 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.js +3 -0
- package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.js +1 -1
- package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.js +70 -83
- package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +4 -1
- package/build/components/TableCells/CustomCells/SourceMergedCell/style.js +19 -0
- package/build/components/TableCells/CustomCells/StatusCell/constant.d.ts +29 -0
- package/build/components/TableCells/CustomCells/StatusCell/constant.js +29 -0
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/type.d.ts +4 -0
- package/build/components/VirtualTable/components/TableRowLoading.js +1 -0
- package/build/components/VirtualTable/style.d.ts +1 -1
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +5 -5
- package/build/constants/table/cell/chargeTableCellWidth.js +5 -5
- package/package.json +132 -132
|
@@ -12,104 +12,91 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useRef, useEffect, useState, useMemo } from 'react';
|
|
14
14
|
import { TableCell } from '../../../TableCells';
|
|
15
|
-
import { StatusContainer, StatusWrapper, StatusIcon } from './style';
|
|
15
|
+
import { StatusContainer, StatusWrapper, StatusIcon, SheetModeContainer, SheetModeStatusWrapper, SheetModeIconContainer } from './style';
|
|
16
16
|
import { getIconXTranslation } from './utils';
|
|
17
17
|
import CollapsedViewIcon from './CollapsedViewIcon';
|
|
18
18
|
function SourceMergedCell(_a) {
|
|
19
19
|
var { icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed = false, tableMode } = _a, props = __rest(_a, ["icons", "isTextShown", "centerIconKey", "collapsedViewIcon", "isReversed", "tableMode"]);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
20
|
+
function SourceMergedCell(_a) {
|
|
21
|
+
var { icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed = false, tableMode } = _a, props = __rest(_a, ["icons", "isTextShown", "centerIconKey", "collapsedViewIcon", "isReversed", "tableMode"]);
|
|
22
|
+
const iconsList = useMemo(() => icons.filter((icon) => Boolean(icon.icon)), [icons]);
|
|
23
|
+
const [isHovering, setIsHovering] = useState(false);
|
|
24
|
+
const centerIconIndex = Math.max(centerIconKey ? iconsList.findIndex((icon) => icon.key === centerIconKey) : 0, 0);
|
|
25
|
+
const iconRefs = useRef([]);
|
|
26
|
+
const [iconMeasurements, setIconMeasurements] = useState(new Map());
|
|
27
|
+
const isSheetMode = tableMode === 'sheet';
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (isSheetMode)
|
|
30
|
+
return;
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
const tableMode = isTextShown ? 'text' : 'default';
|
|
33
|
+
const newMeasurements = new Map();
|
|
34
|
+
iconRefs.current.forEach((ref, index) => {
|
|
35
|
+
if (ref) {
|
|
36
|
+
const width = ref.getBoundingClientRect().width;
|
|
37
|
+
const existingMeasurement = iconMeasurements.get(index) || { default: 0, text: 0 };
|
|
38
|
+
newMeasurements.set(index, Object.assign(Object.assign({}, existingMeasurement), { [tableMode]: width }));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
setIconMeasurements(new Map([...iconMeasurements, ...newMeasurements]));
|
|
42
|
+
}, 50);
|
|
43
|
+
}, [iconsList, isTextShown, isHovering, isSheetMode]);
|
|
44
|
+
const hasPreviousIcon = (isReversed && iconsList.length > 1) || centerIconIndex > 0;
|
|
45
|
+
const hasNextIcon = !isReversed && centerIconIndex < iconsList.length - 1;
|
|
46
|
+
if (isSheetMode) {
|
|
47
|
+
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
|
|
48
|
+
position: 'relative',
|
|
49
|
+
overflow: 'visible',
|
|
50
|
+
zIndex: 101,
|
|
51
|
+
} }, { children: _jsx(SheetModeContainer, { children: iconsList === null || iconsList === void 0 ? void 0 : iconsList.map((icon, index) => (_jsx(SheetModeStatusWrapper, Object.assign({ "data-testid": `StatusWrapper-${icon.key}` }, { children: _jsx(SheetModeIconContainer, { children: icon.icon }) }), `StatusWrapper-${icon.key}-${index}`))) }) })));
|
|
52
|
+
}
|
|
45
53
|
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
|
|
46
54
|
position: 'relative',
|
|
47
55
|
overflow: 'visible',
|
|
48
56
|
zIndex: 101,
|
|
49
|
-
} }, { children: _jsx(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
overflow: 'visible',
|
|
70
|
-
zIndex: 101,
|
|
71
|
-
} }, { children: _jsx(StatusContainer, Object.assign({ animate: isHovering ? 'hover' : 'initial', onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false), initial: "initial", sx: {
|
|
72
|
-
minHeight: '20px',
|
|
73
|
-
maxWidth: '55px',
|
|
74
|
-
}, 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) => {
|
|
75
|
-
if (!icon)
|
|
76
|
-
return;
|
|
77
|
-
const tableMode = isTextShown ? 'text' : 'default';
|
|
78
|
-
const xHoverPosition = getIconXTranslation({
|
|
79
|
-
iconsList: iconsList.map((iconObj, i) => {
|
|
80
|
-
const measurements = iconMeasurements.get(i);
|
|
81
|
-
return Object.assign(Object.assign({}, iconObj), { width: {
|
|
82
|
-
default: (measurements === null || measurements === void 0 ? void 0 : measurements.default) || 0,
|
|
83
|
-
text: (measurements === null || measurements === void 0 ? void 0 : measurements.text) || 0,
|
|
84
|
-
} });
|
|
85
|
-
}),
|
|
86
|
-
tableMode: tableMode,
|
|
87
|
-
centerIndex: centerIconIndex,
|
|
88
|
-
iconIndex: index,
|
|
89
|
-
});
|
|
90
|
-
return (_jsx(StatusWrapper, Object.assign({ ref: (el) => (iconRefs.current[index] = el), "data-testid": `StatusWrapper-${icon.key}`, variants: {
|
|
91
|
-
initial: {
|
|
92
|
-
x: 0,
|
|
93
|
-
opacity: 0,
|
|
94
|
-
},
|
|
95
|
-
hover: {
|
|
96
|
-
x: isReversed ? -xHoverPosition : xHoverPosition,
|
|
97
|
-
zIndex: 100 - Math.abs(centerIconIndex - index),
|
|
98
|
-
opacity: 1,
|
|
99
|
-
},
|
|
100
|
-
}, transition: {
|
|
101
|
-
default: { duration: 0.3, ease: 'easeInOut' },
|
|
102
|
-
opacity: { duration: 0.0, ease: 'linear' },
|
|
103
|
-
} }, { children: _jsx(StatusIcon, Object.assign({ isTextShown: isTextShown, variants: {
|
|
57
|
+
} }, { children: _jsx(StatusContainer, Object.assign({ animate: isHovering ? 'hover' : 'initial', onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false), initial: "initial", sx: {
|
|
58
|
+
minHeight: '20px',
|
|
59
|
+
maxWidth: '55px',
|
|
60
|
+
}, 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) => {
|
|
61
|
+
if (!icon)
|
|
62
|
+
return;
|
|
63
|
+
const tableMode = isTextShown ? 'text' : 'default';
|
|
64
|
+
const xHoverPosition = getIconXTranslation({
|
|
65
|
+
iconsList: iconsList.map((iconObj, i) => {
|
|
66
|
+
const measurements = iconMeasurements.get(i);
|
|
67
|
+
return Object.assign(Object.assign({}, iconObj), { width: {
|
|
68
|
+
default: (measurements === null || measurements === void 0 ? void 0 : measurements.default) || 0,
|
|
69
|
+
text: (measurements === null || measurements === void 0 ? void 0 : measurements.text) || 0,
|
|
70
|
+
} });
|
|
71
|
+
}),
|
|
72
|
+
tableMode: tableMode,
|
|
73
|
+
centerIndex: centerIconIndex,
|
|
74
|
+
iconIndex: index,
|
|
75
|
+
});
|
|
76
|
+
return (_jsx(StatusWrapper, Object.assign({ ref: (el) => (iconRefs.current[index] = el), "data-testid": `StatusWrapper-${icon.key}`, variants: {
|
|
104
77
|
initial: {
|
|
78
|
+
x: 0,
|
|
105
79
|
opacity: 0,
|
|
106
80
|
},
|
|
107
81
|
hover: {
|
|
82
|
+
x: isReversed ? -xHoverPosition : xHoverPosition,
|
|
83
|
+
zIndex: 100 - Math.abs(centerIconIndex - index),
|
|
108
84
|
opacity: 1,
|
|
109
85
|
},
|
|
110
86
|
}, transition: {
|
|
87
|
+
default: { duration: 0.3, ease: 'easeInOut' },
|
|
111
88
|
opacity: { duration: 0.0, ease: 'linear' },
|
|
112
|
-
} }, { children:
|
|
113
|
-
|
|
89
|
+
} }, { children: _jsx(StatusIcon, Object.assign({ isTextShown: isTextShown, variants: {
|
|
90
|
+
initial: {
|
|
91
|
+
opacity: 0,
|
|
92
|
+
},
|
|
93
|
+
hover: {
|
|
94
|
+
opacity: 1,
|
|
95
|
+
},
|
|
96
|
+
}, transition: {
|
|
97
|
+
opacity: { duration: 0.0, ease: 'linear' },
|
|
98
|
+
} }, { children: icon.icon })) }), `StatusWrapper-${icon.key}-${index}`));
|
|
99
|
+
})] }) })) })));
|
|
100
|
+
}
|
|
114
101
|
}
|
|
115
102
|
export default SourceMergedCell;
|
|
@@ -273,9 +273,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
|
|
|
273
273
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
274
274
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
275
275
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
276
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
276
277
|
src?: string | undefined;
|
|
277
278
|
alt?: string | undefined;
|
|
278
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
279
279
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
280
280
|
useMap?: string | undefined;
|
|
281
281
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -1617,3 +1617,6 @@ export declare const StatusContainer: import("@emotion/styled").StyledComponent<
|
|
|
1617
1617
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
1618
1618
|
isReversed?: boolean | undefined;
|
|
1619
1619
|
}, {}, {}>;
|
|
1620
|
+
export declare const SheetModeContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1621
|
+
export declare const SheetModeStatusWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1622
|
+
export declare const SheetModeIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -74,3 +74,22 @@ export const StatusContainer = styled(motion.div)(({ isReversed }) => ({
|
|
|
74
74
|
position: 'relative',
|
|
75
75
|
overflow: 'visible',
|
|
76
76
|
}));
|
|
77
|
+
export const SheetModeContainer = styled('div')(() => ({
|
|
78
|
+
display: 'flex',
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
gap: '4px',
|
|
81
|
+
height: '18px',
|
|
82
|
+
}));
|
|
83
|
+
export const SheetModeStatusWrapper = styled('div')(() => ({
|
|
84
|
+
display: 'flex',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
opacity: 1,
|
|
87
|
+
border: '1px solid #F2F2F2',
|
|
88
|
+
borderRadius: '24px',
|
|
89
|
+
padding: '0px 8px',
|
|
90
|
+
}));
|
|
91
|
+
export const SheetModeIconContainer = styled('div')(() => ({
|
|
92
|
+
display: 'flex',
|
|
93
|
+
alignItems: 'center',
|
|
94
|
+
opacity: 1,
|
|
95
|
+
}));
|
|
@@ -13,6 +13,18 @@ export declare const statusIcons: {
|
|
|
13
13
|
UNKNOWN: string;
|
|
14
14
|
AUTHORIZED: string;
|
|
15
15
|
};
|
|
16
|
+
export declare const sheetViewChipStyles: {
|
|
17
|
+
ABANDONED: {
|
|
18
|
+
color: string;
|
|
19
|
+
background: string;
|
|
20
|
+
border: string;
|
|
21
|
+
};
|
|
22
|
+
CANCELLED: {
|
|
23
|
+
color: string;
|
|
24
|
+
background: string;
|
|
25
|
+
border: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
16
28
|
export declare const unCapturedStatusesStyles: Record<(typeof unCapturedStatuses)[number], {
|
|
17
29
|
gatewayIcon: string;
|
|
18
30
|
acquirerIcon: string;
|
|
@@ -38,6 +50,23 @@ export declare const payoutStatusIcons: {
|
|
|
38
50
|
SETTLED: string;
|
|
39
51
|
PENDING: string;
|
|
40
52
|
};
|
|
53
|
+
export declare const payoutStatusStyles: {
|
|
54
|
+
PAID_OUT: {
|
|
55
|
+
color: string;
|
|
56
|
+
background: string;
|
|
57
|
+
border: string;
|
|
58
|
+
};
|
|
59
|
+
SETTLED: {
|
|
60
|
+
color: string;
|
|
61
|
+
background: string;
|
|
62
|
+
border: string;
|
|
63
|
+
};
|
|
64
|
+
PENDING: {
|
|
65
|
+
color: string;
|
|
66
|
+
background: string;
|
|
67
|
+
border: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
41
70
|
export declare const authorizedStatusIcons: {
|
|
42
71
|
AUTHORIZED: string;
|
|
43
72
|
};
|
|
@@ -13,6 +13,18 @@ export const statusIcons = {
|
|
|
13
13
|
UNKNOWN: unknownIcon,
|
|
14
14
|
AUTHORIZED: authorizedIcon,
|
|
15
15
|
};
|
|
16
|
+
export const sheetViewChipStyles = {
|
|
17
|
+
ABANDONED: {
|
|
18
|
+
color: '#FFD600',
|
|
19
|
+
background: 'transparent',
|
|
20
|
+
border: '1px solid #FFD60080',
|
|
21
|
+
},
|
|
22
|
+
CANCELLED: {
|
|
23
|
+
color: '#EDC806',
|
|
24
|
+
background: '#FFD6001A',
|
|
25
|
+
border: 'none',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
16
28
|
export const unCapturedStatusesStyles = {
|
|
17
29
|
UNKNOWN: {
|
|
18
30
|
gatewayIcon: gatewayOrangeIcon,
|
|
@@ -82,6 +94,23 @@ export const payoutStatusIcons = {
|
|
|
82
94
|
SETTLED: settledIcon,
|
|
83
95
|
PENDING: settlementInitiatedIcon,
|
|
84
96
|
};
|
|
97
|
+
export const payoutStatusStyles = {
|
|
98
|
+
PAID_OUT: {
|
|
99
|
+
color: '#2ACE00',
|
|
100
|
+
background: '#2ACE001A',
|
|
101
|
+
border: 'none',
|
|
102
|
+
},
|
|
103
|
+
SETTLED: {
|
|
104
|
+
color: '#2ACE00',
|
|
105
|
+
background: 'transparent',
|
|
106
|
+
border: '1px solid #2ACE0066',
|
|
107
|
+
},
|
|
108
|
+
PENDING: {
|
|
109
|
+
color: '#FF7A00',
|
|
110
|
+
background: '#FF7A000D',
|
|
111
|
+
border: 'none',
|
|
112
|
+
},
|
|
113
|
+
};
|
|
85
114
|
export const authorizedStatusIcons = {
|
|
86
115
|
AUTHORIZED: authorizedIcon,
|
|
87
116
|
};
|
|
@@ -262,9 +262,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
|
|
|
262
262
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
263
263
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
264
264
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
265
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
265
266
|
src?: string | undefined;
|
|
266
267
|
alt?: string | undefined;
|
|
267
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
268
268
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
269
269
|
useMap?: string | undefined;
|
|
270
270
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -10,6 +10,7 @@ export interface DateCellProps extends TableCellProps {
|
|
|
10
10
|
format?: object;
|
|
11
11
|
flagIcon?: string;
|
|
12
12
|
hasFlag?: boolean;
|
|
13
|
+
tableMode?: TableMode;
|
|
13
14
|
}
|
|
14
15
|
export interface OrderCellProps extends TableCellProps {
|
|
15
16
|
label: string;
|
|
@@ -19,6 +20,7 @@ export interface OrderCellProps extends TableCellProps {
|
|
|
19
20
|
description?: string;
|
|
20
21
|
name?: string;
|
|
21
22
|
}>;
|
|
23
|
+
tableMode?: TableMode;
|
|
22
24
|
}
|
|
23
25
|
export interface CustomerCellProps extends TableCellProps {
|
|
24
26
|
customerInitiated?: boolean;
|
|
@@ -32,6 +34,7 @@ export interface CustomerCellProps extends TableCellProps {
|
|
|
32
34
|
email?: string;
|
|
33
35
|
phone?: string;
|
|
34
36
|
id?: string;
|
|
37
|
+
tableMode?: TableMode;
|
|
35
38
|
}
|
|
36
39
|
export interface SourceCellProps extends TableCellProps {
|
|
37
40
|
geographyVariant?: 'G' | 'L' | 'R';
|
|
@@ -51,6 +54,7 @@ export interface AmountCellProps extends TableCellProps {
|
|
|
51
54
|
tooltipLabel?: React.ReactNode;
|
|
52
55
|
amountTooltipLabel?: React.ReactNode;
|
|
53
56
|
isTextShown?: boolean;
|
|
57
|
+
tableMode?: TableMode;
|
|
54
58
|
}
|
|
55
59
|
export interface DestinationCellProps extends TableCellProps {
|
|
56
60
|
destinationsCount?: number;
|
|
@@ -8,6 +8,7 @@ import { areEqual } from 'react-window';
|
|
|
8
8
|
const StyledSkeleton = styled(Skeleton)(({ theme }) => ({
|
|
9
9
|
backgroundColor: theme.palette.grey[100],
|
|
10
10
|
borderRadius: '64px',
|
|
11
|
+
minWidth: '20px',
|
|
11
12
|
}));
|
|
12
13
|
function TableRowLoading({ columns, style, index, animationType }) {
|
|
13
14
|
return (_jsx(MUITableRow, Object.assign({ sx: Object.assign(Object.assign({}, style), { display: 'flex', borderBottom: '1px solid #e3e8ee', '&:hover': {
|
|
@@ -306,9 +306,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
306
306
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
307
307
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
308
308
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
309
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
309
310
|
src?: string | undefined;
|
|
310
311
|
alt?: string | undefined;
|
|
311
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
312
312
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
313
313
|
useMap?: string | undefined;
|
|
314
314
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -22,12 +22,12 @@ export declare const chargeTableCellWidth: {
|
|
|
22
22
|
readonly date: {
|
|
23
23
|
readonly default: "170px";
|
|
24
24
|
readonly text: "170px";
|
|
25
|
-
readonly sheet: "
|
|
25
|
+
readonly sheet: "129px";
|
|
26
26
|
};
|
|
27
27
|
readonly reference: {
|
|
28
28
|
readonly default: "95px";
|
|
29
29
|
readonly text: "180px";
|
|
30
|
-
readonly sheet: "
|
|
30
|
+
readonly sheet: "985px";
|
|
31
31
|
};
|
|
32
32
|
readonly order: {
|
|
33
33
|
readonly default: "80px";
|
|
@@ -42,7 +42,7 @@ export declare const chargeTableCellWidth: {
|
|
|
42
42
|
readonly source: {
|
|
43
43
|
readonly default: "114px";
|
|
44
44
|
readonly text: "125px";
|
|
45
|
-
readonly sheet: "
|
|
45
|
+
readonly sheet: "450px";
|
|
46
46
|
};
|
|
47
47
|
readonly authenticate: {
|
|
48
48
|
readonly default: "55px";
|
|
@@ -72,7 +72,7 @@ export declare const chargeTableCellWidth: {
|
|
|
72
72
|
readonly status: {
|
|
73
73
|
readonly default: "70px";
|
|
74
74
|
readonly text: "300px";
|
|
75
|
-
readonly sheet: "
|
|
75
|
+
readonly sheet: "385px";
|
|
76
76
|
};
|
|
77
77
|
readonly merchant: {
|
|
78
78
|
readonly default: "100px";
|
|
@@ -107,7 +107,7 @@ export declare const chargeTableCellWidth: {
|
|
|
107
107
|
readonly metadata: {
|
|
108
108
|
readonly default: "180px";
|
|
109
109
|
readonly text: "180px";
|
|
110
|
-
readonly sheet: "
|
|
110
|
+
readonly sheet: "245px";
|
|
111
111
|
};
|
|
112
112
|
readonly settlement: {
|
|
113
113
|
readonly default: "200px";
|
|
@@ -22,12 +22,12 @@ export const chargeTableCellWidth = {
|
|
|
22
22
|
date: {
|
|
23
23
|
default: '170px',
|
|
24
24
|
text: '170px',
|
|
25
|
-
sheet: '
|
|
25
|
+
sheet: '129px',
|
|
26
26
|
},
|
|
27
27
|
reference: {
|
|
28
28
|
default: '95px',
|
|
29
29
|
text: '180px',
|
|
30
|
-
sheet: '
|
|
30
|
+
sheet: '985px',
|
|
31
31
|
},
|
|
32
32
|
order: {
|
|
33
33
|
default: '80px',
|
|
@@ -42,7 +42,7 @@ export const chargeTableCellWidth = {
|
|
|
42
42
|
source: {
|
|
43
43
|
default: '114px',
|
|
44
44
|
text: '125px',
|
|
45
|
-
sheet: '
|
|
45
|
+
sheet: '450px',
|
|
46
46
|
},
|
|
47
47
|
authenticate: {
|
|
48
48
|
default: '55px',
|
|
@@ -72,7 +72,7 @@ export const chargeTableCellWidth = {
|
|
|
72
72
|
status: {
|
|
73
73
|
default: '70px',
|
|
74
74
|
text: '300px',
|
|
75
|
-
sheet: '
|
|
75
|
+
sheet: '385px',
|
|
76
76
|
},
|
|
77
77
|
merchant: {
|
|
78
78
|
default: '100px',
|
|
@@ -107,7 +107,7 @@ export const chargeTableCellWidth = {
|
|
|
107
107
|
metadata: {
|
|
108
108
|
default: '180px',
|
|
109
109
|
text: '180px',
|
|
110
|
-
sheet: '
|
|
110
|
+
sheet: '245px',
|
|
111
111
|
},
|
|
112
112
|
settlement: {
|
|
113
113
|
default: '200px',
|