@tap-payments/os-micro-frontend-shared 0.1.365 → 0.1.366
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.
|
@@ -11,12 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import Tooltip from '../../../Tooltip';
|
|
14
|
-
import IconWithBadge from '../../../IconWithBadge';
|
|
15
14
|
import TableCell from '../../TableCell';
|
|
16
|
-
import { BrandsWrapper, BrandsWrapperContent, Label } from './style';
|
|
15
|
+
import { BrandsWrapper, BrandsWrapperContent, Label, VerificationContainer, VerificationIcon } from './style';
|
|
17
16
|
import { verificationIcon } from './constants';
|
|
18
17
|
export default function BrandsCell(_a) {
|
|
19
18
|
var { brand, verificationStatus, hideStatus, brandLogo } = _a, props = __rest(_a, ["brand", "verificationStatus", "hideStatus", "brandLogo"]);
|
|
20
19
|
const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
|
|
21
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsx(BrandsWrapper, Object.assign({ hasClick: !!props.onClick }, { children: _jsxs(BrandsWrapperContent, { children: [brandLogo, _jsx(Label, Object.assign({ brandName: brand.name }, { children: brand.name || 'Not Available' })), !hideStatus && (_jsx(
|
|
20
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsx(BrandsWrapper, Object.assign({ hasClick: !!props.onClick }, { children: _jsxs(BrandsWrapperContent, { children: [brandLogo, _jsx(Label, Object.assign({ brandName: brand.name }, { children: brand.name || 'Not Available' })), !hideStatus && (_jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) }))] }) })) })) })));
|
|
22
21
|
}
|
|
@@ -5,8 +5,8 @@ export declare const BrandsWrapper: import("@emotion/styled").StyledComponent<im
|
|
|
5
5
|
export declare const BrandsWrapperContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").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").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
-
export declare const BrandName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const VerificationIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
10
8
|
export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
11
9
|
brandName?: string | undefined;
|
|
12
10
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
11
|
+
export declare const VerificationIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
12
|
+
export declare const VerificationContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -17,16 +17,15 @@ export const BrandsWrapperContent = styled(Box)(() => ({
|
|
|
17
17
|
overflow: 'hidden',
|
|
18
18
|
width: '100%',
|
|
19
19
|
}));
|
|
20
|
-
export const BrandName = styled('div')(({ theme }) => ({
|
|
21
|
-
fontSize: '14px',
|
|
22
|
-
fontWeight: 400,
|
|
23
|
-
color: theme.palette.text.primary,
|
|
24
|
-
}));
|
|
25
|
-
export const VerificationIcon = styled('img')(() => ({
|
|
26
|
-
width: '8px',
|
|
27
|
-
height: '8px',
|
|
28
|
-
}));
|
|
29
20
|
export const Label = styled('p', { shouldForwardProp: (props) => !['brandName'].includes(props) })(({ theme, brandName }) => (Object.assign({ fontSize: '14px', fontWeight: 400, color: theme.palette.text.primary, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '74px', margin: '0' }, (!brandName && {
|
|
30
21
|
color: '#B1B1B1',
|
|
31
22
|
width: '84px',
|
|
32
23
|
}))));
|
|
24
|
+
export const VerificationIcon = styled('img')(() => ({
|
|
25
|
+
width: '10.5px',
|
|
26
|
+
height: '10.5px',
|
|
27
|
+
}));
|
|
28
|
+
export const VerificationContainer = styled('div')({
|
|
29
|
+
marginLeft: 'auto',
|
|
30
|
+
width: 'auto',
|
|
31
|
+
});
|
package/package.json
CHANGED