@zenpatient-org/healthspan-marketing-ui 0.2.84 → 0.2.86

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.
@@ -25,6 +25,7 @@
25
25
  box-shadow: none;
26
26
  cursor: pointer;
27
27
  transition: background-color 0.3s ease;
28
+ text-align: left;
28
29
  }
29
30
 
30
31
  .light .tab {
@@ -14,7 +14,8 @@
14
14
  }
15
15
 
16
16
  .secondary {
17
- padding: 10px 0 5px;
17
+ padding-bottom: 5px;
18
+ overflow: hidden;
18
19
  background-color: var(--color-bg-base-light);
19
20
  }
20
21
 
@@ -44,7 +45,7 @@
44
45
  }
45
46
 
46
47
  .secondary .imageWrapper {
47
- aspect-ratio: 1 / 0.8;
48
+ aspect-ratio: initial;
48
49
  }
49
50
 
50
51
  .image {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/BasicImageText/basicImageText.module.css"),t=require("../../components/Typography/Typography.cjs.js"),p=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),x=require("../../components/Button/Button.cjs.js"),y={solar:"color-text-primary-brand-solar",indigo:"color-text-primary-brand-indigo",primary:"color-text-primary",inverted:"color-text-primary-inverted"},j=({imagePosition:n,title:c,description:s,image:d,button:i,label:l,labelColor:o,mobileImage:m,colorScheme:r,buttonColor:g})=>{const h=o||(r==="dark"?"inverted":"primary");return e.jsx("section",{className:a.root,"data-color-scheme":r,children:e.jsxs("div",{className:a.container,"data-image-position":n,children:[e.jsxs("div",{className:a.textContainer,children:[l&&e.jsx(t.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.label,color:y[h],children:l}),e.jsxs("div",{className:a.titleContainer,children:[e.jsx(p.HighlightedTitle,{colorScheme:r==="dark"?"dark":"light",className:a.title,defaultVariant:"displayMd",mobileVariant:"headingXl",title:c}),e.jsx("div",{className:a.mobileImageContainer,children:e.jsx("img",{src:m,alt:"",className:a.mobileImage})}),s&&e.jsx(t.Typography,{className:a.description,defaultVariant:"bodyLg",mobileVariant:"bodyMd",children:s})]}),(i==null?void 0:i.link)&&e.jsx("div",{className:a.button,children:e.jsx(x.Button,{as:"a",href:i==null?void 0:i.link,variant:g||"secondary",size:"lg",children:(i==null?void 0:i.text)||"Get Started"})})]}),e.jsx("div",{className:a.imageContainer,children:e.jsx("img",{src:d,alt:"",className:a.image})})]})})};exports.BasicImageText=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../src/modules/BasicImageText/basicImageText.module.css"),d=require("../../components/Typography/Typography.cjs.js"),p=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Button/Button.cjs.js"),y={solar:"color-text-primary-brand-solar",indigo:"color-text-primary-brand-indigo",primary:"color-text-primary",inverted:"color-text-primary-inverted"},j=({imagePosition:t,title:m,description:r,image:o,button:a,label:l,labelColor:h,mobileImage:g,colorScheme:s,buttonColor:c})=>{const x=h||(s==="dark"?"inverted":"primary");return e.jsx("section",{className:i.root,"data-color-scheme":s,children:e.jsxs("div",{className:i.container,"data-image-position":t,children:[e.jsxs("div",{className:i.textContainer,children:[l&&e.jsx(d.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,className:i.label,color:y[x],children:l}),e.jsxs("div",{className:i.titleContainer,children:[e.jsx(p.HighlightedTitle,{colorScheme:s==="dark"?"dark":"light",className:i.title,defaultVariant:"displayMd",mobileVariant:"headingXl",title:m}),e.jsx("div",{className:i.mobileImageContainer,children:e.jsx("img",{src:g,alt:"",className:i.mobileImage})}),r&&e.jsx(d.Typography,{className:i.description,defaultVariant:"bodyLg",mobileVariant:"bodyMd",children:r})]}),(a==null?void 0:a.link)&&e.jsxs("div",{className:i.buttonContainer,children:[e.jsx("div",{className:i.buttonDesktop,children:e.jsx(n.Button,{as:"a",href:a==null?void 0:a.link,variant:c||"secondary",size:"lg",children:(a==null?void 0:a.text)||"Get Started"})}),e.jsx("div",{className:i.buttonMobile,children:e.jsx(n.Button,{as:"a",href:a==null?void 0:a.link,variant:c||"secondary",size:"sm",children:(a==null?void 0:a.text)||"Get Started"})})]})]}),e.jsx("div",{className:i.imageContainer,children:e.jsx("img",{src:o,alt:"",className:i.image})})]})})};exports.BasicImageText=j;
@@ -1,57 +1,59 @@
1
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import a from "../../modules/BasicImageText/basicImageText.module.css";
3
- import { Typography as d } from "../../components/Typography/Typography.es.js";
4
- import { HighlightedTitle as y } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
- import { Button as N } from "../../components/Button/Button.es.js";
1
+ import { jsx as i, jsxs as r } from "react/jsx-runtime";
2
+ import e from "../../modules/BasicImageText/basicImageText.module.css";
3
+ import { Typography as c } from "../../components/Typography/Typography.es.js";
4
+ import { HighlightedTitle as N } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
+ import { Button as n } from "../../components/Button/Button.es.js";
6
6
  const v = {
7
7
  solar: "color-text-primary-brand-solar",
8
8
  indigo: "color-text-primary-brand-indigo",
9
9
  primary: "color-text-primary",
10
10
  inverted: "color-text-primary-inverted"
11
11
  }, M = ({
12
- imagePosition: t,
13
- title: c,
12
+ imagePosition: o,
13
+ title: t,
14
14
  description: s,
15
- image: o,
16
- button: i,
17
- label: m,
18
- labelColor: n,
19
- mobileImage: p,
20
- colorScheme: r,
21
- buttonColor: g
15
+ image: h,
16
+ button: a,
17
+ label: d,
18
+ labelColor: p,
19
+ mobileImage: g,
20
+ colorScheme: l,
21
+ buttonColor: m
22
22
  }) => {
23
- const h = n || (r === "dark" ? "inverted" : "primary");
24
- return /* @__PURE__ */ e("section", { className: a.root, "data-color-scheme": r, children: /* @__PURE__ */ l("div", { className: a.container, "data-image-position": t, children: [
25
- /* @__PURE__ */ l("div", { className: a.textContainer, children: [
26
- m && /* @__PURE__ */ e(
27
- d,
23
+ const y = p || (l === "dark" ? "inverted" : "primary");
24
+ return /* @__PURE__ */ i("section", { className: e.root, "data-color-scheme": l, children: /* @__PURE__ */ r("div", { className: e.container, "data-image-position": o, children: [
25
+ /* @__PURE__ */ r("div", { className: e.textContainer, children: [
26
+ d && /* @__PURE__ */ i(
27
+ c,
28
28
  {
29
29
  as: "p",
30
- defaultVariant: "labelMd",
31
- mobileVariant: "labelSm",
30
+ defaultVariant: "labelSm",
32
31
  emphasis: !0,
33
- className: a.label,
34
- color: v[h],
35
- children: m
32
+ className: e.label,
33
+ color: v[y],
34
+ children: d
36
35
  }
37
36
  ),
38
- /* @__PURE__ */ l("div", { className: a.titleContainer, children: [
39
- /* @__PURE__ */ e(
40
- y,
37
+ /* @__PURE__ */ r("div", { className: e.titleContainer, children: [
38
+ /* @__PURE__ */ i(
39
+ N,
41
40
  {
42
- colorScheme: r === "dark" ? "dark" : "light",
43
- className: a.title,
41
+ colorScheme: l === "dark" ? "dark" : "light",
42
+ className: e.title,
44
43
  defaultVariant: "displayMd",
45
44
  mobileVariant: "headingXl",
46
- title: c
45
+ title: t
47
46
  }
48
47
  ),
49
- /* @__PURE__ */ e("div", { className: a.mobileImageContainer, children: /* @__PURE__ */ e("img", { src: p, alt: "", className: a.mobileImage }) }),
50
- s && /* @__PURE__ */ e(d, { className: a.description, defaultVariant: "bodyLg", mobileVariant: "bodyMd", children: s })
48
+ /* @__PURE__ */ i("div", { className: e.mobileImageContainer, children: /* @__PURE__ */ i("img", { src: g, alt: "", className: e.mobileImage }) }),
49
+ s && /* @__PURE__ */ i(c, { className: e.description, defaultVariant: "bodyLg", mobileVariant: "bodyMd", children: s })
51
50
  ] }),
52
- (i == null ? void 0 : i.link) && /* @__PURE__ */ e("div", { className: a.button, children: /* @__PURE__ */ e(N, { as: "a", href: i == null ? void 0 : i.link, variant: g || "secondary", size: "lg", children: (i == null ? void 0 : i.text) || "Get Started" }) })
51
+ (a == null ? void 0 : a.link) && /* @__PURE__ */ r("div", { className: e.buttonContainer, children: [
52
+ /* @__PURE__ */ i("div", { className: e.buttonDesktop, children: /* @__PURE__ */ i(n, { as: "a", href: a == null ? void 0 : a.link, variant: m || "secondary", size: "lg", children: (a == null ? void 0 : a.text) || "Get Started" }) }),
53
+ /* @__PURE__ */ i("div", { className: e.buttonMobile, children: /* @__PURE__ */ i(n, { as: "a", href: a == null ? void 0 : a.link, variant: m || "secondary", size: "sm", children: (a == null ? void 0 : a.text) || "Get Started" }) })
54
+ ] })
53
55
  ] }),
54
- /* @__PURE__ */ e("div", { className: a.imageContainer, children: /* @__PURE__ */ e("img", { src: o, alt: "", className: a.image }) })
56
+ /* @__PURE__ */ i("div", { className: e.imageContainer, children: /* @__PURE__ */ i("img", { src: h, alt: "", className: e.image }) })
55
57
  ] }) });
56
58
  };
57
59
  export {
@@ -18,7 +18,7 @@
18
18
  display: flex;
19
19
  width: 100%;
20
20
  max-width: var(--content-max-width);
21
- padding: 64px 120px;
21
+ padding: 60px 120px;
22
22
  position: relative;
23
23
  align-items: center;
24
24
  gap: 96px;
@@ -39,10 +39,10 @@
39
39
  .titleContainer {
40
40
  display: flex;
41
41
  flex-direction: column;
42
- gap: 16px;
42
+ gap: 8px;
43
43
  }
44
44
 
45
- .button {
45
+ .buttonContainer {
46
46
  width: fit-content;
47
47
  }
48
48
 
@@ -62,31 +62,65 @@
62
62
  display: none;
63
63
  }
64
64
 
65
- @media (width <= 1200px) {
65
+ .buttonMobile {
66
+ display: none;
67
+ }
68
+
69
+ @media (width <= 1240px) {
70
+ .container {
71
+ gap: 48px;
72
+ }
73
+ }
74
+
75
+ @media (width <= 1024px) {
76
+ .container {
77
+ padding: 60px 64px;
78
+ gap: 40px;
79
+ }
80
+
81
+ .title h2 {
82
+ font-size: var(--font-size-display-xs);
83
+ }
84
+
85
+ .description {
86
+ font-size: var(--font-size-body-md);
87
+ }
88
+ }
89
+
90
+ @media (width <= 820px) {
66
91
  .container {
67
- padding: 64px 20px;
68
- gap: 64px;
92
+ padding: 56px 48px;
93
+ gap: 36px;
94
+ }
95
+
96
+ .title h2 {
97
+ font-size: var(--font-size-heading-xl);
98
+ line-height: var(--line-height-sm);
99
+ }
100
+
101
+ .buttonDesktop {
102
+ display: none;
69
103
  }
70
104
 
71
- .imageContainer {
72
- max-width: 414px;
73
- max-height: 414px;
105
+ .buttonMobile {
106
+ display: block;
74
107
  }
75
108
  }
76
109
 
77
- @media (width <= 960px) {
110
+ @media (width <= 768px) {
78
111
  .container,
79
112
  .container[data-image-position='left'] {
80
113
  flex-direction: column;
81
114
  gap: 0px;
115
+ padding: 40px 20px;
82
116
  }
83
117
 
84
118
  .textContainer {
85
119
  gap: 32px;
86
120
  }
87
121
 
88
- .button {
89
- width: 100%;
122
+ .titleContainer {
123
+ gap: 24px;
90
124
  }
91
125
 
92
126
  .image {
@@ -105,22 +139,9 @@
105
139
  height: 100%;
106
140
  object-fit: cover;
107
141
  }
108
- }
109
-
110
- @media (width <= 768px) {
111
- .container {
112
- padding: 40px 20px;
113
- }
114
-
115
- .textContainer {
116
- gap: 16px;
117
- }
118
142
 
119
- .titleContainer {
120
- gap: 24px;
121
- }
122
-
123
- .button {
143
+ .buttonContainer {
144
+ width: 100%;
124
145
  margin-top: 16px;
125
146
  }
126
147
  }
@@ -14,7 +14,7 @@
14
14
  justify-content: center;
15
15
  align-items: center;
16
16
  flex-direction: column;
17
- gap: var(--spacing-64, 64px);
17
+ gap: 48px;
18
18
  padding: 5vw;
19
19
  }
20
20
 
@@ -26,7 +26,7 @@
26
26
  gap: var(--spacing-20);
27
27
  text-align: center;
28
28
  width: 100%;
29
- max-width: 670px;
29
+ max-width: 940px;
30
30
  }
31
31
 
32
32
  .description {
@@ -162,6 +162,21 @@
162
162
  display: none;
163
163
  }
164
164
 
165
+ @media (width <= 1024px) {
166
+ .header {
167
+ gap: 16px;
168
+ }
169
+ .header h2 {
170
+ font-size: var(--font-size-display-sm);
171
+ }
172
+ }
173
+
174
+ @media (width <= 820px) {
175
+ .header h2 {
176
+ font-size: var(--font-size-display-xs);
177
+ }
178
+ }
179
+
165
180
  @media (min-width: 769px) {
166
181
  .hideMobile {
167
182
  display: block;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/ProgramDetails/programDetails.module.css"),t=require("../../components/Typography/Typography.cjs.js"),n=require("./components/Features/Features.cjs.js"),o=({label:r,description:i,image:l,features:s})=>e.jsx("section",{className:a.root,children:e.jsxs("div",{className:a.container,children:[e.jsxs("div",{className:a.header,children:[r&&e.jsx(t.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,children:r}),e.jsx(t.Typography,{as:"p",defaultVariant:"preambleLg",mobileVariant:"preambleSm",children:i})]}),e.jsxs("div",{className:a.content,children:[e.jsx("img",{className:a.image,src:l,alt:"program detatils"}),s.length>0&&e.jsx(n.Features,{features:s})]})]})});exports.ProgramDetails=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../src/modules/ProgramDetails/programDetails.module.css"),t=require("../../components/Typography/Typography.cjs.js"),l=require("./components/Features/Features.cjs.js"),o=({label:r,description:i,image:n,features:a})=>e.jsx("section",{className:s.root,children:e.jsxs("div",{className:s.container,children:[e.jsxs("div",{className:s.header,children:[r&&e.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,children:r}),e.jsx(t.Typography,{as:"p",defaultVariant:"preambleLg",mobileVariant:"preambleSm",children:i})]}),e.jsxs("div",{className:s.content,children:[e.jsx("img",{className:s.image,src:n,alt:"program detatils"}),a.length>0&&e.jsx(l.Features,{features:a})]})]})});exports.ProgramDetails=o;
@@ -1,15 +1,15 @@
1
1
  import { jsx as a, jsxs as r } from "react/jsx-runtime";
2
2
  import e from "../../modules/ProgramDetails/programDetails.module.css";
3
- import { Typography as l } from "../../components/Typography/Typography.es.js";
3
+ import { Typography as t } from "../../components/Typography/Typography.es.js";
4
4
  import { Features as o } from "./components/Features/Features.es.js";
5
- const h = ({ label: i, description: m, image: s, features: t }) => /* @__PURE__ */ a("section", { className: e.root, children: /* @__PURE__ */ r("div", { className: e.container, children: [
5
+ const h = ({ label: i, description: m, image: l, features: s }) => /* @__PURE__ */ a("section", { className: e.root, children: /* @__PURE__ */ r("div", { className: e.container, children: [
6
6
  /* @__PURE__ */ r("div", { className: e.header, children: [
7
- i && /* @__PURE__ */ a(l, { as: "p", defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, children: i }),
8
- /* @__PURE__ */ a(l, { as: "p", defaultVariant: "preambleLg", mobileVariant: "preambleSm", children: m })
7
+ i && /* @__PURE__ */ a(t, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: i }),
8
+ /* @__PURE__ */ a(t, { as: "p", defaultVariant: "preambleLg", mobileVariant: "preambleSm", children: m })
9
9
  ] }),
10
10
  /* @__PURE__ */ r("div", { className: e.content, children: [
11
- /* @__PURE__ */ a("img", { className: e.image, src: s, alt: "program detatils" }),
12
- t.length > 0 && /* @__PURE__ */ a(o, { features: t })
11
+ /* @__PURE__ */ a("img", { className: e.image, src: l, alt: "program detatils" }),
12
+ s.length > 0 && /* @__PURE__ */ a(o, { features: s })
13
13
  ] })
14
14
  ] }) });
15
15
  export {
@@ -39,7 +39,34 @@
39
39
  aspect-ratio: 1 / 1;
40
40
  }
41
41
 
42
+ @media (width <= 1240px) {
43
+ .image {
44
+ max-width: 470px;
45
+ }
46
+ }
47
+
42
48
  @media (width <= 1024px) {
49
+ .container {
50
+ padding: 64px;
51
+ gap: 32px;
52
+ }
53
+
54
+ .content {
55
+ gap: 40px;
56
+ }
57
+
58
+ .image {
59
+ max-width: 410px;
60
+ }
61
+ }
62
+
63
+ @media (width <= 820px) {
64
+ .container {
65
+ padding: 56px 48px;
66
+ }
67
+ }
68
+
69
+ @media (width <= 768px) {
43
70
  .container {
44
71
  padding: 64px 20px 20px;
45
72
  gap: 40px;
@@ -37,6 +37,10 @@
37
37
  padding-top: var(--spacing-48);
38
38
  }
39
39
 
40
+ .tags > div {
41
+ text-align: left;
42
+ }
43
+
40
44
  .imageWrap {
41
45
  display: flex;
42
46
  align-items: center;
@@ -109,19 +113,41 @@
109
113
 
110
114
  @media (width <= 1024px) {
111
115
  .container {
112
- padding: var(--spacing-120) var(--spacing-20);
116
+ padding: var(--spacing-64);
113
117
  }
114
118
 
115
119
  .root[data-version='v1'] .image {
116
120
  padding: var(--spacing-12);
117
121
  }
122
+
123
+ .header h2 {
124
+ font-size: var(--font-size-display-sm);
125
+ }
126
+
127
+ .content {
128
+ gap: 40px;
129
+ }
118
130
  }
119
131
 
120
- @media screen and (width <= 768px) {
132
+ @media (width <= 820px) {
121
133
  .container {
122
- padding: var(--spacing-64) var(--spacing-20);
134
+ padding: var(--spacing-56) var(--spacing-48);
123
135
  }
136
+
137
+ .header {
138
+ margin-bottom: 48px;
139
+ }
140
+
141
+ .header h2 {
142
+ font-size: var(--font-size-display-xs);
143
+ }
144
+
145
+ .content {
146
+ gap: 36px;
147
+ }
148
+ }
124
149
 
150
+ @media screen and (width <= 768px) {
125
151
  .header {
126
152
  margin-bottom: var(--spacing-40);
127
153
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/YourProtocol/yourProtocol.module.css"),n=require("../../types/analytics/analytics.cjs.js"),h=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),y=require("../../components/Icon/Icon.cjs.js"),r=require("../../components/Typography/Typography.cjs.js"),g=require("../../components/Button/Button.cjs.js"),j=({title:t,image:o,tags:c,button:s,colorScheme:l="light"})=>{const d={event:n.EAnalyticsEvent.ctaClicked,type:n.EAnalyticsEventType.interaction,component:"YourProtocol",element:"Callback",payload:{ctaLink:(s==null?void 0:s.link)||"no_link"}},p=l==="dark"?"secondary":"primary";return e.jsx("section",{className:a.root,"data-scheme":l,children:e.jsxs("div",{className:a.container,children:[e.jsx(h.HighlightedTitle,{title:t,className:a.title,defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:l}),c.length>0&&e.jsx("div",{className:a.tagsList,children:c.map((i,m)=>e.jsxs("div",{className:a.tagItem,children:[i.icon&&e.jsx("div",{className:a.iconWrapper,children:e.jsx(y.Icon,{name:i.icon,className:a.icon})}),e.jsxs("div",{className:a.tagText,children:[e.jsx(r.Typography,{className:a.tagLabel,as:"p",defaultVariant:"headingXs",children:i.label}),i.description&&e.jsx(r.Typography,{className:a.tagDescription,as:"p",defaultVariant:"bodyMd",children:i.description})]})]},m))}),(s==null?void 0:s.link)&&(s==null?void 0:s.label)&&e.jsx("div",{className:a.callbackButton,children:e.jsx(g.Button,{href:s.link,as:"a",analyticsProps:d,size:"lg",variant:p,children:s.label})}),e.jsx("img",{src:o,alt:"Your Protocol",className:a.image})]})})};exports.YourProtocol=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/YourProtocol/yourProtocol.module.css"),n=require("../../types/analytics/analytics.cjs.js"),y=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),h=require("../../components/Icon/Icon.cjs.js"),r=require("../../components/Typography/Typography.cjs.js"),g=require("../../components/Button/Button.cjs.js"),j=({title:t,image:o,tags:c,button:i,colorScheme:l="light"})=>{const d={event:n.EAnalyticsEvent.ctaClicked,type:n.EAnalyticsEventType.interaction,component:"YourProtocol",element:"Callback",payload:{ctaLink:(i==null?void 0:i.link)||"no_link"}},m=l==="dark"?"secondary":"primary";return e.jsx("section",{className:a.root,"data-scheme":l,children:e.jsxs("div",{className:a.container,children:[e.jsx(y.HighlightedTitle,{title:t,className:a.title,defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:l}),c.length>0&&e.jsx("div",{className:a.tagsList,children:c.map((s,p)=>e.jsxs("div",{className:a.tagItem,children:[s.icon&&e.jsx("div",{className:a.iconWrapper,children:e.jsx(h.Icon,{name:s.icon,className:a.icon})}),e.jsxs("div",{className:a.tagText,children:[e.jsx(r.Typography,{className:a.tagLabel,as:"p",defaultVariant:"preambleSm",children:s.label}),s.description&&e.jsx(r.Typography,{className:a.tagDescription,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:s.description})]})]},p))}),(i==null?void 0:i.link)&&(i==null?void 0:i.label)&&e.jsx("div",{className:a.callbackButton,children:e.jsx(g.Button,{href:i.link,as:"a",analyticsProps:d,size:"lg",variant:m,children:i.label})}),e.jsx("img",{src:o,alt:"Your Protocol",className:a.image})]})})};exports.YourProtocol=j;
@@ -1,11 +1,11 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
2
  import a from "../../modules/YourProtocol/yourProtocol.module.css";
3
3
  import { EAnalyticsEventType as h, EAnalyticsEvent as y } from "../../types/analytics/analytics.es.js";
4
4
  import { HighlightedTitle as N } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
5
5
  import { Icon as f } from "../../components/Icon/Icon.es.js";
6
6
  import { Typography as n } from "../../components/Typography/Typography.es.js";
7
7
  import { Button as v } from "../../components/Button/Button.es.js";
8
- const L = ({ title: o, image: m, tags: c, button: i, colorScheme: r = "light" }) => {
8
+ const L = ({ title: m, image: o, tags: s, button: i, colorScheme: r = "light" }) => {
9
9
  const d = {
10
10
  event: y.ctaClicked,
11
11
  type: h.interaction,
@@ -15,26 +15,35 @@ const L = ({ title: o, image: m, tags: c, button: i, colorScheme: r = "light" })
15
15
  ctaLink: (i == null ? void 0 : i.link) || "no_link"
16
16
  }
17
17
  }, t = r === "dark" ? "secondary" : "primary";
18
- return /* @__PURE__ */ e("section", { className: a.root, "data-scheme": r, children: /* @__PURE__ */ s("div", { className: a.container, children: [
18
+ return /* @__PURE__ */ e("section", { className: a.root, "data-scheme": r, children: /* @__PURE__ */ c("div", { className: a.container, children: [
19
19
  /* @__PURE__ */ e(
20
20
  N,
21
21
  {
22
- title: o,
22
+ title: m,
23
23
  className: a.title,
24
24
  defaultVariant: "displayMd",
25
25
  mobileVariant: "headingXl",
26
26
  colorScheme: r
27
27
  }
28
28
  ),
29
- c.length > 0 && /* @__PURE__ */ e("div", { className: a.tagsList, children: c.map((l, p) => /* @__PURE__ */ s("div", { className: a.tagItem, children: [
29
+ s.length > 0 && /* @__PURE__ */ e("div", { className: a.tagsList, children: s.map((l, p) => /* @__PURE__ */ c("div", { className: a.tagItem, children: [
30
30
  l.icon && /* @__PURE__ */ e("div", { className: a.iconWrapper, children: /* @__PURE__ */ e(f, { name: l.icon, className: a.icon }) }),
31
- /* @__PURE__ */ s("div", { className: a.tagText, children: [
32
- /* @__PURE__ */ e(n, { className: a.tagLabel, as: "p", defaultVariant: "headingXs", children: l.label }),
33
- l.description && /* @__PURE__ */ e(n, { className: a.tagDescription, as: "p", defaultVariant: "bodyMd", children: l.description })
31
+ /* @__PURE__ */ c("div", { className: a.tagText, children: [
32
+ /* @__PURE__ */ e(n, { className: a.tagLabel, as: "p", defaultVariant: "preambleSm", children: l.label }),
33
+ l.description && /* @__PURE__ */ e(
34
+ n,
35
+ {
36
+ className: a.tagDescription,
37
+ as: "p",
38
+ defaultVariant: "bodyMd",
39
+ mobileVariant: "bodySm",
40
+ children: l.description
41
+ }
42
+ )
34
43
  ] })
35
44
  ] }, p)) }),
36
45
  (i == null ? void 0 : i.link) && (i == null ? void 0 : i.label) && /* @__PURE__ */ e("div", { className: a.callbackButton, children: /* @__PURE__ */ e(v, { href: i.link, as: "a", analyticsProps: d, size: "lg", variant: t, children: i.label }) }),
37
- /* @__PURE__ */ e("img", { src: m, alt: "Your Protocol", className: a.image })
46
+ /* @__PURE__ */ e("img", { src: o, alt: "Your Protocol", className: a.image })
38
47
  ] }) });
39
48
  };
40
49
  export {
@@ -14,52 +14,54 @@
14
14
  display: grid;
15
15
  grid-template-columns: 1fr auto;
16
16
  grid-template-rows: auto auto auto;
17
- gap: 32px;
18
- padding: 70px 120px;
17
+ grid-template-areas:
18
+ 'title title'
19
+ 'tags image'
20
+ 'button image';
21
+ gap: 32px 96px;
22
+ padding: 72px 120px;
19
23
  max-width: var(--content-max-width);
20
- align-items: start;
21
24
  }
22
25
 
23
26
  .title {
24
- grid-column: 1;
25
- grid-row: 1;
27
+ grid-area: title;
28
+ max-width: 780px;
29
+ margin-bottom: 16px;
26
30
  }
27
31
 
28
32
  .tagsList {
29
- grid-column: 1;
30
- grid-row: 2;
33
+ grid-area: tags;
31
34
  display: flex;
32
35
  flex-direction: column;
33
36
  }
34
37
 
35
38
  .callbackButton {
36
- grid-column: 1;
37
- grid-row: 3;
39
+ grid-area: button;
38
40
  }
39
41
 
40
42
  .image {
41
- grid-column: 2;
42
- grid-row: 1 / 4;
43
- width: 477px;
44
- height: 636px;
45
- object-fit: cover;
43
+ grid-area: image;
44
+ max-width: 477px;
45
+ max-height: 622px;
46
46
  border-radius: 19px;
47
- }
48
-
49
- .title,
50
- .tagsList,
51
- .callbackButton {
52
- width: 100%;
53
- max-width: 627px;
47
+ object-fit: cover;
54
48
  }
55
49
 
56
50
  .tagItem {
57
- padding: 16px 0;
51
+ padding: 18px 0;
58
52
  display: flex;
59
53
  gap: 16px;
60
54
  border-bottom: 1px solid var(--border-color-light);
61
55
  }
62
56
 
57
+ .tagItem:first-child {
58
+ padding-top: 0;
59
+ }
60
+
61
+ .tagItem:last-child {
62
+ padding-bottom: 0;
63
+ }
64
+
63
65
  .root[data-scheme='dark'] .tagItem {
64
66
  border-bottom: 1px solid var(--border-color-alpha-white-10);
65
67
  }
@@ -113,56 +115,156 @@
113
115
  color: var(--color-white);
114
116
  }
115
117
 
116
- @media (max-width: 1300px) {
118
+ @media (max-width: 1240px) {
119
+ .container {
120
+ padding: 64px 120px;
121
+ gap: 32px 64px;
122
+ }
123
+
124
+ .title h2 {
125
+ font-size: var(--font-size-display-md);
126
+ line-height: var(--line-height-xs);
127
+ letter-spacing: var(--letter-spacing-negative-xl);
128
+ }
129
+ }
130
+
131
+ @media (max-width: 1150px) {
132
+ .container {
133
+ gap: 32px 56px;
134
+ padding: 56px 64px;
135
+ }
136
+
137
+ .title {
138
+ margin-bottom: 8px;
139
+ }
140
+
141
+ .title h2 {
142
+ font-size: var(--font-size-display-sm);
143
+ line-height: var(--line-height-xs);
144
+ letter-spacing: var(--letter-spacing-negative-xl);
145
+ }
146
+
147
+ .image {
148
+ grid-area: image;
149
+ max-width: 360px;
150
+ max-height: 480px;
151
+ border-radius: 14px;
152
+ }
153
+ }
154
+
155
+ @media (max-width: 820px) {
117
156
  .container {
118
157
  grid-template-columns: 1fr;
119
158
  grid-template-rows: auto auto auto auto;
120
- padding: 64px 17px;
159
+ grid-template-areas:
160
+ 'title'
161
+ 'image'
162
+ 'tags'
163
+ 'button';
164
+ padding: 56px 48px;
165
+ gap: 32px;
121
166
  }
122
167
 
123
168
  .title {
124
- grid-column: 1;
125
- grid-row: 1;
126
- max-width: 685px;
169
+ max-width: unset;
170
+ }
171
+
172
+ .title h2 {
173
+ font-size: var(--font-size-display-xs);
127
174
  }
128
175
 
129
176
  .image {
130
- grid-column: 1;
131
- grid-row: 2;
132
177
  width: 100%;
133
- height: 350px;
178
+ max-width: unset;
179
+ max-height: 350px;
134
180
  }
135
181
 
136
182
  .tagsList {
137
- grid-column: 1;
138
- grid-row: 3;
183
+ margin-top: 16px;
139
184
  }
185
+ }
140
186
 
141
- .tagsList,
142
- .callbackButton {
143
- max-width: unset;
187
+ @media (max-width: 768px) {
188
+ .container {
189
+ padding: 48px 32px;
144
190
  }
145
191
 
146
- .callbackButton {
147
- grid-column: 1;
148
- grid-row: 4;
192
+ .title {
193
+ margin-bottom: unset;
194
+ }
195
+
196
+ .tagsList {
197
+ margin-top: 8px;
149
198
  }
150
199
  }
151
200
 
152
- @media (max-width: 768px) {
201
+ @media (max-width: 600px) {
202
+
203
+ .image {
204
+ max-height: 270px;
205
+ }
153
206
  .container {
154
- gap: 20px;
207
+ padding: 48px 28px;
208
+ }
209
+
210
+ .tagsList {
211
+ margin-top: unset;
212
+ }
213
+ }
214
+
215
+ @media (max-width: 480px) {
216
+ .container {
217
+ padding: 40px 24px;
218
+ }
219
+
220
+ .title {
221
+ margin-bottom: -4px;
155
222
  }
156
223
 
157
- .tagItem {
158
- padding: 24px 0;
224
+ .title h2 {
225
+ font-size: var(--font-size-heading-xl);
226
+ line-height: var(--line-height-sm);
227
+ letter-spacing: var(--letter-spacing-negative-xl);
159
228
  }
160
229
 
161
230
  .image {
162
- height: 240px;
231
+ max-height: 215px;
232
+ }
233
+
234
+ .iconWrapper {
235
+ width: 42px;
236
+ height: 42px;
237
+ padding: 10px;
238
+ border-radius: 6.3px;
239
+ }
240
+
241
+ .icon {
242
+ width: 22px;
243
+ height: 22px;
244
+ }
245
+ }
246
+
247
+ @media (max-width: 375px) {
248
+ .container {
249
+ padding: 32px 20px;
163
250
  }
164
251
 
165
252
  .title {
166
- max-width: 335px;
253
+ margin-bottom: -8px;
254
+ }
255
+
256
+ .image {
257
+ max-height: 167px;
167
258
  }
168
259
  }
260
+
261
+ @media (max-width: 320px) {
262
+ .container {
263
+ padding: 28px 16px;
264
+ gap: 24px;
265
+ }
266
+
267
+ .title {
268
+ margin-bottom: -4px;
269
+ }
270
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.84",
3
+ "version": "0.2.86",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",