@zenpatient-org/healthspan-marketing-ui 0.2.49 → 0.2.51

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"),s=require("../../src/modules/StillHaveQuestions/stillHaveQuestions.module.css"),n=require("./constants.cjs.js"),r=require("../../components/Typography/Typography.cjs.js"),m=require("../../components/Button/Button.cjs.js"),y=({variant:o,image:l,title:i,titleHighlight:c,description:d,button:p,buttonColor:u,colorScheme:h})=>{var a;const t=o?n.LEGACY_CONFIG[o]:i?{image:l||"https://methodical-vitality-96814f361f.media.strapiapp.com/still_Have_Questions_e6cfc3cba3.jpg",title:i,titleHighlight:c||"dark",description:d,button:p,buttonColor:u||"secondary",colorScheme:h||"dark"}:n.LEGACY_CONFIG.StillHaveQuestions;return e.jsx("section",{className:s.root,"data-color-scheme":t.colorScheme,children:e.jsx("div",{className:s.imageWrapper,style:{backgroundImage:`url(${t.image})`},children:e.jsxs("div",{className:s.contentBox,children:[e.jsx("div",{className:s.title,"data-color-scheme":t.titleHighlight,children:e.jsx(r.Typography,{as:"p",defaultVariant:"displayMd",mobileVariant:"displayXs",children:t.title})}),t.description&&e.jsx(r.Typography,{className:s.description,as:"p",defaultVariant:"bodyLg",mobileVariant:"bodyMd",children:t.description}),((a=t.button)==null?void 0:a.link)&&e.jsx("div",{className:s.button,children:e.jsx(m.Button,{as:"a",href:t.button.link,variant:t.buttonColor||"secondary",size:"lg",children:t.button.text||"Contact Us"})})]})})})};exports.StillHaveQuestions=y;
@@ -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:"dark",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: "dark",
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -647,9 +647,9 @@
647
647
  "require": "./dist/pageComponents/Gradient/Gradient.cjs.js"
648
648
  },
649
649
  "./StillHaveQuestions": {
650
- "types": "./dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts",
651
- "import": "./dist/pageComponents/StillHaveQuestions/StillHaveQuestions.es.js",
652
- "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"
653
653
  },
654
654
  "./HomepageHero": {
655
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
- };