@plurix/ecom-components 1.10.1 → 1.11.0
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.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ContactCardProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
imgWidth?: number;
|
|
9
|
+
linkItem?: {
|
|
10
|
+
link: string;
|
|
11
|
+
linkText: string;
|
|
12
|
+
};
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
color?: string;
|
|
15
|
+
widthContainer?: number;
|
|
16
|
+
heightContainer?: number;
|
|
17
|
+
padding?: number | string;
|
|
18
|
+
alignItems?: string;
|
|
19
|
+
justifyContent?: string;
|
|
20
|
+
marginRightLogo?: number;
|
|
21
|
+
lineHeightContainer?: number | string;
|
|
22
|
+
}
|
|
23
|
+
declare const ContactCard: React.FC<ContactCardProps>;
|
|
24
|
+
export default ContactCard;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const v = ({
|
|
3
|
+
title: o,
|
|
4
|
+
subtitle: i,
|
|
5
|
+
image: r,
|
|
6
|
+
alt: l,
|
|
7
|
+
imgWidth: s,
|
|
8
|
+
linkItem: t,
|
|
9
|
+
backgroundColor: a,
|
|
10
|
+
color: c,
|
|
11
|
+
widthContainer: d,
|
|
12
|
+
heightContainer: h,
|
|
13
|
+
padding: g,
|
|
14
|
+
alignItems: x,
|
|
15
|
+
justifyContent: p,
|
|
16
|
+
marginRightLogo: y,
|
|
17
|
+
lineHeightContainer: m
|
|
18
|
+
}) => /* @__PURE__ */ n("div", { className: "container-card", style: {
|
|
19
|
+
backgroundColor: a || "#25D366",
|
|
20
|
+
color: c || "#FFFFFF",
|
|
21
|
+
height: h || void 0,
|
|
22
|
+
width: d || void 0,
|
|
23
|
+
display: "flex",
|
|
24
|
+
justifyContent: p || "center",
|
|
25
|
+
padding: g || "16px 24px",
|
|
26
|
+
alignItems: x || "center",
|
|
27
|
+
lineHeight: m || "10px"
|
|
28
|
+
}, children: [
|
|
29
|
+
/* @__PURE__ */ e("div", { className: "logo", style: {
|
|
30
|
+
marginRight: y || 10
|
|
31
|
+
}, children: /* @__PURE__ */ e("img", { src: r, alt: l || "", width: s || 50 }) }),
|
|
32
|
+
/* @__PURE__ */ n("div", { className: "text-box", children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { children: o }),
|
|
34
|
+
i && /* @__PURE__ */ e("p", { children: i }),
|
|
35
|
+
t && /* @__PURE__ */ e("a", { href: t.link, children: t.linkText })
|
|
36
|
+
] })
|
|
37
|
+
] });
|
|
38
|
+
export {
|
|
39
|
+
v as default
|
|
40
|
+
};
|