@plurix/ecom-components 1.10.1 → 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.
@@ -0,0 +1,12 @@
1
+
2
+ export interface ContactCardProps {
3
+ title: string;
4
+ subtitle?: string;
5
+ image?: string;
6
+ alt?: string;
7
+ linkItem?: {
8
+ link: string;
9
+ linkText: string;
10
+ };
11
+ }
12
+ export declare const ContactCard: ({ title, subtitle, image, alt, linkItem }: ContactCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsxs as n, jsx as c } from "react/jsx-runtime";
2
+ /* empty css */const o = ({
3
+ title: s,
4
+ subtitle: t,
5
+ image: r,
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 })
14
+ ] })
15
+ ] });
16
+ export {
17
+ o as ContactCard
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.10.1",
5
+ "version": "1.11.1",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",