@tap-payments/os-micro-frontend-shared 0.1.397 → 0.1.398-test.1

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 (56) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
  2. package/build/components/Chip/style.d.ts +0 -1
  3. package/build/components/CountBadge/style.d.ts +0 -1
  4. package/build/components/Dialog/style.d.ts +0 -1
  5. package/build/components/FlippingCard/style.d.ts +0 -1
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  7. package/build/components/JSONViewer/style.d.ts +0 -1
  8. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  9. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  10. package/build/components/SearchButton/styles.d.ts +0 -1
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  13. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +2 -24
  14. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.js +23 -48
  15. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIconView.d.ts +10 -0
  16. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIconView.js +23 -0
  17. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusSheetView.d.ts +9 -0
  18. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusSheetView.js +9 -0
  19. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusTextView.d.ts +10 -0
  20. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusTextView.js +16 -0
  21. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  22. package/build/components/StatusIcons/ChargeStatusIcon/type.d.ts +24 -0
  23. package/build/components/StatusIcons/ChargeStatusIcon/type.js +1 -0
  24. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  26. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
  27. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  28. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  30. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  32. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  36. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  38. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  39. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
  40. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  41. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  42. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  43. package/build/components/TableCells/CustomCells/ReferenceCell/style.js +3 -1
  44. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  45. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  46. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  47. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  48. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  49. package/build/components/TableCells/CustomCells/StatusCell/style.js +3 -1
  50. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  51. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  52. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
  53. package/build/components/TableReports/style.d.ts +0 -1
  54. package/build/components/TableReports/style.js +1 -1
  55. package/build/components/VirtualTables/components/style.d.ts +0 -1
  56. package/package.json +3 -3
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  type AnimatedSpinnerIconProps = {
4
3
  width?: string;
5
4
  height?: string;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { GetSourceAnimationFunction } from './type';
4
3
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
4
  variant?: import("./type").ChipVariant | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const FOOTER_HEIGHT = 37;
4
3
  export declare const TITLE_BAR_HEIGHT = "32px";
5
4
  export declare const VIEWER_HEIGHT = 545;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { type Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,24 +1,2 @@
1
- import { CSSProperties } from 'react';
2
- import { SelectionProps } from '../../../types/index.js';
3
- import { type ChargeStatus } from '../../TableCells';
4
- export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge, isSheetViewShown, selectionProps, chipIndex, }: Readonly<{
5
- chargeStatus?: ChargeStatus;
6
- gatewayTooltip?: string;
7
- showAuthorizedStatus?: boolean;
8
- chargeTooltip?: string;
9
- acquirerTooltip?: string;
10
- errorCode?: string;
11
- isTextShown?: boolean;
12
- gatewayCode?: React.ReactNode;
13
- acquirerCode?: React.ReactNode;
14
- unCapturedStyles?: CSSProperties;
15
- iconStyles?: CSSProperties;
16
- iconWrapperStyles?: CSSProperties;
17
- gatewayIconWrapperStyles?: CSSProperties;
18
- gatewayContainerStyles?: CSSProperties;
19
- gateWayIconStyles?: CSSProperties;
20
- showBadge?: boolean;
21
- isSheetViewShown?: boolean;
22
- selectionProps?: SelectionProps;
23
- chipIndex?: number;
24
- }>): import("react/jsx-runtime").JSX.Element;
1
+ import { ChargeStatusIconProps } from './type';
2
+ export declare function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge, isSheetViewShown, selectionProps, chipIndex, }: Readonly<ChargeStatusIconProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,58 +1,33 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTheme } from '@mui/material/styles';
3
- import camelCase from 'lodash/camelCase';
2
+ import { useMemo } from 'react';
4
3
  import { useTranslation } from 'react-i18next';
5
- import Tooltip from '../../Tooltip';
6
- import { unCapturedStatuses } from '../../../constants/index.js';
7
- import StatusChipWithCopy from '../../StatusChipWithCopy';
8
4
  import { capturedStatusesStyles, unCapturedStatusesStyles, statusIcons } from '../../TableCells/CustomCells/StatusCell/constant';
9
- import { StatusIcon, StatusIconWrapper, TextLabel } from '../../TableCells/CustomCells/style';
10
- import { AcquirerContainerAnimationVariants, ErrorCodeLabel, ErrorCodeLabelAnimationVariants, ErrorCodeVariants, ErrorCodeWrapper, GateWayIcon, GatewayIconWrapper, GatewayIconWrapperAnimationTransition, GatewaysContainer, GatewaysContainerAnimationVariants, StatusTextLabel, UnCapturedBadge, UnCapturedContainer, errorCodeLabelAnimation, TextViewWrapper, } from './style';
5
+ import { StatusIcon } from '../../TableCells/CustomCells/style';
6
+ import { ChargeStatusSheetView } from './ChargeStatusSheetView';
7
+ import { ChargeStatusTextView } from './ChargeStatusTextView';
8
+ import { ChargeStatusIconView } from './ChargeStatusIconView';
11
9
  export function ChargeStatusIcon({ chargeStatus, gatewayTooltip, acquirerTooltip, chargeTooltip, errorCode, isTextShown, gatewayCode, acquirerCode, unCapturedStyles, iconStyles, iconWrapperStyles, gatewayIconWrapperStyles, gatewayContainerStyles, gateWayIconStyles, showBadge = true, isSheetViewShown = false, selectionProps = {}, chipIndex = 0, }) {
12
- const unCapturedStatusStyle = chargeStatus ? unCapturedStatusesStyles[chargeStatus] : null;
13
- const captureStatusStyle = chargeStatus ? capturedStatusesStyles[chargeStatus] : null;
14
- const theme = useTheme();
15
10
  const { t } = useTranslation();
16
- const chargeTooltipTitle = chargeTooltip && (_jsx(_Fragment, { children: _jsx("div", { children: chargeTooltip }) }));
17
- const acquirerTooltipTitle = acquirerTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Acquirer" }), _jsx("div", { children: acquirerTooltip })] }));
18
- const gatewayTooltipTitle = gatewayTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Gateway" }), _jsx("div", { children: gatewayTooltip })] }));
19
- 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) }) })));
11
+ const { unCapturedStatusStyle, captureStatusStyle, chargeIcon } = useMemo(() => {
12
+ const unCapturedStyle = chargeStatus ? unCapturedStatusesStyles[chargeStatus] : null;
13
+ const captureStyle = chargeStatus ? capturedStatusesStyles[chargeStatus] : null;
14
+ const icon = 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: unCapturedStyle ? '50%' : '' }, iconWrapperStyles) }, { children: _jsx(StatusIcon, { src: statusIcons[chargeStatus], alt: "charge-icon", "data-testid": "ChargeStatusIcon_StatusIcon", style: Object.assign({ borderRadius: unCapturedStyle ? '50%' : '', width: '16px', height: '16px' }, iconStyles) }) })));
15
+ return {
16
+ unCapturedStatusStyle: unCapturedStyle,
17
+ captureStatusStyle: captureStyle,
18
+ chargeIcon: icon
19
+ };
20
+ }, [chargeStatus, iconWrapperStyles, iconStyles]);
21
+ const { chargeTooltipTitle, acquirerTooltipTitle, gatewayTooltipTitle } = useMemo(() => ({
22
+ chargeTooltipTitle: chargeTooltip && (_jsx(_Fragment, { children: _jsx("div", { children: chargeTooltip }) })),
23
+ acquirerTooltipTitle: acquirerTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Acquirer" }), _jsx("div", { children: acquirerTooltip })] })),
24
+ gatewayTooltipTitle: gatewayTooltip && (_jsxs(_Fragment, { children: [_jsx("div", { children: "Gateway" }), _jsx("div", { children: gatewayTooltip })] }))
25
+ }), [chargeTooltip, acquirerTooltip, gatewayTooltip]);
20
26
  if (isSheetViewShown) {
21
- return (_jsxs(TextViewWrapper, { children: [_jsxs(StatusChipWithCopy, Object.assign({ copyText: t(camelCase(chargeStatus)), chipIndex: chipIndex, selectionProps: selectionProps }, { children: [t(camelCase(chargeStatus)), " ", errorCode] })), unCapturedStatusStyle && (_jsxs(_Fragment, { children: [gatewayCode && (_jsxs(StatusChipWithCopy, Object.assign({ copyText: "Gateway", chipIndex: 1, selectionProps: selectionProps }, { children: ["Gateway ", gatewayCode] }))), acquirerCode && (_jsxs(StatusChipWithCopy, Object.assign({ copyText: "Acquirer", chipIndex: 2, selectionProps: selectionProps }, { children: ["Acquirer ", acquirerCode] })))] }))] }));
27
+ return (_jsx(ChargeStatusSheetView, { chargeStatus: chargeStatus, errorCode: errorCode, chipIndex: chipIndex, selectionProps: selectionProps, gatewayCode: gatewayCode, acquirerCode: acquirerCode, unCapturedStatusStyle: unCapturedStatusStyle }));
22
28
  }
23
29
  if (isTextShown) {
24
- return (_jsxs(TextViewWrapper, { children: [_jsx(Tooltip, Object.assign({ title: chargeTooltipTitle }, { children: _jsxs(StatusTextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: {
25
- background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
26
- color: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.color) || theme.palette.info.dark,
27
- borderColor: `${(unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.color) || theme.palette.info.dark}1A`,
28
- } }, { children: [t(camelCase(chargeStatus)), " ", errorCode] })) })), unCapturedStatusStyle && (_jsxs(_Fragment, { children: [gatewayCode && (_jsx(Tooltip, Object.assign({ title: gatewayTooltipTitle }, { children: _jsxs(TextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: {
29
- background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
30
- color: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.color) || theme.palette.info.dark,
31
- } }, { children: ["Gateway ", gatewayCode] })) }))), acquirerCode && (_jsx(Tooltip, Object.assign({ title: acquirerTooltipTitle }, { children: _jsxs(TextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: {
32
- background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
33
- color: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.color) || theme.palette.info.dark,
34
- } }, { children: ["Acquirer ", acquirerCode] })) })))] }))] }));
30
+ return (_jsx(ChargeStatusTextView, { chargeStatus: chargeStatus, chargeTooltipTitle: chargeTooltipTitle, unCapturedStatusStyle: unCapturedStatusStyle, captureStatusStyle: captureStatusStyle, errorCode: errorCode, gatewayCode: gatewayCode, gatewayTooltipTitle: gatewayTooltipTitle, acquirerCode: acquirerCode, acquirerTooltipTitle: acquirerTooltipTitle }));
35
31
  }
36
- return (_jsx(StatusIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_StatusIconWrapper", style: Object.assign({}, iconWrapperStyles) }, { children: (unCapturedStatuses === null || unCapturedStatuses === void 0 ? void 0 : unCapturedStatuses.includes(chargeStatus || '')) && (chargeTooltipTitle || acquirerTooltipTitle || gatewayTooltipTitle) ? (_jsxs(UnCapturedContainer, Object.assign({ "data-testid": "ChargeStatusIcon_UnCapturedContainer", whileHover: ['animate', 'fadeIn'], style: Object.assign(Object.assign({ left: '0' }, (showBadge && {
37
- paddingInline: '12px',
38
- border: '1px solid #F2F2F2',
39
- borderRadius: '12px',
40
- backgroundColor: '#fff',
41
- })), unCapturedStyles) }, { children: [_jsx(UnCapturedBadge, Object.assign({ "data-testid": "ChargeStatusIcon_UnCapturedBadge", sx: {
42
- borderRadius: '56px',
43
- }, initial: {
44
- background: 'transparent',
45
- }, variants: {
46
- animate: {
47
- background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background,
48
- },
49
- } }, { children: _jsx(Tooltip, Object.assign({ title: chargeTooltipTitle !== null && chargeTooltipTitle !== void 0 ? chargeTooltipTitle : t(camelCase(chargeStatus)) }, { children: _jsxs(_Fragment, { children: [chargeIcon, _jsx(ErrorCodeWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_ErrorCodeWrapper", transition: {
50
- animate: {
51
- duration: 0.05,
52
- },
53
- }, variants: ErrorCodeLabelAnimationVariants, style: Object.assign({}, (errorCode && {
54
- padding: '0 !important',
55
- })) }, { children: _jsx(ErrorCodeLabel, Object.assign({ "data-testid": "ChargeStatusIcon_ErrorCodeLabel", sx: {
56
- background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color,
57
- }, transition: errorCodeLabelAnimation, variants: ErrorCodeVariants, initial: { opacity: 0 } }, { children: errorCode })) }))] }) })) })), _jsx(GatewaysContainer, Object.assign({ "data-testid": "ChargeStatusIcon_GatewaysContainer", transition: GatewayIconWrapperAnimationTransition, variants: GatewaysContainerAnimationVariants, style: gatewayContainerStyles, isVisible: !!gatewayTooltipTitle }, { children: gatewayTooltipTitle && (_jsx(Tooltip, Object.assign({ title: gatewayTooltipTitle }, { children: _jsx(GatewayIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_GatewayIconWrapper", style: Object.assign({ background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background }, gatewayIconWrapperStyles) }, { children: _jsx(GateWayIcon, { src: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.gatewayIcon, alt: "gateway-icon", "data-testid": "ChargeStatusIcon_GatewayIcon", style: gateWayIconStyles }) })) }))) })), _jsx(GatewaysContainer, Object.assign({ "data-testid": "ChargeStatusIcon_GatewaysContainer", transition: GatewayIconWrapperAnimationTransition, variants: AcquirerContainerAnimationVariants, style: gatewayContainerStyles, isVisible: !!acquirerTooltipTitle }, { children: acquirerTooltipTitle && (_jsx(Tooltip, Object.assign({ title: acquirerTooltipTitle }, { children: _jsx(GatewayIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_AcquirerIconWrapper", style: Object.assign({ background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background }, gatewayIconWrapperStyles) }, { children: _jsx(GateWayIcon, { src: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.acquirerIcon, alt: "acquirer-icon", "data-testid": "ChargeStatusIcon_AcquirerIcon", style: gateWayIconStyles }) })) }))) }))] }))) : (_jsx(Tooltip, Object.assign({ title: chargeTooltipTitle !== null && chargeTooltipTitle !== void 0 ? chargeTooltipTitle : t(camelCase(chargeStatus)) }, { children: _jsx(StatusIconWrapper, { children: chargeIcon }) }))) })));
32
+ return (_jsx(ChargeStatusIconView, { chargeStatus: chargeStatus, chargeIcon: chargeIcon, chargeTooltipTitle: chargeTooltipTitle, acquirerTooltipTitle: acquirerTooltipTitle, gatewayTooltipTitle: gatewayTooltipTitle, errorCode: errorCode, showBadge: showBadge, unCapturedStyles: unCapturedStyles, unCapturedStatusStyle: unCapturedStatusStyle, gatewayContainerStyles: gatewayContainerStyles, gatewayIconWrapperStyles: gatewayIconWrapperStyles, gateWayIconStyles: gateWayIconStyles, iconWrapperStyles: iconWrapperStyles }));
58
33
  }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { ChargeStatusIconProps } from './type';
3
+ export interface ChargeStatusIconViewProps extends Pick<ChargeStatusIconProps, 'chargeStatus' | 'errorCode' | 'showBadge' | 'unCapturedStyles' | 'gatewayContainerStyles' | 'gatewayIconWrapperStyles' | 'gateWayIconStyles' | 'iconWrapperStyles' | 'gatewayCode' | 'acquirerCode' | 'gateWayIconStyles' | 'iconWrapperStyles' | 'unCapturedStyles'> {
4
+ chargeIcon: React.ReactNode;
5
+ chargeTooltipTitle?: React.ReactNode;
6
+ acquirerTooltipTitle?: React.ReactNode;
7
+ unCapturedStatusStyle?: any;
8
+ gatewayTooltipTitle?: React.ReactNode;
9
+ }
10
+ export declare const ChargeStatusIconView: React.FC<ChargeStatusIconViewProps>;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import camelCase from 'lodash/camelCase';
4
+ import Tooltip from '../../Tooltip';
5
+ import { unCapturedStatuses } from '../../../constants/index.js';
6
+ import { StatusIconWrapper } from '../../TableCells/CustomCells/style';
7
+ import { AcquirerContainerAnimationVariants, ErrorCodeLabel, ErrorCodeLabelAnimationVariants, ErrorCodeVariants, ErrorCodeWrapper, GateWayIcon, GatewayIconWrapper, GatewayIconWrapperAnimationTransition, GatewaysContainer, GatewaysContainerAnimationVariants, UnCapturedBadge, UnCapturedContainer, errorCodeLabelAnimation, } from './style';
8
+ export const ChargeStatusIconView = ({ chargeStatus, chargeIcon, chargeTooltipTitle, acquirerTooltipTitle, gatewayTooltipTitle, errorCode, showBadge = true, unCapturedStyles, unCapturedStatusStyle, gatewayContainerStyles, gatewayIconWrapperStyles, gateWayIconStyles, iconWrapperStyles, }) => {
9
+ const { t } = useTranslation();
10
+ const isUnCaptured = (unCapturedStatuses === null || unCapturedStatuses === void 0 ? void 0 : unCapturedStatuses.includes(chargeStatus || '')) &&
11
+ (chargeTooltipTitle || acquirerTooltipTitle || gatewayTooltipTitle);
12
+ if (isUnCaptured) {
13
+ return (_jsx(StatusIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_StatusIconWrapper", style: iconWrapperStyles }, { children: _jsxs(UnCapturedContainer, Object.assign({ "data-testid": "ChargeStatusIcon_UnCapturedContainer", whileHover: ['animate', 'fadeIn'], style: Object.assign(Object.assign({ left: '0' }, (showBadge && {
14
+ paddingInline: '12px',
15
+ border: '1px solid #F2F2F2',
16
+ borderRadius: '12px',
17
+ backgroundColor: '#fff',
18
+ })), unCapturedStyles) }, { children: [_jsx(UnCapturedBadge, Object.assign({ "data-testid": "ChargeStatusIcon_UnCapturedBadge", sx: { borderRadius: '56px' }, initial: { background: 'transparent' }, variants: {
19
+ animate: { background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background },
20
+ } }, { children: _jsx(Tooltip, Object.assign({ title: chargeTooltipTitle !== null && chargeTooltipTitle !== void 0 ? chargeTooltipTitle : t(camelCase(chargeStatus)) }, { children: _jsxs(_Fragment, { children: [chargeIcon, _jsx(ErrorCodeWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_ErrorCodeWrapper", transition: { animate: { duration: 0.05 } }, variants: ErrorCodeLabelAnimationVariants, style: Object.assign({}, (errorCode && { padding: '0 !important' })) }, { children: _jsx(ErrorCodeLabel, Object.assign({ "data-testid": "ChargeStatusIcon_ErrorCodeLabel", sx: { background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color }, transition: errorCodeLabelAnimation, variants: ErrorCodeVariants, initial: { opacity: 0 } }, { children: errorCode })) }))] }) })) })), _jsx(GatewaysContainer, Object.assign({ "data-testid": "ChargeStatusIcon_GatewaysContainer", transition: GatewayIconWrapperAnimationTransition, variants: GatewaysContainerAnimationVariants, style: gatewayContainerStyles, isVisible: !!gatewayTooltipTitle }, { children: gatewayTooltipTitle && (_jsx(Tooltip, Object.assign({ title: gatewayTooltipTitle }, { children: _jsx(GatewayIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_GatewayIconWrapper", style: Object.assign({ background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background }, gatewayIconWrapperStyles) }, { children: _jsx(GateWayIcon, { src: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.gatewayIcon, alt: "gateway-icon", "data-testid": "ChargeStatusIcon_GatewayIcon", style: gateWayIconStyles }) })) }))) })), _jsx(GatewaysContainer, Object.assign({ "data-testid": "ChargeStatusIcon_GatewaysContainer", transition: GatewayIconWrapperAnimationTransition, variants: AcquirerContainerAnimationVariants, style: gatewayContainerStyles, isVisible: !!acquirerTooltipTitle }, { children: acquirerTooltipTitle && (_jsx(Tooltip, Object.assign({ title: acquirerTooltipTitle }, { children: _jsx(GatewayIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_AcquirerIconWrapper", style: Object.assign({ background: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background }, gatewayIconWrapperStyles) }, { children: _jsx(GateWayIcon, { src: unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.acquirerIcon, alt: "acquirer-icon", "data-testid": "ChargeStatusIcon_AcquirerIcon", style: gateWayIconStyles }) })) }))) }))] })) })));
21
+ }
22
+ return (_jsx(StatusIconWrapper, Object.assign({ "data-testid": "ChargeStatusIcon_StatusIconWrapper", style: iconWrapperStyles }, { children: _jsx(Tooltip, Object.assign({ title: chargeTooltipTitle !== null && chargeTooltipTitle !== void 0 ? chargeTooltipTitle : t(camelCase(chargeStatus)) }, { children: _jsx(StatusIconWrapper, { children: chargeIcon }) })) })));
23
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SelectionProps } from '../../../types/index.js';
3
+ import { ChargeStatusIconProps } from './type';
4
+ export interface ChargeStatusSheetViewProps extends Pick<ChargeStatusIconProps, 'chargeStatus' | 'errorCode' | 'gatewayCode' | 'acquirerCode'> {
5
+ chipIndex?: number;
6
+ selectionProps?: SelectionProps;
7
+ unCapturedStatusStyle?: any;
8
+ }
9
+ export declare const ChargeStatusSheetView: React.FC<ChargeStatusSheetViewProps>;
@@ -0,0 +1,9 @@
1
+ import { jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useTranslation } from 'react-i18next';
3
+ import camelCase from 'lodash/camelCase';
4
+ import StatusChipWithCopy from '../../StatusChipWithCopy';
5
+ import { TextViewWrapper } from './style';
6
+ export const ChargeStatusSheetView = ({ chargeStatus, errorCode, chipIndex = 0, selectionProps = {}, gatewayCode, acquirerCode, unCapturedStatusStyle, }) => {
7
+ const { t } = useTranslation();
8
+ return (_jsxs(TextViewWrapper, { children: [_jsxs(StatusChipWithCopy, Object.assign({ copyText: t(camelCase(chargeStatus)), chipIndex: chipIndex, selectionProps: selectionProps }, { children: [t(camelCase(chargeStatus)), " ", errorCode] })), unCapturedStatusStyle && (_jsxs(_Fragment, { children: [gatewayCode && (_jsxs(StatusChipWithCopy, Object.assign({ copyText: "Gateway", chipIndex: 1, selectionProps: selectionProps }, { children: ["Gateway ", gatewayCode] }))), acquirerCode && (_jsxs(StatusChipWithCopy, Object.assign({ copyText: "Acquirer", chipIndex: 2, selectionProps: selectionProps }, { children: ["Acquirer ", acquirerCode] })))] }))] }));
9
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { ChargeStatusIconProps } from './type';
3
+ export interface ChargeStatusTextViewProps extends Pick<ChargeStatusIconProps, 'chargeStatus' | 'errorCode' | 'gatewayCode' | 'acquirerCode'> {
4
+ gatewayTooltipTitle?: React.ReactNode;
5
+ acquirerTooltipTitle?: React.ReactNode;
6
+ chargeTooltipTitle?: React.ReactNode;
7
+ unCapturedStatusStyle: React.CSSProperties | null;
8
+ captureStatusStyle: React.CSSProperties | null;
9
+ }
10
+ export declare const ChargeStatusTextView: React.FC<ChargeStatusTextViewProps>;
@@ -0,0 +1,16 @@
1
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useTheme } from '@mui/material/styles';
3
+ import { useTranslation } from 'react-i18next';
4
+ import camelCase from 'lodash/camelCase';
5
+ import Tooltip from '../../Tooltip';
6
+ import { TextLabel } from '../../TableCells/CustomCells/style';
7
+ import { TextViewWrapper, StatusTextLabel } from './style';
8
+ export const ChargeStatusTextView = ({ chargeStatus, chargeTooltipTitle, unCapturedStatusStyle, captureStatusStyle, errorCode, gatewayCode, gatewayTooltipTitle, acquirerCode, acquirerTooltipTitle, }) => {
9
+ const theme = useTheme();
10
+ const { t } = useTranslation();
11
+ const commonStyles = {
12
+ background: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.background) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.background) || 'transparent',
13
+ color: (unCapturedStatusStyle === null || unCapturedStatusStyle === void 0 ? void 0 : unCapturedStatusStyle.color) || (captureStatusStyle === null || captureStatusStyle === void 0 ? void 0 : captureStatusStyle.color) || theme.palette.info.dark,
14
+ };
15
+ return (_jsxs(TextViewWrapper, { children: [_jsx(Tooltip, Object.assign({ title: chargeTooltipTitle }, { children: _jsxs(StatusTextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: Object.assign(Object.assign({}, commonStyles), { borderColor: `${commonStyles.color}1A` }) }, { children: [t(camelCase(chargeStatus)), " ", errorCode] })) })), unCapturedStatusStyle && (_jsxs(_Fragment, { children: [gatewayCode && (_jsx(Tooltip, Object.assign({ title: gatewayTooltipTitle }, { children: _jsxs(TextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: commonStyles }, { children: ["Gateway ", gatewayCode] })) }))), acquirerCode && (_jsx(Tooltip, Object.assign({ title: acquirerTooltipTitle }, { children: _jsxs(TextLabel, Object.assign({ "data-testid": "ChargeStatusIcon_isTextShown", "data-status": camelCase(chargeStatus), sx: commonStyles }, { children: ["Acquirer ", acquirerCode] })) })))] }))] }));
16
+ };
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -0,0 +1,24 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ import { type ChargeStatus } from '../../TableCells';
3
+ import { SelectionProps } from '../../../types/index.js';
4
+ export interface ChargeStatusIconProps {
5
+ chargeStatus?: ChargeStatus;
6
+ gatewayTooltip?: string;
7
+ showAuthorizedStatus?: boolean;
8
+ chargeTooltip?: string;
9
+ acquirerTooltip?: string;
10
+ errorCode?: string;
11
+ isTextShown?: boolean;
12
+ gatewayCode?: ReactNode;
13
+ acquirerCode?: React.ReactNode;
14
+ unCapturedStyles?: CSSProperties;
15
+ iconStyles?: CSSProperties;
16
+ iconWrapperStyles?: CSSProperties;
17
+ gatewayIconWrapperStyles?: CSSProperties;
18
+ gatewayContainerStyles?: CSSProperties;
19
+ gateWayIconStyles?: CSSProperties;
20
+ showBadge?: boolean;
21
+ isSheetViewShown?: boolean;
22
+ selectionProps?: SelectionProps;
23
+ chipIndex?: number;
24
+ }
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { TableMode } from '../../../../types/index.js';
4
3
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
4
  tableMode?: TableMode | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledAgreementCardIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const CardContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
3
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
3
  isTextShown?: boolean | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -10,7 +10,9 @@ export const StyledSourceImage = styled('img')(() => ({
10
10
  maxWidth: '36px',
11
11
  maxHeight: '24px',
12
12
  }));
13
- export const ReferenceSourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
13
+ export const ReferenceSourcesContainer = styled(motion.span, {
14
+ shouldForwardProp: (prop) => prop !== 'sourcesCount',
15
+ })(({ theme, sourcesCount }) => ({
14
16
  display: 'flex',
15
17
  alignItems: 'center',
16
18
  justifyContent: 'flex-start',
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -46,7 +46,9 @@ export const statusAnimation = (index, shadow, xDelta) => ({
46
46
  export const StatusIcon = styled(motion.span)(({ isTextShown, theme }) => (Object.assign({ border: `1px solid ${theme.palette.divider}`, borderRadius: '12px', backgroundColor: theme.palette.background.paper, height: '24px', display: 'flex', alignItems: 'center', justifyContent: 'center', minWidth: isTextShown ? 'auto' : '36px' }, (isTextShown && {
47
47
  border: 'none',
48
48
  }))));
49
- export const StatusWrapper = styled(motion.div)(({ statusesCount }) => ({
49
+ export const StatusWrapper = styled(motion.div, {
50
+ shouldForwardProp: (prop) => prop !== 'statusesCount',
51
+ })(({ statusesCount }) => ({
50
52
  display: 'flex',
51
53
  alignItems: 'center',
52
54
  justifyContent: 'center',
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  variant?: "Global" | "Regional" | "Local" | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  type ExportButtonProps = {
4
3
  notificationState?: {
5
4
  success: boolean;
@@ -1,7 +1,7 @@
1
1
  import { styled, Box, alpha } from '@mui/material';
2
2
  import { motion } from 'framer-motion';
3
3
  export const ExportButton = styled(motion.div, {
4
- shouldForwardProp: (props) => props !== 'notificationState' && props !== 'open' && props !== 'loading' && props !== 'ready',
4
+ shouldForwardProp: (prop) => !['notificationState', 'open', 'loading', 'ready', 'failed'].includes(prop),
5
5
  })(({ theme, notificationState, open, loading, ready, failed }) => (Object.assign(Object.assign({ position: 'relative', border: `1px solid ${theme.palette.divider}`, padding: '0 8px', height: 32, borderRadius: '4px', display: 'flex', alignItems: 'center', overflow: 'hidden', fontSize: '11px', fontWeight: 500, color: theme.palette.text.primary, transition: 'width 2s ease-in-out', cursor: 'pointer' }, (((notificationState === null || notificationState === void 0 ? void 0 : notificationState.success) || (notificationState === null || notificationState === void 0 ? void 0 : notificationState.failed)) &&
6
6
  !loading &&
7
7
  !ready &&
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
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.397",
5
- "testVersion": 0,
4
+ "version": "0.1.398-test.1",
5
+ "testVersion": 1,
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
+ }