@tap-payments/os-micro-frontend-shared 0.1.243 → 0.1.245-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 (85) hide show
  1. package/build/components/ActionMenu/ActionMenuDropDown.js +4 -3
  2. package/build/components/ActionMenu/ActionMenuItem.js +4 -4
  3. package/build/components/ActionMenu/style.d.ts +0 -1
  4. package/build/components/ActionMenu/style.js +0 -4
  5. package/build/components/ActivityAreaChart/components/ChartTooltip.js +4 -3
  6. package/build/components/ActivityAreaChart/styles.d.ts +0 -1
  7. package/build/components/ActivityAreaChart/styles.js +0 -6
  8. package/build/components/Chip/style.d.ts +0 -1
  9. package/build/components/CountBadge/style.d.ts +0 -1
  10. package/build/components/CountryFlag/CountryFlag.js +1 -1
  11. package/build/components/CountryFlagByCurrencyCode/CountryFlagByCurrencyCode.d.ts +8 -0
  12. package/build/components/CountryFlagByCurrencyCode/CountryFlagByCurrencyCode.js +22 -0
  13. package/build/components/CountryFlagByCurrencyCode/index.d.ts +2 -0
  14. package/build/components/CountryFlagByCurrencyCode/index.js +2 -0
  15. package/build/components/{CurrencyIcon/CurrencyIcon.d.ts → CurrencySymbol/CurrencySymbol.d.ts} +2 -2
  16. package/build/components/CurrencySymbol/CurrencySymbol.js +14 -0
  17. package/build/components/CurrencySymbol/index.d.ts +2 -0
  18. package/build/components/CurrencySymbol/index.js +2 -0
  19. package/build/components/{CurrencyIcon → CurrencySymbol}/style.d.ts +1 -1
  20. package/build/components/{CurrencyIcon → CurrencySymbol}/style.js +1 -1
  21. package/build/components/Dialog/style.d.ts +0 -1
  22. package/build/components/FlippingCard/style.d.ts +0 -1
  23. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  24. package/build/components/JSONViewer/style.d.ts +0 -1
  25. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  26. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  27. package/build/components/SearchButton/styles.d.ts +0 -1
  28. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  29. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  30. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  31. package/build/components/StatusIcons/GeographyIcon/GeographyIcon.d.ts +1 -1
  32. package/build/components/StatusIcons/GeographyIcon/GeographyIcon.js +3 -5
  33. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/AmountCell/AmountCell.js +3 -6
  36. package/build/components/TableCells/CustomCells/AmountCell/AmountCellText.js +2 -2
  37. package/build/components/TableCells/CustomCells/AmountCell/components/AmountConversionTooltipLabel.js +2 -2
  38. package/build/components/TableCells/CustomCells/AmountCell/components/CurrencyInfo.js +2 -2
  39. package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +0 -1
  40. package/build/components/TableCells/CustomCells/AmountCell/style.js +0 -6
  41. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  42. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  43. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  44. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  45. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCell.js +3 -3
  46. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellSheet.js +3 -3
  47. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  48. package/build/components/TableCells/CustomCells/BankCell/BankCell.js +2 -6
  49. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  50. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  51. package/build/components/TableCells/CustomCells/CurrencyCell/CurrencyCell.js +3 -4
  52. package/build/components/TableCells/CustomCells/CurrencyCell/style.d.ts +0 -2
  53. package/build/components/TableCells/CustomCells/CurrencyCell/style.js +0 -10
  54. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCellSheet.js +2 -2
  55. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCellText.js +2 -2
  56. package/build/components/TableCells/CustomCells/DestinationCell/utils.js +3 -3
  57. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  58. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  59. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  60. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  61. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  62. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  63. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  64. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  65. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  66. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  67. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  68. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  69. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
  70. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  71. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  72. package/build/components/TableCells/CustomCells/WalletCell/WalletCell.js +1 -5
  73. package/build/components/TableCells/CustomCells/style.d.ts +0 -2
  74. package/build/components/TableCells/CustomCells/style.js +0 -4
  75. package/build/components/VirtualTables/components/style.d.ts +0 -1
  76. package/build/components/index.d.ts +2 -1
  77. package/build/components/index.js +2 -1
  78. package/build/constants/assets.js +2 -2
  79. package/build/types/merchant.d.ts +6 -0
  80. package/build/utils/currency.d.ts +0 -1
  81. package/build/utils/currency.js +1 -6
  82. package/package.json +3 -3
  83. package/build/components/CurrencyIcon/CurrencyIcon.js +0 -15
  84. package/build/components/CurrencyIcon/index.d.ts +0 -2
  85. package/build/components/CurrencyIcon/index.js +0 -2
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useTranslation } from 'react-i18next';
3
- import { getCurrencyCodeFlag, intlCurrency } from '../../utils/index.js';
4
- import { EnglishAmount, StyledCurrency, StyledIconRowContainer, StyledDropDownContainer, StyledDropdown, StyledFlag, StyledMenuItem, StyledTextAmount, DropDownChargeGapColumn, } from './style';
3
+ import { intlCurrency } from '../../utils/index.js';
4
+ import CountryFlagByCurrencyCode from '../CountryFlagByCurrencyCode';
5
+ import { EnglishAmount, StyledCurrency, StyledIconRowContainer, StyledDropDownContainer, StyledDropdown, StyledMenuItem, StyledTextAmount, DropDownChargeGapColumn, } from './style';
5
6
  const Menu = ({ selectedCurrency, option, closeDropdown, handleSelectOption }) => {
6
7
  var _a, _b, _c;
7
8
  const { t } = useTranslation();
@@ -10,7 +11,7 @@ const Menu = ({ selectedCurrency, option, closeDropdown, handleSelectOption }) =
10
11
  handleSelectOption(option.value, option === null || option === void 0 ? void 0 : option.currency);
11
12
  }
12
13
  closeDropdown();
13
- } }, { children: [_jsx(EnglishAmount, Object.assign({ showBottomPadding: true, showWarning: false }, { children: t(option.name) })), _jsxs(DropDownChargeGapColumn, { children: [_jsxs(StyledIconRowContainer, Object.assign({ marginRightAuto: true }, { children: [_jsx(StyledFlag, { src: getCurrencyCodeFlag((_a = option === null || option === void 0 ? void 0 : option.currency) !== null && _a !== void 0 ? _a : selectedCurrency), alt: `${option === null || option === void 0 ? void 0 : option.currency} flag` }), _jsx(StyledCurrency, { children: (_b = option === null || option === void 0 ? void 0 : option.currency) !== null && _b !== void 0 ? _b : selectedCurrency })] })), _jsx(StyledTextAmount, Object.assign({ showWarning: false }, { children: intlCurrency(option.value || 0, (_c = option === null || option === void 0 ? void 0 : option.currency) !== null && _c !== void 0 ? _c : selectedCurrency) }))] })] })));
14
+ } }, { children: [_jsx(EnglishAmount, Object.assign({ showBottomPadding: true, showWarning: false }, { children: t(option.name) })), _jsxs(DropDownChargeGapColumn, { children: [_jsxs(StyledIconRowContainer, Object.assign({ marginRightAuto: true }, { children: [_jsx(CountryFlagByCurrencyCode, { code: (_a = option === null || option === void 0 ? void 0 : option.currency) !== null && _a !== void 0 ? _a : selectedCurrency, width: "0.76rem" }), _jsx(StyledCurrency, { children: (_b = option === null || option === void 0 ? void 0 : option.currency) !== null && _b !== void 0 ? _b : selectedCurrency })] })), _jsx(StyledTextAmount, Object.assign({ showWarning: false }, { children: intlCurrency(option.value || 0, (_c = option === null || option === void 0 ? void 0 : option.currency) !== null && _c !== void 0 ? _c : selectedCurrency) }))] })] })));
14
15
  };
15
16
  function ActionMenuDropDown({ menuAnchor, showDropDown, selectedCurrency, options, closeDropdown, handleSelectOption }) {
16
17
  if (options.length <= 1)
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { useRef } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { blueDropdownArrowIcon, greyDropdownIcon } from '../../constants/index.js';
5
- import { getCurrencyCodeFlag } from '../../utils/index.js';
6
- import { EnglishAmount, Charge, StyledIconRowContainer, StyledFlag, StyledCurrency, StyledDropDownIcon, StyledAmount, StyledMissingDiv, } from './style';
5
+ import CountryFlagByCurrencyCode from '../CountryFlagByCurrencyCode';
6
+ import { EnglishAmount, Charge, StyledIconRowContainer, StyledCurrency, StyledDropDownIcon, StyledAmount, StyledMissingDiv } from './style';
7
7
  import Skeleton from '../Skeleton';
8
- import CurrencyIcon from '../CurrencyIcon';
8
+ import CurrencySymbol from '../CurrencySymbol';
9
9
  function ActionMenuItem({ showWarning, selectedCurrency, onAmountChange, amount, currencyConfig, toggleDropDown, showDropDown, showDropdownIcon, disabled, isLoading, }) {
10
10
  var _a, _b;
11
11
  const { t } = useTranslation();
@@ -15,6 +15,6 @@ function ActionMenuItem({ showWarning, selectedCurrency, onAmountChange, amount,
15
15
  iconRef.current.click();
16
16
  }
17
17
  };
18
- return (_jsxs(_Fragment, { children: [_jsxs(Charge, { children: [_jsx(EnglishAmount, Object.assign({ showBottomPadding: true, showWarning: showWarning }, { children: t('amount') })), _jsxs(StyledIconRowContainer, Object.assign({ limited: true, paddingTop: true, onClick: onClickMissingDiv }, { children: [_jsx(StyledFlag, { src: getCurrencyCodeFlag(selectedCurrency), alt: `${selectedCurrency} flag` }), _jsx(StyledCurrency, { children: _jsx(CurrencyIcon, { currency: selectedCurrency }) }), !showWarning && showDropdownIcon && (_jsx(StyledDropDownIcon, { src: !showDropDown ? blueDropdownArrowIcon : greyDropdownIcon, alt: "drop-down icon", currencyPadding: true }))] }))] }), _jsx(StyledMissingDiv, { ref: iconRef, onClick: toggleDropDown }), isLoading ? (_jsx(Skeleton, { variant: "text", width: "100%", height: "100%" })) : (_jsx(StyledAmount, { disabled: disabled, placeholder: currencyConfig[selectedCurrency] ? '0.000' : '0.00', onValueChange: onAmountChange, value: amount, decimalsLimit: (_a = currencyConfig[selectedCurrency]) !== null && _a !== void 0 ? _a : 2, showWarning: showWarning || false, decimalScale: (_b = currencyConfig[selectedCurrency]) !== null && _b !== void 0 ? _b : 2, autoFocus: true }))] }));
18
+ return (_jsxs(_Fragment, { children: [_jsxs(Charge, { children: [_jsx(EnglishAmount, Object.assign({ showBottomPadding: true, showWarning: showWarning }, { children: t('amount') })), _jsxs(StyledIconRowContainer, Object.assign({ limited: true, paddingTop: true, onClick: onClickMissingDiv }, { children: [_jsx(CountryFlagByCurrencyCode, { code: selectedCurrency, width: "0.76rem" }), _jsx(StyledCurrency, { children: _jsx(CurrencySymbol, { currency: selectedCurrency }) }), !showWarning && showDropdownIcon && (_jsx(StyledDropDownIcon, { src: !showDropDown ? blueDropdownArrowIcon : greyDropdownIcon, alt: "drop-down icon", currencyPadding: true }))] }))] }), _jsx(StyledMissingDiv, { ref: iconRef, onClick: toggleDropDown }), isLoading ? (_jsx(Skeleton, { variant: "text", width: "100%", height: "100%" })) : (_jsx(StyledAmount, { disabled: disabled, placeholder: currencyConfig[selectedCurrency] ? '0.000' : '0.00', onValueChange: onAmountChange, value: amount, decimalsLimit: (_a = currencyConfig[selectedCurrency]) !== null && _a !== void 0 ? _a : 2, showWarning: showWarning || false, decimalScale: (_b = currencyConfig[selectedCurrency]) !== null && _b !== void 0 ? _b : 2, autoFocus: true }))] }));
19
19
  }
20
20
  export default ActionMenuItem;
@@ -58,7 +58,6 @@ export declare const StyledIconRowContainer: import("@emotion/styled").StyledCom
58
58
  }, {}, {}>;
59
59
  export declare const StyledCurrency: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
60
60
  export declare const StyledMissingDiv: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
61
- export declare const StyledFlag: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
62
61
  export declare const StyledPopover: import("@emotion/styled").StyledComponent<import("@mui/material").PopoverProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
63
62
  export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
64
63
  disabled?: boolean | undefined;
@@ -129,10 +129,6 @@ export const StyledMissingDiv = styled('div')({
129
129
  width: 0,
130
130
  height: 0,
131
131
  });
132
- export const StyledFlag = styled('img')({
133
- width: '0.76rem',
134
- height: '0.56rem',
135
- });
136
132
  export const StyledPopover = styled(Popover)(({ theme }) => ({
137
133
  backgroundColor: theme.palette.background.default,
138
134
  boxShadow: theme.shadows[21],
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import dayjs from 'dayjs';
4
4
  import Box from '@mui/material/Box';
5
- import { getCurrencyCodeFlag, getLocalizedUnitLabel } from '../../../utils/index.js';
5
+ import { getLocalizedUnitLabel } from '../../../utils/index.js';
6
6
  import { DATA_KEY } from '../../../constants/index.js';
7
- import { TooltipContainer, TimeTypography, ValueTypography, CurrencyBox, CurrencyText, CurrencyIcon } from '../styles';
7
+ import CountryFlagByCurrencyCode from '../../CountryFlagByCurrencyCode';
8
+ import { TooltipContainer, TimeTypography, ValueTypography, CurrencyBox, CurrencyText } from '../styles';
8
9
  import { getTooltipFormattedValue, getFormattedDateWithTimezone } from '../utils';
9
10
  const ChartTooltip = ({ active, payload, dateRange, selectedCurrency }) => {
10
11
  var _a, _b, _c, _d;
@@ -16,7 +17,7 @@ const ChartTooltip = ({ active, payload, dateRange, selectedCurrency }) => {
16
17
  const point = payload[0];
17
18
  const localizedUnitLabel = getLocalizedUnitLabel(point === null || point === void 0 ? void 0 : point.dataKey, point === null || point === void 0 ? void 0 : point.value);
18
19
  const formattedDate = ((_a = point === null || point === void 0 ? void 0 : point.payload) === null || _a === void 0 ? void 0 : _a.date) && getFormattedDateWithTimezone((_b = point === null || point === void 0 ? void 0 : point.payload) === null || _b === void 0 ? void 0 : _b.date, isSingleDay, (_c = point === null || point === void 0 ? void 0 : point.payload) === null || _c === void 0 ? void 0 : _c.hour);
19
- return (_jsxs(TooltipContainer, Object.assign({ className: "chart-tooltip" }, { children: [_jsx(TimeTypography, { children: formattedDate !== null && formattedDate !== void 0 ? formattedDate : (_d = point === null || point === void 0 ? void 0 : point.payload) === null || _d === void 0 ? void 0 : _d.date }), _jsxs(ValueTypography, { children: [(point === null || point === void 0 ? void 0 : point.dataKey) === DATA_KEY.AMOUNT && (_jsxs(CurrencyBox, { children: [_jsx(CurrencyIcon, { src: getCurrencyCodeFlag(selectedCurrency), alt: `${selectedCurrency} flag` }), _jsx(CurrencyText, { children: selectedCurrency })] })), _jsx(Box, { children: `${getTooltipFormattedValue(point, t(localizedUnitLabel), selectedCurrency)}` })] })] })));
20
+ return (_jsxs(TooltipContainer, Object.assign({ className: "chart-tooltip" }, { children: [_jsx(TimeTypography, { children: formattedDate !== null && formattedDate !== void 0 ? formattedDate : (_d = point === null || point === void 0 ? void 0 : point.payload) === null || _d === void 0 ? void 0 : _d.date }), _jsxs(ValueTypography, { children: [(point === null || point === void 0 ? void 0 : point.dataKey) === DATA_KEY.AMOUNT && (_jsxs(CurrencyBox, { children: [_jsx(CountryFlagByCurrencyCode, { code: selectedCurrency, width: 12 }), _jsx(CurrencyText, { children: selectedCurrency })] })), _jsx(Box, { children: `${getTooltipFormattedValue(point, t(localizedUnitLabel), selectedCurrency)}` })] })] })));
20
21
  }
21
22
  return null;
22
23
  };
@@ -14,4 +14,3 @@ export declare const CurrencyBox: import("@emotion/styled").StyledComponent<impo
14
14
  export declare const CurrencyText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
15
15
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
16
16
  }, "width" | "minHeight" | "height" | "bottom" | "left" | "right" | "top" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "align" | "className" | "style" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
- export declare const CurrencyIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -44,9 +44,3 @@ export const CurrencyText = styled(Typography)({
44
44
  color: '#4B4847',
45
45
  letterSpacing: '-0.14px',
46
46
  });
47
- export const CurrencyIcon = styled('img')({
48
- width: 12,
49
- height: 8.8,
50
- display: 'flex',
51
- alignItems: 'center',
52
- });
@@ -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;
@@ -15,7 +15,7 @@ import Box from '@mui/material/Box';
15
15
  import { defaultCountryIcon, getCountriesIcon } from '../../constants/index.js';
16
16
  function CountryFlag(_a) {
17
17
  var { code = '' } = _a, props = __rest(_a, ["code"]);
18
- return (_jsx(Box, Object.assign({}, props, { component: "img", src: getCountriesIcon(code) || defaultCountryIcon, alt: code, sx: Object.assign(Object.assign({ width: 16 }, (code && { height: 12, borderRadius: '3px' })), props.sx), loading: "lazy", onError: (e) => {
18
+ return (_jsx(Box, Object.assign({}, props, { component: "img", src: getCountriesIcon(code) || defaultCountryIcon, width: 16, alt: code, loading: "lazy", onError: (e) => {
19
19
  e.currentTarget.src = defaultCountryIcon;
20
20
  } })));
21
21
  }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@mui/material/Box';
3
+ interface CountryFlagByCurrencyCodeProps extends BoxProps {
4
+ code?: string;
5
+ }
6
+ declare function CountryFlagByCurrencyCode({ code, ...props }: CountryFlagByCurrencyCodeProps): import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: import("react").MemoExoticComponent<typeof CountryFlagByCurrencyCode>;
8
+ export default _default;
@@ -0,0 +1,22 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { memo } from 'react';
14
+ import Box from '@mui/material/Box';
15
+ import { defaultCountryIcon, getCurrenciesIcon } from '../../constants/index.js';
16
+ function CountryFlagByCurrencyCode(_a) {
17
+ var { code = '' } = _a, props = __rest(_a, ["code"]);
18
+ return (_jsx(Box, Object.assign({}, props, { component: "img", src: getCurrenciesIcon(code) || defaultCountryIcon, alt: code, loading: "lazy", onError: (e) => {
19
+ e.currentTarget.src = defaultCountryIcon;
20
+ } })));
21
+ }
22
+ export default memo(CountryFlagByCurrencyCode);
@@ -0,0 +1,2 @@
1
+ import CountryFlagByCurrencyCode from './CountryFlagByCurrencyCode';
2
+ export default CountryFlagByCurrencyCode;
@@ -0,0 +1,2 @@
1
+ import CountryFlagByCurrencyCode from './CountryFlagByCurrencyCode';
2
+ export default CountryFlagByCurrencyCode;
@@ -1,5 +1,5 @@
1
- declare function CurrencyIcon({ currency, fontSize }: {
1
+ declare function CurrencySymbol({ currency, fontSize }: {
2
2
  currency?: string;
3
3
  fontSize?: number;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
- export default CurrencyIcon;
5
+ export default CurrencySymbol;
@@ -0,0 +1,14 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { DirhamIconImage, SARIconImage } from '../../constants/index.js';
3
+ import { StyleCurrencySymbol } from './style';
4
+ const currencyMap = {
5
+ SAR: SARIconImage,
6
+ AED: DirhamIconImage,
7
+ };
8
+ function CurrencySymbol({ currency, fontSize }) {
9
+ const symbol = currencyMap[currency];
10
+ if (!symbol)
11
+ return _jsx(_Fragment, { children: currency });
12
+ return _jsx(StyleCurrencySymbol, { component: "img", src: symbol, alt: currency, sx: { height: fontSize } });
13
+ }
14
+ export default CurrencySymbol;
@@ -0,0 +1,2 @@
1
+ import CurrencySymbol from './CurrencySymbol';
2
+ export default CurrencySymbol;
@@ -0,0 +1,2 @@
1
+ import CurrencySymbol from './CurrencySymbol';
2
+ export default CurrencySymbol;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const StyleCurrencyIcon: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material/styles").Theme>>;
2
+ export declare const StyleCurrencySymbol: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material/styles").Theme>>;
3
3
  export declare const CurrencySpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
4
  export declare const DecimalSpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,6 +1,6 @@
1
1
  import Box from '@mui/material/Box';
2
2
  import { styled } from '@mui/material/styles';
3
- export const StyleCurrencyIcon = styled(Box)(() => ({
3
+ export const StyleCurrencySymbol = styled(Box)(() => ({
4
4
  height: 10,
5
5
  }));
6
6
  export const CurrencySpan = styled('span')(({ theme }) => ({
@@ -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 { SxProps, 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,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;
@@ -2,4 +2,4 @@ export declare const GeographyIcon: ({ geographyVariant, countryCode, isTextShow
2
2
  geographyVariant?: "G" | "L" | "R" | undefined;
3
3
  countryCode?: string | undefined;
4
4
  isTextShown?: boolean | undefined;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import CountryFlag from '../../CountryFlag';
3
3
  import Tooltip from '../../Tooltip';
4
- import { GeographyBox } from './style';
5
4
  const geographyMap = {
6
5
  G: 'Global',
7
6
  R: 'Regional',
@@ -12,8 +11,7 @@ export const GeographyIcon = ({ geographyVariant, countryCode, isTextShown, }) =
12
11
  const tooltip = geographyTooltip || countryCode
13
12
  ? `${geographyTooltip || ''} ${geographyTooltip && countryCode ? `-` : ''} ${countryCode ? `${countryCode}` : ''}`
14
13
  : undefined;
15
- const icon = countryCode && _jsx(CountryFlag, { code: countryCode });
16
- return (_jsx(Tooltip, Object.assign({ title: tooltip }, { children: _jsx(GeographyBox, Object.assign({ variant: geographyVariant ? geographyMap[geographyVariant] : undefined, className: "geography-box", "data-testid": "SourceCell_GeographyBox", sx: {
17
- visibility: 'visible',
18
- } }, { children: isTextShown ? null : icon })) })));
14
+ if (isTextShown || !countryCode)
15
+ return null;
16
+ return (_jsx(Tooltip, Object.assign({ title: tooltip }, { children: _jsx(CountryFlag, { code: countryCode }) })));
19
17
  };
@@ -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;
@@ -13,15 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { Box } from '@mui/material';
14
14
  import { TableCell } from '../../../TableCells';
15
15
  import Tooltip from '../../../Tooltip';
16
- import { CurrencyIcon } from '../../../index.js';
17
- import { getCurrenciesIcon } from '../../../../constants/index.js';
18
- import { AmountCellContainer, FlagContainer } from './style';
19
- import { FlagIcon } from '../style';
16
+ import { CountryFlagByCurrencyCode, CurrencySymbol } from '../../../index.js';
17
+ import { AmountCellContainer } from './style';
20
18
  import { ConversionTypeLabel, CurrencyInfo } from './components';
21
19
  const tableMode = 'default';
22
20
  function AmountCell(_a) {
23
21
  var { conversionType, amount, currency, tooltipLabel, amountTooltipLabel } = _a, props = __rest(_a, ["conversionType", "amount", "currency", "tooltipLabel", "amountTooltipLabel"]);
24
- const icon = currency && _jsx(FlagIcon, { src: getCurrenciesIcon(currency), alt: "customer icon" });
25
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: _jsx(Box, { children: _jsx(ConversionTypeLabel, { tableMode: tableMode, conversionType: conversionType }) }) })), _jsx(Tooltip, Object.assign({ title: _jsx(CurrencyIcon, { currency: currency }) }, { children: _jsx(FlagContainer, { children: icon }) })), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency }) }))] }) })));
22
+ return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: _jsx(Box, { children: _jsx(ConversionTypeLabel, { tableMode: tableMode, conversionType: conversionType }) }) })), currency && (_jsx(Tooltip, Object.assign({ title: _jsx(CurrencySymbol, { currency: currency }) }, { children: _jsx(CountryFlagByCurrencyCode, { code: currency }) }))), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency }) }))] }) })));
26
23
  }
27
24
  export default AmountCell;
@@ -12,12 +12,12 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { TableCell } from '../../../TableCells';
14
14
  import Tooltip from '../../../Tooltip';
15
- import { CurrencyIcon } from '../../../index.js';
15
+ import { CurrencySymbol } from '../../../index.js';
16
16
  import { AmountCellContainer } from './style';
17
17
  import { ConversionTypeLabel, CurrencyInfo } from './components';
18
18
  const tableMode = 'text';
19
19
  function AmountCellText(_a) {
20
20
  var { conversionType, amount, currency, tooltipLabel, amountTooltipLabel } = _a, props = __rest(_a, ["conversionType", "amount", "currency", "tooltipLabel", "amountTooltipLabel"]);
21
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: _jsx(ConversionTypeLabel, { tableMode: tableMode, conversionType: conversionType }) })), _jsx(Tooltip, Object.assign({ title: _jsx(CurrencyIcon, { currency: currency }) }, { children: _jsx("span", {}) })), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency }) }))] }) })));
21
+ return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AmountCellContainer, { children: [_jsx(Tooltip, Object.assign({ title: tooltipLabel || '' }, { children: _jsx(ConversionTypeLabel, { tableMode: tableMode, conversionType: conversionType }) })), _jsx(Tooltip, Object.assign({ title: _jsx(CurrencySymbol, { currency: currency }) }, { children: _jsx("span", {}) })), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency }) }))] }) })));
22
22
  }
23
23
  export default AmountCellText;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { conversionTypesLabels, formatAmountWithCurrency } from '../../../../../utils/index.js';
3
- import { CurrencyIcon } from '../../../../index.js';
3
+ import { CurrencySymbol } from '../../../../index.js';
4
4
  import { ConversionTooltip, ConversionTooltipRow } from '../style';
5
5
  export const AmountConversionTooltipLabel = ({ type, selectAmount, selectCurrency, requestAmount, requestCurrency, merchantAmount, merchantCurrency, }) => {
6
6
  const customerSelectValue = formatAmountWithCurrency(selectAmount, selectCurrency);
@@ -11,5 +11,5 @@ export const AmountConversionTooltipLabel = ({ type, selectAmount, selectCurrenc
11
11
  justifyContent: 'flex-end',
12
12
  } }, { children: [_jsx("span", Object.assign({ style: {
13
13
  fontWeight: 'bold',
14
- } }, { children: type ? conversionTypesLabels[type] : '' })), _jsxs(ConversionTooltip, { children: [type !== 'fx' && (_jsxs(ConversionTooltipRow, { children: [_jsx("span", { children: "Customer Selected" }), ' ', _jsxs("span", { children: [_jsx(CurrencyIcon, { currency: selectCurrency }), " ", customerSelectValue.integerAmount, ".", customerSelectValue.decimalAmount] })] })), _jsxs(ConversionTooltipRow, { children: [_jsx("span", { children: "Charge" }), ' ', _jsxs("span", { children: [_jsx(CurrencyIcon, { currency: requestCurrency }), " ", chargeValue.integerAmount, ".", chargeValue.decimalAmount] })] }), _jsxs(ConversionTooltipRow, { children: [_jsx("span", { children: "Settlement" }), ' ', _jsxs("span", { children: [_jsx(CurrencyIcon, { currency: merchantCurrency }), " ", settlementValue.integerAmount, ".", settlementValue.decimalAmount] })] })] })] })));
14
+ } }, { children: type ? conversionTypesLabels[type] : '' })), _jsxs(ConversionTooltip, { children: [type !== 'fx' && (_jsxs(ConversionTooltipRow, { children: [_jsx("span", { children: "Customer Selected" }), ' ', _jsxs("span", { children: [_jsx(CurrencySymbol, { currency: selectCurrency }), " ", customerSelectValue.integerAmount, ".", customerSelectValue.decimalAmount] })] })), _jsxs(ConversionTooltipRow, { children: [_jsx("span", { children: "Charge" }), ' ', _jsxs("span", { children: [_jsx(CurrencySymbol, { currency: requestCurrency }), " ", chargeValue.integerAmount, ".", chargeValue.decimalAmount] })] }), _jsxs(ConversionTooltipRow, { children: [_jsx("span", { children: "Settlement" }), ' ', _jsxs("span", { children: [_jsx(CurrencySymbol, { currency: merchantCurrency }), " ", settlementValue.integerAmount, ".", settlementValue.decimalAmount] })] })] })] })));
15
15
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CurrencyIcon } from '../../../../index.js';
2
+ import { CurrencySymbol } from '../../../../index.js';
3
3
  import { CurrencySpan, DecimalSpan } from '../style';
4
4
  import { formatAmountWithCurrency } from '../../../../../utils/index.js';
5
5
  export const CurrencyInfo = ({ tableMode, amount, currency }) => {
6
6
  const { integerAmount, decimalAmount } = formatAmountWithCurrency(amount, currency);
7
- return (_jsx(CurrencySpan, Object.assign({ tableMode: tableMode }, { children: amount !== undefined ? (_jsxs(_Fragment, { children: [_jsx("span", { children: _jsx(CurrencyIcon, { currency: currency, fontSize: 10 }) }), ' ', integerAmount, decimalAmount && (_jsxs(_Fragment, { children: [".", _jsx(DecimalSpan, { children: decimalAmount })] }))] })) : (_jsx("span", { children: "-" })) })));
7
+ return (_jsx(CurrencySpan, Object.assign({ tableMode: tableMode }, { children: amount !== undefined ? (_jsxs(_Fragment, { children: [_jsx("span", { children: _jsx(CurrencySymbol, { currency: currency, fontSize: 10 }) }), ' ', integerAmount, decimalAmount && (_jsxs(_Fragment, { children: [".", _jsx(DecimalSpan, { children: decimalAmount })] }))] })) : (_jsx("span", { children: "-" })) })));
8
8
  };
@@ -4,7 +4,6 @@ export declare const AmountCellContainer: import("@emotion/styled").StyledCompon
4
4
  export declare const ConversionBadge: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
5
  tableMode?: TableMode | undefined;
6
6
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
7
- export declare const FlagContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
8
7
  export declare const CurrencySpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
9
8
  tableMode?: TableMode | undefined;
10
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -15,12 +15,6 @@ export const ConversionBadge = styled('span')(({ theme, tableMode }) => ({
15
15
  textTransform: 'uppercase',
16
16
  fontWeight: theme.typography.fontWeightBold,
17
17
  }));
18
- export const FlagContainer = styled('span')(() => ({
19
- display: 'flex',
20
- width: '16px',
21
- height: '12px',
22
- flexShrink: 0,
23
- }));
24
18
  export const CurrencySpan = styled('span')(({ theme, tableMode }) => ({
25
19
  fontSize: tableMode === 'sheet' ? '11px' : theme.typography.body2.fontSize,
26
20
  lineHeight: '17px',
@@ -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;
@@ -15,7 +15,7 @@ import { useTheme } from '@mui/material/styles';
15
15
  import { motion } from 'framer-motion';
16
16
  import Tooltip from '../../../Tooltip';
17
17
  import { TableCell } from '../../../TableCells';
18
- import { CurrencyIcon } from '../../../index.js';
18
+ import { CurrencySymbol } from '../../../index.js';
19
19
  import { formatAmountWithCurrency } from '../../../../utils/index.js';
20
20
  import { BalanceCellContainer, PercentageContainer } from './style';
21
21
  import { formatPercentage } from './utils';
@@ -23,11 +23,11 @@ import { PiePercentage } from '../style';
23
23
  function BalanceCell(_a) {
24
24
  var { percentage = 0, days, remainingAmount, currency } = _a, props = __rest(_a, ["percentage", "days", "remainingAmount", "currency"]);
25
25
  const theme = useTheme();
26
- const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
26
+ const currencySymbol = _jsx(CurrencySymbol, { currency: currency });
27
27
  const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
28
28
  const amount = `${integerAmount}.${decimalAmount}`;
29
29
  const generatedTooltip = useMemo(() => {
30
- return (_jsxs(_Fragment, { children: ["Remaining Authorized Balance - ", currencyIcon, " ", amount] }));
30
+ return (_jsxs(_Fragment, { children: ["Remaining Authorized Balance - ", currencySymbol, " ", amount] }));
31
31
  }, [remainingAmount, currency]);
32
32
  if (percentage === 0)
33
33
  return null;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CurrencyIcon, StatusChipWithCopy } from '../../../index.js';
2
+ import { CurrencySymbol, StatusChipWithCopy } from '../../../index.js';
3
3
  import { formatAmountWithCurrency } from '../../../../utils/index.js';
4
4
  function BalanceCellSheet({ remainingAmount, currency, selectionProps }) {
5
- const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
5
+ const currencySymbol = _jsx(CurrencySymbol, { currency: currency });
6
6
  const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
7
7
  const amount = `${integerAmount}.${decimalAmount}`;
8
- return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: 0, copyText: `${integerAmount}.${decimalAmount}`, selectionProps: selectionProps }, { children: [currencyIcon, " ", amount] })));
8
+ return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: 0, copyText: `${integerAmount}.${decimalAmount}`, selectionProps: selectionProps }, { children: [currencySymbol, " ", amount] })));
9
9
  }
10
10
  export default BalanceCellSheet;
@@ -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;
@@ -15,16 +15,12 @@ import CountryFlag from '../../../CountryFlag';
15
15
  import { TableCell } from '../../../TableCells';
16
16
  import { bankIcon } from '../../../../constants/index.js';
17
17
  import { getCountryNameByISO } from '../../../../utils/index.js';
18
- import { BankCellContainer, BankIcon, BankIdContainer, BankWrapper, IconWrapper } from './style';
19
- import { GeographyBox } from '../style';
18
+ import { BankCellContainer, BankIcon, BankIdContainer, BankWrapper } from './style';
20
19
  function BankCell(_a) {
21
20
  var { walletId, country, name } = _a, props = __rest(_a, ["walletId", "country", "name"]);
22
- const icon = country && (_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(country) }, { children: _jsx(CountryFlag, { code: country, sx: { padding: '1px' } }) })));
23
21
  return (_jsx(TableCell, Object.assign({ style: {
24
22
  textAlign: 'center',
25
23
  overflow: 'visible',
26
- } }, props, { children: _jsxs(BankCellContainer, { children: [country && (_jsx(IconWrapper, { children: _jsx(GeographyBox, Object.assign({ sx: {
27
- visibility: 'visible',
28
- }, variant: undefined }, { children: icon })) })), _jsxs(BankWrapper, { children: [_jsx(BankIcon, { src: bankIcon, alt: "bank-icon" }), walletId && (_jsxs(BankIdContainer, { children: [name, " \u00B7\u00B7\u00B7\u00B7 ", walletId === null || walletId === void 0 ? void 0 : walletId.substring(((walletId === null || walletId === void 0 ? void 0 : walletId.length) || 0) - 4)] }))] })] }) })));
24
+ } }, props, { children: _jsxs(BankCellContainer, { children: [country && (_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(country) }, { children: _jsx(CountryFlag, { code: country }) }))), _jsxs(BankWrapper, { children: [_jsx(BankIcon, { src: bankIcon, alt: "bank-icon" }), walletId && (_jsxs(BankIdContainer, { children: [name, " \u00B7\u00B7\u00B7\u00B7 ", walletId === null || walletId === void 0 ? void 0 : walletId.substring(((walletId === null || walletId === void 0 ? void 0 : walletId.length) || 0) - 4)] }))] })] }) })));
29
25
  }
30
26
  export default BankCell;
@@ -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,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getCurrenciesIcon } from '../../../../constants/index.js';
3
- import { Currency, FlagContainer, Wrapper } from './style';
4
- import { FlagIcon } from '../style';
2
+ import CountryFlagByCurrencyCode from '../../../CountryFlagByCurrencyCode';
3
+ import { Currency, Wrapper } from './style';
5
4
  export function CurrencyCell({ currency }) {
6
- return (_jsxs(Wrapper, { children: [_jsx(FlagContainer, { children: _jsx(FlagIcon, { src: getCurrenciesIcon(currency), alt: currency }) }), _jsx(Currency, { children: currency })] }));
5
+ return (_jsxs(Wrapper, { children: [_jsx(CountryFlagByCurrencyCode, { code: currency }), _jsx(Currency, { children: currency })] }));
7
6
  }
@@ -5,5 +5,3 @@ export declare const Wrapper: import("@emotion/styled").StyledComponent<import("
5
5
  export declare const Currency: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
6
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
7
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
- export declare const FlagContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
9
- export declare const FlagIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -10,13 +10,3 @@ export const Currency = styled(Box)(({ theme }) => ({
10
10
  color: theme.palette.text.primary,
11
11
  lineHeight: '16.8px',
12
12
  }));
13
- export const FlagContainer = styled('span')(() => ({
14
- display: 'flex',
15
- width: '17px',
16
- height: '12px',
17
- flexShrink: 0,
18
- }));
19
- export const FlagIcon = styled('img')({
20
- width: '100%',
21
- height: '100%',
22
- });
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
13
13
  import Box from '@mui/material/Box';
14
14
  import { formatAmount } from '../../../../utils/index.js';
15
- import { CurrencyIcon, StatusGroupChips } from '../../../index.js';
15
+ import { CurrencySymbol, StatusGroupChips } from '../../../index.js';
16
16
  function DestinationCellSheet(_a) {
17
17
  var { destinationsCount, destinationsTooltip, destination, destinationsAmount, hidden, iconDirection, selectionProps } = _a, props = __rest(_a, ["destinationsCount", "destinationsTooltip", "destination", "destinationsAmount", "hidden", "iconDirection", "selectionProps"]);
18
18
  const destinations = (destination === null || destination === void 0 ? void 0 : destination.destination) || [];
@@ -20,7 +20,7 @@ function DestinationCellSheet(_a) {
20
20
  const formattedDestAmount = formatAmount((dest === null || dest === void 0 ? void 0 : dest.amount) || 0);
21
21
  return {
22
22
  key: `destination-${(dest === null || dest === void 0 ? void 0 : dest.id) || index}`,
23
- content: (_jsxs(_Fragment, { children: [_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " |"] }), _jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
23
+ content: (_jsxs(_Fragment, { children: [_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " |"] }), _jsx(CurrencySymbol, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
24
24
  chipIndex: index,
25
25
  selectionProps: selectionProps !== null && selectionProps !== void 0 ? selectionProps : {},
26
26
  copyText: `${formattedDestAmount.integerAmount}.${formattedDestAmount.decimalAmount}`,
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import Box from '@mui/material/Box';
14
14
  import Tooltip from '../../../Tooltip';
15
15
  import { formatAmount } from '../../../../utils/index.js';
16
- import { CurrencyIcon } from '../../../index.js';
16
+ import { CurrencySymbol } from '../../../index.js';
17
17
  import { TextLabel } from '../style';
18
18
  function DestinationCell(_a) {
19
19
  var _b, _c, _d, _e, _f;
@@ -30,6 +30,6 @@ function DestinationCell(_a) {
30
30
  textAlign: 'left',
31
31
  justifyContent: 'flex-start',
32
32
  height: 'auto',
33
- } }, { children: destinationsCount > 1 ? (_jsxs("div", { children: ["Destination ", (_c = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _c === void 0 ? void 0 : _c.id, " - ", _jsx(CurrencyIcon, { currency: (_d = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _d === void 0 ? void 0 : _d.currency }), ' ', firstDestinationFormattedAmount.integerAmount, ".", firstDestinationFormattedAmount.decimalAmount, " +", destinationsCount - 1] })) : (_jsxs("div", { children: ["Destination ", (_e = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _e === void 0 ? void 0 : _e.id, " - ", _jsx(CurrencyIcon, { currency: (_f = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _f === void 0 ? void 0 : _f.currency }), " ", formattedAmount.integerAmount, ".", formattedAmount.decimalAmount] })) })) })) })));
33
+ } }, { children: destinationsCount > 1 ? (_jsxs("div", { children: ["Destination ", (_c = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _c === void 0 ? void 0 : _c.id, " - ", _jsx(CurrencySymbol, { currency: (_d = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _d === void 0 ? void 0 : _d.currency }), ' ', firstDestinationFormattedAmount.integerAmount, ".", firstDestinationFormattedAmount.decimalAmount, " +", destinationsCount - 1] })) : (_jsxs("div", { children: ["Destination ", (_e = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _e === void 0 ? void 0 : _e.id, " - ", _jsx(CurrencySymbol, { currency: (_f = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _f === void 0 ? void 0 : _f.currency }), " ", formattedAmount.integerAmount, ".", formattedAmount.decimalAmount] })) })) })) })));
34
34
  }
35
35
  export default DestinationCell;
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CurrencyIcon } from '../../../index.js';
2
+ import { CurrencySymbol } from '../../../index.js';
3
3
  import { formatAmount } from '../../../../utils/index.js';
4
4
  export const generateDestinationTooltip = ({ destination, amount: formattedSum, }) => {
5
5
  var _a, _b, _c;
6
6
  const destinations = (destination === null || destination === void 0 ? void 0 : destination.destination) || [];
7
7
  const destinationsTooltip = (destinations === null || destinations === void 0 ? void 0 : destinations.length) > 1 ? (_jsxs("div", { children: [_jsx("div", { children: "Destination" }), (_a = destination === null || destination === void 0 ? void 0 : destination.destination) === null || _a === void 0 ? void 0 : _a.map((dest) => {
8
8
  const formattedAmount = formatAmount(dest.amount || 0);
9
- return (_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " - ", _jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), " ", formattedAmount.integerAmount, ".", formattedAmount.decimalAmount] }, dest === null || dest === void 0 ? void 0 : dest.id));
10
- })] })) : (_jsxs("div", { children: ["Destination ", (_b = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _b === void 0 ? void 0 : _b.id, " - ", _jsx(CurrencyIcon, { currency: (_c = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _c === void 0 ? void 0 : _c.currency }), " ", formattedSum.integerAmount, ".", formattedSum.decimalAmount] }));
9
+ return (_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " - ", _jsx(CurrencySymbol, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), " ", formattedAmount.integerAmount, ".", formattedAmount.decimalAmount] }, dest === null || dest === void 0 ? void 0 : dest.id));
10
+ })] })) : (_jsxs("div", { children: ["Destination ", (_b = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _b === void 0 ? void 0 : _b.id, " - ", _jsx(CurrencySymbol, { currency: (_c = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _c === void 0 ? void 0 : _c.currency }), " ", formattedSum.integerAmount, ".", formattedSum.decimalAmount] }));
11
11
  return destinationsTooltip;
12
12
  };
@@ -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 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<{
@@ -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 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 MultiRefundIcon: 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 UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -16,15 +16,11 @@ import { TableCell } from '../../../TableCells';
16
16
  import { walletIcon } from '../../../../constants/index.js';
17
17
  import { getCountryNameByISO } from '../../../../utils/index.js';
18
18
  import { WalletCellContainer, WalletIcon, WalletIdContainer, WalletWrapper } from './style';
19
- import { GeographyBox, StatusIconWrapper } from '../style';
20
19
  function WalletCell(_a) {
21
20
  var { walletId, country, showCountry = true } = _a, props = __rest(_a, ["walletId", "country", "showCountry"]);
22
- const icon = country && (_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(country) }, { children: _jsx(CountryFlag, { code: country, sx: { padding: '1px' } }) })));
23
21
  return (_jsx(TableCell, Object.assign({ style: {
24
22
  textAlign: 'center',
25
23
  overflow: 'visible',
26
- } }, props, { children: _jsxs(WalletCellContainer, { children: [showCountry && (_jsx(StatusIconWrapper, { children: _jsx(Tooltip, Object.assign({ title: country ? getCountryNameByISO(country) : '' }, { children: _jsx(GeographyBox, Object.assign({ sx: {
27
- visibility: 'visible',
28
- }, variant: undefined }, { children: icon })) })) })), _jsxs(WalletWrapper, { children: [_jsx(WalletIcon, { src: walletIcon, alt: "wallet-icon" }), walletId && _jsxs(WalletIdContainer, { children: ["\u00B7\u00B7\u00B7\u00B7 ", walletId === null || walletId === void 0 ? void 0 : walletId.substring(((walletId === null || walletId === void 0 ? void 0 : walletId.length) || 0) - 4)] })] })] }) })));
24
+ } }, props, { children: _jsxs(WalletCellContainer, { children: [showCountry && country && (_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(country) }, { children: _jsx(CountryFlag, { code: country }) }))), _jsxs(WalletWrapper, { children: [_jsx(WalletIcon, { src: walletIcon, alt: "wallet-icon" }), walletId && _jsxs(WalletIdContainer, { children: ["\u00B7\u00B7\u00B7\u00B7 ", walletId === null || walletId === void 0 ? void 0 : walletId.substring(((walletId === null || walletId === void 0 ? void 0 : walletId.length) || 0) - 4)] })] })] }) })));
29
25
  }
30
26
  export default WalletCell;
@@ -1,9 +1,7 @@
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>, {}>;
6
- export declare const FlagIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
7
5
  export declare const TransparentButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
8
6
  export declare const BadgeWrapper: import("@emotion/styled").StyledComponent<{
9
7
  hidden?: boolean | undefined;
@@ -19,10 +19,6 @@ export const GeographyBox = styled('span', {
19
19
  objectFit: 'cover',
20
20
  },
21
21
  }));
22
- export const FlagIcon = styled('img')({
23
- width: '100%',
24
- height: '100%',
25
- });
26
22
  export const TransparentButton = styled('button')({
27
23
  background: 'transparent',
28
24
  border: 'none',
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -74,7 +74,7 @@ export * from './ErrorBoundary';
74
74
  export { default as DropdownButton, type DropdownButtonProps, DropdownChevronIcon, type DropdownChevronIconProps } from './DropdownButton';
75
75
  export { default as Dropdown2 } from './Dropdown2';
76
76
  export { default as CountryFlag } from './CountryFlag';
77
- export { default as CurrencyIcon } from './CurrencyIcon';
77
+ export { default as CurrencySymbol } from './CurrencySymbol';
78
78
  export { default as CustomBackdrop } from './CustomBackdrop';
79
79
  export { default as DeviceIcon, isDeviceIconShown } from './DeviceIcon';
80
80
  export { default as CountBadge, BadgeVariants, CountAnimatedBadge, type StyledBadgeProps, paymentSourceAnimation } from './CountBadge';
@@ -122,3 +122,4 @@ export * from './ListLayout';
122
122
  export { default as MFWidgetLoader } from './MFWidgetLoader';
123
123
  export { default as BetaBanner } from './BetaBanner';
124
124
  export * from './Autocomplete';
125
+ export { default as CountryFlagByCurrencyCode } from './CountryFlagByCurrencyCode';
@@ -74,7 +74,7 @@ export * from './ErrorBoundary';
74
74
  export { default as DropdownButton, DropdownChevronIcon } from './DropdownButton';
75
75
  export { default as Dropdown2 } from './Dropdown2';
76
76
  export { default as CountryFlag } from './CountryFlag';
77
- export { default as CurrencyIcon } from './CurrencyIcon';
77
+ export { default as CurrencySymbol } from './CurrencySymbol';
78
78
  export { default as CustomBackdrop } from './CustomBackdrop';
79
79
  export { default as DeviceIcon, isDeviceIconShown } from './DeviceIcon';
80
80
  export { default as CountBadge, BadgeVariants, CountAnimatedBadge, paymentSourceAnimation } from './CountBadge';
@@ -122,3 +122,4 @@ export * from './ListLayout';
122
122
  export { default as MFWidgetLoader } from './MFWidgetLoader';
123
123
  export { default as BetaBanner } from './BetaBanner';
124
124
  export * from './Autocomplete';
125
+ export { default as CountryFlagByCurrencyCode } from './CountryFlagByCurrencyCode';
@@ -7,9 +7,9 @@ export const videosUrl = `${cdnUrl}/videos`;
7
7
  export const getLightUrlIcon = (source) => `${lightUrl}/${source}.svg`;
8
8
  export const getPaymentMethodsIcon = (source) => `${lightUrl}/payment-method/v2/${source}.svg`;
9
9
  export const getPaymentIssuersIcon = (source) => `${lightUrl}/payment-issuer/${source}.svg`;
10
- export const getCountriesIcon = (source) => `${lightUrl}/country/${source}.svg`;
10
+ export const getCountriesIcon = (source) => `${lightUrl}/country/v3/${source}.svg`;
11
11
  export const getServiceFunctionIcon = (functionCode) => `${lightUrl}/function/${functionCode}.svg`;
12
- export const getCurrenciesIcon = (currency) => `${cdnUrl}/currency/v2/light/${currency}.svg`;
12
+ export const getCurrenciesIcon = (currency) => `${cdnUrl}/currency/v3/light/${currency}.svg`;
13
13
  export const getAuthorityIcon = (authority) => {
14
14
  const authorityWithoutSpaces = authority.replace(/\s/g, '');
15
15
  return `${cdnUrl}/icons/dashboard/light/authority/v2/${authorityWithoutSpaces}.svg`;
@@ -147,6 +147,7 @@ export interface BusinessMerchant {
147
147
  country: string;
148
148
  license: {
149
149
  number: string;
150
+ type: string;
150
151
  additional_info?: {
151
152
  unified_number?: string;
152
153
  };
@@ -172,6 +173,11 @@ export interface BusinessMerchant {
172
173
  };
173
174
  };
174
175
  identification_id: string;
176
+ identification: {
177
+ id: string;
178
+ issued_country_code: string;
179
+ type: string;
180
+ };
175
181
  };
176
182
  individuals: {
177
183
  status: VerificationStatus;
@@ -5,7 +5,6 @@ export declare const conversionTypesLabels: {
5
5
  };
6
6
  export declare const currencyConfig: Record<string, number>;
7
7
  export declare const intlCurrency: (charge: number, currencyType: CurrencyCodes) => string;
8
- export declare const getCurrencyCodeFlag: (currency: string) => string;
9
8
  export declare const isIntegerAmount: (charge: number) => boolean;
10
9
  export declare const isDecimalWithOneDigit: (charge: number) => boolean;
11
10
  export declare const hasOnlyOneDigitAfterDecimal: (charge: number) => boolean;
@@ -1,5 +1,4 @@
1
- import { getCurrenciesIcon, SUPPORTED_CURRENCY_DETAILS, SUPPORTED_CURRENCY_CODES } from '../constants/index.js';
2
- import { CurrencyCodes } from '../types/index.js';
1
+ import { SUPPORTED_CURRENCY_DETAILS } from '../constants/index.js';
3
2
  export const conversionTypesLabels = {
4
3
  fx: 'Foreign Exchange',
5
4
  dcc: 'Dynamic Currency Conversion',
@@ -28,10 +27,6 @@ export const intlCurrency = (charge, currencyType) => {
28
27
  return '0';
29
28
  }
30
29
  };
31
- export const getCurrencyCodeFlag = (currency) => {
32
- const currencyMap = new Map(SUPPORTED_CURRENCY_CODES.map((selectedCurrency) => [selectedCurrency, getCurrenciesIcon(selectedCurrency)]));
33
- return currencyMap.get(currency) || CurrencyCodes.SAR;
34
- };
35
30
  export const isIntegerAmount = (charge) => {
36
31
  return charge % 1 === 0;
37
32
  };
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.243",
5
- "testVersion": 0,
4
+ "version": "0.1.245-test.1",
5
+ "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -163,4 +163,4 @@
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/"
165
165
  }
166
- }
166
+ }
@@ -1,15 +0,0 @@
1
- import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
- import { DirhamIconImage, SARIconImage } from '../../constants/index.js';
3
- import { StyleCurrencyIcon } from './style';
4
- const currencyMap = {
5
- SAR: SARIconImage,
6
- AED: DirhamIconImage,
7
- };
8
- function CurrencyIcon({ currency, fontSize }) {
9
- const currencyIcon = currencyMap[currency];
10
- if (!currencyIcon) {
11
- return _jsx(_Fragment, { children: currency });
12
- }
13
- return _jsx(StyleCurrencyIcon, { component: "img", src: currencyIcon, alt: currency, sx: { height: fontSize } });
14
- }
15
- export default CurrencyIcon;
@@ -1,2 +0,0 @@
1
- import CurrencyIcon from './CurrencyIcon';
2
- export default CurrencyIcon;
@@ -1,2 +0,0 @@
1
- import CurrencyIcon from './CurrencyIcon';
2
- export default CurrencyIcon;