@tap-payments/os-micro-frontend-shared 0.1.90-test.4 → 0.1.90-test.7
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.
|
@@ -14,18 +14,17 @@ import TableCell from '../../TableCell';
|
|
|
14
14
|
import { BrandsWrapper, Label } from './style';
|
|
15
15
|
import { verificationIcon } from './constants';
|
|
16
16
|
import Tooltip from '../../../Tooltip';
|
|
17
|
-
import { Box } from '@mui/material';
|
|
18
17
|
import IconWithBadge from '../../../IconWithBadge';
|
|
19
18
|
import { motion } from 'framer-motion';
|
|
20
19
|
export default function BrandsCell(_a) {
|
|
21
20
|
var { brand, verificationStatus, hideStatus } = _a, props = __rest(_a, ["brand", "verificationStatus", "hideStatus"]);
|
|
22
21
|
const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
|
|
23
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(BrandsWrapper, Object.assign({ sx: { cursor: props.onClick ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children:
|
|
22
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(BrandsWrapper, Object.assign({ sx: { cursor: props.onClick ? 'pointer' : 'default' } }, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsxs(motion.div, Object.assign({ style: {
|
|
23
|
+
display: 'flex',
|
|
24
24
|
alignItems: 'center',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
width:
|
|
28
|
-
display: 'none',
|
|
25
|
+
gap: '5px',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
width: '100%',
|
|
29
28
|
}, initial: { width: 0, opacity: 0 }, transition: {
|
|
30
29
|
animate: {
|
|
31
30
|
duration: 0.5,
|
|
@@ -44,5 +43,5 @@ export default function BrandsCell(_a) {
|
|
|
44
43
|
},
|
|
45
44
|
opacity: 1,
|
|
46
45
|
},
|
|
47
|
-
} }, { children:
|
|
46
|
+
} }, { children: [_jsx(IconWithBadge, { mainIcon: brand.logo, mainIconSize: 16, containerSize: 16, borderColor: "transparent" }), _jsx(Label, Object.assign({ sx: Object.assign({}, (!brand.name && { color: '#B1B1B1' })) }, { children: brand.name || 'Not Available' })), !hideStatus && (_jsx(IconWithBadge, { mainIcon: icon, mainIconSize: 10, containerSize: 10, borderColor: "transparent", containerSx: { marginLeft: 'auto' } }))] })) })) })) })));
|
|
48
47
|
}
|
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.90-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.90-test.7",
|
|
5
|
+
"testVersion": 7,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|