@tap-payments/os-micro-frontend-shared 0.1.91-test.3 → 0.1.91-test.5
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.
|
@@ -19,5 +19,5 @@ import IconWithBadge from '../../../IconWithBadge';
|
|
|
19
19
|
export default function BrandsCell(_a) {
|
|
20
20
|
var { brand, verificationStatus, hideStatus } = _a, props = __rest(_a, ["brand", "verificationStatus", "hideStatus"]);
|
|
21
21
|
const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
|
|
22
|
-
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "BrandsCell_TableCell", sx: { '&:hover': { overflow: 'visible',
|
|
22
|
+
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "BrandsCell_TableCell", sx: { '&:hover': { overflow: 'visible', position: 'relative', zIndex: 100 } } }, { children: _jsx(BrandsWrapper, Object.assign({ sx: { cursor: props.onClick ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsxs(Box, Object.assign({ display: "flex", alignItems: "center", gap: '5px', sx: { overflow: 'hidden', width: '100%' } }, { children: [_jsx(IconWithBadge, { mainIcon: brand.logo, mainIconSize: 16, containerSize: 16, borderColor: "transparent" }), _jsx(Label, Object.assign({ brandName: brand.name }, { children: brand.name || 'Not Available' })), !hideStatus && (_jsx(IconWithBadge, { mainIcon: icon, mainIconSize: 10, containerSize: 10, borderColor: "transparent", containerSx: { marginLeft: 'auto' } }))] })) })) })) })));
|
|
23
23
|
}
|
|
@@ -7,7 +7,7 @@ export const BrandsWrapper = styled('div')(({ theme }) => ({
|
|
|
7
7
|
borderRadius: '44px',
|
|
8
8
|
padding: '4px 8px',
|
|
9
9
|
lineHeight: '120%',
|
|
10
|
-
'&:hover': { minWidth: 'max-content' },
|
|
10
|
+
'&:hover': { minWidth: 'max-content', position: 'absolute', left: 0 },
|
|
11
11
|
}));
|
|
12
12
|
export const BrandName = styled('div')(({ theme }) => ({
|
|
13
13
|
fontSize: '14px',
|
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.91-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.91-test.5",
|
|
5
|
+
"testVersion": 5,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|