@zenpatient-org/healthspan-marketing-ui 0.2.41 → 0.2.42
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.
|
@@ -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"),
|
|
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,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as s } 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
|
-
import { Typography as
|
|
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
|
|
9
|
-
const
|
|
8
|
+
const L = ({ title: o, image: m, tags: c, button: i, colorScheme: r = "light" }) => {
|
|
9
|
+
const d = {
|
|
10
10
|
event: y.ctaClicked,
|
|
11
11
|
type: h.interaction,
|
|
12
12
|
component: "YourProtocol",
|
|
13
13
|
element: "Callback",
|
|
14
14
|
payload: {
|
|
15
|
-
ctaLink:
|
|
15
|
+
ctaLink: (i == null ? void 0 : i.link) || "no_link"
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
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: [
|
|
19
|
+
/* @__PURE__ */ e(
|
|
20
20
|
N,
|
|
21
21
|
{
|
|
22
|
-
title:
|
|
22
|
+
title: o,
|
|
23
23
|
className: a.title,
|
|
24
24
|
defaultVariant: "displayMd",
|
|
25
25
|
mobileVariant: "headingXl",
|
|
26
|
-
colorScheme:
|
|
26
|
+
colorScheme: r
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
29
|
+
c.length > 0 && /* @__PURE__ */ e("div", { className: a.tagsList, children: c.map((l, p) => /* @__PURE__ */ s("div", { className: a.tagItem, children: [
|
|
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 })
|
|
34
34
|
] })
|
|
35
35
|
] }, p)) }),
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
36
|
+
(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 })
|
|
38
38
|
] }) });
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
L as YourProtocol
|
|
42
42
|
};
|