@plurix/ecom-components 1.11.0 → 1.11.1

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.
@@ -1,24 +1,12 @@
1
- import { default as React } from 'react';
2
1
 
3
2
  export interface ContactCardProps {
4
3
  title: string;
5
4
  subtitle?: string;
6
5
  image?: string;
7
6
  alt?: string;
8
- imgWidth?: number;
9
7
  linkItem?: {
10
8
  link: string;
11
9
  linkText: string;
12
10
  };
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
11
  }
23
- declare const ContactCard: React.FC<ContactCardProps>;
24
- export default ContactCard;
12
+ export declare const ContactCard: ({ title, subtitle, image, alt, linkItem }: ContactCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,18 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- const v = ({
3
- title: o,
4
- subtitle: i,
1
+ import { jsxs as n, jsx as c } from "react/jsx-runtime";
2
+ /* empty css */const o = ({
3
+ title: s,
4
+ subtitle: t,
5
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 })
6
+ alt: d,
7
+ linkItem: a
8
+ }) => /* @__PURE__ */ n("div", { className: "contact-card", children: [
9
+ r && /* @__PURE__ */ c("div", { className: "contact-card__logo", children: /* @__PURE__ */ c("img", { src: r, alt: d || "" }) }),
10
+ /* @__PURE__ */ n("div", { className: "contact-card__content", children: [
11
+ /* @__PURE__ */ c("p", { className: "contact-card__title", children: s }),
12
+ t && /* @__PURE__ */ c("p", { className: "contact-card__subtitle", children: t }),
13
+ a && /* @__PURE__ */ c("a", { href: a.link, className: "contact-card__link", children: a.linkText })
36
14
  ] })
37
15
  ] });
38
16
  export {
39
- v as default
17
+ o as ContactCard
40
18
  };
@@ -0,0 +1 @@
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}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@plurix/ecom-components",
3
3
  "author": "Plurix",
4
4
  "private": false,
5
- "version": "1.11.0",
5
+ "version": "1.11.1",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",