@zenpatient-org/healthspan-marketing-ui 0.1.140 → 0.1.142

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.
@@ -0,0 +1,84 @@
1
+ "use client";
2
+ import { jsx as r, Fragment as f, jsxs as P } from "react/jsx-runtime";
3
+ import { useState as o, useEffect as m } from "react";
4
+ import { createPortal as R } from "react-dom";
5
+ import w from "../scienceHero.module.css.es.js";
6
+ function z({ children: s, backgroundImage: h, cursorLink: v }) {
7
+ const [i, x] = o({ x: 0, y: 0 }), [M, b] = o(0), [g, l] = o(!1), [$, c] = o(!1), [t, y] = o(null), [n, C] = o(!1);
8
+ m(() => {
9
+ c(!0);
10
+ const e = () => C(window.innerWidth <= 768);
11
+ return e(), window.addEventListener("resize", e), () => {
12
+ window.removeEventListener("resize", e), c(!1);
13
+ };
14
+ }, []), m(() => {
15
+ if (n) return;
16
+ const e = (p) => {
17
+ x({
18
+ x: p.clientX,
19
+ y: p.clientY
20
+ });
21
+ }, u = () => {
22
+ b(window.scrollY);
23
+ };
24
+ return window.addEventListener("mousemove", e), window.addEventListener("scroll", u), () => {
25
+ window.removeEventListener("mousemove", e), window.removeEventListener("scroll", u);
26
+ };
27
+ }, [n]);
28
+ const E = (e) => {
29
+ n || (y(e.currentTarget.getBoundingClientRect()), l(!0));
30
+ }, L = () => {
31
+ n || l(!1);
32
+ }, k = () => {
33
+ window.location.href = v;
34
+ };
35
+ if (n)
36
+ return /* @__PURE__ */ r(f, { children: s });
37
+ const a = `circle(270px at ${i.x}px ${i.y}px)`, d = g && t && /* @__PURE__ */ r(
38
+ "div",
39
+ {
40
+ className: w.cursorContainer,
41
+ style: {
42
+ position: "fixed",
43
+ top: `${t.top}px`,
44
+ left: `${t.left}px`,
45
+ width: `${t.width}px`,
46
+ height: `${t.height}px`,
47
+ overflow: "hidden",
48
+ cursor: "pointer"
49
+ },
50
+ children: /* @__PURE__ */ r(
51
+ "div",
52
+ {
53
+ className: w.normalBackground,
54
+ style: {
55
+ position: "absolute",
56
+ top: `${-t.top}px`,
57
+ left: `${-t.left}px`,
58
+ backgroundImage: `url(${h})`,
59
+ clipPath: a,
60
+ WebkitClipPath: a,
61
+ backgroundPosition: `center ${-M}px`
62
+ }
63
+ }
64
+ )
65
+ }
66
+ );
67
+ return /* @__PURE__ */ P(f, { children: [
68
+ /* @__PURE__ */ r(
69
+ "div",
70
+ {
71
+ "data-type": "hero",
72
+ onMouseEnter: E,
73
+ onMouseLeave: L,
74
+ onClick: k,
75
+ style: { cursor: "pointer" },
76
+ children: s
77
+ }
78
+ ),
79
+ $ && d && R(d, document.body)
80
+ ] });
81
+ }
82
+ export {
83
+ z as ScienceClientCursor
84
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=({children:e})=>e;exports.ScienceServerCursor=r;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const ScienceServerCursor: ({ children }: {
4
+ children: React.ReactNode;
5
+ }) => React.ReactNode;
@@ -0,0 +1,4 @@
1
+ const e = ({ children: r }) => r;
2
+ export {
3
+ e as ScienceServerCursor
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("../../components/Typography/Typography.cjs.js"),i=require("../../components/Button/Button.cjs.js"),n=require("./components/MiddleCarousel/MiddleCarousel.cjs.js"),o=require("../../utils/cn/cn.cjs.js"),a=require("./homepageHero.module.css.cjs.js");function s(){return e.jsxs("section",{className:a.default.root,"data-type":"hero",children:[e.jsx("div",{className:a.default.carouselArea,children:e.jsx(n.MiddleCarousel,{})}),e.jsxs("div",{className:a.default.contentContainer,children:[e.jsx("div",{className:a.default.headline,children:e.jsx(r.HighlightedTitle,{colorScheme:"dark",title:e.jsx(t.Typography,{as:"div",defaultVariant:"displayXs",mobileVariant:"headingLg",children:e.jsxs("p",{children:[e.jsx("b",{children:"Transform your quality of living"})," through the science of aging."]})})})}),e.jsxs("div",{className:a.default.callAction,children:[e.jsx(t.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",className:a.default.text,children:"Defy your age with advanced longevity protocols tailored to you by clinical experts and optimized over time through ongoing labs, performance coaching, and results tracking."}),e.jsx("div",{className:o.cn(a.default.buttonWrapper,a.default.desktop),children:e.jsx(i.Button,{as:"a",href:"/join",variant:"secondary",size:"lg",children:"Join Healthspan"})}),e.jsx("div",{className:o.cn(a.default.buttonWrapper,a.default.mobile),children:e.jsx(i.Button,{as:"a",href:"/join",variant:"secondary",size:"md",children:"Join Healthspan"})})]})]})]})}exports.HomepageHero=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),a=require("../../components/Typography/Typography.cjs.js"),r=require("../../components/Button/Button.cjs.js"),s=require("./components/MiddleCarousel/MiddleCarousel.cjs.js"),i=require("../../utils/cn/cn.cjs.js"),t=require("./homepageHero.module.css.cjs.js");function n(){return e.jsxs("section",{className:t.default.root,"data-type":"hero",children:[e.jsx("div",{className:t.default.carouselArea,children:e.jsx(s.MiddleCarousel,{})}),e.jsxs("div",{className:t.default.contentContainer,children:[e.jsx("div",{className:t.default.headline,children:e.jsx(o.HighlightedTitle,{colorScheme:"dark",title:e.jsx(a.Typography,{as:"div",defaultVariant:"displayXs",mobileVariant:"headingLg",children:e.jsxs("p",{children:[e.jsx("b",{children:"Transform your quality of living"})," through the science of aging."]})})})}),e.jsxs("div",{className:t.default.callAction,children:[e.jsx(a.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",className:t.default.text,children:"Defy your age with advanced longevity protocols tailored to you by clinical experts and optimized over time through ongoing labs, performance coaching, and results tracking."}),e.jsx("div",{className:i.cn(t.default.buttonWrapper,t.default.desktop),children:e.jsx(r.Button,{as:"a",href:"https://app.gethealthspan.com/#/get-started",variant:"secondary",size:"lg",children:"Join Healthspan"})}),e.jsx("div",{className:i.cn(t.default.buttonWrapper,t.default.mobile),children:e.jsx(r.Button,{as:"a",href:"https://app.gethealthspan.com/#/get-started",variant:"secondary",size:"md",children:"Join Healthspan"})})]})]})]})}exports.HomepageHero=n;
@@ -1,28 +1,28 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { HighlightedTitle as t } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
3
- import { Typography as r } from "../../components/Typography/Typography.es.js";
4
- import { Button as o } from "../../components/Button/Button.es.js";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
3
+ import { Typography as t } from "../../components/Typography/Typography.es.js";
4
+ import { Button as i } from "../../components/Button/Button.es.js";
5
5
  import { MiddleCarousel as l } from "./components/MiddleCarousel/MiddleCarousel.es.js";
6
- import { cn as n } from "../../utils/cn/cn.es.js";
6
+ import { cn as o } from "../../utils/cn/cn.es.js";
7
7
  import a from "./homepageHero.module.css.es.js";
8
8
  function f() {
9
- return /* @__PURE__ */ i("section", { className: a.root, "data-type": "hero", children: [
9
+ return /* @__PURE__ */ r("section", { className: a.root, "data-type": "hero", children: [
10
10
  /* @__PURE__ */ e("div", { className: a.carouselArea, children: /* @__PURE__ */ e(l, {}) }),
11
- /* @__PURE__ */ i("div", { className: a.contentContainer, children: [
11
+ /* @__PURE__ */ r("div", { className: a.contentContainer, children: [
12
12
  /* @__PURE__ */ e("div", { className: a.headline, children: /* @__PURE__ */ e(
13
- t,
13
+ n,
14
14
  {
15
15
  colorScheme: "dark",
16
- title: /* @__PURE__ */ e(r, { as: "div", defaultVariant: "displayXs", mobileVariant: "headingLg", children: /* @__PURE__ */ i("p", { children: [
16
+ title: /* @__PURE__ */ e(t, { as: "div", defaultVariant: "displayXs", mobileVariant: "headingLg", children: /* @__PURE__ */ r("p", { children: [
17
17
  /* @__PURE__ */ e("b", { children: "Transform your quality of living" }),
18
18
  " through the science of aging."
19
19
  ] }) })
20
20
  }
21
21
  ) }),
22
- /* @__PURE__ */ i("div", { className: a.callAction, children: [
23
- /* @__PURE__ */ e(r, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", className: a.text, children: "Defy your age with advanced longevity protocols tailored to you by clinical experts and optimized over time through ongoing labs, performance coaching, and results tracking." }),
24
- /* @__PURE__ */ e("div", { className: n(a.buttonWrapper, a.desktop), children: /* @__PURE__ */ e(o, { as: "a", href: "/join", variant: "secondary", size: "lg", children: "Join Healthspan" }) }),
25
- /* @__PURE__ */ e("div", { className: n(a.buttonWrapper, a.mobile), children: /* @__PURE__ */ e(o, { as: "a", href: "/join", variant: "secondary", size: "md", children: "Join Healthspan" }) })
22
+ /* @__PURE__ */ r("div", { className: a.callAction, children: [
23
+ /* @__PURE__ */ e(t, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", className: a.text, children: "Defy your age with advanced longevity protocols tailored to you by clinical experts and optimized over time through ongoing labs, performance coaching, and results tracking." }),
24
+ /* @__PURE__ */ e("div", { className: o(a.buttonWrapper, a.desktop), children: /* @__PURE__ */ e(i, { as: "a", href: "https://app.gethealthspan.com/#/get-started", variant: "secondary", size: "lg", children: "Join Healthspan" }) }),
25
+ /* @__PURE__ */ e("div", { className: o(a.buttonWrapper, a.mobile), children: /* @__PURE__ */ e(i, { as: "a", href: "https://app.gethealthspan.com/#/get-started", variant: "secondary", size: "md", children: "Join Healthspan" }) })
26
26
  ] })
27
27
  ] })
28
28
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.140",
3
+ "version": "0.1.142",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",