@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.
Files changed (59) hide show
  1. package/dist/components/AdvancedGallery/AdvancedGallery.cjs.js +1 -0
  2. package/dist/components/AdvancedGallery/AdvancedGallery.d.ts +7 -0
  3. package/dist/components/AdvancedGallery/AdvancedGallery.es.js +75 -0
  4. package/dist/components/AdvancedGallery/advancedGallery.module.css +64 -0
  5. package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.cjs.js +1 -0
  6. package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +9 -0
  7. package/dist/components/AdvancedGallery/components/ImageGalleryPagination/ImageGalleryPagination.es.js +28 -0
  8. package/dist/components/AdvancedGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css +58 -0
  9. package/dist/components/AdvancedGallery/components/ImageGalleryPagination/index.d.ts +1 -0
  10. package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.cjs.js +1 -0
  11. package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.d.ts +13 -0
  12. package/dist/components/AdvancedGallery/components/VideoSlide/VideoSlide.es.js +53 -0
  13. package/dist/components/AdvancedGallery/components/VideoSlide/videoSlide.module.css +49 -0
  14. package/dist/components/AdvancedGallery/components/index.d.ts +1 -0
  15. package/dist/components/AdvancedGallery/index.d.ts +2 -0
  16. package/dist/components/AdvancedGallery/types.d.ts +14 -0
  17. package/dist/components/AudioButton/AudioButton.cjs.js +1 -0
  18. package/dist/components/AudioButton/AudioButton.d.ts +7 -0
  19. package/dist/components/AudioButton/AudioButton.es.js +10 -0
  20. package/dist/components/AudioButton/audioButton.module.css +37 -0
  21. package/dist/components/AudioButton/index.d.ts +1 -0
  22. package/dist/components/Icon/constants.cjs.js +1 -1
  23. package/dist/components/Icon/constants.d.ts +3 -0
  24. package/dist/components/Icon/constants.es.js +4 -1
  25. package/dist/components/Icon/iconsMap.cjs.js +1 -1
  26. package/dist/components/Icon/iconsMap.es.js +150 -144
  27. package/dist/icons/action/alt-play.svg +3 -0
  28. package/dist/icons/action/alt-play.svg.cjs.js +1 -0
  29. package/dist/icons/action/alt-play.svg.es.js +5 -0
  30. package/dist/icons/action/audio.svg +15 -0
  31. package/dist/icons/action/audio.svg.cjs.js +7 -0
  32. package/dist/icons/action/audio.svg.es.js +11 -0
  33. package/dist/icons/action/mute.svg +16 -0
  34. package/dist/icons/action/mute.svg.cjs.js +7 -0
  35. package/dist/icons/action/mute.svg.es.js +11 -0
  36. package/dist/lib/useSwiper.d.ts +1 -0
  37. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js +1 -1
  38. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js +44 -42
  39. package/dist/modules/IndividualProductCardV2/types.d.ts +2 -0
  40. package/dist/modules/StillHaveQuestions/StillHaveQuestions.cjs.js +1 -0
  41. package/dist/modules/StillHaveQuestions/StillHaveQuestions.d.ts +17 -0
  42. package/dist/modules/StillHaveQuestions/StillHaveQuestions.es.js +52 -0
  43. package/dist/modules/StillHaveQuestions/constants.cjs.js +1 -0
  44. package/dist/modules/StillHaveQuestions/constants.d.ts +15 -0
  45. package/dist/modules/StillHaveQuestions/constants.es.js +36 -0
  46. package/dist/modules/StillHaveQuestions/index.d.ts +2 -0
  47. package/dist/{pageComponents → modules}/StillHaveQuestions/stillHaveQuestions.module.css +31 -28
  48. package/dist/utils/useSwiper/useSwiper.cjs.js +1 -1
  49. package/dist/utils/useSwiper/useSwiper.es.js +49 -48
  50. package/package.json +9 -4
  51. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.cjs.js +0 -1
  52. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +0 -5
  53. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js +0 -52
  54. package/dist/pageComponents/StillHaveQuestions/assets/joinOurTeam.jpg.cjs.js +0 -1
  55. package/dist/pageComponents/StillHaveQuestions/assets/joinOurTeam.jpg.es.js +0 -4
  56. package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg +0 -0
  57. package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg.cjs.js +0 -1
  58. package/dist/pageComponents/StillHaveQuestions/assets/stillHaveQuestions.jpg.es.js +0 -4
  59. 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
+ };
@@ -0,0 +1,2 @@
1
+ export { StillHaveQuestions } from './StillHaveQuestions';
2
+ export type { StillHaveQuestionsProps, StillHaveQuestionsVariant } from './StillHaveQuestions';
@@ -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
- justify-content: center;
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
- max-width: var(--content-max-width);
17
- background-position: center 45%;
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
- align-items: center;
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
- .joinOurTeam.imageWrapper {
32
- background-size: cover;
33
- background-position: center center;
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
- .joinOurTeam.contentBox {
37
- gap: 36px;
50
+ .description {
51
+ max-width: 730px;
38
52
  }
39
53
 
40
- @media screen and (width <= 768px) {
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 e=require("react"),h=()=>{const[n,s]=e.useState(null),[u,r]=e.useState(0),[a,l]=e.useState(!0),[f,c]=e.useState(!1),[d,o]=e.useState(!1),i=e.useCallback(t=>{r(t.activeIndex),c(t.isEnd),l(t.isBeginning)},[]),b=e.useCallback(()=>{n&&(n.slidePrev(),i(n))},[n,i]),v=e.useCallback(()=>{n&&(n.slideNext(),i(n))},[n,i]),S=e.useCallback(t=>{n&&(n.slideTo(t),i(n))},[n,i]),g=t=>{s(t),o(t==null?void 0:t.isLocked),i(t)},k=e.useCallback(t=>{c(t.isEnd),o(t==null?void 0:t.isLocked),i(t)},[i]),C=e.useCallback(()=>{c(!0),l(!1)},[]),E=e.useCallback(()=>{l(!0),c(!1)},[]);return{swiper:n,setSwiper:s,activeIndex:u,setActiveIndex:r,isEnd:f,setIsEnd:c,hideNav:d,handleSlideChange:i,handlePrevClick:b,handleNextClick:v,handleSlideTo:S,onSwiperInit:g,handleSwiperResize:k,isBeginning:a,setIsBeginning:l,handleReachEnd:C,handleReachBeginning:E}},y=(n=3e3)=>{const s=h(),[u,r]=e.useState(!0),a=e.useRef(null),l=e.useCallback(()=>{r(!1),a.current&&(clearInterval(a.current),a.current=null)},[]),f=e.useCallback(()=>{r(!0)},[]),c=e.useCallback(()=>{l()},[l]);return e.useEffect(()=>{if(!(!u||!s.swiper||s.swiper.slides.length<=1))return a.current=setInterval(()=>{s.swiper&&(s.isEnd?s.swiper.slideTo(0):s.swiper.slideNext())},n),()=>{a.current&&(clearInterval(a.current),a.current=null)}},[u,s.swiper,s.isEnd,n]),e.useEffect(()=>{const d=()=>l(),o=()=>{document.hidden&&l()};return window.addEventListener("beforeunload",d),document.addEventListener("visibilitychange",o),()=>{window.removeEventListener("beforeunload",d),document.removeEventListener("visibilitychange",o)}},[l]),{...s,isAutoPlay:u,stopAutoPlay:l,startAutoPlay:f,handleUserInteraction:c}};exports.useSwiper=h;exports.useSwiperWithAutoPlay=y;
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 c, useCallback as r, useRef as y, useEffect as v } from "react";
1
+ import { useState as d, useCallback as o, useRef as y, useEffect as g } from "react";
2
2
  const A = () => {
3
- const [n, t] = c(null), [d, a] = c(0), [l, i] = c(!0), [h, o] = c(!1), [f, u] = c(!1), s = r((e) => {
4
- a(e.activeIndex), o(e.isEnd), i(e.isBeginning);
5
- }, []), g = r(() => {
6
- n && (n.slidePrev(), s(n));
7
- }, [n, s]), E = r(() => {
8
- n && (n.slideNext(), s(n));
9
- }, [n, s]), S = r(
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), s(n));
11
+ n && (n.slideTo(e), i(n));
12
12
  },
13
- [n, s]
14
- ), m = (e) => {
15
- t(e), u(e == null ? void 0 : e.isLocked), s(e);
16
- }, I = r(
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
- o(e.isEnd), u(e == null ? void 0 : e.isLocked), s(e);
18
+ l(e.isEnd), u(e == null ? void 0 : e.isLocked), v(e == null ? void 0 : e.isLocked), i(e);
19
19
  },
20
- [s]
21
- ), b = r(() => {
22
- o(!0), i(!1);
23
- }, []), x = r(() => {
24
- i(!0), o(!1);
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: d,
29
+ activeIndex: r,
30
30
  setActiveIndex: a,
31
31
  isEnd: h,
32
- setIsEnd: o,
32
+ setIsEnd: l,
33
33
  hideNav: f,
34
- handleSlideChange: s,
35
- handlePrevClick: g,
36
- handleNextClick: E,
37
- handleSlideTo: S,
38
- onSwiperInit: m,
39
- handleSwiperResize: I,
40
- isBeginning: l,
41
- setIsBeginning: i,
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
- }, P = (n = 3e3) => {
46
- const t = A(), [d, a] = c(!0), l = y(null), i = r(() => {
47
- a(!1), l.current && (clearInterval(l.current), l.current = null);
48
- }, []), h = r(() => {
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
- }, []), o = r(() => {
51
- i();
52
- }, [i]);
53
- return v(() => {
54
- if (!(!d || !t.swiper || t.swiper.slides.length <= 1))
55
- return l.current = setInterval(() => {
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
- l.current && (clearInterval(l.current), l.current = null);
59
+ c.current && (clearInterval(c.current), c.current = null);
59
60
  };
60
- }, [d, t.swiper, t.isEnd, n]), v(() => {
61
- const f = () => i(), u = () => {
62
- document.hidden && i();
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
- }, [i]), {
68
+ }, [s]), {
68
69
  ...t,
69
- isAutoPlay: d,
70
- stopAutoPlay: i,
70
+ isAutoPlay: r,
71
+ stopAutoPlay: s,
71
72
  startAutoPlay: h,
72
- handleUserInteraction: o
73
+ handleUserInteraction: l
73
74
  };
74
75
  };
75
76
  export {
76
77
  A as useSwiper,
77
- P as useSwiperWithAutoPlay
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.48",
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/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts",
646
- "import": "./dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js",
647
- "require": "./dist/pageComponents/StillHaveQuestions/StillHaveQuestions.cjs.js"
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
- };