@zenpatient-org/healthspan-marketing-ui 0.1.162 → 0.1.164
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
|
|
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
|
|
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:
|
|
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__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
50
|
-
/* @__PURE__ */ a(w, { label: "HSA/FSA
|
|
51
|
-
!d && /* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
59
|
-
/* @__PURE__ */
|
|
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__ */
|
|
71
|
+
/* @__PURE__ */ r("div", { className: e.actions, children: [
|
|
72
72
|
/* @__PURE__ */ a(h, { variant: "primary", size: "lg", ...s, children: s.label }),
|
|
73
|
-
|
|
73
|
+
i && /* @__PURE__ */ a(p, { ...i, children: i.label })
|
|
74
74
|
] })
|
|
75
75
|
] })
|
|
76
76
|
] }) });
|