@zenpatient-org/healthspan-marketing-ui 0.1.44 → 0.1.45

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 (25) hide show
  1. package/dist/components/AnchorLinks/AnchorLinks.cjs.js +1 -1
  2. package/dist/components/AnchorLinks/AnchorLinks.es.js +14 -6
  3. package/dist/components/AnchorLinks/types.d.ts +4 -0
  4. package/dist/components/FAQComponent/FAQComponent.cjs.js +1 -1
  5. package/dist/components/FAQComponent/FAQComponent.es.js +1 -1
  6. package/dist/components/FAQComponent/components/index.d.ts +1 -1
  7. package/dist/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -0
  8. package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/FAQComponentItem.es.js +4 -4
  9. package/dist/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +1 -0
  10. package/dist/components/FAQComponentItem/faqComponentItem.module.css.es.js +27 -0
  11. package/dist/healthspan-marketing-ui.css +1 -1
  12. package/dist/modules/TextBlockAnimated/TextBlockAnimated.cjs.js +1 -0
  13. package/dist/modules/TextBlockAnimated/TextBlockAnimated.es.js +54 -0
  14. package/dist/modules/TextBlockAnimated/index.d.ts +1 -0
  15. package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.cjs.js +1 -0
  16. package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.es.js +21 -0
  17. package/dist/node_modules/gsap/SplitText.cjs.js +9 -0
  18. package/dist/node_modules/gsap/SplitText.es.js +148 -0
  19. package/package.json +11 -1
  20. package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.cjs.js +0 -1
  21. package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +0 -1
  22. package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.es.js +0 -27
  23. /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/FAQComponentItem.d.ts +0 -0
  24. /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/index.d.ts +0 -0
  25. /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/types.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("./textBlockAnimated.module.css.cjs.js"),i=require("../../node_modules/gsap/index.cjs.js"),l=require("../../node_modules/gsap/SplitText.cjs.js"),u=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),d=require("../../node_modules/@gsap/react/src/index.cjs.js"),p=require("react"),s=require("../../components/Typography/Typography.cjs.js"),g=require("../../utils/cn/cn.cjs.js");i.gsap.registerPlugin(l.SplitText,u.ScrollTrigger);function m({label:a,body:n,colorScheme:c}){const t=p.useRef(null);return d.useGSAP(()=>{l.SplitText.create(t.current,{type:"words chars",className:e.default.bodyText,autoSplit:!0,onSplit:o=>i.gsap.from(o.chars,{stagger:2,opacity:.3,duration:1,scrollTrigger:{trigger:t.current,start:"top 70%",end:"top 30%",scrub:!0,markers:!1}})})},{scope:t}),r.jsx("div",{className:g.cn(e.default.root,e.default[c]),children:r.jsxs("div",{className:e.default.container,children:[a&&r.jsx(s.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:e.default.label,children:a}),r.jsxs(s.Typography,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingMd",className:e.default.body,children:[a&&r.jsx("span",{className:e.default.spacer,children:" "}),r.jsx("p",{className:e.default.bodyText,ref:t,children:n})]})]})})}exports.TextBlockAnimated=m;
@@ -0,0 +1,54 @@
1
+ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
+ import r from "./textBlockAnimated.module.css.es.js";
3
+ import { gsap as i } from "../../node_modules/gsap/index.es.js";
4
+ import { SplitText as l } from "../../node_modules/gsap/SplitText.es.js";
5
+ import { ScrollTrigger as p } from "../../node_modules/gsap/ScrollTrigger.es.js";
6
+ import { useGSAP as d } from "../../node_modules/@gsap/react/src/index.es.js";
7
+ import { useRef as u } from "react";
8
+ import { Typography as s } from "../../components/Typography/Typography.es.js";
9
+ import { cn as f } from "../../utils/cn/cn.es.js";
10
+ i.registerPlugin(l, p);
11
+ function v({ label: a, body: m, colorScheme: c }) {
12
+ const e = u(null);
13
+ return d(
14
+ () => {
15
+ l.create(e.current, {
16
+ type: "words chars",
17
+ className: r.bodyText,
18
+ autoSplit: !0,
19
+ onSplit: (n) => i.from(n.chars, {
20
+ stagger: 2,
21
+ opacity: 0.3,
22
+ duration: 1,
23
+ scrollTrigger: {
24
+ trigger: e.current,
25
+ start: "top 70%",
26
+ end: "top 30%",
27
+ scrub: !0,
28
+ markers: !1
29
+ }
30
+ })
31
+ });
32
+ },
33
+ { scope: e }
34
+ ), /* @__PURE__ */ t("div", { className: f(r.root, r[c]), children: /* @__PURE__ */ o("div", { className: r.container, children: [
35
+ a && /* @__PURE__ */ t(
36
+ s,
37
+ {
38
+ as: "p",
39
+ defaultVariant: "labelMd",
40
+ mobileVariant: "labelSm",
41
+ emphasis: !0,
42
+ className: r.label,
43
+ children: a
44
+ }
45
+ ),
46
+ /* @__PURE__ */ o(s, { as: "div", defaultVariant: "displayMd", mobileVariant: "headingMd", className: r.body, children: [
47
+ a && /* @__PURE__ */ t("span", { className: r.spacer, children: " " }),
48
+ /* @__PURE__ */ t("p", { className: r.bodyText, ref: e, children: m })
49
+ ] })
50
+ ] }) });
51
+ }
52
+ export {
53
+ v as TextBlockAnimated
54
+ };
@@ -0,0 +1 @@
1
+ export { TextBlockAnimated } from './TextBlockAnimated';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="textBlockAnimated-module__root___V0bMj",e="textBlockAnimated-module__container___uAVHG",o="textBlockAnimated-module__label___Bn6xU",_="textBlockAnimated-module__dark___bDegK",l="textBlockAnimated-module__light___CQsqA",d="textBlockAnimated-module__bodyText___HM1U2",n="textBlockAnimated-module__body___UnIbx",a="textBlockAnimated-module__spacer___0EhT-",c={root:t,container:e,label:o,dark:_,light:l,bodyText:d,body:n,spacer:a};exports.body=n;exports.bodyText=d;exports.container=e;exports.dark=_;exports.default=c;exports.label=o;exports.light=l;exports.root=t;exports.spacer=a;
@@ -0,0 +1,21 @@
1
+ const t = "textBlockAnimated-module__root___V0bMj", o = "textBlockAnimated-module__container___uAVHG", e = "textBlockAnimated-module__label___Bn6xU", _ = "textBlockAnimated-module__dark___bDegK", l = "textBlockAnimated-module__light___CQsqA", d = "textBlockAnimated-module__bodyText___HM1U2", n = "textBlockAnimated-module__body___UnIbx", c = "textBlockAnimated-module__spacer___0EhT-", a = {
2
+ root: t,
3
+ container: o,
4
+ label: e,
5
+ dark: _,
6
+ light: l,
7
+ bodyText: d,
8
+ body: n,
9
+ spacer: c
10
+ };
11
+ export {
12
+ n as body,
13
+ d as bodyText,
14
+ o as container,
15
+ _ as dark,
16
+ a as default,
17
+ e as label,
18
+ l as light,
19
+ t as root,
20
+ c as spacer
21
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});/*!
2
+ * SplitText 3.13.0
3
+ * https://gsap.com
4
+ *
5
+ * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
6
+ * @author: Jack Doyle
7
+ */let D,M,G,ne=()=>G||Q.register(window.gsap),V=typeof Intl<"u"?new Intl.Segmenter:0,q=e=>typeof e=="string"?q(document.querySelectorAll(e)):"length"in e?Array.from(e):[e],X=e=>q(e).filter(t=>t instanceof HTMLElement),J=[],$=function(){},le=/\s+/g,Y=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),Z={left:0,top:0,width:0,height:0},ee=(e,t)=>{if(t){let n=new Set(e.join("").match(t)||J),i=e.length,o,f,s,a;if(n.size)for(;--i>-1;){f=e[i];for(s of n)if(s.startsWith(f)&&s.length>f.length){for(o=0,a=f;s.startsWith(a+=e[i+ ++o])&&a.length<s.length;);if(o&&a.length===s.length){e[i]=s,e.splice(i+1,o);break}}}}return e},te=e=>window.getComputedStyle(e).display==="inline"&&(e.style.display="inline-block"),F=(e,t,n)=>t.insertBefore(typeof e=="string"?document.createTextNode(e):e,n),K=(e,t,n)=>{let i=t[e+"sClass"]||"",{tag:o="div",aria:f="auto",propIndex:s=!1}=t,a=e==="line"?"block":"inline-block",d=i.indexOf("++")>-1,b=S=>{let g=document.createElement(o),y=n.length+1;return i&&(g.className=i+(d?" "+i+y:"")),s&&g.style.setProperty("--"+e,y+""),f!=="none"&&g.setAttribute("aria-hidden","true"),o!=="span"&&(g.style.position="relative",g.style.display=a),g.textContent=S,n.push(g),g};return d&&(i=i.replace("++","")),b.collection=n,b},oe=(e,t,n,i)=>{let o=K("line",n,i),f=window.getComputedStyle(e).textAlign||"left";return(s,a)=>{let d=o("");for(d.style.textAlign=f,e.insertBefore(d,t[s]);s<a;s++)d.appendChild(t[s]);d.normalize()}},ie=(e,t,n,i,o,f,s,a,d,b)=>{var S;let g=Array.from(e.childNodes),y=0,{wordDelimiter:N,reduceWhiteSpace:R=!0,prepareText:P}=t,H=e.getBoundingClientRect(),k=H,z=!R&&window.getComputedStyle(e).whiteSpace.substring(0,3)==="pre",_=0,v=n.collection,l,c,I,r,m,x,O,h,u,A,C,W,T,L,w,p,B,E;for(typeof N=="object"?(I=N.delimiter||N,c=N.replaceWith||""):c=N===""?"":N||" ",l=c!==" ";y<g.length;y++)if(r=g[y],r.nodeType===3){for(w=r.textContent||"",R?w=w.replace(le," "):z&&(w=w.replace(/\n/g,c+`
8
+ `)),P&&(w=P(w,e)),r.textContent=w,m=c||I?w.split(I||c):w.match(a)||J,B=m[m.length-1],h=l?B.slice(-1)===" ":!B,B||m.pop(),k=H,O=l?m[0].charAt(0)===" ":!m[0],O&&F(" ",e,r),m[0]||m.shift(),ee(m,d),f&&b||(r.textContent=""),u=1;u<=m.length;u++)if(p=m[u-1],!R&&z&&p.charAt(0)===`
9
+ `&&((S=r.previousSibling)==null||S.remove(),F(document.createElement("br"),e,r),p=p.slice(1)),!R&&p==="")F(c,e,r);else if(p===" ")e.insertBefore(document.createTextNode(" "),r);else{if(l&&p.charAt(0)===" "&&F(" ",e,r),_&&u===1&&!O&&v.indexOf(_.parentNode)>-1?(x=v[v.length-1],x.appendChild(document.createTextNode(i?"":p))):(x=n(i?"":p),F(x,e,r),_&&u===1&&!O&&x.insertBefore(_,x.firstChild)),i)for(C=V?ee([...V.segment(p)].map(j=>j.segment),d):p.match(a)||J,E=0;E<C.length;E++)x.appendChild(C[E]===" "?document.createTextNode(" "):i(C[E]));if(f&&b){if(w=r.textContent=w.substring(p.length+1,w.length),A=x.getBoundingClientRect(),A.top>k.top&&A.left<=k.left){for(W=e.cloneNode(),T=e.childNodes[0];T&&T!==x;)L=T,T=T.nextSibling,W.appendChild(L);e.parentNode.insertBefore(W,e),o&&te(W)}k=A}(u<m.length||h)&&F(u>=m.length?" ":l&&p.slice(-1)===" "?" "+c:c,e,r)}e.removeChild(r),_=0}else r.nodeType===1&&(s&&s.indexOf(r)>-1?(v.indexOf(r.previousSibling)>-1&&v[v.length-1].appendChild(r),_=r):(ie(r,t,n,i,o,f,s,a,d,!0),_=0),o&&te(r))};const se=class re{constructor(t,n){this.isSplit=!1,ne(),this.elements=X(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=n,this._split=()=>this.isSplit&&this.split(this.vars);let i=[],o,f=()=>{let s=i.length,a;for(;s--;){a=i[s];let d=a.element.offsetWidth;if(d!==a.width){a.width=d,this._split();return}}};this._data={orig:i,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(o),o=setTimeout(f,200)})},$(this),this.split(n)}split(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let{type:n="chars,words,lines",aria:i="auto",deepSlice:o=!0,smartWrap:f,onSplit:s,autoSplit:a=!1,specialChars:d,mask:b}=this.vars,S=n.indexOf("lines")>-1,g=n.indexOf("chars")>-1,y=n.indexOf("words")>-1,N=g&&!y&&!S,R=d&&("push"in d?new RegExp("(?:"+d.join("|")+")","gu"):d),P=R?new RegExp(R.source+"|"+Y.source,"gu"):Y,H=!!t.ignore&&X(t.ignore),{orig:k,animTime:z,obs:_}=this._data,v;return(g||y||S)&&(this.elements.forEach((l,c)=>{k[c]={element:l,html:l.innerHTML,ariaL:l.getAttribute("aria-label"),ariaH:l.getAttribute("aria-hidden")},i==="auto"?l.setAttribute("aria-label",(l.textContent||"").trim()):i==="hidden"&&l.setAttribute("aria-hidden","true");let I=[],r=[],m=[],x=g?K("char",t,I):null,O=K("word",t,r),h,u,A,C;if(ie(l,t,O,x,N,o&&(S||N),H,P,R,!1),S){let W=q(l.childNodes),T=oe(l,W,t,m),L,w=[],p=0,B=W.map(j=>j.nodeType===1?j.getBoundingClientRect():Z),E=Z;for(h=0;h<W.length;h++)L=W[h],L.nodeType===1&&(L.nodeName==="BR"?(w.push(L),T(p,h+1),p=h+1,E=B[p]):(h&&B[h].top>E.top&&B[h].left<=E.left&&(T(p,h),p=h),E=B[h]));p<h&&T(p,h),w.forEach(j=>{var U;return(U=j.parentNode)==null?void 0:U.removeChild(j)})}if(!y){for(h=0;h<r.length;h++)if(u=r[h],g||!u.nextSibling||u.nextSibling.nodeType!==3)if(f&&!S){for(A=document.createElement("span"),A.style.whiteSpace="nowrap";u.firstChild;)A.appendChild(u.firstChild);u.replaceWith(A)}else u.replaceWith(...u.childNodes);else C=u.nextSibling,C&&C.nodeType===3&&(C.textContent=(u.textContent||"")+(C.textContent||""),u.remove());r.length=0,l.normalize()}this.lines.push(...m),this.words.push(...r),this.chars.push(...I)}),b&&this[b]&&this.masks.push(...this[b].map(l=>{let c=l.cloneNode();return l.replaceWith(c),c.appendChild(l),l.className&&(c.className=l.className.replace(/(\b\w+\b)/g,"$1-mask")),c.style.overflow="clip",c}))),this.isSplit=!0,M&&(a?M.addEventListener("loadingdone",this._split):M.status==="loading"&&console.warn("SplitText called before fonts loaded")),(v=s&&s(this))&&v.totalTime&&(this._data.anim=z?v.totalTime(z):v),S&&a&&this.elements.forEach((l,c)=>{k[c].width=l.offsetWidth,_&&_.observe(l)}),this}revert(){var t,n;let{orig:i,anim:o,obs:f}=this._data;return f&&f.disconnect(),i.forEach(({element:s,html:a,ariaL:d,ariaH:b})=>{s.innerHTML=a,d?s.setAttribute("aria-label",d):s.removeAttribute("aria-label"),b?s.setAttribute("aria-hidden",b):s.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=i.length=this.masks.length=0,this.isSplit=!1,M==null||M.removeEventListener("loadingdone",this._split),o&&(this._data.animTime=o.totalTime(),o.revert()),(n=(t=this.vars).onRevert)==null||n.call(t,this),this}static create(t,n){return new re(t,n)}static register(t){D=D||t||window.gsap,D&&(q=D.utils.toArray,$=D.core.context||$),!G&&window.innerWidth>0&&(M=document.fonts,G=!0)}};se.version="3.13.0";let Q=se;exports.SplitText=Q;exports.default=Q;
@@ -0,0 +1,148 @@
1
+ /*!
2
+ * SplitText 3.13.0
3
+ * https://gsap.com
4
+ *
5
+ * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
6
+ * @author: Jack Doyle
7
+ */
8
+ let M, F, G, re = () => G || oe.register(window.gsap), U = typeof Intl < "u" ? new Intl.Segmenter() : 0, q = (e) => typeof e == "string" ? q(document.querySelectorAll(e)) : "length" in e ? Array.from(e) : [e], V = (e) => q(e).filter((t) => t instanceof HTMLElement), J = [], $ = function() {
9
+ }, ne = /\s+/g, X = new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.", "gu"), Y = { left: 0, top: 0, width: 0, height: 0 }, Z = (e, t) => {
10
+ if (t) {
11
+ let n = new Set(e.join("").match(t) || J), i = e.length, o, f, s, a;
12
+ if (n.size)
13
+ for (; --i > -1; ) {
14
+ f = e[i];
15
+ for (s of n)
16
+ if (s.startsWith(f) && s.length > f.length) {
17
+ for (o = 0, a = f; s.startsWith(a += e[i + ++o]) && a.length < s.length; )
18
+ ;
19
+ if (o && a.length === s.length) {
20
+ e[i] = s, e.splice(i + 1, o);
21
+ break;
22
+ }
23
+ }
24
+ }
25
+ }
26
+ return e;
27
+ }, ee = (e) => window.getComputedStyle(e).display === "inline" && (e.style.display = "inline-block"), z = (e, t, n) => t.insertBefore(typeof e == "string" ? document.createTextNode(e) : e, n), K = (e, t, n) => {
28
+ let i = t[e + "sClass"] || "", { tag: o = "div", aria: f = "auto", propIndex: s = !1 } = t, a = e === "line" ? "block" : "inline-block", d = i.indexOf("++") > -1, b = (x) => {
29
+ let g = document.createElement(o), y = n.length + 1;
30
+ return i && (g.className = i + (d ? " " + i + y : "")), s && g.style.setProperty("--" + e, y + ""), f !== "none" && g.setAttribute("aria-hidden", "true"), o !== "span" && (g.style.position = "relative", g.style.display = a), g.textContent = x, n.push(g), g;
31
+ };
32
+ return d && (i = i.replace("++", "")), b.collection = n, b;
33
+ }, le = (e, t, n, i) => {
34
+ let o = K("line", n, i), f = window.getComputedStyle(e).textAlign || "left";
35
+ return (s, a) => {
36
+ let d = o("");
37
+ for (d.style.textAlign = f, e.insertBefore(d, t[s]); s < a; s++)
38
+ d.appendChild(t[s]);
39
+ d.normalize();
40
+ };
41
+ }, te = (e, t, n, i, o, f, s, a, d, b) => {
42
+ var x;
43
+ let g = Array.from(e.childNodes), y = 0, { wordDelimiter: N, reduceWhiteSpace: R = !0, prepareText: H } = t, P = e.getBoundingClientRect(), k = P, D = !R && window.getComputedStyle(e).whiteSpace.substring(0, 3) === "pre", C = 0, S = n.collection, l, c, j, r, m, v, O, h, u, A, _, W, E, L, w, p, B, T;
44
+ for (typeof N == "object" ? (j = N.delimiter || N, c = N.replaceWith || "") : c = N === "" ? "" : N || " ", l = c !== " "; y < g.length; y++)
45
+ if (r = g[y], r.nodeType === 3) {
46
+ for (w = r.textContent || "", R ? w = w.replace(ne, " ") : D && (w = w.replace(/\n/g, c + `
47
+ `)), H && (w = H(w, e)), r.textContent = w, m = c || j ? w.split(j || c) : w.match(a) || J, B = m[m.length - 1], h = l ? B.slice(-1) === " " : !B, B || m.pop(), k = P, O = l ? m[0].charAt(0) === " " : !m[0], O && z(" ", e, r), m[0] || m.shift(), Z(m, d), f && b || (r.textContent = ""), u = 1; u <= m.length; u++)
48
+ if (p = m[u - 1], !R && D && p.charAt(0) === `
49
+ ` && ((x = r.previousSibling) == null || x.remove(), z(document.createElement("br"), e, r), p = p.slice(1)), !R && p === "")
50
+ z(c, e, r);
51
+ else if (p === " ")
52
+ e.insertBefore(document.createTextNode(" "), r);
53
+ else {
54
+ if (l && p.charAt(0) === " " && z(" ", e, r), C && u === 1 && !O && S.indexOf(C.parentNode) > -1 ? (v = S[S.length - 1], v.appendChild(document.createTextNode(i ? "" : p))) : (v = n(i ? "" : p), z(v, e, r), C && u === 1 && !O && v.insertBefore(C, v.firstChild)), i)
55
+ for (_ = U ? Z([...U.segment(p)].map((I) => I.segment), d) : p.match(a) || J, T = 0; T < _.length; T++)
56
+ v.appendChild(_[T] === " " ? document.createTextNode(" ") : i(_[T]));
57
+ if (f && b) {
58
+ if (w = r.textContent = w.substring(p.length + 1, w.length), A = v.getBoundingClientRect(), A.top > k.top && A.left <= k.left) {
59
+ for (W = e.cloneNode(), E = e.childNodes[0]; E && E !== v; )
60
+ L = E, E = E.nextSibling, W.appendChild(L);
61
+ e.parentNode.insertBefore(W, e), o && ee(W);
62
+ }
63
+ k = A;
64
+ }
65
+ (u < m.length || h) && z(u >= m.length ? " " : l && p.slice(-1) === " " ? " " + c : c, e, r);
66
+ }
67
+ e.removeChild(r), C = 0;
68
+ } else r.nodeType === 1 && (s && s.indexOf(r) > -1 ? (S.indexOf(r.previousSibling) > -1 && S[S.length - 1].appendChild(r), C = r) : (te(r, t, n, i, o, f, s, a, d, !0), C = 0), o && ee(r));
69
+ };
70
+ const ie = class se {
71
+ constructor(t, n) {
72
+ this.isSplit = !1, re(), this.elements = V(t), this.chars = [], this.words = [], this.lines = [], this.masks = [], this.vars = n, this._split = () => this.isSplit && this.split(this.vars);
73
+ let i = [], o, f = () => {
74
+ let s = i.length, a;
75
+ for (; s--; ) {
76
+ a = i[s];
77
+ let d = a.element.offsetWidth;
78
+ if (d !== a.width) {
79
+ a.width = d, this._split();
80
+ return;
81
+ }
82
+ }
83
+ };
84
+ this._data = { orig: i, obs: typeof ResizeObserver < "u" && new ResizeObserver(() => {
85
+ clearTimeout(o), o = setTimeout(f, 200);
86
+ }) }, $(this), this.split(n);
87
+ }
88
+ split(t) {
89
+ this.isSplit && this.revert(), this.vars = t = t || this.vars || {};
90
+ let { type: n = "chars,words,lines", aria: i = "auto", deepSlice: o = !0, smartWrap: f, onSplit: s, autoSplit: a = !1, specialChars: d, mask: b } = this.vars, x = n.indexOf("lines") > -1, g = n.indexOf("chars") > -1, y = n.indexOf("words") > -1, N = g && !y && !x, R = d && ("push" in d ? new RegExp("(?:" + d.join("|") + ")", "gu") : d), H = R ? new RegExp(R.source + "|" + X.source, "gu") : X, P = !!t.ignore && V(t.ignore), { orig: k, animTime: D, obs: C } = this._data, S;
91
+ return (g || y || x) && (this.elements.forEach((l, c) => {
92
+ k[c] = {
93
+ element: l,
94
+ html: l.innerHTML,
95
+ ariaL: l.getAttribute("aria-label"),
96
+ ariaH: l.getAttribute("aria-hidden")
97
+ }, i === "auto" ? l.setAttribute("aria-label", (l.textContent || "").trim()) : i === "hidden" && l.setAttribute("aria-hidden", "true");
98
+ let j = [], r = [], m = [], v = g ? K("char", t, j) : null, O = K("word", t, r), h, u, A, _;
99
+ if (te(l, t, O, v, N, o && (x || N), P, H, R, !1), x) {
100
+ let W = q(l.childNodes), E = le(l, W, t, m), L, w = [], p = 0, B = W.map((I) => I.nodeType === 1 ? I.getBoundingClientRect() : Y), T = Y;
101
+ for (h = 0; h < W.length; h++)
102
+ L = W[h], L.nodeType === 1 && (L.nodeName === "BR" ? (w.push(L), E(p, h + 1), p = h + 1, T = B[p]) : (h && B[h].top > T.top && B[h].left <= T.left && (E(p, h), p = h), T = B[h]));
103
+ p < h && E(p, h), w.forEach((I) => {
104
+ var Q;
105
+ return (Q = I.parentNode) == null ? void 0 : Q.removeChild(I);
106
+ });
107
+ }
108
+ if (!y) {
109
+ for (h = 0; h < r.length; h++)
110
+ if (u = r[h], g || !u.nextSibling || u.nextSibling.nodeType !== 3)
111
+ if (f && !x) {
112
+ for (A = document.createElement("span"), A.style.whiteSpace = "nowrap"; u.firstChild; )
113
+ A.appendChild(u.firstChild);
114
+ u.replaceWith(A);
115
+ } else
116
+ u.replaceWith(...u.childNodes);
117
+ else
118
+ _ = u.nextSibling, _ && _.nodeType === 3 && (_.textContent = (u.textContent || "") + (_.textContent || ""), u.remove());
119
+ r.length = 0, l.normalize();
120
+ }
121
+ this.lines.push(...m), this.words.push(...r), this.chars.push(...j);
122
+ }), b && this[b] && this.masks.push(...this[b].map((l) => {
123
+ let c = l.cloneNode();
124
+ return l.replaceWith(c), c.appendChild(l), l.className && (c.className = l.className.replace(/(\b\w+\b)/g, "$1-mask")), c.style.overflow = "clip", c;
125
+ }))), this.isSplit = !0, F && (a ? F.addEventListener("loadingdone", this._split) : F.status === "loading" && console.warn("SplitText called before fonts loaded")), (S = s && s(this)) && S.totalTime && (this._data.anim = D ? S.totalTime(D) : S), x && a && this.elements.forEach((l, c) => {
126
+ k[c].width = l.offsetWidth, C && C.observe(l);
127
+ }), this;
128
+ }
129
+ revert() {
130
+ var t, n;
131
+ let { orig: i, anim: o, obs: f } = this._data;
132
+ return f && f.disconnect(), i.forEach(({ element: s, html: a, ariaL: d, ariaH: b }) => {
133
+ s.innerHTML = a, d ? s.setAttribute("aria-label", d) : s.removeAttribute("aria-label"), b ? s.setAttribute("aria-hidden", b) : s.removeAttribute("aria-hidden");
134
+ }), this.chars.length = this.words.length = this.lines.length = i.length = this.masks.length = 0, this.isSplit = !1, F == null || F.removeEventListener("loadingdone", this._split), o && (this._data.animTime = o.totalTime(), o.revert()), (n = (t = this.vars).onRevert) == null || n.call(t, this), this;
135
+ }
136
+ static create(t, n) {
137
+ return new se(t, n);
138
+ }
139
+ static register(t) {
140
+ M = M || t || window.gsap, M && (q = M.utils.toArray, $ = M.core.context || $), !G && window.innerWidth > 0 && (F = document.fonts, G = !0);
141
+ }
142
+ };
143
+ ie.version = "3.13.0";
144
+ let oe = ie;
145
+ export {
146
+ oe as SplitText,
147
+ oe as default
148
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -330,6 +330,11 @@
330
330
  "import": "./dist/modules/FeaturesGallery/FeaturesGallery.es.js",
331
331
  "require": "./dist/modules/FeaturesGallery/FeaturesGallery.cjs.js"
332
332
  },
333
+ "./FAQComponentItem": {
334
+ "types": "./dist/components/FAQComponentItem/FAQComponentItem.d.ts",
335
+ "import": "./dist/components/FAQComponentItem/FAQComponentItem.es.js",
336
+ "require": "./dist/components/FAQComponentItem/FAQComponentItem.cjs.js"
337
+ },
333
338
  "./FollowTheScience": {
334
339
  "types": "./dist/modules/FollowTheScience/FollowTheScience.d.ts",
335
340
  "import": "./dist/modules/FollowTheScience/FollowTheScience.es.js",
@@ -540,6 +545,11 @@
540
545
  "import": "./dist/pageComponents/HowItWorksHero/HowItWorksHero.es.js",
541
546
  "require": "./dist/pageComponents/HowItWorksHero/HowItWorksHero.cjs.js"
542
547
  },
548
+ "./TextBlockAnimated": {
549
+ "types": "./dist/modules/TextBlockAnimated/TextBlockAnimated.d.ts",
550
+ "import": "./dist/modules/TextBlockAnimated/TextBlockAnimated.es.js",
551
+ "require": "./dist/modules/TextBlockAnimated/TextBlockAnimated.cjs.js"
552
+ },
543
553
  "./dist/*.css": "./dist/*.css"
544
554
  }
545
555
  }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../../Typography/Typography.cjs.js"),o=require("../../../Icon/Icon.cjs.js"),t=require("../../../Icon/constants.cjs.js"),s=require("../../../../utils/cn/cn.cjs.js"),n=require("./faqComponentItem.module.css.cjs.js"),u=({title:r,content:d,isOpen:a,index:i,onClick:l})=>e.jsxs("div",{className:n.default.root,children:[e.jsxs("div",{onClick:()=>l(i??0),className:s.cn(n.default.header,{[n.default.headerSticky]:a}),children:[e.jsx(c.Typography,{defaultVariant:"headingMd",mobileVariant:"headingXxs",children:r}),e.jsxs("div",{className:n.default.closeButtonWrapper,children:[e.jsx(o.Icon,{name:t.EIconName.BRACKET_LEFT}),e.jsx("div",{className:s.cn(n.default.closeButton,{[n.default.closeButtonActive]:a}),children:e.jsx(o.Icon,{name:t.EIconName.PLUS_BOLD})}),e.jsx(o.Icon,{name:t.EIconName.BRACKET_RIGHT})]})]}),e.jsx("div",{className:s.cn(n.default.description,{[n.default.descriptionShow]:a}),children:e.jsx("div",{className:n.default.descriptionInner,children:e.jsx(c.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodyXs",children:d})})}),e.jsx("div",{className:n.default.leftBorder}),e.jsx("div",{className:n.default.rightBorder})]});exports.FAQComponentItem=u;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="faqComponentItem-module__root___zTwix",o="faqComponentItem-module__header___LxS2t",t="faqComponentItem-module__closeButtonWrapper___FMjQq",n="faqComponentItem-module__closeButton___yWXnz",r="faqComponentItem-module__closeButtonActive___eqfRz",_="faqComponentItem-module__description___UQs0o",c="faqComponentItem-module__descriptionInner___aC4CL",d="faqComponentItem-module__descriptionShow___DZNFQ",s="faqComponentItem-module__leftBorder___7tMoB",i="faqComponentItem-module__rightBorder___xiCjz",l="faqComponentItem-module__headerSticky___nPXFL",m={root:e,header:o,closeButtonWrapper:t,closeButton:n,closeButtonActive:r,description:_,descriptionInner:c,descriptionShow:d,leftBorder:s,rightBorder:i,headerSticky:l};exports.closeButton=n;exports.closeButtonActive=r;exports.closeButtonWrapper=t;exports.default=m;exports.description=_;exports.descriptionInner=c;exports.descriptionShow=d;exports.header=o;exports.headerSticky=l;exports.leftBorder=s;exports.rightBorder=i;exports.root=e;
@@ -1,27 +0,0 @@
1
- const o = "faqComponentItem-module__root___zTwix", e = "faqComponentItem-module__header___LxS2t", t = "faqComponentItem-module__closeButtonWrapper___FMjQq", n = "faqComponentItem-module__closeButton___yWXnz", _ = "faqComponentItem-module__closeButtonActive___eqfRz", r = "faqComponentItem-module__description___UQs0o", c = "faqComponentItem-module__descriptionInner___aC4CL", s = "faqComponentItem-module__descriptionShow___DZNFQ", d = "faqComponentItem-module__leftBorder___7tMoB", m = "faqComponentItem-module__rightBorder___xiCjz", i = "faqComponentItem-module__headerSticky___nPXFL", p = {
2
- root: o,
3
- header: e,
4
- closeButtonWrapper: t,
5
- closeButton: n,
6
- closeButtonActive: _,
7
- description: r,
8
- descriptionInner: c,
9
- descriptionShow: s,
10
- leftBorder: d,
11
- rightBorder: m,
12
- headerSticky: i
13
- };
14
- export {
15
- n as closeButton,
16
- _ as closeButtonActive,
17
- t as closeButtonWrapper,
18
- p as default,
19
- r as description,
20
- c as descriptionInner,
21
- s as descriptionShow,
22
- e as header,
23
- i as headerSticky,
24
- d as leftBorder,
25
- m as rightBorder,
26
- o as root
27
- };