@zenpatient-org/healthspan-marketing-ui 0.2.62 → 0.2.64
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),j=require("../../utils/cn/cn.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),j=require("../../utils/cn/cn.cjs.js"),l=require("./constants.cjs.js"),i=require("../../src/modules/ImageWithText/imageWithText.module.css"),b=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=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":l.COLORS[c||"white"],"--highlight-emphasize-custom":l.COLORS[r||"white"],"--highlight-color-custom-mobile":l.COLORS[o||"white"],"--highlight-emphasize-custom-mobile":l.COLORS[h||"white"]},children:[s&&a.jsx(b.HighlightedTitle,{colorScheme:c||r||o||h?"custom":"dark",className:i.richTextTitle,title:s,as:"div",defaultVariant:"displayXs",mobileVariant:"headingXl"}),t&&a.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:t}),a.jsx(m.ButtonWithColors,{...d})]}),e==="plain"&&t&&a.jsxs("div",{className:i.textContainer,children:[a.jsx(n.Typography,{as:"p",defaultVariant:"headingXl",mobileVariant:"headingXs",className:i.textOfPlain,children:t}),a.jsx(m.ButtonWithColors,{...d})]}),e==="plain_with_title"&&a.jsxs("div",{className:i.plainWithTitleContainer,children:[s&&a.jsx(n.Typography,{as:"h3",defaultVariant:"displaySm",mobileVariant:"headingXl",className:i.titleOfPlainWithTitle,children:s}),t&&a.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodyMd",className:i.textOfPlainWithTitle,children:t}),a.jsx(m.ButtonWithColors,{...d})]})]})]})});exports.ImageWithText=T;
|
|
@@ -1,67 +1,68 @@
|
|
|
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 y } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { COLORS as c } from "./constants.es.js";
|
|
4
4
|
import a from "../../modules/ImageWithText/imageWithText.module.css";
|
|
5
|
-
import { HighlightedTitle as
|
|
5
|
+
import { HighlightedTitle as V } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
6
6
|
import { Typography as r } from "../../components/Typography/Typography.es.js";
|
|
7
|
-
import { ButtonWithColors as
|
|
8
|
-
const
|
|
9
|
-
image:
|
|
7
|
+
import { ButtonWithColors as p } from "./components/ButtonWithColors/ButtonWithColors.es.js";
|
|
8
|
+
const k = ({
|
|
9
|
+
image: g,
|
|
10
10
|
text: t,
|
|
11
|
-
title:
|
|
11
|
+
title: m,
|
|
12
12
|
view: e,
|
|
13
13
|
colorScheme: N,
|
|
14
14
|
textColor: f,
|
|
15
|
-
mobileTextColor:
|
|
16
|
-
titleColor:
|
|
17
|
-
mobileTitleColor:
|
|
18
|
-
titleHighlightColor:
|
|
19
|
-
mobileTitleHighlightColor:
|
|
20
|
-
mobileImage:
|
|
15
|
+
mobileTextColor: b,
|
|
16
|
+
titleColor: s,
|
|
17
|
+
mobileTitleColor: n,
|
|
18
|
+
titleHighlightColor: d,
|
|
19
|
+
mobileTitleHighlightColor: o,
|
|
20
|
+
mobileImage: u,
|
|
21
21
|
button: h
|
|
22
22
|
}) => /* @__PURE__ */ i("section", { className: a.root, "data-scheme": N, children: /* @__PURE__ */ l("div", { className: a.container, "data-view": e, children: [
|
|
23
23
|
/* @__PURE__ */ l("div", { className: a.imageContainer, children: [
|
|
24
|
-
/* @__PURE__ */ i("img", { src:
|
|
25
|
-
/* @__PURE__ */ i("img", { src:
|
|
24
|
+
/* @__PURE__ */ i("img", { src: g, alt: "background image", className: a.image, "data-color": f }),
|
|
25
|
+
/* @__PURE__ */ i("img", { src: u || g, alt: "mobile background image", className: a.mobileImage })
|
|
26
26
|
] }),
|
|
27
27
|
/* @__PURE__ */ l(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: y(a.content, {
|
|
31
31
|
[a.textAlignLeft]: e === "plain" || e === "plain_with_title",
|
|
32
32
|
[a.textAlignRight]: e === "complex"
|
|
33
33
|
}),
|
|
34
34
|
"data-view": e,
|
|
35
35
|
"data-text-color": f,
|
|
36
|
-
"data-mobile-text-color":
|
|
37
|
-
"data-title-color":
|
|
38
|
-
"data-mobile-title-color":
|
|
39
|
-
"data-title-highlight-color":
|
|
40
|
-
"data-mobile-title-highlight-color":
|
|
36
|
+
"data-mobile-text-color": b,
|
|
37
|
+
"data-title-color": s,
|
|
38
|
+
"data-mobile-title-color": n,
|
|
39
|
+
"data-title-highlight-color": d,
|
|
40
|
+
"data-mobile-title-highlight-color": o,
|
|
41
41
|
children: [
|
|
42
42
|
e === "complex" && /* @__PURE__ */ l(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
className: a.richTextContainer,
|
|
46
46
|
style: {
|
|
47
|
-
"--highlight-color-custom":
|
|
48
|
-
"--highlight-emphasize-custom":
|
|
49
|
-
"--highlight-color-custom-mobile":
|
|
50
|
-
"--highlight-emphasize-custom-mobile":
|
|
47
|
+
"--highlight-color-custom": c[s || "white"],
|
|
48
|
+
"--highlight-emphasize-custom": c[d || "white"],
|
|
49
|
+
"--highlight-color-custom-mobile": c[n || "white"],
|
|
50
|
+
"--highlight-emphasize-custom-mobile": c[o || "white"]
|
|
51
51
|
},
|
|
52
52
|
children: [
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
m && /* @__PURE__ */ i(
|
|
54
|
+
V,
|
|
55
55
|
{
|
|
56
|
-
colorScheme:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
colorScheme: s || d || n || o ? "custom" : "dark",
|
|
57
|
+
className: a.richTextTitle,
|
|
58
|
+
title: m,
|
|
59
|
+
as: "div",
|
|
60
|
+
defaultVariant: "displayXs",
|
|
61
|
+
mobileVariant: "headingXl"
|
|
61
62
|
}
|
|
62
63
|
),
|
|
63
64
|
t && /* @__PURE__ */ i(r, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: t }),
|
|
64
|
-
/* @__PURE__ */ i(
|
|
65
|
+
/* @__PURE__ */ i(p, { ...h })
|
|
65
66
|
]
|
|
66
67
|
}
|
|
67
68
|
),
|
|
@@ -76,10 +77,19 @@ const L = ({
|
|
|
76
77
|
children: t
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
|
-
/* @__PURE__ */ i(
|
|
80
|
+
/* @__PURE__ */ i(p, { ...h })
|
|
80
81
|
] }),
|
|
81
82
|
e === "plain_with_title" && /* @__PURE__ */ l("div", { className: a.plainWithTitleContainer, children: [
|
|
82
|
-
|
|
83
|
+
m && /* @__PURE__ */ i(
|
|
84
|
+
r,
|
|
85
|
+
{
|
|
86
|
+
as: "h3",
|
|
87
|
+
defaultVariant: "displaySm",
|
|
88
|
+
mobileVariant: "headingXl",
|
|
89
|
+
className: a.titleOfPlainWithTitle,
|
|
90
|
+
children: m
|
|
91
|
+
}
|
|
92
|
+
),
|
|
83
93
|
t && /* @__PURE__ */ i(
|
|
84
94
|
r,
|
|
85
95
|
{
|
|
@@ -90,12 +100,12 @@ const L = ({
|
|
|
90
100
|
children: t
|
|
91
101
|
}
|
|
92
102
|
),
|
|
93
|
-
/* @__PURE__ */ i(
|
|
103
|
+
/* @__PURE__ */ i(p, { ...h })
|
|
94
104
|
] })
|
|
95
105
|
]
|
|
96
106
|
}
|
|
97
107
|
)
|
|
98
108
|
] }) });
|
|
99
109
|
export {
|
|
100
|
-
|
|
110
|
+
k as ImageWithText
|
|
101
111
|
};
|
|
@@ -27,13 +27,20 @@
|
|
|
27
27
|
.content {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
|
-
padding: 80px;
|
|
31
30
|
position: absolute;
|
|
31
|
+
padding-inline: 80px;
|
|
32
32
|
z-index: 10;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.content[data-view='plain'] {
|
|
36
|
+
padding: 40px;
|
|
37
|
+
width: 50%;
|
|
38
|
+
}
|
|
39
|
+
|
|
35
40
|
.content[data-view='plain_with_title'] {
|
|
36
41
|
display: block;
|
|
42
|
+
padding: 0;
|
|
43
|
+
padding-left: 90px;
|
|
37
44
|
width: 50%;
|
|
38
45
|
}
|
|
39
46
|
|
|
@@ -46,9 +53,7 @@
|
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
.textContainer {
|
|
49
|
-
max-width: 55%;
|
|
50
56
|
text-wrap: pretty;
|
|
51
|
-
font-weight: medium;
|
|
52
57
|
color: var(--color-text-primary-inverted);
|
|
53
58
|
}
|
|
54
59
|
|
|
@@ -92,41 +97,57 @@
|
|
|
92
97
|
display: none;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
|
-
@media (width <= 1090px) and (width >=
|
|
100
|
+
@media (width <= 1090px) and (width >= 900px) {
|
|
101
|
+
.container {
|
|
102
|
+
margin-inline: 20px;
|
|
103
|
+
}
|
|
96
104
|
.content {
|
|
97
|
-
padding:
|
|
105
|
+
padding: 60px;
|
|
106
|
+
}
|
|
107
|
+
.content[data-view='plain_with_title'] {
|
|
108
|
+
padding-left: 40px;
|
|
98
109
|
}
|
|
99
110
|
.content[data-view='complex'] {
|
|
100
|
-
padding: 0px
|
|
111
|
+
padding-left: 0px 60px;
|
|
101
112
|
}
|
|
102
|
-
.
|
|
113
|
+
.textContainer span {
|
|
103
114
|
font-size: var(--font-size-heading-lg);
|
|
104
115
|
}
|
|
105
116
|
.richTextContainer {
|
|
106
|
-
max-width:
|
|
107
|
-
}
|
|
108
|
-
.titleOfPlainWithTitle {
|
|
109
|
-
font-size: var(--font-size-heading-xl);
|
|
117
|
+
max-width: 300px;
|
|
110
118
|
}
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
@media (width <
|
|
121
|
+
@media (width < 900px) and (width >= 768px) {
|
|
122
|
+
.container {
|
|
123
|
+
margin-inline: 20px;
|
|
124
|
+
}
|
|
125
|
+
.container[data-view='plain_with_title'] {
|
|
126
|
+
padding: 0;
|
|
127
|
+
margin-inline: 20px;
|
|
128
|
+
}
|
|
114
129
|
.content {
|
|
115
|
-
padding: 40px
|
|
130
|
+
padding: 40px;
|
|
131
|
+
}
|
|
132
|
+
.content[data-view='plain_with_title'] {
|
|
133
|
+
padding-left: 40px;
|
|
134
|
+
}
|
|
135
|
+
.content[data-view='complex'] {
|
|
136
|
+
padding: 0px 60px;
|
|
116
137
|
}
|
|
117
138
|
.textContainer {
|
|
118
139
|
font-size: var(--font-size-heading-sm);
|
|
119
140
|
}
|
|
141
|
+
.titleOfPlainWithTitle {
|
|
142
|
+
font-size: var(--font-size-heading-xl);
|
|
143
|
+
}
|
|
120
144
|
.textOfPlain {
|
|
121
145
|
font-size: var(--font-size-heading-md);
|
|
122
146
|
}
|
|
123
147
|
.richTextContainer {
|
|
124
|
-
max-width:
|
|
125
|
-
}
|
|
126
|
-
.richTextContainerTitle {
|
|
127
|
-
font-size: var(--font-size-heading-lg);
|
|
148
|
+
max-width: 300px;
|
|
128
149
|
}
|
|
129
|
-
.
|
|
150
|
+
.richTextTitle p {
|
|
130
151
|
font-size: var(--font-size-heading-lg);
|
|
131
152
|
}
|
|
132
153
|
}
|
|
@@ -135,18 +156,16 @@
|
|
|
135
156
|
.container[data-view='plain_with_title'] {
|
|
136
157
|
margin: 64px 20px;
|
|
137
158
|
}
|
|
138
|
-
|
|
139
159
|
.container {
|
|
140
160
|
gap: 20px;
|
|
141
161
|
margin: 40px 20px;
|
|
142
162
|
}
|
|
143
|
-
|
|
144
163
|
.content {
|
|
145
164
|
border-radius: var(--border-radius-lg);
|
|
146
165
|
padding: 0;
|
|
147
166
|
}
|
|
148
167
|
|
|
149
|
-
.content[data-view='plain_with_title'] {
|
|
168
|
+
.content[data-view='plain_with_title'], .content[data-view='plain'] {
|
|
150
169
|
width: 100%;
|
|
151
170
|
padding: 0;
|
|
152
171
|
}
|