@tap-payments/os-micro-frontend-shared 0.0.129-sheetview-component-ui-v1 → 0.0.129-sheetview-component-ui-v4

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.
@@ -18,7 +18,7 @@ export const ChipStyled = styled(Box)((_a) => {
18
18
  alignItems: 'center',
19
19
  justifyContent: 'center',
20
20
  height: '18px',
21
- padding: padding || `${theme.spacing(0.25)} ${theme.spacing(1.5)}`,
21
+ padding: padding || `${theme.spacing(0.5)} ${theme.spacing(1.5)}`,
22
22
  borderRadius: '30px',
23
23
  border: `1px solid ${borderColor}`,
24
24
  backgroundColor: bgColor,
@@ -9,7 +9,7 @@ import { TextLabel } from '../../TableCells/CustomCells/style';
9
9
  export const AuthorizedIcon = ({ authorizedStatus, isTextShown, iconStyles, tableMode }) => {
10
10
  const { t } = useTranslation();
11
11
  const theme = useTheme();
12
- return (_jsx(Tooltip, Object.assign({ title: t(camelCase(authorizedStatus)) }, { children: isTextShown ? (_jsx(TextLabel, Object.assign({ "data-testid": "StatusCell_AuthorizedStatusLabel", sx: Object.assign({ color: theme.palette.info.dark }, (tableMode === 'sheet' && {
12
+ return (_jsx(Tooltip, Object.assign({ title: tableMode === 'sheet' ? '' : t(camelCase(authorizedStatus)) }, { children: isTextShown ? (_jsx(TextLabel, Object.assign({ "data-testid": "StatusCell_AuthorizedStatusLabel", sx: Object.assign({ color: theme.palette.info.dark }, (tableMode === 'sheet' && {
13
13
  height: '18px',
14
14
  })) }, { children: t(camelCase(authorizedStatus)) }))) : (_jsx(Icon, { src: authorizedStatusIcons[authorizedStatus], alt: "authorized-icon", "data-testid": "StatusCell_AuthorizedStatusIcon", sx: iconStyles })) })));
15
15
  };
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { type ChargeStatus } from '../../TableCells';
3
- export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge, }: Readonly<{
3
+ import { TableMode } from '../../../types/index.js';
4
+ export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, tableMode, showBadge, }: Readonly<{
4
5
  chargeStatus?: ChargeStatus;
5
6
  gatewayTooltip?: string;
6
7
  showAuthorizedStatus?: boolean;
@@ -17,4 +18,5 @@ export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquire
17
18
  gatewayContainerStyles?: CSSProperties;
18
19
  gateWayIconStyles?: CSSProperties;
19
20
  showBadge?: boolean;
21
+ tableMode?: TableMode;
20
22
  }>): import("react/jsx-runtime").JSX.Element;
@@ -5,17 +5,22 @@ 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 } from '../../TableCells/CustomCells/StatusCell/constant';
8
+ import { capturedStatusesStyles, unCapturedStatusesStyles, statusIcons, sheetViewChipStyles, } from '../../TableCells/CustomCells/StatusCell/constant';
9
9
  import { StatusIcon, StatusIconWrapper, TextLabel } from '../../TableCells/CustomCells/style';
10
- export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge = true, }) {
10
+ import StatusChip from '../../StatusChip';
11
+ export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, tableMode, showBadge = true, }) {
11
12
  const unCapturedStatusStyle = chargeStatus ? unCapturedStatusesStyles[chargeStatus] : null;
12
13
  const captureStatusStyle = chargeStatus ? capturedStatusesStyles[chargeStatus] : null;
14
+ const sheetViewStatusStyle = chargeStatus ? sheetViewChipStyles[chargeStatus] : null;
13
15
  const theme = useTheme();
14
16
  const { t } = useTranslation();
15
17
  const chargeTooltipTitle = chargeTooltip && (_jsx(_Fragment, { children: _jsx("div", { children: chargeTooltip }) }));
16
18
  const acquirerTooltipTitle = acquirerTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Acquirer" }), _jsx("div", { children: acquirerTooltip })] }));
17
19
  const gatewayTooltipTitle = gatewayTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Gateway" }), _jsx("div", { children: gatewayTooltip })] }));
18
20
  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
+ return _jsx(StatusChip, Object.assign({ sx: Object.assign({}, sheetViewStatusStyle) }, { children: t(camelCase(chargeStatus)) }));
23
+ }
19
24
  if (isTextShown) {
20
25
  return (_jsxs(TextViewWrapper, { children: [_jsx(Tooltip, Object.assign({ title: chargeTooltipTitle }, { children: _jsxs(StatusTextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: {
21
26
  background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
@@ -1,10 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { PayoutStatusType } from '../../TableCells';
3
+ import { TableMode } from '../../../types/index.js';
3
4
  type PayoutIconProps = {
4
5
  iconStyles?: React.CSSProperties;
5
6
  payoutStatus?: PayoutStatusType;
6
7
  payoutTooltip?: React.ReactNode;
7
8
  isTextShown?: boolean;
9
+ tableMode?: TableMode;
8
10
  };
9
- export declare const PayoutIcon: ({ payoutStatus, isTextShown, payoutTooltip, iconStyles }: PayoutIconProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const PayoutIcon: ({ payoutStatus, tableMode, isTextShown, payoutTooltip, iconStyles }: PayoutIconProps) => import("react/jsx-runtime").JSX.Element;
10
12
  export {};
@@ -4,9 +4,14 @@ 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 } from '../../TableCells/CustomCells/StatusCell/constant';
8
- export const PayoutIcon = ({ payoutStatus = 'PENDING', isTextShown, payoutTooltip, iconStyles }) => {
7
+ import { payoutStatusIcons, payoutStatusStyles } from '../../TableCells/CustomCells/StatusCell/constant';
8
+ import { StatusChip } from '../../index.js';
9
+ export const PayoutIcon = ({ payoutStatus = 'PENDING', tableMode, isTextShown, payoutTooltip, iconStyles }) => {
9
10
  const { t } = useTranslation();
11
+ const payoutStatusStyle = payoutStatusStyles[payoutStatus];
12
+ if (tableMode === 'sheet') {
13
+ return _jsx(StatusChip, Object.assign({ sx: Object.assign({}, payoutStatusStyle) }, { children: t(camelCase(payoutStatus)) }));
14
+ }
10
15
  const title = payoutTooltip ? payoutTooltip : t(camelCase(payoutStatus));
11
16
  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 })) })));
12
17
  };
@@ -38,7 +38,10 @@ function CustomerCell(_a) {
38
38
  return null;
39
39
  return (_jsx("div", Object.assign({ "data-testid": "CustomerCell_customerTooltip" }, { children: tooltipOptions.map(({ name, value }) => value && (_jsx("div", Object.assign({ "data-testid": `CustomerCell_customerTooltip_${name}` }, { children: name === 'Name' ? value : `${name}: ${value}` }), value))) })));
40
40
  }, [tooltipOptions]);
41
- return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "CustomerCell_TableCell" }, { children: _jsxs(StyledCustomerCell, Object.assign({ "data-testid": "CustomerCell_StyledCustomerCell" }, { children: [customerShownIcon, _jsx(Tooltip, Object.assign({ title: customerTooltip }, { children: _jsx(StyledCustomerName, Object.assign({ tableMode: tableMode, "data-testid": "CustomerCell_StyledCustomerName", "data-is-arabic": isArabicCustomerName }, { children: children })) })), !hideTimezoneIcon && (_jsx(StyledCustomerIconContainer, Object.assign({ "data-testid": "CustomerCell_StyledCustomerIconContainer" }, { children: isTimezoneIconShown && _jsx(StyledCustomerIcon, { src: timezoneIcon, "data-testid": "CustomerCell_StyledCustomerIcon" }) }))), !hideCustomerInitiatedIcon && (_jsx(Tooltip, Object.assign({ title: customerInitiatedTooltip }, { children: _jsx(StarBadgeWrapper, Object.assign({ "data-testid": "CustomerCell_StarBadgeWrapper", className: "geography-box", isShown: !!customerInitiatedTooltip }, { children: customerInitiatedTooltip && (_jsx("img", { "data-testid": "CustomerCell_merchantInitiatedIcon", src: merchantInitiatedIcon, alt: "merchant", style: {
41
+ if (tableMode === 'sheet') {
42
+ return (_jsx(StyledCustomerName, Object.assign({ tableMode: tableMode, "data-testid": "CustomerCell_StyledCustomerName", "data-is-arabic": isArabicCustomerName }, { children: children })));
43
+ }
44
+ return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "CustomerCell_TableCell" }, { children: _jsxs(StyledCustomerCell, Object.assign({ "data-testid": "CustomerCell_StyledCustomerCell" }, { children: [customerShownIcon, _jsx(Tooltip, Object.assign({ title: customerTooltip }, { children: _jsx(StyledCustomerName, Object.assign({ "data-testid": "CustomerCell_StyledCustomerName", "data-is-arabic": isArabicCustomerName }, { children: children })) })), !hideTimezoneIcon && (_jsx(StyledCustomerIconContainer, Object.assign({ "data-testid": "CustomerCell_StyledCustomerIconContainer" }, { children: isTimezoneIconShown && _jsx(StyledCustomerIcon, { src: timezoneIcon, "data-testid": "CustomerCell_StyledCustomerIcon" }) }))), !hideCustomerInitiatedIcon && (_jsx(Tooltip, Object.assign({ title: customerInitiatedTooltip }, { children: _jsx(StarBadgeWrapper, Object.assign({ "data-testid": "CustomerCell_StarBadgeWrapper", className: "geography-box", isShown: !!customerInitiatedTooltip }, { children: customerInitiatedTooltip && (_jsx("img", { "data-testid": "CustomerCell_merchantInitiatedIcon", src: merchantInitiatedIcon, alt: "merchant", style: {
42
45
  width: '16px',
43
46
  height: '16px',
44
47
  } })) })) })))] })) })));
@@ -7,7 +7,7 @@ export const StyledCustomerCell = styled('span')(({ theme }) => ({
7
7
  }));
8
8
  export const StyledCustomerName = styled('span', {
9
9
  shouldForwardProp: (prop) => prop !== 'tableMode',
10
- })(({ tableMode }) => (Object.assign({ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', maxWidth: '25ch', flex: 1 }, (tableMode === 'sheet' && { fontSize: '11px' }))));
10
+ })(({ theme, tableMode }) => (Object.assign({ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', maxWidth: '25ch', flex: 1 }, (tableMode === 'sheet' && { fontSize: '11px', color: theme.palette.text.primary }))));
11
11
  export const StyledCustomerIconContainer = styled('span')({
12
12
  width: '11.6px',
13
13
  height: '11.6px',
@@ -23,7 +23,7 @@ function OrderCell(_a) {
23
23
  return _jsx("div", { children: truncatedItemContent }, item.id);
24
24
  }) }));
25
25
  if (tableMode === 'sheet') {
26
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx("span", { children: orderLabel }) })));
26
+ return (_jsx(TableCell, Object.assign({ sx: { fontSize: '11px' } }, props, { children: orderLabel })));
27
27
  }
28
28
  return (_jsx(Tooltip, Object.assign({ title: (items || []).length > 1 ? orderTooltip : undefined }, { children: _jsx(TableCell, Object.assign({}, props, { children: _jsx("span", { children: orderLabel }) })) })));
29
29
  }
@@ -17,9 +17,9 @@ import Tooltip from '../../../Tooltip';
17
17
  import { ImageWrapper } from '../../../index.js';
18
18
  import { TableCell } from '../../../TableCells';
19
19
  import StatusChip from '../../../StatusChip';
20
- import { referenceIcons } from './constant';
21
- import { ReferenceTextLabel, ReferenceTextWrapper, ReferenceSourcesContainer, StyledSourceCell, StyledSourceImage, ReferenceSheetContainer, ReferenceEmptyPlaceholder, referenceSourceAnimation, } from './style';
22
- const REFERENCE_ORDER = ['order', 'payment', 'acquirer', 'generic', 'merchant', 'customer'];
20
+ import { referenceIcons, REFERENCE_ORDER, REFERENCE_WIDTH_MAP } from './constant';
21
+ import { ReferenceTextLabel, ReferenceTextWrapper, ReferenceSourcesContainer, StyledSourceCell, StyledSourceImage, referenceSourceAnimation, } from './style';
22
+ import { Box } from '@mui/material';
23
23
  function ReferenceCell(_a) {
24
24
  var { isTextShown, tableMode } = _a, props = __rest(_a, ["isTextShown", "tableMode"]);
25
25
  const [isTooltipOpen, setIsTooltipOpen] = useState(false);
@@ -37,11 +37,25 @@ function ReferenceCell(_a) {
37
37
  }), [props, references, isTextShown, theme]);
38
38
  const referenceSourcesCount = (ReferenceSources === null || ReferenceSources === void 0 ? void 0 : ReferenceSources.length) || 0;
39
39
  if (tableMode === 'sheet') {
40
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledSourceCell, { children: REFERENCE_ORDER.map((referenceKey) => {
40
+ return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledSourceCell, Object.assign({ sx: { gap: '4px', display: 'flex', flexWrap: 'nowrap' } }, { children: REFERENCE_ORDER.map((referenceKey) => {
41
41
  const referenceValue = props[referenceKey];
42
42
  const hasValue = !!referenceValue;
43
- return (_jsx(ReferenceSheetContainer, { children: hasValue ? _jsx(StatusChip, Object.assign({ width: '100%' }, { children: `${startCase(referenceKey)}: ${referenceValue}` })) : _jsx(ReferenceEmptyPlaceholder, {}) }, referenceKey));
44
- }) }) })));
43
+ const widthConfig = REFERENCE_WIDTH_MAP[referenceKey];
44
+ return (_jsx(Box, Object.assign({ sx: {
45
+ width: widthConfig.width,
46
+ minWidth: widthConfig.width,
47
+ maxWidth: widthConfig.width,
48
+ flexShrink: 0,
49
+ } }, { children: hasValue ? (_jsx(StatusChip, Object.assign({ sx: {
50
+ maxWidth: '100%',
51
+ overflow: 'hidden',
52
+ textOverflow: 'ellipsis',
53
+ whiteSpace: 'nowrap',
54
+ boxSizing: 'border-box',
55
+ display: 'inline-block',
56
+ padding: '0.75px 12px',
57
+ } }, { children: `${startCase(referenceKey)}: ${referenceValue}` }))) : null }), referenceKey));
58
+ }) })) })));
45
59
  }
46
60
  return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledSourceCell, { children: referenceSourcesCount > 0 ? (_jsx(ReferenceSourcesContainer, Object.assign({ layout: true, className: "reference-sources-container", whileHover: "animate", animate: isTooltipOpen ? 'animate' : 'start', sourcesCount: referenceSourcesCount, variants: { animate: { width: referenceSourcesCount * (6 + 32) } }, style: {
47
61
  zIndex: 29,
@@ -4,3 +4,8 @@ export declare const referenceIcons: {
4
4
  payment: string;
5
5
  order: string;
6
6
  };
7
+ export type ReferenceFields = 'order' | 'payment' | 'acquirer' | 'generic' | 'merchant' | 'customer';
8
+ export declare const REFERENCE_ORDER: ReferenceFields[];
9
+ export declare const REFERENCE_WIDTH_MAP: Record<ReferenceFields, {
10
+ width: string;
11
+ }>;
@@ -5,3 +5,12 @@ export const referenceIcons = {
5
5
  payment: transactionIcon,
6
6
  order: orderIcon,
7
7
  };
8
+ export const REFERENCE_ORDER = ['order', 'payment', 'acquirer', 'generic', 'merchant', 'customer'];
9
+ export const REFERENCE_WIDTH_MAP = {
10
+ order: { width: '185px' },
11
+ payment: { width: '205px' },
12
+ acquirer: { width: '155px' },
13
+ generic: { width: '166px' },
14
+ merchant: { width: '140px' },
15
+ customer: { width: '140px' },
16
+ };
@@ -267,7 +267,6 @@ export declare const ReferenceSourcesContainer: import("@emotion/styled").Styled
267
267
  }, {}, {}>;
268
268
  export declare const ReferenceTextLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
269
269
  export declare const ReferenceTextWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
270
- export declare const ReferenceSheetContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
271
270
  export declare const ReferenceEmptyPlaceholder: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
272
271
  export declare const referenceSourceAnimation: (index: number, shadow: string, xDelta?: number) => {
273
272
  start: {
@@ -34,10 +34,6 @@ export const ReferenceTextWrapper = styled('div')(() => ({
34
34
  justifyContent: 'center',
35
35
  paddingInline: '4px',
36
36
  }));
37
- export const ReferenceSheetContainer = styled('div')(() => ({
38
- minWidth: '200px',
39
- maxWidth: '250px',
40
- }));
41
37
  export const ReferenceEmptyPlaceholder = styled('div')(() => ({
42
38
  height: '18px',
43
39
  }));
@@ -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
  };
@@ -27,7 +27,7 @@ export declare const chargeTableCellWidth: {
27
27
  readonly reference: {
28
28
  readonly default: "95px";
29
29
  readonly text: "180px";
30
- readonly sheet: "550px";
30
+ readonly sheet: "985px";
31
31
  };
32
32
  readonly order: {
33
33
  readonly default: "80px";
@@ -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: "400px";
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: "235px";
110
+ readonly sheet: "245px";
111
111
  };
112
112
  readonly settlement: {
113
113
  readonly default: "200px";
@@ -27,7 +27,7 @@ export const chargeTableCellWidth = {
27
27
  reference: {
28
28
  default: '95px',
29
29
  text: '180px',
30
- sheet: '550px',
30
+ sheet: '985px',
31
31
  },
32
32
  order: {
33
33
  default: '80px',
@@ -72,7 +72,7 @@ export const chargeTableCellWidth = {
72
72
  status: {
73
73
  default: '70px',
74
74
  text: '300px',
75
- sheet: '400px',
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: '235px',
110
+ sheet: '245px',
111
111
  },
112
112
  settlement: {
113
113
  default: '200px',
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.129-sheetview-component-ui-v1",
4
+ "version": "0.0.129-sheetview-component-ui-v4",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",