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

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 (23) hide show
  1. package/dist/healthspan-marketing-ui.css +1 -1
  2. package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
  3. package/dist/modules/FollowTheScience/FollowTheScience.es.js +15 -15
  4. package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
  5. package/dist/modules/ImageWithText/ImageWithText.d.ts +1 -1
  6. package/dist/modules/ImageWithText/ImageWithText.es.js +75 -38
  7. package/dist/modules/ImageWithText/constants.cjs.js +1 -0
  8. package/dist/modules/ImageWithText/constants.d.ts +6 -0
  9. package/dist/modules/ImageWithText/constants.es.js +9 -0
  10. package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -1
  11. package/dist/modules/ImageWithText/imageWithText.module.css.es.js +15 -11
  12. package/dist/modules/ImageWithText/types.d.ts +4 -0
  13. package/dist/pageComponents/Footer/Footer.cjs.js +1 -1
  14. package/dist/pageComponents/Footer/Footer.es.js +23 -23
  15. package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.cjs.js +1 -1
  16. package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.es.js +29 -20
  17. package/dist/pageComponents/Footer/components/FooterAbout/footerAbout.module.css.cjs.js +1 -1
  18. package/dist/pageComponents/Footer/components/FooterAbout/footerAbout.module.css.es.js +8 -6
  19. package/dist/pageComponents/Footer/components/FooterLinksBlock/FooterLinksBlock.cjs.js +1 -1
  20. package/dist/pageComponents/Footer/components/FooterLinksBlock/FooterLinksBlock.es.js +16 -16
  21. package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.cjs.js +1 -1
  22. package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.es.js +37 -34
  23. package/package.json +1 -1
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),k=require("../../../../components/Button/Button.cjs.js"),u=require("../../../../components/Icon/constants.cjs.js"),d=require("../../../../components/Typography/Typography.cjs.js"),x=require("../../../../components/Icon/Icon.cjs.js"),a=require("./topTreatmentsSlider.module.css.cjs.js"),p=({title:g,products:n})=>{const[t,m]=l.useState(0),[r,c]=l.useState(1),[i,o]=l.useState(!1),j=l.useMemo(()=>{if(n.length===2){const h=(t-1+n.length)%n.length,f=(t+1)%n.length;return[n[h],n[t===h?f:t],n[f]].filter((T,S,_)=>_.findIndex(C=>C.name===T.name)===S)}const s=(t-1+n.length)%n.length,I=(t+1)%n.length;return[n[s],n[t],n[I]]},[t,n]),v=l.useCallback(()=>{i||(o(!0),c(2))},[i]),N=l.useCallback(()=>{i||(o(!0),c(0))},[i]),y=()=>{r===2?m(s=>(s+1)%n.length):r===0&&m(s=>(s-1+n.length)%n.length),c(1),o(!1)},b=l.useCallback(()=>{const s=n[t];s!=null&&s.link&&window.open(s.link,"_blank")},[n,t]);return e.jsxs("div",{className:a.default.root,children:[e.jsx(d.Typography,{as:"span",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:a.default.title,children:g}),e.jsxs("div",{className:a.default.sliderContainer,children:[e.jsx("div",{className:a.default.sliderTrack,style:{transform:`translateX(calc(-${r*100}% - ${r*10}px))`,transition:i?"transform 0.3s cubic-bezier(0.4,0,0.2,1)":"none"},onTransitionEnd:y,children:j.map(s=>e.jsx("div",{className:a.default.slide,children:e.jsxs("div",{className:a.default.productCard,children:[e.jsx("div",{className:a.default.imageWrapper,children:e.jsx("img",{src:s.image,alt:s.name,className:a.default.image})}),e.jsxs("div",{className:a.default.rightSide,children:[e.jsxs("div",{className:a.default.headerSplit,children:[e.jsx("div",{className:a.default.nameContainer,children:e.jsx(d.Typography,{defaultVariant:"headingXs",children:s.name})}),e.jsx(d.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.price,children:`Starting at ${s.price}/mo`})]}),e.jsx("div",{className:a.default.actions,children:e.jsx("div",{className:a.default.btnLearnMore,children:e.jsx(k.Button,{size:"sm",variant:"primary-invert",onClick:b,children:"Learn More"})})})]})]})},s.name))}),e.jsxs("div",{className:a.default.switchers,children:[e.jsx("div",{className:a.default.arrowIcon,onClick:N,children:e.jsx(x.Icon,{name:u.EIconName.ARROW_BACK})}),e.jsx("div",{className:a.default.arrowIcon,onClick:v,children:e.jsx(x.Icon,{name:u.EIconName.ARROW_FORWARD})})]})]})]})};exports.TopTreatmentsSlider=p;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),_=require("../../../../components/Button/Button.cjs.js"),f=require("../../../../components/Icon/constants.cjs.js"),d=require("../../../../components/Typography/Typography.cjs.js"),g=require("../../../../components/Icon/Icon.cjs.js"),a=require("./topTreatmentsSlider.module.css.cjs.js"),C=({title:x,products:n})=>{const[t,m]=i.useState(0),[r,c]=i.useState(1),[l,o]=i.useState(!1),j=i.useMemo(()=>{if(n.length===2){const h=(t-1+n.length)%n.length,u=(t+1)%n.length;return[n[h],n[t===h?u:t],n[u]].filter((p,T,b)=>b.findIndex(S=>S.name===p.name)===T)}const s=(t-1+n.length)%n.length,I=(t+1)%n.length;return[n[s],n[t],n[I]]},[t,n]),N=i.useCallback(s=>{s.stopPropagation(),!l&&(o(!0),c(2))},[l]),v=i.useCallback(s=>{s.stopPropagation(),!l&&(o(!0),c(0))},[l]),y=()=>{r===2?m(s=>(s+1)%n.length):r===0&&m(s=>(s-1+n.length)%n.length),c(1),o(!1)};return e.jsxs("div",{className:a.default.root,children:[e.jsx(d.Typography,{as:"span",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:a.default.title,children:x}),e.jsxs("div",{className:a.default.sliderContainer,children:[e.jsx("div",{className:a.default.sliderTrack,style:{transform:`translateX(calc(-${r*100}% - ${r*10}px))`,transition:l?"transform 0.3s cubic-bezier(0.4,0,0.2,1)":"none"},onTransitionEnd:y,children:j.map(s=>e.jsx("a",{href:s.link,className:a.default.slide,children:e.jsxs("div",{className:a.default.productCard,children:[e.jsx("div",{className:a.default.imageWrapper,children:e.jsx("img",{src:s.image,alt:s.name,className:a.default.image})}),e.jsxs("div",{className:a.default.rightSide,children:[e.jsxs("div",{className:a.default.headerSplit,children:[e.jsx("div",{className:a.default.nameContainer,children:e.jsx(d.Typography,{defaultVariant:"headingXs",children:s.name})}),e.jsx(d.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.price,children:`Starting at ${s.price}/mo`})]}),e.jsx("div",{className:a.default.actions,children:e.jsx("div",{className:a.default.btnLearnMore,children:e.jsx(_.Button,{size:"sm",variant:"primary-invert",children:"Learn More"})})})]})]})},s.name))}),e.jsxs("div",{className:a.default.switchers,children:[e.jsx("div",{className:a.default.arrowIcon,onClick:v,children:e.jsx(g.Icon,{name:f.EIconName.ARROW_BACK})}),e.jsx("div",{className:a.default.arrowIcon,onClick:N,children:e.jsx(g.Icon,{name:f.EIconName.ARROW_FORWARD})})]})]})]})};exports.TopTreatmentsSlider=C;
@@ -1,34 +1,37 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
3
- import { useState as o, useMemo as V, useCallback as d } from "react";
4
- import { Button as W } from "../../../../components/Button/Button.es.js";
5
- import { EIconName as N } from "../../../../components/Icon/constants.es.js";
6
- import { Typography as h } from "../../../../components/Typography/Typography.es.js";
2
+ import { jsxs as l, jsx as i } from "react/jsx-runtime";
3
+ import { useState as o, useMemo as k, useCallback as N } from "react";
4
+ import { Button as V } from "../../../../components/Button/Button.es.js";
5
+ import { EIconName as v } from "../../../../components/Icon/constants.es.js";
6
+ import { Typography as d } from "../../../../components/Typography/Typography.es.js";
7
7
  import { Icon as x } from "../../../../components/Icon/Icon.es.js";
8
8
  import n from "./topTreatmentsSlider.module.css.es.js";
9
9
  const j = ({ title: b, products: e }) => {
10
- const [l, f] = o(0), [t, m] = o(1), [s, c] = o(!1), I = V(() => {
10
+ const [r, h] = o(0), [t, m] = o(1), [s, c] = o(!1), I = k(() => {
11
11
  if (e.length === 2) {
12
- const g = (l - 1 + e.length) % e.length, v = (l + 1) % e.length;
13
- return [e[g], e[l === g ? v : l], e[v]].filter(
14
- (A, R, T) => T.findIndex((M) => M.name === A.name) === R
12
+ const g = (r - 1 + e.length) % e.length, f = (r + 1) % e.length;
13
+ return [e[g], e[r === g ? f : r], e[f]].filter(
14
+ (S, A, R) => R.findIndex((T) => T.name === S.name) === A
15
15
  );
16
16
  }
17
- const a = (l - 1 + e.length) % e.length, S = (l + 1) % e.length;
18
- return [e[a], e[l], e[S]];
19
- }, [l, e]), w = d(() => {
20
- s || (c(!0), m(2));
21
- }, [s]), C = d(() => {
22
- s || (c(!0), m(0));
23
- }, [s]), k = () => {
24
- t === 2 ? f((a) => (a + 1) % e.length) : t === 0 && f((a) => (a - 1 + e.length) % e.length), m(1), c(!1);
25
- }, y = d(() => {
26
- const a = e[l];
27
- a != null && a.link && window.open(a.link, "_blank");
28
- }, [e, l]);
29
- return /* @__PURE__ */ r("div", { className: n.root, children: [
17
+ const a = (r - 1 + e.length) % e.length, y = (r + 1) % e.length;
18
+ return [e[a], e[r], e[y]];
19
+ }, [r, e]), C = N(
20
+ (a) => {
21
+ a.stopPropagation(), !s && (c(!0), m(2));
22
+ },
23
+ [s]
24
+ ), p = N(
25
+ (a) => {
26
+ a.stopPropagation(), !s && (c(!0), m(0));
27
+ },
28
+ [s]
29
+ ), w = () => {
30
+ t === 2 ? h((a) => (a + 1) % e.length) : t === 0 && h((a) => (a - 1 + e.length) % e.length), m(1), c(!1);
31
+ };
32
+ return /* @__PURE__ */ l("div", { className: n.root, children: [
30
33
  /* @__PURE__ */ i(
31
- h,
34
+ d,
32
35
  {
33
36
  as: "span",
34
37
  defaultVariant: "labelSm",
@@ -39,7 +42,7 @@ const j = ({ title: b, products: e }) => {
39
42
  children: b
40
43
  }
41
44
  ),
42
- /* @__PURE__ */ r("div", { className: n.sliderContainer, children: [
45
+ /* @__PURE__ */ l("div", { className: n.sliderContainer, children: [
43
46
  /* @__PURE__ */ i(
44
47
  "div",
45
48
  {
@@ -48,14 +51,14 @@ const j = ({ title: b, products: e }) => {
48
51
  transform: `translateX(calc(-${t * 100}% - ${t * 10}px))`,
49
52
  transition: s ? "transform 0.3s cubic-bezier(0.4,0,0.2,1)" : "none"
50
53
  },
51
- onTransitionEnd: k,
52
- children: I.map((a) => /* @__PURE__ */ i("div", { className: n.slide, children: /* @__PURE__ */ r("div", { className: n.productCard, children: [
54
+ onTransitionEnd: w,
55
+ children: I.map((a) => /* @__PURE__ */ i("a", { href: a.link, className: n.slide, children: /* @__PURE__ */ l("div", { className: n.productCard, children: [
53
56
  /* @__PURE__ */ i("div", { className: n.imageWrapper, children: /* @__PURE__ */ i("img", { src: a.image, alt: a.name, className: n.image }) }),
54
- /* @__PURE__ */ r("div", { className: n.rightSide, children: [
55
- /* @__PURE__ */ r("div", { className: n.headerSplit, children: [
56
- /* @__PURE__ */ i("div", { className: n.nameContainer, children: /* @__PURE__ */ i(h, { defaultVariant: "headingXs", children: a.name }) }),
57
+ /* @__PURE__ */ l("div", { className: n.rightSide, children: [
58
+ /* @__PURE__ */ l("div", { className: n.headerSplit, children: [
59
+ /* @__PURE__ */ i("div", { className: n.nameContainer, children: /* @__PURE__ */ i(d, { defaultVariant: "headingXs", children: a.name }) }),
57
60
  /* @__PURE__ */ i(
58
- h,
61
+ d,
59
62
  {
60
63
  defaultVariant: "bodyMd",
61
64
  mobileVariant: "bodySm",
@@ -64,14 +67,14 @@ const j = ({ title: b, products: e }) => {
64
67
  }
65
68
  )
66
69
  ] }),
67
- /* @__PURE__ */ i("div", { className: n.actions, children: /* @__PURE__ */ i("div", { className: n.btnLearnMore, children: /* @__PURE__ */ i(W, { size: "sm", variant: "primary-invert", onClick: y, children: "Learn More" }) }) })
70
+ /* @__PURE__ */ i("div", { className: n.actions, children: /* @__PURE__ */ i("div", { className: n.btnLearnMore, children: /* @__PURE__ */ i(V, { size: "sm", variant: "primary-invert", children: "Learn More" }) }) })
68
71
  ] })
69
72
  ] }) }, a.name))
70
73
  }
71
74
  ),
72
- /* @__PURE__ */ r("div", { className: n.switchers, children: [
73
- /* @__PURE__ */ i("div", { className: n.arrowIcon, onClick: C, children: /* @__PURE__ */ i(x, { name: N.ARROW_BACK }) }),
74
- /* @__PURE__ */ i("div", { className: n.arrowIcon, onClick: w, children: /* @__PURE__ */ i(x, { name: N.ARROW_FORWARD }) })
75
+ /* @__PURE__ */ l("div", { className: n.switchers, children: [
76
+ /* @__PURE__ */ i("div", { className: n.arrowIcon, onClick: p, children: /* @__PURE__ */ i(x, { name: v.ARROW_BACK }) }),
77
+ /* @__PURE__ */ i("div", { className: n.arrowIcon, onClick: C, children: /* @__PURE__ */ i(x, { name: v.ARROW_FORWARD }) })
75
78
  ] })
76
79
  ] })
77
80
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.138",
3
+ "version": "0.1.140",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",