@zenpatient-org/healthspan-marketing-ui 0.2.12 → 0.2.14
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/components/PriceDisplay/PriceDisplay.cjs.js +1 -1
- package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -1
- package/dist/components/PriceDisplay/PriceDisplay.es.js +5 -5
- package/dist/components/PriceDisplay/priceDisplay.module.css +9 -3
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js +1 -1
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js +11 -1
- package/dist/modules/IndividualProductCardV2/types.d.ts +1 -0
- package/dist/pageComponents/ScrollingFeatures/scrollingFeatures.module.css +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("../Typography/Typography.cjs.js"),e=require("../../src/components/PriceDisplay/priceDisplay.module.css"),c=require("../../utils/cn/cn.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("../Typography/Typography.cjs.js"),e=require("../../src/components/PriceDisplay/priceDisplay.module.css"),c=require("../../utils/cn/cn.cjs.js"),o=require("../../utils/periodView.cjs.js"),l=({items:i})=>a.jsx("div",{className:e.root,children:i.map((r,n)=>a.jsxs("div",{className:c.cn(e.container,r.display==="double"?e.double:e.single),children:[a.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",className:e.description,children:r.description}),a.jsxs("div",{className:e.priceWrapper,children:[!!r.prefix&&a.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",className:e.prefix,children:r.prefix}),a.jsxs("div",{className:e.priceAmount,children:[a.jsx(s.Typography,{as:"p",defaultVariant:"headingXl",mobileVariant:"headingLg",className:e.price,children:(r.price/100).toFixed(0)}),a.jsx(s.Typography,{as:"p",defaultVariant:"headingXs",mobileVariant:"headingXxs",className:e.currency,children:"$"}),r.period!=="none"&&a.jsxs(s.Typography,{as:"p",defaultVariant:"labelMd",className:e.period,children:["/",o.shortPeriod(r.period)]})]})]})]},n))});exports.PriceDisplay=l;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as i } from "../Typography/Typography.es.js";
|
|
3
3
|
import a from "../../components/PriceDisplay/priceDisplay.module.css";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { shortPeriod as
|
|
4
|
+
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { shortPeriod as n } from "../../utils/periodView.es.js";
|
|
6
6
|
const f = ({ items: d }) => /* @__PURE__ */ e("div", { className: a.root, children: d.map((r, l) => /* @__PURE__ */ s(
|
|
7
7
|
"div",
|
|
8
8
|
{
|
|
9
|
-
className:
|
|
9
|
+
className: o(a.container, r.display === "double" ? a.double : a.single),
|
|
10
10
|
children: [
|
|
11
11
|
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.description, children: r.description }),
|
|
12
12
|
/* @__PURE__ */ s("div", { className: a.priceWrapper, children: [
|
|
13
|
-
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.prefix, children: r.prefix }),
|
|
13
|
+
!!r.prefix && /* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.prefix, children: r.prefix }),
|
|
14
14
|
/* @__PURE__ */ s("div", { className: a.priceAmount, children: [
|
|
15
15
|
/* @__PURE__ */ e(
|
|
16
16
|
i,
|
|
@@ -34,7 +34,7 @@ const f = ({ items: d }) => /* @__PURE__ */ e("div", { className: a.root, childr
|
|
|
34
34
|
),
|
|
35
35
|
r.period !== "none" && /* @__PURE__ */ s(i, { as: "p", defaultVariant: "labelMd", className: a.period, children: [
|
|
36
36
|
"/",
|
|
37
|
-
|
|
37
|
+
n(r.period)
|
|
38
38
|
] })
|
|
39
39
|
] })
|
|
40
40
|
] })
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
display: flex;
|
|
3
|
-
gap:
|
|
3
|
+
gap: 36px;
|
|
4
|
+
padding-bottom: 24px;
|
|
5
|
+
border-bottom: 1px solid var(--color-neutral-200);
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
@media (max-width: 768px) {
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
display: flex;
|
|
22
24
|
justify-content: space-between;
|
|
23
25
|
align-items: center;
|
|
24
|
-
gap:
|
|
26
|
+
gap: 40px;
|
|
25
27
|
width: 100%;
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -32,11 +34,13 @@
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.container.double:first-child {
|
|
37
|
+
padding-right: 36px;
|
|
35
38
|
border-right: 1px solid var(--color-neutral-200);
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
@media (max-width: 768px) {
|
|
39
42
|
.container.double {
|
|
43
|
+
gap: 40px;
|
|
40
44
|
flex-direction: row;
|
|
41
45
|
align-items: flex-start;
|
|
42
46
|
}
|
|
@@ -44,6 +48,7 @@
|
|
|
44
48
|
.container.double:first-child {
|
|
45
49
|
border-right: none;
|
|
46
50
|
border-bottom: 1px solid var(--color-neutral-200);
|
|
51
|
+
padding-right: 0;
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
|
|
@@ -54,10 +59,11 @@
|
|
|
54
59
|
|
|
55
60
|
.priceWrapper {
|
|
56
61
|
display: flex;
|
|
57
|
-
gap:
|
|
62
|
+
gap: 4px;
|
|
58
63
|
flex-direction: column;
|
|
59
64
|
align-items: flex-start;
|
|
60
65
|
text-align: left;
|
|
66
|
+
min-width: 90px;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
.prefix {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../types/analytics/analytics.cjs.js"),l=require("../../utils/cn/cn.cjs.js"),a=require("../../src/modules/IndividualProductCardV2/individualProductCardV2.module.css"),g=require("../../components/ImageGallery/ImageGallery.cjs.js"),d=require("../../components/RatingPreview/RatingPreview.cjs.js"),v=require("../../components/Quote/Quote.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../types/analytics/analytics.cjs.js"),l=require("../../utils/cn/cn.cjs.js"),a=require("../../src/modules/IndividualProductCardV2/individualProductCardV2.module.css"),g=require("../../components/ImageGallery/ImageGallery.cjs.js"),d=require("../../components/RatingPreview/RatingPreview.cjs.js"),v=require("../../components/Quote/Quote.cjs.js"),s=require("../../components/Typography/Typography.cjs.js"),_=require("../IndividualProductCard/components/Features/Features.cjs.js"),P=require("../../components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js"),b=require("../../components/PriceDisplay/PriceDisplay.cjs.js"),q=require("../../components/Button/Button.cjs.js"),T=({zenpatientId:u,signupUrl:n,name:y,description:p,label:m,images:h,features:j,quote:t,priceDisplay:i,featuresGroup:r,ratingPreview:c})=>{const x={event:o.EAnalyticsEvent.ctaClicked,type:o.EAnalyticsEventType.interaction,component:"Pricing",payload:{ctaLabel:"GET STARTED",ctaLink:n,productId:u}};return e.jsx("section",{className:a.root,children:e.jsxs("div",{className:a.mainContainer,children:[e.jsxs("div",{className:a.leftColumn,children:[e.jsx(g.ImageGallery,{images:h,label:m}),e.jsx("div",{className:l.cn(a.ratingContainer,a.mobileOnly),children:e.jsx(d.RatingPreview,{...c})}),t&&e.jsx(v.Quote,{...t})]}),e.jsxs("div",{className:a.rightColumn,children:[e.jsxs("div",{className:a.header,children:[e.jsx(s.Typography,{as:"h1",defaultVariant:"displayXs",mobileVariant:"headingLg",children:y}),e.jsx(s.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.description,children:p})]}),e.jsx(_.Features,{features:j}),r&&e.jsx(P.PlainFeaturesGroup,{...r}),i&&e.jsx(b.PriceDisplay,{items:i}),e.jsx("div",{className:l.cn(a.ratingContainer,a.desktopOnly),children:e.jsx(d.RatingPreview,{...c})}),e.jsxs("div",{className:a.actions,children:[e.jsx(q.Button,{as:"a",variant:"primary",size:"lg",href:n,analyticsProps:x,children:"Get started"}),e.jsx(s.Typography,{as:"p",defaultVariant:"labelMd",className:a.hsaFsaText,children:"HSA/FSA Eligible"})]})]})]})})};exports.IndividualProductCardV2=T;
|
|
@@ -58,7 +58,17 @@ const z = ({
|
|
|
58
58
|
o && /* @__PURE__ */ a(T, { items: o }),
|
|
59
59
|
/* @__PURE__ */ a("div", { className: m(i.ratingContainer, i.desktopOnly), children: /* @__PURE__ */ a(c, { ...s }) }),
|
|
60
60
|
/* @__PURE__ */ r("div", { className: i.actions, children: [
|
|
61
|
-
/* @__PURE__ */ a(
|
|
61
|
+
/* @__PURE__ */ a(
|
|
62
|
+
V,
|
|
63
|
+
{
|
|
64
|
+
as: "a",
|
|
65
|
+
variant: "primary",
|
|
66
|
+
size: "lg",
|
|
67
|
+
href: e,
|
|
68
|
+
analyticsProps: u,
|
|
69
|
+
children: "Get started"
|
|
70
|
+
}
|
|
71
|
+
),
|
|
62
72
|
/* @__PURE__ */ a(t, { as: "p", defaultVariant: "labelMd", className: i.hsaFsaText, children: "HSA/FSA Eligible" })
|
|
63
73
|
] })
|
|
64
74
|
] })
|