@tap-payments/os-micro-frontend-shared 0.1.252 → 0.1.253
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/MerchantLogo/MerchantLogo.d.ts +10 -0
- package/build/components/MerchantLogo/MerchantLogo.js +17 -0
- package/build/components/MerchantLogo/index.d.ts +1 -0
- package/build/components/MerchantLogo/index.js +1 -0
- package/build/components/MerchantLogo/style.d.ts +5 -0
- package/build/components/MerchantLogo/style.js +13 -0
- package/build/components/index.d.ts +1 -0
- package/build/components/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
export type MerchantLogoProps = {
|
|
3
|
+
data?: Blob;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
sx?: SxProps;
|
|
9
|
+
};
|
|
10
|
+
export default function MerchantLogo({ data, width, height, ...props }: Readonly<MerchantLogoProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { BrandLogoStyled, LogoWrapper } from './style';
|
|
14
|
+
export default function MerchantLogo(_a) {
|
|
15
|
+
var { data, width = 51, height = 51 } = _a, props = __rest(_a, ["data", "width", "height"]);
|
|
16
|
+
return (_jsx(LogoWrapper, Object.assign({ width: width, height: height }, { children: _jsx(BrandLogoStyled, Object.assign({ data: data, width: width, height: height }, props)) })));
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MerchantLogo, MerchantLogoProps } from './MerchantLogo';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MerchantLogo } from './MerchantLogo';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BrandLogoStyled: import("@emotion/styled").StyledComponent<Readonly<import("../BrandLogo").BrandLogoProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
3
|
+
export declare const LogoWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Box from '@mui/material/Box';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
3
|
+
import { BrandLogo } from '../BrandLogo';
|
|
4
|
+
export const BrandLogoStyled = styled(BrandLogo)(({ theme }) => ({
|
|
5
|
+
filter: 'drop-shadow(0px 0px 28px rgba(0, 0, 0, 0.09))',
|
|
6
|
+
borderRadius: '50%',
|
|
7
|
+
backgroundColor: theme.palette.common.white,
|
|
8
|
+
}));
|
|
9
|
+
export const LogoWrapper = styled(Box)(() => ({
|
|
10
|
+
display: 'flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
}));
|
package/package.json
CHANGED