@zenpatient-org/healthspan-marketing-ui 0.1.84 → 0.1.86

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../components/Typography/Typography.cjs.js"),n=require("./components/TransparentCard/TransparentCard.cjs.js"),a=require("./threeCardsWithHero.module.css.cjs.js"),o=({label:r,title:t,cards:l})=>e.jsxs("section",{className:a.default.bgWrapper,children:[e.jsx("div",{className:a.default.root,children:e.jsx("div",{className:a.default.topContainer,children:e.jsx("div",{className:a.default.imageContainer,children:e.jsxs("div",{className:a.default.imageTextContainer,children:[r&&e.jsx(i.Typography,{className:a.default.imageLabel,emphasis:!0,defaultVariant:"labelMd",children:r}),e.jsx("div",{className:a.default.imageTitle,children:e.jsx(i.Typography,{className:a.default.imageTitle,as:"p",defaultVariant:"displayXl",mobileVariant:"displayXs",children:t})})]})})})}),e.jsx("div",{className:a.default.bottomContainer,children:e.jsx("div",{className:a.default.root,children:e.jsx("div",{className:a.default.cardsContainer,children:l.slice(0,3).map((s,d)=>e.jsx(n.TransparentCard,{title:s.title,description:s.description,number:d+1},s.title))})})})]});exports.ThreeCardsWithHero=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../components/Typography/Typography.cjs.js"),c=require("./components/TransparentCard/TransparentCard.cjs.js"),a=require("./threeCardsWithHero.module.css.cjs.js"),m=({label:r,title:l,cards:d,desktopImage:s,mobileImage:n})=>e.jsxs("section",{className:a.default.bgWrapper,children:[e.jsx("div",{className:a.default.root,children:e.jsx("div",{className:a.default.topContainer,children:e.jsx("div",{className:a.default.imageContainer,style:{"--desktop-image":`url(${s})`,"--mobile-image":`url(${n||s})`},children:e.jsxs("div",{className:a.default.imageTextContainer,children:[r&&e.jsx(t.Typography,{className:a.default.imageLabel,emphasis:!0,defaultVariant:"labelMd",children:r}),e.jsx("div",{className:a.default.imageTitle,children:e.jsx(t.Typography,{className:a.default.imageTitle,as:"div",defaultVariant:"displayXl",mobileVariant:"displayXs",children:l})})]})})})}),e.jsx("div",{className:a.default.bottomContainer,children:e.jsx("div",{className:a.default.root,children:e.jsx("div",{className:a.default.cardsContainer,children:d.slice(0,3).map((i,o)=>e.jsx(c.TransparentCard,{title:i.title,description:i.description,number:o+1},i.title))})})})]});exports.ThreeCardsWithHero=m;
@@ -8,5 +8,7 @@ export type ThreeCardsWithHeroProps = {
8
8
  label?: string;
9
9
  title: React.ReactNode;
10
10
  cards: Array<Card>;
11
+ desktopImage: string;
12
+ mobileImage: string;
11
13
  };
12
- export declare const ThreeCardsWithHero: ({ label, title, cards }: ThreeCardsWithHeroProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ThreeCardsWithHero: ({ label, title, cards, desktopImage, mobileImage }: ThreeCardsWithHeroProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,31 +1,41 @@
1
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as i } from "react/jsx-runtime";
2
2
  import { Typography as t } from "../../components/Typography/Typography.es.js";
3
- import { TransparentCard as o } from "./components/TransparentCard/TransparentCard.es.js";
3
+ import { TransparentCard as c } from "./components/TransparentCard/TransparentCard.es.js";
4
4
  import e from "./threeCardsWithHero.module.css.es.js";
5
- const N = ({ label: r, title: l, cards: n }) => /* @__PURE__ */ s("section", { className: e.bgWrapper, children: [
6
- /* @__PURE__ */ i("div", { className: e.root, children: /* @__PURE__ */ i("div", { className: e.topContainer, children: /* @__PURE__ */ i("div", { className: e.imageContainer, children: /* @__PURE__ */ s("div", { className: e.imageTextContainer, children: [
7
- r && /* @__PURE__ */ i(t, { className: e.imageLabel, emphasis: !0, defaultVariant: "labelMd", children: r }),
8
- /* @__PURE__ */ i("div", { className: e.imageTitle, children: /* @__PURE__ */ i(
9
- t,
10
- {
11
- className: e.imageTitle,
12
- as: "p",
13
- defaultVariant: "displayXl",
14
- mobileVariant: "displayXs",
15
- children: l
16
- }
17
- ) })
18
- ] }) }) }) }),
19
- /* @__PURE__ */ i("div", { className: e.bottomContainer, children: /* @__PURE__ */ i("div", { className: e.root, children: /* @__PURE__ */ i("div", { className: e.cardsContainer, children: n.slice(0, 3).map((a, m) => /* @__PURE__ */ i(
20
- o,
5
+ const g = ({ label: r, title: m, cards: n, desktopImage: s, mobileImage: o }) => /* @__PURE__ */ l("section", { className: e.bgWrapper, children: [
6
+ /* @__PURE__ */ i("div", { className: e.root, children: /* @__PURE__ */ i("div", { className: e.topContainer, children: /* @__PURE__ */ i(
7
+ "div",
8
+ {
9
+ className: e.imageContainer,
10
+ style: {
11
+ "--desktop-image": `url(${s})`,
12
+ "--mobile-image": `url(${o || s})`
13
+ },
14
+ children: /* @__PURE__ */ l("div", { className: e.imageTextContainer, children: [
15
+ r && /* @__PURE__ */ i(t, { className: e.imageLabel, emphasis: !0, defaultVariant: "labelMd", children: r }),
16
+ /* @__PURE__ */ i("div", { className: e.imageTitle, children: /* @__PURE__ */ i(
17
+ t,
18
+ {
19
+ className: e.imageTitle,
20
+ as: "div",
21
+ defaultVariant: "displayXl",
22
+ mobileVariant: "displayXs",
23
+ children: m
24
+ }
25
+ ) })
26
+ ] })
27
+ }
28
+ ) }) }),
29
+ /* @__PURE__ */ i("div", { className: e.bottomContainer, children: /* @__PURE__ */ i("div", { className: e.root, children: /* @__PURE__ */ i("div", { className: e.cardsContainer, children: n.slice(0, 3).map((a, d) => /* @__PURE__ */ i(
30
+ c,
21
31
  {
22
32
  title: a.title,
23
33
  description: a.description,
24
- number: m + 1
34
+ number: d + 1
25
35
  },
26
36
  a.title
27
37
  )) }) }) })
28
38
  ] });
29
39
  export {
30
- N as ThreeCardsWithHero
40
+ g as ThreeCardsWithHero
31
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",