@zenpatient-org/healthspan-marketing-ui 0.1.131 → 0.1.133

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 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../components/Typography/Typography.cjs.js"),i=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),l=require("./infiniteScrolle.module.css.cjs.js"),o=({label:r,url:n})=>e.jsx("a",{href:n,className:l.default.label,children:e.jsx(t.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:r})}),a=({labels:r})=>e.jsx("section",{className:l.default.root,children:r.length>0&&e.jsx("div",{className:l.default.footer,children:e.jsx(i.InfiniteScroll,{items:r,renderItem:o})})});exports.InfiniteScrollModule=a;
@@ -0,0 +1,7 @@
1
+ export type TInfiniteScrollModule = {
2
+ labels: ReadonlyArray<{
3
+ label: string;
4
+ url: string;
5
+ }>;
6
+ };
7
+ export declare const InfiniteScrollModule: ({ labels }: TInfiniteScrollModule) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Typography as o } from "../../components/Typography/Typography.es.js";
3
+ import { InfiniteScroll as i } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
4
+ import t from "./infiniteScrolle.module.css.es.js";
5
+ const a = ({ label: r, url: l }) => /* @__PURE__ */ e("a", { href: l, className: t.label, children: /* @__PURE__ */ e(o, { defaultVariant: "labelMd", emphasis: !0, mobileVariant: "labelSm", weight: "regular", children: r }) }), d = ({ labels: r }) => /* @__PURE__ */ e("section", { className: t.root, children: r.length > 0 && /* @__PURE__ */ e("div", { className: t.footer, children: /* @__PURE__ */ e(i, { items: r, renderItem: a }) }) });
6
+ export {
7
+ d as InfiniteScrollModule
8
+ };
@@ -0,0 +1,2 @@
1
+ export { InfiniteScrollModule } from './InfiniteScrollModule';
2
+ export type { TInfiniteScrollModule } from './InfiniteScrollModule';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="infiniteScrolle-module__root___CZywa",e="infiniteScrolle-module__footer___3AoPY",l="infiniteScrolle-module__label___NrIGo",t={root:o,footer:e,label:l};exports.default=t;exports.footer=e;exports.label=l;exports.root=o;
@@ -0,0 +1,11 @@
1
+ const o = "infiniteScrolle-module__root___CZywa", e = "infiniteScrolle-module__footer___3AoPY", l = "infiniteScrolle-module__label___NrIGo", t = {
2
+ root: o,
3
+ footer: e,
4
+ label: l
5
+ };
6
+ export {
7
+ t as default,
8
+ e as footer,
9
+ l as label,
10
+ o as root
11
+ };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),C=require("react-dom"),w=require("./scienceHero.module.css.cjs.js");function L({children:r,backgroundImage:p,cursorLink:v}){const[i,x]=t.useState({x:0,y:0}),[h,m]=t.useState(0),[$,c]=t.useState(!1),[b,l]=t.useState(!1),[o,g]=t.useState(null),[s,M]=t.useState(!1);t.useEffect(()=>{l(!0);const e=()=>M(window.innerWidth<=768);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),l(!1)}},[]),t.useEffect(()=>{if(s)return;const e=f=>{x({x:f.clientX,y:f.clientY})},d=()=>{m(window.scrollY)};return window.addEventListener("mousemove",e),window.addEventListener("scroll",d),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("scroll",d)}},[s]);const S=e=>{s||(g(e.currentTarget.getBoundingClientRect()),c(!0))},y=()=>{s||c(!1)},E=()=>{window.location.href=v};if(typeof window>"u")return r;if(s)return n.jsx("div",{children:r});const u=`circle(270px at ${i.x}px ${i.y}px)`,a=$&&o&&n.jsx("div",{className:w.default.cursorContainer,style:{position:"fixed",top:`${o.top}px`,left:`${o.left}px`,width:`${o.width}px`,height:`${o.height}px`,overflow:"hidden",cursor:"pointer"},children:n.jsx("div",{className:w.default.normalBackground,style:{position:"absolute",top:`${-o.top}px`,left:`${-o.left}px`,backgroundImage:`url(${p})`,clipPath:u,WebkitClipPath:u,backgroundPosition:`center ${-h}px`}})});return n.jsxs(n.Fragment,{children:[n.jsx("div",{onMouseEnter:S,onMouseLeave:y,onClick:E,style:{cursor:"pointer"},children:r}),b&&a&&C.createPortal(a,document.body)]})}exports.ScienceHeroCursor=L;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),C=require("react-dom"),p=require("./scienceHero.module.css.cjs.js");function L({children:r,backgroundImage:w,cursorLink:v}){const[i,x]=t.useState({x:0,y:0}),[h,m]=t.useState(0),[$,c]=t.useState(!1),[b,l]=t.useState(!1),[o,g]=t.useState(null),[s,M]=t.useState(!1);t.useEffect(()=>{l(!0);const e=()=>M(window.innerWidth<=768);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),l(!1)}},[]),t.useEffect(()=>{if(s)return;const e=f=>{x({x:f.clientX,y:f.clientY})},d=()=>{m(window.scrollY)};return window.addEventListener("mousemove",e),window.addEventListener("scroll",d),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("scroll",d)}},[s]);const S=e=>{s||(g(e.currentTarget.getBoundingClientRect()),c(!0))},y=()=>{s||c(!1)},E=()=>{window.location.href=v};if(typeof window>"u")return r;if(s)return n.jsx("div",{children:r});const u=`circle(270px at ${i.x}px ${i.y}px)`,a=$&&o&&n.jsx("div",{className:p.default.cursorContainer,style:{position:"fixed",top:`${o.top}px`,left:`${o.left}px`,width:`${o.width}px`,height:`${o.height}px`,overflow:"hidden",cursor:"pointer"},children:n.jsx("div",{className:p.default.normalBackground,style:{position:"absolute",top:`${-o.top}px`,left:`${-o.left}px`,backgroundImage:`url(${w})`,clipPath:u,WebkitClipPath:u,backgroundPosition:`center ${-h}px`}})});return n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-type":"hero",onMouseEnter:S,onMouseLeave:y,onClick:E,style:{cursor:"pointer"},children:r}),b&&a&&C.createPortal(a,document.body)]})}exports.ScienceHeroCursor=L;
@@ -4,10 +4,10 @@ import { useState as o, useEffect as p } from "react";
4
4
  import { createPortal as R } from "react-dom";
5
5
  import w from "./scienceHero.module.css.es.js";
6
6
  function z({ children: s, backgroundImage: m, cursorLink: v }) {
7
- const [i, h] = o({ x: 0, y: 0 }), [x, M] = o(0), [b, l] = o(!1), [g, c] = o(!1), [t, $] = o(null), [n, y] = o(!1);
7
+ const [i, h] = o({ x: 0, y: 0 }), [x, M] = o(0), [b, l] = o(!1), [g, c] = o(!1), [t, y] = o(null), [n, $] = o(!1);
8
8
  p(() => {
9
9
  c(!0);
10
- const e = () => y(window.innerWidth <= 768);
10
+ const e = () => $(window.innerWidth <= 768);
11
11
  return e(), window.addEventListener("resize", e), () => {
12
12
  window.removeEventListener("resize", e), c(!1);
13
13
  };
@@ -26,7 +26,7 @@ function z({ children: s, backgroundImage: m, cursorLink: v }) {
26
26
  };
27
27
  }, [n]);
28
28
  const E = (e) => {
29
- n || ($(e.currentTarget.getBoundingClientRect()), l(!0));
29
+ n || (y(e.currentTarget.getBoundingClientRect()), l(!0));
30
30
  }, C = () => {
31
31
  n || l(!1);
32
32
  }, L = () => {
@@ -69,6 +69,7 @@ function z({ children: s, backgroundImage: m, cursorLink: v }) {
69
69
  /* @__PURE__ */ r(
70
70
  "div",
71
71
  {
72
+ "data-type": "hero",
72
73
  onMouseEnter: E,
73
74
  onMouseLeave: C,
74
75
  onClick: L,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),l=require("./assets/biological-age-img.png.cjs.js"),i=require("./biologicalAge.module.css.cjs.js"),t=()=>e.jsx("section",{className:i.default.root,children:e.jsx("div",{className:i.default.container,children:e.jsxs("div",{className:i.default.content,children:[e.jsx("img",{src:l.default,alt:"background image",className:i.default.image}),e.jsx("div",{className:i.default.textContainer,children:e.jsx(a.HighlightedTitle,{title:e.jsxs("p",{children:["Our patients see an average reduction in biological age of ",e.jsx("b",{children:"8 years"})]}),defaultVariant:"displayXs",mobileVariant:"headingXs"})})]})})});exports.BiologicalAge=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),l=require("./assets/biological-age-img.png.cjs.js"),i=require("./biologicalAge.module.css.cjs.js"),t=()=>e.jsx("section",{className:i.default.root,children:e.jsx("div",{className:i.default.container,children:e.jsxs("div",{className:i.default.content,children:[e.jsx("img",{src:l.default,alt:"background image",className:i.default.image}),e.jsx("div",{className:i.default.textContainer,children:e.jsx(a.HighlightedTitle,{title:e.jsxs("p",{children:["Our patients see an average reduction in biological age of ",e.jsx("br",{className:i.default.mobileLineBreak}),e.jsx("b",{children:"8 years"})]}),defaultVariant:"displayXs",mobileVariant:"headingXs"})})]})})});exports.BiologicalAge=t;
@@ -1,14 +1,15 @@
1
1
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
2
  import { HighlightedTitle as r } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
3
- import t from "./assets/biological-age-img.png.es.js";
3
+ import s from "./assets/biological-age-img.png.es.js";
4
4
  import i from "./biologicalAge.module.css.es.js";
5
5
  const c = () => /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ e("div", { className: i.container, children: /* @__PURE__ */ a("div", { className: i.content, children: [
6
- /* @__PURE__ */ e("img", { src: t, alt: "background image", className: i.image }),
6
+ /* @__PURE__ */ e("img", { src: s, alt: "background image", className: i.image }),
7
7
  /* @__PURE__ */ e("div", { className: i.textContainer, children: /* @__PURE__ */ e(
8
8
  r,
9
9
  {
10
10
  title: /* @__PURE__ */ a("p", { children: [
11
- "Our patients see an average reduction in biological age of ",
11
+ "Our patients see an average reduction in biological age of ",
12
+ /* @__PURE__ */ e("br", { className: i.mobileLineBreak }),
12
13
  /* @__PURE__ */ e("b", { children: "8 years" })
13
14
  ] }),
14
15
  defaultVariant: "displayXs",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="biologicalAge-module__root___luBGX",e="biologicalAge-module__container___KquJP",t="biologicalAge-module__content___eOLjI",n="biologicalAge-module__image___bB1Mo",_="biologicalAge-module__textContainer___LCwuU",i={root:o,container:e,content:t,image:n,textContainer:_};exports.container=e;exports.content=t;exports.default=i;exports.image=n;exports.root=o;exports.textContainer=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="biologicalAge-module__root___luBGX",o="biologicalAge-module__container___KquJP",t="biologicalAge-module__content___eOLjI",i="biologicalAge-module__image___bB1Mo",n="biologicalAge-module__textContainer___LCwuU",_="biologicalAge-module__mobileLineBreak___OiLig",l={root:e,container:o,content:t,image:i,textContainer:n,mobileLineBreak:_};exports.container=o;exports.content=t;exports.default=l;exports.image=i;exports.mobileLineBreak=_;exports.root=e;exports.textContainer=n;
@@ -1,15 +1,17 @@
1
- const o = "biologicalAge-module__root___luBGX", t = "biologicalAge-module__container___KquJP", e = "biologicalAge-module__content___eOLjI", _ = "biologicalAge-module__image___bB1Mo", n = "biologicalAge-module__textContainer___LCwuU", i = {
1
+ const o = "biologicalAge-module__root___luBGX", e = "biologicalAge-module__container___KquJP", t = "biologicalAge-module__content___eOLjI", _ = "biologicalAge-module__image___bB1Mo", i = "biologicalAge-module__textContainer___LCwuU", n = "biologicalAge-module__mobileLineBreak___OiLig", l = {
2
2
  root: o,
3
- container: t,
4
- content: e,
3
+ container: e,
4
+ content: t,
5
5
  image: _,
6
- textContainer: n
6
+ textContainer: i,
7
+ mobileLineBreak: n
7
8
  };
8
9
  export {
9
- t as container,
10
- e as content,
11
- i as default,
10
+ e as container,
11
+ t as content,
12
+ l as default,
12
13
  _ as image,
14
+ n as mobileLineBreak,
13
15
  o as root,
14
- n as textContainer
16
+ i as textContainer
15
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.131",
3
+ "version": "0.1.133",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -556,6 +556,11 @@
556
556
  "import": "./dist/modules/ScienceHero/ScienceHero.es.js",
557
557
  "require": "./dist/modules/ScienceHero/ScienceHero.cjs.js"
558
558
  },
559
+ "./InfiniteScrollModule": {
560
+ "types": "./dist/modules/InfiniteScrollModule/InfiniteScrollModule.d.ts",
561
+ "import": "./dist/modules/InfiniteScrollModule/InfiniteScrollModule.es.js",
562
+ "require": "./dist/modules/InfiniteScrollModule/InfiniteScrollModule.cjs.js"
563
+ },
559
564
  "./Bubbles": {
560
565
  "types": "./dist/pageComponents/Bubbles/Bubbles.d.ts",
561
566
  "import": "./dist/pageComponents/Bubbles/Bubbles.es.js",