@zenpatient-org/healthspan-marketing-ui 0.1.21 → 0.1.22
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/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -13
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +49 -59
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +10 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +50 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.cjs.js +1 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.es.js +15 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/index.d.ts +1 -0
- package/dist/components/ComplexTooltip/index.d.ts +1 -0
- package/dist/components/ComplexTooltip/types.d.ts +13 -0
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +5 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +16 -15
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +14 -12
- package/dist/components/ProductPairs/ProductPairs.cjs.js +1 -0
- package/dist/components/ProductPairs/ProductPairs.d.ts +7 -0
- package/dist/components/ProductPairs/ProductPairs.es.js +55 -0
- package/dist/components/ProductPairs/index.d.ts +1 -0
- package/dist/components/ProductPairs/productPairs.module.css.cjs.js +1 -0
- package/dist/components/ProductPairs/productPairs.module.css.es.js +17 -0
- package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
- package/dist/components/StepsCarousel/StepsCarousel.es.js +76 -56
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Benefits/Benefits.cjs.js +1 -0
- package/dist/modules/Benefits/Benefits.d.ts +14 -0
- package/dist/modules/Benefits/Benefits.es.js +53 -0
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/benefits.module.css.es.js +25 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.d.ts +7 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +37 -0
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.es.js +11 -0
- package/dist/modules/Benefits/components/BenefitItem/index.d.ts +1 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.d.ts +6 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +17 -0
- package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.es.js +9 -0
- package/dist/modules/Benefits/components/BenefitTag/index.d.ts +1 -0
- package/dist/modules/Benefits/components/index.d.ts +2 -0
- package/dist/modules/Benefits/index.d.ts +1 -0
- package/dist/modules/PairedProducts/PairedProducts.cjs.js +1 -0
- package/dist/modules/PairedProducts/PairedProducts.d.ts +12 -0
- package/dist/modules/PairedProducts/PairedProducts.es.js +17 -0
- package/dist/modules/PairedProducts/index.d.ts +1 -0
- package/dist/modules/PairedProducts/pairedProducts.module.css.cjs.js +1 -0
- package/dist/modules/PairedProducts/pairedProducts.module.css.es.js +17 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +1 -1
- package/dist/modules/ProductsDisplay/types.d.ts +1 -1
- package/dist/modules/TypesOfTests/TypesOfTests.cjs.js +1 -0
- package/dist/modules/TypesOfTests/TypesOfTests.d.ts +10 -0
- package/dist/modules/TypesOfTests/TypesOfTests.es.js +67 -0
- package/dist/modules/TypesOfTests/index.d.ts +1 -0
- package/dist/modules/TypesOfTests/types.d.ts +4 -0
- package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -0
- package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +29 -0
- package/dist/utils/useIsMobile.cjs.js +1 -0
- package/dist/utils/useIsMobile.d.ts +1 -0
- package/dist/utils/useIsMobile.es.js +12 -0
- package/package.json +6 -1
- package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +0 -1
- package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +0 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("./components/BenefitTag/BenefitTag.cjs.js"),m=require("./components/BenefitItem/BenefitItem.cjs.js"),u=require("../../components/Typography/Typography.cjs.js"),t=require("./benefits.module.css.cjs.js"),g=({label:s,title:l,image:r,benefits:n,tags:d})=>e.jsxs("div",{className:t.default.root,children:[e.jsxs("div",{className:t.default.header,children:[e.jsx(u.Typography,{defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:t.default.label,children:s}),e.jsx(c.HighlightedTitle,{title:l,defaultVariant:"displayMd",mobileVariant:"headingLg"})]}),e.jsxs("div",{className:t.default.content,children:[e.jsxs("div",{className:t.default.imageWrapper,children:[e.jsx("img",{src:r,alt:"image",className:t.default.image}),d.map((i,a)=>e.jsx(o.BenefitTag,{text:i,className:t.default[`tag${a+1}`]},a))]}),e.jsx("div",{className:t.default.benefits,children:n.map((i,a)=>e.jsx(m.BenefitItem,{index:a+1,title:i.title,description:i.description},a))})]})]});exports.Benefits=g;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
label: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
image: string;
|
|
7
|
+
benefits: Array<{
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}>;
|
|
11
|
+
tags: Array<string>;
|
|
12
|
+
};
|
|
13
|
+
export declare const Benefits: ({ label, title, image, benefits, tags }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { HighlightedTitle as c } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
|
+
import { BenefitTag as n } from "./components/BenefitTag/BenefitTag.es.js";
|
|
4
|
+
import { BenefitItem as p } from "./components/BenefitItem/BenefitItem.es.js";
|
|
5
|
+
import { Typography as h } from "../../components/Typography/Typography.es.js";
|
|
6
|
+
import e from "./benefits.module.css.es.js";
|
|
7
|
+
const y = ({ label: l, title: m, image: s, benefits: o, tags: d }) => /* @__PURE__ */ r("div", { className: e.root, children: [
|
|
8
|
+
/* @__PURE__ */ r("div", { className: e.header, children: [
|
|
9
|
+
/* @__PURE__ */ a(
|
|
10
|
+
h,
|
|
11
|
+
{
|
|
12
|
+
defaultVariant: "labelMd",
|
|
13
|
+
mobileVariant: "labelSm",
|
|
14
|
+
emphasis: !0,
|
|
15
|
+
className: e.label,
|
|
16
|
+
children: l
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ a(
|
|
20
|
+
c,
|
|
21
|
+
{
|
|
22
|
+
title: m,
|
|
23
|
+
defaultVariant: "displayMd",
|
|
24
|
+
mobileVariant: "headingLg"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ r("div", { className: e.content, children: [
|
|
29
|
+
/* @__PURE__ */ r("div", { className: e.imageWrapper, children: [
|
|
30
|
+
/* @__PURE__ */ a("img", { src: s, alt: "image", className: e.image }),
|
|
31
|
+
d.map((t, i) => /* @__PURE__ */ a(
|
|
32
|
+
n,
|
|
33
|
+
{
|
|
34
|
+
text: t,
|
|
35
|
+
className: e[`tag${i + 1}`]
|
|
36
|
+
},
|
|
37
|
+
i
|
|
38
|
+
))
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ a("div", { className: e.benefits, children: o.map((t, i) => /* @__PURE__ */ a(
|
|
41
|
+
p,
|
|
42
|
+
{
|
|
43
|
+
index: i + 1,
|
|
44
|
+
title: t.title,
|
|
45
|
+
description: t.description
|
|
46
|
+
},
|
|
47
|
+
i
|
|
48
|
+
)) })
|
|
49
|
+
] })
|
|
50
|
+
] });
|
|
51
|
+
export {
|
|
52
|
+
y as Benefits
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefits-module__root___DiO7c",t="benefits-module__header___wt7M5",_="benefits-module__label___sgWAr",o="benefits-module__content___Q1Nej",a="benefits-module__imageWrapper___Owwd8",n="benefits-module__image___Hq7o5",s="benefits-module__tag1___orgyD",i="benefits-module__tag2___49bdt",l="benefits-module__tag3___TYdET",g="benefits-module__benefits___psqX-",r={root:e,header:t,label:_,content:o,imageWrapper:a,image:n,tag1:s,tag2:i,tag3:l,benefits:g};exports.benefits=g;exports.content=o;exports.default=r;exports.header=t;exports.image=n;exports.imageWrapper=a;exports.label=_;exports.root=e;exports.tag1=s;exports.tag2=i;exports.tag3=l;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = "benefits-module__root___DiO7c", _ = "benefits-module__header___wt7M5", t = "benefits-module__label___sgWAr", o = "benefits-module__content___Q1Nej", n = "benefits-module__imageWrapper___Owwd8", s = "benefits-module__image___Hq7o5", a = "benefits-module__tag1___orgyD", i = "benefits-module__tag2___49bdt", l = "benefits-module__tag3___TYdET", b = "benefits-module__benefits___psqX-", d = {
|
|
2
|
+
root: e,
|
|
3
|
+
header: _,
|
|
4
|
+
label: t,
|
|
5
|
+
content: o,
|
|
6
|
+
imageWrapper: n,
|
|
7
|
+
image: s,
|
|
8
|
+
tag1: a,
|
|
9
|
+
tag2: i,
|
|
10
|
+
tag3: l,
|
|
11
|
+
benefits: b
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
b as benefits,
|
|
15
|
+
o as content,
|
|
16
|
+
d as default,
|
|
17
|
+
_ as header,
|
|
18
|
+
s as image,
|
|
19
|
+
n as imageWrapper,
|
|
20
|
+
t as label,
|
|
21
|
+
e as root,
|
|
22
|
+
a as tag1,
|
|
23
|
+
i as tag2,
|
|
24
|
+
l as tag3
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../../../components/Typography/Typography.cjs.js"),a=require("./benefitItem.module.css.cjs.js"),l=({index:i,title:n,description:r})=>e.jsxs("div",{className:a.default.benefit,children:[e.jsx(t.Typography,{defaultVariant:"labelXl",emphasis:!0,className:a.default.benefitIndex,children:`(0${i})`}),e.jsxs("div",{className:a.default.benefitDetails,children:[e.jsx(t.Typography,{defaultVariant:"headingLg",mobileVariant:"headingXs",className:a.default.benefitTitle,children:n}),e.jsx(t.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.benefitDesc,children:r})]})]});exports.BenefitItem=l;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "../../../../components/Typography/Typography.es.js";
|
|
3
|
+
import e from "./benefitItem.module.css.es.js";
|
|
4
|
+
const o = ({ index: l, title: n, description: r }) => /* @__PURE__ */ t("div", { className: e.benefit, children: [
|
|
5
|
+
/* @__PURE__ */ a(
|
|
6
|
+
i,
|
|
7
|
+
{
|
|
8
|
+
defaultVariant: "labelXl",
|
|
9
|
+
emphasis: !0,
|
|
10
|
+
className: e.benefitIndex,
|
|
11
|
+
children: `(0${l})`
|
|
12
|
+
}
|
|
13
|
+
),
|
|
14
|
+
/* @__PURE__ */ t("div", { className: e.benefitDetails, children: [
|
|
15
|
+
/* @__PURE__ */ a(
|
|
16
|
+
i,
|
|
17
|
+
{
|
|
18
|
+
defaultVariant: "headingLg",
|
|
19
|
+
mobileVariant: "headingXs",
|
|
20
|
+
className: e.benefitTitle,
|
|
21
|
+
children: n
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ a(
|
|
25
|
+
i,
|
|
26
|
+
{
|
|
27
|
+
defaultVariant: "bodyMd",
|
|
28
|
+
mobileVariant: "bodySm",
|
|
29
|
+
className: e.benefitDesc,
|
|
30
|
+
children: r
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
export {
|
|
36
|
+
o as BenefitItem
|
|
37
|
+
};
|
|
@@ -0,0 +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",n="benefitItem-module__benefitDetails___nw6dI",i={benefit:e,benefitIndex:t,benefitDetails:n};exports.benefit=e;exports.benefitDetails=n;exports.benefitIndex=t;exports.default=i;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = "benefitItem-module__benefit___yL87M", t = "benefitItem-module__benefitIndex___I0-tr", n = "benefitItem-module__benefitDetails___nw6dI", i = {
|
|
2
|
+
benefit: e,
|
|
3
|
+
benefitIndex: t,
|
|
4
|
+
benefitDetails: n
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
e as benefit,
|
|
8
|
+
n as benefitDetails,
|
|
9
|
+
t as benefitIndex,
|
|
10
|
+
i as default
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BenefitItem } from './BenefitItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./benefitTag.module.css.cjs.js"),n=require("../../../../components/Typography/Typography.cjs.js"),i=require("../../../../utils/cn/cn.cjs.js"),o=({text:t,className:a})=>e.jsx("div",{className:i.cn(r.default.root,a),children:e.jsx(n.Typography,{emphasis:!0,defaultVariant:"labelLg",mobileVariant:"labelSm",className:r.default.benefitTag,children:t})});exports.BenefitTag=o;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "./benefitTag.module.css.es.js";
|
|
3
|
+
import { Typography as o } from "../../../../components/Typography/Typography.es.js";
|
|
4
|
+
import { cn as i } from "../../../../utils/cn/cn.es.js";
|
|
5
|
+
const p = ({ text: a, className: t }) => /* @__PURE__ */ r("div", { className: i(e.root, t), children: /* @__PURE__ */ r(
|
|
6
|
+
o,
|
|
7
|
+
{
|
|
8
|
+
emphasis: !0,
|
|
9
|
+
defaultVariant: "labelLg",
|
|
10
|
+
mobileVariant: "labelSm",
|
|
11
|
+
className: e.benefitTag,
|
|
12
|
+
children: a
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
export {
|
|
16
|
+
p as BenefitTag
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefitTag-module__root___8-WMf",t="benefitTag-module__benefitTag___9R-qj",o={root:e,benefitTag:t};exports.benefitTag=t;exports.default=o;exports.root=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BenefitTag } from './BenefitTag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Benefits } from './Benefits';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/Button/Button.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),n=require("../../components/ProductPairs/ProductPairs.cjs.js"),t=require("../../utils/cn/cn.cjs.js"),r=require("./pairedProducts.module.css.cjs.js"),o=({label:d,button:a,productCards:i})=>e.jsx("section",{className:r.default.root,children:e.jsxs("div",{className:r.default.container,children:[e.jsxs("div",{className:r.default.header,children:[e.jsx(c.Typography,{as:"h2",defaultVariant:"displaySm",mobileVariant:"headingLg",children:d}),e.jsx("div",{className:t.cn(r.default.buttonWrap,r.default.mobile),children:e.jsx(s.Button,{as:"a",href:a.href,variant:"muted",size:"sm",children:a.label})}),e.jsx("div",{className:t.cn(r.default.buttonWrap,r.default.desktop),children:e.jsx(s.Button,{as:"a",href:a.href,variant:"muted",size:"lg",children:a.label})})]}),e.jsx("div",{className:r.default.productCards,children:e.jsx(n.ProductPairs,{productCards:i})})]})});exports.PairedProducts=o;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TProductGalleryCardView } from '../../components/ProductGalleryCard';
|
|
2
|
+
|
|
3
|
+
type PairedProductsProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
button: {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
productCards: Array<TProductGalleryCardView>;
|
|
10
|
+
};
|
|
11
|
+
export declare const PairedProducts: ({ label, button, productCards }: PairedProductsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Button as s } from "../../components/Button/Button.es.js";
|
|
3
|
+
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { ProductPairs as t } from "../../components/ProductPairs/ProductPairs.es.js";
|
|
5
|
+
import { cn as d } from "../../utils/cn/cn.es.js";
|
|
6
|
+
import a from "./pairedProducts.module.css.es.js";
|
|
7
|
+
const v = ({ label: l, button: e, productCards: o }) => /* @__PURE__ */ r("section", { className: a.root, children: /* @__PURE__ */ i("div", { className: a.container, children: [
|
|
8
|
+
/* @__PURE__ */ i("div", { className: a.header, children: [
|
|
9
|
+
/* @__PURE__ */ r(m, { as: "h2", defaultVariant: "displaySm", mobileVariant: "headingLg", children: l }),
|
|
10
|
+
/* @__PURE__ */ r("div", { className: d(a.buttonWrap, a.mobile), children: /* @__PURE__ */ r(s, { as: "a", href: e.href, variant: "muted", size: "sm", children: e.label }) }),
|
|
11
|
+
/* @__PURE__ */ r("div", { className: d(a.buttonWrap, a.desktop), children: /* @__PURE__ */ r(s, { as: "a", href: e.href, variant: "muted", size: "lg", children: e.label }) })
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ r("div", { className: a.productCards, children: /* @__PURE__ */ r(t, { productCards: o }) })
|
|
14
|
+
] }) });
|
|
15
|
+
export {
|
|
16
|
+
v as PairedProducts
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PairedProducts } from './PairedProducts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="pairedProducts-module__root___CGPcB",e="pairedProducts-module__container___UOwaf",d="pairedProducts-module__header___cGhYK",t="pairedProducts-module__productCards___wKcam",r="pairedProducts-module__mobile___e1DYf",_="pairedProducts-module__desktop___mq5Bl",s={root:o,container:e,header:d,productCards:t,mobile:r,desktop:_};exports.container=e;exports.default=s;exports.desktop=_;exports.header=d;exports.mobile=r;exports.productCards=t;exports.root=o;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const o = "pairedProducts-module__root___CGPcB", d = "pairedProducts-module__container___UOwaf", e = "pairedProducts-module__header___cGhYK", _ = "pairedProducts-module__productCards___wKcam", r = "pairedProducts-module__mobile___e1DYf", t = "pairedProducts-module__desktop___mq5Bl", c = {
|
|
2
|
+
root: o,
|
|
3
|
+
container: d,
|
|
4
|
+
header: e,
|
|
5
|
+
productCards: _,
|
|
6
|
+
mobile: r,
|
|
7
|
+
desktop: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
d as container,
|
|
11
|
+
c as default,
|
|
12
|
+
t as desktop,
|
|
13
|
+
e as header,
|
|
14
|
+
r as mobile,
|
|
15
|
+
_ as productCards,
|
|
16
|
+
o as root
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),T=require("../../components/ProductGallery/ProductGallery.cjs.js"),g=require("../../components/ProductGalleryCard/ProductGalleryCard.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),q=require("./components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js"),s=require("./productsDisplay.module.css.cjs.js"),j=require("./useProductsData.cjs.js"),x=({
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),T=require("../../components/ProductGallery/ProductGallery.cjs.js"),g=require("../../components/ProductGalleryCard/ProductGalleryCard.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),q=require("./components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js"),s=require("./productsDisplay.module.css.cjs.js"),j=require("./useProductsData.cjs.js"),x=({labelText:d,productDisplays:u})=>{var l;const{isTabbed:t,title:n,description:y,tabs:a,slidesByTabs:o}=j.useProductsData({productDisplays:u}),[r,p]=c.useState(((l=a[0])==null?void 0:l.value)??""),b=c.useMemo(()=>(o[r]??[]).map((m,P)=>e.jsx(g.ProductGalleryCard,{...m},P)),[r,o]),h=t?e.jsx(q.ProductsDisplayTabs,{label:d,tabs:a,activeTab:r,onTabChange:p}):e.jsxs("div",{className:s.default.header,children:[e.jsx(i.Typography,{className:s.default.headerTitle,defaultVariant:"displayMd",mobileVariant:"headingLg",children:n}),e.jsx(i.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",children:y})]});return e.jsx("div",{className:s.default.root,children:e.jsx(T.ProductGallery,{header:h,slides:b,isTabbed:t})})};exports.ProductsDisplay=x;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TProductsDisplay } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const ProductsDisplay: ({
|
|
3
|
+
export declare const ProductsDisplay: ({ labelText, productDisplays }: TProductsDisplay) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,7 @@ import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
|
7
7
|
import { ProductsDisplayTabs as V } from "./components/ProductsDisplayTabs/ProductsDisplayTabs.es.js";
|
|
8
8
|
import r from "./productsDisplay.module.css.es.js";
|
|
9
9
|
import { useProductsData as x } from "./useProductsData.es.js";
|
|
10
|
-
const B = ({
|
|
10
|
+
const B = ({ labelText: d, productDisplays: m }) => {
|
|
11
11
|
var i;
|
|
12
12
|
const { isTabbed: a, title: c, description: n, tabs: s, slidesByTabs: o } = x({
|
|
13
13
|
productDisplays: m
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),y=require("../../components/ComplexTooltip/ComplexTooltip.cjs.js"),v=require("../../components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js"),m=require("../../components/Button/Button.cjs.js"),f=require("../../components/Typography/Typography.cjs.js"),i=require("../../utils/cn/cn.cjs.js"),t=require("./typesOfTests.module.css.cjs.js"),r=25,C=({title:x,items:l,colorScheme:n,buttonLabel:c})=>{const[o,g]=h.useState(!1),[a,u]=h.useState(null),p=()=>g(s=>!s),T=()=>{u(null)};return e.jsxs("section",{className:t.default.root,"data-scheme":n,children:[a!==null&&e.jsx("div",{className:i.cn(t.default.popover,t.default.mobile),children:e.jsx(v.ComplexTooltipContent,{title:l[a].title,description:l[a].description,onClose:T,style:n,className:t.default.popoverContent})}),e.jsxs("div",{className:t.default.container,children:[e.jsx("div",{className:t.default.header,children:e.jsxs(f.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingLg",children:["(",x,")"]})}),e.jsx("div",{className:i.cn(t.default.content,!o&&l.length>r&&t.default.contentBlurred),children:(o?l:l.slice(0,r)).map((s,d)=>e.jsx("div",{className:i.cn(t.default.item,a===d&&t.default.selectedItem),onClick:()=>u(j=>j===d?null:d),children:e.jsx(y.ComplexTooltip,{title:s.title,description:s.description,style:"light",trigger:"hover",isBlurred:n==="dark",children:e.jsx(f.Typography,{as:"p",defaultVariant:"headingLg",mobileVariant:"headingXxs",children:s.title})})},s.title))}),l.length>r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:i.cn(t.default.actions,t.default.desktop),children:e.jsxs(m.Button,{variant:n==="light"?"muted":"muted-invert",size:"lg",onClick:p,children:[o?"Hide":"View All"," ",c]})}),e.jsx("div",{className:i.cn(t.default.actions,t.default.mobile),children:e.jsxs(m.Button,{variant:n==="light"?"muted":"muted-invert",size:"md",onClick:p,children:[o?"Hide":"View All"," ",c]})})]})]})]})};exports.TypesOfTests=C;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TColorScheme } from '../../types/common';
|
|
2
|
+
import { TTypesOfTestsItem } from './types';
|
|
3
|
+
|
|
4
|
+
export type TypesOfTestsProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
items: Array<TTypesOfTestsItem>;
|
|
7
|
+
buttonLabel: string;
|
|
8
|
+
colorScheme: TColorScheme;
|
|
9
|
+
};
|
|
10
|
+
export declare const TypesOfTests: ({ title, items, colorScheme, buttonLabel }: TypesOfTestsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as n, jsx as t, Fragment as y } from "react/jsx-runtime";
|
|
3
|
+
import { useState as u } from "react";
|
|
4
|
+
import { ComplexTooltip as T } from "../../components/ComplexTooltip/ComplexTooltip.es.js";
|
|
5
|
+
import { ComplexTooltipContent as k } from "../../components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js";
|
|
6
|
+
import { Button as g } from "../../components/Button/Button.es.js";
|
|
7
|
+
import { Typography as v } from "../../components/Typography/Typography.es.js";
|
|
8
|
+
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
9
|
+
import e from "./typesOfTests.module.css.es.js";
|
|
10
|
+
const c = 25, z = ({ title: f, items: l, colorScheme: s, buttonLabel: m }) => {
|
|
11
|
+
const [o, I] = u(!1), [a, p] = u(null), h = () => I((i) => !i), C = () => {
|
|
12
|
+
p(null);
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ n("section", { className: e.root, "data-scheme": s, children: [
|
|
15
|
+
a !== null && /* @__PURE__ */ t("div", { className: r(e.popover, e.mobile), children: /* @__PURE__ */ t(
|
|
16
|
+
k,
|
|
17
|
+
{
|
|
18
|
+
title: l[a].title,
|
|
19
|
+
description: l[a].description,
|
|
20
|
+
onClose: C,
|
|
21
|
+
style: s,
|
|
22
|
+
className: e.popoverContent
|
|
23
|
+
}
|
|
24
|
+
) }),
|
|
25
|
+
/* @__PURE__ */ n("div", { className: e.container, children: [
|
|
26
|
+
/* @__PURE__ */ t("div", { className: e.header, children: /* @__PURE__ */ n(v, { as: "h2", defaultVariant: "displayMd", mobileVariant: "headingLg", children: [
|
|
27
|
+
"(",
|
|
28
|
+
f,
|
|
29
|
+
")"
|
|
30
|
+
] }) }),
|
|
31
|
+
/* @__PURE__ */ t("div", { className: r(e.content, !o && l.length > c && e.contentBlurred), children: (o ? l : l.slice(0, c)).map((i, d) => /* @__PURE__ */ t(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: r(e.item, a === d && e.selectedItem),
|
|
35
|
+
onClick: () => p((N) => N === d ? null : d),
|
|
36
|
+
children: /* @__PURE__ */ t(
|
|
37
|
+
T,
|
|
38
|
+
{
|
|
39
|
+
title: i.title,
|
|
40
|
+
description: i.description,
|
|
41
|
+
style: "light",
|
|
42
|
+
trigger: "hover",
|
|
43
|
+
isBlurred: s === "dark",
|
|
44
|
+
children: /* @__PURE__ */ t(v, { as: "p", defaultVariant: "headingLg", mobileVariant: "headingXxs", children: i.title })
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
},
|
|
48
|
+
i.title
|
|
49
|
+
)) }),
|
|
50
|
+
l.length > c && /* @__PURE__ */ n(y, { children: [
|
|
51
|
+
/* @__PURE__ */ t("div", { className: r(e.actions, e.desktop), children: /* @__PURE__ */ n(g, { variant: s === "light" ? "muted" : "muted-invert", size: "lg", onClick: h, children: [
|
|
52
|
+
o ? "Hide" : "View All",
|
|
53
|
+
" ",
|
|
54
|
+
m
|
|
55
|
+
] }) }),
|
|
56
|
+
/* @__PURE__ */ t("div", { className: r(e.actions, e.mobile), children: /* @__PURE__ */ n(g, { variant: s === "light" ? "muted" : "muted-invert", size: "md", onClick: h, children: [
|
|
57
|
+
o ? "Hide" : "View All",
|
|
58
|
+
" ",
|
|
59
|
+
m
|
|
60
|
+
] }) })
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63
|
+
] });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
z as TypesOfTests
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TypesOfTests } from './TypesOfTests';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="typesOfTests-module__root___qYLAe",t="typesOfTests-module__container___2YAop",o="typesOfTests-module__header___WYq05",s="typesOfTests-module__content___YNdyt",_="typesOfTests-module__contentBlurred___2-IR-",n="typesOfTests-module__actions___OgW7Y",c="typesOfTests-module__item___kfqsC",d="typesOfTests-module__popover___yLmud",p="typesOfTests-module__popoverContent___hHYFW",r="typesOfTests-module__mobile___aeDNo",l="typesOfTests-module__selectedItem___STfZe",m="typesOfTests-module__desktop___NYBBS",u={root:e,container:t,header:o,content:s,contentBlurred:_,actions:n,item:c,popover:d,popoverContent:p,mobile:r,selectedItem:l,desktop:m};exports.actions=n;exports.container=t;exports.content=s;exports.contentBlurred=_;exports.default=u;exports.desktop=m;exports.header=o;exports.item=c;exports.mobile=r;exports.popover=d;exports.popoverContent=p;exports.root=e;exports.selectedItem=l;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const e = "typesOfTests-module__root___qYLAe", t = "typesOfTests-module__container___2YAop", o = "typesOfTests-module__header___WYq05", s = "typesOfTests-module__content___YNdyt", _ = "typesOfTests-module__contentBlurred___2-IR-", n = "typesOfTests-module__actions___OgW7Y", p = "typesOfTests-module__item___kfqsC", c = "typesOfTests-module__popover___yLmud", d = "typesOfTests-module__popoverContent___hHYFW", l = "typesOfTests-module__mobile___aeDNo", m = "typesOfTests-module__selectedItem___STfZe", r = "typesOfTests-module__desktop___NYBBS", u = {
|
|
2
|
+
root: e,
|
|
3
|
+
container: t,
|
|
4
|
+
header: o,
|
|
5
|
+
content: s,
|
|
6
|
+
contentBlurred: _,
|
|
7
|
+
actions: n,
|
|
8
|
+
item: p,
|
|
9
|
+
popover: c,
|
|
10
|
+
popoverContent: d,
|
|
11
|
+
mobile: l,
|
|
12
|
+
selectedItem: m,
|
|
13
|
+
desktop: r
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
n as actions,
|
|
17
|
+
t as container,
|
|
18
|
+
s as content,
|
|
19
|
+
_ as contentBlurred,
|
|
20
|
+
u as default,
|
|
21
|
+
r as desktop,
|
|
22
|
+
o as header,
|
|
23
|
+
p as item,
|
|
24
|
+
l as mobile,
|
|
25
|
+
c as popover,
|
|
26
|
+
d as popoverContent,
|
|
27
|
+
e as root,
|
|
28
|
+
m as selectedItem
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=(t=768)=>{const[n,s]=i.useState(!1);return i.useEffect(()=>{if(typeof window>"u")return;const e=()=>s(window.innerWidth<=t&&window.matchMedia("(pointer: coarse)").matches);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),n};exports.useIsMobile=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useState as o, useEffect as s } from "react";
|
|
2
|
+
const d = (i = 768) => {
|
|
3
|
+
const [t, n] = o(!1);
|
|
4
|
+
return s(() => {
|
|
5
|
+
if (typeof window > "u") return;
|
|
6
|
+
const e = () => n(window.innerWidth <= i && window.matchMedia("(pointer: coarse)").matches);
|
|
7
|
+
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
8
|
+
}, [i]), t;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
d as useIsMobile
|
|
12
|
+
};
|
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.22",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -262,6 +262,11 @@
|
|
|
262
262
|
"import": "./dist/modules/YourProtocol/YourProtocol.es.js",
|
|
263
263
|
"require": "./dist/modules/YourProtocol/YourProtocol.cjs.js"
|
|
264
264
|
},
|
|
265
|
+
"./Benefits": {
|
|
266
|
+
"types": "./dist/modules/Benefits/Benefits.d.ts",
|
|
267
|
+
"import": "./dist/modules/Benefits/Benefits.es.js",
|
|
268
|
+
"require": "./dist/modules/Benefits/Benefits.cjs.js"
|
|
269
|
+
},
|
|
265
270
|
"./dist/*.css": "./dist/*.css"
|
|
266
271
|
}
|
|
267
272
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="complexTooltip-module__trigger___N3sbu",e="complexTooltip-module__content___Qh4Mj",t="complexTooltip-module__blurred___1OYU3",l="complexTooltip-module__contentHeader___OtbyW",c="complexTooltip-module__closeButton___hH0qs",n="complexTooltip-module__closeIcon___adX6C",_={trigger:o,content:e,blurred:t,contentHeader:l,closeButton:c,closeIcon:n};exports.blurred=t;exports.closeButton=c;exports.closeIcon=n;exports.content=e;exports.contentHeader=l;exports.default=_;exports.trigger=o;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const o = "complexTooltip-module__trigger___N3sbu", e = "complexTooltip-module__content___Qh4Mj", t = "complexTooltip-module__blurred___1OYU3", _ = "complexTooltip-module__contentHeader___OtbyW", l = "complexTooltip-module__closeButton___hH0qs", c = "complexTooltip-module__closeIcon___adX6C", n = {
|
|
2
|
-
trigger: o,
|
|
3
|
-
content: e,
|
|
4
|
-
blurred: t,
|
|
5
|
-
contentHeader: _,
|
|
6
|
-
closeButton: l,
|
|
7
|
-
closeIcon: c
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
t as blurred,
|
|
11
|
-
l as closeButton,
|
|
12
|
-
c as closeIcon,
|
|
13
|
-
e as content,
|
|
14
|
-
_ as contentHeader,
|
|
15
|
-
n as default,
|
|
16
|
-
o as trigger
|
|
17
|
-
};
|