@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.
Files changed (26) hide show
  1. package/dist/components/GalleryPagination/galleryPagination.module.css +40 -32
  2. package/dist/components/ImageGallery/ImageGallery.cjs.js +1 -1
  3. package/dist/components/ImageGallery/ImageGallery.d.ts +1 -2
  4. package/dist/components/ImageGallery/ImageGallery.es.js +22 -22
  5. package/dist/components/ImageGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css +29 -24
  6. package/dist/components/ImageGallery/index.d.ts +1 -0
  7. package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js +1 -1
  8. package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts +3 -1
  9. package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.es.js +8 -12
  10. package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -1
  11. package/dist/components/Quote/Quote.cjs.js +1 -1
  12. package/dist/components/Quote/Quote.d.ts +3 -3
  13. package/dist/components/Quote/Quote.es.js +13 -13
  14. package/dist/components/Quote/const.cjs.js +1 -1
  15. package/dist/components/Quote/const.d.ts +1 -1
  16. package/dist/components/Quote/const.es.js +1 -1
  17. package/dist/components/RatingPreview/RatingPreview.cjs.js +1 -1
  18. package/dist/components/RatingPreview/RatingPreview.d.ts +3 -2
  19. package/dist/components/RatingPreview/RatingPreview.es.js +15 -15
  20. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js +1 -0
  21. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts +3 -0
  22. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js +70 -0
  23. package/dist/modules/IndividualProductCardV2/index.d.ts +1 -0
  24. package/dist/modules/IndividualProductCardV2/individualProductCardV2.module.css +82 -0
  25. package/dist/modules/IndividualProductCardV2/types.d.ts +71 -0
  26. package/package.json +6 -1
@@ -1,38 +1,46 @@
1
- .root {
2
- display: flex;
3
- gap: 8px;
4
- width: 100%;
5
- max-width: 100%;
6
- justify-content: center;
7
- align-items: center;
8
- flex-wrap: nowrap;
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
- width: 32px;
13
- height: 32px;
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- cursor: pointer;
18
- padding: 0;
19
- background: none;
20
- border: none;
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
- height: var(--border-width-sm);
25
- width: 100%;
26
- background-color: var(--color-bg-fill-brand-disabled);
27
- border-radius: var(--border-radius-full);
28
- transition: background-color 0.3s, height 0.3s, opacity 0.3s;
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
- .lineWrap:hover > .line:not(.active) {
32
- opacity: 0.8;
36
+ .active {
37
+ height: var(--border-width-md);
38
+ background-color: var(--color-bg-fill-primary);
39
+ }
33
40
  }
34
41
 
35
- .active {
36
- height: var(--border-width-md);
37
- background-color: var(--color-bg-fill-primary);
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"),d=require("swiper/react"),q=require("react"),w=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"),y=require("../Label/Label.cjs.js"),x=require("./components/ImageGalleryPagination/ImageGalleryPagination.cjs.js"),P=require("../GalleryPagination/GalleryPagination.cjs.js"),_=[m.Navigation],I=({images:n,label:a,className:p,pagination:s="plain"})=>{const{activeIndex:t,handleSlideTo:c,handleSlideChange:S,onSwiperInit:h,handleSwiperResize:g,handleUserInteraction:r}=w.useSwiperWithAutoPlay(3e3),o=q.useCallback(l=>{r(),c(l)},[r,c]);return e.jsxs("div",{className:j.cn(i.root,p),children:[a&&e.jsx("div",{className:i.labelWrap,children:e.jsx(y.Label,{color:"black",size:"sm",children:a})}),e.jsx(d.Swiper,{onSwiper:h,onResize:g,onSlideChange:S,onTouchStart:r,onTouchEnd:r,modules:_,spaceBetween:0,slidesPerView:1,className:i.swiper,children:n.map((l,u)=>e.jsx(d.SwiperSlide,{children:e.jsx("div",{className:i.imageWrapper,children:e.jsx("img",{src:l,alt:"product image",className:i.image,onClick:r},u)})},u))}),s==="preview"&&n.length>1&&e.jsx(x.ImageGalleryPagination,{images:n,activeIndex:t,onSelect:o}),s==="plain"&&n.length>1&&e.jsx(P.GalleryPagination,{count:n.length,activeIndex:t,onSelect:o})]})};exports.ImageGallery=I;
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 f, jsx as e } from "react/jsx-runtime";
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 u, SwiperSlide as w } from "swiper/react";
5
- import { useCallback as v } from "react";
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 y } from "./components/ImageGalleryPagination/ImageGalleryPagination.es.js";
14
- import { GalleryPagination as C } from "../GalleryPagination/GalleryPagination.es.js";
15
- const W = [g], D = ({ images: r, label: n, className: s, pagination: t = "plain" }) => {
16
- const { activeIndex: a, handleSlideTo: m, handleSlideChange: d, onSwiperInit: h, handleSwiperResize: S, handleUserInteraction: i } = I(3e3), c = v(
17
- (l) => {
18
- i(), m(l);
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, m]
20
+ [i, t]
21
21
  );
22
- return /* @__PURE__ */ f("div", { className: N(o.root, s), children: [
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
- u,
25
+ f,
26
26
  {
27
- onSwiper: h,
28
- onResize: S,
29
- onSlideChange: d,
27
+ onSwiper: d,
28
+ onResize: h,
29
+ onSlideChange: p,
30
30
  onTouchStart: i,
31
31
  onTouchEnd: i,
32
- modules: W,
32
+ modules: C,
33
33
  spaceBetween: 0,
34
34
  slidesPerView: 1,
35
35
  className: o.swiper,
36
- children: r.map((l, p) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e("div", { className: o.imageWrapper, children: /* @__PURE__ */ e(
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: l,
39
+ src: a,
40
40
  alt: "product image",
41
41
  className: o.image,
42
42
  onClick: i
43
43
  },
44
- p
45
- ) }) }, p))
44
+ c
45
+ ) }) }, c))
46
46
  }
47
47
  ),
48
- t === "preview" && r.length > 1 && /* @__PURE__ */ e(y, { images: r, activeIndex: a, onSelect: c }),
49
- t === "plain" && r.length > 1 && /* @__PURE__ */ e(C, { count: r.length, activeIndex: a, onSelect: c })
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: flex;
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
- width: 64px;
10
- height: 64px;
11
- padding: 0;
12
- border: 1px solid var(--color-neutral-200);
13
- border-radius: var(--border-radius-xs);
14
- background: none;
15
- cursor: pointer;
16
- opacity: 0.5;
17
- transition: opacity 0.3s ease;
18
- overflow: hidden;
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
- opacity: 1;
23
- border-color: var(--color-neutral-200);
24
- }
25
+ .thumbnailButton.active {
26
+ opacity: 1;
27
+ border-color: var(--color-neutral-200);
28
+ }
25
29
 
26
- .thumbnailImage {
27
- width: 100%;
28
- height: 100%;
29
- object-fit: cover;
30
+ .thumbnailImage {
31
+ width: 100%;
32
+ height: 100%;
33
+ object-fit: cover;
34
+ }
30
35
  }
@@ -1 +1,2 @@
1
1
  export { ImageGallery } from './ImageGallery';
2
+ export type { ImageGalleryProps } from './ImageGallery';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("./assets/VectorLogo.svg.cjs.js"),s=require("../../src/components/PlainFeaturesGroup/plainFeaturesGroup.module.css"),t=require("../Icon/Icon.cjs.js"),c=require("../Typography/Typography.cjs.js"),i=({items:a})=>e.jsxs("div",{className:s.container,children:[e.jsx("div",{className:s.plainFeaturesGroup,children:a.map((r,o)=>e.jsxs("div",{className:s.feature,children:[e.jsx(t.Icon,{className:s.featureIcon,name:r.icon}),e.jsx(c.Typography,{className:s.featureText,defaultVariant:"bodyXs",children:r.text})]},o))}),e.jsx(n.default,{className:s.logo})]});exports.PlainFeaturesGroup=i;
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 }: TPlainFeaturesGroupProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const PlainFeaturesGroup: ({ items }: TPlainFeaturesGroupView) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,11 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import m from "./assets/VectorLogo.svg.es.js";
3
- import e from "../../components/PlainFeaturesGroup/plainFeaturesGroup.module.css";
4
- import { Icon as c } from "../Icon/Icon.es.js";
5
- import { Typography as i } from "../Typography/Typography.es.js";
6
- const u = ({ items: s }) => /* @__PURE__ */ o("div", { className: e.container, children: [
7
- /* @__PURE__ */ r("div", { className: e.plainFeaturesGroup, children: s.map((a, t) => /* @__PURE__ */ o("div", { className: e.feature, children: [
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
- u as PlainFeaturesGroup
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"),r=require("../Typography/Typography.cjs.js"),t=require("../../src/components/Quote/Quote.module.css"),i=require("./const.cjs.js"),u=({prefix:a,color:n,quote:l,source:s,sourcePrefix:c})=>{var o;return e.jsxs("div",{className:t.quoteContainer,children:[e.jsxs("div",{className:t.quoteContent,children:[e.jsx("img",{src:(o=i.prefixSelection[a])==null?void 0:o[n],alt:`${a} icon`,className:t.quoteIcon}),e.jsx(r.Typography,{as:"p",defaultVariant:"preambleSm",mobileVariant:"bodyXl",className:t.quoteText,children:l})]}),s&&e.jsxs(r.Typography,{as:"figcaption",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:t.quoteAuthor,children:[i.sourcePrefixSelection[c]," ",s]})]})};exports.Quote=u;
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: 'quotation_mark';
5
- color: 'indigo' | 'ochre' | 'solar' | 'grey';
4
+ prefix: 'quotation_marks';
5
+ color: 'indigo' | 'ochre' | 'grey' | 'solar';
6
6
  quote: string;
7
- sourcePrefix: 'hyphen' | 'dash';
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 a, jsx as i } from "react/jsx-runtime";
2
- import { Typography as l } from "../Typography/Typography.es.js";
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 p } from "./const.es.js";
5
- const b = ({ prefix: t, color: s, quote: m, source: o, sourcePrefix: n }) => {
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__ */ a("div", { className: e.quoteContainer, children: [
8
- /* @__PURE__ */ a("div", { className: e.quoteContent, children: [
9
- /* @__PURE__ */ i("img", { src: (r = c[t]) == null ? void 0 : r[s], alt: `${t} icon`, className: e.quoteIcon }),
10
- /* @__PURE__ */ i(l, { as: "p", defaultVariant: "preambleSm", mobileVariant: "bodyXl", className: e.quoteText, children: m })
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
- o && /* @__PURE__ */ a(
13
- l,
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
- p[n],
21
+ d[l],
22
22
  " ",
23
- o
23
+ i
24
24
  ]
25
25
  }
26
26
  )
27
27
  ] });
28
28
  };
29
29
  export {
30
- b as Quote
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={quotation_mark:{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
+ "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 = 'quotation_mark';
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
- quotation_mark: {
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=a=>{const s=Math.round(a*2)/2,n=[];for(let r=0;r<Math.floor(s);r++)n.push(e.jsx(c.Icon,{name:l.EIconName.STAR_FILL,className:o.starIcon},`full-${r}`));return s%1===.5&&n.push(e.jsx(c.Icon,{name:l.EIconName.STAR_HALF,className:o.starIcon},"half")),n},i=({rating:a,text:s})=>e.jsxs("div",{className:o.ratingPreview,children:[e.jsxs(t.Typography,{as:"p",defaultVariant:"labelMd",children:[a.stars," ",u(a.stars)]}),s&&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:s})]})]});exports.RatingPreview=i;exports.default=i;
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,6 +1,7 @@
1
1
  export type TRatingPreviewProps = {
2
- rating: {
3
- stars: number;
2
+ rating?: {
3
+ stars?: number;
4
+ totalReviews?: number;
4
5
  };
5
6
  text?: string;
6
7
  };
@@ -1,22 +1,22 @@
1
- import { jsxs as n, Fragment as c, jsx as e } from "react/jsx-runtime";
2
- import l from "../../components/RatingPreview/ratingPreview.module.css";
3
- import { Typography as o } from "../Typography/Typography.es.js";
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 = (r) => {
7
- const a = Math.round(r * 2) / 2, s = [];
8
- for (let t = 0; t < Math.floor(a); t++)
9
- s.push(/* @__PURE__ */ e(i, { name: m.STAR_FILL, className: l.starIcon }, `full-${t}`));
10
- return a % 1 === 0.5 && s.push(/* @__PURE__ */ e(i, { name: m.STAR_HALF, className: l.starIcon }, "half")), s;
11
- }, I = ({ rating: r, text: a }) => /* @__PURE__ */ n("div", { className: l.ratingPreview, children: [
12
- /* @__PURE__ */ n(o, { as: "p", defaultVariant: "labelMd", children: [
13
- r.stars,
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(r.stars)
15
+ d(a.stars)
16
16
  ] }),
17
- a && /* @__PURE__ */ n(c, { children: [
18
- /* @__PURE__ */ e(o, { as: "p", defaultVariant: "labelSm", children: "|" }),
19
- /* @__PURE__ */ e(o, { as: "p", defaultVariant: "labelSm", emphasis: !0, children: a })
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.9",
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",