@tap-payments/os-micro-frontend-shared 0.0.43 → 0.0.45

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.
@@ -24,5 +24,5 @@ export default function BrandsCell(_a) {
24
24
  overlayIcon: icon ? _jsx(VerificationIcon, { src: icon }) : null,
25
25
  label: brand.name,
26
26
  };
27
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(BrandsWrapper, { children: [_jsx(Box, Object.assign({ display: "flex", alignItems: "center", gap: '5px' }, { children: _jsx(IconWithBadge, { mainIcon: item.icon, overlayIcon: item.overlayIcon, label: item.label }, item.label) })), _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsx(Label, { children: brand.name }) }))] }) })));
27
+ return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(BrandsWrapper, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsxs(Box, Object.assign({ display: "flex", alignItems: "center", gap: '5px', sx: { overflow: 'hidden' } }, { children: [_jsx(IconWithBadge, { mainIcon: item.icon, overlayIcon: item.overlayIcon }, item.label), _jsx(Label, { children: brand.name })] })) })) }) })));
28
28
  }
@@ -5,6 +5,7 @@ export const BrandsWrapper = styled('div')(({ theme }) => ({
5
5
  gap: theme.spacing(1),
6
6
  borderRadius: '44px',
7
7
  lineHeight: '120%',
8
+ cursor: 'pointer',
8
9
  }));
9
10
  export const BrandName = styled('div')(({ theme }) => ({
10
11
  fontSize: '14px',
@@ -1,2 +1,2 @@
1
1
  import { EntityCellProps } from './type';
2
- export default function EntityCell({ entity, country, verificationStatus, ...props }: EntityCellProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function EntityCell({ entity, country, verificationStatus, licenseNumber, ...props }: EntityCellProps): import("react/jsx-runtime").JSX.Element;
@@ -18,7 +18,7 @@ import { verificationIcon } from './constants';
18
18
  import { Typography } from '@mui/material';
19
19
  import Tooltip from '../../../Tooltip';
20
20
  export default function EntityCell(_a) {
21
- var { entity, country, verificationStatus } = _a, props = __rest(_a, ["entity", "country", "verificationStatus"]);
21
+ var { entity, country, verificationStatus, licenseNumber } = _a, props = __rest(_a, ["entity", "country", "verificationStatus", "licenseNumber"]);
22
22
  const countryIcon = getCountriesIcon(country);
23
23
  const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
24
24
  const emptyCell = (_jsx(Typography, Object.assign({ sx: {
@@ -28,5 +28,5 @@ export default function EntityCell(_a) {
28
28
  letterSpacing: 0,
29
29
  color: '#B1B1B1',
30
30
  } }, { children: "Not Available" })));
31
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(Tooltip, Object.assign({ title: entity }, { children: _jsx(EntityWrapper, { children: entity ? (_jsxs(_Fragment, { children: [_jsx(Icon, { src: countryIcon, sx: { width: '16px', height: '11.73' } }), _jsx(EntityName, { children: entity }), _jsx(VerificationIcon, { src: icon })] })) : (emptyCell) }) })) })));
31
+ return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(Tooltip, Object.assign({ title: licenseNumber }, { children: _jsx(EntityWrapper, { children: entity ? (_jsxs(_Fragment, { children: [_jsx(Icon, { src: countryIcon, sx: { width: '16px', height: '11.73' } }), _jsx(EntityName, { children: entity }), _jsx(VerificationIcon, { src: icon })] })) : (emptyCell) }) })) })));
32
32
  }
@@ -3,4 +3,5 @@ export type EntityCellProps = TableCellProps & {
3
3
  entity: string;
4
4
  verificationStatus?: 'incomplete' | 'complete' | 'reviewed' | 'verified';
5
5
  country: string;
6
+ licenseNumber?: string;
6
7
  };
@@ -25,5 +25,5 @@ export default function IndividualsCell(_a) {
25
25
  letterSpacing: 0,
26
26
  color: '#B1B1B1',
27
27
  } }, { children: "Not Available" })));
28
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(IndividualsWrapper, { children: id ? (_jsxs(_Fragment, { children: [_jsx(Tooltip, Object.assign({ title: id }, { children: _jsx(IndividualName, { children: id }) })), _jsx(VerificationIcon, { src: icon }), count > 1 && (_jsx("div", { children: _jsxs(Count, { children: ["+", count] }) }))] })) : (emptyCell) }) })));
28
+ return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(IndividualsWrapper, { children: id ? (_jsxs(_Fragment, { children: [_jsx(Tooltip, Object.assign({ title: id }, { children: _jsx(IndividualName, { children: id }) })), _jsx(VerificationIcon, { src: icon }), count > 1 && (_jsx("div", { children: _jsxs(Count, { children: ["+", count] }) }))] })) : (emptyCell) }) })));
29
29
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.43",
4
+ "version": "0.0.45",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",