@plurix/ecom-components 1.11.3 → 1.11.5
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/dist/main.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { Regionalization } from './packages/Regionalization/Regionalization';
|
|
|
7
7
|
export * from './packages/Regionalization/types';
|
|
8
8
|
export { Modal } from './packages/Modal/Modal';
|
|
9
9
|
export { ContactCard } from './packages/ContactCard/ContactCard';
|
|
10
|
+
export * from './packages/ContactCard/ContactCard';
|
|
10
11
|
export * from './types/ChangeOrderModal';
|
|
11
12
|
export { ChangeOrderModal } from './packages/ChangeOrderModal/ChangeOrderModal';
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export interface ContactCardProps {
|
|
3
3
|
title: string;
|
|
4
4
|
subtitle?: string;
|
|
5
5
|
image?: string;
|
|
6
6
|
alt?: string;
|
|
7
|
+
imgWidth?: number;
|
|
7
8
|
linkItem?: {
|
|
8
9
|
link: string;
|
|
9
10
|
linkText: string;
|
|
10
11
|
};
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
widthContainer?: number;
|
|
15
|
+
heightContainer?: number;
|
|
16
|
+
padding?: number | string;
|
|
17
|
+
alignItems?: string;
|
|
18
|
+
justifyContent?: string;
|
|
19
|
+
marginRightLogo?: number;
|
|
20
|
+
lineHeightContainer?: number | string;
|
|
11
21
|
}
|
|
12
|
-
export declare const ContactCard: ({ title, subtitle, image, alt, linkItem }: ContactCardProps) =>
|
|
22
|
+
export declare const ContactCard: ({ title, subtitle, image, alt, imgWidth, linkItem, backgroundColor, color, widthContainer, heightContainer, padding, alignItems, justifyContent, marginRightLogo, lineHeightContainer }: ContactCardProps) => JSX.Element;
|
|
@@ -1,18 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
|
|
3
|
-
title:
|
|
4
|
-
subtitle:
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const j = ({
|
|
3
|
+
title: o,
|
|
4
|
+
subtitle: n,
|
|
5
5
|
image: r,
|
|
6
|
-
alt:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
alt: l,
|
|
7
|
+
imgWidth: s,
|
|
8
|
+
linkItem: t,
|
|
9
|
+
backgroundColor: c,
|
|
10
|
+
color: a,
|
|
11
|
+
widthContainer: d,
|
|
12
|
+
heightContainer: h,
|
|
13
|
+
padding: g,
|
|
14
|
+
alignItems: x,
|
|
15
|
+
justifyContent: p,
|
|
16
|
+
marginRightLogo: y,
|
|
17
|
+
lineHeightContainer: C
|
|
18
|
+
}) => /* @__PURE__ */ i("div", { className: "container-card", style: {
|
|
19
|
+
backgroundColor: c || "#25D366",
|
|
20
|
+
color: a || "#FFFFFF",
|
|
21
|
+
height: h,
|
|
22
|
+
width: d,
|
|
23
|
+
display: "flex",
|
|
24
|
+
justifyContent: p || "center",
|
|
25
|
+
padding: g || "16px 24px",
|
|
26
|
+
alignItems: x || "center",
|
|
27
|
+
lineHeight: C || "10px"
|
|
28
|
+
}, children: [
|
|
29
|
+
/* @__PURE__ */ e("div", { className: "logo", style: {
|
|
30
|
+
marginRight: y || 10
|
|
31
|
+
}, children: r && /* @__PURE__ */ e("img", { src: r, alt: l || "", width: s || 50 }) }),
|
|
32
|
+
/* @__PURE__ */ i("div", { className: "text-box", children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { children: o }),
|
|
34
|
+
n && /* @__PURE__ */ e("p", { children: n }),
|
|
35
|
+
t && /* @__PURE__ */ e("a", { href: t.link, children: t.linkText })
|
|
14
36
|
] })
|
|
15
37
|
] });
|
|
16
38
|
export {
|
|
17
|
-
|
|
39
|
+
j as ContactCard
|
|
18
40
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.contact-card{display:flex;align-items:center;justify-content:center;background-color:#25d366;color:#fff;padding:16px 24px;gap:16px;border-radius:8px}.contact-card__logo img{width:50px}.contact-card__content{display:flex;flex-direction:column;gap:4px}.contact-card__title{font-weight:700;margin:0}.contact-card__subtitle{margin:0}.contact-card__link{color:#fff;text-decoration:underline;font-size:.875rem}
|