@zenpatient-org/healthspan-marketing-ui 0.1.77 → 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/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 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
|
};
|