@zenpatient-org/healthspan-marketing-ui 0.2.8 → 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 (35) 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 -0
  8. package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts +11 -0
  9. package/dist/components/PlainFeaturesGroup/PlainFeaturesGroup.es.js +11 -0
  10. package/dist/components/PlainFeaturesGroup/assets/VectorLogo.svg +1 -0
  11. package/dist/components/PlainFeaturesGroup/assets/VectorLogo.svg.cjs.js +1 -0
  12. package/dist/components/PlainFeaturesGroup/assets/VectorLogo.svg.es.js +5 -0
  13. package/dist/components/PlainFeaturesGroup/index.d.ts +1 -0
  14. package/dist/components/PlainFeaturesGroup/plainFeaturesGroup.module.css +50 -0
  15. package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -1
  16. package/dist/components/Quote/Quote.cjs.js +1 -1
  17. package/dist/components/Quote/Quote.d.ts +3 -3
  18. package/dist/components/Quote/Quote.es.js +13 -13
  19. package/dist/components/Quote/const.cjs.js +1 -1
  20. package/dist/components/Quote/const.d.ts +1 -1
  21. package/dist/components/Quote/const.es.js +1 -1
  22. package/dist/components/RatingPreview/RatingPreview.cjs.js +1 -1
  23. package/dist/components/RatingPreview/RatingPreview.d.ts +3 -2
  24. package/dist/components/RatingPreview/RatingPreview.es.js +15 -15
  25. package/dist/modules/IndividualProductCard/components/Features/Features.cjs.js +1 -1
  26. package/dist/modules/IndividualProductCard/components/Features/Features.es.js +45 -30
  27. package/dist/modules/IndividualProductCard/components/Features/features.module.css +9 -2
  28. package/dist/modules/IndividualProductCard/types.d.ts +1 -0
  29. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.cjs.js +1 -0
  30. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.d.ts +3 -0
  31. package/dist/modules/IndividualProductCardV2/IndividualProductCardV2.es.js +70 -0
  32. package/dist/modules/IndividualProductCardV2/index.d.ts +1 -0
  33. package/dist/modules/IndividualProductCardV2/individualProductCardV2.module.css +82 -0
  34. package/dist/modules/IndividualProductCardV2/types.d.ts +71 -0
  35. package/package.json +11 -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';
@@ -0,0 +1 @@
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;
@@ -0,0 +1,11 @@
1
+ import { EIconName } from '../Icon';
2
+ import { TPlainFeaturesGroupView } from '../../modules/IndividualProductCardV2/types';
3
+
4
+ export type TPlainFeaturesGroupProps = {
5
+ items: Array<{
6
+ icon: EIconName;
7
+ text: string;
8
+ href?: string;
9
+ }>;
10
+ };
11
+ export declare const PlainFeaturesGroup: ({ items }: TPlainFeaturesGroupView) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
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 })
8
+ ] });
9
+ export {
10
+ d as PlainFeaturesGroup
11
+ };
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="300" height="201" fill="none"><g filter="url(#a)" opacity=".6"><path fill="#000" fill-opacity=".1" d="m121.3 55.7-29.7 26v118.6H50.5v-65.6c0-12.3 1.5-19.1 12.3-28l28.8-25H.5V51h91.1V.7h41.2v27.8c0 12-1.2 18.4-11.5 27.2Zm87.6 94.2H300v-30.5h-91.1l28.8-25c10.8-9 12.3-15.8 12.3-28.2V.6h-41.1v118.8l-29.7 25.9c-10.3 8.8-11.5 15.2-11.5 27.2v27.8h41.2V150Z"/><path fill="url(#b)" fill-opacity=".4" d="m121.3 55.7-29.7 26v118.6H50.5v-65.6c0-12.3 1.5-19.1 12.3-28l28.8-25H.5V51h91.1V.7h41.2v27.8c0 12-1.2 18.4-11.5 27.2Zm87.6 94.2H300v-30.5h-91.1l28.8-25c10.8-9 12.3-15.8 12.3-28.2V.6h-41.1v118.8l-29.7 25.9c-10.3 8.8-11.5 15.2-11.5 27.2v27.8h41.2V150Z"/></g><defs><linearGradient id="b" x1=".5" x2="300" y1=".6" y2="190.3" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#fff"/><stop offset=".8" stop-color="#fff" stop-opacity=".4"/></linearGradient><filter id="a" width="299.5" height="201.4" x=".5" y=".6" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1.7"/><feGaussianBlur stdDeviation="1.7"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"/><feBlend in2="shape" result="effect1_innerShadow_788_5293"/></filter></defs></svg>
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react");function c(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(r,l,a.get?a:{enumerable:!0,get:()=>t[l]})}}return r.default=t,Object.freeze(r)}const e=c(n),o=t=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:300,height:201,fill:"none",...t},e.createElement("g",{filter:"url(#a)",opacity:.6},e.createElement("path",{fill:"#000",fillOpacity:.1,d:"m121.3 55.7-29.7 26v118.6H50.5v-65.6c0-12.3 1.5-19.1 12.3-28l28.8-25H.5V51h91.1V.7h41.2v27.8c0 12-1.2 18.4-11.5 27.2Zm87.6 94.2H300v-30.5h-91.1l28.8-25c10.8-9 12.3-15.8 12.3-28.2V.6h-41.1v118.8l-29.7 25.9c-10.3 8.8-11.5 15.2-11.5 27.2v27.8h41.2V150Z"}),e.createElement("path",{fill:"url(#b)",fillOpacity:.4,d:"m121.3 55.7-29.7 26v118.6H50.5v-65.6c0-12.3 1.5-19.1 12.3-28l28.8-25H.5V51h91.1V.7h41.2v27.8c0 12-1.2 18.4-11.5 27.2Zm87.6 94.2H300v-30.5h-91.1l28.8-25c10.8-9 12.3-15.8 12.3-28.2V.6h-41.1v118.8l-29.7 25.9c-10.3 8.8-11.5 15.2-11.5 27.2v27.8h41.2V150Z"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"b",x1:.5,x2:300,y1:.6,y2:190.3,gradientUnits:"userSpaceOnUse"},e.createElement("stop",{offset:.1,stopColor:"#fff"}),e.createElement("stop",{offset:.8,stopColor:"#fff",stopOpacity:.4})),e.createElement("filter",{id:"a",width:299.5,height:201.4,x:.5,y:.6,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},e.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),e.createElement("feOffset",{dy:1.7}),e.createElement("feGaussianBlur",{stdDeviation:1.7}),e.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),e.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),e.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_788_5293"}))));exports.default=o;
@@ -0,0 +1,5 @@
1
+ import * as e from "react";
2
+ const l = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 300, height: 201, fill: "none", ...t }, /* @__PURE__ */ e.createElement("g", { filter: "url(#a)", opacity: 0.6 }, /* @__PURE__ */ e.createElement("path", { fill: "#000", fillOpacity: 0.1, d: "m121.3 55.7-29.7 26v118.6H50.5v-65.6c0-12.3 1.5-19.1 12.3-28l28.8-25H.5V51h91.1V.7h41.2v27.8c0 12-1.2 18.4-11.5 27.2Zm87.6 94.2H300v-30.5h-91.1l28.8-25c10.8-9 12.3-15.8 12.3-28.2V.6h-41.1v118.8l-29.7 25.9c-10.3 8.8-11.5 15.2-11.5 27.2v27.8h41.2V150Z" }), /* @__PURE__ */ e.createElement("path", { fill: "url(#b)", fillOpacity: 0.4, d: "m121.3 55.7-29.7 26v118.6H50.5v-65.6c0-12.3 1.5-19.1 12.3-28l28.8-25H.5V51h91.1V.7h41.2v27.8c0 12-1.2 18.4-11.5 27.2Zm87.6 94.2H300v-30.5h-91.1l28.8-25c10.8-9 12.3-15.8 12.3-28.2V.6h-41.1v118.8l-29.7 25.9c-10.3 8.8-11.5 15.2-11.5 27.2v27.8h41.2V150Z" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("linearGradient", { id: "b", x1: 0.5, x2: 300, y1: 0.6, y2: 190.3, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("stop", { offset: 0.1, stopColor: "#fff" }), /* @__PURE__ */ e.createElement("stop", { offset: 0.8, stopColor: "#fff", stopOpacity: 0.4 })), /* @__PURE__ */ e.createElement("filter", { id: "a", width: 299.5, height: 201.4, x: 0.5, y: 0.6, colorInterpolationFilters: "sRGB", filterUnits: "userSpaceOnUse" }, /* @__PURE__ */ e.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ e.createElement("feBlend", { in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }), /* @__PURE__ */ e.createElement("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), /* @__PURE__ */ e.createElement("feOffset", { dy: 1.7 }), /* @__PURE__ */ e.createElement("feGaussianBlur", { stdDeviation: 1.7 }), /* @__PURE__ */ e.createElement("feComposite", { in2: "hardAlpha", k2: -1, k3: 1, operator: "arithmetic" }), /* @__PURE__ */ e.createElement("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" }), /* @__PURE__ */ e.createElement("feBlend", { in2: "shape", result: "effect1_innerShadow_788_5293" }))));
3
+ export {
4
+ l as default
5
+ };
@@ -0,0 +1 @@
1
+ export { PlainFeaturesGroup } from './PlainFeaturesGroup';
@@ -0,0 +1,50 @@
1
+ .container {
2
+ width: 100%;
3
+ display: flex;
4
+ border-radius: var(--border-radius-xs);
5
+ background: linear-gradient(95deg, var(--color-neutral-100) 0.09%, #ececec 93.88%);
6
+ overflow: hidden;
7
+ justify-content: space-between;
8
+ }
9
+
10
+ .plainFeaturesGroup {
11
+ flex-shrink: 0;
12
+ position: relative;
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: 8px;
16
+ padding: 16px 16px 16px 32px;
17
+ }
18
+
19
+ .logo {
20
+ position: relative;
21
+ height: 200px;
22
+ width: 300px;
23
+ margin-bottom: -66px;
24
+ flex-shrink: 0;
25
+ z-index: 0;
26
+ opacity: 0.6;
27
+ }
28
+
29
+ .feature {
30
+ display: flex;
31
+ align-items: center;
32
+ gap: 12px;
33
+ }
34
+
35
+ .featureIcon {
36
+ color: var(--color-text-secondary);
37
+ width: 20px;
38
+ height: 20px;
39
+ }
40
+
41
+ .featureText {
42
+ color: var(--color-text-secondary);
43
+ }
44
+
45
+ @media (width <= 1200px) {
46
+ .logo {
47
+ margin-left: -47px;
48
+ margin-top: -30px;
49
+ }
50
+ }
@@ -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 {
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),u=require("../../../../utils/cn/cn.cjs.js"),r=require("../../../../src/modules/IndividualProductCard/components/Features/features.module.css"),d=require("../../../../components/TypeBadge/TypeBadge.cjs.js"),n=require("../../../../components/Typography/Typography.cjs.js"),y=require("../../../../components/IconBracket/IconBracket.cjs.js"),g=({features:i})=>{const[c,o]=a.useState([]),l=a.useCallback(e=>{o(s=>s.includes(e)?s.filter(p=>p!==e):[...s,e])},[]);return t.jsx("div",{className:r.root,children:i.map((e,s)=>t.jsxs("div",{className:r.feature,children:[t.jsxs("button",{className:r.header,onClick:()=>l(s),children:[t.jsxs("div",{className:r.labelWrapper,children:[t.jsx(d.TypeBadge,{type:e.type},s),t.jsx(n.Typography,{as:"span",defaultVariant:"bodySm",mobileVariant:"labelMd",weight:"regular",children:e.label})]}),e.description&&t.jsx(y.IconBracket,{variant:c.includes(s)?"close":"plus",size:"sm"})]}),e.description&&t.jsx(n.Typography,{as:"p",defaultVariant:"bodyXs",className:u.cn(r.description,c.includes(s)&&r.descriptionActive),weight:"regular",children:e.description})]},`${e.label}-${s}`))})};exports.Features=g;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),y=require("../../../../utils/cn/cn.cjs.js"),c=require("../../../../src/modules/IndividualProductCard/components/Features/features.module.css"),b=require("../../../../components/TypeBadge/TypeBadge.cjs.js"),i=require("../../../../components/Typography/Typography.cjs.js"),g=require("../../../../components/IconBracket/IconBracket.cjs.js"),m=({features:p})=>{const[n,u]=l.useState([]),d=l.useCallback(e=>{u(s=>s.includes(e)?s.filter(r=>r!==e):[...s,e])},[]);return t.jsx("div",{className:c.root,children:p.map((e,s)=>{const r=e.description&&e.collapsible,a=!!e.description,o=t.jsxs("div",{className:c.labelWrapper,children:[t.jsx(b.TypeBadge,{type:e.type},s),t.jsx(i.Typography,{className:c.label,as:"span",defaultVariant:a?"bodySm":"bodyMd",mobileVariant:a?"labelMd":"bodySm",weight:"regular",children:e.label})]});return t.jsxs("div",{className:c.feature,children:[r?t.jsxs("button",{className:c.header,onClick:()=>d(s),children:[o,t.jsx(g.IconBracket,{variant:n.includes(s)?"close":"plus",size:"sm"})]}):o,a&&t.jsx(i.Typography,{as:"p",defaultVariant:"bodyXs",className:y.cn(c.description,{[c.descriptionActive]:n.includes(s)||!r}),weight:"regular",children:e.description})]},`${e.label}-${s}`)})})};exports.Features=m;
@@ -1,35 +1,50 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
3
- import { useState as m, useCallback as d } from "react";
4
- import { cn as u } from "../../../../utils/cn/cn.es.js";
5
- import s from "../../../../modules/IndividualProductCard/components/Features/features.module.css";
6
- import { TypeBadge as h } from "../../../../components/TypeBadge/TypeBadge.es.js";
7
- import { Typography as l } from "../../../../components/Typography/Typography.es.js";
8
- import { IconBracket as b } from "../../../../components/IconBracket/IconBracket.es.js";
9
- const V = ({ features: o }) => {
10
- const [a, c] = m([]), n = d((e) => {
11
- c((r) => r.includes(e) ? r.filter((p) => p !== e) : [...r, e]);
2
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
3
+ import { useState as b, useCallback as u } from "react";
4
+ import { cn as h } from "../../../../utils/cn/cn.es.js";
5
+ import l from "../../../../modules/IndividualProductCard/components/Features/features.module.css";
6
+ import { TypeBadge as g } from "../../../../components/TypeBadge/TypeBadge.es.js";
7
+ import { Typography as n } from "../../../../components/Typography/Typography.es.js";
8
+ import { IconBracket as y } from "../../../../components/IconBracket/IconBracket.es.js";
9
+ const T = ({ features: p }) => {
10
+ const [i, m] = b([]), d = u((e) => {
11
+ m((s) => s.includes(e) ? s.filter((t) => t !== e) : [...s, e]);
12
12
  }, []);
13
- return /* @__PURE__ */ t("div", { className: s.root, children: o.map((e, r) => /* @__PURE__ */ i("div", { className: s.feature, children: [
14
- /* @__PURE__ */ i("button", { className: s.header, onClick: () => n(r), children: [
15
- /* @__PURE__ */ i("div", { className: s.labelWrapper, children: [
16
- /* @__PURE__ */ t(h, { type: e.type }, r),
17
- /* @__PURE__ */ t(l, { as: "span", defaultVariant: "bodySm", mobileVariant: "labelMd", weight: "regular", children: e.label })
18
- ] }),
19
- e.description && /* @__PURE__ */ t(b, { variant: a.includes(r) ? "close" : "plus", size: "sm" })
20
- ] }),
21
- e.description && /* @__PURE__ */ t(
22
- l,
23
- {
24
- as: "p",
25
- defaultVariant: "bodyXs",
26
- className: u(s.description, a.includes(r) && s.descriptionActive),
27
- weight: "regular",
28
- children: e.description
29
- }
30
- )
31
- ] }, `${e.label}-${r}`)) });
13
+ return /* @__PURE__ */ r("div", { className: l.root, children: p.map((e, s) => {
14
+ const t = e.description && e.collapsible, o = !!e.description, c = /* @__PURE__ */ a("div", { className: l.labelWrapper, children: [
15
+ /* @__PURE__ */ r(g, { type: e.type }, s),
16
+ /* @__PURE__ */ r(
17
+ n,
18
+ {
19
+ className: l.label,
20
+ as: "span",
21
+ defaultVariant: o ? "bodySm" : "bodyMd",
22
+ mobileVariant: o ? "labelMd" : "bodySm",
23
+ weight: "regular",
24
+ children: e.label
25
+ }
26
+ )
27
+ ] });
28
+ return /* @__PURE__ */ a("div", { className: l.feature, children: [
29
+ t ? /* @__PURE__ */ a("button", { className: l.header, onClick: () => d(s), children: [
30
+ c,
31
+ /* @__PURE__ */ r(y, { variant: i.includes(s) ? "close" : "plus", size: "sm" })
32
+ ] }) : c,
33
+ o && /* @__PURE__ */ r(
34
+ n,
35
+ {
36
+ as: "p",
37
+ defaultVariant: "bodyXs",
38
+ className: h(l.description, {
39
+ [l.descriptionActive]: i.includes(s) || !t
40
+ }),
41
+ weight: "regular",
42
+ children: e.description
43
+ }
44
+ )
45
+ ] }, `${e.label}-${s}`);
46
+ }) });
32
47
  };
33
48
  export {
34
- V as Features
49
+ T as Features
35
50
  };
@@ -7,7 +7,7 @@
7
7
  .feature {
8
8
  display: flex;
9
9
  width: 100%;
10
- align-items: center;
10
+ align-items: flex-start;
11
11
  flex-direction: column;
12
12
  padding: 16px 0;
13
13
  border-bottom: var(--border-width-sm) solid var(--border-color-light);
@@ -37,6 +37,10 @@
37
37
  color: var(--color-text-primary);
38
38
  }
39
39
 
40
+ .label {
41
+ margin-bottom: -2px;
42
+ }
43
+
40
44
  .description {
41
45
  overflow: hidden;
42
46
  width: 100%;
@@ -44,7 +48,10 @@
44
48
  padding-left: 32px;
45
49
  line-height: 0;
46
50
  color: transparent;
47
- transition: margin-top 0.3s, line-height 0.3s, color 0.3s;
51
+ transition:
52
+ margin-top 0.3s,
53
+ line-height 0.3s,
54
+ color 0.3s;
48
55
  }
49
56
 
50
57
  .descriptionActive {
@@ -4,6 +4,7 @@ export type TProductFeature = {
4
4
  label: string;
5
5
  type: ETypeBadge;
6
6
  description?: string;
7
+ collapsible?: boolean;
7
8
  };
8
9
  export type TProductPlan = {
9
10
  id: string;
@@ -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.8",
3
+ "version": "0.2.10",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -365,6 +365,11 @@
365
365
  "import": "./dist/components/ClaimBlock/ClaimBlock.es.js",
366
366
  "require": "./dist/components/ClaimBlock/ClaimBlock.cjs.js"
367
367
  },
368
+ "./PlainFeaturesGroup": {
369
+ "types": "./dist/components/PlainFeaturesGroup/PlainFeaturesGroup.d.ts",
370
+ "import": "./dist/components/PlainFeaturesGroup/PlainFeaturesGroup.es.js",
371
+ "require": "./dist/components/PlainFeaturesGroup/PlainFeaturesGroup.cjs.js"
372
+ },
368
373
  "./Claims": {
369
374
  "types": "./dist/modules/Claims/Claims.d.ts",
370
375
  "import": "./dist/modules/Claims/Claims.es.js",
@@ -510,6 +515,11 @@
510
515
  "import": "./dist/modules/IndividualProductCard/IndividualProductCard.es.js",
511
516
  "require": "./dist/modules/IndividualProductCard/IndividualProductCard.cjs.js"
512
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
+ },
513
523
  "./ResearchFeatured": {
514
524
  "types": "./dist/modules/ResearchFeatured/index.d.ts",
515
525
  "import": "./dist/modules/ResearchFeatured/ResearchFeatured.es.js",