@zenpatient-org/healthspan-marketing-ui 0.1.74 → 0.1.75
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/Benefits/Benefits.cjs.js +1 -1
- package/dist/modules/Benefits/Benefits.d.ts +2 -1
- package/dist/modules/Benefits/Benefits.es.js +43 -26
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -1
- package/dist/modules/Benefits/benefits.module.css.es.js +28 -18
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.cjs.js +1 -1
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.d.ts +2 -1
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +30 -10
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.cjs.js +1 -1
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.es.js +5 -3
- package/package.json +1 -1
|
@@ -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"),g=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("./components/BenefitTag/BenefitTag.cjs.js"),c=require("./components/BenefitItem/BenefitItem.cjs.js"),h=require("../../components/Typography/Typography.cjs.js"),a=require("./benefits.module.css.cjs.js"),f=({label:o,title:m,image:i,benefits:l,tags:r,colorScheme:d="light"})=>{const u=l.length===1;return e.jsx("section",{className:a.default.root,"data-color-scheme":d,children:u?e.jsx("div",{className:a.default.soloContainer,children:e.jsxs("div",{className:a.default.soloContent,children:[e.jsxs("div",{className:a.default.soloImageWrapper,children:[e.jsx("img",{src:i,alt:"image",className:a.default.soloImage}),r.map((s,t)=>e.jsx(n.BenefitTag,{text:s,className:a.default[`tag${t+1}`]},t))]}),e.jsx("div",{className:a.default.soloItem,children:e.jsx(c.BenefitItem,{index:0,title:l[0].title,description:l[0].description})})]})}):e.jsxs("div",{className:a.default.container,children:[e.jsxs("div",{className:a.default.header,children:[e.jsx(h.Typography,{defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.default.label,children:o}),e.jsx(g.HighlightedTitle,{title:m,colorScheme:d,defaultVariant:"displayMd",mobileVariant:"headingLg"})]}),e.jsxs("div",{className:a.default.content,children:[e.jsxs("div",{className:a.default.imageWrapper,children:[e.jsx("img",{src:i,alt:"image",className:a.default.image}),r.map((s,t)=>e.jsx(n.BenefitTag,{text:s,className:a.default[`tag${t+1}`]},t))]}),e.jsx("div",{className:a.default.benefits,children:l.map((s,t)=>e.jsx(c.BenefitItem,{index:t+1,title:s.title,description:s.description},t))})]})]})})};exports.Benefits=f;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
description: string;
|
|
10
10
|
}>;
|
|
11
11
|
tags: Array<string>;
|
|
12
|
+
colorScheme?: 'light' | 'dark';
|
|
12
13
|
};
|
|
13
|
-
export declare const Benefits: ({ label, title, image, benefits, tags }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Benefits: ({ label, title, image, benefits, tags, colorScheme }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,30 +1,47 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { HighlightedTitle as
|
|
3
|
-
import { BenefitTag as
|
|
4
|
-
import { BenefitItem as
|
|
5
|
-
import { Typography as
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { HighlightedTitle as g } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
|
+
import { BenefitTag as c } from "./components/BenefitTag/BenefitTag.es.js";
|
|
4
|
+
import { BenefitItem as d } from "./components/BenefitItem/BenefitItem.es.js";
|
|
5
|
+
import { Typography as N } from "../../components/Typography/Typography.es.js";
|
|
6
6
|
import e from "./benefits.module.css.es.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */ r("div", { className: e.imageWrapper, children: [
|
|
14
|
-
/* @__PURE__ */ a("img", { src: m, alt: "image", className: e.image }),
|
|
15
|
-
c.map((t, i) => /* @__PURE__ */ a(d, { text: t, className: e[`tag${i + 1}`] }, i))
|
|
7
|
+
const V = ({ label: n, title: p, image: r, benefits: t, tags: m, colorScheme: o = "light" }) => {
|
|
8
|
+
const h = t.length === 1;
|
|
9
|
+
return /* @__PURE__ */ a("section", { className: e.root, "data-color-scheme": o, children: h ? /* @__PURE__ */ a("div", { className: e.soloContainer, children: /* @__PURE__ */ s("div", { className: e.soloContent, children: [
|
|
10
|
+
/* @__PURE__ */ s("div", { className: e.soloImageWrapper, children: [
|
|
11
|
+
/* @__PURE__ */ a("img", { src: r, alt: "image", className: e.soloImage }),
|
|
12
|
+
m.map((l, i) => /* @__PURE__ */ a(c, { text: l, className: e[`tag${i + 1}`] }, i))
|
|
16
13
|
] }),
|
|
17
|
-
/* @__PURE__ */ a("div", { className: e.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
/* @__PURE__ */ a("div", { className: e.soloItem, children: /* @__PURE__ */ a(d, { index: 0, title: t[0].title, description: t[0].description }) })
|
|
15
|
+
] }) }) : /* @__PURE__ */ s("div", { className: e.container, children: [
|
|
16
|
+
/* @__PURE__ */ s("div", { className: e.header, children: [
|
|
17
|
+
/* @__PURE__ */ a(N, { defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: n }),
|
|
18
|
+
/* @__PURE__ */ a(
|
|
19
|
+
g,
|
|
20
|
+
{
|
|
21
|
+
title: p,
|
|
22
|
+
colorScheme: o,
|
|
23
|
+
defaultVariant: "displayMd",
|
|
24
|
+
mobileVariant: "headingLg"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ s("div", { className: e.content, children: [
|
|
29
|
+
/* @__PURE__ */ s("div", { className: e.imageWrapper, children: [
|
|
30
|
+
/* @__PURE__ */ a("img", { src: r, alt: "image", className: e.image }),
|
|
31
|
+
m.map((l, i) => /* @__PURE__ */ a(c, { text: l, className: e[`tag${i + 1}`] }, i))
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ a("div", { className: e.benefits, children: t.map((l, i) => /* @__PURE__ */ a(
|
|
34
|
+
d,
|
|
35
|
+
{
|
|
36
|
+
index: i + 1,
|
|
37
|
+
title: l.title,
|
|
38
|
+
description: l.description
|
|
39
|
+
},
|
|
40
|
+
i
|
|
41
|
+
)) })
|
|
42
|
+
] })
|
|
43
|
+
] }) });
|
|
44
|
+
};
|
|
28
45
|
export {
|
|
29
|
-
|
|
46
|
+
V as Benefits
|
|
30
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefits-module__root___DiO7c",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefits-module__root___DiO7c",o="benefits-module__container___ouE-Q",t="benefits-module__soloContainer___bLVrj",_="benefits-module__header___wt7M5",n="benefits-module__label___sgWAr",s="benefits-module__content___Q1Nej",a="benefits-module__soloContent___UDgoi",l="benefits-module__imageWrapper___Owwd8",i="benefits-module__soloImageWrapper___oS3I8",r="benefits-module__image___Hq7o5",m="benefits-module__soloImage___YSMfM",g="benefits-module__tag1___orgyD",b="benefits-module__tag2___49bdt",c="benefits-module__tag3___TYdET",d="benefits-module__benefits___psqX-",u="benefits-module__soloItem___1SOXX",f={root:e,container:o,soloContainer:t,header:_,label:n,content:s,soloContent:a,imageWrapper:l,soloImageWrapper:i,image:r,soloImage:m,tag1:g,tag2:b,tag3:c,benefits:d,soloItem:u};exports.benefits=d;exports.container=o;exports.content=s;exports.default=f;exports.header=_;exports.image=r;exports.imageWrapper=l;exports.label=n;exports.root=e;exports.soloContainer=t;exports.soloContent=a;exports.soloImage=m;exports.soloImageWrapper=i;exports.soloItem=u;exports.tag1=g;exports.tag2=b;exports.tag3=c;
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
const e = "benefits-module__root___DiO7c",
|
|
1
|
+
const e = "benefits-module__root___DiO7c", o = "benefits-module__container___ouE-Q", _ = "benefits-module__soloContainer___bLVrj", t = "benefits-module__header___wt7M5", n = "benefits-module__label___sgWAr", s = "benefits-module__content___Q1Nej", a = "benefits-module__soloContent___UDgoi", l = "benefits-module__imageWrapper___Owwd8", i = "benefits-module__soloImageWrapper___oS3I8", m = "benefits-module__image___Hq7o5", r = "benefits-module__soloImage___YSMfM", b = "benefits-module__tag1___orgyD", c = "benefits-module__tag2___49bdt", g = "benefits-module__tag3___TYdET", d = "benefits-module__benefits___psqX-", f = "benefits-module__soloItem___1SOXX", u = {
|
|
2
2
|
root: e,
|
|
3
|
-
container:
|
|
3
|
+
container: o,
|
|
4
|
+
soloContainer: _,
|
|
4
5
|
header: t,
|
|
5
|
-
label:
|
|
6
|
-
content:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
label: n,
|
|
7
|
+
content: s,
|
|
8
|
+
soloContent: a,
|
|
9
|
+
imageWrapper: l,
|
|
10
|
+
soloImageWrapper: i,
|
|
11
|
+
image: m,
|
|
12
|
+
soloImage: r,
|
|
13
|
+
tag1: b,
|
|
10
14
|
tag2: c,
|
|
11
|
-
tag3:
|
|
12
|
-
benefits:
|
|
15
|
+
tag3: g,
|
|
16
|
+
benefits: d,
|
|
17
|
+
soloItem: f
|
|
13
18
|
};
|
|
14
19
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
d as benefits,
|
|
21
|
+
o as container,
|
|
22
|
+
s as content,
|
|
23
|
+
u as default,
|
|
19
24
|
t as header,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
m as image,
|
|
26
|
+
l as imageWrapper,
|
|
27
|
+
n as label,
|
|
23
28
|
e as root,
|
|
24
|
-
|
|
29
|
+
_ as soloContainer,
|
|
30
|
+
a as soloContent,
|
|
31
|
+
r as soloImage,
|
|
32
|
+
i as soloImageWrapper,
|
|
33
|
+
f as soloItem,
|
|
34
|
+
b as tag1,
|
|
25
35
|
c as tag2,
|
|
26
|
-
|
|
36
|
+
g as tag3
|
|
27
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("../../../../components/Typography/Typography.cjs.js"),e=require("./benefitItem.module.css.cjs.js"),r=require("../../../../utils/cn/cn.cjs.js"),o=({index:l,title:s,description:n,colorScheme:d})=>{const a=l===0;return t.jsxs("div",{className:e.default.benefit,children:[!a&&t.jsx(i.Typography,{defaultVariant:"labelXl",emphasis:!0,className:e.default.benefitIndex,children:`(0${l})`}),t.jsxs("div",{className:r.cn(e.default.benefitDetails,{[e.default.soloDetails]:a}),children:[t.jsx(i.Typography,{defaultVariant:a?"displayXs":"headingLg",mobileVariant:a?"headingXl":"headingXs",className:e.default.benefitTitle,children:s}),t.jsx(i.Typography,{defaultVariant:a?"bodyLg":"bodyMd",mobileVariant:"bodySm",className:e.default.benefitDesc,children:n})]})]})};exports.BenefitItem=o;
|
|
@@ -2,6 +2,7 @@ type Props = {
|
|
|
2
2
|
index: number;
|
|
3
3
|
title: string;
|
|
4
4
|
description: string;
|
|
5
|
+
colorScheme?: 'light' | 'dark';
|
|
5
6
|
};
|
|
6
|
-
export declare const BenefitItem: ({ index, title, description }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const BenefitItem: ({ index, title, description, colorScheme }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
1
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as t } from "../../../../components/Typography/Typography.es.js";
|
|
3
3
|
import e from "./benefitItem.module.css.es.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import { cn as o } from "../../../../utils/cn/cn.es.js";
|
|
5
|
+
const h = ({ index: l, title: r, description: n, colorScheme: m }) => {
|
|
6
|
+
const a = l === 0;
|
|
7
|
+
return /* @__PURE__ */ s("div", { className: e.benefit, children: [
|
|
8
|
+
!a && /* @__PURE__ */ i(t, { defaultVariant: "labelXl", emphasis: !0, className: e.benefitIndex, children: `(0${l})` }),
|
|
9
|
+
/* @__PURE__ */ s("div", { className: o(e.benefitDetails, { [e.soloDetails]: a }), children: [
|
|
10
|
+
/* @__PURE__ */ i(
|
|
11
|
+
t,
|
|
12
|
+
{
|
|
13
|
+
defaultVariant: a ? "displayXs" : "headingLg",
|
|
14
|
+
mobileVariant: a ? "headingXl" : "headingXs",
|
|
15
|
+
className: e.benefitTitle,
|
|
16
|
+
children: r
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ i(
|
|
20
|
+
t,
|
|
21
|
+
{
|
|
22
|
+
defaultVariant: a ? "bodyLg" : "bodyMd",
|
|
23
|
+
mobileVariant: "bodySm",
|
|
24
|
+
className: e.benefitDesc,
|
|
25
|
+
children: n
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
] })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
11
31
|
export {
|
|
12
|
-
|
|
32
|
+
h as BenefitItem
|
|
13
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefitItem-module__benefit___yL87M",t="benefitItem-module__benefitIndex___I0-tr",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefitItem-module__benefit___yL87M",t="benefitItem-module__benefitIndex___I0-tr",i="benefitItem-module__benefitDetails___nw6dI",n="benefitItem-module__soloDetails___L59Rg",l={benefit:e,benefitIndex:t,benefitDetails:i,soloDetails:n};exports.benefit=e;exports.benefitDetails=i;exports.benefitIndex=t;exports.default=l;exports.soloDetails=n;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
const e = "benefitItem-module__benefit___yL87M", t = "benefitItem-module__benefitIndex___I0-tr", n = "benefitItem-module__benefitDetails___nw6dI", i = {
|
|
1
|
+
const e = "benefitItem-module__benefit___yL87M", t = "benefitItem-module__benefitIndex___I0-tr", n = "benefitItem-module__benefitDetails___nw6dI", _ = "benefitItem-module__soloDetails___L59Rg", i = {
|
|
2
2
|
benefit: e,
|
|
3
3
|
benefitIndex: t,
|
|
4
|
-
benefitDetails: n
|
|
4
|
+
benefitDetails: n,
|
|
5
|
+
soloDetails: _
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
7
8
|
e as benefit,
|
|
8
9
|
n as benefitDetails,
|
|
9
10
|
t as benefitIndex,
|
|
10
|
-
i as default
|
|
11
|
+
i as default,
|
|
12
|
+
_ as soloDetails
|
|
11
13
|
};
|