@zenpatient-org/healthspan-marketing-ui 0.2.48 → 0.2.50
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/AdvancedGallery/AdvancedGallery.cjs.js +1 -0
- package/dist/components/AdvancedGallery/AdvancedGallery.d.ts +7 -0
- package/dist/components/AdvancedGallery/AdvancedGallery.es.js +75 -0
- package/dist/components/AdvancedGallery/advancedGallery.module.css +64 -0
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.cjs.js +1 -0
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +9 -0
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.es.js +28 -0
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css +58 -0
- package/dist/components/AdvancedGallery/components/ImageGalleryPagination/index.d.ts +1 -0
- package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.cjs.js +1 -0
- package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.d.ts +13 -0
- package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.es.js +53 -0
- package/dist/components/AdvancedGallery/components/VideoSlide/videoSlide.module.css +49 -0
- package/dist/components/AdvancedGallery/components/index.d.ts +1 -0
- package/dist/components/AdvancedGallery/index.d.ts +2 -0
- package/dist/components/AdvancedGallery/types.d.ts +14 -0
- package/dist/components/AudioButton/AudioButton.cjs.js +1 -0
- package/dist/components/AudioButton/AudioButton.d.ts +7 -0
- package/dist/components/AudioButton/AudioButton.es.js +10 -0
- package/dist/components/AudioButton/audioButton.module.css +37 -0
- package/dist/components/AudioButton/index.d.ts +1 -0
- package/dist/components/Icon/constants.cjs.js +1 -1
- package/dist/components/Icon/constants.d.ts +3 -0
- package/dist/components/Icon/constants.es.js +4 -1
- package/dist/components/Icon/iconsMap.cjs.js +1 -1
- package/dist/components/Icon/iconsMap.es.js +150 -144
- package/dist/icons/action/alt-play.svg +3 -0
- package/dist/icons/action/alt-play.svg.cjs.js +1 -0
- package/dist/icons/action/alt-play.svg.es.js +5 -0
- package/dist/icons/action/audio.svg +15 -0
- package/dist/icons/action/audio.svg.cjs.js +7 -0
- package/dist/icons/action/audio.svg.es.js +11 -0
- package/dist/icons/action/mute.svg +16 -0
- package/dist/icons/action/mute.svg.cjs.js +7 -0
- package/dist/icons/action/mute.svg.es.js +11 -0
- package/dist/lib/useSwiper.d.ts +1 -0
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js +1 -1
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js +44 -42
- package/dist/modules/IndividualProductCardV2/types.d.ts +2 -0
- package/dist/modules/StillHaveQuestions/StillHaveQuestions.cjs.js +1 -0
- package/dist/modules/StillHaveQuestions/StillHaveQuestions.d.ts +17 -0
- package/dist/modules/StillHaveQuestions/StillHaveQuestions.es.js +52 -0
- package/dist/modules/StillHaveQuestions/constants.cjs.js +1 -0
- package/dist/modules/StillHaveQuestions/constants.d.ts +15 -0
- package/dist/modules/StillHaveQuestions/constants.es.js +36 -0
- package/dist/modules/StillHaveQuestions/index.d.ts +2 -0
- package/dist/{pageComponents → modules}/StillHaveQuestions/stillHaveQuestions.module.css +31 -28
- package/dist/utils/useSwiper/useSwiper.cjs.js +1 -1
- package/dist/utils/useSwiper/useSwiper.es.js +49 -48
- package/package.json +9 -4
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.cjs.js +0 -1
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +0 -5
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js +0 -52
- package/dist/pageComponents/StillHaveQuestions/assets/joinOurTeam.jpg.cjs.js +0 -1
- package/dist/pageComponents/StillHaveQuestions/assets/joinOurTeam.jpg.es.js +0 -4
- package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg +0 -0
- package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg.cjs.js +0 -1
- package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg.es.js +0 -4
- package/dist/pageComponents/StillHaveQuestions/index.d.ts +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type StillHaveQuestionsVariant = 'StillHaveQuestions' | 'JoinOurTeam';
|
|
4
|
+
export type StillHaveQuestionsProps = {
|
|
5
|
+
variant?: StillHaveQuestionsVariant;
|
|
6
|
+
image?: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
titleHighlight?: 'light' | 'dark';
|
|
9
|
+
description?: string;
|
|
10
|
+
button?: {
|
|
11
|
+
text: string;
|
|
12
|
+
link: string;
|
|
13
|
+
};
|
|
14
|
+
buttonColor?: 'secondary' | 'primary-invert' | 'primary';
|
|
15
|
+
colorScheme?: 'light' | 'dark';
|
|
16
|
+
};
|
|
17
|
+
export declare const StillHaveQuestions: ({ variant, image, title, titleHighlight, description, button, buttonColor, colorScheme, }: StillHaveQuestionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import i from "../../modules/StillHaveQuestions/stillHaveQuestions.module.css";
|
|
3
|
+
import { LEGACY_CONFIG as s } from "./constants.es.js";
|
|
4
|
+
import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
5
|
+
import { Button as g } from "../../components/Button/Button.es.js";
|
|
6
|
+
const k = ({
|
|
7
|
+
variant: o,
|
|
8
|
+
image: c,
|
|
9
|
+
title: a,
|
|
10
|
+
titleHighlight: n,
|
|
11
|
+
description: d,
|
|
12
|
+
button: m,
|
|
13
|
+
buttonColor: p,
|
|
14
|
+
colorScheme: h
|
|
15
|
+
}) => {
|
|
16
|
+
var r;
|
|
17
|
+
const t = o ? s[o] : a ? {
|
|
18
|
+
image: c || "https://methodical-vitality-96814f361f.media.strapiapp.com/still_Have_Questions_e6cfc3cba3.jpg",
|
|
19
|
+
title: a,
|
|
20
|
+
titleHighlight: n || "dark",
|
|
21
|
+
description: d,
|
|
22
|
+
button: m,
|
|
23
|
+
buttonColor: p || "secondary",
|
|
24
|
+
colorScheme: h || "dark"
|
|
25
|
+
} : s.StillHaveQuestions;
|
|
26
|
+
return /* @__PURE__ */ e("section", { className: i.root, "data-color-scheme": t.colorScheme, children: /* @__PURE__ */ e("div", { className: i.imageWrapper, style: { backgroundImage: `url(${t.image})` }, children: /* @__PURE__ */ u("div", { className: i.contentBox, children: [
|
|
27
|
+
/* @__PURE__ */ e("div", { className: i.title, "data-color-scheme": t.titleHighlight, children: /* @__PURE__ */ e(l, { as: "p", defaultVariant: "displayMd", mobileVariant: "displayXs", children: t.title }) }),
|
|
28
|
+
t.description && /* @__PURE__ */ e(
|
|
29
|
+
l,
|
|
30
|
+
{
|
|
31
|
+
className: i.description,
|
|
32
|
+
as: "p",
|
|
33
|
+
defaultVariant: "bodyLg",
|
|
34
|
+
mobileVariant: "bodyMd",
|
|
35
|
+
children: t.description
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
((r = t.button) == null ? void 0 : r.link) && /* @__PURE__ */ e("div", { className: i.button, children: /* @__PURE__ */ e(
|
|
39
|
+
g,
|
|
40
|
+
{
|
|
41
|
+
as: "a",
|
|
42
|
+
href: t.button.link,
|
|
43
|
+
variant: t.buttonColor || "secondary",
|
|
44
|
+
size: "lg",
|
|
45
|
+
children: t.button.text || "Contact Us"
|
|
46
|
+
}
|
|
47
|
+
) })
|
|
48
|
+
] }) }) });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
k as StillHaveQuestions
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e={StillHaveQuestions:{title:t.jsxs(t.Fragment,{children:["Still have ",t.jsx("b",{children:"questions?"})]}),button:{text:"Contact Us",link:"https://www.gethealthspan.com/contact-us"},image:"https://methodical-vitality-96814f361f.media.strapiapp.com/still_Have_Questions_e6cfc3cba3.jpg",titleHighlight:"light",description:"",buttonColor:"secondary",colorScheme:"light"},JoinOurTeam:{title:t.jsxs(t.Fragment,{children:["Have a passion for ",t.jsx("b",{children:"longevity science?"})]}),button:{text:"Join Our Team",link:"https://careers.gethealthspan.com/"},image:"https://methodical-vitality-96814f361f.media.strapiapp.com/join_Our_Team_32a787012e.jpg",titleHighlight:"light",description:"",buttonColor:"secondary",colorScheme:"light"}};exports.LEGACY_CONFIG=e;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StillHaveQuestionsVariant } from './StillHaveQuestions';
|
|
3
|
+
|
|
4
|
+
export declare const LEGACY_CONFIG: Record<StillHaveQuestionsVariant, {
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
button: {
|
|
7
|
+
text: string;
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
10
|
+
image: string;
|
|
11
|
+
titleHighlight: 'light' | 'dark';
|
|
12
|
+
description: string;
|
|
13
|
+
buttonColor: 'secondary' | 'primary-invert' | 'primary';
|
|
14
|
+
colorScheme: 'light' | 'dark';
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
const a = {
|
|
3
|
+
StillHaveQuestions: {
|
|
4
|
+
title: /* @__PURE__ */ t(e, { children: [
|
|
5
|
+
"Still have ",
|
|
6
|
+
/* @__PURE__ */ i("b", { children: "questions?" })
|
|
7
|
+
] }),
|
|
8
|
+
button: {
|
|
9
|
+
text: "Contact Us",
|
|
10
|
+
link: "https://www.gethealthspan.com/contact-us"
|
|
11
|
+
},
|
|
12
|
+
image: "https://methodical-vitality-96814f361f.media.strapiapp.com/still_Have_Questions_e6cfc3cba3.jpg",
|
|
13
|
+
titleHighlight: "light",
|
|
14
|
+
description: "",
|
|
15
|
+
buttonColor: "secondary",
|
|
16
|
+
colorScheme: "light"
|
|
17
|
+
},
|
|
18
|
+
JoinOurTeam: {
|
|
19
|
+
title: /* @__PURE__ */ t(e, { children: [
|
|
20
|
+
"Have a passion for ",
|
|
21
|
+
/* @__PURE__ */ i("b", { children: "longevity science?" })
|
|
22
|
+
] }),
|
|
23
|
+
button: {
|
|
24
|
+
text: "Join Our Team",
|
|
25
|
+
link: "https://careers.gethealthspan.com/"
|
|
26
|
+
},
|
|
27
|
+
image: "https://methodical-vitality-96814f361f.media.strapiapp.com/join_Our_Team_32a787012e.jpg",
|
|
28
|
+
titleHighlight: "light",
|
|
29
|
+
description: "",
|
|
30
|
+
buttonColor: "secondary",
|
|
31
|
+
colorScheme: "light"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
a as LEGACY_CONFIG
|
|
36
|
+
};
|
|
@@ -1,63 +1,66 @@
|
|
|
1
1
|
.root {
|
|
2
|
+
width: 100%;
|
|
2
3
|
display: flex;
|
|
3
4
|
align-items: center;
|
|
4
|
-
padding: 64px;
|
|
5
|
-
width: 100%;
|
|
6
5
|
justify-content: center;
|
|
6
|
+
padding: 64px;
|
|
7
|
+
justify-self: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.root[data-color-scheme='dark'] {
|
|
11
|
+
background-color: var(--color-bg-fill-primary);
|
|
7
12
|
}
|
|
8
13
|
|
|
9
14
|
.imageWrapper {
|
|
10
|
-
|
|
15
|
+
max-width: var(--content-max-width);
|
|
11
16
|
position: relative;
|
|
12
|
-
display: flex;
|
|
13
|
-
padding: 96px 64px;
|
|
14
17
|
border-radius: var(--border-radius-xl);
|
|
15
18
|
width: 100%;
|
|
16
|
-
|
|
17
|
-
background-position: center
|
|
18
|
-
background-size: 250%;
|
|
19
|
+
background-size: cover;
|
|
20
|
+
background-position: center;
|
|
19
21
|
background-repeat: no-repeat;
|
|
22
|
+
padding: 96px 64px;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
.contentBox {
|
|
23
|
-
position: relative;
|
|
24
26
|
display: flex;
|
|
25
|
-
|
|
26
|
-
text-align: center;
|
|
27
|
+
position: relative;
|
|
27
28
|
flex-direction: column;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
28
31
|
gap: 32px;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
.title,
|
|
35
|
+
.description {
|
|
36
|
+
text-align: center;
|
|
37
|
+
color: var(--color-text-primary-inverted);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.title[data-color-scheme='dark'] b,
|
|
41
|
+
.title[data-color-scheme='dark'] strong {
|
|
42
|
+
color: var(--color-text-primary-brand-solar);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.title[data-color-scheme='light'] b,
|
|
46
|
+
.title[data-color-scheme='light'] strong {
|
|
47
|
+
color: var(--color-text-primary-brand-indigo);
|
|
34
48
|
}
|
|
35
49
|
|
|
36
|
-
.
|
|
37
|
-
|
|
50
|
+
.description {
|
|
51
|
+
max-width: 730px;
|
|
38
52
|
}
|
|
39
53
|
|
|
40
|
-
@media
|
|
54
|
+
@media (width <= 768px) {
|
|
41
55
|
.root {
|
|
42
56
|
padding: 40px 20px;
|
|
43
57
|
}
|
|
44
58
|
|
|
45
59
|
.imageWrapper {
|
|
46
60
|
padding: 180px 28px;
|
|
47
|
-
border-radius: var(--border-radius-lg);
|
|
48
|
-
background-size: 300%;
|
|
49
61
|
}
|
|
50
62
|
|
|
51
63
|
.contentBox {
|
|
52
64
|
gap: 20px;
|
|
53
65
|
}
|
|
54
|
-
|
|
55
|
-
.joinOurTeam.imageWrapper {
|
|
56
|
-
padding: 120px 28px;
|
|
57
|
-
background-size: cover;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.joinOurTeam.contentBox {
|
|
61
|
-
gap: 32px;
|
|
62
|
-
}
|
|
63
66
|
}
|
|
@@ -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"),S=()=>{const[n,s]=t.useState(null),[u,o]=t.useState(0),[c,l]=t.useState(!0),[f,i]=t.useState(!1),[r,d]=t.useState(!1),[b,h]=t.useState(!1),a=t.useCallback(e=>{o(e.activeIndex),i(e.isEnd),l(e.isBeginning)},[]),k=t.useCallback(()=>{n&&(n.slidePrev(),a(n))},[n,a]),v=t.useCallback(()=>{n&&(n.slideNext(),a(n))},[n,a]),g=t.useCallback(e=>{n&&(n.slideTo(e),a(n))},[n,a]),C=e=>{s(e),d(e==null?void 0:e.isLocked),h(e==null?void 0:e.isLocked),a(e)},E=t.useCallback(e=>{i(e.isEnd),d(e==null?void 0:e.isLocked),h(e==null?void 0:e.isLocked),a(e)},[a]),y=t.useCallback(()=>{i(!0),l(!1)},[]),L=t.useCallback(()=>{l(!0),i(!1)},[]);return{swiper:n,setSwiper:s,activeIndex:u,setActiveIndex:o,isEnd:f,setIsEnd:i,hideNav:r,handleSlideChange:a,handlePrevClick:k,handleNextClick:v,handleSlideTo:g,onSwiperInit:C,handleSwiperResize:E,isBeginning:c,isLocked:b,setIsBeginning:l,handleReachEnd:y,handleReachBeginning:L}},I=(n=3e3)=>{const s=S(),[u,o]=t.useState(!0),c=t.useRef(null),l=t.useCallback(()=>{o(!1),c.current&&(clearInterval(c.current),c.current=null)},[]),f=t.useCallback(()=>{o(!0)},[]),i=t.useCallback(()=>{l()},[l]);return t.useEffect(()=>{if(!(!u||!s.swiper||s.swiper.slides.length<=1))return c.current=setInterval(()=>{s.swiper&&(s.isEnd?s.swiper.slideTo(0):s.swiper.slideNext())},n),()=>{c.current&&(clearInterval(c.current),c.current=null)}},[u,s.swiper,s.isEnd,n]),t.useEffect(()=>{const r=()=>l(),d=()=>{document.hidden&&l()};return window.addEventListener("beforeunload",r),document.addEventListener("visibilitychange",d),()=>{window.removeEventListener("beforeunload",r),document.removeEventListener("visibilitychange",d)}},[l]),{...s,isAutoPlay:u,stopAutoPlay:l,startAutoPlay:f,handleUserInteraction:i}};exports.useSwiper=S;exports.useSwiperWithAutoPlay=I;
|
|
@@ -1,78 +1,79 @@
|
|
|
1
|
-
import { useState as
|
|
1
|
+
import { useState as d, useCallback as o, useRef as y, useEffect as g } from "react";
|
|
2
2
|
const A = () => {
|
|
3
|
-
const [n, t] =
|
|
4
|
-
a(e.activeIndex),
|
|
5
|
-
}, []),
|
|
6
|
-
n && (n.slidePrev(),
|
|
7
|
-
}, [n,
|
|
8
|
-
n && (n.slideNext(),
|
|
9
|
-
}, [n,
|
|
3
|
+
const [n, t] = d(null), [r, a] = d(0), [c, s] = d(!0), [h, l] = d(!1), [f, u] = d(!1), [E, v] = d(!1), i = o((e) => {
|
|
4
|
+
a(e.activeIndex), l(e.isEnd), s(e.isBeginning);
|
|
5
|
+
}, []), L = o(() => {
|
|
6
|
+
n && (n.slidePrev(), i(n));
|
|
7
|
+
}, [n, i]), k = o(() => {
|
|
8
|
+
n && (n.slideNext(), i(n));
|
|
9
|
+
}, [n, i]), I = o(
|
|
10
10
|
(e) => {
|
|
11
|
-
n && (n.slideTo(e),
|
|
11
|
+
n && (n.slideTo(e), i(n));
|
|
12
12
|
},
|
|
13
|
-
[n,
|
|
14
|
-
),
|
|
15
|
-
t(e), u(e == null ? void 0 : e.isLocked),
|
|
16
|
-
},
|
|
13
|
+
[n, i]
|
|
14
|
+
), S = (e) => {
|
|
15
|
+
t(e), u(e == null ? void 0 : e.isLocked), v(e == null ? void 0 : e.isLocked), i(e);
|
|
16
|
+
}, m = o(
|
|
17
17
|
(e) => {
|
|
18
|
-
|
|
18
|
+
l(e.isEnd), u(e == null ? void 0 : e.isLocked), v(e == null ? void 0 : e.isLocked), i(e);
|
|
19
19
|
},
|
|
20
|
-
[
|
|
21
|
-
), b =
|
|
22
|
-
|
|
23
|
-
}, []), x =
|
|
24
|
-
|
|
20
|
+
[i]
|
|
21
|
+
), b = o(() => {
|
|
22
|
+
l(!0), s(!1);
|
|
23
|
+
}, []), x = o(() => {
|
|
24
|
+
s(!0), l(!1);
|
|
25
25
|
}, []);
|
|
26
26
|
return {
|
|
27
27
|
swiper: n,
|
|
28
28
|
setSwiper: t,
|
|
29
|
-
activeIndex:
|
|
29
|
+
activeIndex: r,
|
|
30
30
|
setActiveIndex: a,
|
|
31
31
|
isEnd: h,
|
|
32
|
-
setIsEnd:
|
|
32
|
+
setIsEnd: l,
|
|
33
33
|
hideNav: f,
|
|
34
|
-
handleSlideChange:
|
|
35
|
-
handlePrevClick:
|
|
36
|
-
handleNextClick:
|
|
37
|
-
handleSlideTo:
|
|
38
|
-
onSwiperInit:
|
|
39
|
-
handleSwiperResize:
|
|
40
|
-
isBeginning:
|
|
41
|
-
|
|
34
|
+
handleSlideChange: i,
|
|
35
|
+
handlePrevClick: L,
|
|
36
|
+
handleNextClick: k,
|
|
37
|
+
handleSlideTo: I,
|
|
38
|
+
onSwiperInit: S,
|
|
39
|
+
handleSwiperResize: m,
|
|
40
|
+
isBeginning: c,
|
|
41
|
+
isLocked: E,
|
|
42
|
+
setIsBeginning: s,
|
|
42
43
|
handleReachEnd: b,
|
|
43
44
|
handleReachBeginning: x
|
|
44
45
|
};
|
|
45
|
-
},
|
|
46
|
-
const t = A(), [
|
|
47
|
-
a(!1),
|
|
48
|
-
}, []), h =
|
|
46
|
+
}, B = (n = 3e3) => {
|
|
47
|
+
const t = A(), [r, a] = d(!0), c = y(null), s = o(() => {
|
|
48
|
+
a(!1), c.current && (clearInterval(c.current), c.current = null);
|
|
49
|
+
}, []), h = o(() => {
|
|
49
50
|
a(!0);
|
|
50
|
-
}, []),
|
|
51
|
-
|
|
52
|
-
}, [
|
|
53
|
-
return
|
|
54
|
-
if (!(!
|
|
55
|
-
return
|
|
51
|
+
}, []), l = o(() => {
|
|
52
|
+
s();
|
|
53
|
+
}, [s]);
|
|
54
|
+
return g(() => {
|
|
55
|
+
if (!(!r || !t.swiper || t.swiper.slides.length <= 1))
|
|
56
|
+
return c.current = setInterval(() => {
|
|
56
57
|
t.swiper && (t.isEnd ? t.swiper.slideTo(0) : t.swiper.slideNext());
|
|
57
58
|
}, n), () => {
|
|
58
|
-
|
|
59
|
+
c.current && (clearInterval(c.current), c.current = null);
|
|
59
60
|
};
|
|
60
|
-
}, [
|
|
61
|
-
const f = () =>
|
|
62
|
-
document.hidden &&
|
|
61
|
+
}, [r, t.swiper, t.isEnd, n]), g(() => {
|
|
62
|
+
const f = () => s(), u = () => {
|
|
63
|
+
document.hidden && s();
|
|
63
64
|
};
|
|
64
65
|
return window.addEventListener("beforeunload", f), document.addEventListener("visibilitychange", u), () => {
|
|
65
66
|
window.removeEventListener("beforeunload", f), document.removeEventListener("visibilitychange", u);
|
|
66
67
|
};
|
|
67
|
-
}, [
|
|
68
|
+
}, [s]), {
|
|
68
69
|
...t,
|
|
69
|
-
isAutoPlay:
|
|
70
|
-
stopAutoPlay:
|
|
70
|
+
isAutoPlay: r,
|
|
71
|
+
stopAutoPlay: s,
|
|
71
72
|
startAutoPlay: h,
|
|
72
|
-
handleUserInteraction:
|
|
73
|
+
handleUserInteraction: l
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
76
|
export {
|
|
76
77
|
A as useSwiper,
|
|
77
|
-
|
|
78
|
+
B as useSwiperWithAutoPlay
|
|
78
79
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenpatient-org/healthspan-marketing-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.50",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -261,6 +261,11 @@
|
|
|
261
261
|
"import": "./dist/components/Accordion/Accordion.es.js",
|
|
262
262
|
"require": "./dist/components/Accordion/Accordion.cjs.js"
|
|
263
263
|
},
|
|
264
|
+
"./AdvancedGallery": {
|
|
265
|
+
"types": "./dist/components/AdvancedGallery/AdvancedGallery.d.ts",
|
|
266
|
+
"import": "./dist/components/AdvancedGallery/AdvancedGallery.es.js",
|
|
267
|
+
"require": "./dist/components/AdvancedGallery/AdvancedGallery.cjs.js"
|
|
268
|
+
},
|
|
264
269
|
"./FAQComponent": {
|
|
265
270
|
"types": "./dist/components/FAQComponent/FAQComponent.d.ts",
|
|
266
271
|
"import": "./dist/components/FAQComponent/FAQComponent.es.js",
|
|
@@ -642,9 +647,9 @@
|
|
|
642
647
|
"require": "./dist/pageComponents/Gradient/Gradient.cjs.js"
|
|
643
648
|
},
|
|
644
649
|
"./StillHaveQuestions": {
|
|
645
|
-
"types": "./dist/
|
|
646
|
-
"import": "./dist/
|
|
647
|
-
"require": "./dist/
|
|
650
|
+
"types": "./dist/modules/StillHaveQuestions/StillHaveQuestions.d.ts",
|
|
651
|
+
"import": "./dist/modules/StillHaveQuestions/StillHaveQuestions.es.js",
|
|
652
|
+
"require": "./dist/modules/StillHaveQuestions/StillHaveQuestions.cjs.js"
|
|
648
653
|
},
|
|
649
654
|
"./HomepageHero": {
|
|
650
655
|
"types": "./dist/pageComponents/HomepageHero/HomepageHero.d.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../components/Button/Button.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),t=require("../../src/pageComponents/StillHaveQuestions/stillHaveQuestions.module.css"),u=require("./assets/stillHaveQuestions.jpg.cjs.js"),d=require("./assets/joinOurTeam.jpg.cjs.js"),m=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),h=require("../../components/Typography/Typography.cjs.js"),g=({variant:i="StillHaveQuestions"})=>{const s={StillHaveQuestions:{title:e.jsxs(e.Fragment,{children:["Still have ",e.jsx("b",{children:"questions?"})]}),buttonText:"Contact Us",buttonLink:"/contact-us",image:u.default},JoinOurTeam:{title:e.jsxs(e.Fragment,{children:["Have a passion for ",e.jsx("b",{children:"longevity science?"})]}),buttonText:"Join Our Team",buttonLink:"https://careers.gethealthspan.com/",image:d.default}},{title:o,buttonText:r,buttonLink:a,image:l}=s[i];return e.jsx("section",{className:t.root,children:e.jsx("div",{className:n.cn(t.imageWrapper,{[t.joinOurTeam]:i==="JoinOurTeam"}),style:{backgroundImage:`url(${l})`},children:e.jsxs("div",{className:n.cn(t.contentBox,{[t.joinOurTeam]:i==="JoinOurTeam"}),children:[e.jsx(m.HighlightedTitle,{colorScheme:"dark",title:e.jsx(h.Typography,{as:"p",defaultVariant:"displayMd",mobileVariant:"displayXs",children:o})}),e.jsx("div",{className:t.actions,children:e.jsx(c.Button,{as:"a",href:a,variant:"secondary",size:"lg",children:r})})]})})})};exports.StillHaveQuestions=g;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export interface StillHaveQuestionsProps {
|
|
2
|
-
variant?: StillHaveQuestionsVariant;
|
|
3
|
-
}
|
|
4
|
-
export type StillHaveQuestionsVariant = 'StillHaveQuestions' | 'JoinOurTeam';
|
|
5
|
-
export declare const StillHaveQuestions: ({ variant }: StillHaveQuestionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as t, Fragment as n } from "react/jsx-runtime";
|
|
2
|
-
import { Button as u } from "../../components/Button/Button.es.js";
|
|
3
|
-
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
4
|
-
import e from "../../pageComponents/StillHaveQuestions/stillHaveQuestions.module.css";
|
|
5
|
-
import d from "./assets/stillHaveQuestions.jpg.es.js";
|
|
6
|
-
import h from "./assets/joinOurTeam.jpg.es.js";
|
|
7
|
-
import { HighlightedTitle as p } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
8
|
-
import { Typography as g } from "../../components/Typography/Typography.es.js";
|
|
9
|
-
const H = ({ variant: i = "StillHaveQuestions" }) => {
|
|
10
|
-
const a = {
|
|
11
|
-
StillHaveQuestions: {
|
|
12
|
-
title: /* @__PURE__ */ o(n, { children: [
|
|
13
|
-
"Still have ",
|
|
14
|
-
/* @__PURE__ */ t("b", { children: "questions?" })
|
|
15
|
-
] }),
|
|
16
|
-
buttonText: "Contact Us",
|
|
17
|
-
buttonLink: "/contact-us",
|
|
18
|
-
image: d
|
|
19
|
-
},
|
|
20
|
-
JoinOurTeam: {
|
|
21
|
-
title: /* @__PURE__ */ o(n, { children: [
|
|
22
|
-
"Have a passion for ",
|
|
23
|
-
/* @__PURE__ */ t("b", { children: "longevity science?" })
|
|
24
|
-
] }),
|
|
25
|
-
buttonText: "Join Our Team",
|
|
26
|
-
buttonLink: "https://careers.gethealthspan.com/",
|
|
27
|
-
image: h
|
|
28
|
-
}
|
|
29
|
-
}, { title: s, buttonText: l, buttonLink: m, image: c } = a[i];
|
|
30
|
-
return /* @__PURE__ */ t("section", { className: e.root, children: /* @__PURE__ */ t(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
className: r(e.imageWrapper, { [e.joinOurTeam]: i === "JoinOurTeam" }),
|
|
34
|
-
style: {
|
|
35
|
-
backgroundImage: `url(${c})`
|
|
36
|
-
},
|
|
37
|
-
children: /* @__PURE__ */ o("div", { className: r(e.contentBox, { [e.joinOurTeam]: i === "JoinOurTeam" }), children: [
|
|
38
|
-
/* @__PURE__ */ t(
|
|
39
|
-
p,
|
|
40
|
-
{
|
|
41
|
-
colorScheme: "dark",
|
|
42
|
-
title: /* @__PURE__ */ t(g, { as: "p", defaultVariant: "displayMd", mobileVariant: "displayXs", children: s })
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
/* @__PURE__ */ t("div", { className: e.actions, children: /* @__PURE__ */ t(u, { as: "a", href: m, variant: "secondary", size: "lg", children: l }) })
|
|
46
|
-
] })
|
|
47
|
-
}
|
|
48
|
-
) });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
H as StillHaveQuestions
|
|
52
|
-
};
|