@zenpatient-org/healthspan-marketing-ui 0.1.76 → 0.1.78
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/healthspan-marketing-ui.css +1 -1
- package/dist/modules/ProgramsDetailsHero/ProgramsDetailsHero.cjs.js +1 -1
- package/dist/modules/ProgramsDetailsHero/ProgramsDetailsHero.es.js +5 -5
- package/dist/modules/ProgramsDetailsHero/programsDetailsHero.module.css.cjs.js +1 -1
- package/dist/modules/ProgramsDetailsHero/programsDetailsHero.module.css.es.js +16 -14
- package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -1
- package/dist/modules/ResearchStudies/ResearchStudies.d.ts +2 -1
- package/dist/modules/ResearchStudies/ResearchStudies.es.js +10 -10
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.cjs.js +1 -1
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.es.js +20 -22
- package/dist/modules/ResearchStudies/researchStudies.module.css.cjs.js +1 -1
- package/dist/modules/ResearchStudies/researchStudies.module.css.es.js +8 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/Typography/Typography.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/Typography/Typography.cjs.js"),o=require("../../components/Button/Button.cjs.js"),a=require("./programsDetailsHero.module.css.cjs.js"),d=({title:t,description:i,button:r,backgroundImage:l})=>e.jsx("section",{className:a.default.root,"data-type":"hero",style:{backgroundImage:`url(${l})`},children:e.jsx("div",{className:a.default.container,children:e.jsxs("div",{className:a.default.headline,children:[e.jsx("div",{className:a.default.titleContainer,children:e.jsx(s.Typography,{className:a.default.title,as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:t})}),e.jsx("div",{className:a.default.midBorder}),e.jsx("div",{className:a.default.infoContainer,children:e.jsxs("div",{className:a.default.infoBox,children:[e.jsx(s.Typography,{className:a.default.description,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:i}),e.jsx(o.Button,{as:"a",href:r.link,variant:"secondary",size:"md",children:r.text})]})})]})})});exports.ProgramsDetailsHero=d;
|
|
@@ -2,19 +2,19 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { Typography as s } from "../../components/Typography/Typography.es.js";
|
|
3
3
|
import { Button as o } from "../../components/Button/Button.es.js";
|
|
4
4
|
import a from "./programsDetailsHero.module.css.es.js";
|
|
5
|
-
const p = ({ title:
|
|
6
|
-
/* @__PURE__ */ e("div", { className: a.
|
|
5
|
+
const p = ({ title: l, description: d, button: i, backgroundImage: n }) => /* @__PURE__ */ e("section", { className: a.root, "data-type": "hero", style: { backgroundImage: `url(${n})` }, children: /* @__PURE__ */ e("div", { className: a.container, children: /* @__PURE__ */ r("div", { className: a.headline, children: [
|
|
6
|
+
/* @__PURE__ */ e("div", { className: a.titleContainer, children: /* @__PURE__ */ e(
|
|
7
7
|
s,
|
|
8
8
|
{
|
|
9
9
|
className: a.title,
|
|
10
10
|
as: "h2",
|
|
11
11
|
defaultVariant: "displayMd",
|
|
12
12
|
mobileVariant: "headingXl",
|
|
13
|
-
children:
|
|
13
|
+
children: l
|
|
14
14
|
}
|
|
15
15
|
) }),
|
|
16
16
|
/* @__PURE__ */ e("div", { className: a.midBorder }),
|
|
17
|
-
/* @__PURE__ */ e("div", { className: a.
|
|
17
|
+
/* @__PURE__ */ e("div", { className: a.infoContainer, children: /* @__PURE__ */ r("div", { className: a.infoBox, children: [
|
|
18
18
|
/* @__PURE__ */ e(
|
|
19
19
|
s,
|
|
20
20
|
{
|
|
@@ -22,7 +22,7 @@ const p = ({ title: d, description: l, button: i, backgroundImage: n }) => /* @_
|
|
|
22
22
|
as: "p",
|
|
23
23
|
defaultVariant: "bodyMd",
|
|
24
24
|
mobileVariant: "bodySm",
|
|
25
|
-
children:
|
|
25
|
+
children: d
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
28
|
/* @__PURE__ */ e(o, { as: "a", href: i.link, variant: "secondary", size: "md", children: i.text })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="programsDetailsHero-module__root___tDtrT",e="programsDetailsHero-module__container___5dH1m",t="programsDetailsHero-module__headline___Y-4jv",r="programsDetailsHero-module__infoContainer___fBm4P",i="programsDetailsHero-module__titleContainer___pke97",n="programsDetailsHero-module__title___xHkWk",_="programsDetailsHero-module__midBorder___aleDm",a="programsDetailsHero-module__infoBox___xvieB",l="programsDetailsHero-module__description___ac7Pb",s={root:o,container:e,headline:t,infoContainer:r,titleContainer:i,title:n,midBorder:_,infoBox:a,description:l};exports.container=e;exports.default=s;exports.description=l;exports.headline=t;exports.infoBox=a;exports.infoContainer=r;exports.midBorder=_;exports.root=o;exports.title=n;exports.titleContainer=i;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
const o = "programsDetailsHero-module__root___tDtrT", e = "programsDetailsHero-module__container___5dH1m",
|
|
1
|
+
const o = "programsDetailsHero-module__root___tDtrT", e = "programsDetailsHero-module__container___5dH1m", t = "programsDetailsHero-module__headline___Y-4jv", r = "programsDetailsHero-module__infoContainer___fBm4P", _ = "programsDetailsHero-module__titleContainer___pke97", i = "programsDetailsHero-module__title___xHkWk", n = "programsDetailsHero-module__midBorder___aleDm", a = "programsDetailsHero-module__infoBox___xvieB", s = "programsDetailsHero-module__description___ac7Pb", l = {
|
|
2
2
|
root: o,
|
|
3
3
|
container: e,
|
|
4
|
-
headline:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
headline: t,
|
|
5
|
+
infoContainer: r,
|
|
6
|
+
titleContainer: _,
|
|
7
|
+
title: i,
|
|
8
|
+
midBorder: n,
|
|
9
|
+
infoBox: a,
|
|
10
|
+
description: s
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
13
|
e as container,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
l as default,
|
|
15
|
+
s as description,
|
|
16
|
+
t as headline,
|
|
17
|
+
a as infoBox,
|
|
18
|
+
r as infoContainer,
|
|
19
|
+
n as midBorder,
|
|
19
20
|
o as root,
|
|
20
|
-
|
|
21
|
+
i as title,
|
|
22
|
+
_ as titleContainer
|
|
21
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/Button/Button.cjs.js");require("../../components/Icon/Icon.cjs.js");const d=require("../../components/Icon/constants.cjs.js"),u=require("./components/StudyCard/StudyCard.cjs.js"),t=require("./researchStudies.module.css.cjs.js"),l=({studies:s,hasMoreButton:n,title:i,onClickShowMore:a})=>e.jsx("div",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(o.Typography,{defaultVariant:"displayXs",mobileVariant:"headingLg",children:i}),e.jsx("div",{className:t.default.studies,children:s.map((r,h)=>e.jsx("div",{className:t.default.studyCard,children:e.jsx(u.StudyCard,{...r})},`${r.title}_${r.link}`))}),n&&e.jsx("div",{className:t.default.buttonContainer,children:e.jsx(c.Button,{size:"lg",variant:"muted",prefixIcon:d.EIconName.PLUS,onClick:a,children:"show more"})})]})});exports.ResearchStudies=l;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { TResearchArticleView } from '../../types/articles';
|
|
2
2
|
|
|
3
3
|
type ResearchStudiesProps = {
|
|
4
|
+
title: string;
|
|
4
5
|
studies: Array<TResearchArticleView>;
|
|
5
6
|
hasMoreButton: boolean;
|
|
6
7
|
onClickShowMore: () => void;
|
|
7
8
|
};
|
|
8
|
-
export declare const ResearchStudies: ({ studies, hasMoreButton, onClickShowMore }: ResearchStudiesProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ResearchStudies: ({ studies, hasMoreButton, title, onClickShowMore }: ResearchStudiesProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Typography as
|
|
2
|
+
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
4
4
|
import { Button as d } from "../../components/Button/Button.es.js";
|
|
5
5
|
import "../../components/Icon/Icon.es.js";
|
|
6
|
-
import { EIconName as
|
|
7
|
-
import { StudyCard as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
6
|
+
import { EIconName as l } from "../../components/Icon/constants.es.js";
|
|
7
|
+
import { StudyCard as c } from "./components/StudyCard/StudyCard.es.js";
|
|
8
|
+
import r from "./researchStudies.module.css.es.js";
|
|
9
|
+
const y = ({ studies: o, hasMoreButton: t, title: a, onClickShowMore: n }) => /* @__PURE__ */ i("div", { className: r.root, children: /* @__PURE__ */ s("div", { className: r.container, children: [
|
|
10
|
+
/* @__PURE__ */ i(m, { defaultVariant: "displayXs", mobileVariant: "headingLg", children: a }),
|
|
11
|
+
/* @__PURE__ */ i("div", { className: r.studies, children: o.map((e, p) => /* @__PURE__ */ i("div", { className: r.studyCard, children: /* @__PURE__ */ i(c, { ...e }) }, `${e.title}_${e.link}`)) }),
|
|
12
|
+
t && /* @__PURE__ */ i("div", { className: r.buttonContainer, children: /* @__PURE__ */ i(d, { size: "lg", variant: "muted", prefixIcon: l.PLUS, onClick: n, children: "show more" }) })
|
|
13
13
|
] }) });
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
y as ResearchStudies
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../../../utils/formatDate.cjs.js"),c=require("../../../../components/Label/Label.cjs.js"),r=require("../../../../components/Typography/Typography.cjs.js"),a=require("./studyCard.module.css.cjs.js");function u({title:s,link:i,image:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../../../utils/formatDate.cjs.js"),c=require("../../../../components/Label/Label.cjs.js"),r=require("../../../../components/Typography/Typography.cjs.js"),a=require("./studyCard.module.css.cjs.js");function u({title:s,link:i,image:d,date:o,label:t,readTime:l}){return e.jsx("a",{href:i,className:a.default.root,children:e.jsxs("div",{className:a.default.content,children:[e.jsx("div",{className:a.default.imagePart,style:{backgroundImage:`url(${d})`},children:t&&e.jsx(c.Label,{color:"white",size:"lg",children:t})}),e.jsxs("div",{className:a.default.dataPart,children:[e.jsxs("div",{className:a.default.info,children:[e.jsx(r.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:n.formatDate(o)}),!!l&&e.jsxs(e.Fragment,{children:[e.jsx(r.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(r.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[l," MIN READ"]})]})]}),e.jsx(r.Typography,{className:a.default.title,defaultVariant:"headingXs",children:s})]}),e.jsx("div",{className:a.default.borderLeft,"data-line":"left"}),e.jsx("div",{className:a.default.borderRight,"data-line":"right"})]})})}exports.StudyCard=u;
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { formatDate as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { formatDate as c } from "../../../../utils/formatDate.es.js";
|
|
3
3
|
import { Label as h } from "../../../../components/Label/Label.es.js";
|
|
4
4
|
import { Typography as l } from "../../../../components/Typography/Typography.es.js";
|
|
5
|
-
import
|
|
6
|
-
function b({ title: o, link: m, image: d, date:
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
" MIN READ"
|
|
18
|
-
] })
|
|
5
|
+
import a from "./studyCard.module.css.es.js";
|
|
6
|
+
function b({ title: o, link: m, image: d, date: n, label: t, readTime: i }) {
|
|
7
|
+
return /* @__PURE__ */ e("a", { href: m, className: a.root, children: /* @__PURE__ */ r("div", { className: a.content, children: [
|
|
8
|
+
/* @__PURE__ */ e("div", { className: a.imagePart, style: { backgroundImage: `url(${d})` }, children: t && /* @__PURE__ */ e(h, { color: "white", size: "lg", children: t }) }),
|
|
9
|
+
/* @__PURE__ */ r("div", { className: a.dataPart, children: [
|
|
10
|
+
/* @__PURE__ */ r("div", { className: a.info, children: [
|
|
11
|
+
/* @__PURE__ */ e(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: c(n) }),
|
|
12
|
+
!!i && /* @__PURE__ */ r(s, { children: [
|
|
13
|
+
/* @__PURE__ */ e(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: "•" }),
|
|
14
|
+
/* @__PURE__ */ r(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: [
|
|
15
|
+
i,
|
|
16
|
+
" MIN READ"
|
|
19
17
|
] })
|
|
20
|
-
] })
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
] })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ e(l, { className: a.title, defaultVariant: "headingXs", children: o })
|
|
23
21
|
] }),
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
] });
|
|
22
|
+
/* @__PURE__ */ e("div", { className: a.borderLeft, "data-line": "left" }),
|
|
23
|
+
/* @__PURE__ */ e("div", { className: a.borderRight, "data-line": "right" })
|
|
24
|
+
] }) });
|
|
27
25
|
}
|
|
28
26
|
export {
|
|
29
27
|
b as StudyCard
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="researchStudies-module__root___l-DhN",e="researchStudies-module__container___K9kTm",o="researchStudies-module__studies___-dT6a",s="researchStudies-module__studyCard___Xqw5Q",r="researchStudies-module__buttonContainer___XKU7w",u={root:t,container:e,studies:o,studyCard:s,buttonContainer:r};exports.buttonContainer=r;exports.container=e;exports.default=u;exports.root=t;exports.studies=o;exports.studyCard=s;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
const t = "researchStudies-module__root___l-DhN", e = "researchStudies-module__container___K9kTm",
|
|
1
|
+
const t = "researchStudies-module__root___l-DhN", e = "researchStudies-module__container___K9kTm", s = "researchStudies-module__studies___-dT6a", o = "researchStudies-module__studyCard___Xqw5Q", _ = "researchStudies-module__buttonContainer___XKU7w", r = {
|
|
2
2
|
root: t,
|
|
3
3
|
container: e,
|
|
4
|
-
studies:
|
|
5
|
-
|
|
4
|
+
studies: s,
|
|
5
|
+
studyCard: o,
|
|
6
|
+
buttonContainer: _
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
_ as buttonContainer,
|
|
9
10
|
e as container,
|
|
10
|
-
|
|
11
|
+
r as default,
|
|
11
12
|
t as root,
|
|
12
|
-
|
|
13
|
+
s as studies,
|
|
14
|
+
o as studyCard
|
|
13
15
|
};
|