@zenpatient-org/healthspan-marketing-ui 0.2.9 → 0.2.10
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/GalleryPagination/galleryPagination.module.css +40 -32
- package/dist/components/ImageGallery/ImageGallery.cjs.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.d.ts +1 -2
- package/dist/components/ImageGallery/ImageGallery.es.js +22 -22
- package/dist/components/ImageGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css +29 -24
- package/dist/components/ImageGallery/index.d.ts +1 -0
- package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js +1 -1
- package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts +3 -1
- package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.es.js +8 -12
- package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -1
- package/dist/components/Quote/Quote.cjs.js +1 -1
- package/dist/components/Quote/Quote.d.ts +3 -3
- package/dist/components/Quote/Quote.es.js +13 -13
- package/dist/components/Quote/const.cjs.js +1 -1
- package/dist/components/Quote/const.d.ts +1 -1
- package/dist/components/Quote/const.es.js +1 -1
- package/dist/components/RatingPreview/RatingPreview.cjs.js +1 -1
- package/dist/components/RatingPreview/RatingPreview.d.ts +3 -2
- package/dist/components/RatingPreview/RatingPreview.es.js +15 -15
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js +1 -0
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts +3 -0
- package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js +70 -0
- package/dist/modules/IndividualProductCardV2/index.d.ts +1 -0
- package/dist/modules/IndividualProductCardV2/individualProductCardV2.module.css +82 -0
- package/dist/modules/IndividualProductCardV2/types.d.ts +71 -0
- package/package.json +6 -1
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
@media (width <= 768px) {
|
|
2
|
+
.root {
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
flex-wrap: nowrap;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.lineWrap {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
12
|
+
.lineWrap {
|
|
13
|
+
width: 32px;
|
|
14
|
+
height: 32px;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
padding: 0;
|
|
20
|
+
background: none;
|
|
21
|
+
border: none;
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
.line {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
24
|
+
.line {
|
|
25
|
+
height: var(--border-width-sm);
|
|
26
|
+
width: 100%;
|
|
27
|
+
background-color: var(--color-bg-fill-brand-disabled);
|
|
28
|
+
border-radius: var(--border-radius-full);
|
|
29
|
+
transition: background-color 0.3s, height 0.3s, opacity 0.3s;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.lineWrap:hover > .line:not(.active) {
|
|
33
|
+
opacity: 0.8;
|
|
34
|
+
}
|
|
30
35
|
|
|
31
|
-
.
|
|
32
|
-
|
|
36
|
+
.active {
|
|
37
|
+
height: var(--border-width-md);
|
|
38
|
+
background-color: var(--color-bg-fill-primary);
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
@media (width > 768px) {
|
|
43
|
+
.root {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
38
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("swiper/modules"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("swiper/modules"),u=require("swiper/react"),h=require("react"),q=require("../../utils/useSwiper/useSwiper.cjs.js"),j=require("../../utils/cn/cn.cjs.js");;/* empty css */;/* empty css */;/* empty css */const i=require("../../src/components/ImageGallery/imageGallery.module.css"),w=require("../Label/Label.cjs.js"),y=require("./components/ImageGalleryPagination/ImageGalleryPagination.cjs.js"),x=require("../GalleryPagination/GalleryPagination.cjs.js"),P=[m.Navigation],_=({images:r,label:l,className:d,pagination:I="plain"})=>{const{activeIndex:s,handleSlideTo:t,handleSlideChange:p,onSwiperInit:S,handleSwiperResize:g,handleUserInteraction:n}=q.useSwiperWithAutoPlay(3e3),o=h.useCallback(a=>{n(),t(a)},[n,t]);return e.jsxs("div",{className:j.cn(i.root,d),children:[l&&e.jsx("div",{className:i.labelWrap,children:e.jsx(w.Label,{color:"black",size:"sm",children:l})}),e.jsx(u.Swiper,{onSwiper:S,onResize:g,onSlideChange:p,onTouchStart:n,onTouchEnd:n,modules:P,spaceBetween:0,slidesPerView:1,className:i.swiper,children:r.map((a,c)=>e.jsx(u.SwiperSlide,{children:e.jsx("div",{className:i.imageWrapper,children:e.jsx("img",{src:a,alt:"product image",className:i.image,onClick:n},c)})},c))}),e.jsx(y.ImageGalleryPagination,{images:r,activeIndex:s,onSelect:o}),e.jsx(x.GalleryPagination,{count:r.length,activeIndex:s,onSelect:o})]})};exports.ImageGallery=_;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
type ImageGalleryProps = {
|
|
2
|
+
export type ImageGalleryProps = {
|
|
3
3
|
images: Array<string>;
|
|
4
4
|
label?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
pagination?: 'plain' | 'preview';
|
|
7
7
|
};
|
|
8
8
|
export declare const ImageGallery: ({ images, label, className, pagination }: ImageGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as S, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { Navigation as g } from "swiper/modules";
|
|
4
|
-
import { Swiper as
|
|
5
|
-
import { useCallback as
|
|
4
|
+
import { Swiper as f, SwiperSlide as u } from "swiper/react";
|
|
5
|
+
import { useCallback as w } from "react";
|
|
6
6
|
import { useSwiperWithAutoPlay as I } from "../../utils/useSwiper/useSwiper.es.js";
|
|
7
7
|
import { cn as N } from "../../utils/cn/cn.es.js";
|
|
8
8
|
/* empty css */
|
|
@@ -10,43 +10,43 @@ import { cn as N } from "../../utils/cn/cn.es.js";
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
import o from "../../components/ImageGallery/imageGallery.module.css";
|
|
12
12
|
import { Label as P } from "../Label/Label.es.js";
|
|
13
|
-
import { ImageGalleryPagination as
|
|
14
|
-
import { GalleryPagination as
|
|
15
|
-
const
|
|
16
|
-
const { activeIndex:
|
|
17
|
-
(
|
|
18
|
-
i(),
|
|
13
|
+
import { ImageGalleryPagination as v } from "./components/ImageGalleryPagination/ImageGalleryPagination.es.js";
|
|
14
|
+
import { GalleryPagination as y } from "../GalleryPagination/GalleryPagination.es.js";
|
|
15
|
+
const C = [g], D = ({ images: r, label: n, className: s, pagination: W = "plain" }) => {
|
|
16
|
+
const { activeIndex: l, handleSlideTo: t, handleSlideChange: p, onSwiperInit: d, handleSwiperResize: h, handleUserInteraction: i } = I(3e3), m = w(
|
|
17
|
+
(a) => {
|
|
18
|
+
i(), t(a);
|
|
19
19
|
},
|
|
20
|
-
[i,
|
|
20
|
+
[i, t]
|
|
21
21
|
);
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ S("div", { className: N(o.root, s), children: [
|
|
23
23
|
n && /* @__PURE__ */ e("div", { className: o.labelWrap, children: /* @__PURE__ */ e(P, { color: "black", size: "sm", children: n }) }),
|
|
24
24
|
/* @__PURE__ */ e(
|
|
25
|
-
|
|
25
|
+
f,
|
|
26
26
|
{
|
|
27
|
-
onSwiper:
|
|
28
|
-
onResize:
|
|
29
|
-
onSlideChange:
|
|
27
|
+
onSwiper: d,
|
|
28
|
+
onResize: h,
|
|
29
|
+
onSlideChange: p,
|
|
30
30
|
onTouchStart: i,
|
|
31
31
|
onTouchEnd: i,
|
|
32
|
-
modules:
|
|
32
|
+
modules: C,
|
|
33
33
|
spaceBetween: 0,
|
|
34
34
|
slidesPerView: 1,
|
|
35
35
|
className: o.swiper,
|
|
36
|
-
children: r.map((
|
|
36
|
+
children: r.map((a, c) => /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e("div", { className: o.imageWrapper, children: /* @__PURE__ */ e(
|
|
37
37
|
"img",
|
|
38
38
|
{
|
|
39
|
-
src:
|
|
39
|
+
src: a,
|
|
40
40
|
alt: "product image",
|
|
41
41
|
className: o.image,
|
|
42
42
|
onClick: i
|
|
43
43
|
},
|
|
44
|
-
|
|
45
|
-
) }) },
|
|
44
|
+
c
|
|
45
|
+
) }) }, c))
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
/* @__PURE__ */ e(v, { images: r, activeIndex: l, onSelect: m }),
|
|
49
|
+
/* @__PURE__ */ e(y, { count: r.length, activeIndex: l, onSelect: m })
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
display:
|
|
3
|
-
justify-content: center;
|
|
4
|
-
gap: 12px;
|
|
5
|
-
padding: 0 24px;
|
|
2
|
+
display: none;
|
|
6
3
|
}
|
|
4
|
+
@media (width > 768px) {
|
|
5
|
+
.root {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: 12px;
|
|
9
|
+
padding: 0 24px;
|
|
10
|
+
}
|
|
7
11
|
|
|
8
|
-
.thumbnailButton {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
12
|
+
.thumbnailButton {
|
|
13
|
+
width: 64px;
|
|
14
|
+
height: 64px;
|
|
15
|
+
padding: 0;
|
|
16
|
+
border: 1px solid var(--color-neutral-200);
|
|
17
|
+
border-radius: var(--border-radius-xs);
|
|
18
|
+
background: none;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
opacity: 0.5;
|
|
21
|
+
transition: opacity 0.3s ease;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
20
24
|
|
|
21
|
-
.thumbnailButton.active {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
+
.thumbnailButton.active {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
border-color: var(--color-neutral-200);
|
|
28
|
+
}
|
|
25
29
|
|
|
26
|
-
.thumbnailImage {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
.thumbnailImage {
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
object-fit: cover;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./assets/VectorLogo.svg.cjs.js"),r=require("../../src/components/PlainFeaturesGroup/plainFeaturesGroup.module.css"),n=require("../Typography/Typography.cjs.js"),c=({items:s})=>e.jsxs("div",{className:r.container,children:[e.jsx("div",{className:r.plainFeaturesGroup,children:s&&s.map((a,t)=>e.jsx("div",{className:r.feature,children:e.jsx(n.Typography,{className:r.featureText,defaultVariant:"bodyXs",children:a.text})},t))}),e.jsx(o.default,{className:r.logo})]});exports.PlainFeaturesGroup=c;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EIconName } from '../Icon';
|
|
2
|
+
import { TPlainFeaturesGroupView } from '../../modules/IndividualProductCardV2/types';
|
|
2
3
|
|
|
3
4
|
export type TPlainFeaturesGroupProps = {
|
|
4
5
|
items: Array<{
|
|
5
6
|
icon: EIconName;
|
|
6
7
|
text: string;
|
|
8
|
+
href?: string;
|
|
7
9
|
}>;
|
|
8
10
|
};
|
|
9
|
-
export declare const PlainFeaturesGroup: ({ items }:
|
|
11
|
+
export declare const PlainFeaturesGroup: ({ items }: TPlainFeaturesGroupView) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */ r(c, { className: e.featureIcon, name: a.icon }),
|
|
9
|
-
/* @__PURE__ */ r(i, { className: e.featureText, defaultVariant: "bodyXs", children: a.text })
|
|
10
|
-
] }, t)) }),
|
|
11
|
-
/* @__PURE__ */ r(m, { className: e.logo })
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import i from "./assets/VectorLogo.svg.es.js";
|
|
3
|
+
import r from "../../components/PlainFeaturesGroup/plainFeaturesGroup.module.css";
|
|
4
|
+
import { Typography as l } from "../Typography/Typography.es.js";
|
|
5
|
+
const d = ({ items: a }) => /* @__PURE__ */ t("div", { className: r.container, children: [
|
|
6
|
+
/* @__PURE__ */ e("div", { className: r.plainFeaturesGroup, children: a && a.map((o, s) => /* @__PURE__ */ e("div", { className: r.feature, children: /* @__PURE__ */ e(l, { className: r.featureText, defaultVariant: "bodyXs", children: o.text }) }, s)) }),
|
|
7
|
+
/* @__PURE__ */ e(i, { className: r.logo })
|
|
12
8
|
] });
|
|
13
9
|
export {
|
|
14
|
-
|
|
10
|
+
d as PlainFeaturesGroup
|
|
15
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
export type PriceDisplayProps = {
|
|
4
|
+
display: 'single' | 'double';
|
|
4
5
|
description: string;
|
|
5
6
|
prefix: string;
|
|
6
7
|
price: number;
|
|
7
8
|
period: 'none' | 'month' | 'year' | 'quarter';
|
|
8
|
-
display: 'single' | 'double';
|
|
9
9
|
};
|
|
10
10
|
export declare const PriceDisplay: React.FC<{
|
|
11
11
|
items: Array<PriceDisplayProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../Typography/Typography.cjs.js"),t=require("../../src/components/Quote/Quote.module.css"),l=require("./const.cjs.js"),u=({prefix:a,color:s,quote:c,source:o,sourcePrefix:n})=>{var r;return e.jsxs("div",{className:t.quoteContainer,children:[e.jsxs("div",{className:t.quoteContent,children:[a&&s&&e.jsx("img",{src:(r=l.prefixSelection[a])==null?void 0:r[s],alt:`${a} icon`,className:t.quoteIcon}),e.jsx(i.Typography,{as:"p",defaultVariant:"preambleSm",mobileVariant:"bodyXl",className:t.quoteText,children:c})]}),o&&n&&e.jsxs(i.Typography,{as:"figcaption",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:t.quoteAuthor,children:[l.sourcePrefixSelection[n]," ",o]})]})};exports.Quote=u;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
export type QuoteProps = {
|
|
4
|
-
prefix: '
|
|
5
|
-
color: 'indigo' | 'ochre' | '
|
|
4
|
+
prefix: 'quotation_marks';
|
|
5
|
+
color: 'indigo' | 'ochre' | 'grey' | 'solar';
|
|
6
6
|
quote: string;
|
|
7
|
-
sourcePrefix
|
|
7
|
+
sourcePrefix?: 'hyphen';
|
|
8
8
|
source?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const Quote: React.FC<QuoteProps>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
1
|
+
import { jsxs as t, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as s } from "../Typography/Typography.es.js";
|
|
3
3
|
import e from "../../components/Quote/Quote.module.css";
|
|
4
|
-
import { prefixSelection as c, sourcePrefixSelection as
|
|
5
|
-
const
|
|
4
|
+
import { prefixSelection as c, sourcePrefixSelection as d } from "./const.es.js";
|
|
5
|
+
const f = ({ prefix: a, color: o, quote: n, source: i, sourcePrefix: l }) => {
|
|
6
6
|
var r;
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ t("div", { className: e.quoteContainer, children: [
|
|
8
|
+
/* @__PURE__ */ t("div", { className: e.quoteContent, children: [
|
|
9
|
+
a && o && /* @__PURE__ */ m("img", { src: (r = c[a]) == null ? void 0 : r[o], alt: `${a} icon`, className: e.quoteIcon }),
|
|
10
|
+
/* @__PURE__ */ m(s, { as: "p", defaultVariant: "preambleSm", mobileVariant: "bodyXl", className: e.quoteText, children: n })
|
|
11
11
|
] }),
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
i && l && /* @__PURE__ */ t(
|
|
13
|
+
s,
|
|
14
14
|
{
|
|
15
15
|
as: "figcaption",
|
|
16
16
|
defaultVariant: "labelMd",
|
|
@@ -18,14 +18,14 @@ const b = ({ prefix: t, color: s, quote: m, source: o, sourcePrefix: n }) => {
|
|
|
18
18
|
emphasis: !0,
|
|
19
19
|
className: e.quoteAuthor,
|
|
20
20
|
children: [
|
|
21
|
-
|
|
21
|
+
d[l],
|
|
22
22
|
" ",
|
|
23
|
-
|
|
23
|
+
i
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
27
|
] });
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
f as Quote
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t={quotation_marks:{indigo:"https://methodical-vitality-96814f361f.media.strapiapp.com/quote_icon_e0242e7418.svg",ochre:"https://methodical-vitality-96814f361f.media.strapiapp.com/ochre_quote_9ed26a4ec7.svg",solar:"https://methodical-vitality-96814f361f.media.strapiapp.com/solar_quote_534860f311.svg",grey:"https://methodical-vitality-96814f361f.media.strapiapp.com/grey_a08b0fedad.svg"}},i={hyphen:e.jsx("span",{children:"—"}),dash:e.jsx("span",{children:"–"})};exports.prefixSelection=t;exports.sourcePrefixSelection=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type QuotePrefix = '
|
|
1
|
+
export type QuotePrefix = 'quotation_marks';
|
|
2
2
|
export type QuoteColor = 'indigo' | 'ochre' | 'solar' | 'grey';
|
|
3
3
|
export declare const prefixSelection: Record<QuotePrefix, Record<QuoteColor, `https://${string}`>>;
|
|
4
4
|
export declare const sourcePrefixSelection: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
const i = {
|
|
3
|
-
|
|
3
|
+
quotation_marks: {
|
|
4
4
|
indigo: "https://methodical-vitality-96814f361f.media.strapiapp.com/quote_icon_e0242e7418.svg",
|
|
5
5
|
ochre: "https://methodical-vitality-96814f361f.media.strapiapp.com/ochre_quote_9ed26a4ec7.svg",
|
|
6
6
|
solar: "https://methodical-vitality-96814f361f.media.strapiapp.com/solar_quote_534860f311.svg",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../src/components/RatingPreview/ratingPreview.module.css"),t=require("../Typography/Typography.cjs.js"),c=require("../Icon/Icon.cjs.js"),l=require("../Icon/constants.cjs.js"),u=
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),o=require("../../src/components/RatingPreview/ratingPreview.module.css"),t=require("../Typography/Typography.cjs.js"),c=require("../Icon/Icon.cjs.js"),l=require("../Icon/constants.cjs.js"),u=s=>{const a=Math.round(s*2)/2,r=[];for(let n=0;n<Math.floor(a);n++)r.push(e.jsx(c.Icon,{name:l.EIconName.STAR_FILL,className:o.starIcon},`full-${n}`));return a%1===.5&&r.push(e.jsx(c.Icon,{name:l.EIconName.STAR_HALF,className:o.starIcon},"half")),r},i=({rating:s,text:a})=>e.jsxs("div",{className:o.ratingPreview,children:[s!==void 0&&s.stars!==void 0&&e.jsxs(t.Typography,{as:"p",defaultVariant:"labelMd",children:[s.stars," ",u(s.stars)]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",children:"|"}),e.jsx(t.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,children:a})]})]});exports.RatingPreview=i;exports.default=i;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Typography as
|
|
1
|
+
import { jsxs as o, Fragment as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import n from "../../components/RatingPreview/ratingPreview.module.css";
|
|
3
|
+
import { Typography as l } from "../Typography/Typography.es.js";
|
|
4
4
|
import { Icon as i } from "../Icon/Icon.es.js";
|
|
5
5
|
import { EIconName as m } from "../Icon/constants.es.js";
|
|
6
|
-
const d = (
|
|
7
|
-
const
|
|
8
|
-
for (let t = 0; t < Math.floor(
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
}, I = ({ rating:
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
6
|
+
const d = (a) => {
|
|
7
|
+
const r = Math.round(a * 2) / 2, e = [];
|
|
8
|
+
for (let t = 0; t < Math.floor(r); t++)
|
|
9
|
+
e.push(/* @__PURE__ */ s(i, { name: m.STAR_FILL, className: n.starIcon }, `full-${t}`));
|
|
10
|
+
return r % 1 === 0.5 && e.push(/* @__PURE__ */ s(i, { name: m.STAR_HALF, className: n.starIcon }, "half")), e;
|
|
11
|
+
}, I = ({ rating: a, text: r }) => /* @__PURE__ */ o("div", { className: n.ratingPreview, children: [
|
|
12
|
+
a !== void 0 && a.stars !== void 0 && /* @__PURE__ */ o(l, { as: "p", defaultVariant: "labelMd", children: [
|
|
13
|
+
a.stars,
|
|
14
14
|
" ",
|
|
15
|
-
d(
|
|
15
|
+
d(a.stars)
|
|
16
16
|
] }),
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
17
|
+
r && /* @__PURE__ */ o(c, { children: [
|
|
18
|
+
/* @__PURE__ */ s(l, { as: "p", defaultVariant: "labelSm", children: "|" }),
|
|
19
|
+
/* @__PURE__ */ s(l, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: r })
|
|
20
20
|
] })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../types/analytics/analytics.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),n=require("../../src/modules/IndividualProductCardV2/individualProductCardV2.module.css"),g=require("../../components/ImageGallery/ImageGallery.cjs.js"),l=require("../../components/RatingPreview/RatingPreview.cjs.js"),_=require("../../components/Quote/Quote.cjs.js"),d=require("../../components/Typography/Typography.cjs.js"),v=require("../IndividualProductCard/components/Features/Features.cjs.js"),P=require("../../components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js"),q=require("../../components/PriceDisplay/PriceDisplay.cjs.js"),T=require("../../components/Button/Button.cjs.js"),b=require("../../components/TextButton/TextButton.cjs.js"),N=({zenpatientId:u,signupUrl:t,name:m,description:y,label:p,images:x,features:h,quote:s,priceDisplay:i,featuresGroup:a,ratingPreview:r})=>{const j={event:o.EAnalyticsEvent.ctaClicked,type:o.EAnalyticsEventType.interaction,component:"Pricing",payload:{ctaLabel:"GET STARTED",ctaLink:t,productId:u}};return e.jsx("section",{className:n.root,children:e.jsxs("div",{className:n.mainContainer,children:[e.jsxs("div",{className:n.leftColumn,children:[e.jsx(g.ImageGallery,{images:x,label:p}),e.jsx("div",{className:c.cn(n.ratingContainer,n.mobileOnly),children:e.jsx(l.RatingPreview,{...r})}),s&&e.jsx(_.Quote,{...s})]}),e.jsxs("div",{className:n.rightColumn,children:[e.jsxs("div",{className:n.header,children:[e.jsx(d.Typography,{as:"h1",defaultVariant:"displayXs",mobileVariant:"headingLg",children:m}),e.jsx(d.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:n.description,children:y})]}),e.jsx(v.Features,{features:h}),a&&e.jsx(P.PlainFeaturesGroup,{...a}),i&&e.jsx(q.PriceDisplay,{items:i}),e.jsx("div",{className:c.cn(n.ratingContainer,n.desktopOnly),children:e.jsx(l.RatingPreview,{...r})}),e.jsxs("div",{className:n.actions,children:[e.jsx(T.Button,{variant:"primary",size:"lg",href:t,analyticsProps:j,children:"Get started"}),e.jsx(b.TextButton,{size:"lg",children:"HSA/FSA Elegible"})]})]})]})})};exports.IndividualProductCardV2=N;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TIndividualProductCardV2Base } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const IndividualProductCardV2: ({ zenpatientId, signupUrl, name, description, label, images, features, quote, priceDisplay, featuresGroup, ratingPreview, }: TIndividualProductCardV2Base) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as i, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { EAnalyticsEventType as g, EAnalyticsEvent as N } from "../../types/analytics/analytics.es.js";
|
|
3
|
+
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import r from "../../modules/IndividualProductCardV2/individualProductCardV2.module.css";
|
|
5
|
+
import { ImageGallery as b } from "../../components/ImageGallery/ImageGallery.es.js";
|
|
6
|
+
import { RatingPreview as s } from "../../components/RatingPreview/RatingPreview.es.js";
|
|
7
|
+
import { Quote as E } from "../../components/Quote/Quote.es.js";
|
|
8
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
9
|
+
import { Features as C } from "../IndividualProductCard/components/Features/Features.es.js";
|
|
10
|
+
import { PlainFeaturesGroup as A } from "../../components/PlainFeaturesGroup/PlainFeaturesGroup.es.js";
|
|
11
|
+
import { PriceDisplay as T } from "../../components/PriceDisplay/PriceDisplay.es.js";
|
|
12
|
+
import { Button as P } from "../../components/Button/Button.es.js";
|
|
13
|
+
import { TextButton as V } from "../../components/TextButton/TextButton.es.js";
|
|
14
|
+
const H = ({
|
|
15
|
+
zenpatientId: d,
|
|
16
|
+
signupUrl: a,
|
|
17
|
+
name: p,
|
|
18
|
+
description: h,
|
|
19
|
+
label: y,
|
|
20
|
+
images: f,
|
|
21
|
+
features: v,
|
|
22
|
+
quote: e,
|
|
23
|
+
priceDisplay: n,
|
|
24
|
+
featuresGroup: o,
|
|
25
|
+
ratingPreview: l
|
|
26
|
+
}) => {
|
|
27
|
+
const u = {
|
|
28
|
+
event: N.ctaClicked,
|
|
29
|
+
type: g.interaction,
|
|
30
|
+
component: "Pricing",
|
|
31
|
+
payload: {
|
|
32
|
+
ctaLabel: "GET STARTED",
|
|
33
|
+
ctaLink: a,
|
|
34
|
+
productId: d
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ i("section", { className: r.root, children: /* @__PURE__ */ t("div", { className: r.mainContainer, children: [
|
|
38
|
+
/* @__PURE__ */ t("div", { className: r.leftColumn, children: [
|
|
39
|
+
/* @__PURE__ */ i(b, { images: f, label: y }),
|
|
40
|
+
/* @__PURE__ */ i("div", { className: m(r.ratingContainer, r.mobileOnly), children: /* @__PURE__ */ i(s, { ...l }) }),
|
|
41
|
+
e && /* @__PURE__ */ i(E, { ...e })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ t("div", { className: r.rightColumn, children: [
|
|
44
|
+
/* @__PURE__ */ t("div", { className: r.header, children: [
|
|
45
|
+
/* @__PURE__ */ i(c, { as: "h1", defaultVariant: "displayXs", mobileVariant: "headingLg", children: p }),
|
|
46
|
+
/* @__PURE__ */ i(
|
|
47
|
+
c,
|
|
48
|
+
{
|
|
49
|
+
as: "p",
|
|
50
|
+
defaultVariant: "bodyMd",
|
|
51
|
+
mobileVariant: "bodySm",
|
|
52
|
+
className: r.description,
|
|
53
|
+
children: h
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ i(C, { features: v }),
|
|
58
|
+
o && /* @__PURE__ */ i(A, { ...o }),
|
|
59
|
+
n && /* @__PURE__ */ i(T, { items: n }),
|
|
60
|
+
/* @__PURE__ */ i("div", { className: m(r.ratingContainer, r.desktopOnly), children: /* @__PURE__ */ i(s, { ...l }) }),
|
|
61
|
+
/* @__PURE__ */ t("div", { className: r.actions, children: [
|
|
62
|
+
/* @__PURE__ */ i(P, { variant: "primary", size: "lg", href: a, analyticsProps: u, children: "Get started" }),
|
|
63
|
+
/* @__PURE__ */ i(V, { size: "lg", children: "HSA/FSA Elegible" })
|
|
64
|
+
] })
|
|
65
|
+
] })
|
|
66
|
+
] }) });
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
H as IndividualProductCardV2
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IndividualProductCardV2';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.mainContainer {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr 1fr;
|
|
4
|
+
gap: 4vw;
|
|
5
|
+
padding: 4rem 7.5rem;
|
|
6
|
+
max-width: var(--content-max-width);
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.leftColumn {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: 3rem;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.rightColumn {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 2rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.header {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 1rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.description {
|
|
31
|
+
color: var(--color-text-secondary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.plainFeaturesWrapper {
|
|
35
|
+
height: 8rem;
|
|
36
|
+
width: 100%;
|
|
37
|
+
background-color: var(--color-bg-neutral-light);
|
|
38
|
+
border-radius: var(--border-radius-md);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.benefitsGrid {
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: 1fr 1fr;
|
|
44
|
+
gap: 0.5rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ratingContainer {
|
|
48
|
+
margin: 0 auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.actions {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: 1rem;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mobileOnly {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.desktopOnly {
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (width <= 1024px) {
|
|
67
|
+
.mainContainer {
|
|
68
|
+
padding: 2rem 1rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (width <= 768px) {
|
|
73
|
+
.mainContainer {
|
|
74
|
+
grid-template-columns: 1fr;
|
|
75
|
+
}
|
|
76
|
+
.mobileOnly {
|
|
77
|
+
display: block;
|
|
78
|
+
}
|
|
79
|
+
.desktopOnly {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ETypeBadge } from '../../components/TypeBadge';
|
|
2
|
+
|
|
3
|
+
export type TTypeBadge = 'senescence' | 'supplements' | 'outline' | 'energy' | 'metabolism' | 'labs';
|
|
4
|
+
export type TProductFeature = {
|
|
5
|
+
label: string;
|
|
6
|
+
type: ETypeBadge;
|
|
7
|
+
description?: string;
|
|
8
|
+
collapsible?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type TReviewsStats = {
|
|
11
|
+
stars?: number;
|
|
12
|
+
totalReviews?: number;
|
|
13
|
+
};
|
|
14
|
+
export type TQuoteComponentView = {
|
|
15
|
+
prefix: 'quotation_marks';
|
|
16
|
+
color: 'indigo' | 'ochre' | 'grey' | 'solar';
|
|
17
|
+
quote: string;
|
|
18
|
+
sourcePrefix?: 'hyphen';
|
|
19
|
+
source?: string;
|
|
20
|
+
};
|
|
21
|
+
export type TPriceDisplayComponentView = {
|
|
22
|
+
description: string;
|
|
23
|
+
price: number;
|
|
24
|
+
period: 'none' | 'month' | 'quarter' | 'year';
|
|
25
|
+
prefix?: string;
|
|
26
|
+
};
|
|
27
|
+
export type TInternalPlainFeatureItemView = {
|
|
28
|
+
text: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
href?: string;
|
|
31
|
+
};
|
|
32
|
+
export type TPlainFeaturesGroupView = {
|
|
33
|
+
items: Array<TInternalPlainFeatureItemView>;
|
|
34
|
+
};
|
|
35
|
+
export type TRatingPreviewView = {
|
|
36
|
+
text?: string;
|
|
37
|
+
rating: TReviewsStats;
|
|
38
|
+
};
|
|
39
|
+
export type TIndividualProductCardV2Base = {
|
|
40
|
+
zenpatientId: string;
|
|
41
|
+
signupUrl: string;
|
|
42
|
+
name: string;
|
|
43
|
+
images: Array<string>;
|
|
44
|
+
features: Array<TProductFeature>;
|
|
45
|
+
description?: string;
|
|
46
|
+
label?: string;
|
|
47
|
+
rating?: TReviewsStats;
|
|
48
|
+
quote?: TQuoteComponentView;
|
|
49
|
+
priceDisplay?: Array<TPriceDisplayComponentView>;
|
|
50
|
+
featuresGroup?: TPlainFeaturesGroupView;
|
|
51
|
+
ratingPreview?: TRatingPreviewView;
|
|
52
|
+
};
|
|
53
|
+
export type TIndividualProductCardBasicV2View = TIndividualProductCardV2Base & {
|
|
54
|
+
plansView?: 'single';
|
|
55
|
+
};
|
|
56
|
+
export type TProductPlan = {
|
|
57
|
+
id: string;
|
|
58
|
+
label: string;
|
|
59
|
+
price: number;
|
|
60
|
+
totalPrice: number;
|
|
61
|
+
monthlyPrice?: number;
|
|
62
|
+
savingsPercentage?: number;
|
|
63
|
+
duration?: 'one-time' | 'day' | 'month' | 'year';
|
|
64
|
+
durationAmount?: number;
|
|
65
|
+
featured?: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type TIndividualProductCardPricingV2View = TIndividualProductCardV2Base & {
|
|
68
|
+
plansView?: 'pricing';
|
|
69
|
+
plans?: Array<TProductPlan>;
|
|
70
|
+
};
|
|
71
|
+
export type TIndividualProductCardV2View = TIndividualProductCardBasicV2View | TIndividualProductCardPricingV2View;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenpatient-org/healthspan-marketing-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -515,6 +515,11 @@
|
|
|
515
515
|
"import": "./dist/modules/IndividualProductCard/IndividualProductCard.es.js",
|
|
516
516
|
"require": "./dist/modules/IndividualProductCard/IndividualProductCard.cjs.js"
|
|
517
517
|
},
|
|
518
|
+
"./IndividualProductCardV2": {
|
|
519
|
+
"types": "./dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts",
|
|
520
|
+
"import": "./dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js",
|
|
521
|
+
"require": "./dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js"
|
|
522
|
+
},
|
|
518
523
|
"./ResearchFeatured": {
|
|
519
524
|
"types": "./dist/modules/ResearchFeatured/index.d.ts",
|
|
520
525
|
"import": "./dist/modules/ResearchFeatured/ResearchFeatured.es.js",
|