@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.
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +10 -10
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/InfiniteScrollModule/InfiniteScrollModule.cjs.js +1 -0
- package/dist/modules/InfiniteScrollModule/InfiniteScrollModule.d.ts +7 -0
- package/dist/modules/InfiniteScrollModule/InfiniteScrollModule.es.js +8 -0
- package/dist/modules/InfiniteScrollModule/index.d.ts +2 -0
- package/dist/modules/InfiniteScrollModule/infiniteScrolle.module.css.cjs.js +1 -0
- package/dist/modules/InfiniteScrollModule/infiniteScrolle.module.css.es.js +11 -0
- package/dist/modules/ScienceHero/ScienceHeroCursor.cjs.js +1 -1
- package/dist/modules/ScienceHero/ScienceHeroCursor.es.js +4 -3
- package/dist/pageComponents/BiologicalAge/BiologicalAge.cjs.js +1 -1
- package/dist/pageComponents/BiologicalAge/BiologicalAge.es.js +4 -3
- package/dist/pageComponents/BiologicalAge/biologicalAge.module.css.cjs.js +1 -1
- package/dist/pageComponents/BiologicalAge/biologicalAge.module.css.es.js +10 -8
- package/package.json +6 -1
|
@@ -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,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 @@
|
|
|
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"),
|
|
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,
|
|
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 = () =>
|
|
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 || (
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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",
|
|
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:
|
|
4
|
-
content:
|
|
3
|
+
container: e,
|
|
4
|
+
content: t,
|
|
5
5
|
image: _,
|
|
6
|
-
textContainer:
|
|
6
|
+
textContainer: i,
|
|
7
|
+
mobileLineBreak: n
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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.
|
|
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",
|