@zenpatient-org/healthspan-marketing-ui 0.1.147 → 0.1.151

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.
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),R=require("../../node_modules/@gsap/react/src/index.cjs.js"),i=require("../../node_modules/gsap/index.cjs.js"),y=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),W=require("react"),z=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),B=require("../../utils/debounce.cjs.js"),t=require("./expandingDetails.module.css.cjs.js");i.gsap.registerPlugin(y.ScrollTrigger);const L=({colorScheme:f,label:p,title:w,sections:$})=>{const s=W.useRef(null);return R.useGSAP(()=>{if(!s.current)return;const d=()=>{var x;i.gsap.killTweensOf("*"),y.ScrollTrigger.getAll().forEach(e=>e.kill());const o=i.gsap.utils.toArray('[data-scroll-id="section"]'),r=(x=s.current)==null?void 0:x.querySelector('[data-scroll-id="sections"]');if(!r)return;const A=i.gsap.matchMedia(),h=i.gsap.timeline({scrollTrigger:{trigger:s.current,start:"top top",end:()=>`+=${o.length*500}`,scrub:1,markers:!1,pin:!0}}),m=r==null?void 0:r.querySelector('[data-scroll-id="heading"]');if(!m)return;const S=1366;o.forEach((e,q)=>{A.add({isMobile:`(max-width: ${S}px)`,isDesktop:`(min-width: ${S+1}px)`},D=>{var b,P,j,T,v,E,H,N,k,V;const c=e==null?void 0:e.querySelector('[data-scroll-id="heading"]'),a=e==null?void 0:e.querySelector('[data-scroll-id="content"]');if(!c||!a)return;const g=D.conditions,M=g==null?void 0:g.isMobile,_=g==null?void 0:g.isDesktop;i.gsap.set(r==null?void 0:r.querySelectorAll('[data-scroll-id="section"]'),{height:m.offsetHeight||0}),i.gsap.set(r==null?void 0:r.querySelectorAll('[data-scroll-id="protocol"]'),{scale:.5,yPercent:0}),i.gsap.set(r==null?void 0:r.querySelectorAll('[data-scroll-id="image-circle"]'),{scale:.5,yPercent:5}),_&&(h.to(e,{height:c.offsetHeight+a.offsetHeight}).to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:2,yPercent:50},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:2,yPercent:50},"<").to(a,{height:a.offsetHeight},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:1},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:1,yPercent:5},"<"),q<o.length-1&&h.to(e,{height:c.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:c.offsetHeight+a.offsetHeight},"<").to(((b=e.nextElementSibling)==null?void 0:b.querySelector('[data-scroll-id="section-title"]'))||null,{scale:2,yPercent:100},"<").to(((P=e.nextElementSibling)==null?void 0:P.querySelector('[data-scroll-id="section-index"]'))||null,{scale:2,yPercent:100},"<").to(((j=e.nextElementSibling)==null?void 0:j.querySelector('[data-scroll-id="content"]'))||null,{height:a.offsetHeight,yPercent:0},"<").to(((T=e.nextElementSibling)==null?void 0:T.querySelector('[data-scroll-id="protocol"]'))||null,{scale:1},"<").to(((v=e.nextElementSibling)==null?void 0:v.querySelector('[data-scroll-id="image-circle"]'))||null,{scale:1,yPercent:5},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:1,yPercent:-15},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:1,yPercent:-15},"<").to(a,{height:0,yPercent:0},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:0,yPercent:200},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:0,yPercent:200},"<")),M&&(h.to(e,{height:c.offsetHeight+a.offsetHeight}).to(a,{height:a.offsetHeight},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:1},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:1,yPercent:5},"<"),q<o.length-1&&h.to(e,{height:c.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:c.offsetHeight+a.offsetHeight},"<").to(((E=e.nextElementSibling)==null?void 0:E.querySelector('[data-scroll-id="section-title"]'))||null,{scale:1,yPercent:100},"<").to(((H=e.nextElementSibling)==null?void 0:H.querySelector('[data-scroll-id="section-index"]'))||null,{scale:1,yPercent:100},"<").to(((N=e.nextElementSibling)==null?void 0:N.querySelector('[data-scroll-id="content"]'))||null,{height:a.offsetHeight,yPercent:0},"<").to(((k=e.nextElementSibling)==null?void 0:k.querySelector('[data-scroll-id="protocol"]'))||null,{scale:1},"<").to(((V=e.nextElementSibling)==null?void 0:V.querySelector('[data-scroll-id="image-circle"]'))||null,{scale:1,yPercent:5},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:1,yPercent:-15},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:1,yPercent:-15},"<").to(a,{height:0,yPercent:0},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:0,yPercent:200},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:0,yPercent:200},"<"))})})};d();const u=B.default(()=>{d()},200);return window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u),y.ScrollTrigger.getAll().forEach(o=>o.kill()),i.gsap.killTweensOf("*")}},{scope:s,dependencies:[s]}),l.jsx("div",{ref:s,className:`${t.default.root} ${t.default[f]}`,children:l.jsxs("div",{className:t.default.expandingDetailsWrapper,children:[l.jsxs("header",{"data-scroll-id":"header",className:t.default.header,children:[p&&l.jsx(n.Typography,{as:"div",defaultVariant:"labelSm",emphasis:!0,className:t.default.label,children:p}),l.jsx(z.HighlightedTitle,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:f,className:t.default.title,title:w})]}),l.jsx("div",{"data-scroll-id":"sections",className:t.default.sections,children:$.map((d,u)=>l.jsxs("div",{id:`section-${u+1}`,"data-scroll-id":"section",className:t.default.section,children:[l.jsxs("div",{"data-scroll-id":"heading",className:t.default.heading,children:[l.jsx("div",{"data-scroll-id":"section-title",className:t.default.sectionTitleWrapper,children:l.jsx(n.Typography,{as:"h3",defaultVariant:"headingSm",className:t.default.sectionTitle,children:d.title})}),l.jsx("div",{"data-scroll-id":"section-index",className:t.default.sectionIndexWrapper,children:l.jsxs(n.Typography,{as:"p",defaultVariant:"headingSm",className:t.default.sectionIndex,children:["(",String(u+1).padStart(2,"0"),")"]})})]}),l.jsxs("div",{"data-scroll-id":"content",className:t.default.content,children:[l.jsxs("div",{"data-scroll-id":"protocol",className:t.default.protocolWrapper,children:[d.subtitle&&l.jsx(n.Typography,{as:"h4",defaultVariant:"headingLg",mobileVariant:"headingXs",children:d.subtitle}),l.jsx(n.Typography,{className:t.default.description,as:"div",defaultVariant:"bodyMd",mobileVariant:"bodyXs",children:d.description})]}),l.jsx("div",{"data-scroll-id":"image-circle",className:t.default.imageCircle,children:l.jsx("img",{src:d.image,alt:d.title})})]}),l.jsx("div",{className:t.default.leftBorder}),l.jsx("div",{className:t.default.rightBorder})]},d.title))})]})})};exports.ExpandingDetails=L;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),W=require("../../node_modules/@gsap/react/src/index.cjs.js"),s=require("../../node_modules/gsap/index.cjs.js"),z=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),$=require("react"),B=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),h=require("../../components/Typography/Typography.cjs.js"),L=require("../../utils/debounce.cjs.js"),t=require("./expandingDetails.module.css.cjs.js");s.gsap.registerPlugin(z.ScrollTrigger);const X=({colorScheme:y,label:m,title:D,sections:w})=>{const o=$.useRef(null),i=$.useRef({});return W.useGSAP(()=>{if(!o.current)return;const d=()=>{var q;i.current.timeline&&i.current.timeline.kill(),i.current.matchMedia&&i.current.matchMedia.kill();const f=s.gsap.utils.toArray('[data-scroll-id="section"]'),r=(q=o.current)==null?void 0:q.querySelector('[data-scroll-id="sections"]');if(!r)return;const p=s.gsap.matchMedia();i.current.matchMedia=p;const g=s.gsap.timeline({scrollTrigger:{trigger:o.current,start:"top top",end:()=>`+=${f.length*500}`,scrub:1,markers:!1,pin:!0}});i.current.timeline=g;const S=r==null?void 0:r.querySelector('[data-scroll-id="heading"]');if(!S)return;const x=1366;f.forEach((e,b)=>{p.add({isMobile:`(max-width: ${x}px)`,isDesktop:`(min-width: ${x+1}px)`},R=>{var P,j,v,H,N,E,T,M,k,V;const c=e==null?void 0:e.querySelector('[data-scroll-id="heading"]'),a=e==null?void 0:e.querySelector('[data-scroll-id="content"]');if(!c||!a)return;const n=R.conditions,A=n==null?void 0:n.isMobile,_=n==null?void 0:n.isDesktop;s.gsap.set(r==null?void 0:r.querySelectorAll('[data-scroll-id="section"]'),{height:S.offsetHeight||0}),s.gsap.set(r==null?void 0:r.querySelectorAll('[data-scroll-id="protocol"]'),{scale:.5,yPercent:0}),s.gsap.set(r==null?void 0:r.querySelectorAll('[data-scroll-id="image-circle"]'),{scale:.5,yPercent:5}),_&&(g.to(e,{height:c.offsetHeight+a.offsetHeight}).to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:2,yPercent:50},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:2,yPercent:50},"<").to(a,{height:a.offsetHeight},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:1},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:1,yPercent:5},"<"),b<f.length-1&&g.to(e,{height:c.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:c.offsetHeight+a.offsetHeight},"<").to(((P=e.nextElementSibling)==null?void 0:P.querySelector('[data-scroll-id="section-title"]'))||null,{scale:2,yPercent:100},"<").to(((j=e.nextElementSibling)==null?void 0:j.querySelector('[data-scroll-id="section-index"]'))||null,{scale:2,yPercent:100},"<").to(((v=e.nextElementSibling)==null?void 0:v.querySelector('[data-scroll-id="content"]'))||null,{height:a.offsetHeight,yPercent:0},"<").to(((H=e.nextElementSibling)==null?void 0:H.querySelector('[data-scroll-id="protocol"]'))||null,{scale:1},"<").to(((N=e.nextElementSibling)==null?void 0:N.querySelector('[data-scroll-id="image-circle"]'))||null,{scale:1,yPercent:5},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:1,yPercent:-15},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:1,yPercent:-15},"<").to(a,{height:0,yPercent:0},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:0,yPercent:200},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:0,yPercent:200},"<")),A&&(g.to(e,{height:c.offsetHeight+a.offsetHeight}).to(a,{height:a.offsetHeight},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:1},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:1,yPercent:5},"<"),b<f.length-1&&g.to(e,{height:c.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:c.offsetHeight+a.offsetHeight},"<").to(((E=e.nextElementSibling)==null?void 0:E.querySelector('[data-scroll-id="section-title"]'))||null,{scale:1,yPercent:100},"<").to(((T=e.nextElementSibling)==null?void 0:T.querySelector('[data-scroll-id="section-index"]'))||null,{scale:1,yPercent:100},"<").to(((M=e.nextElementSibling)==null?void 0:M.querySelector('[data-scroll-id="content"]'))||null,{height:a.offsetHeight,yPercent:0},"<").to(((k=e.nextElementSibling)==null?void 0:k.querySelector('[data-scroll-id="protocol"]'))||null,{scale:1},"<").to(((V=e.nextElementSibling)==null?void 0:V.querySelector('[data-scroll-id="image-circle"]'))||null,{scale:1,yPercent:5},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:1,yPercent:-15},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:1,yPercent:-15},"<").to(a,{height:0,yPercent:0},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:0,yPercent:200},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:0,yPercent:200},"<"))})})};d();const u=L.default(()=>{d()},200);return window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u),i.current.timeline&&i.current.timeline.kill(),i.current.matchMedia&&i.current.matchMedia.kill()}},{scope:o,dependencies:[o]}),l.jsx("div",{ref:o,className:`${t.default.root} ${t.default[y]}`,children:l.jsxs("div",{className:t.default.expandingDetailsWrapper,children:[l.jsxs("header",{"data-scroll-id":"header",className:t.default.header,children:[m&&l.jsx(h.Typography,{as:"div",defaultVariant:"labelSm",emphasis:!0,className:t.default.label,children:m}),l.jsx(B.HighlightedTitle,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:y,className:t.default.title,title:D})]}),l.jsx("div",{"data-scroll-id":"sections",className:t.default.sections,children:w.map((d,u)=>l.jsxs("div",{id:`section-${u+1}`,"data-scroll-id":"section",className:t.default.section,children:[l.jsxs("div",{"data-scroll-id":"heading",className:t.default.heading,children:[l.jsx("div",{"data-scroll-id":"section-title",className:t.default.sectionTitleWrapper,children:l.jsx(h.Typography,{as:"h3",defaultVariant:"headingSm",className:t.default.sectionTitle,children:d.title})}),l.jsx("div",{"data-scroll-id":"section-index",className:t.default.sectionIndexWrapper,children:l.jsxs(h.Typography,{as:"p",defaultVariant:"headingSm",className:t.default.sectionIndex,children:["(",String(u+1).padStart(2,"0"),")"]})})]}),l.jsxs("div",{"data-scroll-id":"content",className:t.default.content,children:[l.jsxs("div",{"data-scroll-id":"protocol",className:t.default.protocolWrapper,children:[d.subtitle&&l.jsx(h.Typography,{as:"h4",defaultVariant:"headingLg",mobileVariant:"headingXs",children:d.subtitle}),l.jsx(h.Typography,{className:t.default.description,as:"div",defaultVariant:"bodyMd",mobileVariant:"bodyXs",children:d.description})]}),l.jsx("div",{"data-scroll-id":"image-circle",className:t.default.imageCircle,children:l.jsx("img",{src:d.image,alt:d.title})})]}),l.jsx("div",{className:t.default.leftBorder}),l.jsx("div",{className:t.default.rightBorder})]},d.title))})]})})};exports.ExpandingDetails=X;
@@ -1,56 +1,60 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
3
  import { useGSAP as L } from "../../node_modules/@gsap/react/src/index.es.js";
4
- import { gsap as i } from "../../node_modules/gsap/index.es.js";
5
- import { ScrollTrigger as y } from "../../node_modules/gsap/ScrollTrigger.es.js";
6
- import { useRef as R } from "react";
7
- import { HighlightedTitle as X } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
8
- import { Typography as m } from "../../components/Typography/Typography.es.js";
9
- import j from "../../utils/debounce.es.js";
4
+ import { gsap as s } from "../../node_modules/gsap/index.es.js";
5
+ import { ScrollTrigger as X } from "../../node_modules/gsap/ScrollTrigger.es.js";
6
+ import { useRef as A } from "react";
7
+ import { HighlightedTitle as j } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
8
+ import { Typography as u } from "../../components/Typography/Typography.es.js";
9
+ import I from "../../utils/debounce.es.js";
10
10
  import l from "./expandingDetails.module.css.es.js";
11
- i.registerPlugin(y);
12
- const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
13
- const s = R(null);
11
+ s.registerPlugin(X);
12
+ const _ = ({ colorScheme: y, label: p, title: D, sections: W }) => {
13
+ const n = A(null), i = A({});
14
14
  return L(
15
15
  () => {
16
- if (!s.current) return;
16
+ if (!n.current) return;
17
17
  const d = () => {
18
- var b;
19
- i.killTweensOf("*"), y.getAll().forEach((e) => e.kill());
20
- const h = i.utils.toArray('[data-scroll-id="section"]'), r = (b = s.current) == null ? void 0 : b.querySelector('[data-scroll-id="sections"]');
18
+ var x;
19
+ i.current.timeline && i.current.timeline.kill(), i.current.matchMedia && i.current.matchMedia.kill();
20
+ const f = s.utils.toArray('[data-scroll-id="section"]'), r = (x = n.current) == null ? void 0 : x.querySelector('[data-scroll-id="sections"]');
21
21
  if (!r) return;
22
- const D = i.matchMedia(), u = i.timeline({
22
+ const S = s.matchMedia();
23
+ i.current.matchMedia = S;
24
+ const g = s.timeline({
23
25
  scrollTrigger: {
24
- trigger: s.current,
26
+ trigger: n.current,
25
27
  start: "top top",
26
- end: () => `+=${h.length * 500}`,
28
+ end: () => `+=${f.length * 500}`,
27
29
  scrub: 1,
28
30
  markers: !1,
29
31
  pin: !0
30
32
  }
31
- }), S = r == null ? void 0 : r.querySelector('[data-scroll-id="heading"]');
32
- if (!S) return;
33
- const q = 1366;
34
- h.forEach((e, x) => {
35
- D.add(
33
+ });
34
+ i.current.timeline = g;
35
+ const q = r == null ? void 0 : r.querySelector('[data-scroll-id="heading"]');
36
+ if (!q) return;
37
+ const b = 1366;
38
+ f.forEach((e, P) => {
39
+ S.add(
36
40
  {
37
- isMobile: `(max-width: ${q}px)`,
38
- isDesktop: `(min-width: ${q + 1}px)`
41
+ isMobile: `(max-width: ${b}px)`,
42
+ isDesktop: `(min-width: ${b + 1}px)`
39
43
  },
40
- (W) => {
41
- var P, v, E, N, H, k, T, V, w, A;
44
+ (R) => {
45
+ var v, N, E, H, M, k, V, T, w, $;
42
46
  const c = e == null ? void 0 : e.querySelector('[data-scroll-id="heading"]'), t = e == null ? void 0 : e.querySelector('[data-scroll-id="content"]');
43
47
  if (!c || !t) return;
44
- const g = W.conditions, z = g == null ? void 0 : g.isMobile, B = g == null ? void 0 : g.isDesktop;
45
- i.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="section"]'), {
46
- height: S.offsetHeight || 0
47
- }), i.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="protocol"]'), {
48
+ const h = R.conditions, z = h == null ? void 0 : h.isMobile, B = h == null ? void 0 : h.isDesktop;
49
+ s.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="section"]'), {
50
+ height: q.offsetHeight || 0
51
+ }), s.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="protocol"]'), {
48
52
  scale: 0.5,
49
53
  yPercent: 0
50
- }), i.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="image-circle"]'), {
54
+ }), s.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="image-circle"]'), {
51
55
  scale: 0.5,
52
56
  yPercent: 5
53
- }), B && (u.to(e, { height: c.offsetHeight + t.offsetHeight }).to(
57
+ }), B && (g.to(e, { height: c.offsetHeight + t.offsetHeight }).to(
54
58
  e == null ? void 0 : e.querySelector('[data-scroll-id="section-title"]'),
55
59
  { scale: 2, yPercent: 50 },
56
60
  "<"
@@ -62,18 +66,18 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
62
66
  e == null ? void 0 : e.querySelector('[data-scroll-id="image-circle"]'),
63
67
  { scale: 1, yPercent: 5 },
64
68
  "<"
65
- ), x < h.length - 1 && u.to(e, { height: c.offsetHeight, delay: 0.5 }).to(
69
+ ), P < f.length - 1 && g.to(e, { height: c.offsetHeight, delay: 0.5 }).to(
66
70
  e.nextElementSibling,
67
71
  { height: c.offsetHeight + t.offsetHeight },
68
72
  "<"
69
73
  ).to(
70
- ((P = e.nextElementSibling) == null ? void 0 : P.querySelector(
74
+ ((v = e.nextElementSibling) == null ? void 0 : v.querySelector(
71
75
  '[data-scroll-id="section-title"]'
72
76
  )) || null,
73
77
  { scale: 2, yPercent: 100 },
74
78
  "<"
75
79
  ).to(
76
- ((v = e.nextElementSibling) == null ? void 0 : v.querySelector(
80
+ ((N = e.nextElementSibling) == null ? void 0 : N.querySelector(
77
81
  '[data-scroll-id="section-index"]'
78
82
  )) || null,
79
83
  { scale: 2, yPercent: 100 },
@@ -83,11 +87,11 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
83
87
  { height: t.offsetHeight, yPercent: 0 },
84
88
  "<"
85
89
  ).to(
86
- ((N = e.nextElementSibling) == null ? void 0 : N.querySelector('[data-scroll-id="protocol"]')) || null,
90
+ ((H = e.nextElementSibling) == null ? void 0 : H.querySelector('[data-scroll-id="protocol"]')) || null,
87
91
  { scale: 1 },
88
92
  "<"
89
93
  ).to(
90
- ((H = e.nextElementSibling) == null ? void 0 : H.querySelector(
94
+ ((M = e.nextElementSibling) == null ? void 0 : M.querySelector(
91
95
  '[data-scroll-id="image-circle"]'
92
96
  )) || null,
93
97
  { scale: 1, yPercent: 5 },
@@ -108,11 +112,11 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
108
112
  e == null ? void 0 : e.querySelector('[data-scroll-id="image-circle"]'),
109
113
  { scale: 0, yPercent: 200 },
110
114
  "<"
111
- )), z && (u.to(e, { height: c.offsetHeight + t.offsetHeight }).to(t, { height: t.offsetHeight }, "<").to(e == null ? void 0 : e.querySelector('[data-scroll-id="protocol"]'), { scale: 1 }, "<").to(
115
+ )), z && (g.to(e, { height: c.offsetHeight + t.offsetHeight }).to(t, { height: t.offsetHeight }, "<").to(e == null ? void 0 : e.querySelector('[data-scroll-id="protocol"]'), { scale: 1 }, "<").to(
112
116
  e == null ? void 0 : e.querySelector('[data-scroll-id="image-circle"]'),
113
117
  { scale: 1, yPercent: 5 },
114
118
  "<"
115
- ), x < h.length - 1 && u.to(e, { height: c.offsetHeight, delay: 0.5 }).to(
119
+ ), P < f.length - 1 && g.to(e, { height: c.offsetHeight, delay: 0.5 }).to(
116
120
  e.nextElementSibling,
117
121
  { height: c.offsetHeight + t.offsetHeight },
118
122
  "<"
@@ -123,13 +127,13 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
123
127
  { scale: 1, yPercent: 100 },
124
128
  "<"
125
129
  ).to(
126
- ((T = e.nextElementSibling) == null ? void 0 : T.querySelector(
130
+ ((V = e.nextElementSibling) == null ? void 0 : V.querySelector(
127
131
  '[data-scroll-id="section-index"]'
128
132
  )) || null,
129
133
  { scale: 1, yPercent: 100 },
130
134
  "<"
131
135
  ).to(
132
- ((V = e.nextElementSibling) == null ? void 0 : V.querySelector('[data-scroll-id="content"]')) || null,
136
+ ((T = e.nextElementSibling) == null ? void 0 : T.querySelector('[data-scroll-id="content"]')) || null,
133
137
  { height: t.offsetHeight, yPercent: 0 },
134
138
  "<"
135
139
  ).to(
@@ -137,7 +141,7 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
137
141
  { scale: 1 },
138
142
  "<"
139
143
  ).to(
140
- ((A = e.nextElementSibling) == null ? void 0 : A.querySelector(
144
+ (($ = e.nextElementSibling) == null ? void 0 : $.querySelector(
141
145
  '[data-scroll-id="image-circle"]'
142
146
  )) || null,
143
147
  { scale: 1, yPercent: 5 },
@@ -164,52 +168,52 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
164
168
  });
165
169
  };
166
170
  d();
167
- const n = j(() => {
171
+ const m = I(() => {
168
172
  d();
169
173
  }, 200);
170
- return window.addEventListener("resize", n), () => {
171
- window.removeEventListener("resize", n), y.getAll().forEach((h) => h.kill()), i.killTweensOf("*");
174
+ return window.addEventListener("resize", m), () => {
175
+ window.removeEventListener("resize", m), i.current.timeline && i.current.timeline.kill(), i.current.matchMedia && i.current.matchMedia.kill();
172
176
  };
173
177
  },
174
178
  {
175
- scope: s,
176
- dependencies: [s]
179
+ scope: n,
180
+ dependencies: [n]
177
181
  }
178
- ), /* @__PURE__ */ a("div", { ref: s, className: `${l.root} ${l[f]}`, children: /* @__PURE__ */ o("div", { className: l.expandingDetailsWrapper, children: [
182
+ ), /* @__PURE__ */ a("div", { ref: n, className: `${l.root} ${l[y]}`, children: /* @__PURE__ */ o("div", { className: l.expandingDetailsWrapper, children: [
179
183
  /* @__PURE__ */ o("header", { "data-scroll-id": "header", className: l.header, children: [
180
- p && /* @__PURE__ */ a(m, { as: "div", defaultVariant: "labelSm", emphasis: !0, className: l.label, children: p }),
184
+ p && /* @__PURE__ */ a(u, { as: "div", defaultVariant: "labelSm", emphasis: !0, className: l.label, children: p }),
181
185
  /* @__PURE__ */ a(
182
- X,
186
+ j,
183
187
  {
184
188
  as: "div",
185
189
  defaultVariant: "displayMd",
186
190
  mobileVariant: "headingXl",
187
- colorScheme: f,
191
+ colorScheme: y,
188
192
  className: l.title,
189
- title: M
193
+ title: D
190
194
  }
191
195
  )
192
196
  ] }),
193
- /* @__PURE__ */ a("div", { "data-scroll-id": "sections", className: l.sections, children: $.map((d, n) => /* @__PURE__ */ o(
197
+ /* @__PURE__ */ a("div", { "data-scroll-id": "sections", className: l.sections, children: W.map((d, m) => /* @__PURE__ */ o(
194
198
  "div",
195
199
  {
196
- id: `section-${n + 1}`,
200
+ id: `section-${m + 1}`,
197
201
  "data-scroll-id": "section",
198
202
  className: l.section,
199
203
  children: [
200
204
  /* @__PURE__ */ o("div", { "data-scroll-id": "heading", className: l.heading, children: [
201
- /* @__PURE__ */ a("div", { "data-scroll-id": "section-title", className: l.sectionTitleWrapper, children: /* @__PURE__ */ a(m, { as: "h3", defaultVariant: "headingSm", className: l.sectionTitle, children: d.title }) }),
202
- /* @__PURE__ */ a("div", { "data-scroll-id": "section-index", className: l.sectionIndexWrapper, children: /* @__PURE__ */ o(m, { as: "p", defaultVariant: "headingSm", className: l.sectionIndex, children: [
205
+ /* @__PURE__ */ a("div", { "data-scroll-id": "section-title", className: l.sectionTitleWrapper, children: /* @__PURE__ */ a(u, { as: "h3", defaultVariant: "headingSm", className: l.sectionTitle, children: d.title }) }),
206
+ /* @__PURE__ */ a("div", { "data-scroll-id": "section-index", className: l.sectionIndexWrapper, children: /* @__PURE__ */ o(u, { as: "p", defaultVariant: "headingSm", className: l.sectionIndex, children: [
203
207
  "(",
204
- String(n + 1).padStart(2, "0"),
208
+ String(m + 1).padStart(2, "0"),
205
209
  ")"
206
210
  ] }) })
207
211
  ] }),
208
212
  /* @__PURE__ */ o("div", { "data-scroll-id": "content", className: l.content, children: [
209
213
  /* @__PURE__ */ o("div", { "data-scroll-id": "protocol", className: l.protocolWrapper, children: [
210
- d.subtitle && /* @__PURE__ */ a(m, { as: "h4", defaultVariant: "headingLg", mobileVariant: "headingXs", children: d.subtitle }),
214
+ d.subtitle && /* @__PURE__ */ a(u, { as: "h4", defaultVariant: "headingLg", mobileVariant: "headingXs", children: d.subtitle }),
211
215
  /* @__PURE__ */ a(
212
- m,
216
+ u,
213
217
  {
214
218
  className: l.description,
215
219
  as: "div",
@@ -230,5 +234,5 @@ const Z = ({ colorScheme: f, label: p, title: M, sections: $ }) => {
230
234
  ] }) });
231
235
  };
232
236
  export {
233
- Z as ExpandingDetails
237
+ _ as ExpandingDetails
234
238
  };
@@ -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"),o=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),t=require("./scrollingText.module.css.cjs.js"),i=({label:r,url:l})=>e.jsx("a",{href:l,className:t.default.label,children:e.jsx(n.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:r})}),a=({labels:r})=>e.jsx("section",{className:t.default.root,children:r.length>0&&e.jsx("div",{className:t.default.footer,children:e.jsx(o.InfiniteScroll,{items:r,renderItem:i})})});exports.ScrollingText=a;
@@ -0,0 +1,7 @@
1
+ export type TScrollingText = {
2
+ labels: ReadonlyArray<{
3
+ label: string;
4
+ url: string;
5
+ }>;
6
+ };
7
+ export declare const ScrollingText: ({ labels }: TScrollingText) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { Typography as o } from "../../components/Typography/Typography.es.js";
3
3
  import { InfiniteScroll as i } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
4
- import t from "./infiniteScrolle.module.css.es.js";
4
+ import t from "./scrollingText.module.css.es.js";
5
5
  const a = ({ label: r, url: l }) => /* @__PURE__ */ e("a", { href: l, className: t.label, children: /* @__PURE__ */ e(o, { defaultVariant: "labelMd", emphasis: !0, mobileVariant: "labelSm", weight: "regular", children: r }) }), d = ({ labels: r }) => /* @__PURE__ */ e("section", { className: t.root, children: r.length > 0 && /* @__PURE__ */ e("div", { className: t.footer, children: /* @__PURE__ */ e(i, { items: r, renderItem: a }) }) });
6
6
  export {
7
- d as InfiniteScrollModule
7
+ d as ScrollingText
8
8
  };
@@ -0,0 +1,2 @@
1
+ export { ScrollingText } from './ScrollingText';
2
+ export type { TScrollingText } from './ScrollingText';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="scrollingText-module__root___Ss51X",e="scrollingText-module__footer___jSdGU",l="scrollingText-module__label___a-lF4",t={root:o,footer:e,label:l};exports.default=t;exports.footer=e;exports.label=l;exports.root=o;
@@ -0,0 +1,11 @@
1
+ const o = "scrollingText-module__root___Ss51X", l = "scrollingText-module__footer___jSdGU", t = "scrollingText-module__label___a-lF4", e = {
2
+ root: o,
3
+ footer: l,
4
+ label: t
5
+ };
6
+ export {
7
+ e as default,
8
+ l as footer,
9
+ t as label,
10
+ o as root
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.147",
3
+ "version": "0.1.151",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -556,10 +556,10 @@
556
556
  "import": "./dist/modules/ScienceHero/ScienceHero.es.js",
557
557
  "require": "./dist/modules/ScienceHero/ScienceHero.cjs.js"
558
558
  },
559
- "./InfiniteScrollModule": {
560
- "types": "./dist/modules/InfiniteScrollModule/InfiniteScrollModule.d.ts",
561
- "import": "./dist/modules/InfiniteScrollModule/InfiniteScrollModule.es.js",
562
- "require": "./dist/modules/InfiniteScrollModule/InfiniteScrollModule.cjs.js"
559
+ "./ScrollingText": {
560
+ "types": "./dist/modules/ScrollingText/ScrollingText.d.ts",
561
+ "import": "./dist/modules/ScrollingText/ScrollingText.es.js",
562
+ "require": "./dist/modules/ScrollingText/ScrollingText.cjs.js"
563
563
  },
564
564
  "./Bubbles": {
565
565
  "types": "./dist/pageComponents/Bubbles/Bubbles.d.ts",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../components/Typography/Typography.cjs.js"),i=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),l=require("./infiniteScrolle.module.css.cjs.js"),o=({label:r,url:n})=>e.jsx("a",{href:n,className:l.default.label,children:e.jsx(t.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:r})}),a=({labels:r})=>e.jsx("section",{className:l.default.root,children:r.length>0&&e.jsx("div",{className:l.default.footer,children:e.jsx(i.InfiniteScroll,{items:r,renderItem:o})})});exports.InfiniteScrollModule=a;
@@ -1,7 +0,0 @@
1
- export type TInfiniteScrollModule = {
2
- labels: ReadonlyArray<{
3
- label: string;
4
- url: string;
5
- }>;
6
- };
7
- export declare const InfiniteScrollModule: ({ labels }: TInfiniteScrollModule) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { InfiniteScrollModule } from './InfiniteScrollModule';
2
- export type { TInfiniteScrollModule } from './InfiniteScrollModule';
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="infiniteScrolle-module__root___CZywa",e="infiniteScrolle-module__footer___3AoPY",l="infiniteScrolle-module__label___NrIGo",t={root:o,footer:e,label:l};exports.default=t;exports.footer=e;exports.label=l;exports.root=o;
@@ -1,11 +0,0 @@
1
- const o = "infiniteScrolle-module__root___CZywa", e = "infiniteScrolle-module__footer___3AoPY", l = "infiniteScrolle-module__label___NrIGo", t = {
2
- root: o,
3
- footer: e,
4
- label: l
5
- };
6
- export {
7
- t as default,
8
- e as footer,
9
- l as label,
10
- o as root
11
- };