@zenpatient-org/healthspan-marketing-ui 0.1.53 → 0.1.55
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/Curiosity/Curiosity.cjs.js +1 -1
- package/dist/modules/Curiosity/Curiosity.es.js +24 -21
- package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
- package/dist/modules/ImageWithText/ImageWithText.es.js +20 -15
- package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -1
- package/dist/modules/ImageWithText/imageWithText.module.css.es.js +7 -5
- package/dist/modules/ImageWithText/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../components/Button/Button.cjs.js"),m=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../components/Button/Button.cjs.js"),m=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),a=require("../../components/Typography/Typography.cjs.js"),d=require("../../components/StudyGridCard/StudyGridCard.cjs.js"),t=require("./curiosity.module.css.cjs.js"),f=require("../../utils/cn/cn.cjs.js"),h=({title:c,description:r,studies:s,indexed:i})=>e.jsxs("div",{className:f.cn(t.default.root,{[t.default.notIndexed]:!i}),children:[e.jsxs("div",{className:t.default.contentContainer,children:[e.jsxs("div",{className:t.default.containerHeader,children:[e.jsx(m.HighlightedTitle,{title:c,className:t.default.title,defaultVariant:"displayXl",mobileVariant:"displayXs"}),e.jsxs("div",{className:t.default.contentTextContainer,children:[r&&e.jsx(a.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",className:t.default.contentText,children:r}),e.jsx("div",{className:t.default.buttonContainer,children:e.jsx(u.Button,{as:"a",href:"/",variant:"muted",size:"lg",children:"View all studies"})})]})]}),i&&e.jsxs("div",{className:t.default.dividerContainer,children:[e.jsx(a.Typography,{defaultVariant:"labelMd",children:i.number}),e.jsx("div",{className:t.default.divider}),e.jsx(a.Typography,{defaultVariant:"labelMd",emphasis:!0,children:i.label})]})]}),e.jsxs("div",{className:t.default.containerBottom,children:[e.jsx(o.InfiniteScroll,{items:s,speed:50,contentClassName:t.default.infiniteScrollContent,itemClassName:t.default.infiniteScrollItem,rootClassName:t.default.infiniteScrollRoot,renderItem:(l,n)=>e.jsx(d.StudyGridCard,{...l,compressed:!0},n)}),e.jsx(o.InfiniteScroll,{items:s,speed:50,direction:"right",contentClassName:t.default.infiniteScrollContent,itemClassName:t.default.infiniteScrollItemTwo,rootClassName:t.default.infiniteScrollRoot,renderItem:(l,n)=>e.jsx(d.StudyGridCard,{...l,compressed:!0},n)})]})]});exports.Curiosity=h;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
3
|
import { Button as f } from "../../components/Button/Button.es.js";
|
|
3
4
|
import { HighlightedTitle as h } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
5
|
import { InfiniteScroll as m } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
@@ -6,27 +7,29 @@ import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
|
6
7
|
import { StudyGridCard as d } from "../../components/StudyGridCard/StudyGridCard.es.js";
|
|
7
8
|
import e from "./curiosity.module.css.es.js";
|
|
8
9
|
import { cn as p } from "../../utils/cn/cn.es.js";
|
|
9
|
-
const g = ({ title: c, description: o, studies: s, indexed: r }) => /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ i("div", { className: e.
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
const g = ({ title: c, description: o, studies: s, indexed: r }) => /* @__PURE__ */ i("div", { className: p(e.root, { [e.notIndexed]: !r }), children: [
|
|
11
|
+
/* @__PURE__ */ i("div", { className: e.contentContainer, children: [
|
|
12
|
+
/* @__PURE__ */ i("div", { className: e.containerHeader, children: [
|
|
13
|
+
/* @__PURE__ */ t(
|
|
14
|
+
h,
|
|
15
|
+
{
|
|
16
|
+
title: c,
|
|
17
|
+
className: e.title,
|
|
18
|
+
defaultVariant: "displayXl",
|
|
19
|
+
mobileVariant: "displayXs"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ i("div", { className: e.contentTextContainer, children: [
|
|
23
|
+
o && /* @__PURE__ */ t(l, { defaultVariant: "bodyLg", mobileVariant: "bodySm", className: e.contentText, children: o }),
|
|
24
|
+
/* @__PURE__ */ t("div", { className: e.buttonContainer, children: /* @__PURE__ */ t(f, { as: "a", href: "/", variant: "muted", size: "lg", children: "View all studies" }) })
|
|
25
|
+
] })
|
|
26
|
+
] }),
|
|
27
|
+
r && /* @__PURE__ */ i("div", { className: e.dividerContainer, children: [
|
|
28
|
+
/* @__PURE__ */ t(l, { defaultVariant: "labelMd", children: r.number }),
|
|
29
|
+
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
30
|
+
/* @__PURE__ */ t(l, { defaultVariant: "labelMd", emphasis: !0, children: r.label })
|
|
23
31
|
] })
|
|
24
32
|
] }),
|
|
25
|
-
r && /* @__PURE__ */ i("div", { className: e.dividerContainer, children: [
|
|
26
|
-
/* @__PURE__ */ t(l, { defaultVariant: "labelMd", children: r.number }),
|
|
27
|
-
/* @__PURE__ */ t("div", { className: e.divider }),
|
|
28
|
-
/* @__PURE__ */ t(l, { defaultVariant: "labelMd", emphasis: !0, children: r.label })
|
|
29
|
-
] }),
|
|
30
33
|
/* @__PURE__ */ i("div", { className: e.containerBottom, children: [
|
|
31
34
|
/* @__PURE__ */ t(
|
|
32
35
|
m,
|
|
@@ -52,7 +55,7 @@ const g = ({ title: c, description: o, studies: s, indexed: r }) => /* @__PURE__
|
|
|
52
55
|
}
|
|
53
56
|
)
|
|
54
57
|
] })
|
|
55
|
-
] })
|
|
58
|
+
] });
|
|
56
59
|
export {
|
|
57
60
|
g as Curiosity
|
|
58
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),o=require("../../utils/cn/cn.cjs.js"),e=require("./imageWithText.module.css.cjs.js"),c=({image:d,text:t,title:l,view:i,colorScheme:r})=>a.jsx("section",{className:e.default.root,"data-scheme":r,children:a.jsxs("div",{className:e.default.container,"data-view":i,children:[a.jsx("div",{className:e.default.imageContainer,children:a.jsx("img",{src:d,alt:"background image",className:e.default.image})}),a.jsxs("div",{className:o.cn(e.default.content,{[e.default.textAlignLeft]:i==="plain"||i==="plain_with_title",[e.default.textAlignRight]:i==="complex"}),"data-view":i,children:[i==="complex"&&a.jsxs("div",{className:e.default.richTextContainer,children:[l&&a.jsx(s.HighlightedTitle,{colorScheme:"dark",title:l,defaultVariant:"displayXs",mobileVariant:"headingLg"}),t&&a.jsx(n.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",children:t})]}),i==="plain"&&t&&a.jsx("div",{className:e.default.textContainer,children:a.jsx(n.Typography,{defaultVariant:"displayXs",mobileVariant:"headingXs",children:t})}),i==="plain_with_title"&&a.jsxs("div",{className:e.default.plainWithTitleContainer,children:[l&&a.jsx(n.Typography,{defaultVariant:"displayMd",mobileVariant:"headingLg",children:l}),t&&a.jsx(n.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodyMd",children:t})]})]})]})});exports.ImageWithText=c;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { HighlightedTitle as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { cn as
|
|
1
|
+
import { jsx as i, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { HighlightedTitle as m } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
|
+
import { Typography as d } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { cn as c } from "../../utils/cn/cn.es.js";
|
|
5
5
|
import a from "./imageWithText.module.css.es.js";
|
|
6
|
-
const
|
|
7
|
-
/* @__PURE__ */ i("div", { className: a.imageContainer, children: /* @__PURE__ */ i("img", { src:
|
|
8
|
-
/* @__PURE__ */
|
|
6
|
+
const b = ({ image: t, text: n, title: l, view: e, colorScheme: o }) => /* @__PURE__ */ i("section", { className: a.root, "data-scheme": o, children: /* @__PURE__ */ r("div", { className: a.container, "data-view": e, children: [
|
|
7
|
+
/* @__PURE__ */ i("div", { className: a.imageContainer, children: /* @__PURE__ */ i("img", { src: t, alt: "background image", className: a.image }) }),
|
|
8
|
+
/* @__PURE__ */ r(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
className:
|
|
12
|
-
[a.textAlignLeft]:
|
|
13
|
-
[a.textAlignRight]:
|
|
11
|
+
className: c(a.content, {
|
|
12
|
+
[a.textAlignLeft]: e === "plain" || e === "plain_with_title",
|
|
13
|
+
[a.textAlignRight]: e === "complex"
|
|
14
14
|
}),
|
|
15
|
+
"data-view": e,
|
|
15
16
|
children: [
|
|
16
|
-
|
|
17
|
+
e === "complex" && /* @__PURE__ */ r("div", { className: a.richTextContainer, children: [
|
|
17
18
|
l && /* @__PURE__ */ i(
|
|
18
|
-
|
|
19
|
+
m,
|
|
19
20
|
{
|
|
20
21
|
colorScheme: "dark",
|
|
21
22
|
title: l,
|
|
@@ -23,13 +24,17 @@ const x = ({ image: o, text: e, title: l, view: r, colorScheme: m }) => /* @__PU
|
|
|
23
24
|
mobileVariant: "headingLg"
|
|
24
25
|
}
|
|
25
26
|
),
|
|
26
|
-
|
|
27
|
+
n && /* @__PURE__ */ i(d, { defaultVariant: "bodyMd", mobileVariant: "bodySm", children: n })
|
|
27
28
|
] }),
|
|
28
|
-
|
|
29
|
+
e === "plain" && n && /* @__PURE__ */ i("div", { className: a.textContainer, children: /* @__PURE__ */ i(d, { defaultVariant: "displayXs", mobileVariant: "headingXs", children: n }) }),
|
|
30
|
+
e === "plain_with_title" && /* @__PURE__ */ r("div", { className: a.plainWithTitleContainer, children: [
|
|
31
|
+
l && /* @__PURE__ */ i(d, { defaultVariant: "displayMd", mobileVariant: "headingLg", children: l }),
|
|
32
|
+
n && /* @__PURE__ */ i(d, { defaultVariant: "bodyMd", mobileVariant: "bodyMd", children: n })
|
|
33
|
+
] })
|
|
29
34
|
]
|
|
30
35
|
}
|
|
31
36
|
)
|
|
32
37
|
] }) });
|
|
33
38
|
export {
|
|
34
|
-
|
|
39
|
+
b as ImageWithText
|
|
35
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="imageWithText-module__root___Uq9G7",e="imageWithText-module__container___aRFfK",i="imageWithText-module__content___IKyX1",n="imageWithText-module__textAlignLeft___nxRQf",o="imageWithText-module__textAlignRight___ldGBP",_="imageWithText-module__textContainer___m5Jfs",a="imageWithText-module__richTextContainer___ochKF",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="imageWithText-module__root___Uq9G7",e="imageWithText-module__container___aRFfK",i="imageWithText-module__content___IKyX1",n="imageWithText-module__textAlignLeft___nxRQf",o="imageWithText-module__textAlignRight___ldGBP",_="imageWithText-module__textContainer___m5Jfs",a="imageWithText-module__richTextContainer___ochKF",l="imageWithText-module__plainWithTitleContainer___VPVtI",r="imageWithText-module__imageContainer___bcAmi",g="imageWithText-module__image___paWe4",m={root:t,container:e,content:i,textAlignLeft:n,textAlignRight:o,textContainer:_,richTextContainer:a,plainWithTitleContainer:l,imageContainer:r,image:g};exports.container=e;exports.content=i;exports.default=m;exports.image=g;exports.imageContainer=r;exports.plainWithTitleContainer=l;exports.richTextContainer=a;exports.root=t;exports.textAlignLeft=n;exports.textAlignRight=o;exports.textContainer=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-module__container___aRFfK", i = "imageWithText-module__content___IKyX1", n = "imageWithText-module__textAlignLeft___nxRQf", _ = "imageWithText-module__textAlignRight___ldGBP", o = "imageWithText-module__textContainer___m5Jfs", a = "imageWithText-module__richTextContainer___ochKF", m = "imageWithText-
|
|
1
|
+
const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-module__container___aRFfK", i = "imageWithText-module__content___IKyX1", n = "imageWithText-module__textAlignLeft___nxRQf", _ = "imageWithText-module__textAlignRight___ldGBP", o = "imageWithText-module__textContainer___m5Jfs", a = "imageWithText-module__richTextContainer___ochKF", m = "imageWithText-module__plainWithTitleContainer___VPVtI", g = "imageWithText-module__imageContainer___bcAmi", l = "imageWithText-module__image___paWe4", x = {
|
|
2
2
|
root: t,
|
|
3
3
|
container: e,
|
|
4
4
|
content: i,
|
|
@@ -6,15 +6,17 @@ const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-module__conta
|
|
|
6
6
|
textAlignRight: _,
|
|
7
7
|
textContainer: o,
|
|
8
8
|
richTextContainer: a,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
plainWithTitleContainer: m,
|
|
10
|
+
imageContainer: g,
|
|
11
|
+
image: l
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
e as container,
|
|
14
15
|
i as content,
|
|
15
16
|
x as default,
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
l as image,
|
|
18
|
+
g as imageContainer,
|
|
19
|
+
m as plainWithTitleContainer,
|
|
18
20
|
a as richTextContainer,
|
|
19
21
|
t as root,
|
|
20
22
|
n as textAlignLeft,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TColorScheme } from '../../types/common';
|
|
3
3
|
|
|
4
|
+
export type TImageWithTextView = 'plain' | 'complex' | 'plain_with_title';
|
|
4
5
|
export type TImageWithTextProps = {
|
|
5
6
|
image: string;
|
|
6
7
|
title?: ReactNode;
|
|
7
8
|
text?: ReactNode;
|
|
8
|
-
view:
|
|
9
|
+
view: TImageWithTextView;
|
|
9
10
|
colorScheme: TColorScheme;
|
|
10
11
|
};
|