@tap-payments/os-micro-frontend-shared 0.0.44 → 0.0.46
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.
- package/build/components/TableCells/CustomCells/BrandsCell/BrandsCell.js +1 -1
- package/build/components/TableCells/CustomCells/BrandsCell/style.js +1 -0
- package/build/components/TableCells/CustomCells/EntityCell/EntityCell.js +3 -11
- package/build/components/TableCells/CustomCells/EntityCell/style.d.ts +4 -0
- package/build/components/TableCells/CustomCells/EntityCell/style.js +25 -0
- package/build/components/TableCells/CustomCells/IndividualsCell/IndividualsCell.js +3 -11
- package/build/components/TableCells/CustomCells/IndividualsCell/style.d.ts +3 -0
- package/build/components/TableCells/CustomCells/IndividualsCell/style.js +21 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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
|
}
|
|
@@ -9,24 +9,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx,
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import TableCell from '../../TableCell';
|
|
14
14
|
import Icon from '../../../Icon';
|
|
15
15
|
import { getCountriesIcon } from '../../../../constants/index.js';
|
|
16
|
-
import { EntityName, EntityWrapper, VerificationIcon } from './style';
|
|
16
|
+
import { EntityName, EntityWrapper, VerificationIcon, EntityContainer, EntityInfoContainer, VerificationContainer, EmptyCell } from './style';
|
|
17
17
|
import { verificationIcon } from './constants';
|
|
18
|
-
import { Typography } from '@mui/material';
|
|
19
18
|
import Tooltip from '../../../Tooltip';
|
|
20
19
|
export default function EntityCell(_a) {
|
|
21
20
|
var { entity, country, verificationStatus, licenseNumber } = _a, props = __rest(_a, ["entity", "country", "verificationStatus", "licenseNumber"]);
|
|
22
21
|
const countryIcon = getCountriesIcon(country);
|
|
23
22
|
const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
|
|
24
|
-
|
|
25
|
-
fontWeight: 400,
|
|
26
|
-
fontSize: 14,
|
|
27
|
-
lineHeight: '120%',
|
|
28
|
-
letterSpacing: 0,
|
|
29
|
-
color: '#B1B1B1',
|
|
30
|
-
} }, { children: "Not Available" })));
|
|
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) }) })) })));
|
|
23
|
+
return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(Tooltip, Object.assign({ title: licenseNumber }, { children: _jsx(EntityWrapper, { children: entity ? (_jsxs(EntityContainer, { children: [_jsxs(EntityInfoContainer, { children: [_jsx(Icon, { src: countryIcon, sx: { width: '16px', height: '11.73' } }), _jsx(EntityName, { children: entity })] }), _jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) })] })) : (_jsx(EmptyCell, { children: "Not Available" })) }) })) })));
|
|
32
24
|
}
|
|
@@ -3,3 +3,7 @@ export declare const EntityWrapper: import("@emotion/styled").StyledComponent<im
|
|
|
3
3
|
export declare const EntityIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
4
|
export declare const EntityName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
export declare const VerificationIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
|
+
export declare const EntityContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const EntityInfoContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const VerificationContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const EmptyCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -25,3 +25,28 @@ export const VerificationIcon = styled('img')(() => ({
|
|
|
25
25
|
width: '10.5px',
|
|
26
26
|
height: '10.5px',
|
|
27
27
|
}));
|
|
28
|
+
export const EntityContainer = styled('div')({
|
|
29
|
+
display: 'flex',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
justifyContent: 'space-between',
|
|
32
|
+
width: '100%',
|
|
33
|
+
});
|
|
34
|
+
export const EntityInfoContainer = styled('div')({
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
minWidth: '110px',
|
|
38
|
+
gap: '8px',
|
|
39
|
+
});
|
|
40
|
+
export const VerificationContainer = styled('div')({
|
|
41
|
+
marginLeft: 'auto',
|
|
42
|
+
width: 'auto',
|
|
43
|
+
});
|
|
44
|
+
export const EmptyCell = styled('div')({
|
|
45
|
+
fontWeight: 400,
|
|
46
|
+
fontSize: 14,
|
|
47
|
+
lineHeight: '120%',
|
|
48
|
+
letterSpacing: 0,
|
|
49
|
+
color: '#B1B1B1',
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
width: '100%',
|
|
52
|
+
});
|
|
@@ -9,21 +9,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import TableCell from '../../TableCell';
|
|
14
|
-
import { Count, IndividualName, IndividualsWrapper, VerificationIcon } from './style';
|
|
15
14
|
import { verificationIcons } from './constants';
|
|
16
|
-
import {
|
|
15
|
+
import { IndividualsWrapper, IndividualName, VerificationIcon, Count, IndividualContainer, VerificationContainer, EmptyCell } from './style';
|
|
17
16
|
import Tooltip from '../../../Tooltip';
|
|
18
17
|
export default function IndividualsCell(_a) {
|
|
19
18
|
var { id, status, count } = _a, props = __rest(_a, ["id", "status", "count"]);
|
|
20
19
|
const icon = verificationIcons[status !== null && status !== void 0 ? status : 'incomplete'];
|
|
21
|
-
|
|
22
|
-
fontWeight: 400,
|
|
23
|
-
fontSize: 14,
|
|
24
|
-
lineHeight: '120%',
|
|
25
|
-
letterSpacing: 0,
|
|
26
|
-
color: '#B1B1B1',
|
|
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) }) })));
|
|
20
|
+
return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(IndividualsWrapper, { children: id ? (_jsxs(IndividualContainer, { children: [_jsx(Tooltip, Object.assign({ title: id }, { children: _jsx(IndividualName, { children: id }) })), _jsxs(VerificationContainer, { children: [_jsx(VerificationIcon, { src: icon }), count > 1 && (_jsx("div", { children: _jsxs(Count, { children: ["+", count] }) }))] })] })) : (_jsx(EmptyCell, { children: "Not Available" })) }) })));
|
|
29
21
|
}
|
|
@@ -3,3 +3,6 @@ export declare const IndividualsWrapper: import("@emotion/styled").StyledCompone
|
|
|
3
3
|
export declare const IndividualName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
4
|
export declare const VerificationIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
5
5
|
export declare const Count: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
+
export declare const IndividualContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const VerificationContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export declare const EmptyCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -15,7 +15,7 @@ export const IndividualName = styled('div')(({ theme }) => ({
|
|
|
15
15
|
overflow: 'hidden',
|
|
16
16
|
textOverflow: 'ellipsis',
|
|
17
17
|
whiteSpace: 'nowrap',
|
|
18
|
-
|
|
18
|
+
minWidth: '80px',
|
|
19
19
|
}));
|
|
20
20
|
export const VerificationIcon = styled('img')(() => ({
|
|
21
21
|
width: '10.5px',
|
|
@@ -29,3 +29,23 @@ export const Count = styled('span')(({ theme }) => ({
|
|
|
29
29
|
borderRadius: '4px',
|
|
30
30
|
padding: '1px 2px',
|
|
31
31
|
}));
|
|
32
|
+
export const IndividualContainer = styled('div')({
|
|
33
|
+
width: '100%',
|
|
34
|
+
display: 'flex',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
justifyContent: 'space-between',
|
|
37
|
+
});
|
|
38
|
+
export const VerificationContainer = styled('div')({
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
gap: '8px',
|
|
42
|
+
});
|
|
43
|
+
export const EmptyCell = styled('div')({
|
|
44
|
+
fontWeight: 400,
|
|
45
|
+
fontSize: 14,
|
|
46
|
+
lineHeight: '120%',
|
|
47
|
+
letterSpacing: 0,
|
|
48
|
+
color: '#B1B1B1',
|
|
49
|
+
textAlign: 'center',
|
|
50
|
+
width: '100%',
|
|
51
|
+
});
|
package/package.json
CHANGED