@zenpatient-org/healthspan-marketing-ui 0.2.28 → 0.2.30
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/HighlightCard/HighlightCard.cjs.js +1 -1
- package/dist/components/HighlightCard/HighlightCard.d.ts +4 -1
- package/dist/components/HighlightCard/HighlightCard.es.js +28 -21
- package/dist/components/HighlightCard/highlightCard.module.css +19 -5
- package/dist/modules/Citation/Citation.cjs.js +1 -0
- package/dist/modules/Citation/Citation.d.ts +9 -0
- package/dist/modules/Citation/Citation.es.js +15 -0
- package/dist/modules/Citation/citation.module.css +23 -0
- package/dist/modules/Citation/index.d.ts +2 -0
- package/dist/modules/ComparisonV2/ComparisonV2.cjs.js +1 -0
- package/dist/modules/ComparisonV2/ComparisonV2.d.ts +11 -0
- package/dist/modules/ComparisonV2/ComparisonV2.es.js +145 -0
- package/dist/modules/ComparisonV2/comparisonV2.module.css +254 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.cjs.js +1 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.d.ts +4 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.es.js +22 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Description/index.d.ts +1 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Tooltip/ComparisonV2Tooltip.cjs.js +1 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Tooltip/ComparisonV2Tooltip.d.ts +7 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Tooltip/ComparisonV2Tooltip.es.js +53 -0
- package/dist/modules/ComparisonV2/components/ComparisonV2Tooltip/index.d.ts +1 -0
- package/dist/modules/ComparisonV2/index.d.ts +2 -0
- package/dist/modules/ComparisonV2/types.d.ts +11 -0
- package/dist/modules/Highlight/Highlight.cjs.js +1 -1
- package/dist/modules/Highlight/Highlight.es.js +25 -23
- package/dist/modules/Highlight/highlight.module.css +8 -6
- package/package.json +11 -1
|
@@ -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"),h=require("../Icon/constants.cjs.js"),a=require("../../src/components/HighlightCard/highlightCard.module.css"),s=require("../Typography/Typography.cjs.js"),m=require("../IconButton/IconButton.cjs.js"),u=({image:g,eyebrow:i,title:r,description:o,link:t,colorScheme:n="light"})=>{const c=n==="light"?"muted-invert":"muted",l=e.jsxs(e.Fragment,{children:[i&&e.jsx(s.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,className:a.eyebrow,children:i}),e.jsxs("div",{className:a.bottomContainer,children:[e.jsxs("div",{className:a.titleContainer,children:[r&&e.jsx(s.Typography,{as:"p",defaultVariant:"headingXl",mobileVariant:"headingLg",className:a.title,children:r}),t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:a.desktop,children:e.jsx(m.IconButton,{variant:c,size:"lg",iconName:h.EIconName.ARROW_FORWARD})}),e.jsx("div",{className:a.mobile,children:e.jsx(m.IconButton,{variant:c,size:"md",iconName:h.EIconName.ARROW_FORWARD})})]})]}),o&&e.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",className:a.description,children:o})]})]}),d={backgroundImage:`url(${g})`,backgroundSize:"cover",backgroundPosition:"center"};return t?e.jsx("a",{href:t,className:a.highlightCard,style:d,"data-scheme":n,children:l}):e.jsx("div",{className:a.highlightCard,style:d,"data-scheme":n,children:l})};exports.HighlightCard=u;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { TColorScheme } from '../../types/common';
|
|
2
|
+
|
|
1
3
|
export type HighlightCardProps = {
|
|
2
4
|
image: string;
|
|
3
5
|
eyebrow?: string;
|
|
4
6
|
title?: string;
|
|
5
7
|
description?: string;
|
|
6
8
|
link?: string;
|
|
9
|
+
colorScheme?: TColorScheme;
|
|
7
10
|
};
|
|
8
|
-
export declare const HighlightCard: ({ image, eyebrow, title, description, link }: HighlightCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const HighlightCard: ({ image, eyebrow, title, description, link, colorScheme, }: HighlightCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { EIconName as
|
|
3
|
-
import
|
|
4
|
-
import { Typography as
|
|
5
|
-
import { IconButton as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsxs as t, Fragment as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { EIconName as g } from "../Icon/constants.es.js";
|
|
3
|
+
import e from "../../components/HighlightCard/highlightCard.module.css";
|
|
4
|
+
import { Typography as n } from "../Typography/Typography.es.js";
|
|
5
|
+
import { IconButton as p } from "../IconButton/IconButton.es.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
image: u,
|
|
8
|
+
eyebrow: s,
|
|
9
|
+
title: l,
|
|
10
|
+
description: d,
|
|
11
|
+
link: i,
|
|
12
|
+
colorScheme: r = "light"
|
|
13
|
+
}) => {
|
|
14
|
+
const c = r === "light" ? "muted-invert" : "muted", o = /* @__PURE__ */ t(h, { children: [
|
|
15
|
+
s && /* @__PURE__ */ a(n, { as: "p", defaultVariant: "labelSm", emphasis: !0, className: e.eyebrow, children: s }),
|
|
16
|
+
/* @__PURE__ */ t("div", { className: e.bottomContainer, children: [
|
|
17
|
+
/* @__PURE__ */ t("div", { className: e.titleContainer, children: [
|
|
18
|
+
l && /* @__PURE__ */ a(
|
|
19
|
+
n,
|
|
13
20
|
{
|
|
14
21
|
as: "p",
|
|
15
22
|
defaultVariant: "headingXl",
|
|
16
23
|
mobileVariant: "headingLg",
|
|
17
|
-
className:
|
|
18
|
-
children:
|
|
24
|
+
className: e.title,
|
|
25
|
+
children: l
|
|
19
26
|
}
|
|
20
27
|
),
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
28
|
+
i && /* @__PURE__ */ t(h, { children: [
|
|
29
|
+
/* @__PURE__ */ a("div", { className: e.desktop, children: /* @__PURE__ */ a(p, { variant: c, size: "lg", iconName: g.ARROW_FORWARD }) }),
|
|
30
|
+
/* @__PURE__ */ a("div", { className: e.mobile, children: /* @__PURE__ */ a(p, { variant: c, size: "md", iconName: g.ARROW_FORWARD }) })
|
|
24
31
|
] })
|
|
25
32
|
] }),
|
|
26
|
-
|
|
33
|
+
d && /* @__PURE__ */ a(n, { as: "p", defaultVariant: "bodySm", className: e.description, children: d })
|
|
27
34
|
] })
|
|
28
|
-
] }),
|
|
29
|
-
return
|
|
35
|
+
] }), m = { backgroundImage: `url(${u})`, backgroundSize: "cover", backgroundPosition: "center" };
|
|
36
|
+
return i ? /* @__PURE__ */ a("a", { href: i, className: e.highlightCard, style: m, "data-scheme": r, children: o }) : /* @__PURE__ */ a("div", { className: e.highlightCard, style: m, "data-scheme": r, children: o });
|
|
30
37
|
};
|
|
31
38
|
export {
|
|
32
|
-
|
|
39
|
+
y as HighlightCard
|
|
33
40
|
};
|
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
.highlightCard {
|
|
2
|
+
--primary-inverted: var(--color-text-primary-inverted);
|
|
3
|
+
--secondary-inverted: var(--color-text-secondary-inverted);
|
|
4
|
+
|
|
2
5
|
display: flex;
|
|
3
6
|
flex-direction: column;
|
|
4
7
|
justify-content: space-between;
|
|
5
8
|
padding: 32px;
|
|
6
9
|
border-radius: var(--border-radius-lg);
|
|
7
|
-
|
|
8
|
-
color: var(--
|
|
10
|
+
aspect-ratio: 389 / 483;
|
|
11
|
+
color: var(--primary-inverted);
|
|
9
12
|
text-decoration: none;
|
|
10
13
|
}
|
|
11
14
|
|
|
15
|
+
.highlightCard[data-scheme='dark'] {
|
|
16
|
+
--primary-inverted: var(--color-text-primary);
|
|
17
|
+
--secondary-inverted: var(--color-text-secondary);
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.eyebrow {
|
|
13
21
|
width: 100%;
|
|
14
|
-
color: var(--
|
|
22
|
+
color: var(--secondary-inverted);
|
|
15
23
|
align-self: flex-start;
|
|
16
24
|
}
|
|
17
25
|
|
|
26
|
+
.title {
|
|
27
|
+
color: var(--primary-inverted);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.description {
|
|
31
|
+
color: var(--secondary-inverted);
|
|
32
|
+
}
|
|
33
|
+
|
|
18
34
|
.bottomContainer {
|
|
19
35
|
display: flex;
|
|
20
36
|
flex-direction: column;
|
|
@@ -43,7 +59,6 @@
|
|
|
43
59
|
|
|
44
60
|
@media (width <= 1200px) {
|
|
45
61
|
.highlightCard {
|
|
46
|
-
height: 477px;
|
|
47
62
|
padding: 24px;
|
|
48
63
|
}
|
|
49
64
|
|
|
@@ -55,7 +70,6 @@
|
|
|
55
70
|
|
|
56
71
|
@media (width <= 768px) {
|
|
57
72
|
.highlightCard {
|
|
58
|
-
height: 415.5px;
|
|
59
73
|
padding: 24px;
|
|
60
74
|
}
|
|
61
75
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("../../src/modules/Citation/citation.module.css"),i=require("../../utils/cn/cn.cjs.js"),u=require("../../components/Typography/Typography.cjs.js");function l({orderPadding:r,items:n,className:c}){const e=isNaN(Number(r))?0:r;return!n||n.length===0?null:t.jsx("section",{className:i.cn(a.root,c),children:n==null?void 0:n.map((o,s)=>t.jsxs(u.Typography,{as:"p",className:a.text,defaultVariant:"bodySm",mobileVariant:"bodyXs",children:[t.jsx("sup",{children:e?e+s:s+1})," ",o.item]},o.id))})}exports.Citation=l;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type CitationProps = {
|
|
2
|
+
orderPadding?: number;
|
|
3
|
+
items?: Array<{
|
|
4
|
+
id: string | number;
|
|
5
|
+
item: string;
|
|
6
|
+
}>;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function Citation({ orderPadding, items, className }: CitationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import p from "../../modules/Citation/citation.module.css";
|
|
3
|
+
import { cn as i } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import { Typography as e } from "../../components/Typography/Typography.es.js";
|
|
5
|
+
function y({ orderPadding: o, items: r, className: s }) {
|
|
6
|
+
const t = isNaN(Number(o)) ? 0 : o;
|
|
7
|
+
return !r || r.length === 0 ? null : /* @__PURE__ */ l("section", { className: i(p.root, s), children: r == null ? void 0 : r.map((a, n) => /* @__PURE__ */ c(e, { as: "p", className: p.text, defaultVariant: "bodySm", mobileVariant: "bodyXs", children: [
|
|
8
|
+
/* @__PURE__ */ l("sup", { children: t ? t + n : n + 1 }),
|
|
9
|
+
" ",
|
|
10
|
+
a.item
|
|
11
|
+
] }, a.id)) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
y as Citation
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 16px 120px 48px 120px;
|
|
4
|
+
max-width: var(--content-max-width);
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.text {
|
|
9
|
+
width: 100%;
|
|
10
|
+
color: var(--color-text-secondary);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.text sup {
|
|
14
|
+
font-size: 0.8em;
|
|
15
|
+
vertical-align: super;
|
|
16
|
+
line-height: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (width <= 768px) {
|
|
20
|
+
.text {
|
|
21
|
+
padding: 24px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),g=require("../../types/analytics/analytics.cjs.js"),f=require("../../utils/useIsMobile.cjs.js"),N=require("../Comparison/assets/company-logo.svg.cjs.js"),q=require("../Comparison/utils.cjs.js"),i=require("../../src/modules/ComparisonV2/comparisonV2.module.css"),T=require("../../utils/cn/cn.cjs.js"),_=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),H=require("./components/ComparisonV2Tooltip/ComparisonV2Tooltip.cjs.js"),M=require("./components/ComparisonV2Description/ComparisonV2Description.cjs.js"),B=require("../../components/Button/Button.cjs.js"),E=({title:C,description:u,ctaBlock:m,getStartedLink:d,comparisonV2Columns:j})=>{const[t,r]=y.useState(null),[p,a]=y.useState(null),x=f.useIsMobile(768),b=s=>{var n;(n=window.eventBus)==null||n.emit("analytics",{event:g.EAnalyticsEvent.ctaClicked,type:g.EAnalyticsEventType.interaction,component:"Comparison V2",payload:{link:d}})},V=s=>{x&&(t===s?(a(s),setTimeout(()=>{r(null),a(null)},250)):t?(a(t),setTimeout(()=>{a(null),r(s)},250)):r(s))},v=s=>{s==null||s.stopPropagation(),t&&(a(t),setTimeout(()=>{r(null),a(null)},250))};return e.jsx("div",{className:i.root,children:e.jsxs("div",{className:i.container,children:[e.jsxs("div",{className:i.header,children:[e.jsx(_.HighlightedTitle,{title:C,defaultVariant:"displayMd",mobileVariant:"headingXl"}),u&&e.jsx(c.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",className:i.description,children:u})]}),e.jsxs("div",{className:i.tableContainer,children:[e.jsx("div",{className:i.table,children:j.map((s,n)=>e.jsxs("div",{className:T.cn(i.alternativeCol,{[i.featuredCol]:s.featured}),children:[e.jsx("div",{className:T.cn(i.alternativeHeaderCell,{[i.featuredHeaderCell]:s.featured}),children:q.isHealthspan(s.comparisonV2Header.type)?e.jsx(N.default,{className:i.logo,"aria-label":"Healthspan logo"}):e.jsx(c.Typography,{as:"h3",defaultVariant:"headingLg",mobileVariant:"preambleMd",className:i.headerText,children:s.comparisonV2Header.title})}),s.comparisonV2Cells.map((l,h)=>{const o=`comparison-${n}-${h}`;return e.jsxs("div",{className:i.alternativeContent,onClick:()=>V(o),children:[(t===o||p===o)&&e.jsx(H.ComparisonV2Tooltip,{title:l.title,description:l.description||"",onClose:v,isOpening:t===o&&!p,isClosing:p===o}),e.jsx(c.Typography,{as:"p",defaultVariant:"preambleMd",mobileVariant:"bodyXl",className:i.alternativeTitle,children:l.title}),l.description&&e.jsx(M.ComparisonV2Description,{title:l.title,description:l.description})]},h)})]},n))}),m&&d&&e.jsx("div",{className:i.ctaContainer,children:e.jsxs("div",{className:i.ctaBlock,children:[e.jsx(c.Typography,{as:"p",defaultVariant:"preambleMd",mobileVariant:"bodyXl",className:i.ctaText,children:m}),e.jsx("div",{className:i.ctaButton,children:e.jsx(B.Button,{as:"a",href:d||"#",size:"lg",onClick:b,children:"Get started"})})]})})]})]})})};exports.ComparisonV2=E;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ComparisonV2Column } from './types';
|
|
3
|
+
|
|
4
|
+
export type ComparisonV2Props = {
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: string;
|
|
7
|
+
ctaBlock?: string;
|
|
8
|
+
getStartedLink?: string;
|
|
9
|
+
comparisonV2Columns: Array<ComparisonV2Column>;
|
|
10
|
+
};
|
|
11
|
+
export declare const ComparisonV2: ({ title, description, ctaBlock, getStartedLink, comparisonV2Columns, }: ComparisonV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { useState as C } from "react";
|
|
4
|
+
import { EAnalyticsEventType as H, EAnalyticsEvent as M } from "../../types/analytics/analytics.es.js";
|
|
5
|
+
import { useIsMobile as B } from "../../utils/useIsMobile.es.js";
|
|
6
|
+
import E from "../Comparison/assets/company-logo.svg.es.js";
|
|
7
|
+
import { isHealthspan as k } from "../Comparison/utils.es.js";
|
|
8
|
+
import e from "../../modules/ComparisonV2/comparisonV2.module.css";
|
|
9
|
+
import { cn as b } from "../../utils/cn/cn.es.js";
|
|
10
|
+
import { HighlightedTitle as x } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
11
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
12
|
+
import { ComparisonV2Tooltip as X } from "./components/ComparisonV2Tooltip/ComparisonV2Tooltip.es.js";
|
|
13
|
+
import { ComparisonV2Description as j } from "./components/ComparisonV2Description/ComparisonV2Description.es.js";
|
|
14
|
+
import { Button as A } from "../../components/Button/Button.es.js";
|
|
15
|
+
const R = ({
|
|
16
|
+
title: g,
|
|
17
|
+
description: h,
|
|
18
|
+
ctaBlock: f,
|
|
19
|
+
getStartedLink: d,
|
|
20
|
+
comparisonV2Columns: v
|
|
21
|
+
}) => {
|
|
22
|
+
const [t, m] = C(null), [p, l] = C(null), T = B(768), V = (i) => {
|
|
23
|
+
var s;
|
|
24
|
+
(s = window.eventBus) == null || s.emit("analytics", {
|
|
25
|
+
event: M.ctaClicked,
|
|
26
|
+
type: H.interaction,
|
|
27
|
+
component: "Comparison V2",
|
|
28
|
+
payload: {
|
|
29
|
+
link: d
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, y = (i) => {
|
|
33
|
+
T && (t === i ? (l(i), setTimeout(() => {
|
|
34
|
+
m(null), l(null);
|
|
35
|
+
}, 250)) : t ? (l(t), setTimeout(() => {
|
|
36
|
+
l(null), m(i);
|
|
37
|
+
}, 250)) : m(i));
|
|
38
|
+
}, N = (i) => {
|
|
39
|
+
i == null || i.stopPropagation(), t && (l(t), setTimeout(() => {
|
|
40
|
+
m(null), l(null);
|
|
41
|
+
}, 250));
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ a("div", { className: e.root, children: /* @__PURE__ */ n("div", { className: e.container, children: [
|
|
44
|
+
/* @__PURE__ */ n("div", { className: e.header, children: [
|
|
45
|
+
/* @__PURE__ */ a(x, { title: g, defaultVariant: "displayMd", mobileVariant: "headingXl" }),
|
|
46
|
+
h && /* @__PURE__ */ a(
|
|
47
|
+
c,
|
|
48
|
+
{
|
|
49
|
+
as: "p",
|
|
50
|
+
defaultVariant: "bodyLg",
|
|
51
|
+
mobileVariant: "bodySm",
|
|
52
|
+
className: e.description,
|
|
53
|
+
children: h
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ n("div", { className: e.tableContainer, children: [
|
|
58
|
+
/* @__PURE__ */ a("div", { className: e.table, children: v.map((i, s) => /* @__PURE__ */ n(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: b(e.alternativeCol, {
|
|
62
|
+
[e.featuredCol]: i.featured
|
|
63
|
+
}),
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ a(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: b(e.alternativeHeaderCell, {
|
|
69
|
+
[e.featuredHeaderCell]: i.featured
|
|
70
|
+
}),
|
|
71
|
+
children: k(i.comparisonV2Header.type) ? /* @__PURE__ */ a(E, { className: e.logo, "aria-label": "Healthspan logo" }) : /* @__PURE__ */ a(
|
|
72
|
+
c,
|
|
73
|
+
{
|
|
74
|
+
as: "h3",
|
|
75
|
+
defaultVariant: "headingLg",
|
|
76
|
+
mobileVariant: "preambleMd",
|
|
77
|
+
className: e.headerText,
|
|
78
|
+
children: i.comparisonV2Header.title
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
i.comparisonV2Cells.map((o, u) => {
|
|
84
|
+
const r = `comparison-${s}-${u}`;
|
|
85
|
+
return /* @__PURE__ */ n(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: e.alternativeContent,
|
|
89
|
+
onClick: () => y(r),
|
|
90
|
+
children: [
|
|
91
|
+
(t === r || p === r) && /* @__PURE__ */ a(
|
|
92
|
+
X,
|
|
93
|
+
{
|
|
94
|
+
title: o.title,
|
|
95
|
+
description: o.description || "",
|
|
96
|
+
onClose: N,
|
|
97
|
+
isOpening: t === r && !p,
|
|
98
|
+
isClosing: p === r
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ a(
|
|
102
|
+
c,
|
|
103
|
+
{
|
|
104
|
+
as: "p",
|
|
105
|
+
defaultVariant: "preambleMd",
|
|
106
|
+
mobileVariant: "bodyXl",
|
|
107
|
+
className: e.alternativeTitle,
|
|
108
|
+
children: o.title
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
o.description && /* @__PURE__ */ a(
|
|
112
|
+
j,
|
|
113
|
+
{
|
|
114
|
+
title: o.title,
|
|
115
|
+
description: o.description
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
u
|
|
121
|
+
);
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
s
|
|
126
|
+
)) }),
|
|
127
|
+
f && d && /* @__PURE__ */ a("div", { className: e.ctaContainer, children: /* @__PURE__ */ n("div", { className: e.ctaBlock, children: [
|
|
128
|
+
/* @__PURE__ */ a(
|
|
129
|
+
c,
|
|
130
|
+
{
|
|
131
|
+
as: "p",
|
|
132
|
+
defaultVariant: "preambleMd",
|
|
133
|
+
mobileVariant: "bodyXl",
|
|
134
|
+
className: e.ctaText,
|
|
135
|
+
children: f
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ a("div", { className: e.ctaButton, children: /* @__PURE__ */ a(A, { as: "a", href: d || "#", size: "lg", onClick: V, children: "Get started" }) })
|
|
139
|
+
] }) })
|
|
140
|
+
] })
|
|
141
|
+
] }) });
|
|
142
|
+
};
|
|
143
|
+
export {
|
|
144
|
+
R as ComparisonV2
|
|
145
|
+
};
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
padding-top: var(--spacing-64, 64px);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.container {
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-width: fit-content;
|
|
12
|
+
max-width: 1080px;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: var(--spacing-64, 64px);
|
|
18
|
+
padding: 5vw;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (max-width: 768px) {
|
|
22
|
+
.container {
|
|
23
|
+
padding: 2vw;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.header {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: var(--spacing-20);
|
|
33
|
+
text-align: center;
|
|
34
|
+
width: 100%;
|
|
35
|
+
max-width: 670px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.description {
|
|
39
|
+
max-width: 570px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tableContainer {
|
|
43
|
+
width: 100%;
|
|
44
|
+
background-color: var(--color-bg-neutral-light);
|
|
45
|
+
border-radius: var(--border-radius-xl);
|
|
46
|
+
padding: var(--spacing-24, 24px) 2vw;
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
padding-bottom: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.table {
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-columns: repeat(2, 1fr);
|
|
54
|
+
width: 100%;
|
|
55
|
+
position: relative;
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.alternativeHeaderCell, .featuredHeaderCell {
|
|
60
|
+
padding: 2vw;
|
|
61
|
+
padding-bottom: 2vw;
|
|
62
|
+
height: 137px;
|
|
63
|
+
display: grid;
|
|
64
|
+
place-items: center;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
margin: 1vw;
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.featuredHeaderCell {
|
|
71
|
+
border-radius: var(--border-radius-md);
|
|
72
|
+
background: linear-gradient(0deg, #7A87A6 0%, #496E8D 16%, #195675 33%, #13435B 50%, #0E3041 66%, #081D27 83%, #000 100%);
|
|
73
|
+
color: var(--color-solar-200);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.alternativeCol, .featuredCol {
|
|
77
|
+
padding-right: 0;
|
|
78
|
+
padding-bottom: 32px;
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.featuredCol {
|
|
83
|
+
background-color: var(--color-bg-base-light);
|
|
84
|
+
border: 1px solid var(--color-indigo-300);
|
|
85
|
+
box-shadow: 0 44px 12px 0 rgba(0, 0, 0, 0.00), 0 28px 11px 0 rgba(0, 0, 0, 0.01), 0 16px 10px 0 rgba(0, 0, 0, 0.02), 0 7px 7px 0 rgba(0, 0, 0, 0.04), 0 2px 4px 0 rgba(0, 0, 0, 0.04);
|
|
86
|
+
border-radius: var(--border-radius-lg);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.alternativeCol {
|
|
90
|
+
border: 1px solid transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.alternativeContent, .featuredContent {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
width: 100%;
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 1fr;
|
|
98
|
+
grid-template-rows: auto auto;
|
|
99
|
+
justify-content: flex-end;
|
|
100
|
+
gap: var(--spacing-8, 8px);
|
|
101
|
+
padding: var(--spacing-24, 24px) 2vw;
|
|
102
|
+
border-bottom: 1px solid var(--color-bg-fill-alpha-black-10);
|
|
103
|
+
text-wrap: pretty;
|
|
104
|
+
height: 120px;
|
|
105
|
+
|
|
106
|
+
&:last-child {
|
|
107
|
+
border-bottom: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.alternativeContent {
|
|
112
|
+
padding-right: 0;
|
|
113
|
+
padding-left: 2.2vw;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.featuredContent {
|
|
117
|
+
padding-left: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.featuredTitle, .alternativeTitle {
|
|
121
|
+
align-self: flex-start;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.featuredTitle, .featuredDescription, .alternativeTitle, .alternativeDescription {
|
|
125
|
+
padding-inline: 3vw;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (max-width: 768px) {
|
|
129
|
+
.featuredTitle, .alternativeTitle {
|
|
130
|
+
color: var(--color-text-secondary);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.featuredDescription, .alternativeDescription {
|
|
135
|
+
color: var(--color-text-secondary);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.rowDescriptionContainer {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ctaContainer {
|
|
145
|
+
padding: var(--spacing-24, 24px) 2vw;
|
|
146
|
+
padding-right: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ctaBlock {
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
align-items: center;
|
|
153
|
+
gap: var(--spacing-16, 16px);
|
|
154
|
+
background-color: var(--color-bg-base-light);
|
|
155
|
+
border-radius: var(--border-radius-lg);
|
|
156
|
+
padding: var(--spacing-24, 24px) 2.22vw;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ctaButton {
|
|
160
|
+
flex-shrink: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.hideMobile {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (min-width: 769px) {
|
|
168
|
+
.hideMobile {
|
|
169
|
+
display: block;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.hideDesktop {
|
|
174
|
+
display: block;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (min-width: 769px) {
|
|
178
|
+
.hideDesktop {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Tooltip */
|
|
184
|
+
|
|
185
|
+
.tooltip {
|
|
186
|
+
padding: var(--spacing-24, 24px);
|
|
187
|
+
background-color: var(--color-bg-base-light);
|
|
188
|
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
gap: var(--spacing-16, 16px);
|
|
192
|
+
position: fixed;
|
|
193
|
+
top: 0;
|
|
194
|
+
left: 0;
|
|
195
|
+
right: 0;
|
|
196
|
+
width: 100%;
|
|
197
|
+
height: fit-content;
|
|
198
|
+
z-index: 1000;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.tooltipOpening {
|
|
202
|
+
animation: slideInDown 0.25s ease-in-out forwards;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.tooltipClosing {
|
|
206
|
+
animation: slideOutUp 0.25s ease-in-out forwards;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.tooltipHeader {
|
|
210
|
+
display: flex;
|
|
211
|
+
justify-content: space-between;
|
|
212
|
+
align-items: center;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.tooltipDescription {
|
|
216
|
+
text-align: left;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.closeButtonWrapper {
|
|
220
|
+
appearance: none;
|
|
221
|
+
border: none;
|
|
222
|
+
background: none;
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.closeIcon {
|
|
229
|
+
width: 16px;
|
|
230
|
+
height: 16px;
|
|
231
|
+
padding-inline: 8px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@keyframes slideInDown {
|
|
235
|
+
from {
|
|
236
|
+
transform: translateY(-100%);
|
|
237
|
+
opacity: 0;
|
|
238
|
+
}
|
|
239
|
+
to {
|
|
240
|
+
transform: translateY(0);
|
|
241
|
+
opacity: 1;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@keyframes slideOutUp {
|
|
246
|
+
from {
|
|
247
|
+
transform: translateY(0);
|
|
248
|
+
opacity: 1;
|
|
249
|
+
}
|
|
250
|
+
to {
|
|
251
|
+
transform: translateY(-100%);
|
|
252
|
+
opacity: 0;
|
|
253
|
+
}
|
|
254
|
+
}
|
package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("../../../../utils/cn/cn.cjs.js"),e=require("../../../../src/modules/ComparisonV2/comparisonV2.module.css"),r=require("../../../../components/Typography/Typography.cjs.js"),t=require("../../../../components/Icon/Icon.cjs.js"),c=require("../../../../components/Icon/constants.cjs.js"),i=({description:s})=>o.jsxs("div",{className:e.rowDescriptionContainer,children:[o.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:n.cn(e.featuredDescription,e.hideMobile),children:s}),o.jsx(t.Icon,{name:c.EIconName.DOT,className:n.cn(e.dot,e.hideDesktop)})]});exports.ComparisonV2Description=i;
|
package/dist/modules/ComparisonV2/components/ComparisonV2Description/ComparisonV2Description.es.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "../../../../utils/cn/cn.es.js";
|
|
3
|
+
import o from "../../../../modules/ComparisonV2/comparisonV2.module.css";
|
|
4
|
+
import { Typography as t } from "../../../../components/Typography/Typography.es.js";
|
|
5
|
+
import { Icon as a } from "../../../../components/Icon/Icon.es.js";
|
|
6
|
+
import { EIconName as s } from "../../../../components/Icon/constants.es.js";
|
|
7
|
+
const h = ({ description: e }) => /* @__PURE__ */ m("div", { className: o.rowDescriptionContainer, children: [
|
|
8
|
+
/* @__PURE__ */ r(
|
|
9
|
+
t,
|
|
10
|
+
{
|
|
11
|
+
as: "p",
|
|
12
|
+
defaultVariant: "bodyMd",
|
|
13
|
+
mobileVariant: "bodySm",
|
|
14
|
+
className: i(o.featuredDescription, o.hideMobile),
|
|
15
|
+
children: e
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ r(a, { name: s.DOT, className: i(o.dot, o.hideDesktop) })
|
|
19
|
+
] });
|
|
20
|
+
export {
|
|
21
|
+
h as ComparisonV2Description
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ComparisonV2Description } from './ComparisonV2Description';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),o=require("../../../../src/modules/ComparisonV2/comparisonV2.module.css"),h=require("../../../../utils/cn/cn.cjs.js"),l=require("../../../../components/Typography/Typography.cjs.js"),s=require("../../../../components/Icon/Icon.cjs.js"),c=require("../../../../components/Icon/constants.cjs.js"),y=({title:p,description:m,onClose:n,isOpening:u,isClosing:d})=>{const t=a.useRef(null);return a.useEffect(()=>{const i=r=>{r.stopPropagation(),t.current&&!t.current.contains(r.target)&&n()};return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[n]),e.jsxs("div",{className:h.cn(o.tooltip,u&&o.tooltipOpening,d&&o.tooltipClosing),ref:t,children:[e.jsxs("div",{className:o.tooltipHeader,children:[e.jsx(l.Typography,{as:"h4",defaultVariant:"headingSm",mobileVariant:"headingXs",className:o.tooltipTitle,children:p}),e.jsxs("button",{className:o.closeButtonWrapper,onClick:n,children:[e.jsx(s.Icon,{name:c.EIconName.BRACKET_LEFT}),e.jsx(s.Icon,{className:o.closeIcon,name:c.EIconName.CLOSE}),e.jsx(s.Icon,{name:c.EIconName.BRACKET_RIGHT})]})]}),e.jsx(l.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:o.tooltipDescription,children:m})]})};exports.ComparisonV2Tooltip=y;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ComparisonV2Tooltip: ({ title, description, onClose, isOpening, isClosing, }: {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
onClose: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
isOpening: boolean;
|
|
6
|
+
isClosing: boolean;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f, useEffect as h } from "react";
|
|
3
|
+
import o from "../../../../modules/ComparisonV2/comparisonV2.module.css";
|
|
4
|
+
import { cn as E } from "../../../../utils/cn/cn.es.js";
|
|
5
|
+
import { Typography as l } from "../../../../components/Typography/Typography.es.js";
|
|
6
|
+
import { Icon as n } from "../../../../components/Icon/Icon.es.js";
|
|
7
|
+
import { EIconName as a } from "../../../../components/Icon/constants.es.js";
|
|
8
|
+
const V = ({
|
|
9
|
+
title: c,
|
|
10
|
+
description: p,
|
|
11
|
+
onClose: e,
|
|
12
|
+
isOpening: d,
|
|
13
|
+
isClosing: u
|
|
14
|
+
}) => {
|
|
15
|
+
const i = f(null);
|
|
16
|
+
return h(() => {
|
|
17
|
+
const s = (m) => {
|
|
18
|
+
m.stopPropagation(), i.current && !i.current.contains(m.target) && e();
|
|
19
|
+
};
|
|
20
|
+
return document.addEventListener("mousedown", s), () => {
|
|
21
|
+
document.removeEventListener("mousedown", s);
|
|
22
|
+
};
|
|
23
|
+
}, [e]), /* @__PURE__ */ r(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: E(o.tooltip, d && o.tooltipOpening, u && o.tooltipClosing),
|
|
27
|
+
ref: i,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ r("div", { className: o.tooltipHeader, children: [
|
|
30
|
+
/* @__PURE__ */ t(
|
|
31
|
+
l,
|
|
32
|
+
{
|
|
33
|
+
as: "h4",
|
|
34
|
+
defaultVariant: "headingSm",
|
|
35
|
+
mobileVariant: "headingXs",
|
|
36
|
+
className: o.tooltipTitle,
|
|
37
|
+
children: c
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ r("button", { className: o.closeButtonWrapper, onClick: e, children: [
|
|
41
|
+
/* @__PURE__ */ t(n, { name: a.BRACKET_LEFT }),
|
|
42
|
+
/* @__PURE__ */ t(n, { className: o.closeIcon, name: a.CLOSE }),
|
|
43
|
+
/* @__PURE__ */ t(n, { name: a.BRACKET_RIGHT })
|
|
44
|
+
] })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ t(l, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", className: o.tooltipDescription, children: p })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
V as ComparisonV2Tooltip
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ComparisonV2Tooltip } from './ComparisonV2Tooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("swiper/modules"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("swiper/modules"),a=require("swiper/react"),_=require("../../utils/useSwiper/useSwiper.cjs.js"),s=require("../../src/modules/Highlight/highlight.module.css");;/* empty css */;/* empty css */const c=require("../../components/Typography/Typography.cjs.js"),d=require("../../components/HighlightCard/HighlightCard.cjs.js"),q=require("../../components/ProgressButton/ProgressButton.cjs.js"),P=[v.Navigation],k=({title:r,subtitle:t,highlightCards:n})=>{const h=_.useSwiper(),o=n.length===3,g=n.length>3,{isEnd:p,isBeginning:m,hideNav:u,handleSlideChange:w,handlePrevClick:S,handleNextClick:x,onSwiperInit:y,handleSwiperResize:j,handleReachEnd:N,handleReachBeginning:b}=h;return e.jsx("section",{className:s.root,children:e.jsxs("div",{className:s.container,children:[(r||t)&&e.jsxs("div",{className:s.textContent,children:[r&&e.jsx(c.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingLg",className:s.title,children:r}),t&&e.jsx(c.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodyMd",className:s.subtitle,children:t})]}),o&&e.jsx("div",{className:s.cardGrid,children:n.map((i,l)=>e.jsx("div",{className:s.cardGridItem,children:e.jsx(d.HighlightCard,{image:i.image,eyebrow:i.eyebrow,title:i.title,description:i.description,link:i.link,colorScheme:i.colorScheme})},`${i.title}_${l}`))}),!o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s.carouselArea,children:e.jsx(a.Swiper,{onSwiper:y,onResize:j,onSlideChange:w,onReachEnd:N,onReachBeginning:b,modules:P,spaceBetween:16,slidesPerView:3,breakpoints:{0:{slidesPerView:1},769:{slidesPerView:2},1201:{slidesPerView:3}},className:s.swiper,children:n.map((i,l)=>e.jsx(a.SwiperSlide,{className:s.swiperSlide,children:e.jsx(d.HighlightCard,{image:i.image,eyebrow:i.eyebrow,title:i.title,description:i.description,link:i.link,colorScheme:i.colorScheme})},`${i.title}_${l}`))})}),g&&!u&&e.jsx("div",{className:s.navigation,children:e.jsx(q.ProgressButton,{left:{disabled:m,onClick:S},right:{disabled:p,onClick:x}})})]})]})})};exports.Highlight=k;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as i, jsxs as
|
|
2
|
+
import { jsx as i, jsxs as t, Fragment as V } from "react/jsx-runtime";
|
|
3
3
|
import { Navigation as u } from "swiper/modules";
|
|
4
4
|
import { Swiper as P, SwiperSlide as R } from "swiper/react";
|
|
5
5
|
import { useSwiper as x } from "../../utils/useSwiper/useSwiper.es.js";
|
|
6
6
|
import n from "../../modules/Highlight/highlight.module.css";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { Typography as
|
|
9
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
10
10
|
import { HighlightCard as m } from "../../components/HighlightCard/HighlightCard.es.js";
|
|
11
11
|
import { ProgressButton as E } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
12
|
-
const B = [u], T = ({ title: l, subtitle: r, highlightCards:
|
|
13
|
-
const
|
|
14
|
-
isEnd:
|
|
12
|
+
const B = [u], T = ({ title: l, subtitle: r, highlightCards: o }) => {
|
|
13
|
+
const d = x(), a = o.length === 3, h = o.length > 3, {
|
|
14
|
+
isEnd: p,
|
|
15
15
|
isBeginning: g,
|
|
16
16
|
hideNav: w,
|
|
17
|
-
handleSlideChange:
|
|
18
|
-
handlePrevClick:
|
|
17
|
+
handleSlideChange: S,
|
|
18
|
+
handlePrevClick: N,
|
|
19
19
|
handleNextClick: f,
|
|
20
20
|
onSwiperInit: v,
|
|
21
21
|
handleSwiperResize: y,
|
|
22
22
|
handleReachEnd: b,
|
|
23
23
|
handleReachBeginning: k
|
|
24
|
-
} =
|
|
25
|
-
return /* @__PURE__ */ i("section", { className: n.root, children: /* @__PURE__ */
|
|
26
|
-
(l || r) && /* @__PURE__ */
|
|
24
|
+
} = d;
|
|
25
|
+
return /* @__PURE__ */ i("section", { className: n.root, children: /* @__PURE__ */ t("div", { className: n.container, children: [
|
|
26
|
+
(l || r) && /* @__PURE__ */ t("div", { className: n.textContent, children: [
|
|
27
27
|
l && /* @__PURE__ */ i(
|
|
28
|
-
|
|
28
|
+
c,
|
|
29
29
|
{
|
|
30
30
|
as: "h2",
|
|
31
31
|
defaultVariant: "displayMd",
|
|
@@ -35,7 +35,7 @@ const B = [u], T = ({ title: l, subtitle: r, highlightCards: s }) => {
|
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
37
|
r && /* @__PURE__ */ i(
|
|
38
|
-
|
|
38
|
+
c,
|
|
39
39
|
{
|
|
40
40
|
as: "p",
|
|
41
41
|
defaultVariant: "bodyLg",
|
|
@@ -45,23 +45,24 @@ const B = [u], T = ({ title: l, subtitle: r, highlightCards: s }) => {
|
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
] }),
|
|
48
|
-
|
|
48
|
+
a && /* @__PURE__ */ i("div", { className: n.cardGrid, children: o.map((e, s) => /* @__PURE__ */ i("div", { className: n.cardGridItem, children: /* @__PURE__ */ i(
|
|
49
49
|
m,
|
|
50
50
|
{
|
|
51
51
|
image: e.image,
|
|
52
52
|
eyebrow: e.eyebrow,
|
|
53
53
|
title: e.title,
|
|
54
54
|
description: e.description,
|
|
55
|
-
link: e.link
|
|
55
|
+
link: e.link,
|
|
56
|
+
colorScheme: e.colorScheme
|
|
56
57
|
}
|
|
57
|
-
) }, `${e.title}_${
|
|
58
|
-
!
|
|
58
|
+
) }, `${e.title}_${s}`)) }),
|
|
59
|
+
!a && /* @__PURE__ */ t(V, { children: [
|
|
59
60
|
/* @__PURE__ */ i("div", { className: n.carouselArea, children: /* @__PURE__ */ i(
|
|
60
61
|
P,
|
|
61
62
|
{
|
|
62
63
|
onSwiper: v,
|
|
63
64
|
onResize: y,
|
|
64
|
-
onSlideChange:
|
|
65
|
+
onSlideChange: S,
|
|
65
66
|
onReachEnd: b,
|
|
66
67
|
onReachBeginning: k,
|
|
67
68
|
modules: B,
|
|
@@ -79,27 +80,28 @@ const B = [u], T = ({ title: l, subtitle: r, highlightCards: s }) => {
|
|
|
79
80
|
}
|
|
80
81
|
},
|
|
81
82
|
className: n.swiper,
|
|
82
|
-
children:
|
|
83
|
+
children: o.map((e, s) => /* @__PURE__ */ i(R, { className: n.swiperSlide, children: /* @__PURE__ */ i(
|
|
83
84
|
m,
|
|
84
85
|
{
|
|
85
86
|
image: e.image,
|
|
86
87
|
eyebrow: e.eyebrow,
|
|
87
88
|
title: e.title,
|
|
88
89
|
description: e.description,
|
|
89
|
-
link: e.link
|
|
90
|
+
link: e.link,
|
|
91
|
+
colorScheme: e.colorScheme
|
|
90
92
|
}
|
|
91
|
-
) }, `${e.title}_${
|
|
93
|
+
) }, `${e.title}_${s}`))
|
|
92
94
|
}
|
|
93
95
|
) }),
|
|
94
|
-
|
|
96
|
+
h && !w && /* @__PURE__ */ i("div", { className: n.navigation, children: /* @__PURE__ */ i(
|
|
95
97
|
E,
|
|
96
98
|
{
|
|
97
99
|
left: {
|
|
98
100
|
disabled: g,
|
|
99
|
-
onClick:
|
|
101
|
+
onClick: N
|
|
100
102
|
},
|
|
101
103
|
right: {
|
|
102
|
-
disabled:
|
|
104
|
+
disabled: p,
|
|
103
105
|
onClick: f
|
|
104
106
|
}
|
|
105
107
|
}
|
|
@@ -74,16 +74,17 @@
|
|
|
74
74
|
width: 100%;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
@media (min-width: 900px) and (max-width: 1200px) {
|
|
78
|
+
.cardGridItem {
|
|
79
|
+
max-width: 290px;
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
77
83
|
@media (min-width: 769px) and (max-width: 1200px) {
|
|
78
84
|
.cardGrid {
|
|
79
85
|
max-width: 100%;
|
|
80
86
|
}
|
|
81
87
|
|
|
82
|
-
.cardGridItem {
|
|
83
|
-
max-width: 335px;
|
|
84
|
-
width: 100%;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
88
|
.title {
|
|
88
89
|
font-size: 56px;
|
|
89
90
|
letter-spacing: -2.24px;
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
|
|
102
|
-
@media (max-width:
|
|
103
|
+
@media (max-width: 900px) {
|
|
103
104
|
.cardGrid {
|
|
104
105
|
flex-direction: column;
|
|
105
106
|
align-items: center;
|
|
@@ -109,6 +110,7 @@
|
|
|
109
110
|
@media (max-width: 768px) {
|
|
110
111
|
.cardGridItem {
|
|
111
112
|
max-width: 335px;
|
|
113
|
+
min-width: 250px;
|
|
112
114
|
width: 100%;
|
|
113
115
|
}
|
|
114
116
|
.container {
|
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.30",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -341,11 +341,21 @@
|
|
|
341
341
|
"import": "./dist/modules/Comparison/Comparison.es.js",
|
|
342
342
|
"require": "./dist/modules/Comparison/Comparison.cjs.js"
|
|
343
343
|
},
|
|
344
|
+
"./ComparisonV2": {
|
|
345
|
+
"types": "./dist/modules/ComparisonV2/ComparisonV2.d.ts",
|
|
346
|
+
"import": "./dist/modules/ComparisonV2/ComparisonV2.es.js",
|
|
347
|
+
"require": "./dist/modules/ComparisonV2/ComparisonV2.cjs.js"
|
|
348
|
+
},
|
|
344
349
|
"./CircleHighlights": {
|
|
345
350
|
"types": "./dist/modules/CircleHighlights/CircleHighlights.d.ts",
|
|
346
351
|
"import": "./dist/modules/CircleHighlights/CircleHighlights.es.js",
|
|
347
352
|
"require": "./dist/modules/CircleHighlights/CircleHighlights.cjs.js"
|
|
348
353
|
},
|
|
354
|
+
"./Citation": {
|
|
355
|
+
"types": "./dist/modules/Citation/Citation.d.ts",
|
|
356
|
+
"import": "./dist/modules/Citation/Citation.es.js",
|
|
357
|
+
"require": "./dist/modules/Citation/Citation.cjs.js"
|
|
358
|
+
},
|
|
349
359
|
"./FeaturedIn": {
|
|
350
360
|
"types": "./dist/modules/FeaturedIn/FeaturedIn.d.ts",
|
|
351
361
|
"import": "./dist/modules/FeaturedIn/FeaturedIn.es.js",
|