@zenpatient-org/healthspan-marketing-ui 0.1.74 → 0.1.75

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("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),o=require("./components/BenefitTag/BenefitTag.cjs.js"),m=require("./components/BenefitItem/BenefitItem.cjs.js"),u=require("../../components/Typography/Typography.cjs.js"),t=require("./benefits.module.css.cjs.js"),g=({label:s,title:l,image:r,benefits:n,tags:d})=>e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.header,children:[e.jsx(u.Typography,{defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:t.default.label,children:s}),e.jsx(c.HighlightedTitle,{title:l,defaultVariant:"displayMd",mobileVariant:"headingLg"})]}),e.jsxs("div",{className:t.default.content,children:[e.jsxs("div",{className:t.default.imageWrapper,children:[e.jsx("img",{src:r,alt:"image",className:t.default.image}),d.map((i,a)=>e.jsx(o.BenefitTag,{text:i,className:t.default[`tag${a+1}`]},a))]}),e.jsx("div",{className:t.default.benefits,children:n.map((i,a)=>e.jsx(m.BenefitItem,{index:a+1,title:i.title,description:i.description},a))})]})]})});exports.Benefits=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("./components/BenefitTag/BenefitTag.cjs.js"),c=require("./components/BenefitItem/BenefitItem.cjs.js"),h=require("../../components/Typography/Typography.cjs.js"),a=require("./benefits.module.css.cjs.js"),f=({label:o,title:m,image:i,benefits:l,tags:r,colorScheme:d="light"})=>{const u=l.length===1;return e.jsx("section",{className:a.default.root,"data-color-scheme":d,children:u?e.jsx("div",{className:a.default.soloContainer,children:e.jsxs("div",{className:a.default.soloContent,children:[e.jsxs("div",{className:a.default.soloImageWrapper,children:[e.jsx("img",{src:i,alt:"image",className:a.default.soloImage}),r.map((s,t)=>e.jsx(n.BenefitTag,{text:s,className:a.default[`tag${t+1}`]},t))]}),e.jsx("div",{className:a.default.soloItem,children:e.jsx(c.BenefitItem,{index:0,title:l[0].title,description:l[0].description})})]})}):e.jsxs("div",{className:a.default.container,children:[e.jsxs("div",{className:a.default.header,children:[e.jsx(h.Typography,{defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.default.label,children:o}),e.jsx(g.HighlightedTitle,{title:m,colorScheme:d,defaultVariant:"displayMd",mobileVariant:"headingLg"})]}),e.jsxs("div",{className:a.default.content,children:[e.jsxs("div",{className:a.default.imageWrapper,children:[e.jsx("img",{src:i,alt:"image",className:a.default.image}),r.map((s,t)=>e.jsx(n.BenefitTag,{text:s,className:a.default[`tag${t+1}`]},t))]}),e.jsx("div",{className:a.default.benefits,children:l.map((s,t)=>e.jsx(c.BenefitItem,{index:t+1,title:s.title,description:s.description},t))})]})]})})};exports.Benefits=f;
@@ -9,6 +9,7 @@ type Props = {
9
9
  description: string;
10
10
  }>;
11
11
  tags: Array<string>;
12
+ colorScheme?: 'light' | 'dark';
12
13
  };
13
- export declare const Benefits: ({ label, title, image, benefits, tags }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const Benefits: ({ label, title, image, benefits, tags, colorScheme }: Props) => import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -1,30 +1,47 @@
1
- import { jsx as a, jsxs as r } from "react/jsx-runtime";
2
- import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
3
- import { BenefitTag as d } from "./components/BenefitTag/BenefitTag.es.js";
4
- import { BenefitItem as p } from "./components/BenefitItem/BenefitItem.es.js";
5
- import { Typography as h } from "../../components/Typography/Typography.es.js";
1
+ import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
+ import { HighlightedTitle as g } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
3
+ import { BenefitTag as c } from "./components/BenefitTag/BenefitTag.es.js";
4
+ import { BenefitItem as d } from "./components/BenefitItem/BenefitItem.es.js";
5
+ import { Typography as N } from "../../components/Typography/Typography.es.js";
6
6
  import e from "./benefits.module.css.es.js";
7
- const y = ({ label: l, title: s, image: m, benefits: o, tags: c }) => /* @__PURE__ */ a("section", { className: e.root, children: /* @__PURE__ */ r("div", { className: e.container, children: [
8
- /* @__PURE__ */ r("div", { className: e.header, children: [
9
- /* @__PURE__ */ a(h, { defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: l }),
10
- /* @__PURE__ */ a(n, { title: s, defaultVariant: "displayMd", mobileVariant: "headingLg" })
11
- ] }),
12
- /* @__PURE__ */ r("div", { className: e.content, children: [
13
- /* @__PURE__ */ r("div", { className: e.imageWrapper, children: [
14
- /* @__PURE__ */ a("img", { src: m, alt: "image", className: e.image }),
15
- c.map((t, i) => /* @__PURE__ */ a(d, { text: t, className: e[`tag${i + 1}`] }, i))
7
+ const V = ({ label: n, title: p, image: r, benefits: t, tags: m, colorScheme: o = "light" }) => {
8
+ const h = t.length === 1;
9
+ return /* @__PURE__ */ a("section", { className: e.root, "data-color-scheme": o, children: h ? /* @__PURE__ */ a("div", { className: e.soloContainer, children: /* @__PURE__ */ s("div", { className: e.soloContent, children: [
10
+ /* @__PURE__ */ s("div", { className: e.soloImageWrapper, children: [
11
+ /* @__PURE__ */ a("img", { src: r, alt: "image", className: e.soloImage }),
12
+ m.map((l, i) => /* @__PURE__ */ a(c, { text: l, className: e[`tag${i + 1}`] }, i))
16
13
  ] }),
17
- /* @__PURE__ */ a("div", { className: e.benefits, children: o.map((t, i) => /* @__PURE__ */ a(
18
- p,
19
- {
20
- index: i + 1,
21
- title: t.title,
22
- description: t.description
23
- },
24
- i
25
- )) })
26
- ] })
27
- ] }) });
14
+ /* @__PURE__ */ a("div", { className: e.soloItem, children: /* @__PURE__ */ a(d, { index: 0, title: t[0].title, description: t[0].description }) })
15
+ ] }) }) : /* @__PURE__ */ s("div", { className: e.container, children: [
16
+ /* @__PURE__ */ s("div", { className: e.header, children: [
17
+ /* @__PURE__ */ a(N, { defaultVariant: "labelMd", mobileVariant: "labelSm", emphasis: !0, className: e.label, children: n }),
18
+ /* @__PURE__ */ a(
19
+ g,
20
+ {
21
+ title: p,
22
+ colorScheme: o,
23
+ defaultVariant: "displayMd",
24
+ mobileVariant: "headingLg"
25
+ }
26
+ )
27
+ ] }),
28
+ /* @__PURE__ */ s("div", { className: e.content, children: [
29
+ /* @__PURE__ */ s("div", { className: e.imageWrapper, children: [
30
+ /* @__PURE__ */ a("img", { src: r, alt: "image", className: e.image }),
31
+ m.map((l, i) => /* @__PURE__ */ a(c, { text: l, className: e[`tag${i + 1}`] }, i))
32
+ ] }),
33
+ /* @__PURE__ */ a("div", { className: e.benefits, children: t.map((l, i) => /* @__PURE__ */ a(
34
+ d,
35
+ {
36
+ index: i + 1,
37
+ title: l.title,
38
+ description: l.description
39
+ },
40
+ i
41
+ )) })
42
+ ] })
43
+ ] }) });
44
+ };
28
45
  export {
29
- y as Benefits
46
+ V as Benefits
30
47
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefits-module__root___DiO7c",t="benefits-module__container___ouE-Q",_="benefits-module__header___wt7M5",o="benefits-module__label___sgWAr",n="benefits-module__content___Q1Nej",a="benefits-module__imageWrapper___Owwd8",s="benefits-module__image___Hq7o5",i="benefits-module__tag1___orgyD",r="benefits-module__tag2___49bdt",l="benefits-module__tag3___TYdET",g="benefits-module__benefits___psqX-",c={root:e,container:t,header:_,label:o,content:n,imageWrapper:a,image:s,tag1:i,tag2:r,tag3:l,benefits:g};exports.benefits=g;exports.container=t;exports.content=n;exports.default=c;exports.header=_;exports.image=s;exports.imageWrapper=a;exports.label=o;exports.root=e;exports.tag1=i;exports.tag2=r;exports.tag3=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefits-module__root___DiO7c",o="benefits-module__container___ouE-Q",t="benefits-module__soloContainer___bLVrj",_="benefits-module__header___wt7M5",n="benefits-module__label___sgWAr",s="benefits-module__content___Q1Nej",a="benefits-module__soloContent___UDgoi",l="benefits-module__imageWrapper___Owwd8",i="benefits-module__soloImageWrapper___oS3I8",r="benefits-module__image___Hq7o5",m="benefits-module__soloImage___YSMfM",g="benefits-module__tag1___orgyD",b="benefits-module__tag2___49bdt",c="benefits-module__tag3___TYdET",d="benefits-module__benefits___psqX-",u="benefits-module__soloItem___1SOXX",f={root:e,container:o,soloContainer:t,header:_,label:n,content:s,soloContent:a,imageWrapper:l,soloImageWrapper:i,image:r,soloImage:m,tag1:g,tag2:b,tag3:c,benefits:d,soloItem:u};exports.benefits=d;exports.container=o;exports.content=s;exports.default=f;exports.header=_;exports.image=r;exports.imageWrapper=l;exports.label=n;exports.root=e;exports.soloContainer=t;exports.soloContent=a;exports.soloImage=m;exports.soloImageWrapper=i;exports.soloItem=u;exports.tag1=g;exports.tag2=b;exports.tag3=c;
@@ -1,27 +1,37 @@
1
- const e = "benefits-module__root___DiO7c", _ = "benefits-module__container___ouE-Q", t = "benefits-module__header___wt7M5", o = "benefits-module__label___sgWAr", n = "benefits-module__content___Q1Nej", s = "benefits-module__imageWrapper___Owwd8", a = "benefits-module__image___Hq7o5", i = "benefits-module__tag1___orgyD", c = "benefits-module__tag2___49bdt", l = "benefits-module__tag3___TYdET", b = "benefits-module__benefits___psqX-", d = {
1
+ const e = "benefits-module__root___DiO7c", o = "benefits-module__container___ouE-Q", _ = "benefits-module__soloContainer___bLVrj", t = "benefits-module__header___wt7M5", n = "benefits-module__label___sgWAr", s = "benefits-module__content___Q1Nej", a = "benefits-module__soloContent___UDgoi", l = "benefits-module__imageWrapper___Owwd8", i = "benefits-module__soloImageWrapper___oS3I8", m = "benefits-module__image___Hq7o5", r = "benefits-module__soloImage___YSMfM", b = "benefits-module__tag1___orgyD", c = "benefits-module__tag2___49bdt", g = "benefits-module__tag3___TYdET", d = "benefits-module__benefits___psqX-", f = "benefits-module__soloItem___1SOXX", u = {
2
2
  root: e,
3
- container: _,
3
+ container: o,
4
+ soloContainer: _,
4
5
  header: t,
5
- label: o,
6
- content: n,
7
- imageWrapper: s,
8
- image: a,
9
- tag1: i,
6
+ label: n,
7
+ content: s,
8
+ soloContent: a,
9
+ imageWrapper: l,
10
+ soloImageWrapper: i,
11
+ image: m,
12
+ soloImage: r,
13
+ tag1: b,
10
14
  tag2: c,
11
- tag3: l,
12
- benefits: b
15
+ tag3: g,
16
+ benefits: d,
17
+ soloItem: f
13
18
  };
14
19
  export {
15
- b as benefits,
16
- _ as container,
17
- n as content,
18
- d as default,
20
+ d as benefits,
21
+ o as container,
22
+ s as content,
23
+ u as default,
19
24
  t as header,
20
- a as image,
21
- s as imageWrapper,
22
- o as label,
25
+ m as image,
26
+ l as imageWrapper,
27
+ n as label,
23
28
  e as root,
24
- i as tag1,
29
+ _ as soloContainer,
30
+ a as soloContent,
31
+ r as soloImage,
32
+ i as soloImageWrapper,
33
+ f as soloItem,
34
+ b as tag1,
25
35
  c as tag2,
26
- l as tag3
36
+ g as tag3
27
37
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../../../components/Typography/Typography.cjs.js"),a=require("./benefitItem.module.css.cjs.js"),l=({index:i,title:n,description:r})=>e.jsxs("div",{className:a.default.benefit,children:[e.jsx(t.Typography,{defaultVariant:"labelXl",emphasis:!0,className:a.default.benefitIndex,children:`(0${i})`}),e.jsxs("div",{className:a.default.benefitDetails,children:[e.jsx(t.Typography,{defaultVariant:"headingLg",mobileVariant:"headingXs",className:a.default.benefitTitle,children:n}),e.jsx(t.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.benefitDesc,children:r})]})]});exports.BenefitItem=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("../../../../components/Typography/Typography.cjs.js"),e=require("./benefitItem.module.css.cjs.js"),r=require("../../../../utils/cn/cn.cjs.js"),o=({index:l,title:s,description:n,colorScheme:d})=>{const a=l===0;return t.jsxs("div",{className:e.default.benefit,children:[!a&&t.jsx(i.Typography,{defaultVariant:"labelXl",emphasis:!0,className:e.default.benefitIndex,children:`(0${l})`}),t.jsxs("div",{className:r.cn(e.default.benefitDetails,{[e.default.soloDetails]:a}),children:[t.jsx(i.Typography,{defaultVariant:a?"displayXs":"headingLg",mobileVariant:a?"headingXl":"headingXs",className:e.default.benefitTitle,children:s}),t.jsx(i.Typography,{defaultVariant:a?"bodyLg":"bodyMd",mobileVariant:"bodySm",className:e.default.benefitDesc,children:n})]})]})};exports.BenefitItem=o;
@@ -2,6 +2,7 @@ type Props = {
2
2
  index: number;
3
3
  title: string;
4
4
  description: string;
5
+ colorScheme?: 'light' | 'dark';
5
6
  };
6
- export declare const BenefitItem: ({ index, title, description }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const BenefitItem: ({ index, title, description, colorScheme }: Props) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -1,13 +1,33 @@
1
- import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
- import { Typography as i } from "../../../../components/Typography/Typography.es.js";
1
+ import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
+ import { Typography as t } from "../../../../components/Typography/Typography.es.js";
3
3
  import e from "./benefitItem.module.css.es.js";
4
- const o = ({ index: l, title: n, description: r }) => /* @__PURE__ */ t("div", { className: e.benefit, children: [
5
- /* @__PURE__ */ a(i, { defaultVariant: "labelXl", emphasis: !0, className: e.benefitIndex, children: `(0${l})` }),
6
- /* @__PURE__ */ t("div", { className: e.benefitDetails, children: [
7
- /* @__PURE__ */ a(i, { defaultVariant: "headingLg", mobileVariant: "headingXs", className: e.benefitTitle, children: n }),
8
- /* @__PURE__ */ a(i, { defaultVariant: "bodyMd", mobileVariant: "bodySm", className: e.benefitDesc, children: r })
9
- ] })
10
- ] });
4
+ import { cn as o } from "../../../../utils/cn/cn.es.js";
5
+ const h = ({ index: l, title: r, description: n, colorScheme: m }) => {
6
+ const a = l === 0;
7
+ return /* @__PURE__ */ s("div", { className: e.benefit, children: [
8
+ !a && /* @__PURE__ */ i(t, { defaultVariant: "labelXl", emphasis: !0, className: e.benefitIndex, children: `(0${l})` }),
9
+ /* @__PURE__ */ s("div", { className: o(e.benefitDetails, { [e.soloDetails]: a }), children: [
10
+ /* @__PURE__ */ i(
11
+ t,
12
+ {
13
+ defaultVariant: a ? "displayXs" : "headingLg",
14
+ mobileVariant: a ? "headingXl" : "headingXs",
15
+ className: e.benefitTitle,
16
+ children: r
17
+ }
18
+ ),
19
+ /* @__PURE__ */ i(
20
+ t,
21
+ {
22
+ defaultVariant: a ? "bodyLg" : "bodyMd",
23
+ mobileVariant: "bodySm",
24
+ className: e.benefitDesc,
25
+ children: n
26
+ }
27
+ )
28
+ ] })
29
+ ] });
30
+ };
11
31
  export {
12
- o as BenefitItem
32
+ h as BenefitItem
13
33
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefitItem-module__benefit___yL87M",t="benefitItem-module__benefitIndex___I0-tr",n="benefitItem-module__benefitDetails___nw6dI",i={benefit:e,benefitIndex:t,benefitDetails:n};exports.benefit=e;exports.benefitDetails=n;exports.benefitIndex=t;exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="benefitItem-module__benefit___yL87M",t="benefitItem-module__benefitIndex___I0-tr",i="benefitItem-module__benefitDetails___nw6dI",n="benefitItem-module__soloDetails___L59Rg",l={benefit:e,benefitIndex:t,benefitDetails:i,soloDetails:n};exports.benefit=e;exports.benefitDetails=i;exports.benefitIndex=t;exports.default=l;exports.soloDetails=n;
@@ -1,11 +1,13 @@
1
- const e = "benefitItem-module__benefit___yL87M", t = "benefitItem-module__benefitIndex___I0-tr", n = "benefitItem-module__benefitDetails___nw6dI", i = {
1
+ const e = "benefitItem-module__benefit___yL87M", t = "benefitItem-module__benefitIndex___I0-tr", n = "benefitItem-module__benefitDetails___nw6dI", _ = "benefitItem-module__soloDetails___L59Rg", i = {
2
2
  benefit: e,
3
3
  benefitIndex: t,
4
- benefitDetails: n
4
+ benefitDetails: n,
5
+ soloDetails: _
5
6
  };
6
7
  export {
7
8
  e as benefit,
8
9
  n as benefitDetails,
9
10
  t as benefitIndex,
10
- i as default
11
+ i as default,
12
+ _ as soloDetails
11
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",