@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.
@@ -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(t=>!!t.logo).map(({logo:t,url:s},o)=>{const n=s?"a":"div";return e.jsx(n,{href:s,target:"_blank",rel:"noopener noreferrer",className:a.mediaFeaturedInImageContainer,children:e.jsx("div",{className:a.mediaFeaturedInImage,style:{backgroundImage:`url(${t})`}})},`${s}_${o}`)})})}function p({quote:r,source:t}){return e.jsxs("div",{className:a.quoteFeaturedInBlock,children:[e.jsxs(l.Typography,{as:"p",defaultVariant:"headingSm",mobileVariant:"headingXxs",className:a.quoteFeaturedInText,children:["“",r,"”"]}),t&&e.jsxs(l.Typography,{as:"p",defaultVariant:"labelXs",emphasis:!0,className:a.quoteFeaturedInSource,children:["— ",t]})]})}function h({label:r,title:t,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}),t&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:i.cn(a.title,a.customTitle),children:t}),e.jsx(l.Typography,{as:"p",defaultVariant:"displayMd",className:i.cn(a.title,a.defaultTitle),children:t})]}),e.jsx(d.InfiniteScroll,{items:s,contentClassName:a.content,itemClassName:a.item,rootClassName:a.scrollRoot,renderItem:n=>e.jsxs(c.Fragment,{children:[n.type==="media"&&e.jsx(m,{media:n.media}),n.type==="quote"&&e.jsx(p,{quote:n.quote,source:n.source}),n.type==="cta"&&e.jsx(u.CtaFeaturedIn,{button_label:n.button_label})]},n.type)})]})}exports.FeaturedIn=h;
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?: TColorScheme;
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 t, Fragment as d } from "react/jsx-runtime";
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__ */ t("div", { className: e.mediaFeaturedInBlock, children: l.filter((a) => !!a.logo).map(({ logo: a, url: o }, s) => /* @__PURE__ */ t(
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__ */ t("div", { className: e.mediaFeaturedInImage, style: { backgroundImage: `url(${a})` } })
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 V({ label: l, title: a, content: o, colorScheme: s = "light" }) {
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__ */ t(i, { as: "p", defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: l }),
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__ */ t("p", { className: m(e.title, e.customTitle), children: a }),
48
- /* @__PURE__ */ t(i, { as: "p", defaultVariant: "displayMd", className: m(e.title, e.defaultTitle), children: a })
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__ */ t(
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: (r) => /* @__PURE__ */ n(c, { children: [
58
- r.type === "media" && /* @__PURE__ */ t(f, { media: r.media }),
59
- r.type === "quote" && /* @__PURE__ */ t(h, { quote: r.quote, source: r.source }),
60
- r.type === "cta" && /* @__PURE__ */ t(u, { button_label: r.button_label })
61
- ] }, r.type)
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
- V as FeaturedIn
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 r({button_label:s}){const e="https://app.gethealthspan.com/#/product/signup/6896e50bc0af7d4d26738948",i=()=>{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:i,className:c.ctaFeaturedIn,children:n.jsx("span",{className:c.ctaFeaturedInText,children:s})})}exports.CtaFeaturedIn=r;
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
- button_label: string;
2
+ buttonLabel: string;
3
+ buttonLink?: string;
3
4
  };
4
- export declare function CtaFeaturedIn({ button_label }: CtaFeaturedInProps): import("react/jsx-runtime").JSX.Element;
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 i, EAnalyticsEvent as o } from "../../../types/analytics/analytics.es.js";
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 d({ button_label: c }) {
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: o.ctaClicked,
11
- type: i.interaction,
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
- d as CtaFeaturedIn
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-24, 24px);
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
- .scrollRoot {
193
- margin-top: 36px;
194
- }
195
-
196
- .label + .scrollRoot {
197
- margin-top: 52px;
183
+ .customTitle {
184
+ display: none;
198
185
  }
199
-
200
- .title {
201
- margin-top: 32px;
186
+ .defaultTitle {
187
+ display: block;
188
+ font-feature-settings: "case";
202
189
  }
203
-
190
+
204
191
  .content {
205
192
  padding: 15px 0;
206
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.42",
3
+ "version": "0.2.43",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",