@zenpatient-org/healthspan-marketing-ui 0.1.161 → 0.1.163

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"),y=require("../../utils/cn/cn.cjs.js"),u=require("../../components/Button/Button.cjs.js"),m=require("../../components/TextButton/TextButton.cjs.js"),f=require("../../components/ImageGallery/ImageGallery.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),v=require("../../components/SmartCallout/SmartCallout.cjs.js"),S=require("../../components/RatingStars/RatingStars.cjs.js"),_=require("./components/Features/Features.cjs.js"),q=require("./components/PlanCard/PlanCard.cjs.js"),a=require("./individualProductCard.module.css.cjs.js"),b=({name:h,description:c,features:g,images:p,label:j,rating:r,plans:t,button:l,textButton:s,selectedPlanId:x,onSelectPlan:o})=>{const n=t&&t.length>0&&o;return e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:y.cn(a.default.container,!n&&a.default.noPlans),children:[e.jsxs("div",{className:a.default.info,children:[e.jsxs("div",{className:a.default.infoHeader,children:[e.jsx(i.Typography,{as:"h3",defaultVariant:"displayXs",mobileVariant:"headingLg",weight:"regular",children:h}),!!c&&e.jsx(i.Typography,{as:"p",defaultVariant:"bodySm",className:a.default.infoDescription,weight:"regular",children:c}),r&&e.jsxs("div",{className:a.default.ratingContainer,children:[!!r.stars&&e.jsx(S.RatingStars,{rating:r.stars,size:"sm"}),!!r.totalReviews&&e.jsxs(i.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,children:[r.totalReviews," reviews"]})]})]}),e.jsx(_.Features,{features:g}),e.jsxs("div",{className:a.default.actions,children:[e.jsx(v.SmartCallout,{label:"HSA/FSA Eligibile"}),!n&&e.jsxs(e.Fragment,{children:[e.jsx(u.Button,{variant:"primary",size:"lg",...l,children:l.label}),s&&e.jsx(m.TextButton,{...s,children:s.label})]})]})]}),e.jsx(f.ImageGallery,{className:a.default.gallery,images:p,label:j}),n&&e.jsxs("div",{className:a.default.plansSection,children:[e.jsxs("div",{className:a.default.plans,children:[e.jsx(i.Typography,{as:"h4",defaultVariant:"labelSm",emphasis:!0,weight:"regular",children:"Subscribe & Save"}),t.map(d=>e.jsx(q.PlanCard,{plan:d,onSelect:o,isActive:x===d.id},d.id))]}),e.jsxs("div",{className:a.default.actions,children:[e.jsx(u.Button,{variant:"primary",size:"lg",...l,children:l.label}),s&&e.jsx(m.TextButton,{...s,children:s.label})]})]})]})})};exports.IndividualProductCard=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("../../utils/cn/cn.cjs.js"),u=require("../../components/Button/Button.cjs.js"),m=require("../../components/TextButton/TextButton.cjs.js"),f=require("../../components/ImageGallery/ImageGallery.cjs.js"),i=require("../../components/Typography/Typography.cjs.js"),v=require("../../components/SmartCallout/SmartCallout.cjs.js"),S=require("../../components/RatingStars/RatingStars.cjs.js"),_=require("./components/Features/Features.cjs.js"),q=require("./components/PlanCard/PlanCard.cjs.js"),a=require("./individualProductCard.module.css.cjs.js"),b=({name:h,description:c,features:g,images:p,label:j,rating:r,plans:t,button:l,textButton:s,selectedPlanId:x,onSelectPlan:o})=>{const n=t&&t.length>0&&o;return e.jsx("section",{className:a.default.root,children:e.jsxs("div",{className:y.cn(a.default.container,!n&&a.default.noPlans),children:[e.jsxs("div",{className:a.default.info,children:[e.jsxs("div",{className:a.default.infoHeader,children:[e.jsx(i.Typography,{as:"h3",defaultVariant:"displayXs",mobileVariant:"headingLg",weight:"regular",children:h}),!!c&&e.jsx(i.Typography,{as:"p",defaultVariant:"bodySm",className:a.default.infoDescription,weight:"regular",children:c}),r&&e.jsxs("div",{className:a.default.ratingContainer,children:[!!r.stars&&e.jsx(S.RatingStars,{rating:r.stars,size:"sm"}),!!r.totalReviews&&e.jsxs(i.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,children:[r.totalReviews," reviews"]})]})]}),e.jsx(_.Features,{features:g}),e.jsxs("div",{className:a.default.actions,children:[e.jsx(v.SmartCallout,{label:"HSA/FSA Eligible"}),!n&&e.jsxs(e.Fragment,{children:[e.jsx(u.Button,{variant:"primary",size:"lg",...l,children:l.label}),s&&e.jsx(m.TextButton,{...s,children:s.label})]})]})]}),e.jsx(f.ImageGallery,{className:a.default.gallery,images:p,label:j}),n&&e.jsxs("div",{className:a.default.plansSection,children:[e.jsxs("div",{className:a.default.plans,children:[e.jsx(i.Typography,{as:"h4",defaultVariant:"labelSm",emphasis:!0,weight:"regular",children:"Subscribe & Save"}),t.map(d=>e.jsx(q.PlanCard,{plan:d,onSelect:o,isActive:x===d.id},d.id))]}),e.jsxs("div",{className:a.default.actions,children:[e.jsx(u.Button,{variant:"primary",size:"lg",...l,children:l.label}),s&&e.jsx(m.TextButton,{...s,children:s.label})]})]})]})})};exports.IndividualProductCard=b;
@@ -1,4 +1,4 @@
1
- import { jsx as a, jsxs as i, Fragment as b } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as r, Fragment as b } from "react/jsx-runtime";
2
2
  import { cn as u } from "../../utils/cn/cn.es.js";
3
3
  import { Button as h } from "../../components/Button/Button.es.js";
4
4
  import { TextButton as p } from "../../components/TextButton/TextButton.es.js";
@@ -18,14 +18,14 @@ const L = ({
18
18
  rating: l,
19
19
  plans: c,
20
20
  button: s,
21
- textButton: r,
21
+ textButton: i,
22
22
  selectedPlanId: S,
23
23
  onSelectPlan: t
24
24
  }) => {
25
25
  const d = c && c.length > 0 && t;
26
- return /* @__PURE__ */ a("section", { className: e.root, children: /* @__PURE__ */ i("div", { className: u(e.container, !d && e.noPlans), children: [
27
- /* @__PURE__ */ i("div", { className: e.info, children: [
28
- /* @__PURE__ */ i("div", { className: e.infoHeader, children: [
26
+ return /* @__PURE__ */ a("section", { className: e.root, children: /* @__PURE__ */ r("div", { className: u(e.container, !d && e.noPlans), children: [
27
+ /* @__PURE__ */ r("div", { className: e.info, children: [
28
+ /* @__PURE__ */ r("div", { className: e.infoHeader, children: [
29
29
  /* @__PURE__ */ a(m, { as: "h3", defaultVariant: "displayXs", mobileVariant: "headingLg", weight: "regular", children: f }),
30
30
  !!n && /* @__PURE__ */ a(
31
31
  m,
@@ -37,26 +37,26 @@ const L = ({
37
37
  children: n
38
38
  }
39
39
  ),
40
- l && /* @__PURE__ */ i("div", { className: e.ratingContainer, children: [
40
+ l && /* @__PURE__ */ r("div", { className: e.ratingContainer, children: [
41
41
  !!l.stars && /* @__PURE__ */ a(V, { rating: l.stars, size: "sm" }),
42
- !!l.totalReviews && /* @__PURE__ */ i(m, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: [
42
+ !!l.totalReviews && /* @__PURE__ */ r(m, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: [
43
43
  l.totalReviews,
44
44
  " reviews"
45
45
  ] })
46
46
  ] })
47
47
  ] }),
48
48
  /* @__PURE__ */ a(C, { features: v }),
49
- /* @__PURE__ */ i("div", { className: e.actions, children: [
50
- /* @__PURE__ */ a(w, { label: "HSA/FSA Eligibile" }),
51
- !d && /* @__PURE__ */ i(b, { children: [
49
+ /* @__PURE__ */ r("div", { className: e.actions, children: [
50
+ /* @__PURE__ */ a(w, { label: "HSA/FSA Eligible" }),
51
+ !d && /* @__PURE__ */ r(b, { children: [
52
52
  /* @__PURE__ */ a(h, { variant: "primary", size: "lg", ...s, children: s.label }),
53
- r && /* @__PURE__ */ a(p, { ...r, children: r.label })
53
+ i && /* @__PURE__ */ a(p, { ...i, children: i.label })
54
54
  ] })
55
55
  ] })
56
56
  ] }),
57
57
  /* @__PURE__ */ a(y, { className: e.gallery, images: g, label: N }),
58
- d && /* @__PURE__ */ i("div", { className: e.plansSection, children: [
59
- /* @__PURE__ */ i("div", { className: e.plans, children: [
58
+ d && /* @__PURE__ */ r("div", { className: e.plansSection, children: [
59
+ /* @__PURE__ */ r("div", { className: e.plans, children: [
60
60
  /* @__PURE__ */ a(m, { as: "h4", defaultVariant: "labelSm", emphasis: !0, weight: "regular", children: "Subscribe & Save" }),
61
61
  c.map((o) => /* @__PURE__ */ a(
62
62
  z,
@@ -68,9 +68,9 @@ const L = ({
68
68
  o.id
69
69
  ))
70
70
  ] }),
71
- /* @__PURE__ */ i("div", { className: e.actions, children: [
71
+ /* @__PURE__ */ r("div", { className: e.actions, children: [
72
72
  /* @__PURE__ */ a(h, { variant: "primary", size: "lg", ...s, children: s.label }),
73
- r && /* @__PURE__ */ a(p, { ...r, children: r.label })
73
+ i && /* @__PURE__ */ a(p, { ...i, children: i.label })
74
74
  ] })
75
75
  ] })
76
76
  ] }) });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),n=require("./components/ProtocolTags/ProtocolTags.cjs.js"),t=require("./yourProtocol.module.css.cjs.js"),d=({title:s,image:i,tags:r,callbackView:o})=>e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.content,children:[e.jsx(a.HighlightedTitle,{title:s,className:t.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(n.ProtocolTags,{tags:r}),o&&e.jsx("div",{className:t.default.callback,children:e.jsx(l.Callback,{title:o.title,description:o.description??"",price:o.price??"",image:o.image,button:{href:o.signupUrl??"",as:"a"},size:"sm"})})]}),e.jsx("img",{src:i,alt:"Your Protocol",className:c.cn(t.default.image,t.default.desktop),width:481})]})});exports.YourProtocol=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),c=require("./components/ProtocolTags/ProtocolTags.cjs.js"),o=require("./yourProtocol.module.css.cjs.js"),d=({title:s,image:r,tags:i,callbackView:t})=>e.jsx("section",{className:o.default.root,children:e.jsxs("div",{className:o.default.container,children:[e.jsxs("div",{className:o.default.content,children:[e.jsx(a.HighlightedTitle,{title:s,className:o.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(c.ProtocolTags,{tags:i}),t&&e.jsx("div",{className:o.default.callback,children:e.jsx(l.Callback,{title:t.title,description:t.description??"",price:t.price??"",image:t.image,button:{href:t.signupUrl??"",as:"a"},size:"sm",shape:t.shape})})]}),e.jsx("img",{src:r,alt:"Your Protocol",className:n.cn(o.default.image,o.default.desktop),width:481})]})});exports.YourProtocol=d;
@@ -1,37 +1,38 @@
1
1
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { Callback as a } from "../../components/Callback/Callback.es.js";
3
- import { HighlightedTitle as l } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
- import { cn as n } from "../../utils/cn/cn.es.js";
5
- import { ProtocolTags as c } from "./components/ProtocolTags/ProtocolTags.es.js";
6
- import t from "./yourProtocol.module.css.es.js";
7
- const N = ({ title: e, image: s, tags: m, callbackView: o }) => /* @__PURE__ */ r("section", { className: t.root, children: /* @__PURE__ */ i("div", { className: t.container, children: [
8
- /* @__PURE__ */ i("div", { className: t.content, children: [
3
+ import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
+ import { cn as l } from "../../utils/cn/cn.es.js";
5
+ import { ProtocolTags as p } from "./components/ProtocolTags/ProtocolTags.es.js";
6
+ import o from "./yourProtocol.module.css.es.js";
7
+ const N = ({ title: s, image: e, tags: m, callbackView: t }) => /* @__PURE__ */ r("section", { className: o.root, children: /* @__PURE__ */ i("div", { className: o.container, children: [
8
+ /* @__PURE__ */ i("div", { className: o.content, children: [
9
9
  /* @__PURE__ */ r(
10
- l,
10
+ n,
11
11
  {
12
- title: e,
13
- className: t.title,
12
+ title: s,
13
+ className: o.title,
14
14
  defaultVariant: "displaySm",
15
15
  mobileVariant: "headingXl"
16
16
  }
17
17
  ),
18
- /* @__PURE__ */ r(c, { tags: m }),
19
- o && /* @__PURE__ */ r("div", { className: t.callback, children: /* @__PURE__ */ r(
18
+ /* @__PURE__ */ r(p, { tags: m }),
19
+ t && /* @__PURE__ */ r("div", { className: o.callback, children: /* @__PURE__ */ r(
20
20
  a,
21
21
  {
22
- title: o.title,
23
- description: o.description ?? "",
24
- price: o.price ?? "",
25
- image: o.image,
22
+ title: t.title,
23
+ description: t.description ?? "",
24
+ price: t.price ?? "",
25
+ image: t.image,
26
26
  button: {
27
- href: o.signupUrl ?? "",
27
+ href: t.signupUrl ?? "",
28
28
  as: "a"
29
29
  },
30
- size: "sm"
30
+ size: "sm",
31
+ shape: t.shape
31
32
  }
32
33
  ) })
33
34
  ] }),
34
- /* @__PURE__ */ r("img", { src: s, alt: "Your Protocol", className: n(t.image, t.desktop), width: 481 })
35
+ /* @__PURE__ */ r("img", { src: e, alt: "Your Protocol", className: l(o.image, o.desktop), width: 481 })
35
36
  ] }) });
36
37
  export {
37
38
  N as YourProtocol
@@ -1,3 +1,5 @@
1
+ import { CallbackShape } from '../../components/Callback';
2
+
1
3
  export type TTagView = {
2
4
  label: string;
3
5
  description?: string;
@@ -10,4 +12,5 @@ export type TCallbackView = {
10
12
  image: string;
11
13
  buttonLabel: string;
12
14
  size: string;
15
+ shape: CallbackShape;
13
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.161",
3
+ "version": "0.1.163",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",