@zenpatient-org/healthspan-marketing-ui 0.2.42 → 0.2.43
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/modules/FeaturedIn/FeaturedIn.cjs.js +1 -1
- package/dist/modules/FeaturedIn/FeaturedIn.d.ts +2 -3
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +14 -14
- package/dist/modules/FeaturedIn/components/CtaFeaturedIn.cjs.js +1 -1
- package/dist/modules/FeaturedIn/components/CtaFeaturedIn.d.ts +3 -2
- package/dist/modules/FeaturedIn/components/CtaFeaturedIn.es.js +6 -6
- package/dist/modules/FeaturedIn/featuredIn.module.css +9 -22
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),i=require("../../utils/cn/cn.cjs.js"),u=require("./components/CtaFeaturedIn.cjs.js"),a=require("../../src/modules/FeaturedIn/featuredIn.module.css"),l=require("../../components/Typography/Typography.cjs.js"),d=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js");function m({media:r}){return e.jsx("div",{className:a.mediaFeaturedInBlock,children:r.filter(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),i=require("../../utils/cn/cn.cjs.js"),u=require("./components/CtaFeaturedIn.cjs.js"),a=require("../../src/modules/FeaturedIn/featuredIn.module.css"),l=require("../../components/Typography/Typography.cjs.js"),d=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js");function m({media:r}){return e.jsx("div",{className:a.mediaFeaturedInBlock,children:r.filter(n=>!!n.logo).map(({logo:n,url:s},o)=>{const t=s?"a":"div";return e.jsx(t,{href:s,target:"_blank",rel:"noopener noreferrer",className:a.mediaFeaturedInImageContainer,children:e.jsx("div",{className:a.mediaFeaturedInImage,style:{backgroundImage:`url(${n})`}})},`${s}_${o}`)})})}function p({quote:r,source:n}){return e.jsxs("div",{className:a.quoteFeaturedInBlock,children:[e.jsxs(l.Typography,{as:"p",defaultVariant:"headingSm",mobileVariant:"headingXxs",className:a.quoteFeaturedInText,children:["“",r,"”"]}),n&&e.jsxs(l.Typography,{as:"p",defaultVariant:"labelXs",emphasis:!0,className:a.quoteFeaturedInSource,children:["— ",n]})]})}function h({label:r,title:n,content:s,colorScheme:o="light"}){return e.jsxs("section",{className:i.cn(a.container,a[o]),children:[e.jsx(l.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.label,children:r}),n&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:i.cn(a.title,a.customTitle),children:n}),e.jsx(l.Typography,{as:"p",defaultVariant:"displayMd",className:i.cn(a.title,a.defaultTitle),children:n})]}),e.jsx(d.InfiniteScroll,{items:s,contentClassName:a.content,itemClassName:a.item,rootClassName:a.scrollRoot,renderItem:t=>e.jsxs(c.Fragment,{children:[t.type==="media"&&e.jsx(m,{media:t.media}),t.type==="quote"&&e.jsx(p,{quote:t.quote,source:t.source}),t.type==="cta"&&e.jsx(u.CtaFeaturedIn,{buttonLabel:t.button_label,buttonLink:t.button_link})]},t.type)})]})}exports.FeaturedIn=h;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { TColorScheme } from '../../types/common';
|
|
2
|
-
|
|
3
1
|
type TMediaView = {
|
|
4
2
|
type: 'media';
|
|
5
3
|
media: Array<{
|
|
@@ -15,12 +13,13 @@ type TFeaturedQuoteView = {
|
|
|
15
13
|
type TFeaturedButtonView = {
|
|
16
14
|
type: 'cta';
|
|
17
15
|
button_label: string;
|
|
16
|
+
button_link?: string;
|
|
18
17
|
};
|
|
19
18
|
export type FeaturedInProps = {
|
|
20
19
|
label: string;
|
|
21
20
|
title?: string;
|
|
22
21
|
content: Array<TMediaView | TFeaturedQuoteView | TFeaturedButtonView>;
|
|
23
|
-
colorScheme?:
|
|
22
|
+
colorScheme?: 'light' | 'dark';
|
|
24
23
|
};
|
|
25
24
|
export declare function FeaturedIn({ label, title, content, colorScheme }: FeaturedInProps): import("react/jsx-runtime").JSX.Element;
|
|
26
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
1
|
+
import { jsxs as n, jsx as r, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as c } from "react";
|
|
3
3
|
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { CtaFeaturedIn as u } from "./components/CtaFeaturedIn.es.js";
|
|
@@ -6,14 +6,14 @@ import e from "../../modules/FeaturedIn/featuredIn.module.css";
|
|
|
6
6
|
import { Typography as i } from "../../components/Typography/Typography.es.js";
|
|
7
7
|
import { InfiniteScroll as p } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
8
8
|
function f({ media: l }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ r("div", { className: e.mediaFeaturedInBlock, children: l.filter((a) => !!a.logo).map(({ logo: a, url: o }, s) => /* @__PURE__ */ r(
|
|
10
10
|
o ? "a" : "div",
|
|
11
11
|
{
|
|
12
12
|
href: o,
|
|
13
13
|
target: "_blank",
|
|
14
14
|
rel: "noopener noreferrer",
|
|
15
15
|
className: e.mediaFeaturedInImageContainer,
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ r("div", { className: e.mediaFeaturedInImage, style: { backgroundImage: `url(${a})` } })
|
|
17
17
|
},
|
|
18
18
|
`${o}_${s}`
|
|
19
19
|
)) });
|
|
@@ -40,29 +40,29 @@ function h({ quote: l, source: a }) {
|
|
|
40
40
|
] })
|
|
41
41
|
] });
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function q({ label: l, title: a, content: o, colorScheme: s = "light" }) {
|
|
44
44
|
return /* @__PURE__ */ n("section", { className: m(e.container, e[s]), children: [
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ r(i, { as: "p", defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: l }),
|
|
46
46
|
a && /* @__PURE__ */ n(d, { children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ r("p", { className: m(e.title, e.customTitle), children: a }),
|
|
48
|
+
/* @__PURE__ */ r(i, { as: "p", defaultVariant: "displayMd", className: m(e.title, e.defaultTitle), children: a })
|
|
49
49
|
] }),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ r(
|
|
51
51
|
p,
|
|
52
52
|
{
|
|
53
53
|
items: o,
|
|
54
54
|
contentClassName: e.content,
|
|
55
55
|
itemClassName: e.item,
|
|
56
56
|
rootClassName: e.scrollRoot,
|
|
57
|
-
renderItem: (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
] },
|
|
57
|
+
renderItem: (t) => /* @__PURE__ */ n(c, { children: [
|
|
58
|
+
t.type === "media" && /* @__PURE__ */ r(f, { media: t.media }),
|
|
59
|
+
t.type === "quote" && /* @__PURE__ */ r(h, { quote: t.quote, source: t.source }),
|
|
60
|
+
t.type === "cta" && /* @__PURE__ */ r(u, { buttonLabel: t.button_label, buttonLink: t.button_link })
|
|
61
|
+
] }, t.type)
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
] });
|
|
65
65
|
}
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
q as FeaturedIn
|
|
68
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("../../../types/analytics/analytics.cjs.js"),c=require("../../../src/modules/FeaturedIn/featuredIn.module.css");function
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("../../../types/analytics/analytics.cjs.js"),c=require("../../../src/modules/FeaturedIn/featuredIn.module.css");function l({buttonLabel:s,buttonLink:i}){const e=i||"https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948",r=()=>{var t;(t=window.eventBus)==null||t.emit("analytics",{event:a.EAnalyticsEvent.ctaClicked,type:a.EAnalyticsEventType.interaction,component:"FeaturedIn",element:"primary_button",payload:{link:e}})};return n.jsx("a",{href:e,onClick:r,className:c.ctaFeaturedIn,children:n.jsx("span",{className:c.ctaFeaturedInText,children:s})})}exports.CtaFeaturedIn=l;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type CtaFeaturedInProps = {
|
|
2
|
-
|
|
2
|
+
buttonLabel: string;
|
|
3
|
+
buttonLink?: string;
|
|
3
4
|
};
|
|
4
|
-
export declare function CtaFeaturedIn({
|
|
5
|
+
export declare function CtaFeaturedIn({ buttonLabel, buttonLink }: CtaFeaturedInProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { EAnalyticsEventType as
|
|
3
|
+
import { EAnalyticsEventType as o, EAnalyticsEvent as r } from "../../../types/analytics/analytics.es.js";
|
|
4
4
|
import a from "../../../modules/FeaturedIn/featuredIn.module.css";
|
|
5
|
-
function
|
|
6
|
-
const t = "https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948";
|
|
5
|
+
function m({ buttonLabel: c, buttonLink: i }) {
|
|
6
|
+
const t = i || "https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948";
|
|
7
7
|
return /* @__PURE__ */ n("a", { href: t, onClick: () => {
|
|
8
8
|
var e;
|
|
9
9
|
(e = window.eventBus) == null || e.emit("analytics", {
|
|
10
|
-
event:
|
|
11
|
-
type:
|
|
10
|
+
event: r.ctaClicked,
|
|
11
|
+
type: o.interaction,
|
|
12
12
|
component: "FeaturedIn",
|
|
13
13
|
element: "primary_button",
|
|
14
14
|
payload: {
|
|
@@ -18,5 +18,5 @@ function d({ button_label: c }) {
|
|
|
18
18
|
}, className: a.ctaFeaturedIn, children: /* @__PURE__ */ n("span", { className: a.ctaFeaturedInText, children: c }) });
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
m as CtaFeaturedIn
|
|
22
22
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
gap: var(--spacing-
|
|
5
|
+
gap: var(--spacing-18, 18px);
|
|
6
6
|
padding: var(--spacing-120) 0;
|
|
7
7
|
position: relative;
|
|
8
8
|
}
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
text-align: center;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.label + .scrollRoot {
|
|
20
|
-
margin-top: 91px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
19
|
.item {
|
|
24
20
|
display: flex;
|
|
25
21
|
flex-direction: row;
|
|
@@ -40,6 +36,7 @@
|
|
|
40
36
|
|
|
41
37
|
.container.dark .title {
|
|
42
38
|
color: var(--color-text-primary-inverted);
|
|
39
|
+
opacity: 0.4;
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
.customTitle {
|
|
@@ -112,6 +109,7 @@
|
|
|
112
109
|
width: 100%;
|
|
113
110
|
text-align: center;
|
|
114
111
|
color: var(--color-text-secondary-disabled);
|
|
112
|
+
opacity: 0.5;
|
|
115
113
|
}
|
|
116
114
|
|
|
117
115
|
.container.dark .quoteFeaturedInSource {
|
|
@@ -173,13 +171,6 @@
|
|
|
173
171
|
}
|
|
174
172
|
|
|
175
173
|
@media (width <= 900px) {
|
|
176
|
-
.customTitle {
|
|
177
|
-
display: none;
|
|
178
|
-
}
|
|
179
|
-
.defaultTitle {
|
|
180
|
-
display: block;
|
|
181
|
-
font-feature-settings: "case";
|
|
182
|
-
}
|
|
183
174
|
.mediaFeaturedInBlock {
|
|
184
175
|
column-gap: var(--spacing-16, 16px);
|
|
185
176
|
}
|
|
@@ -189,18 +180,14 @@
|
|
|
189
180
|
}
|
|
190
181
|
|
|
191
182
|
@media (width <= 768px) {
|
|
192
|
-
.
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.label + .scrollRoot {
|
|
197
|
-
margin-top: 52px;
|
|
183
|
+
.customTitle {
|
|
184
|
+
display: none;
|
|
198
185
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
186
|
+
.defaultTitle {
|
|
187
|
+
display: block;
|
|
188
|
+
font-feature-settings: "case";
|
|
202
189
|
}
|
|
203
|
-
|
|
190
|
+
|
|
204
191
|
.content {
|
|
205
192
|
padding: 15px 0;
|
|
206
193
|
}
|