@zenpatient-org/healthspan-marketing-ui 0.1.56 → 0.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.d.ts +2 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +21 -19
- package/dist/components/ContentTabs/contentTabs.module.css.cjs.js +1 -1
- package/dist/components/ContentTabs/contentTabs.module.css.es.js +10 -8
- package/dist/components/Icon/constants.cjs.js +1 -1
- package/dist/components/Icon/constants.d.ts +1 -0
- package/dist/components/Icon/constants.es.js +2 -1
- package/dist/components/Icon/iconsMap.cjs.js +1 -1
- package/dist/components/Icon/iconsMap.es.js +84 -82
- package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -1
- package/dist/components/ProgramCard/ProgramCard.d.ts +10 -1
- package/dist/components/ProgramCard/ProgramCard.es.js +32 -14
- package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -1
- package/dist/components/ProgramCard/programCard.module.css.es.js +6 -4
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/icons/arrow/arrow-forward-thin.svg.cjs.js +1 -0
- package/dist/icons/arrow/arrow-forward-thin.svg.es.js +5 -0
- package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +1 -1
- package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +1 -0
- package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
- package/dist/modules/TotalCare/TotalCare.d.ts +2 -1
- package/dist/modules/TotalCare/TotalCare.es.js +17 -16
- package/dist/pageComponents/TreatmentsHero/TreatmentsHero.cjs.js +1 -1
- package/dist/pageComponents/TreatmentsHero/TreatmentsHero.es.js +7 -7
- package/dist/pageComponents/TreatmentsHero/treatmentsHero.module.css.cjs.js +1 -1
- package/dist/pageComponents/TreatmentsHero/treatmentsHero.module.css.es.js +19 -17
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=i(c),a=e=>o.createElement("svg",{width:128,height:128,viewBox:"0 0 128 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M18.7452 64.0048H109.255",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M72.4844 27.2344L109.254 64.0039L72.4844 100.773",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}));exports.default=a;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const t = (r) => /* @__PURE__ */ e.createElement("svg", { width: 128, height: 128, viewBox: "0 0 128 128", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ e.createElement("path", { d: "M18.7452 64.0048H109.255", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M72.4844 27.2344L109.254 64.0039L72.4844 100.773", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),H=require("../../node_modules/@gsap/react/src/index.cjs.js"),d=require("../../node_modules/gsap/index.cjs.js"),u=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),w=require("react"),V=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),A=require("../../utils/debounce.cjs.js"),r=require("./expandingDetails.module.css.cjs.js");d.gsap.registerPlugin(u.ScrollTrigger);const $=({colorScheme:h,label:f,title:N,sections:P})=>{const s=w.useRef(null);return H.useGSAP(()=>{if(!s.current)return;const a=()=>{var x;d.gsap.killTweensOf("*"),u.ScrollTrigger.getAll().forEach(e=>e.kill());const o=d.gsap.utils.toArray('[data-scroll-id="section"]'),t=(x=s.current)==null?void 0:x.querySelector('[data-scroll-id="sections"]');if(!t)return;const p=d.gsap.timeline({scrollTrigger:{trigger:s.current,start:"top top",end:()=>`+=${o.length*500}`,scrub:1,markers:!1,pin:!0}}),y=t==null?void 0:t.querySelector('[data-scroll-id="heading"]');if(!y)return;d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="section"]'),{height:y.offsetHeight||0}),d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="protocol"]'),{scale:.5,yPercent:0}),d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="image-circle"]'),{scale:.5,yPercent:5});const m=window.innerWidth<768?1.2:2,S=window.innerWidth<768?1.2:2;o.forEach((e,E)=>{var q,T,j,b,v;const g=e==null?void 0:e.querySelector('[data-scroll-id="heading"]'),i=e==null?void 0:e.querySelector('[data-scroll-id="content"]');!g||!i||(p.to(e,{height:g.offsetHeight+i.offsetHeight}).to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:m,yPercent:50},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:S,yPercent:50},"<").to(i,{height:i.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},"<"),E<o.length-1&&p.to(e,{height:g.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:g.offsetHeight+i.offsetHeight},"<").to(((q=e.nextElementSibling)==null?void 0:q.querySelector('[data-scroll-id="section-title"]'))||null,{scale:m,yPercent:100},"<").to(((T=e.nextElementSibling)==null?void 0:T.querySelector('[data-scroll-id="section-index"]'))||null,{scale:S,yPercent:100},"<").to(((j=e.nextElementSibling)==null?void 0:j.querySelector('[data-scroll-id="content"]'))||null,{height:i.offsetHeight,yPercent:0},"<").to(((b=e.nextElementSibling)==null?void 0:b.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(i,{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();const c=A.default(()=>{a()},200);return window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),u.ScrollTrigger.getAll().forEach(o=>o.kill()),d.gsap.killTweensOf("*")}},{scope:s,dependencies:[s]}),l.jsx("div",{ref:s,className:`${r.default.root} ${r.default[h]}`,children:l.jsxs("div",{className:r.default.expandingDetailsWrapper,children:[l.jsxs("header",{"data-scroll-id":"header",className:r.default.header,children:[f&&l.jsx(n.Typography,{as:"div",defaultVariant:"labelSm",emphasis:!0,className:r.default.label,children:f}),l.jsx(V.HighlightedTitle,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:h,className:r.default.title,title:N})]}),l.jsx("div",{"data-scroll-id":"sections",className:r.default.sections,children:P.map((a,c)=>l.jsxs("div",{id:`section-${c+1}`,"data-scroll-id":"section",className:r.default.section,children:[l.jsxs("div",{"data-scroll-id":"heading",className:r.default.heading,children:[l.jsx("div",{"data-scroll-id":"section-title",className:r.default.sectionTitleWrapper,children:l.jsx(n.Typography,{as:"h3",defaultVariant:"headingSm",className:r.default.sectionTitle,children:a.title})}),l.jsx("div",{"data-scroll-id":"section-index",className:r.default.sectionIndexWrapper,children:l.jsxs(n.Typography,{as:"p",defaultVariant:"headingSm",className:r.default.sectionIndex,children:["(",String(c+1).padStart(2,"0"),")"]})})]}),l.jsxs("div",{"data-scroll-id":"content",className:r.default.content,children:[l.jsxs("div",{"data-scroll-id":"protocol",className:r.default.protocolWrapper,children:[a.subtitle&&l.jsx(n.Typography,{as:"h4",defaultVariant:"headingLg",mobileVariant:"headingXs",children:a.subtitle}),l.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:a.description})]}),l.jsx("div",{"data-scroll-id":"image-circle",className:r.default.imageCircle,children:l.jsx("img",{src:a.image,alt:a.title})})]}),l.jsx("div",{className:r.default.leftBorder}),l.jsx("div",{className:r.default.rightBorder})]},a.title))})]})})};exports.ExpandingDetails=$;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),H=require("../../node_modules/@gsap/react/src/index.cjs.js"),d=require("../../node_modules/gsap/index.cjs.js"),u=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),w=require("react"),V=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),A=require("../../utils/debounce.cjs.js"),r=require("./expandingDetails.module.css.cjs.js");d.gsap.registerPlugin(u.ScrollTrigger);const $=({colorScheme:h,label:f,title:N,sections:P})=>{const s=w.useRef(null);return H.useGSAP(()=>{if(!s.current)return;const a=()=>{var x;d.gsap.killTweensOf("*"),u.ScrollTrigger.getAll().forEach(e=>e.kill());const o=d.gsap.utils.toArray('[data-scroll-id="section"]'),t=(x=s.current)==null?void 0:x.querySelector('[data-scroll-id="sections"]');if(!t)return;const p=d.gsap.timeline({scrollTrigger:{trigger:s.current,start:"top top",end:()=>`+=${o.length*500}`,scrub:1,markers:!1,pin:!0}}),y=t==null?void 0:t.querySelector('[data-scroll-id="heading"]');if(!y)return;d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="section"]'),{height:y.offsetHeight||0}),d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="protocol"]'),{scale:.5,yPercent:0}),d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="image-circle"]'),{scale:.5,yPercent:5});const m=window.innerWidth<768?1.2:2,S=window.innerWidth<768?1.2:2;o.forEach((e,E)=>{var q,T,j,b,v;const g=e==null?void 0:e.querySelector('[data-scroll-id="heading"]'),i=e==null?void 0:e.querySelector('[data-scroll-id="content"]');!g||!i||(p.to(e,{height:g.offsetHeight+i.offsetHeight}).to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:m,yPercent:50},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:S,yPercent:50},"<").to(i,{height:i.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},"<"),E<o.length-1&&p.to(e,{height:g.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:g.offsetHeight+i.offsetHeight},"<").to(((q=e.nextElementSibling)==null?void 0:q.querySelector('[data-scroll-id="section-title"]'))||null,{scale:m,yPercent:100},"<").to(((T=e.nextElementSibling)==null?void 0:T.querySelector('[data-scroll-id="section-index"]'))||null,{scale:S,yPercent:100},"<").to(((j=e.nextElementSibling)==null?void 0:j.querySelector('[data-scroll-id="content"]'))||null,{height:i.offsetHeight,yPercent:0},"<").to(((b=e.nextElementSibling)==null?void 0:b.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(i,{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();const c=A.default(()=>{a()},200);return window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),u.ScrollTrigger.getAll().forEach(o=>o.kill()),d.gsap.killTweensOf("*")}},{scope:s,dependencies:[s]}),l.jsx("div",{ref:s,className:`${r.default.root} ${r.default[h]}`,children:l.jsxs("div",{className:r.default.expandingDetailsWrapper,children:[l.jsxs("header",{"data-scroll-id":"header",className:r.default.header,children:[f&&l.jsx(n.Typography,{as:"div",defaultVariant:"labelSm",emphasis:!0,className:r.default.label,children:f}),l.jsx(V.HighlightedTitle,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:h,className:r.default.title,title:N})]}),l.jsx("div",{"data-scroll-id":"sections",className:r.default.sections,children:P.map((a,c)=>l.jsxs("div",{id:`section-${c+1}`,"data-scroll-id":"section",className:r.default.section,children:[l.jsxs("div",{"data-scroll-id":"heading",className:r.default.heading,children:[l.jsx("div",{"data-scroll-id":"section-title",className:r.default.sectionTitleWrapper,children:l.jsx(n.Typography,{as:"h3",defaultVariant:"headingSm",className:r.default.sectionTitle,children:a.title})}),l.jsx("div",{"data-scroll-id":"section-index",className:r.default.sectionIndexWrapper,children:l.jsxs(n.Typography,{as:"p",defaultVariant:"headingSm",className:r.default.sectionIndex,children:["(",String(c+1).padStart(2,"0"),")"]})})]}),l.jsxs("div",{"data-scroll-id":"content",className:r.default.content,children:[l.jsxs("div",{"data-scroll-id":"protocol",className:r.default.protocolWrapper,children:[a.subtitle&&l.jsx(n.Typography,{as:"h4",defaultVariant:"headingLg",mobileVariant:"headingXs",children:a.subtitle}),l.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:a.description})]}),l.jsx("div",{"data-scroll-id":"image-circle",className:r.default.imageCircle,children:l.jsx("img",{src:a.image,alt:a.title})})]}),l.jsx("div",{className:r.default.leftBorder}),l.jsx("div",{className:r.default.rightBorder})]},a.title))})]})})};exports.ExpandingDetails=$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),d=require("../../components/ContentTabs/ContentTabs.cjs.js"),u=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("./totalCare.module.css.cjs.js"),m=({title:r,label:c,contentTabs:a,colorScheme:i,version:l="v1"})=>{const[s,o]=n.useState(a.tabs[0]);return e.jsx("section",{className:t.default.root,"data-scheme":i,"data-version":l,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(u.HighlightedTitle,{title:r,label:c,className:t.default.header,colorScheme:i}),e.jsxs("div",{className:t.default.content,children:[e.jsx("div",{className:t.default.tags,children:e.jsx(d.ContentTabs,{activeTab:s,tabs:a.tabs,colorScheme:a.colorScheme,activeWithArrow:l==="v2",onTabClick:o})}),s.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:s.image,alt:"Total Care",className:t.default.image})})]})]})})};exports.TotalCare=m;
|
|
@@ -12,5 +12,6 @@ export type TotalCareProps = {
|
|
|
12
12
|
withImage: boolean;
|
|
13
13
|
tabs: ReadonlyArray<TContentTab>;
|
|
14
14
|
};
|
|
15
|
+
version?: 'v1' | 'v2';
|
|
15
16
|
};
|
|
16
|
-
export declare const TotalCare: ({ title, label, contentTabs, colorScheme }: TotalCareProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const TotalCare: ({ title, label, contentTabs, colorScheme, version }: TotalCareProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { useState as d } from "react";
|
|
4
4
|
import { ContentTabs as n } from "../../components/ContentTabs/ContentTabs.es.js";
|
|
5
|
-
import { HighlightedTitle as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
const [
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
5
|
+
import { HighlightedTitle as h } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
6
|
+
import a from "./totalCare.module.css.es.js";
|
|
7
|
+
const f = ({ title: m, label: o, contentTabs: t, colorScheme: s, version: r = "v1" }) => {
|
|
8
|
+
const [i, l] = d(t.tabs[0]);
|
|
9
|
+
return /* @__PURE__ */ e("section", { className: a.root, "data-scheme": s, "data-version": r, children: /* @__PURE__ */ c("div", { className: a.container, children: [
|
|
10
|
+
/* @__PURE__ */ e(h, { title: m, label: o, className: a.header, colorScheme: s }),
|
|
11
|
+
/* @__PURE__ */ c("div", { className: a.content, children: [
|
|
12
|
+
/* @__PURE__ */ e("div", { className: a.tags, children: /* @__PURE__ */ e(
|
|
13
13
|
n,
|
|
14
14
|
{
|
|
15
|
-
activeTab:
|
|
16
|
-
tabs:
|
|
17
|
-
colorScheme:
|
|
18
|
-
|
|
15
|
+
activeTab: i,
|
|
16
|
+
tabs: t.tabs,
|
|
17
|
+
colorScheme: t.colorScheme,
|
|
18
|
+
activeWithArrow: r === "v2",
|
|
19
|
+
onTabClick: l
|
|
19
20
|
}
|
|
20
21
|
) }),
|
|
21
|
-
|
|
22
|
+
i.image && /* @__PURE__ */ e("div", { className: a.imageWrap, children: /* @__PURE__ */ e("img", { src: i.image, alt: "Total Care", className: a.image }) })
|
|
22
23
|
] })
|
|
23
24
|
] }) });
|
|
24
25
|
};
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
f as TotalCare
|
|
27
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("../../utils/cn/cn.cjs.js"),u=require("../../components/Button/Button.cjs.js"),o=require("../../components/Typography/Typography.cjs.js"),c=require("./components/TreatmentHeroCard/TreatmentHeroCard.cjs.js"),e=require("./treatmentsHero.module.css.cjs.js"),d=(r,a)=>r?t.jsx(u.Button,{variant:"primary",as:"a",href:r.link,size:a,children:r.text}):null,h=({title:r,description:a,button:n,cards:l})=>t.jsxs("section",{className:e.default.root,"data-type":"hero",children:[t.jsx("div",{className:s.cn(e.default.row,e.default.headerContainer),children:t.jsxs("div",{className:e.default.headerContent,children:[t.jsxs("div",{className:e.default.headerText,children:[t.jsx(o.Typography,{as:"h1",defaultVariant:"displayMd",mobileVariant:"headingXl",weight:"regular",children:r}),a&&t.jsx(o.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",weight:"regular",children:a})]}),n&&t.jsx("div",{className:s.cn(e.default.headerButton,e.default.mobile),children:d(n,"md")}),n&&t.jsx("div",{className:s.cn(e.default.headerButton,e.default.desktop),children:d(n,"lg")})]})}),!!(l!=null&&l.length)&&t.jsx("div",{className:s.cn(e.default.row,e.default.cardsContainer),children:l.map(i=>t.jsx(c.TreatmentHeroCard,{title:i.title,link:i.link,image:i.image},i.link))})]});exports.TreatmentsHero=h;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as s } from "../../components/Button/Button.es.js";
|
|
4
4
|
import { Typography as d } from "../../components/Typography/Typography.es.js";
|
|
5
5
|
import { TreatmentHeroCard as p } from "./components/TreatmentHeroCard/TreatmentHeroCard.es.js";
|
|
6
6
|
import e from "./treatmentsHero.module.css.es.js";
|
|
7
|
-
const
|
|
8
|
-
/* @__PURE__ */ r("div", { className: e.headerContainer, children: /* @__PURE__ */ m("div", { className: e.headerContent, children: [
|
|
7
|
+
const h = (i, a) => i ? /* @__PURE__ */ r(s, { variant: "primary", as: "a", href: i.link, size: a, children: i.text }) : null, N = ({ title: i, description: a, button: t, cards: l }) => /* @__PURE__ */ m("section", { className: e.root, "data-type": "hero", children: [
|
|
8
|
+
/* @__PURE__ */ r("div", { className: o(e.row, e.headerContainer), children: /* @__PURE__ */ m("div", { className: e.headerContent, children: [
|
|
9
9
|
/* @__PURE__ */ m("div", { className: e.headerText, children: [
|
|
10
10
|
/* @__PURE__ */ r(d, { as: "h1", defaultVariant: "displayMd", mobileVariant: "headingXl", weight: "regular", children: i }),
|
|
11
|
-
/* @__PURE__ */ r(d, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", weight: "regular", children:
|
|
11
|
+
a && /* @__PURE__ */ r(d, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", weight: "regular", children: a })
|
|
12
12
|
] }),
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
t && /* @__PURE__ */ r("div", { className: o(e.headerButton, e.mobile), children: h(t, "md") }),
|
|
14
|
+
t && /* @__PURE__ */ r("div", { className: o(e.headerButton, e.desktop), children: h(t, "lg") })
|
|
15
15
|
] }) }),
|
|
16
|
-
!!(
|
|
16
|
+
!!(l != null && l.length) && /* @__PURE__ */ r("div", { className: o(e.row, e.cardsContainer), children: l.map((n) => /* @__PURE__ */ r(p, { title: n.title, link: n.link, image: n.image }, n.link)) })
|
|
17
17
|
] });
|
|
18
18
|
export {
|
|
19
19
|
N as TreatmentsHero
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="treatmentsHero-module__root___ooT0f",t="treatmentsHero-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="treatmentsHero-module__root___ooT0f",t="treatmentsHero-module__row___8HnhD",o="treatmentsHero-module__headerContainer___9pjeS",r="treatmentsHero-module__headerContent___4wGkJ",n="treatmentsHero-module__headerText___xxHYH",_="treatmentsHero-module__headerButton___JhBIo",a="treatmentsHero-module__cardsContainer___IJpyM",d="treatmentsHero-module__mobile___p7eao",s="treatmentsHero-module__desktop___MH3N4",m={root:e,row:t,headerContainer:o,headerContent:r,headerText:n,headerButton:_,cardsContainer:a,mobile:d,desktop:s};exports.cardsContainer=a;exports.default=m;exports.desktop=s;exports.headerButton=_;exports.headerContainer=o;exports.headerContent=r;exports.headerText=n;exports.mobile=d;exports.root=e;exports.row=t;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
const e = "treatmentsHero-module__root___ooT0f", t = "treatmentsHero-
|
|
1
|
+
const e = "treatmentsHero-module__root___ooT0f", t = "treatmentsHero-module__row___8HnhD", o = "treatmentsHero-module__headerContainer___9pjeS", r = "treatmentsHero-module__headerContent___4wGkJ", _ = "treatmentsHero-module__headerText___xxHYH", n = "treatmentsHero-module__headerButton___JhBIo", a = "treatmentsHero-module__cardsContainer___IJpyM", d = "treatmentsHero-module__mobile___p7eao", s = "treatmentsHero-module__desktop___MH3N4", m = {
|
|
2
2
|
root: e,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
row: t,
|
|
4
|
+
headerContainer: o,
|
|
5
|
+
headerContent: r,
|
|
6
|
+
headerText: _,
|
|
7
|
+
headerButton: n,
|
|
8
|
+
cardsContainer: a,
|
|
9
|
+
mobile: d,
|
|
10
|
+
desktop: s
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
e as root
|
|
13
|
+
a as cardsContainer,
|
|
14
|
+
m as default,
|
|
15
|
+
s as desktop,
|
|
16
|
+
n as headerButton,
|
|
17
|
+
o as headerContainer,
|
|
18
|
+
r as headerContent,
|
|
19
|
+
_ as headerText,
|
|
20
|
+
d as mobile,
|
|
21
|
+
e as root,
|
|
22
|
+
t as row
|
|
21
23
|
};
|