@tap-payments/os-micro-frontend-shared 0.1.241-test.1 → 0.1.241-test.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,13 +15,11 @@ import { TableCell } from '../../../TableCells';
15
15
  import Tooltip from '../../../Tooltip';
16
16
  import { CurrencyIcon } from '../../../index.js';
17
17
  import { getCurrenciesIcon } from '../../../../constants/index.js';
18
- import { AmountCellContainer, FlagContainer } from './style';
19
- import { FlagIcon } from '../style';
18
+ import { AmountCellContainer } from './style';
20
19
  import { ConversionTypeLabel, CurrencyInfo } from './components';
21
20
  const tableMode = 'default';
22
21
  function AmountCell(_a) {
23
22
  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 }) }))] }) })));
23
+ 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(CurrencyIcon, { currency: currency }) }, { children: _jsx("img", { src: getCurrenciesIcon(currency), alt: "customer icon" }) }))), _jsx(Tooltip, Object.assign({ title: amountTooltipLabel }, { children: _jsx(CurrencyInfo, { tableMode: tableMode, amount: amount, currency: currency }) }))] }) })));
26
24
  }
27
25
  export default AmountCell;
@@ -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,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getCurrenciesIcon } from '../../../../constants/index.js';
3
- import { Currency, FlagContainer, Wrapper } from './style';
4
- import { FlagIcon } from '../style';
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("img", { src: getCurrenciesIcon(currency), alt: 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
- });
@@ -2,7 +2,6 @@
2
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
3
  variant?: "Global" | "Regional" | "Local" | undefined;
4
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
5
- export declare const FlagIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
6
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>, {}>;
7
6
  export declare const BadgeWrapper: import("@emotion/styled").StyledComponent<{
8
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',
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.241-test.1",
5
- "testVersion": 1,
4
+ "version": "0.1.241-test.2",
5
+ "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",