@zenpatient-org/healthspan-marketing-ui 0.1.70 → 0.1.72
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/HowItWorks/HowItWorks.cjs.js +1 -1
- package/dist/modules/HowItWorks/HowItWorks.d.ts +2 -1
- package/dist/modules/HowItWorks/HowItWorks.es.js +48 -14
- package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -1
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +5 -1
- package/dist/modules/HowItWorks/components/Content/Content.es.js +50 -42
- package/dist/modules/HowItWorks/howItWorks.module.css.cjs.js +1 -1
- package/dist/modules/HowItWorks/howItWorks.module.css.es.js +10 -6
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.d.ts +6 -2
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.cjs.js +1 -1
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.d.ts +2 -2
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.es.js +11 -11
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/index.d.ts +0 -1
- package/dist/modules/ResearchEssentialReadings/index.d.ts +0 -2
- package/dist/modules/ResearchFeatured/ResearchFeatured.d.ts +6 -1
- package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.d.ts +2 -2
- package/dist/modules/ResearchFeatured/components/FeaturedArticle/index.d.ts +0 -1
- package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.cjs.js +1 -1
- package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.d.ts +2 -2
- package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.es.js +11 -11
- package/dist/modules/ResearchFeatured/components/index.d.ts +0 -2
- package/dist/modules/ResearchFeatured/index.d.ts +0 -1
- package/dist/modules/ResearchStudies/ResearchStudies.d.ts +2 -2
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.cjs.js +1 -1
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +2 -2
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.es.js +4 -4
- package/dist/modules/ResearchStudies/index.d.ts +0 -1
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.cjs.js +1 -1
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +5 -1
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js +48 -21
- package/dist/pageComponents/StillHaveQuestions/assets/joinOurTeam.jpg.cjs.js +1 -0
- package/dist/pageComponents/StillHaveQuestions/assets/joinOurTeam.jpg.es.js +4 -0
- package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg.cjs.js +1 -0
- package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg.es.js +4 -0
- package/dist/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css.cjs.js +1 -1
- package/dist/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css.es.js +4 -8
- package/dist/types/articles.d.ts +8 -0
- package/package.json +1 -1
- package/dist/modules/ResearchEssentialReadings/components/ReadingCard/types.d.ts +0 -10
- package/dist/modules/ResearchEssentialReadings/components/index.d.ts +0 -2
- package/dist/modules/ResearchEssentialReadings/types.d.ts +0 -5
- package/dist/modules/ResearchFeatured/components/FeaturedArticle/types.d.ts +0 -7
- package/dist/modules/ResearchFeatured/components/HighlightedArticle/types.d.ts +0 -9
- package/dist/modules/ResearchFeatured/types.d.ts +0 -6
- package/dist/modules/ResearchStudies/types.d.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
"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"),a=require("../../components/Button/Button.cjs.js"),o=require("../../components/ProgressButton/ProgressButton.cjs.js"),u=require("../../components/Typography/Typography.cjs.js"),c=require("./components/Content/Content.cjs.js"),t=require("./howItWorks.module.css.cjs.js"),h=require("../../utils/useSwiper/useSwiper.cjs.js"),p=({title:l,getStartedLink:i,items:d,colorScheme:n="light"})=>{const s=h.useSwiper(),r=n==="dark"?"muted-invert":"muted";return e.jsxs("section",{className:t.default.root,"data-color-scheme":n,children:[e.jsxs("div",{className:t.default.headerContainer,children:[e.jsx(u.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:l}),i&&e.jsx("div",{className:t.default.desktop,children:e.jsx(a.Button,{as:"a",href:i,variant:r,size:"lg",children:"Get started"})}),i&&e.jsx("div",{className:t.default.mobile,children:e.jsx(a.Button,{as:"a",href:i,variant:r,size:"sm",children:"Get started"})}),!i&&e.jsx("div",{className:t.default.navigation,children:e.jsx(o.ProgressButton,{invert:n==="dark",left:{disabled:s.isBeginning,onClick:s.handlePrevClick},right:{disabled:s.isEnd,onClick:s.handleNextClick}})})]}),e.jsx(c.Content,{items:d,colorScheme:n,swiper:s,showBottomNav:!!i}),!i&&e.jsx("div",{className:t.default.mobileNavigation,children:e.jsx(o.ProgressButton,{invert:n==="dark",left:{disabled:s.isBeginning,onClick:s.handlePrevClick},right:{disabled:s.isEnd,onClick:s.handleNextClick}})})]})};exports.HowItWorks=p;
|
|
@@ -6,6 +6,7 @@ type HowItWorksProps = {
|
|
|
6
6
|
image: string;
|
|
7
7
|
}>;
|
|
8
8
|
getStartedLink?: string;
|
|
9
|
+
colorScheme?: 'light' | 'dark';
|
|
9
10
|
};
|
|
10
|
-
export declare const HowItWorks: ({ title, getStartedLink, items }: HowItWorksProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const HowItWorks: ({ title, getStartedLink, items, colorScheme }: HowItWorksProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,16 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { Button as t } from "../../components/Button/Button.es.js";
|
|
4
|
+
import { ProgressButton as o } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
5
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
6
|
+
import { Content as h } from "./components/Content/Content.es.js";
|
|
7
|
+
import e from "./howItWorks.module.css.es.js";
|
|
8
|
+
import { useSwiper as v } from "../../utils/useSwiper/useSwiper.es.js";
|
|
9
|
+
const k = ({ title: d, getStartedLink: s, items: m, colorScheme: r = "light" }) => {
|
|
10
|
+
const a = v(), n = r === "dark" ? "muted-invert" : "muted";
|
|
11
|
+
return /* @__PURE__ */ l("section", { className: e.root, "data-color-scheme": r, children: [
|
|
12
|
+
/* @__PURE__ */ l("div", { className: e.headerContainer, children: [
|
|
13
|
+
/* @__PURE__ */ i(c, { as: "h2", defaultVariant: "displayMd", mobileVariant: "headingXl", children: d }),
|
|
14
|
+
s && /* @__PURE__ */ i("div", { className: e.desktop, children: /* @__PURE__ */ i(t, { as: "a", href: s, variant: n, size: "lg", children: "Get started" }) }),
|
|
15
|
+
s && /* @__PURE__ */ i("div", { className: e.mobile, children: /* @__PURE__ */ i(t, { as: "a", href: s, variant: n, size: "sm", children: "Get started" }) }),
|
|
16
|
+
!s && /* @__PURE__ */ i("div", { className: e.navigation, children: /* @__PURE__ */ i(
|
|
17
|
+
o,
|
|
18
|
+
{
|
|
19
|
+
invert: r === "dark",
|
|
20
|
+
left: {
|
|
21
|
+
disabled: a.isBeginning,
|
|
22
|
+
onClick: a.handlePrevClick
|
|
23
|
+
},
|
|
24
|
+
right: {
|
|
25
|
+
disabled: a.isEnd,
|
|
26
|
+
onClick: a.handleNextClick
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
) })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ i(h, { items: m, colorScheme: r, swiper: a, showBottomNav: !!s }),
|
|
32
|
+
!s && /* @__PURE__ */ i("div", { className: e.mobileNavigation, children: /* @__PURE__ */ i(
|
|
33
|
+
o,
|
|
34
|
+
{
|
|
35
|
+
invert: r === "dark",
|
|
36
|
+
left: {
|
|
37
|
+
disabled: a.isBeginning,
|
|
38
|
+
onClick: a.handlePrevClick
|
|
39
|
+
},
|
|
40
|
+
right: {
|
|
41
|
+
disabled: a.isEnd,
|
|
42
|
+
onClick: a.handleNextClick
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
] });
|
|
47
|
+
};
|
|
14
48
|
export {
|
|
15
|
-
|
|
49
|
+
k as HowItWorks
|
|
16
50
|
};
|
|
@@ -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"),x=require("../../../../node_modules/swiper/modules/navigation.cjs.js"),s=require("../../../../node_modules/swiper/swiper-react.cjs.js"),q=require("../../../../components/ProgressButton/ProgressButton.cjs.js"),t=require("../../../../components/Typography/Typography.cjs.js");;/* empty css */;/* empty css */;/* empty css */const a=require("./content.module.css.cjs.js"),w=[x.default],N=({items:l,colorScheme:n,showBottomNav:d,swiper:o})=>{const{isEnd:c,isBeginning:u,hideNav:h,handleSlideChange:g,handlePrevClick:p,handleNextClick:m,onSwiperInit:f,handleSwiperResize:S,handleReachEnd:j,handleReachBeginning:y,handleSlideTo:v}=o;return e.jsxs("div",{className:a.default.root,children:[e.jsx("div",{className:a.default.carouselArea,"data-color-scheme":n,children:e.jsx(s.Swiper,{onSwiper:f,onResize:S,onSlideChange:g,onReachEnd:j,onReachBeginning:y,modules:w,spaceBetween:0,slidesPerView:"auto",className:a.default.swiper,children:l.map((i,r)=>e.jsx(s.SwiperSlide,{className:a.default.swiperSlide,"data-color-scheme":n,children:e.jsxs("div",{className:a.default.card,onClick:()=>v(r),children:[e.jsxs("div",{className:a.default.cardHeader,children:[e.jsx("img",{src:i.image,className:a.default.cardImage,alt:i.title}),e.jsx(t.Typography,{as:"h3",defaultVariant:"headingLg",mobileVariant:"headingXs",children:i.title})]}),e.jsx(t.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",children:i.description})]})},`${i.title}_${r}`))})}),!h&&d&&e.jsx("div",{className:a.default.navigation,children:e.jsx(q.ProgressButton,{invert:n==="dark",left:{disabled:u,onClick:p},right:{disabled:c,onClick:m}})})]})};exports.Content=N;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UseSwiperReturnProps } from '../../../../lib/useSwiper';
|
|
1
2
|
|
|
2
3
|
type ContentProps = {
|
|
3
4
|
items: Array<{
|
|
@@ -5,6 +6,9 @@ type ContentProps = {
|
|
|
5
6
|
description: string;
|
|
6
7
|
image: string;
|
|
7
8
|
}>;
|
|
9
|
+
colorScheme: 'light' | 'dark';
|
|
10
|
+
showBottomNav: boolean;
|
|
11
|
+
swiper: UseSwiperReturnProps;
|
|
8
12
|
};
|
|
9
|
-
export declare const Content: ({ items }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Content: ({ items, colorScheme, showBottomNav, swiper }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
export {};
|
|
@@ -1,65 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { Swiper as
|
|
5
|
-
import { ProgressButton as
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { useSwiper as R } from "../../../../utils/useSwiper/useSwiper.es.js";
|
|
2
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import C from "../../../../node_modules/swiper/modules/navigation.es.js";
|
|
4
|
+
import { Swiper as R, SwiperSlide as b } from "../../../../node_modules/swiper/swiper-react.es.js";
|
|
5
|
+
import { ProgressButton as k } from "../../../../components/ProgressButton/ProgressButton.es.js";
|
|
6
|
+
import { Typography as d } from "../../../../components/Typography/Typography.es.js";
|
|
8
7
|
/* empty css */
|
|
9
8
|
/* empty css */
|
|
10
9
|
/* empty css */
|
|
11
10
|
import i from "./content.module.css.es.js";
|
|
12
|
-
const
|
|
11
|
+
const y = [C], T = ({ items: s, colorScheme: n, showBottomNav: o, swiper: t }) => {
|
|
13
12
|
const {
|
|
14
|
-
isEnd:
|
|
15
|
-
isBeginning:
|
|
16
|
-
hideNav:
|
|
17
|
-
handleSlideChange:
|
|
18
|
-
handlePrevClick:
|
|
19
|
-
handleNextClick:
|
|
20
|
-
onSwiperInit:
|
|
21
|
-
handleSwiperResize:
|
|
22
|
-
handleReachEnd:
|
|
23
|
-
handleReachBeginning:
|
|
24
|
-
handleSlideTo:
|
|
25
|
-
} =
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e("div", { className: i.carouselArea, children: /* @__PURE__ */ e(
|
|
28
|
-
|
|
13
|
+
isEnd: c,
|
|
14
|
+
isBeginning: h,
|
|
15
|
+
hideNav: m,
|
|
16
|
+
handleSlideChange: p,
|
|
17
|
+
handlePrevClick: g,
|
|
18
|
+
handleNextClick: N,
|
|
19
|
+
onSwiperInit: S,
|
|
20
|
+
handleSwiperResize: v,
|
|
21
|
+
handleReachEnd: f,
|
|
22
|
+
handleReachBeginning: w,
|
|
23
|
+
handleSlideTo: u
|
|
24
|
+
} = t;
|
|
25
|
+
return /* @__PURE__ */ r("div", { className: i.root, children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: i.carouselArea, "data-color-scheme": n, children: /* @__PURE__ */ e(
|
|
27
|
+
R,
|
|
29
28
|
{
|
|
30
|
-
onSwiper:
|
|
31
|
-
onResize:
|
|
32
|
-
onSlideChange:
|
|
33
|
-
onReachEnd:
|
|
34
|
-
onReachBeginning:
|
|
35
|
-
modules:
|
|
29
|
+
onSwiper: S,
|
|
30
|
+
onResize: v,
|
|
31
|
+
onSlideChange: p,
|
|
32
|
+
onReachEnd: f,
|
|
33
|
+
onReachBeginning: w,
|
|
34
|
+
modules: y,
|
|
36
35
|
spaceBetween: 0,
|
|
37
36
|
slidesPerView: "auto",
|
|
38
37
|
className: i.swiper,
|
|
39
|
-
children:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
children: s.map((a, l) => /* @__PURE__ */ e(
|
|
39
|
+
b,
|
|
40
|
+
{
|
|
41
|
+
className: i.swiperSlide,
|
|
42
|
+
"data-color-scheme": n,
|
|
43
|
+
children: /* @__PURE__ */ r("div", { className: i.card, onClick: () => u(l), children: [
|
|
44
|
+
/* @__PURE__ */ r("div", { className: i.cardHeader, children: [
|
|
45
|
+
/* @__PURE__ */ e("img", { src: a.image, className: i.cardImage, alt: a.title }),
|
|
46
|
+
/* @__PURE__ */ e(d, { as: "h3", defaultVariant: "headingLg", mobileVariant: "headingXs", children: a.title })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ e(d, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", children: a.description })
|
|
49
|
+
] })
|
|
50
|
+
},
|
|
51
|
+
`${a.title}_${l}`
|
|
52
|
+
))
|
|
46
53
|
}
|
|
47
54
|
) }),
|
|
48
|
-
!
|
|
49
|
-
|
|
55
|
+
!m && o && /* @__PURE__ */ e("div", { className: i.navigation, children: /* @__PURE__ */ e(
|
|
56
|
+
k,
|
|
50
57
|
{
|
|
58
|
+
invert: n === "dark",
|
|
51
59
|
left: {
|
|
52
|
-
disabled:
|
|
53
|
-
onClick:
|
|
60
|
+
disabled: h,
|
|
61
|
+
onClick: g
|
|
54
62
|
},
|
|
55
63
|
right: {
|
|
56
|
-
disabled:
|
|
57
|
-
onClick:
|
|
64
|
+
disabled: c,
|
|
65
|
+
onClick: N
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
) })
|
|
61
69
|
] });
|
|
62
70
|
};
|
|
63
71
|
export {
|
|
64
|
-
|
|
72
|
+
T as Content
|
|
65
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="howItWorks-module__root___tgV6H",e="howItWorks-module__headerContainer___iw1t-",t="howItWorks-module__mobile___c4I-i",_="howItWorks-module__desktop___bZESp",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="howItWorks-module__root___tgV6H",e="howItWorks-module__headerContainer___iw1t-",t="howItWorks-module__mobile___c4I-i",i="howItWorks-module__mobileNavigation___LPVHa",_="howItWorks-module__navigation___S0qCk",a="howItWorks-module__desktop___bZESp",n={root:o,headerContainer:e,mobile:t,mobileNavigation:i,navigation:_,desktop:a};exports.default=n;exports.desktop=a;exports.headerContainer=e;exports.mobile=t;exports.mobileNavigation=i;exports.navigation=_;exports.root=o;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
const o = "howItWorks-module__root___tgV6H", t = "howItWorks-module__headerContainer___iw1t-",
|
|
1
|
+
const o = "howItWorks-module__root___tgV6H", t = "howItWorks-module__headerContainer___iw1t-", _ = "howItWorks-module__mobile___c4I-i", e = "howItWorks-module__mobileNavigation___LPVHa", i = "howItWorks-module__navigation___S0qCk", n = "howItWorks-module__desktop___bZESp", a = {
|
|
2
2
|
root: o,
|
|
3
3
|
headerContainer: t,
|
|
4
|
-
mobile:
|
|
5
|
-
|
|
4
|
+
mobile: _,
|
|
5
|
+
mobileNavigation: e,
|
|
6
|
+
navigation: i,
|
|
7
|
+
desktop: n
|
|
6
8
|
};
|
|
7
9
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
a as default,
|
|
11
|
+
n as desktop,
|
|
10
12
|
t as headerContainer,
|
|
11
|
-
|
|
13
|
+
_ as mobile,
|
|
14
|
+
e as mobileNavigation,
|
|
15
|
+
i as navigation,
|
|
12
16
|
o as root
|
|
13
17
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../types/articles';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type TResearchEssentialReadingsProps = {
|
|
4
|
+
readings: Array<TResearchArticleView>;
|
|
5
|
+
};
|
|
6
|
+
export declare const ResearchEssentialReadings: ({ readings }: TResearchEssentialReadingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../../../utils/formatDate.cjs.js"),c=require("../../../../components/Label/Label.cjs.js"),r=require("../../../../components/Typography/Typography.cjs.js"),a=require("./readingCard.module.css.cjs.js");function u({title:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../../../utils/formatDate.cjs.js"),c=require("../../../../components/Label/Label.cjs.js"),r=require("../../../../components/Typography/Typography.cjs.js"),a=require("./readingCard.module.css.cjs.js");function u({title:i,link:s,image:o,date:n,label:l,readTime:t}){return e.jsx("a",{href:s,className:a.default.root,children:e.jsxs("div",{className:a.default.content,children:[e.jsx("div",{className:a.default.imagePart,style:{backgroundImage:`url(${o})`},children:l&&e.jsx(c.Label,{color:"white",size:"lg",children:l})}),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:d.formatDate(n)}),!!t&&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:[t," MIN READ"]})]})]}),e.jsx(r.Typography,{className:a.default.title,defaultVariant:"headingXs",children:i})]})]})})}exports.ReadingCard=u;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../../../types/articles';
|
|
2
2
|
|
|
3
|
-
export declare function ReadingCard({ title, link, image, date, label, readTime }:
|
|
3
|
+
export declare function ReadingCard({ title, link, image, date, label, readTime }: TResearchArticleView): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { formatDate as s } 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: n, date: c, label:
|
|
7
|
-
return /* @__PURE__ */ e("a", { href: m, className:
|
|
8
|
-
/* @__PURE__ */ e("div", { className:
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
5
|
+
import r from "./readingCard.module.css.es.js";
|
|
6
|
+
function b({ title: o, link: m, image: n, date: c, label: i, readTime: t }) {
|
|
7
|
+
return /* @__PURE__ */ e("a", { href: m, className: r.root, children: /* @__PURE__ */ a("div", { className: r.content, children: [
|
|
8
|
+
/* @__PURE__ */ e("div", { className: r.imagePart, style: { backgroundImage: `url(${n})` }, children: i && /* @__PURE__ */ e(h, { color: "white", size: "lg", children: i }) }),
|
|
9
|
+
/* @__PURE__ */ a("div", { className: r.dataPart, children: [
|
|
10
|
+
/* @__PURE__ */ a("div", { className: r.info, children: [
|
|
11
11
|
/* @__PURE__ */ e(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: s(c) }),
|
|
12
|
-
!!
|
|
12
|
+
!!t && /* @__PURE__ */ a(d, { children: [
|
|
13
13
|
/* @__PURE__ */ e(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: "•" }),
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
14
|
+
/* @__PURE__ */ a(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: [
|
|
15
|
+
t,
|
|
16
16
|
" MIN READ"
|
|
17
17
|
] })
|
|
18
18
|
] })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */ e(l, { className:
|
|
20
|
+
/* @__PURE__ */ e(l, { className: r.title, defaultVariant: "headingXs", children: o })
|
|
21
21
|
] })
|
|
22
22
|
] }) });
|
|
23
23
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../types/articles';
|
|
2
2
|
|
|
3
|
+
type TResearchFeatured = {
|
|
4
|
+
highlightedArticle: TResearchArticleView;
|
|
5
|
+
articles: Array<TResearchArticleView>;
|
|
6
|
+
};
|
|
3
7
|
export declare const ResearchFeatured: ({ highlightedArticle, articles }: TResearchFeatured) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../../../types/articles';
|
|
2
2
|
|
|
3
|
-
export declare const FeaturedArticle: ({ image, date, readTime, title, link }:
|
|
3
|
+
export declare const FeaturedArticle: ({ image, date, readTime, title, link }: TResearchArticleView) => import("react/jsx-runtime").JSX.Element;
|
package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../../../components/Label/Label.cjs.js"),l=require("../../../../components/Typography/Typography.cjs.js"),n=require("../../../../utils/formatDate.cjs.js"),a=require("./highlightedArticle.module.css.cjs.js"),d=({label:t,image:r,date:i,title:s,link:o})=>e.jsxs("a",{href:o,className:a.default.root,style:{backgroundImage:`url(${r})`},children:[t&&e.jsx(c.Label,{size:"lg",color:"white",className:a.default.label,children:t}),e.jsxs("div",{className:a.default.text,children:[e.jsx(l.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:a.default.date,children:n.formatDate(i)}),e.jsx(l.Typography,{defaultVariant:"headingXl",mobileVariant:"headingXs",className:a.default.title,children:s})]})]});exports.HighlightedArticle=d;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../../../types/articles';
|
|
2
2
|
|
|
3
|
-
export declare const HighlightedArticle: ({ label, image, date, title, link }:
|
|
3
|
+
export declare const HighlightedArticle: ({ label, image, date, title, link }: TResearchArticleView) => import("react/jsx-runtime").JSX.Element;
|
package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Label as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { formatDate as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Label as c } from "../../../../components/Label/Label.es.js";
|
|
3
|
+
import { Typography as t } from "../../../../components/Typography/Typography.es.js";
|
|
4
|
+
import { formatDate as n } from "../../../../utils/formatDate.es.js";
|
|
5
|
+
import e from "./highlightedArticle.module.css.es.js";
|
|
6
|
+
const b = ({ label: r, image: i, date: s, title: m, link: o }) => /* @__PURE__ */ l("a", { href: o, className: e.root, style: { backgroundImage: `url(${i})` }, children: [
|
|
7
|
+
r && /* @__PURE__ */ a(c, { size: "lg", color: "white", className: e.label, children: r }),
|
|
8
|
+
/* @__PURE__ */ l("div", { className: e.text, children: [
|
|
9
|
+
/* @__PURE__ */ a(t, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, className: e.date, children: n(s) }),
|
|
10
|
+
/* @__PURE__ */ a(t, { defaultVariant: "headingXl", mobileVariant: "headingXs", className: e.title, children: m })
|
|
11
11
|
] })
|
|
12
12
|
] });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
b as HighlightedArticle
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../types/articles';
|
|
2
2
|
|
|
3
3
|
type ResearchStudiesProps = {
|
|
4
|
-
studies: Array<
|
|
4
|
+
studies: Array<TResearchArticleView>;
|
|
5
5
|
hasMoreButton: boolean;
|
|
6
6
|
onClickShowMore: () => void;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../../../utils/formatDate.cjs.js"),
|
|
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:o,date:d,label:t,readTime:l}){return e.jsxs("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(${o})`},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(d)}),!!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}),e.jsx("div",{className:a.default.borderRight})]})}exports.StudyCard=u;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TResearchArticleView } from '../../../../types/articles';
|
|
2
2
|
|
|
3
|
-
export declare function StudyCard({ title, link, image, date, label, readTime }:
|
|
3
|
+
export declare function StudyCard({ title, link, image, date, label, readTime }: TResearchArticleView): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,17 +3,17 @@ import { formatDate as n } 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
5
|
import e from "./studyCard.module.css.es.js";
|
|
6
|
-
function b({ title: o, link: m, image: d, date: s, label:
|
|
6
|
+
function b({ title: o, link: m, image: d, date: s, label: i, readTime: t }) {
|
|
7
7
|
return /* @__PURE__ */ a("a", { href: m, className: e.root, children: [
|
|
8
8
|
/* @__PURE__ */ a("div", { className: e.content, children: [
|
|
9
|
-
/* @__PURE__ */ r("div", { className: e.imagePart, style: { backgroundImage: `url(${d})` }, children:
|
|
9
|
+
/* @__PURE__ */ r("div", { className: e.imagePart, style: { backgroundImage: `url(${d})` }, children: i && /* @__PURE__ */ r(h, { color: "white", size: "lg", children: i }) }),
|
|
10
10
|
/* @__PURE__ */ a("div", { className: e.dataPart, children: [
|
|
11
11
|
/* @__PURE__ */ a("div", { className: e.info, children: [
|
|
12
12
|
/* @__PURE__ */ r(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: n(s) }),
|
|
13
|
-
!!
|
|
13
|
+
!!t && /* @__PURE__ */ a(c, { children: [
|
|
14
14
|
/* @__PURE__ */ r(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: "•" }),
|
|
15
15
|
/* @__PURE__ */ a(l, { defaultVariant: "labelSm", emphasis: !0, weight: "medium", color: "color-neutral-500", children: [
|
|
16
|
-
|
|
16
|
+
t,
|
|
17
17
|
" MIN READ"
|
|
18
18
|
] })
|
|
19
19
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../components/Button/Button.cjs.js"),c=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),d=require("../../components/Typography/Typography.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),t=require("./stillHaveQuestions.module.css.cjs.js"),m=require("./assets/stillHaveQuestions.jpg.cjs.js"),h=require("./assets/joinOurTeam.jpg.cjs.js"),g=({variant:i="StillHaveQuestions"})=>{const s={StillHaveQuestions:{title:e.jsxs(e.Fragment,{children:["Still Have ",e.jsx("b",{children:"questions?"})]}),buttonText:"Contact Us",buttonLink:"/contact-us",image:m.default},JoinOurTeam:{title:e.jsxs(e.Fragment,{children:["Have a passion for ",e.jsx("b",{children:"longevity science?"})]}),buttonText:"Join Our Team",buttonLink:"https://careers.gethealthspan.com/",image:h.default}},{title:o,buttonText:a,buttonLink:l,image:r}=s[i];return e.jsx("section",{className:t.default.root,children:e.jsx("div",{className:n.cn(t.default.imageWrapper,{[t.default.joinOurTeam]:i==="JoinOurTeam"}),style:{backgroundImage:`url(${r})`},children:e.jsxs("div",{className:n.cn(t.default.contentBox,{[t.default.joinOurTeam]:i==="JoinOurTeam"}),children:[e.jsx(c.HighlightedTitle,{colorScheme:"dark",title:e.jsx(d.Typography,{as:"p",defaultVariant:"displayMd",mobileVariant:"displayXs",children:o})}),e.jsx("div",{className:t.default.actions,children:e.jsx(u.Button,{as:"a",href:l,variant:"secondary",size:"lg",children:a})})]})})})};exports.StillHaveQuestions=g;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface StillHaveQuestionsProps {
|
|
2
|
+
variant?: StillHaveQuestionsVariant;
|
|
3
|
+
}
|
|
4
|
+
export type StillHaveQuestionsVariant = 'StillHaveQuestions' | 'JoinOurTeam';
|
|
5
|
+
export declare const StillHaveQuestions: ({ variant }: StillHaveQuestionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button as
|
|
3
|
-
import { HighlightedTitle as
|
|
4
|
-
import { Typography as
|
|
1
|
+
import { jsxs as o, jsx as t, Fragment as n } from "react/jsx-runtime";
|
|
2
|
+
import { Button as u } from "../../components/Button/Button.es.js";
|
|
3
|
+
import { HighlightedTitle as d } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
|
+
import { Typography as p } from "../../components/Typography/Typography.es.js";
|
|
5
5
|
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
6
6
|
import e from "./stillHaveQuestions.module.css.es.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
import h from "./assets/stillHaveQuestions.jpg.es.js";
|
|
8
|
+
import g from "./assets/joinOurTeam.jpg.es.js";
|
|
9
|
+
const O = ({ variant: i = "StillHaveQuestions" }) => {
|
|
10
|
+
const a = {
|
|
11
|
+
StillHaveQuestions: {
|
|
12
|
+
title: /* @__PURE__ */ o(n, { children: [
|
|
13
|
+
"Still Have ",
|
|
14
|
+
/* @__PURE__ */ t("b", { children: "questions?" })
|
|
15
|
+
] }),
|
|
16
|
+
buttonText: "Contact Us",
|
|
17
|
+
buttonLink: "/contact-us",
|
|
18
|
+
image: h
|
|
19
|
+
},
|
|
20
|
+
JoinOurTeam: {
|
|
21
|
+
title: /* @__PURE__ */ o(n, { children: [
|
|
22
|
+
"Have a passion for ",
|
|
23
|
+
/* @__PURE__ */ t("b", { children: "longevity science?" })
|
|
24
|
+
] }),
|
|
25
|
+
buttonText: "Join Our Team",
|
|
26
|
+
buttonLink: "https://careers.gethealthspan.com/",
|
|
27
|
+
image: g
|
|
28
|
+
}
|
|
29
|
+
}, { title: s, buttonText: l, buttonLink: m, image: c } = a[i];
|
|
30
|
+
return /* @__PURE__ */ t("section", { className: e.root, children: /* @__PURE__ */ t(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: r(e.imageWrapper, { [e.joinOurTeam]: i === "JoinOurTeam" }),
|
|
34
|
+
style: {
|
|
35
|
+
backgroundImage: `url(${c})`
|
|
36
|
+
},
|
|
37
|
+
children: /* @__PURE__ */ o("div", { className: r(e.contentBox, { [e.joinOurTeam]: i === "JoinOurTeam" }), children: [
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
d,
|
|
40
|
+
{
|
|
41
|
+
colorScheme: "dark",
|
|
42
|
+
title: /* @__PURE__ */ t(p, { as: "p", defaultVariant: "displayMd", mobileVariant: "displayXs", children: s })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ t("div", { className: e.actions, children: /* @__PURE__ */ t(u, { as: "a", href: m, variant: "secondary", size: "lg", children: l }) })
|
|
46
|
+
] })
|
|
47
|
+
}
|
|
48
|
+
) });
|
|
49
|
+
};
|
|
23
50
|
export {
|
|
24
|
-
|
|
51
|
+
O as StillHaveQuestions
|
|
25
52
|
};
|