@zenpatient-org/healthspan-marketing-ui 0.1.79 → 0.1.80
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 +6 -1
- package/dist/modules/ResearchStudies/ResearchStudies.es.js +32 -11
- package/dist/modules/ResearchStudies/researchStudies.module.css.cjs.js +1 -1
- package/dist/modules/ResearchStudies/researchStudies.module.css.es.js +16 -10
- 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"),i=require("../../components/Button/Button.cjs.js");require("../../components/Icon/Icon.cjs.js");const n=require("../../components/Icon/constants.cjs.js"),t=require("../../components/Typography/Typography.cjs.js"),h=require("./components/StudyCard/StudyCard.cjs.js"),s=require("./researchStudies.module.css.cjs.js"),m=({studies:d,hasMoreButton:l,title:o,backButton:a,loading:c,onClickShowMore:u})=>e.jsx("div",{className:s.default.root,children:e.jsxs("div",{className:s.default.container,children:[e.jsxs("div",{className:s.default.header,children:[a&&e.jsx("div",{className:s.default.backButton,children:e.jsx(i.Button,{as:"a",href:a.href,size:"xs",prefixIcon:n.EIconName.ARROW_BACK,variant:"ghost",children:a==null?void 0:a.label})}),e.jsx(t.Typography,{defaultVariant:"displayXs",mobileVariant:"headingLg",children:o})]}),e.jsx("div",{className:s.default.studies,children:d.map((r,p)=>e.jsx("div",{className:s.default.studyCard,children:e.jsx(h.StudyCard,{...r})},`${r.title}_${r.link}`))}),c&&e.jsx(t.Typography,{as:"div",defaultVariant:"labelSm",emphasis:!0,className:s.default.loading,children:"Loading..."}),l&&e.jsx("div",{className:s.default.buttonContainer,children:e.jsx(i.Button,{size:"lg",variant:"muted",prefixIcon:n.EIconName.PLUS,onClick:u,children:"show more"})})]})});exports.ResearchStudies=m;
|
|
@@ -2,9 +2,14 @@ import { TResearchArticleView } from '../../types/articles';
|
|
|
2
2
|
|
|
3
3
|
type ResearchStudiesProps = {
|
|
4
4
|
title: string;
|
|
5
|
+
backButton?: {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
5
9
|
studies: Array<TResearchArticleView>;
|
|
6
10
|
hasMoreButton: boolean;
|
|
11
|
+
loading?: boolean;
|
|
7
12
|
onClickShowMore: () => void;
|
|
8
13
|
};
|
|
9
|
-
export declare const ResearchStudies: ({ studies, hasMoreButton, title, onClickShowMore }: ResearchStudiesProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ResearchStudies: ({ studies, hasMoreButton, title, backButton, loading, onClickShowMore, }: ResearchStudiesProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
export {};
|
|
@@ -1,16 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import { Button as d } from "../../components/Button/Button.es.js";
|
|
2
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { Button as l } from "../../components/Button/Button.es.js";
|
|
5
4
|
import "../../components/Icon/Icon.es.js";
|
|
6
|
-
import { EIconName as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { EIconName as d } from "../../components/Icon/constants.es.js";
|
|
6
|
+
import { Typography as n } from "../../components/Typography/Typography.es.js";
|
|
7
|
+
import { StudyCard as p } from "./components/StudyCard/StudyCard.es.js";
|
|
8
|
+
import i from "./researchStudies.module.css.es.js";
|
|
9
|
+
const S = ({
|
|
10
|
+
studies: m,
|
|
11
|
+
hasMoreButton: o,
|
|
12
|
+
title: t,
|
|
13
|
+
backButton: r,
|
|
14
|
+
loading: c,
|
|
15
|
+
onClickShowMore: h
|
|
16
|
+
}) => /* @__PURE__ */ e("div", { className: i.root, children: /* @__PURE__ */ s("div", { className: i.container, children: [
|
|
17
|
+
/* @__PURE__ */ s("div", { className: i.header, children: [
|
|
18
|
+
r && /* @__PURE__ */ e("div", { className: i.backButton, children: /* @__PURE__ */ e(
|
|
19
|
+
l,
|
|
20
|
+
{
|
|
21
|
+
as: "a",
|
|
22
|
+
href: r.href,
|
|
23
|
+
size: "xs",
|
|
24
|
+
prefixIcon: d.ARROW_BACK,
|
|
25
|
+
variant: "ghost",
|
|
26
|
+
children: r == null ? void 0 : r.label
|
|
27
|
+
}
|
|
28
|
+
) }),
|
|
29
|
+
/* @__PURE__ */ e(n, { defaultVariant: "displayXs", mobileVariant: "headingLg", children: t })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ e("div", { className: i.studies, children: m.map((a, f) => /* @__PURE__ */ e("div", { className: i.studyCard, children: /* @__PURE__ */ e(p, { ...a }) }, `${a.title}_${a.link}`)) }),
|
|
32
|
+
c && /* @__PURE__ */ e(n, { as: "div", defaultVariant: "labelSm", emphasis: !0, className: i.loading, children: "Loading..." }),
|
|
33
|
+
o && /* @__PURE__ */ e("div", { className: i.buttonContainer, children: /* @__PURE__ */ e(l, { size: "lg", variant: "muted", prefixIcon: d.PLUS, onClick: h, children: "show more" }) })
|
|
13
34
|
] }) });
|
|
14
35
|
export {
|
|
15
|
-
|
|
36
|
+
S as ResearchStudies
|
|
16
37
|
};
|
|
@@ -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 e="researchStudies-module__root___l-DhN",t="researchStudies-module__container___K9kTm",o="researchStudies-module__header___LMwvo",s="researchStudies-module__backButton___j5euv",_="researchStudies-module__studies___-dT6a",d="researchStudies-module__studyCard___Xqw5Q",r="researchStudies-module__loading___-bcYF",u="researchStudies-module__buttonContainer___XKU7w",n={root:e,container:t,header:o,backButton:s,studies:_,studyCard:d,loading:r,buttonContainer:u};exports.backButton=s;exports.buttonContainer=u;exports.container=t;exports.default=n;exports.header=o;exports.loading=r;exports.root=e;exports.studies=_;exports.studyCard=d;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
container:
|
|
1
|
+
const e = "researchStudies-module__root___l-DhN", t = "researchStudies-module__container___K9kTm", o = "researchStudies-module__header___LMwvo", _ = "researchStudies-module__backButton___j5euv", s = "researchStudies-module__studies___-dT6a", d = "researchStudies-module__studyCard___Xqw5Q", r = "researchStudies-module__loading___-bcYF", n = "researchStudies-module__buttonContainer___XKU7w", u = {
|
|
2
|
+
root: e,
|
|
3
|
+
container: t,
|
|
4
|
+
header: o,
|
|
5
|
+
backButton: _,
|
|
4
6
|
studies: s,
|
|
5
|
-
studyCard:
|
|
6
|
-
|
|
7
|
+
studyCard: d,
|
|
8
|
+
loading: r,
|
|
9
|
+
buttonContainer: n
|
|
7
10
|
};
|
|
8
11
|
export {
|
|
9
|
-
_ as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
_ as backButton,
|
|
13
|
+
n as buttonContainer,
|
|
14
|
+
t as container,
|
|
15
|
+
u as default,
|
|
16
|
+
o as header,
|
|
17
|
+
r as loading,
|
|
18
|
+
e as root,
|
|
13
19
|
s as studies,
|
|
14
|
-
|
|
20
|
+
d as studyCard
|
|
15
21
|
};
|