@zenpatient-org/healthspan-marketing-ui 0.2.53 → 0.2.55
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/Button/Button.d.ts +1 -1
- package/dist/modules/HomepageHeroV2/HomepageHeroV2.cjs.js +1 -1
- package/dist/modules/HomepageHeroV2/HomepageHeroV2.es.js +16 -7
- package/dist/modules/HomepageHeroV2/homepageHeroV2.module.css +13 -0
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.cjs.js +1 -1
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.d.ts +3 -1
- package/dist/modules/ImageWithBenefits/ImageWithBenefits.es.js +23 -20
- package/dist/modules/ImageWithBenefits/imageWithBenefits.module.css +12 -0
- package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
- package/dist/modules/ImageWithText/ImageWithText.d.ts +1 -1
- package/dist/modules/ImageWithText/ImageWithText.es.js +44 -37
- package/dist/modules/ImageWithText/components/ButtonWithColors/ButtonWithColors.cjs.js +1 -0
- package/dist/modules/ImageWithText/components/ButtonWithColors/ButtonWithColors.d.ts +3 -0
- package/dist/modules/ImageWithText/components/ButtonWithColors/ButtonWithColors.es.js +10 -0
- package/dist/modules/ImageWithText/components/ButtonWithColors/buttonWithColors.module.css +32 -0
- package/dist/modules/ImageWithText/components/ButtonWithColors/index.d.ts +1 -0
- package/dist/modules/ImageWithText/imageWithText.module.css +14 -7
- package/dist/modules/ImageWithText/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { default as React, ElementType, ButtonHTMLAttributes, AnchorHTMLAttribut
|
|
|
2
2
|
import { EIconName } from '../Icon';
|
|
3
3
|
import { TAnalyticsEvent } from '../../types/analytics';
|
|
4
4
|
|
|
5
|
-
type ButtonVariant = 'primary' | 'primary-invert' | 'secondary' | 'muted' | 'muted-invert' | 'ghost';
|
|
5
|
+
export type ButtonVariant = 'primary' | 'primary-invert' | 'secondary' | 'muted' | 'muted-invert' | 'ghost';
|
|
6
6
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
7
7
|
interface BaseButtonProps {
|
|
8
8
|
variant?: ButtonVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../pageComponents/HomepageHero/components/MiddleCarousel/MiddleCarousel.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../pageComponents/HomepageHero/components/MiddleCarousel/MiddleCarousel.cjs.js"),i=require("../../components/Button/Button.cjs.js"),s=require("../../src/modules/HomepageHeroV2/homepageHeroV2.module.css"),l=require("../../components/Icon/Icon.cjs.js"),d=require("../../components/Icon/constants.cjs.js"),n=require("../../components/Typography/Typography.cjs.js");function m({title:t,description:o,button:r,buttonInverted:a}){return e.jsx("section",{className:s.root,"data-type":"hero",children:e.jsxs("div",{className:s.container,children:[e.jsxs("div",{className:s.textContent,children:[e.jsxs("div",{className:s.hsaContainer,children:[e.jsx(l.Icon,{name:d.EIconName.CIRCLE_CHECK,className:s.checkIcon}),e.jsx(n.Typography,{className:s.hsaText,as:"p",defaultVariant:"bodySm",children:"HSA/FSA Eligible"})]}),e.jsx("div",{className:s.titleWrapper,children:e.jsx(n.Typography,{className:s.title,as:"h2",defaultVariant:"displayXs",mobileVariant:"headingLg",children:t})}),e.jsx(n.Typography,{className:s.description,as:"p",defaultVariant:"bodySm",mobileVariant:"bodyXs",children:o}),e.jsxs("div",{className:s.buttonContainer,children:[e.jsx(i.Button,{as:"a",href:r.link,variant:"secondary",size:"md",children:r.text}),a&&e.jsx(i.Button,{as:"a",href:a.link,variant:"muted-invert",size:"md",children:a.text})]})]}),e.jsx("div",{className:s.carouselArea,children:e.jsx(c.MiddleCarousel,{})})]})})}exports.HomepageHeroV2=m;
|
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { MiddleCarousel as m } from "../../pageComponents/HomepageHero/components/MiddleCarousel/MiddleCarousel.es.js";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as l } from "../../components/Button/Button.es.js";
|
|
4
4
|
import a from "../../modules/HomepageHeroV2/homepageHeroV2.module.css";
|
|
5
5
|
import { Icon as c } from "../../components/Icon/Icon.es.js";
|
|
6
6
|
import { EIconName as d } from "../../components/Icon/constants.es.js";
|
|
7
7
|
import { Typography as s } from "../../components/Typography/Typography.es.js";
|
|
8
|
-
function
|
|
8
|
+
function v({ title: n, description: o, button: t, buttonInverted: r }) {
|
|
9
9
|
return /* @__PURE__ */ e("section", { className: a.root, "data-type": "hero", children: /* @__PURE__ */ i("div", { className: a.container, children: [
|
|
10
10
|
/* @__PURE__ */ i("div", { className: a.textContent, children: [
|
|
11
11
|
/* @__PURE__ */ i("div", { className: a.hsaContainer, children: [
|
|
12
12
|
/* @__PURE__ */ e(c, { name: d.CIRCLE_CHECK, className: a.checkIcon }),
|
|
13
13
|
/* @__PURE__ */ e(s, { className: a.hsaText, as: "p", defaultVariant: "bodySm", children: "HSA/FSA Eligible" })
|
|
14
14
|
] }),
|
|
15
|
-
/* @__PURE__ */ e(
|
|
16
|
-
|
|
15
|
+
/* @__PURE__ */ e("div", { className: a.titleWrapper, children: /* @__PURE__ */ e(
|
|
16
|
+
s,
|
|
17
|
+
{
|
|
18
|
+
className: a.title,
|
|
19
|
+
as: "h2",
|
|
20
|
+
defaultVariant: "displayXs",
|
|
21
|
+
mobileVariant: "headingLg",
|
|
22
|
+
children: n
|
|
23
|
+
}
|
|
24
|
+
) }),
|
|
25
|
+
/* @__PURE__ */ e(s, { className: a.description, as: "p", defaultVariant: "bodySm", mobileVariant: "bodyXs", children: o }),
|
|
17
26
|
/* @__PURE__ */ i("div", { className: a.buttonContainer, children: [
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
r && /* @__PURE__ */ e(
|
|
27
|
+
/* @__PURE__ */ e(l, { as: "a", href: t.link, variant: "secondary", size: "md", children: t.text }),
|
|
28
|
+
r && /* @__PURE__ */ e(l, { as: "a", href: r.link, variant: "muted-invert", size: "md", children: r.text })
|
|
20
29
|
] })
|
|
21
30
|
] }),
|
|
22
31
|
/* @__PURE__ */ e("div", { className: a.carouselArea, children: /* @__PURE__ */ e(m, {}) })
|
|
23
32
|
] }) });
|
|
24
33
|
}
|
|
25
34
|
export {
|
|
26
|
-
|
|
35
|
+
v as HomepageHeroV2
|
|
27
36
|
};
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
left: 50%;
|
|
65
65
|
transform: translateX(30px);
|
|
66
66
|
overflow: visible;
|
|
67
|
+
pointer-events: none;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
@media (width <= 1150px) {
|
|
@@ -108,6 +109,18 @@
|
|
|
108
109
|
margin: unset;
|
|
109
110
|
margin-top: 221px;
|
|
110
111
|
padding: 32px 24px;
|
|
112
|
+
max-width: unset;
|
|
113
|
+
min-width: 367px;
|
|
114
|
+
width: 100%;
|
|
115
|
+
background: linear-gradient(180deg, rgba(13, 12, 17, 0) 0%, #0d0c11 75%);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.titleWrapper {
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.title {
|
|
111
124
|
max-width: 510px;
|
|
112
125
|
}
|
|
113
126
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/ImageWithBenefits/imageWithBenefits.module.css"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/ImageWithBenefits/imageWithBenefits.module.css"),s=require("../../components/Typography/Typography.cjs.js"),p=require("../../components/TypeBadge/TypeBadge.cjs.js"),b=require("../ImageWithText/components/ButtonWithColors/ButtonWithColors.cjs.js"),x=({image:o,label:i,title:l,benefits:r,benefitsColor:n,mobileLabelColor:c,mobileTitleColor:d,mobileBenefitsColor:m,mobileImage:g,button:h})=>e.jsx("section",{className:a.root,children:e.jsxs("div",{className:a.container,children:[e.jsxs("div",{className:a.imageContainer,children:[e.jsx("img",{src:o,alt:"background image",className:a.image}),e.jsx("img",{src:g||o,alt:"mobile background image",className:a.mobileImage})]}),e.jsxs("div",{className:a.content,"data-label-color":i.color,"data-mobile-label-color":c,"data-title-color":l.color,"data-mobile-title-color":d,"data-benefits-color":n,"data-mobile-benefits-color":m,children:[e.jsx(s.Typography,{as:"p",defaultVariant:"labelXs",emphasis:!0,className:a.label,children:i.text}),e.jsx(s.Typography,{as:"h2",defaultVariant:"headingXl",mobileVariant:"headingMd",className:a.title,children:l.text}),e.jsx("div",{className:a.benefitContainer,children:r.map(t=>e.jsxs("div",{className:a.benefitItem,children:[e.jsx(p.TypeBadge,{type:t.badge}),e.jsx(s.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodyMd",className:a.benefitText,children:t.text})]},t.text))}),e.jsx(b.ButtonWithColors,{...h})]})]})});exports.ImageWithBenefits=x;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ETypeBadge } from '../../components/TypeBadge';
|
|
2
|
+
import { TButtonWithColors } from '../ImageWithText/types';
|
|
2
3
|
|
|
3
4
|
type TColor = 'black' | 'white' | 'solar' | 'indigo';
|
|
4
5
|
export type ImageWithBenefitsProps = {
|
|
@@ -20,6 +21,7 @@ export type ImageWithBenefitsProps = {
|
|
|
20
21
|
mobileTitleColor?: TColor;
|
|
21
22
|
mobileBenefitsColor?: TColor;
|
|
22
23
|
mobileImage?: string;
|
|
24
|
+
button?: TButtonWithColors;
|
|
23
25
|
};
|
|
24
|
-
export declare const ImageWithBenefits: ({ image, label, title, benefits, benefitsColor, mobileLabelColor, mobileTitleColor, mobileBenefitsColor, mobileImage, }: ImageWithBenefitsProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const ImageWithBenefits: ({ image, label, title, benefits, benefitsColor, mobileLabelColor, mobileTitleColor, mobileBenefitsColor, mobileImage, button, }: ImageWithBenefitsProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
27
|
export {};
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import a from "../../modules/ImageWithBenefits/imageWithBenefits.module.css";
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { TypeBadge as
|
|
5
|
-
|
|
3
|
+
import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { TypeBadge as p } from "../../components/TypeBadge/TypeBadge.es.js";
|
|
5
|
+
import { ButtonWithColors as f } from "../ImageWithText/components/ButtonWithColors/ButtonWithColors.es.js";
|
|
6
|
+
const V = ({
|
|
6
7
|
image: o,
|
|
7
8
|
label: r,
|
|
8
9
|
title: s,
|
|
9
|
-
benefits:
|
|
10
|
-
benefitsColor:
|
|
11
|
-
mobileLabelColor:
|
|
12
|
-
mobileTitleColor:
|
|
10
|
+
benefits: m,
|
|
11
|
+
benefitsColor: c,
|
|
12
|
+
mobileLabelColor: n,
|
|
13
|
+
mobileTitleColor: d,
|
|
13
14
|
mobileBenefitsColor: b,
|
|
14
|
-
mobileImage:
|
|
15
|
+
mobileImage: h,
|
|
16
|
+
button: g
|
|
15
17
|
}) => /* @__PURE__ */ e("section", { className: a.root, children: /* @__PURE__ */ t("div", { className: a.container, children: [
|
|
16
18
|
/* @__PURE__ */ t("div", { className: a.imageContainer, children: [
|
|
17
19
|
/* @__PURE__ */ e("img", { src: o, alt: "background image", className: a.image }),
|
|
18
|
-
/* @__PURE__ */ e("img", { src:
|
|
20
|
+
/* @__PURE__ */ e("img", { src: h || o, alt: "mobile background image", className: a.mobileImage })
|
|
19
21
|
] }),
|
|
20
22
|
/* @__PURE__ */ t(
|
|
21
23
|
"div",
|
|
22
24
|
{
|
|
23
25
|
className: a.content,
|
|
24
26
|
"data-label-color": r.color,
|
|
25
|
-
"data-mobile-label-color":
|
|
27
|
+
"data-mobile-label-color": n,
|
|
26
28
|
"data-title-color": s.color,
|
|
27
|
-
"data-mobile-title-color":
|
|
28
|
-
"data-benefits-color":
|
|
29
|
+
"data-mobile-title-color": d,
|
|
30
|
+
"data-benefits-color": c,
|
|
29
31
|
"data-mobile-benefits-color": b,
|
|
30
32
|
children: [
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ e("div", { className: a.benefitContainer, children:
|
|
34
|
-
/* @__PURE__ */ e(
|
|
33
|
+
/* @__PURE__ */ e(l, { as: "p", defaultVariant: "labelXs", emphasis: !0, className: a.label, children: r.text }),
|
|
34
|
+
/* @__PURE__ */ e(l, { as: "h2", defaultVariant: "headingXl", mobileVariant: "headingMd", className: a.title, children: s.text }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: a.benefitContainer, children: m.map((i) => /* @__PURE__ */ t("div", { className: a.benefitItem, children: [
|
|
36
|
+
/* @__PURE__ */ e(p, { type: i.badge }),
|
|
35
37
|
/* @__PURE__ */ e(
|
|
36
|
-
|
|
38
|
+
l,
|
|
37
39
|
{
|
|
38
40
|
as: "p",
|
|
39
41
|
defaultVariant: "bodyLg",
|
|
40
42
|
mobileVariant: "bodyMd",
|
|
41
43
|
className: a.benefitText,
|
|
42
|
-
children:
|
|
44
|
+
children: i.text
|
|
43
45
|
}
|
|
44
46
|
)
|
|
45
|
-
] },
|
|
47
|
+
] }, i.text)) }),
|
|
48
|
+
/* @__PURE__ */ e(f, { ...g })
|
|
46
49
|
]
|
|
47
50
|
}
|
|
48
51
|
)
|
|
49
52
|
] }) });
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
V as ImageWithBenefits
|
|
52
55
|
};
|
|
@@ -120,6 +120,18 @@
|
|
|
120
120
|
color: var(--color-text-primary-brand-indigo);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
@media (width <= 1024px) and (width >= 820px) {
|
|
124
|
+
.content {
|
|
125
|
+
padding: 60px 40px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (width < 820px) and (width >= 768px) {
|
|
130
|
+
.content {
|
|
131
|
+
padding: 32px 48px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
123
135
|
@media (width <= 768px) {
|
|
124
136
|
.container {
|
|
125
137
|
padding: 40px 20px 40px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),j=require("../../utils/cn/cn.cjs.js"),n=require("./constants.cjs.js"),i=require("../../src/modules/ImageWithText/imageWithText.module.css"),b=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),l=require("../../components/Typography/Typography.cjs.js"),m=require("./components/ButtonWithColors/ButtonWithColors.cjs.js"),T=({image:g,text:t,title:s,view:e,colorScheme:u,textColor:p,mobileTextColor:x,titleColor:c,mobileTitleColor:o,titleHighlightColor:r,mobileTitleHighlightColor:h,mobileImage:y,button:d})=>a.jsx("section",{className:i.root,"data-scheme":u,children:a.jsxs("div",{className:i.container,"data-view":e,children:[a.jsxs("div",{className:i.imageContainer,children:[a.jsx("img",{src:g,alt:"background image",className:i.image,"data-color":p}),a.jsx("img",{src:y||g,alt:"mobile background image",className:i.mobileImage})]}),a.jsxs("div",{className:j.cn(i.content,{[i.textAlignLeft]:e==="plain"||e==="plain_with_title",[i.textAlignRight]:e==="complex"}),"data-view":e,"data-text-color":p,"data-mobile-text-color":x,"data-title-color":c,"data-mobile-title-color":o,"data-title-highlight-color":r,"data-mobile-title-highlight-color":h,children:[e==="complex"&&a.jsxs("div",{className:i.richTextContainer,style:{"--highlight-color-custom":n.COLORS[c||"white"],"--highlight-emphasize-custom":n.COLORS[r||"white"],"--highlight-color-custom-mobile":n.COLORS[o||"white"],"--highlight-emphasize-custom-mobile":n.COLORS[h||"white"]},children:[s&&a.jsx(b.HighlightedTitle,{colorScheme:c||r||o||h?"custom":"dark",title:s,defaultVariant:"displayXs",mobileVariant:"headingLg"}),t&&a.jsx(l.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",children:t}),a.jsx(m.ButtonWithColors,{...d})]}),e==="plain"&&t&&a.jsxs("div",{className:i.textContainer,children:[a.jsx(l.Typography,{defaultVariant:"displayXs",mobileVariant:"headingXs",children:t}),a.jsx(m.ButtonWithColors,{...d})]}),e==="plain_with_title"&&a.jsxs("div",{className:i.plainWithTitleContainer,children:[s&&a.jsx(l.Typography,{defaultVariant:"displayMd",mobileVariant:"headingLg",className:i.titleOfPlainWithTitle,children:s}),t&&a.jsx(l.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodyMd",className:i.textOfPlainWithTitle,children:t}),a.jsx(m.ButtonWithColors,{...d})]})]})]})});exports.ImageWithText=T;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TImageWithTextProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const ImageWithText: ({ image, text, title, view, colorScheme, textColor, mobileTextColor, titleColor, mobileTitleColor, titleHighlightColor, mobileTitleHighlightColor, mobileImage, }: TImageWithTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ImageWithText: ({ image, text, title, view, colorScheme, textColor, mobileTextColor, titleColor, mobileTitleColor, titleHighlightColor, mobileTitleHighlightColor, mobileImage, button, }: TImageWithTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { cn as
|
|
3
|
-
import { COLORS as
|
|
2
|
+
import { cn as N } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { COLORS as m } from "./constants.es.js";
|
|
4
4
|
import a from "../../modules/ImageWithText/imageWithText.module.css";
|
|
5
|
-
import { HighlightedTitle as
|
|
6
|
-
import { Typography as
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { HighlightedTitle as V } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
6
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
7
|
+
import { ButtonWithColors as g } from "./components/ButtonWithColors/ButtonWithColors.es.js";
|
|
8
|
+
const S = ({
|
|
9
|
+
image: p,
|
|
9
10
|
text: e,
|
|
10
|
-
title:
|
|
11
|
+
title: r,
|
|
11
12
|
view: t,
|
|
12
|
-
colorScheme:
|
|
13
|
-
textColor:
|
|
14
|
-
mobileTextColor:
|
|
15
|
-
titleColor:
|
|
16
|
-
mobileTitleColor:
|
|
13
|
+
colorScheme: b,
|
|
14
|
+
textColor: f,
|
|
15
|
+
mobileTextColor: u,
|
|
16
|
+
titleColor: d,
|
|
17
|
+
mobileTitleColor: n,
|
|
17
18
|
titleHighlightColor: o,
|
|
18
19
|
mobileTitleHighlightColor: s,
|
|
19
|
-
mobileImage:
|
|
20
|
-
|
|
20
|
+
mobileImage: y,
|
|
21
|
+
button: h
|
|
22
|
+
}) => /* @__PURE__ */ i("section", { className: a.root, "data-scheme": b, children: /* @__PURE__ */ l("div", { className: a.container, "data-view": t, children: [
|
|
21
23
|
/* @__PURE__ */ l("div", { className: a.imageContainer, children: [
|
|
22
|
-
/* @__PURE__ */ i("img", { src:
|
|
23
|
-
/* @__PURE__ */ i("img", { src:
|
|
24
|
+
/* @__PURE__ */ i("img", { src: p, alt: "background image", className: a.image, "data-color": f }),
|
|
25
|
+
/* @__PURE__ */ i("img", { src: y || p, alt: "mobile background image", className: a.mobileImage })
|
|
24
26
|
] }),
|
|
25
27
|
/* @__PURE__ */ l(
|
|
26
28
|
"div",
|
|
27
29
|
{
|
|
28
|
-
className:
|
|
30
|
+
className: N(a.content, {
|
|
29
31
|
[a.textAlignLeft]: t === "plain" || t === "plain_with_title",
|
|
30
32
|
[a.textAlignRight]: t === "complex"
|
|
31
33
|
}),
|
|
32
34
|
"data-view": t,
|
|
33
|
-
"data-text-color":
|
|
34
|
-
"data-mobile-text-color":
|
|
35
|
-
"data-title-color":
|
|
36
|
-
"data-mobile-title-color":
|
|
35
|
+
"data-text-color": f,
|
|
36
|
+
"data-mobile-text-color": u,
|
|
37
|
+
"data-title-color": d,
|
|
38
|
+
"data-mobile-title-color": n,
|
|
37
39
|
"data-title-highlight-color": o,
|
|
38
40
|
"data-mobile-title-highlight-color": s,
|
|
39
41
|
children: [
|
|
@@ -42,50 +44,55 @@ const W = ({
|
|
|
42
44
|
{
|
|
43
45
|
className: a.richTextContainer,
|
|
44
46
|
style: {
|
|
45
|
-
"--highlight-color-custom":
|
|
46
|
-
"--highlight-emphasize-custom":
|
|
47
|
-
"--highlight-color-custom-mobile": n
|
|
48
|
-
"--highlight-emphasize-custom-mobile":
|
|
47
|
+
"--highlight-color-custom": m[d || "white"],
|
|
48
|
+
"--highlight-emphasize-custom": m[o || "white"],
|
|
49
|
+
"--highlight-color-custom-mobile": m[n || "white"],
|
|
50
|
+
"--highlight-emphasize-custom-mobile": m[s || "white"]
|
|
49
51
|
},
|
|
50
52
|
children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
r && /* @__PURE__ */ i(
|
|
54
|
+
V,
|
|
53
55
|
{
|
|
54
|
-
colorScheme:
|
|
55
|
-
title:
|
|
56
|
+
colorScheme: d || o || n || s ? "custom" : "dark",
|
|
57
|
+
title: r,
|
|
56
58
|
defaultVariant: "displayXs",
|
|
57
59
|
mobileVariant: "headingLg"
|
|
58
60
|
}
|
|
59
61
|
),
|
|
60
|
-
e && /* @__PURE__ */ i(
|
|
62
|
+
e && /* @__PURE__ */ i(c, { defaultVariant: "bodyMd", mobileVariant: "bodySm", children: e }),
|
|
63
|
+
/* @__PURE__ */ i(g, { ...h })
|
|
61
64
|
]
|
|
62
65
|
}
|
|
63
66
|
),
|
|
64
|
-
t === "plain" && e && /* @__PURE__ */
|
|
67
|
+
t === "plain" && e && /* @__PURE__ */ l("div", { className: a.textContainer, children: [
|
|
68
|
+
/* @__PURE__ */ i(c, { defaultVariant: "displayXs", mobileVariant: "headingXs", children: e }),
|
|
69
|
+
/* @__PURE__ */ i(g, { ...h })
|
|
70
|
+
] }),
|
|
65
71
|
t === "plain_with_title" && /* @__PURE__ */ l("div", { className: a.plainWithTitleContainer, children: [
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
r && /* @__PURE__ */ i(
|
|
73
|
+
c,
|
|
68
74
|
{
|
|
69
75
|
defaultVariant: "displayMd",
|
|
70
76
|
mobileVariant: "headingLg",
|
|
71
77
|
className: a.titleOfPlainWithTitle,
|
|
72
|
-
children:
|
|
78
|
+
children: r
|
|
73
79
|
}
|
|
74
80
|
),
|
|
75
81
|
e && /* @__PURE__ */ i(
|
|
76
|
-
|
|
82
|
+
c,
|
|
77
83
|
{
|
|
78
84
|
defaultVariant: "bodyMd",
|
|
79
85
|
mobileVariant: "bodyMd",
|
|
80
86
|
className: a.textOfPlainWithTitle,
|
|
81
87
|
children: e
|
|
82
88
|
}
|
|
83
|
-
)
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ i(g, { ...h })
|
|
84
91
|
] })
|
|
85
92
|
]
|
|
86
93
|
}
|
|
87
94
|
)
|
|
88
95
|
] }) });
|
|
89
96
|
export {
|
|
90
|
-
|
|
97
|
+
S as ImageWithText
|
|
91
98
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("../../../../src/modules/ImageWithText/components/ButtonWithColors/buttonWithColors.module.css"),i=require("../../../../components/Button/Button.cjs.js"),s=e=>!e||!e.label||!e.link?null:r.jsxs("div",{className:t.buttonContainer,children:[r.jsx("div",{className:t.desktopButton,children:r.jsx(i.Button,{variant:e.variant||"primary-invert",as:"a",size:"lg",href:e.link||"#",children:e.label||"Get Started"})}),r.jsx("div",{className:t.mobileButton,children:r.jsx(i.Button,{variant:"primary",as:"a",size:"lg",href:e.link||"#",children:e.label||"Get Started"})})]});exports.ButtonWithColors=s;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import i from "../../../../modules/ImageWithText/components/ButtonWithColors/buttonWithColors.module.css";
|
|
3
|
+
import { Button as a } from "../../../../components/Button/Button.es.js";
|
|
4
|
+
const m = (r) => !r || !r.label || !r.link ? null : /* @__PURE__ */ l("div", { className: i.buttonContainer, children: [
|
|
5
|
+
/* @__PURE__ */ e("div", { className: i.desktopButton, children: /* @__PURE__ */ e(a, { variant: r.variant || "primary-invert", as: "a", size: "lg", href: r.link || "#", children: r.label || "Get Started" }) }),
|
|
6
|
+
/* @__PURE__ */ e("div", { className: i.mobileButton, children: /* @__PURE__ */ e(a, { variant: "primary", as: "a", size: "lg", href: r.link || "#", children: r.label || "Get Started" }) })
|
|
7
|
+
] });
|
|
8
|
+
export {
|
|
9
|
+
m as ButtonWithColors
|
|
10
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.buttonContainer {
|
|
2
|
+
margin-top: 32px;
|
|
3
|
+
max-width: fit-content;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.desktopButton {
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mobileButton {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (width <= 1090px) and (width >= 768px) {
|
|
15
|
+
.buttonContainer {
|
|
16
|
+
margin-top: 24px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (width < 768px) {
|
|
21
|
+
.buttonContainer {
|
|
22
|
+
max-width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.desktopButton {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mobileButton {
|
|
30
|
+
display: block;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonWithColors } from './ButtonWithColors';
|
|
@@ -37,15 +37,17 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.textAlignLeft {
|
|
40
|
-
left:
|
|
40
|
+
left: 60px;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.textAlignRight {
|
|
44
|
-
right:
|
|
44
|
+
right: 60px;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.textContainer {
|
|
48
|
-
max-width:
|
|
48
|
+
max-width: 55%;
|
|
49
|
+
text-wrap: pretty;
|
|
50
|
+
font-weight: medium;
|
|
49
51
|
color: var(--color-text-primary-inverted);
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -90,16 +92,21 @@
|
|
|
90
92
|
display: none;
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
@media (width <=
|
|
95
|
+
@media (width <= 1090px) and (width >= 820px) {
|
|
94
96
|
.content {
|
|
95
97
|
padding: 40px;
|
|
96
98
|
}
|
|
99
|
+
.textContainer span {
|
|
100
|
+
font-size: var(--font-size-heading-lg);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
97
103
|
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
@media (width < 820px) and (width >= 768px) {
|
|
105
|
+
.content {
|
|
106
|
+
padding: 40px 20px;
|
|
100
107
|
}
|
|
101
108
|
.textContainer span {
|
|
102
|
-
font-size: var(--font-size-heading-
|
|
109
|
+
font-size: var(--font-size-heading-md);
|
|
103
110
|
}
|
|
104
111
|
}
|
|
105
112
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TColorScheme } from '../../types/common';
|
|
3
|
+
import { ButtonVariant } from '../../components/Button/Button';
|
|
3
4
|
|
|
4
5
|
export type TImageWithTextView = 'plain' | 'complex' | 'plain_with_title';
|
|
6
|
+
export type TButtonWithColors = {
|
|
7
|
+
label?: string;
|
|
8
|
+
link?: string;
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
};
|
|
5
11
|
export type TImageWithTextProps = {
|
|
6
12
|
image: string;
|
|
7
13
|
mobileImage?: string;
|
|
@@ -11,6 +17,7 @@ export type TImageWithTextProps = {
|
|
|
11
17
|
mobileTitleColor?: 'black' | 'white' | 'solar' | 'indigo';
|
|
12
18
|
titleHighlightColor?: 'black' | 'white' | 'solar' | 'indigo';
|
|
13
19
|
mobileTitleHighlightColor?: 'black' | 'white' | 'solar' | 'indigo';
|
|
20
|
+
button?: TButtonWithColors;
|
|
14
21
|
title?: ReactNode;
|
|
15
22
|
text?: ReactNode;
|
|
16
23
|
view: TImageWithTextView;
|