@zenpatient-org/healthspan-marketing-ui 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Benefits/Benefits.cjs.js +1 -1
- package/dist/modules/Benefits/Benefits.es.js +8 -8
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -1
- package/dist/modules/Benefits/benefits.module.css.es.js +17 -15
- package/dist/modules/Callback/Callback.cjs.js +1 -1
- package/dist/modules/Callback/Callback.es.js +18 -18
- package/dist/modules/Callback/callback.module.css.cjs.js +1 -1
- package/dist/modules/Callback/callback.module.css.es.js +8 -6
- package/dist/modules/Compare/Compare.cjs.js +1 -1
- package/dist/modules/Compare/Compare.es.js +13 -13
- package/dist/modules/Compare/compare.module.css.cjs.js +1 -1
- package/dist/modules/Compare/compare.module.css.es.js +10 -8
- package/dist/modules/Comparison/Comparison.cjs.js +1 -1
- package/dist/modules/Comparison/Comparison.es.js +18 -9
- package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -1
- package/dist/modules/Comparison/comparison.module.css.es.js +34 -32
- package/dist/modules/FAQ/FAQ.cjs.js +1 -1
- package/dist/modules/FAQ/FAQ.es.js +6 -6
- package/dist/modules/FAQ/faq.module.css.cjs.js +1 -1
- package/dist/modules/FAQ/faq.module.css.es.js +13 -11
- package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -1
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +7 -7
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +45 -43
- package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -1
- package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +10 -8
- package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
- package/dist/modules/ImageWithText/ImageWithText.es.js +13 -13
- package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -1
- package/dist/modules/ImageWithText/imageWithText.module.css.es.js +18 -16
- package/dist/modules/LongevityPathways/LongevityPathways.cjs.js +1 -1
- package/dist/modules/LongevityPathways/LongevityPathways.es.js +4 -4
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +4 -4
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +5 -5
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -1
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +3 -2
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +93 -89
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -1
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +23 -21
- package/dist/modules/Studies/Studies.cjs.js +1 -1
- package/dist/modules/Studies/Studies.es.js +16 -16
- package/dist/modules/Studies/studies.module.css.cjs.js +1 -1
- package/dist/modules/Studies/studies.module.css.es.js +14 -12
- package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -1
- package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +9 -9
- package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
- package/dist/modules/Testimonial/Testimonial.d.ts +2 -2
- package/dist/modules/Testimonial/Testimonial.es.js +18 -18
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +31 -28
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +26 -25
- package/dist/modules/Testimonial/types.d.ts +5 -4
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +21 -21
- package/dist/modules/YourProtocol/yourProtocol.module.css.cjs.js +1 -1
- package/dist/modules/YourProtocol/yourProtocol.module.css.es.js +12 -10
- package/dist/pageComponents/Bubbles/Bubbles.cjs.js +1 -0
- package/dist/pageComponents/Bubbles/Bubbles.d.ts +3 -0
- package/dist/pageComponents/Bubbles/Bubbles.es.js +28 -0
- package/dist/pageComponents/Bubbles/bubbles.module.css.cjs.js +1 -0
- package/dist/pageComponents/Bubbles/bubbles.module.css.es.js +13 -0
- package/dist/pageComponents/Bubbles/index.d.ts +1 -0
- package/dist/pageComponents/Gradient/Gradient.cjs.js +1 -0
- package/dist/pageComponents/Gradient/Gradient.es.js +9 -0
- package/dist/pageComponents/Gradient/gradient.module.css.cjs.js +1 -0
- package/dist/pageComponents/Gradient/gradient.module.css.es.js +13 -0
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.cjs.js +1 -0
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js +25 -0
- package/dist/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css.cjs.js +1 -0
- package/dist/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css.es.js +17 -0
- package/package.json +16 -1
|
@@ -1,92 +1,94 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import { Swiper as
|
|
6
|
+
import w from "../../node_modules/swiper/modules/navigation.es.js";
|
|
7
|
+
import { Swiper as g, SwiperSlide as N } from "../../node_modules/swiper/swiper-react.es.js";
|
|
8
8
|
import { Benefit as v } from "../../components/Benefit/Benefit.es.js";
|
|
9
|
-
import { EIconName as
|
|
10
|
-
import { Label as
|
|
11
|
-
import { ProgressButton as
|
|
12
|
-
import { TextButton as
|
|
13
|
-
import { useSwiper as
|
|
9
|
+
import { EIconName as R } from "../../components/Icon/constants.es.js";
|
|
10
|
+
import { Label as k } from "../../components/Label/Label.es.js";
|
|
11
|
+
import { ProgressButton as a } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
12
|
+
import { TextButton as C } from "../../components/TextButton/TextButton.es.js";
|
|
13
|
+
import { useSwiper as E } from "../../utils/useSwiper/useSwiper.es.js";
|
|
14
14
|
import i from "./followTheScience.module.css.es.js";
|
|
15
|
-
const
|
|
16
|
-
function
|
|
15
|
+
const x = [w];
|
|
16
|
+
function _({ labelText: c, benefits: m }) {
|
|
17
17
|
const {
|
|
18
|
-
activeIndex:
|
|
19
|
-
setIsEnd:
|
|
20
|
-
isEnd:
|
|
21
|
-
|
|
18
|
+
activeIndex: B,
|
|
19
|
+
setIsEnd: p,
|
|
20
|
+
isEnd: r,
|
|
21
|
+
isBeginning: t,
|
|
22
|
+
hideNav: n,
|
|
23
|
+
handleSlideChange: h,
|
|
22
24
|
handlePrevClick: s,
|
|
23
|
-
handleNextClick:
|
|
24
|
-
onSwiperInit:
|
|
25
|
-
handleSwiperResize:
|
|
26
|
-
} =
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */ e(
|
|
30
|
-
/* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
31
|
-
|
|
25
|
+
handleNextClick: l,
|
|
26
|
+
onSwiperInit: f,
|
|
27
|
+
handleSwiperResize: S
|
|
28
|
+
} = E();
|
|
29
|
+
return /* @__PURE__ */ d("section", { className: i.container, children: [
|
|
30
|
+
/* @__PURE__ */ d("div", { className: i.heading, children: [
|
|
31
|
+
/* @__PURE__ */ e(k, { color: "white", size: "lg", children: c }),
|
|
32
|
+
!n && /* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
33
|
+
a,
|
|
32
34
|
{
|
|
33
35
|
left: {
|
|
34
36
|
onClick: s,
|
|
35
|
-
disabled:
|
|
37
|
+
disabled: t
|
|
36
38
|
},
|
|
37
39
|
right: {
|
|
38
|
-
disabled:
|
|
39
|
-
onClick:
|
|
40
|
+
disabled: r,
|
|
41
|
+
onClick: l
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
) })
|
|
43
45
|
] }),
|
|
44
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
45
|
-
|
|
46
|
+
/* @__PURE__ */ e("div", { className: i.content, children: /* @__PURE__ */ e(
|
|
47
|
+
g,
|
|
46
48
|
{
|
|
47
|
-
onSwiper:
|
|
48
|
-
onResize:
|
|
49
|
-
onSlideChange:
|
|
50
|
-
onReachEnd: () =>
|
|
51
|
-
modules:
|
|
49
|
+
onSwiper: f,
|
|
50
|
+
onResize: S,
|
|
51
|
+
onSlideChange: h,
|
|
52
|
+
onReachEnd: () => p(!0),
|
|
53
|
+
modules: x,
|
|
52
54
|
spaceBetween: 0,
|
|
53
55
|
slidesPerView: "auto",
|
|
54
56
|
className: i.swiper,
|
|
55
|
-
children:
|
|
57
|
+
children: m.map((o, u) => /* @__PURE__ */ e(N, { className: i.swiperSlide, children: /* @__PURE__ */ e(
|
|
56
58
|
v,
|
|
57
59
|
{
|
|
58
60
|
title: o.title,
|
|
59
61
|
description: o.description,
|
|
60
62
|
button: /* @__PURE__ */ e(
|
|
61
|
-
|
|
63
|
+
C,
|
|
62
64
|
{
|
|
63
65
|
as: "a",
|
|
64
66
|
size: "sm",
|
|
65
67
|
color: "white",
|
|
66
|
-
suffixIcon:
|
|
68
|
+
suffixIcon: R.ARROW_FORWARD,
|
|
67
69
|
href: o.link,
|
|
68
70
|
children: "READ THE STUDY"
|
|
69
71
|
}
|
|
70
72
|
)
|
|
71
73
|
}
|
|
72
|
-
) },
|
|
74
|
+
) }, u))
|
|
73
75
|
}
|
|
74
76
|
) }),
|
|
75
|
-
/* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
76
|
-
|
|
77
|
+
!n && /* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
78
|
+
a,
|
|
77
79
|
{
|
|
78
80
|
left: {
|
|
79
81
|
onClick: s,
|
|
80
|
-
disabled:
|
|
82
|
+
disabled: t
|
|
81
83
|
},
|
|
82
84
|
right: {
|
|
83
|
-
onClick:
|
|
84
|
-
disabled:
|
|
85
|
+
onClick: l,
|
|
86
|
+
disabled: r
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
) })
|
|
88
90
|
] });
|
|
89
91
|
}
|
|
90
92
|
export {
|
|
91
|
-
|
|
93
|
+
_ as FollowTheScience
|
|
92
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="followTheScience-module__container___Aur-g",o="followTheScience-module__heading___R9F6F",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="followTheScience-module__container___Aur-g",o="followTheScience-module__heading___R9F6F",n="followTheScience-module__content___RnT5E",t="followTheScience-module__swiper___iUsAd",s="followTheScience-module__swiperSlide___YMeah",_="followTheScience-module__progressButtons___mzqTh",i={container:e,heading:o,content:n,swiper:t,swiperSlide:s,progressButtons:_};exports.container=e;exports.content=n;exports.default=i;exports.heading=o;exports.progressButtons=_;exports.swiper=t;exports.swiperSlide=s;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
const e = "followTheScience-module__container___Aur-g", o = "followTheScience-module__heading___R9F6F",
|
|
1
|
+
const e = "followTheScience-module__container___Aur-g", o = "followTheScience-module__heading___R9F6F", n = "followTheScience-module__content___RnT5E", _ = "followTheScience-module__swiper___iUsAd", s = "followTheScience-module__swiperSlide___YMeah", c = "followTheScience-module__progressButtons___mzqTh", t = {
|
|
2
2
|
container: e,
|
|
3
3
|
heading: o,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
content: n,
|
|
5
|
+
swiper: _,
|
|
6
|
+
swiperSlide: s,
|
|
7
|
+
progressButtons: c
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
e as container,
|
|
10
|
-
|
|
11
|
+
n as content,
|
|
12
|
+
t as default,
|
|
11
13
|
o as heading,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
c as progressButtons,
|
|
15
|
+
_ as swiper,
|
|
16
|
+
s as swiperSlide
|
|
15
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Typography/Typography.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),a=require("./imageWithText.module.css.cjs.js"),o=({image:s,text:t,textAlign:i="left",title:l,description:r})=>e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:a.default.container,children:[e.jsx("div",{className:a.default.imageContainer,children:e.jsx("img",{src:s,alt:"background image",className:a.default.image})}),e.jsxs("div",{className:c.cn(a.default.content,{[a.default.textAlignLeft]:i==="left",[a.default.textAlignRight]:i==="right"}),children:[l&&r&&e.jsxs("div",{className:a.default.richTextContainer,children:[e.jsx(d.HighlightedTitle,{colorScheme:"dark",title:l,defaultVariant:"displayXs",mobileVariant:"headingLg"}),e.jsx(n.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",children:r})]}),t&&e.jsx("div",{className:a.default.textContainer,children:e.jsx(n.Typography,{defaultVariant:"displayXs",mobileVariant:"headingXs",children:t})})]})]})});exports.ImageWithText=o;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HighlightedTitle as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { cn as
|
|
1
|
+
import { jsx as i, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { HighlightedTitle as s } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
|
+
import { Typography as o } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { cn as d } from "../../utils/cn/cn.es.js";
|
|
5
5
|
import a from "./imageWithText.module.css.es.js";
|
|
6
|
-
const y = ({ image:
|
|
7
|
-
/* @__PURE__ */ i("div", { className: a.imageContainer, children: /* @__PURE__ */ i("img", { src:
|
|
6
|
+
const y = ({ image: m, text: r, textAlign: t = "left", title: n, description: l }) => /* @__PURE__ */ i("section", { className: a.root, children: /* @__PURE__ */ e("div", { className: a.container, children: [
|
|
7
|
+
/* @__PURE__ */ i("div", { className: a.imageContainer, children: /* @__PURE__ */ i("img", { src: m, alt: "background image", className: a.image }) }),
|
|
8
8
|
/* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
className:
|
|
11
|
+
className: d(a.content, {
|
|
12
12
|
[a.textAlignLeft]: t === "left",
|
|
13
13
|
[a.textAlignRight]: t === "right"
|
|
14
14
|
}),
|
|
15
15
|
children: [
|
|
16
|
-
|
|
16
|
+
n && l && /* @__PURE__ */ e("div", { className: a.richTextContainer, children: [
|
|
17
17
|
/* @__PURE__ */ i(
|
|
18
|
-
|
|
18
|
+
s,
|
|
19
19
|
{
|
|
20
20
|
colorScheme: "dark",
|
|
21
|
-
title:
|
|
21
|
+
title: n,
|
|
22
22
|
defaultVariant: "displayXs",
|
|
23
23
|
mobileVariant: "headingLg"
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ i(
|
|
26
|
+
/* @__PURE__ */ i(o, { defaultVariant: "bodyMd", mobileVariant: "bodySm", children: l })
|
|
27
27
|
] }),
|
|
28
|
-
r && /* @__PURE__ */ i("div", { className: a.textContainer, children: /* @__PURE__ */ i(
|
|
28
|
+
r && /* @__PURE__ */ i("div", { className: a.textContainer, children: /* @__PURE__ */ i(o, { defaultVariant: "displayXs", mobileVariant: "headingXs", children: r }) })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
|
-
] });
|
|
32
|
+
] }) });
|
|
33
33
|
export {
|
|
34
34
|
y as ImageWithText
|
|
35
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="imageWithText-module__root___Uq9G7",e="imageWithText-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="imageWithText-module__root___Uq9G7",e="imageWithText-module__container___aRFfK",i="imageWithText-module__content___IKyX1",n="imageWithText-module__textAlignLeft___nxRQf",o="imageWithText-module__textAlignRight___ldGBP",_="imageWithText-module__textContainer___m5Jfs",a="imageWithText-module__richTextContainer___ochKF",g="imageWithText-module__imageContainer___bcAmi",m="imageWithText-module__image___paWe4",r={root:t,container:e,content:i,textAlignLeft:n,textAlignRight:o,textContainer:_,richTextContainer:a,imageContainer:g,image:m};exports.container=e;exports.content=i;exports.default=r;exports.image=m;exports.imageContainer=g;exports.richTextContainer=a;exports.root=t;exports.textAlignLeft=n;exports.textAlignRight=o;exports.textContainer=_;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-
|
|
1
|
+
const t = "imageWithText-module__root___Uq9G7", e = "imageWithText-module__container___aRFfK", i = "imageWithText-module__content___IKyX1", n = "imageWithText-module__textAlignLeft___nxRQf", _ = "imageWithText-module__textAlignRight___ldGBP", o = "imageWithText-module__textContainer___m5Jfs", a = "imageWithText-module__richTextContainer___ochKF", m = "imageWithText-module__imageContainer___bcAmi", g = "imageWithText-module__image___paWe4", x = {
|
|
2
2
|
root: t,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
container: e,
|
|
4
|
+
content: i,
|
|
5
|
+
textAlignLeft: n,
|
|
6
|
+
textAlignRight: _,
|
|
7
|
+
textContainer: o,
|
|
8
|
+
richTextContainer: a,
|
|
9
|
+
imageContainer: m,
|
|
10
|
+
image: g
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
e as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
e as container,
|
|
14
|
+
i as content,
|
|
15
|
+
x as default,
|
|
16
|
+
g as image,
|
|
17
|
+
m as imageContainer,
|
|
18
|
+
a as richTextContainer,
|
|
17
19
|
t as root,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
n as textAlignLeft,
|
|
21
|
+
_ as textAlignRight,
|
|
22
|
+
o as textContainer
|
|
21
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("../../components/ComplexImageCarousel/ComplexImageCarousel.cjs.js"),t=require("./longevityPathways.module.css.cjs.js"),r=({view:a,label:n,title:l,carousel:i})=>e.jsxs("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("../../components/ComplexImageCarousel/ComplexImageCarousel.cjs.js"),t=require("./longevityPathways.module.css.cjs.js"),r=({view:a,label:n,title:l,carousel:i})=>e.jsxs("section",{className:t.default.root,children:[e.jsx("div",{className:t.default.header,children:e.jsx(s.HighlightedTitle,{title:l,className:t.default.title,defaultVariant:"displayMd",mobileVariant:"headingXl"})}),e.jsx(o.ComplexImageCarousel,{images:i,view:a})]});exports.LongevityPathways=r;
|
|
@@ -2,18 +2,18 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { HighlightedTitle as o } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
3
|
import { ComplexImageCarousel as s } from "../../components/ComplexImageCarousel/ComplexImageCarousel.es.js";
|
|
4
4
|
import a from "./longevityPathways.module.css.es.js";
|
|
5
|
-
const
|
|
5
|
+
const p = ({ view: i, label: m, title: t, carousel: r }) => /* @__PURE__ */ l("section", { className: a.root, children: [
|
|
6
6
|
/* @__PURE__ */ e("div", { className: a.header, children: /* @__PURE__ */ e(
|
|
7
7
|
o,
|
|
8
8
|
{
|
|
9
|
-
title:
|
|
9
|
+
title: t,
|
|
10
10
|
className: a.title,
|
|
11
11
|
defaultVariant: "displayMd",
|
|
12
12
|
mobileVariant: "headingXl"
|
|
13
13
|
}
|
|
14
14
|
) }),
|
|
15
|
-
/* @__PURE__ */ e(s, { images:
|
|
15
|
+
/* @__PURE__ */ e(s, { images: r, view: i })
|
|
16
16
|
] });
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
p as LongevityPathways
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),T=require("../../components/ProductGallery/ProductGallery.cjs.js"),g=require("../../components/ProductGalleryCard/ProductGalleryCard.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),q=require("./components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js"),s=require("./productsDisplay.module.css.cjs.js"),j=require("./useProductsData.cjs.js"),x=({labelText:d,productDisplays:u})=>{var l;const{isTabbed:t,title:n,description:y,tabs:a,slidesByTabs:o}=j.useProductsData({productDisplays:u}),[r,p]=c.useState(((l=a[0])==null?void 0:l.value)??""),b=c.useMemo(()=>(o[r]??[]).map((m,P)=>e.jsx(g.ProductGalleryCard,{...m},P)),[r,o]),h=t?e.jsx(q.ProductsDisplayTabs,{label:d,tabs:a,activeTab:r,onTabChange:p}):e.jsxs("div",{className:s.default.header,children:[e.jsx(i.Typography,{className:s.default.headerTitle,defaultVariant:"displayMd",mobileVariant:"headingLg",children:n}),e.jsx(i.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",children:y})]});return e.jsx("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),T=require("../../components/ProductGallery/ProductGallery.cjs.js"),g=require("../../components/ProductGalleryCard/ProductGalleryCard.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),q=require("./components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js"),s=require("./productsDisplay.module.css.cjs.js"),j=require("./useProductsData.cjs.js"),x=({labelText:d,productDisplays:u})=>{var l;const{isTabbed:t,title:n,description:y,tabs:a,slidesByTabs:o}=j.useProductsData({productDisplays:u}),[r,p]=c.useState(((l=a[0])==null?void 0:l.value)??""),b=c.useMemo(()=>(o[r]??[]).map((m,P)=>e.jsx(g.ProductGalleryCard,{...m},P)),[r,o]),h=t?e.jsx(q.ProductsDisplayTabs,{label:d,tabs:a,activeTab:r,onTabChange:p}):e.jsxs("div",{className:s.default.header,children:[e.jsx(i.Typography,{className:s.default.headerTitle,defaultVariant:"displayMd",mobileVariant:"headingLg",children:n}),e.jsx(i.Typography,{defaultVariant:"bodyLg",mobileVariant:"bodySm",children:y})]});return e.jsx("section",{className:s.default.root,children:e.jsx(T.ProductGallery,{header:h,slides:b,isTabbed:t})})};exports.ProductsDisplay=x;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
3
3
|
import { useState as T, useMemo as g } from "react";
|
|
4
|
-
import { ProductGallery as
|
|
5
|
-
import { ProductGalleryCard as
|
|
4
|
+
import { ProductGallery as P } from "../../components/ProductGallery/ProductGallery.es.js";
|
|
5
|
+
import { ProductGalleryCard as v } from "../../components/ProductGalleryCard/ProductGalleryCard.es.js";
|
|
6
6
|
import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
7
7
|
import { ProductsDisplayTabs as V } from "./components/ProductsDisplayTabs/ProductsDisplayTabs.es.js";
|
|
8
8
|
import r from "./productsDisplay.module.css.es.js";
|
|
@@ -11,11 +11,11 @@ const B = ({ labelText: d, productDisplays: m }) => {
|
|
|
11
11
|
var i;
|
|
12
12
|
const { isTabbed: a, title: c, description: n, tabs: s, slidesByTabs: o } = x({
|
|
13
13
|
productDisplays: m
|
|
14
|
-
}), [e, p] = T(((i = s[0]) == null ? void 0 : i.value) ?? ""), u = g(() => (o[e] ?? []).map((y, f) => /* @__PURE__ */ t(
|
|
14
|
+
}), [e, p] = T(((i = s[0]) == null ? void 0 : i.value) ?? ""), u = g(() => (o[e] ?? []).map((y, f) => /* @__PURE__ */ t(v, { ...y }, f)), [e, o]), b = a ? /* @__PURE__ */ t(V, { label: d, tabs: s, activeTab: e, onTabChange: p }) : /* @__PURE__ */ h("div", { className: r.header, children: [
|
|
15
15
|
/* @__PURE__ */ t(l, { className: r.headerTitle, defaultVariant: "displayMd", mobileVariant: "headingLg", children: c }),
|
|
16
16
|
/* @__PURE__ */ t(l, { defaultVariant: "bodyLg", mobileVariant: "bodySm", children: n })
|
|
17
17
|
] });
|
|
18
|
-
return /* @__PURE__ */ t("
|
|
18
|
+
return /* @__PURE__ */ t("section", { className: r.root, children: /* @__PURE__ */ t(P, { header: b, slides: u, isTabbed: a }) });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
21
|
B as ProductsDisplay
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="productsDisplayTabs-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="productsDisplayTabs-module__header___nO8ge",l="productsDisplayTabs-module__label___yoPVH",a={header:e,label:l};exports.default=a;exports.header=e;exports.label=l;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const e = "productsDisplayTabs-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const e = "productsDisplayTabs-module__header___nO8ge", a = "productsDisplayTabs-module__label___yoPVH", l = {
|
|
2
|
+
header: e,
|
|
3
|
+
label: a
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
6
|
l as default,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
e as header,
|
|
8
|
+
a as label
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),x=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),R=require("../../node_modules/@gsap/react/src/index.cjs.js"),q=require("../../pageComponents/Bubbles/Bubbles.cjs.js"),C=require("../../pageComponents/Gradient/Gradient.cjs.js"),T=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),_=require("../../utils/cn/cn.cjs.js"),b=require("../../components/Typography/Typography.cjs.js"),B=require("../../components/Icon/Icon.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js");x.gsap.registerPlugin(p.Flip);const S=({title:y,tabs:o,withBubbles:j,withGradient:v})=>{const s=f.useRef(null),a=f.useRef(null),[l,h]=f.useState(o[0]);R.useGSAP(()=>{const i=s.current,n=a.current,u=r=>{if(i&&n&&r){const m=n.getBoundingClientRect(),g=r.getBoundingClientRect();x.gsap.set(i,{left:g.left-m.left,top:g.top-m.top,width:g.width,height:g.height})}};if(n&&n.children.length>1){const r=n.children[1];r&&u(r)}let c;const d=()=>{clearTimeout(c),c=setTimeout(()=>{if(i&&n&&n.children.length>1&&o.length>0){const r=n.children[1];r&&(u(r),h(o[0]))}},250)};return window.addEventListener("resize",d),()=>{clearTimeout(c),window.removeEventListener("resize",d)}},{dependencies:[o,h],scope:a});const N=(i,n)=>{if(i===l)return;const u=p.Flip.getState(s.current);if(h(i),s.current&&a.current&&a.current.children.length>n+1){const c=a.current.children[n+1];if(c){const d=a.current.getBoundingClientRect(),r=c.getBoundingClientRect();s.current.style.left=`${r.left-d.left}px`,s.current.style.top=`${r.top-d.top}px`,s.current.style.width=`${r.width}px`,s.current.style.height=`${r.height}px`}}p.Flip.from(u,{targets:s.current,duration:.3,ease:"power1.inOut"})};return e.jsxs("section",{className:t.default.root,children:[j&&e.jsx(q.Bubbles,{className:t.default.bubbles}),e.jsxs("div",{className:t.default.container,children:[e.jsx(T.HighlightedTitle,{as:"div",title:y,className:t.default.header,colorScheme:"dark"}),e.jsxs("div",{className:t.default.content,children:[l.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:l.image,alt:"Total Care",className:t.default.image})}),e.jsx("div",{className:t.default.tabsContainer,children:e.jsxs("div",{ref:a,className:t.default.tabs,children:[e.jsx("div",{ref:s,id:"marker",className:t.default.marker}),o.map((i,n)=>e.jsxs("button",{className:_.cn(t.default.tab,{[t.default.active]:l===i}),onClick:()=>N(i,n),children:[i.icon&&e.jsx(b.Typography,{defaultVariant:"displayMd",className:t.default.icon,children:e.jsx(B.Icon,{name:i.icon})}),e.jsx(b.Typography,{defaultVariant:"headingXs",children:i.label})]},i.label))]})}),l.description&&e.jsx("div",{className:t.default.description,children:e.jsx(T.HighlightedTitle,{as:"div",defaultVariant:"headingXs",mobileVariant:"bodyMd",className:t.default.descriptionText,title:l.description,colorScheme:"dark"})})]})]}),v&&e.jsx(C.Gradient,{variant:"blue"})]})};exports.SlidingTabsGallery=S;
|
|
@@ -3,7 +3,8 @@ import { TContentTab } from '../../components/ContentTabs';
|
|
|
3
3
|
|
|
4
4
|
export type SlidingTabsGalleryProps = {
|
|
5
5
|
title: ReactNode;
|
|
6
|
-
label: string;
|
|
7
6
|
tabs: ReadonlyArray<TContentTab>;
|
|
7
|
+
withBubbles?: boolean;
|
|
8
|
+
withGradient?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare const SlidingTabsGallery: ({ title, tabs }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SlidingTabsGallery: ({ title, tabs, withBubbles, withGradient }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,102 +1,106 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useRef as
|
|
4
|
-
import {
|
|
5
|
-
import e from "./SlidingTabsGallery.module.css.es.js";
|
|
6
|
-
import { cn as w } from "../../utils/cn/cn.es.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
/* empty css */
|
|
11
|
-
/* empty css */
|
|
12
|
-
import S from "../../styles/typography.module.css.es.js";
|
|
13
|
-
import { Icon as b } from "../../components/Icon/Icon.es.js";
|
|
14
|
-
import { gsap as y } from "../../node_modules/gsap/index.es.js";
|
|
2
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as v, useState as w } from "react";
|
|
4
|
+
import { gsap as N } from "../../node_modules/gsap/index.es.js";
|
|
15
5
|
import { Flip as f } from "../../node_modules/gsap/Flip.es.js";
|
|
16
|
-
import { useGSAP as
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const d = () => {
|
|
39
|
-
clearTimeout(a), a = setTimeout(() => {
|
|
40
|
-
if (t && r && r.children.length > 1 && l.length > 0) {
|
|
41
|
-
const i = r.children[1];
|
|
42
|
-
i && (m(i), u(l[0]));
|
|
6
|
+
import { useGSAP as B } from "../../node_modules/@gsap/react/src/index.es.js";
|
|
7
|
+
import { Bubbles as S } from "../../pageComponents/Bubbles/Bubbles.es.js";
|
|
8
|
+
import { Gradient as x } from "../../pageComponents/Gradient/Gradient.es.js";
|
|
9
|
+
import { HighlightedTitle as T } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
10
|
+
import { cn as z } from "../../utils/cn/cn.es.js";
|
|
11
|
+
import { Typography as b } from "../../components/Typography/Typography.es.js";
|
|
12
|
+
import { Icon as V } from "../../components/Icon/Icon.es.js";
|
|
13
|
+
import e from "./SlidingTabsGallery.module.css.es.js";
|
|
14
|
+
N.registerPlugin(f);
|
|
15
|
+
const I = ({ title: C, tabs: l, withBubbles: R, withGradient: y }) => {
|
|
16
|
+
const a = v(null), c = v(null), [o, p] = w(l[0]);
|
|
17
|
+
B(
|
|
18
|
+
() => {
|
|
19
|
+
const t = a.current, r = c.current, u = (i) => {
|
|
20
|
+
if (t && r && i) {
|
|
21
|
+
const g = r.getBoundingClientRect(), h = i.getBoundingClientRect();
|
|
22
|
+
N.set(t, {
|
|
23
|
+
left: h.left - g.left,
|
|
24
|
+
top: h.top - g.top,
|
|
25
|
+
width: h.width,
|
|
26
|
+
height: h.height
|
|
27
|
+
});
|
|
43
28
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
29
|
+
};
|
|
30
|
+
if (r && r.children.length > 1) {
|
|
31
|
+
const i = r.children[1];
|
|
32
|
+
i && u(i);
|
|
33
|
+
}
|
|
34
|
+
let s;
|
|
35
|
+
const d = () => {
|
|
36
|
+
clearTimeout(s), s = setTimeout(() => {
|
|
37
|
+
if (t && r && r.children.length > 1 && l.length > 0) {
|
|
38
|
+
const i = r.children[1];
|
|
39
|
+
i && (u(i), p(l[0]));
|
|
40
|
+
}
|
|
41
|
+
}, 250);
|
|
42
|
+
};
|
|
43
|
+
return window.addEventListener("resize", d), () => {
|
|
44
|
+
clearTimeout(s), window.removeEventListener("resize", d);
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
{ dependencies: [l, p], scope: c }
|
|
48
|
+
);
|
|
49
|
+
const k = (t, r) => {
|
|
50
|
+
if (t === o) return;
|
|
51
|
+
const u = f.getState(a.current);
|
|
52
|
+
if (p(t), a.current && c.current && c.current.children.length > r + 1) {
|
|
53
|
+
const s = c.current.children[r + 1];
|
|
54
|
+
if (s) {
|
|
55
|
+
const d = c.current.getBoundingClientRect(), i = s.getBoundingClientRect();
|
|
56
|
+
a.current.style.left = `${i.left - d.left}px`, a.current.style.top = `${i.top - d.top}px`, a.current.style.width = `${i.width}px`, a.current.style.height = `${i.height}px`;
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
|
-
f.from(
|
|
61
|
-
targets:
|
|
59
|
+
f.from(u, {
|
|
60
|
+
targets: a.current,
|
|
62
61
|
duration: 0.3,
|
|
63
62
|
ease: "power1.inOut"
|
|
64
63
|
});
|
|
65
64
|
};
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */ n(
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */ n("div", {
|
|
72
|
-
|
|
73
|
-
"
|
|
65
|
+
return /* @__PURE__ */ m("section", { className: e.root, children: [
|
|
66
|
+
R && /* @__PURE__ */ n(S, { className: e.bubbles }),
|
|
67
|
+
/* @__PURE__ */ m("div", { className: e.container, children: [
|
|
68
|
+
/* @__PURE__ */ n(T, { as: "div", title: C, className: e.header, colorScheme: "dark" }),
|
|
69
|
+
/* @__PURE__ */ m("div", { className: e.content, children: [
|
|
70
|
+
o.image && /* @__PURE__ */ n("div", { className: e.imageWrap, children: /* @__PURE__ */ n("img", { src: o.image, alt: "Total Care", className: e.image }) }),
|
|
71
|
+
/* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ m("div", { ref: c, className: e.tabs, children: [
|
|
72
|
+
/* @__PURE__ */ n("div", { ref: a, id: "marker", className: e.marker }),
|
|
73
|
+
l.map((t, r) => /* @__PURE__ */ m(
|
|
74
|
+
"button",
|
|
75
|
+
{
|
|
76
|
+
className: z(e.tab, {
|
|
77
|
+
[e.active]: o === t
|
|
78
|
+
}),
|
|
79
|
+
onClick: () => k(t, r),
|
|
80
|
+
children: [
|
|
81
|
+
t.icon && /* @__PURE__ */ n(b, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(V, { name: t.icon }) }),
|
|
82
|
+
/* @__PURE__ */ n(b, { defaultVariant: "headingXs", children: t.label })
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
t.label
|
|
86
|
+
))
|
|
87
|
+
] }) }),
|
|
88
|
+
o.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
|
|
89
|
+
T,
|
|
74
90
|
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
s.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
|
|
88
|
-
v,
|
|
89
|
-
{
|
|
90
|
-
as: "div",
|
|
91
|
-
defaultVariant: "headingXs",
|
|
92
|
-
className: e.descriptionText,
|
|
93
|
-
title: s.description,
|
|
94
|
-
colorScheme: "dark"
|
|
95
|
-
}
|
|
96
|
-
) })
|
|
97
|
-
] })
|
|
98
|
-
] }) });
|
|
91
|
+
as: "div",
|
|
92
|
+
defaultVariant: "headingXs",
|
|
93
|
+
mobileVariant: "bodyMd",
|
|
94
|
+
className: e.descriptionText,
|
|
95
|
+
title: o.description,
|
|
96
|
+
colorScheme: "dark"
|
|
97
|
+
}
|
|
98
|
+
) })
|
|
99
|
+
] })
|
|
100
|
+
] }),
|
|
101
|
+
y && /* @__PURE__ */ n(x, { variant: "blue" })
|
|
102
|
+
] });
|
|
99
103
|
};
|
|
100
104
|
export {
|
|
101
|
-
|
|
105
|
+
I as SlidingTabsGallery
|
|
102
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__container___vP0rd",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__bubbles___XumkJ",_="SlidingTabsGallery-module__container___vP0rd",l="SlidingTabsGallery-module__header___eJQXu",t="SlidingTabsGallery-module__content___jjd1o",i="SlidingTabsGallery-module__tabsContainer___Se1lx",n="SlidingTabsGallery-module__tabs___ZEKrF",o="SlidingTabsGallery-module__tab___Ztklx",r="SlidingTabsGallery-module__active___XatLw",s="SlidingTabsGallery-module__marker___c5lgj",d="SlidingTabsGallery-module__imageWrap___OWtqZ",b="SlidingTabsGallery-module__description___JBoEm",c="SlidingTabsGallery-module__image___E02Sh",m={root:e,bubbles:a,container:_,header:l,content:t,tabsContainer:i,tabs:n,tab:o,active:r,marker:s,imageWrap:d,description:b,image:c};exports.active=r;exports.bubbles=a;exports.container=_;exports.content=t;exports.default=m;exports.description=b;exports.header=l;exports.image=c;exports.imageWrap=d;exports.marker=s;exports.root=e;exports.tab=o;exports.tabs=n;exports.tabsContainer=i;
|