@zenpatient-org/healthspan-marketing-ui 0.1.24 → 0.1.25
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.es.js +8 -8
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -1
- package/dist/modules/Benefits/benefits.module.css.es.js +17 -15
- package/dist/modules/Callback/Callback.cjs.js +1 -1
- package/dist/modules/Callback/Callback.es.js +18 -18
- package/dist/modules/Callback/callback.module.css.cjs.js +1 -1
- package/dist/modules/Callback/callback.module.css.es.js +8 -6
- package/dist/modules/Compare/Compare.cjs.js +1 -1
- package/dist/modules/Compare/Compare.es.js +13 -13
- package/dist/modules/Compare/compare.module.css.cjs.js +1 -1
- package/dist/modules/Compare/compare.module.css.es.js +10 -8
- package/dist/modules/Comparison/Comparison.cjs.js +1 -1
- package/dist/modules/Comparison/Comparison.es.js +18 -9
- package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -1
- package/dist/modules/Comparison/comparison.module.css.es.js +34 -32
- package/dist/modules/FAQ/FAQ.cjs.js +1 -1
- package/dist/modules/FAQ/FAQ.es.js +6 -6
- package/dist/modules/FAQ/faq.module.css.cjs.js +1 -1
- package/dist/modules/FAQ/faq.module.css.es.js +13 -11
- package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -1
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +7 -7
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +45 -43
- package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -1
- package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +10 -8
- package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
- package/dist/modules/ImageWithText/ImageWithText.es.js +13 -13
- package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -1
- package/dist/modules/ImageWithText/imageWithText.module.css.es.js +18 -16
- package/dist/modules/LongevityPathways/LongevityPathways.cjs.js +1 -1
- package/dist/modules/LongevityPathways/LongevityPathways.es.js +4 -4
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +4 -4
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +5 -5
- package/dist/modules/Studies/Studies.cjs.js +1 -1
- package/dist/modules/Studies/Studies.es.js +16 -16
- package/dist/modules/Studies/studies.module.css.cjs.js +1 -1
- package/dist/modules/Studies/studies.module.css.es.js +14 -12
- package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -1
- package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +9 -9
- package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
- package/dist/modules/Testimonial/Testimonial.d.ts +2 -2
- package/dist/modules/Testimonial/Testimonial.es.js +7 -7
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +11 -11
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +13 -13
- package/dist/modules/Testimonial/types.d.ts +1 -1
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +21 -21
- package/dist/modules/YourProtocol/yourProtocol.module.css.cjs.js +1 -1
- package/dist/modules/YourProtocol/yourProtocol.module.css.es.js +12 -10
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Typography as
|
|
2
|
+
import { Typography as i } from "../../../../components/Typography/Typography.es.js";
|
|
3
3
|
import { RatingStars as m } from "../../../../components/RatingStars/RatingStars.es.js";
|
|
4
4
|
import { Product as s } from "../Product/Product.es.js";
|
|
5
|
-
import
|
|
6
|
-
const c = ({ background: n, review: a, product:
|
|
5
|
+
import t from "./textCard.module.css.es.js";
|
|
6
|
+
const c = ({ background: n, review: a, product: e }) => /* @__PURE__ */ l("div", { className: t.root, style: { backgroundImage: `url(${n.url})` }, children: [
|
|
7
7
|
/* @__PURE__ */ r(m, { rating: a.stars ?? 0 }),
|
|
8
|
-
/* @__PURE__ */ l("div", { className:
|
|
9
|
-
/* @__PURE__ */ r(
|
|
10
|
-
/* @__PURE__ */ r(
|
|
8
|
+
/* @__PURE__ */ l("div", { className: t.reviewContainer, children: [
|
|
9
|
+
/* @__PURE__ */ r(i, { as: "h3", defaultVariant: "headingSm", mobileVariant: "headingXs", weight: "regular", children: a.title }),
|
|
10
|
+
/* @__PURE__ */ r(i, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: a.description }),
|
|
11
11
|
a.author.name && /* @__PURE__ */ r(
|
|
12
|
-
|
|
12
|
+
i,
|
|
13
13
|
{
|
|
14
14
|
as: "p",
|
|
15
15
|
defaultVariant: "labelSm",
|
|
16
16
|
mobileVariant: "labelXs",
|
|
17
17
|
weight: "regular",
|
|
18
18
|
emphasis: !0,
|
|
19
|
-
className:
|
|
19
|
+
className: t.reviewAuthor,
|
|
20
20
|
children: a.author.name
|
|
21
21
|
}
|
|
22
22
|
)
|
|
23
23
|
] }),
|
|
24
|
-
/* @__PURE__ */ l("div", { className:
|
|
25
|
-
a.author.username && /* @__PURE__ */ r(
|
|
26
|
-
/* @__PURE__ */ r(s, { image:
|
|
24
|
+
/* @__PURE__ */ l("div", { className: t.infoContainer, children: [
|
|
25
|
+
a.author.username && /* @__PURE__ */ r(i, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: a.author.username }),
|
|
26
|
+
e && /* @__PURE__ */ r(s, { image: e.image, name: e.name, link: e.link })
|
|
27
27
|
] })
|
|
28
28
|
] });
|
|
29
29
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),f=require("../../../../components/Typography/Typography.cjs.js"),m=require("../../../../components/PlayButton/PlayButton.cjs.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),f=require("../../../../components/Typography/Typography.cjs.js"),m=require("../../../../components/PlayButton/PlayButton.cjs.js"),y=require("../../../../utils/cn/cn.cjs.js"),p=require("../Product/Product.cjs.js"),t=require("./videoCard.module.css.cjs.js"),g=({product:a,review:c,background:d})=>{const[r,o]=s.useState(!1),n=s.useRef(null),u=s.useRef(null);return s.useEffect(()=>{const i=new IntersectionObserver(([l])=>{!l.isIntersecting&&r&&o(!1)},{threshold:.2});return u.current&&i.observe(u.current),()=>i.disconnect()},[r]),s.useEffect(()=>{!r&&n.current&&(n.current.pause(),n.current.currentTime=0)},[r]),e.jsxs("div",{className:t.default.root,ref:u,onClick:()=>r?o(!1):void 0,style:{backgroundImage:`url(${d.preview})`},children:[e.jsxs("div",{className:t.default.mediaContainer,children:[e.jsx("video",{ref:n,src:d.url,playsInline:!0,controls:!1,muted:!0,loop:!0,className:y.cn(t.default.media,!r&&t.default.mediaHidden)}),!r&&e.jsx("div",{className:t.default.playButton,children:e.jsx(m.PlayButton,{onClick:i=>{var l;i.stopPropagation(),(l=n.current)==null||l.play(),o(!0)}})})]}),e.jsxs("div",{className:t.default.infoContainer,children:[c.author.username&&e.jsx(f.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:c.author.username}),a&&e.jsx(p.Product,{image:a.image,name:a.name,link:a.link})]})]})};exports.VideoCard=g;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { useState as p, useRef as
|
|
3
|
+
import { useState as p, useRef as f, useEffect as d } from "react";
|
|
4
4
|
import { Typography as h } from "../../../../components/Typography/Typography.es.js";
|
|
5
5
|
import { PlayButton as g } from "../../../../components/PlayButton/PlayButton.es.js";
|
|
6
6
|
import { cn as v } from "../../../../utils/cn/cn.es.js";
|
|
7
7
|
import { Product as y } from "../Product/Product.es.js";
|
|
8
8
|
import r from "./videoCard.module.css.es.js";
|
|
9
|
-
const R = ({ product:
|
|
10
|
-
const [e, o] = p(!1), t =
|
|
11
|
-
return
|
|
12
|
-
const
|
|
13
|
-
([
|
|
14
|
-
!
|
|
9
|
+
const R = ({ product: i, review: c, background: u }) => {
|
|
10
|
+
const [e, o] = p(!1), t = f(null), l = f(null);
|
|
11
|
+
return d(() => {
|
|
12
|
+
const a = new IntersectionObserver(
|
|
13
|
+
([s]) => {
|
|
14
|
+
!s.isIntersecting && e && o(!1);
|
|
15
15
|
},
|
|
16
16
|
{ threshold: 0.2 }
|
|
17
17
|
);
|
|
18
|
-
return l.current &&
|
|
19
|
-
}, [e]),
|
|
18
|
+
return l.current && a.observe(l.current), () => a.disconnect();
|
|
19
|
+
}, [e]), d(() => {
|
|
20
20
|
!e && t.current && (t.current.pause(), t.current.currentTime = 0);
|
|
21
21
|
}, [e]), /* @__PURE__ */ m(
|
|
22
22
|
"div",
|
|
@@ -42,16 +42,16 @@ const R = ({ product: s, review: c, background: u }) => {
|
|
|
42
42
|
!e && /* @__PURE__ */ n("div", { className: r.playButton, children: /* @__PURE__ */ n(
|
|
43
43
|
g,
|
|
44
44
|
{
|
|
45
|
-
onClick: (
|
|
46
|
-
var
|
|
47
|
-
|
|
45
|
+
onClick: (a) => {
|
|
46
|
+
var s;
|
|
47
|
+
a.stopPropagation(), (s = t.current) == null || s.play(), o(!0);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
) })
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ m("div", { className: r.infoContainer, children: [
|
|
53
53
|
c.author.username && /* @__PURE__ */ n(h, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: c.author.username }),
|
|
54
|
-
/* @__PURE__ */ n(y, { image:
|
|
54
|
+
i && /* @__PURE__ */ n(y, { image: i.image, name: i.name, link: i.link })
|
|
55
55
|
] })
|
|
56
56
|
]
|
|
57
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),n=require("./components/ProtocolTags/ProtocolTags.cjs.js"),t=require("./yourProtocol.module.css.cjs.js"),d=({title:i,image:r,tags:s,callbackView:o})=>e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.content,children:[e.jsx(a.HighlightedTitle,{title:i,className:t.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(n.ProtocolTags,{tags:s}),o&&e.jsx("div",{className:t.default.callback,children:e.jsx(l.Callback,{title:o.title,description:o.description??"",price:o.price??"",image:o.image,button:{href:o.signupUrl??""},size:"sm"})})]}),e.jsx("img",{src:r,alt:"Your Protocol",className:c.cn(t.default.image,t.default.desktop),width:481,height:640})]})});exports.YourProtocol=d;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Callback as
|
|
3
|
-
import { HighlightedTitle as
|
|
1
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Callback as a } from "../../components/Callback/Callback.es.js";
|
|
3
|
+
import { HighlightedTitle as l } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
4
|
import { cn as n } from "../../utils/cn/cn.es.js";
|
|
5
|
-
import { ProtocolTags as
|
|
6
|
-
import
|
|
7
|
-
const N = ({ title: e, image: s, tags: m, callbackView:
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
|
|
5
|
+
import { ProtocolTags as c } from "./components/ProtocolTags/ProtocolTags.es.js";
|
|
6
|
+
import t from "./yourProtocol.module.css.es.js";
|
|
7
|
+
const N = ({ title: e, image: s, tags: m, callbackView: i }) => /* @__PURE__ */ o("section", { className: t.root, children: /* @__PURE__ */ r("div", { className: t.container, children: [
|
|
8
|
+
/* @__PURE__ */ r("div", { className: t.content, children: [
|
|
9
|
+
/* @__PURE__ */ o(
|
|
10
|
+
l,
|
|
11
11
|
{
|
|
12
12
|
title: e,
|
|
13
|
-
className:
|
|
13
|
+
className: t.title,
|
|
14
14
|
defaultVariant: "displaySm",
|
|
15
15
|
mobileVariant: "headingXl"
|
|
16
16
|
}
|
|
17
17
|
),
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/* @__PURE__ */ o(c, { tags: m }),
|
|
19
|
+
i && /* @__PURE__ */ o("div", { className: t.callback, children: /* @__PURE__ */ o(
|
|
20
|
+
a,
|
|
21
21
|
{
|
|
22
|
-
title:
|
|
23
|
-
description:
|
|
24
|
-
price:
|
|
25
|
-
image:
|
|
22
|
+
title: i.title,
|
|
23
|
+
description: i.description ?? "",
|
|
24
|
+
price: i.price ?? "",
|
|
25
|
+
image: i.image,
|
|
26
26
|
button: {
|
|
27
|
-
href:
|
|
27
|
+
href: i.signupUrl ?? ""
|
|
28
28
|
},
|
|
29
29
|
size: "sm"
|
|
30
30
|
}
|
|
31
31
|
) })
|
|
32
32
|
] }),
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ o(
|
|
34
34
|
"img",
|
|
35
35
|
{
|
|
36
36
|
src: s,
|
|
37
37
|
alt: "Your Protocol",
|
|
38
|
-
className: n(
|
|
38
|
+
className: n(t.image, t.desktop),
|
|
39
39
|
width: 481,
|
|
40
40
|
height: 640
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
|
-
] });
|
|
43
|
+
] }) });
|
|
44
44
|
export {
|
|
45
45
|
N as YourProtocol
|
|
46
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="yourProtocol-module__root___Q35lO",t="yourProtocol-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="yourProtocol-module__root___Q35lO",t="yourProtocol-module__container___-p0rE",e="yourProtocol-module__content___mMf6R",_="yourProtocol-module__title___xNPOR",l="yourProtocol-module__image___fVaOZ",c="yourProtocol-module__callback___bvu49",r="yourProtocol-module__desktop___pl-rW",n={root:o,container:t,content:e,title:_,image:l,callback:c,desktop:r};exports.callback=c;exports.container=t;exports.content=e;exports.default=n;exports.desktop=r;exports.image=l;exports.root=o;exports.title=_;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
const o = "yourProtocol-module__root___Q35lO", t = "yourProtocol-
|
|
1
|
+
const o = "yourProtocol-module__root___Q35lO", t = "yourProtocol-module__container___-p0rE", _ = "yourProtocol-module__content___mMf6R", c = "yourProtocol-module__title___xNPOR", l = "yourProtocol-module__image___fVaOZ", e = "yourProtocol-module__callback___bvu49", r = "yourProtocol-module__desktop___pl-rW", n = {
|
|
2
2
|
root: o,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
container: t,
|
|
4
|
+
content: _,
|
|
5
|
+
title: c,
|
|
5
6
|
image: l,
|
|
6
|
-
callback:
|
|
7
|
-
desktop:
|
|
7
|
+
callback: e,
|
|
8
|
+
desktop: r
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
t as
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
e as callback,
|
|
12
|
+
t as container,
|
|
13
|
+
_ as content,
|
|
14
|
+
n as default,
|
|
15
|
+
r as desktop,
|
|
14
16
|
l as image,
|
|
15
17
|
o as root,
|
|
16
|
-
|
|
18
|
+
c as title
|
|
17
19
|
};
|