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