@zenpatient-org/healthspan-marketing-ui 0.1.167 → 0.1.169
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/components/ClaimBlock/ClaimBlock.cjs.js +1 -1
- package/dist/components/ClaimBlock/ClaimBlock.d.ts +4 -2
- package/dist/components/ClaimBlock/ClaimBlock.es.js +30 -8
- package/dist/components/ClaimBlock/claimBlock.module.css.cjs.js +1 -1
- package/dist/components/ClaimBlock/claimBlock.module.css.es.js +14 -8
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Claims/Claims.cjs.js +1 -0
- package/dist/modules/Claims/Claims.d.ts +11 -0
- package/dist/modules/Claims/Claims.es.js +35 -0
- package/dist/modules/Claims/claims.module.css.cjs.js +1 -0
- package/dist/modules/Claims/claims.module.css.es.js +19 -0
- package/dist/modules/Claims/index.d.ts +1 -0
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.cjs.js +1 -0
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts +25 -0
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.es.js +52 -0
- package/dist/modules/ImageWithBenefits/imageWithBenefits.module.css.cjs.js +1 -0
- package/dist/modules/ImageWithBenefits/imageWithBenefits.module.css.es.js +27 -0
- package/dist/modules/ImageWithBenefits/index.d.ts +1 -0
- package/package.json +11 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../components/Typography/Typography.cjs.js"),u=require("../../components/ClaimBlock/ClaimBlock.cjs.js"),c=require("../../components/Button/Button.cjs.js"),a=require("./claims.module.css.cjs.js");function o({text:l,button:s,claimBlocks:r}){return e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:a.default.content,children:[(l||s)&&e.jsxs("div",{className:a.default.container,children:[l?e.jsx(n.Typography,{className:a.default.text,as:"h2",defaultVariant:"preambleLg",mobileVariant:"preambleSm",children:l}):e.jsx("div",{}),s&&e.jsx("div",{className:a.default.buttonContainer,children:e.jsx(c.Button,{as:"a",href:s.link,variant:"muted",size:"lg",children:s.text})})]}),e.jsx("div",{className:a.default.claimContainer,children:r.slice(0,4).map((i,t)=>e.jsx("div",{className:a.default.claimBlock,children:e.jsx(u.ClaimBlock,{value:i.value,subtitle:i.subtitle,description:i.description,valuePrefix:i.valuePrefix,valueSuffix:i.valueSuffix})},t))})]})})}exports.Claims=o;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClaimBlockProps } from '../../components/ClaimBlock';
|
|
2
|
+
|
|
3
|
+
export type ClaimsProps = {
|
|
4
|
+
text?: string;
|
|
5
|
+
button?: {
|
|
6
|
+
text?: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
};
|
|
9
|
+
claimBlocks: Array<ClaimBlockProps>;
|
|
10
|
+
};
|
|
11
|
+
export declare function Claims({ text, button, claimBlocks }: ClaimsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
3
|
+
import { ClaimBlock as o } from "../../components/ClaimBlock/ClaimBlock.es.js";
|
|
4
|
+
import { Button as c } from "../../components/Button/Button.es.js";
|
|
5
|
+
import i from "./claims.module.css.es.js";
|
|
6
|
+
function h({ text: l, button: r, claimBlocks: n }) {
|
|
7
|
+
return /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ s("div", { className: i.content, children: [
|
|
8
|
+
(l || r) && /* @__PURE__ */ s("div", { className: i.container, children: [
|
|
9
|
+
l ? /* @__PURE__ */ e(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
className: i.text,
|
|
13
|
+
as: "h2",
|
|
14
|
+
defaultVariant: "preambleLg",
|
|
15
|
+
mobileVariant: "preambleSm",
|
|
16
|
+
children: l
|
|
17
|
+
}
|
|
18
|
+
) : /* @__PURE__ */ e("div", {}),
|
|
19
|
+
r && /* @__PURE__ */ e("div", { className: i.buttonContainer, children: /* @__PURE__ */ e(c, { as: "a", href: r.link, variant: "muted", size: "lg", children: r.text }) })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e("div", { className: i.claimContainer, children: n.slice(0, 4).map((a, t) => /* @__PURE__ */ e("div", { className: i.claimBlock, children: /* @__PURE__ */ e(
|
|
22
|
+
o,
|
|
23
|
+
{
|
|
24
|
+
value: a.value,
|
|
25
|
+
subtitle: a.subtitle,
|
|
26
|
+
description: a.description,
|
|
27
|
+
valuePrefix: a.valuePrefix,
|
|
28
|
+
valueSuffix: a.valueSuffix
|
|
29
|
+
}
|
|
30
|
+
) }, t)) })
|
|
31
|
+
] }) });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
h as Claims
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="claims-module__root___G0vMQ",o="claims-module__content___wtAp3",n="claims-module__container___5j2Jv",e="claims-module__text___uHrdi",c="claims-module__buttonContainer___d-veq",_="claims-module__claimContainer___MQm5U",l="claims-module__claimBlock___LCrIN",i={root:t,content:o,container:n,text:e,buttonContainer:c,claimContainer:_,claimBlock:l};exports.buttonContainer=c;exports.claimBlock=l;exports.claimContainer=_;exports.container=n;exports.content=o;exports.default=i;exports.root=t;exports.text=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "claims-module__root___G0vMQ", o = "claims-module__content___wtAp3", n = "claims-module__container___5j2Jv", _ = "claims-module__text___uHrdi", c = "claims-module__buttonContainer___d-veq", e = "claims-module__claimContainer___MQm5U", l = "claims-module__claimBlock___LCrIN", a = {
|
|
2
|
+
root: t,
|
|
3
|
+
content: o,
|
|
4
|
+
container: n,
|
|
5
|
+
text: _,
|
|
6
|
+
buttonContainer: c,
|
|
7
|
+
claimContainer: e,
|
|
8
|
+
claimBlock: l
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
c as buttonContainer,
|
|
12
|
+
l as claimBlock,
|
|
13
|
+
e as claimContainer,
|
|
14
|
+
n as container,
|
|
15
|
+
o as content,
|
|
16
|
+
a as default,
|
|
17
|
+
t as root,
|
|
18
|
+
_ as text
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Claims } from './Claims';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("../../components/TypeBadge/TypeBadge.cjs.js"),l=require("../../components/Typography/Typography.cjs.js"),a=require("./imageWithBenefits.module.css.cjs.js"),f=({image:s,label:i,title:o,benefits:r,benefitsColor:d,mobileLabelColor:n,mobileTitleColor:c,mobileBenefitsColor:m,mobileImage:u})=>e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:a.default.container,children:[e.jsxs("div",{className:a.default.imageContainer,children:[e.jsx("img",{src:s,alt:"background image",className:a.default.image}),e.jsx("img",{src:u||s,alt:"mobile background image",className:a.default.mobileImage})]}),e.jsxs("div",{className:a.default.content,"data-label-color":i.color,"data-mobile-label-color":n,"data-title-color":o.color,"data-mobile-title-color":c,"data-benefits-color":d,"data-mobile-benefits-color":m,children:[e.jsx(l.Typography,{as:"p",defaultVariant:"labelXs",emphasis:!0,className:a.default.label,children:i.text}),e.jsx(l.Typography,{as:"h2",defaultVariant:"headingXl",mobileVariant:"headingMd",className:a.default.title,children:o.text}),e.jsx("div",{className:a.default.benefitContainer,children:r.map(t=>e.jsxs("div",{className:a.default.benefitItem,children:[e.jsx(g.TypeBadge,{type:t.badge}),e.jsx(l.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodyMd",className:a.default.benefitText,children:t.text})]},t.text))})]})]})});exports.ImageWithBenefits=f;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ETypeBadge } from '../../components/TypeBadge';
|
|
2
|
+
|
|
3
|
+
type TColor = 'black' | 'white' | 'solar' | 'indigo';
|
|
4
|
+
export type ImageWithBenefitsProps = {
|
|
5
|
+
image: string;
|
|
6
|
+
label: {
|
|
7
|
+
text: string;
|
|
8
|
+
color: TColor;
|
|
9
|
+
};
|
|
10
|
+
title: {
|
|
11
|
+
text: string;
|
|
12
|
+
color: TColor;
|
|
13
|
+
};
|
|
14
|
+
benefits: Array<{
|
|
15
|
+
text: string;
|
|
16
|
+
badge: ETypeBadge;
|
|
17
|
+
}>;
|
|
18
|
+
benefitsColor: TColor;
|
|
19
|
+
mobileLabelColor?: TColor;
|
|
20
|
+
mobileTitleColor?: TColor;
|
|
21
|
+
mobileBenefitsColor?: TColor;
|
|
22
|
+
mobileImage?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const ImageWithBenefits: ({ image, label, title, benefits, benefitsColor, mobileLabelColor, mobileTitleColor, mobileBenefitsColor, mobileImage, }: ImageWithBenefitsProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { TypeBadge as h } from "../../components/TypeBadge/TypeBadge.es.js";
|
|
3
|
+
import { Typography as i } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import a from "./imageWithBenefits.module.css.es.js";
|
|
5
|
+
const u = ({
|
|
6
|
+
image: o,
|
|
7
|
+
label: r,
|
|
8
|
+
title: s,
|
|
9
|
+
benefits: c,
|
|
10
|
+
benefitsColor: m,
|
|
11
|
+
mobileLabelColor: d,
|
|
12
|
+
mobileTitleColor: n,
|
|
13
|
+
mobileBenefitsColor: b,
|
|
14
|
+
mobileImage: g
|
|
15
|
+
}) => /* @__PURE__ */ e("section", { className: a.root, children: /* @__PURE__ */ t("div", { className: a.container, children: [
|
|
16
|
+
/* @__PURE__ */ t("div", { className: a.imageContainer, children: [
|
|
17
|
+
/* @__PURE__ */ e("img", { src: o, alt: "background image", className: a.image }),
|
|
18
|
+
/* @__PURE__ */ e("img", { src: g || o, alt: "mobile background image", className: a.mobileImage })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ t(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: a.content,
|
|
24
|
+
"data-label-color": r.color,
|
|
25
|
+
"data-mobile-label-color": d,
|
|
26
|
+
"data-title-color": s.color,
|
|
27
|
+
"data-mobile-title-color": n,
|
|
28
|
+
"data-benefits-color": m,
|
|
29
|
+
"data-mobile-benefits-color": b,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "labelXs", emphasis: !0, className: a.label, children: r.text }),
|
|
32
|
+
/* @__PURE__ */ e(i, { as: "h2", defaultVariant: "headingXl", mobileVariant: "headingMd", className: a.title, children: s.text }),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: a.benefitContainer, children: c.map((l) => /* @__PURE__ */ t("div", { className: a.benefitItem, children: [
|
|
34
|
+
/* @__PURE__ */ e(h, { type: l.badge }),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
i,
|
|
37
|
+
{
|
|
38
|
+
as: "p",
|
|
39
|
+
defaultVariant: "bodyLg",
|
|
40
|
+
mobileVariant: "bodyMd",
|
|
41
|
+
className: a.benefitText,
|
|
42
|
+
children: l.text
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }, l.text)) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] }) });
|
|
50
|
+
export {
|
|
51
|
+
u as ImageWithBenefits
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="imageWithBenefits-module__root___hD3NN",t="imageWithBenefits-module__container___6SG6T",i="imageWithBenefits-module__imageContainer___idfFN",n="imageWithBenefits-module__image___T-6-A",_="imageWithBenefits-module__mobileImage___DrH63",o="imageWithBenefits-module__content___db-4p",a="imageWithBenefits-module__label___bAwcZ",m="imageWithBenefits-module__title___xEDsA",l="imageWithBenefits-module__benefitContainer___Vr5tS",s="imageWithBenefits-module__benefitItem___u63B4",f="imageWithBenefits-module__benefitText___-PxVT",g={root:e,container:t,imageContainer:i,image:n,mobileImage:_,content:o,label:a,title:m,benefitContainer:l,benefitItem:s,benefitText:f};exports.benefitContainer=l;exports.benefitItem=s;exports.benefitText=f;exports.container=t;exports.content=o;exports.default=g;exports.image=n;exports.imageContainer=i;exports.label=a;exports.mobileImage=_;exports.root=e;exports.title=m;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const e = "imageWithBenefits-module__root___hD3NN", t = "imageWithBenefits-module__container___6SG6T", i = "imageWithBenefits-module__imageContainer___idfFN", n = "imageWithBenefits-module__image___T-6-A", _ = "imageWithBenefits-module__mobileImage___DrH63", o = "imageWithBenefits-module__content___db-4p", m = "imageWithBenefits-module__label___bAwcZ", a = "imageWithBenefits-module__title___xEDsA", s = "imageWithBenefits-module__benefitContainer___Vr5tS", l = "imageWithBenefits-module__benefitItem___u63B4", f = "imageWithBenefits-module__benefitText___-PxVT", g = {
|
|
2
|
+
root: e,
|
|
3
|
+
container: t,
|
|
4
|
+
imageContainer: i,
|
|
5
|
+
image: n,
|
|
6
|
+
mobileImage: _,
|
|
7
|
+
content: o,
|
|
8
|
+
label: m,
|
|
9
|
+
title: a,
|
|
10
|
+
benefitContainer: s,
|
|
11
|
+
benefitItem: l,
|
|
12
|
+
benefitText: f
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
s as benefitContainer,
|
|
16
|
+
l as benefitItem,
|
|
17
|
+
f as benefitText,
|
|
18
|
+
t as container,
|
|
19
|
+
o as content,
|
|
20
|
+
g as default,
|
|
21
|
+
n as image,
|
|
22
|
+
i as imageContainer,
|
|
23
|
+
m as label,
|
|
24
|
+
_ as mobileImage,
|
|
25
|
+
e as root,
|
|
26
|
+
a as title
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ImageWithBenefits } from './ImageWithBenefits';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenpatient-org/healthspan-marketing-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.169",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -351,6 +351,11 @@
|
|
|
351
351
|
"import": "./dist/components/ClaimBlock/ClaimBlock.es.js",
|
|
352
352
|
"require": "./dist/components/ClaimBlock/ClaimBlock.cjs.js"
|
|
353
353
|
},
|
|
354
|
+
"./Claims": {
|
|
355
|
+
"types": "./dist/modules/Claims/Claims.d.ts",
|
|
356
|
+
"import": "./dist/modules/Claims/Claims.es.js",
|
|
357
|
+
"require": "./dist/modules/Claims/Claims.cjs.js"
|
|
358
|
+
},
|
|
354
359
|
"./FollowTheScience": {
|
|
355
360
|
"types": "./dist/modules/FollowTheScience/FollowTheScience.d.ts",
|
|
356
361
|
"import": "./dist/modules/FollowTheScience/FollowTheScience.es.js",
|
|
@@ -646,6 +651,11 @@
|
|
|
646
651
|
"import": "./dist/modules/Grid/Grid.es.js",
|
|
647
652
|
"require": "./dist/modules/Grid/Grid.cjs.js"
|
|
648
653
|
},
|
|
654
|
+
"./ImageWithBenefits": {
|
|
655
|
+
"types": "./dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts",
|
|
656
|
+
"import": "./dist/modules/ImageWithBenefits/ImageWithBenefits.es.js",
|
|
657
|
+
"require": "./dist/modules/ImageWithBenefits/ImageWithBenefits.cjs.js"
|
|
658
|
+
},
|
|
649
659
|
"./dist/*.css": "./dist/*.css",
|
|
650
660
|
"./analytics": {
|
|
651
661
|
"types": "./dist/types/analytics.d.ts",
|