@zenpatient-org/healthspan-marketing-ui 0.2.43 → 0.2.45
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/modules/BasicImageText/BasicImageText.cjs.js +1 -0
- package/dist/modules/BasicImageText/BasicImageText.d.ts +18 -0
- package/dist/modules/BasicImageText/BasicImageText.es.js +59 -0
- package/dist/modules/BasicImageText/basicImageText.module.css +122 -0
- package/dist/modules/BasicImageText/index.d.ts +1 -0
- package/dist/modules/Citation/Citation.cjs.js +1 -1
- package/dist/modules/Citation/Citation.es.js +25 -11
- package/dist/modules/Citation/citation.module.css +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../src/modules/BasicImageText/basicImageText.module.css"),t=require("../../components/Typography/Typography.cjs.js"),p=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),x=require("../../components/Button/Button.cjs.js"),y={solar:"color-text-primary-brand-solar",indigo:"color-text-primary-brand-indigo",primary:"color-text-primary",inverted:"color-text-primary-inverted"},j=({imagePosition:n,title:c,description:s,image:d,button:i,label:l,labelColor:o,mobileImage:m,colorScheme:r,buttonColor:g})=>{const h=o||(r==="dark"?"inverted":"primary");return e.jsx("section",{className:a.root,"data-color-scheme":r,children:e.jsxs("div",{className:a.container,"data-image-position":n,children:[e.jsxs("div",{className:a.textContainer,children:[l&&e.jsx(t.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:a.label,color:y[h],children:l}),e.jsxs("div",{className:a.titleContainer,children:[e.jsx(p.HighlightedTitle,{colorScheme:r==="dark"?"dark":"light",className:a.title,defaultVariant:"displayMd",mobileVariant:"headingXl",title:c}),e.jsx("div",{className:a.mobileImageContainer,children:e.jsx("img",{src:m,alt:"",className:a.mobileImage})}),s&&e.jsx(t.Typography,{className:a.description,defaultVariant:"bodyLg",mobileVariant:"bodyMd",children:s})]}),(i==null?void 0:i.link)&&e.jsx("div",{className:a.button,children:e.jsx(x.Button,{as:"a",href:i==null?void 0:i.link,variant:g||"secondary",size:"lg",children:(i==null?void 0:i.text)||"Get Started"})})]}),e.jsx("div",{className:a.imageContainer,children:e.jsx("img",{src:d,alt:"",className:a.image})})]})})};exports.BasicImageText=j;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type BasicImageTextProps = {
|
|
4
|
+
imagePosition: 'left' | 'right';
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelColor?: 'solar' | 'indigo' | 'primary' | 'inverted';
|
|
9
|
+
image: string;
|
|
10
|
+
mobileImage: string;
|
|
11
|
+
button?: {
|
|
12
|
+
text: string;
|
|
13
|
+
link: string;
|
|
14
|
+
};
|
|
15
|
+
colorScheme: 'light' | 'dark' | 'neutral';
|
|
16
|
+
buttonColor?: 'secondary' | 'muted-invert' | 'primary';
|
|
17
|
+
};
|
|
18
|
+
export declare const BasicImageText: ({ imagePosition, title, description, image, button, label, labelColor, mobileImage, colorScheme, buttonColor, }: BasicImageTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import a from "../../modules/BasicImageText/basicImageText.module.css";
|
|
3
|
+
import { Typography as d } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { HighlightedTitle as y } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
5
|
+
import { Button as N } from "../../components/Button/Button.es.js";
|
|
6
|
+
const v = {
|
|
7
|
+
solar: "color-text-primary-brand-solar",
|
|
8
|
+
indigo: "color-text-primary-brand-indigo",
|
|
9
|
+
primary: "color-text-primary",
|
|
10
|
+
inverted: "color-text-primary-inverted"
|
|
11
|
+
}, M = ({
|
|
12
|
+
imagePosition: t,
|
|
13
|
+
title: c,
|
|
14
|
+
description: s,
|
|
15
|
+
image: o,
|
|
16
|
+
button: i,
|
|
17
|
+
label: m,
|
|
18
|
+
labelColor: n,
|
|
19
|
+
mobileImage: p,
|
|
20
|
+
colorScheme: r,
|
|
21
|
+
buttonColor: g
|
|
22
|
+
}) => {
|
|
23
|
+
const h = n || (r === "dark" ? "inverted" : "primary");
|
|
24
|
+
return /* @__PURE__ */ e("section", { className: a.root, "data-color-scheme": r, children: /* @__PURE__ */ l("div", { className: a.container, "data-image-position": t, children: [
|
|
25
|
+
/* @__PURE__ */ l("div", { className: a.textContainer, children: [
|
|
26
|
+
m && /* @__PURE__ */ e(
|
|
27
|
+
d,
|
|
28
|
+
{
|
|
29
|
+
as: "p",
|
|
30
|
+
defaultVariant: "labelMd",
|
|
31
|
+
mobileVariant: "labelSm",
|
|
32
|
+
emphasis: !0,
|
|
33
|
+
className: a.label,
|
|
34
|
+
color: v[h],
|
|
35
|
+
children: m
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ l("div", { className: a.titleContainer, children: [
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
y,
|
|
41
|
+
{
|
|
42
|
+
colorScheme: r === "dark" ? "dark" : "light",
|
|
43
|
+
className: a.title,
|
|
44
|
+
defaultVariant: "displayMd",
|
|
45
|
+
mobileVariant: "headingXl",
|
|
46
|
+
title: c
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e("div", { className: a.mobileImageContainer, children: /* @__PURE__ */ e("img", { src: p, alt: "", className: a.mobileImage }) }),
|
|
50
|
+
s && /* @__PURE__ */ e(d, { className: a.description, defaultVariant: "bodyLg", mobileVariant: "bodyMd", children: s })
|
|
51
|
+
] }),
|
|
52
|
+
(i == null ? void 0 : i.link) && /* @__PURE__ */ e("div", { className: a.button, children: /* @__PURE__ */ e(N, { as: "a", href: i == null ? void 0 : i.link, variant: g || "secondary", size: "lg", children: (i == null ? void 0 : i.text) || "Get Started" }) })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ e("div", { className: a.imageContainer, children: /* @__PURE__ */ e("img", { src: o, alt: "", className: a.image }) })
|
|
55
|
+
] }) });
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
M as BasicImageText
|
|
59
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.root[data-color-scheme='dark'] {
|
|
9
|
+
background-color: var(--color-bg-fill-primary);
|
|
10
|
+
color: var(--color-text-primary-inverted);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.root[data-color-scheme='neutral'] {
|
|
14
|
+
background-color: var(--color-bg-neutral-light);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.container {
|
|
18
|
+
display: flex;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: var(--content-max-width);
|
|
21
|
+
padding: 64px 120px;
|
|
22
|
+
position: relative;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 96px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.container[data-image-position='left'] {
|
|
29
|
+
flex-direction: row-reverse;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.textContainer {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: 32px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titleContainer {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.button {
|
|
45
|
+
width: fit-content;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.imageContainer {
|
|
49
|
+
max-width: 600px;
|
|
50
|
+
max-height: 600px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.image {
|
|
54
|
+
width: 100%;
|
|
55
|
+
object-fit: contain;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mobileImage {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (width <= 1200px) {
|
|
63
|
+
.container {
|
|
64
|
+
padding: 64px 20px;
|
|
65
|
+
gap: 64px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.imageContainer {
|
|
69
|
+
max-width: 414px;
|
|
70
|
+
max-height: 414px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (width <= 960px) {
|
|
75
|
+
.container {
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 0px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.textContainer {
|
|
81
|
+
gap: 32px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.button {
|
|
85
|
+
width: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.image {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mobileImageContainer {
|
|
93
|
+
align-self: center;
|
|
94
|
+
max-width: 728px;
|
|
95
|
+
max-height: 728px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mobileImage {
|
|
99
|
+
display: block;
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 100%;
|
|
102
|
+
object-fit: cover;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (width <= 768px) {
|
|
107
|
+
.container {
|
|
108
|
+
padding: 40px 20px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.textContainer {
|
|
112
|
+
gap: 16px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.titleContainer {
|
|
116
|
+
gap: 24px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.button {
|
|
120
|
+
margin-top: 16px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BasicImageText } from './BasicImageText';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("../../src/modules/Citation/citation.module.css"),i=require("../../utils/cn/cn.cjs.js"),p=require("../../components/Typography/Typography.cjs.js"),l=require("../../components/Superscript/Superscript.cjs.js");function y({orderPadding:e,items:t,className:u}){const n=isNaN(Number(e))?0:e;return!t||t.length===0?null:r.jsx("section",{className:i.cn(c.root,u),children:t==null?void 0:t.map((a,o)=>{const s=n?n+o:o+1;return r.jsxs(p.Typography,{as:"p",className:c.text,defaultVariant:"bodySm",mobileVariant:"bodyXs",children:[r.jsx(l.Superscript,{value:s.toString()})," ",a.item]},s)})})}exports.Citation=y;
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import l from "../../modules/Citation/citation.module.css";
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Typography as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { cn as s } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
5
|
+
import { Superscript as u } from "../../components/Superscript/Superscript.es.js";
|
|
6
|
+
function x({ orderPadding: t, items: r, className: p }) {
|
|
7
|
+
const o = isNaN(Number(t)) ? 0 : t;
|
|
8
|
+
return !r || r.length === 0 ? null : /* @__PURE__ */ e("section", { className: s(l.root, p), children: r == null ? void 0 : r.map((i, a) => {
|
|
9
|
+
const n = o ? o + a : a + 1;
|
|
10
|
+
return /* @__PURE__ */ m(
|
|
11
|
+
c,
|
|
12
|
+
{
|
|
13
|
+
as: "p",
|
|
14
|
+
className: l.text,
|
|
15
|
+
defaultVariant: "bodySm",
|
|
16
|
+
mobileVariant: "bodyXs",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ e(u, { value: n.toString() }),
|
|
19
|
+
" ",
|
|
20
|
+
i.item
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
n
|
|
24
|
+
);
|
|
25
|
+
}) });
|
|
12
26
|
}
|
|
13
27
|
export {
|
|
14
|
-
|
|
28
|
+
x as Citation
|
|
15
29
|
};
|
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.45",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -626,6 +626,11 @@
|
|
|
626
626
|
"import": "./dist/modules/Highlight/Highlight.es.js",
|
|
627
627
|
"require": "./dist/modules/Highlight/Highlight.cjs.js"
|
|
628
628
|
},
|
|
629
|
+
"./BasicImageText": {
|
|
630
|
+
"types": "./dist/modules/BasicImageText/BasicImageText.d.ts",
|
|
631
|
+
"import": "./dist/modules/BasicImageText/BasicImageText.es.js",
|
|
632
|
+
"require": "./dist/modules/BasicImageText/BasicImageText.cjs.js"
|
|
633
|
+
},
|
|
629
634
|
"./Bubbles": {
|
|
630
635
|
"types": "./dist/pageComponents/Bubbles/Bubbles.d.ts",
|
|
631
636
|
"import": "./dist/pageComponents/Bubbles/Bubbles.es.js",
|