@zenpatient-org/healthspan-marketing-ui 0.1.43 → 0.1.44
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/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +5 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.es.js +57 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.es.js +24 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/index.d.ts +1 -0
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +5 -55
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +5 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.es.js +76 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/index.d.ts +1 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.es.js +15 -0
- package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -2
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +34 -29
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +61 -46
- package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -1
- package/dist/components/StudyGridCard/StudyGridCard.d.ts +10 -2
- package/dist/components/StudyGridCard/StudyGridCard.es.js +115 -60
- package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -1
- package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +24 -12
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +1 -0
- package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +3 -0
- package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +157 -0
- package/dist/modules/ExpandingDetails/expandingDetails.module.css.cjs.js +1 -0
- package/dist/modules/ExpandingDetails/expandingDetails.module.css.es.js +47 -0
- package/dist/modules/ExpandingDetails/index.d.ts +1 -0
- package/dist/modules/ExpandingDetails/types.d.ts +13 -0
- package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -2
- package/package.json +6 -1
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +0 -1
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +0 -24
|
@@ -1,85 +1,140 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { formatDate as
|
|
1
|
+
import { jsxs as i, jsx as a, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { formatDate as b } from "../../utils/formatDate.es.js";
|
|
3
3
|
import "../Icon/Icon.es.js";
|
|
4
|
-
import { EIconName as
|
|
4
|
+
import { EIconName as l } from "../Icon/constants.es.js";
|
|
5
5
|
import { Label as p } from "../Label/Label.es.js";
|
|
6
6
|
import { TextButton as s } from "../TextButton/TextButton.es.js";
|
|
7
|
-
import { Typography as
|
|
7
|
+
import { Typography as r } from "../Typography/Typography.es.js";
|
|
8
|
+
import { cn as m } from "../../utils/cn/cn.es.js";
|
|
8
9
|
import e from "./studyGridCard.module.css.es.js";
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
10
|
+
function k(d) {
|
|
11
|
+
if (d.compressed === !0) {
|
|
12
|
+
const { title: o, link: t, image: n } = d;
|
|
13
|
+
return /* @__PURE__ */ i("div", { className: m(e.study, e.studyCompressed), children: [
|
|
14
|
+
/* @__PURE__ */ a(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: m(e.imagePart, e.imagePartCompressed),
|
|
18
|
+
style: { backgroundImage: `url(${n})` }
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ i("div", { className: m(e.dataPart, e.dataPartCompressed), children: [
|
|
14
22
|
/* @__PURE__ */ a(
|
|
15
|
-
|
|
23
|
+
r,
|
|
16
24
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
children: f(h)
|
|
25
|
+
className: m(e.title, e.titleCompressed),
|
|
26
|
+
defaultVariant: "headingSm",
|
|
27
|
+
mobileVariant: "bodySm",
|
|
28
|
+
as: "h6",
|
|
29
|
+
children: o
|
|
23
30
|
}
|
|
24
31
|
),
|
|
25
|
-
|
|
32
|
+
/* @__PURE__ */ i("div", { className: e.button, children: [
|
|
26
33
|
/* @__PURE__ */ a(
|
|
27
|
-
|
|
34
|
+
s,
|
|
28
35
|
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
hideOn: "desktop",
|
|
37
|
+
className: e.mobileButton,
|
|
38
|
+
size: "sm",
|
|
39
|
+
as: "a",
|
|
40
|
+
href: t,
|
|
41
|
+
suffixIcon: l.ARROW_FORWARD,
|
|
42
|
+
children: "READ MORE"
|
|
35
43
|
}
|
|
36
44
|
),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
45
|
+
/* @__PURE__ */ a(
|
|
46
|
+
s,
|
|
47
|
+
{
|
|
48
|
+
hideOn: "mobile",
|
|
49
|
+
className: e.desktopButton,
|
|
50
|
+
size: "lg",
|
|
51
|
+
as: "a",
|
|
52
|
+
href: t,
|
|
53
|
+
suffixIcon: l.ARROW_FORWARD,
|
|
54
|
+
children: "READ MORE"
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ a("div", { className: e.borderLeft }),
|
|
60
|
+
/* @__PURE__ */ a("div", { className: e.borderRight })
|
|
61
|
+
] });
|
|
62
|
+
} else {
|
|
63
|
+
const { title: o, link: t, image: n, inverted: h, date: u, label: c, readTime: f } = d;
|
|
64
|
+
return /* @__PURE__ */ i("div", { className: e.study, "data-inverted": h, children: [
|
|
65
|
+
/* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${n})` }, children: c && /* @__PURE__ */ a(p, { ...c }) }),
|
|
66
|
+
/* @__PURE__ */ i("div", { className: e.dataPart, children: [
|
|
67
|
+
/* @__PURE__ */ i("div", { className: e.info, children: [
|
|
68
|
+
/* @__PURE__ */ a(
|
|
69
|
+
r,
|
|
39
70
|
{
|
|
40
71
|
defaultVariant: "labelSm",
|
|
41
72
|
mobileVariant: "labelXs",
|
|
42
73
|
emphasis: !0,
|
|
43
74
|
weight: "medium",
|
|
44
75
|
color: "color-neutral-500",
|
|
45
|
-
children:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
76
|
+
children: b(u)
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ i(R, { children: [
|
|
80
|
+
/* @__PURE__ */ a(
|
|
81
|
+
r,
|
|
82
|
+
{
|
|
83
|
+
defaultVariant: "labelSm",
|
|
84
|
+
mobileVariant: "labelXs",
|
|
85
|
+
emphasis: !0,
|
|
86
|
+
weight: "medium",
|
|
87
|
+
color: "color-neutral-500",
|
|
88
|
+
children: "•"
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ i(
|
|
92
|
+
r,
|
|
93
|
+
{
|
|
94
|
+
defaultVariant: "labelSm",
|
|
95
|
+
mobileVariant: "labelXs",
|
|
96
|
+
emphasis: !0,
|
|
97
|
+
weight: "medium",
|
|
98
|
+
color: "color-neutral-500",
|
|
99
|
+
children: [
|
|
100
|
+
f,
|
|
101
|
+
" MIN READ"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] })
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ a(r, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: o }),
|
|
108
|
+
/* @__PURE__ */ i("div", { className: e.button, children: [
|
|
109
|
+
/* @__PURE__ */ a(
|
|
110
|
+
s,
|
|
111
|
+
{
|
|
112
|
+
hideOn: "desktop",
|
|
113
|
+
className: e.mobileButton,
|
|
114
|
+
size: "sm",
|
|
115
|
+
as: "a",
|
|
116
|
+
href: t,
|
|
117
|
+
suffixIcon: l.ARROW_FORWARD,
|
|
118
|
+
children: "READ MORE"
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ a(
|
|
122
|
+
s,
|
|
123
|
+
{
|
|
124
|
+
hideOn: "mobile",
|
|
125
|
+
className: e.desktopButton,
|
|
126
|
+
size: "lg",
|
|
127
|
+
as: "a",
|
|
128
|
+
href: t,
|
|
129
|
+
suffixIcon: l.ARROW_FORWARD,
|
|
130
|
+
children: "READ MORE"
|
|
49
131
|
}
|
|
50
132
|
)
|
|
51
133
|
] })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ a(i, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: n }),
|
|
54
|
-
/* @__PURE__ */ r("div", { className: e.button, children: [
|
|
55
|
-
/* @__PURE__ */ a(
|
|
56
|
-
s,
|
|
57
|
-
{
|
|
58
|
-
hideOn: "desktop",
|
|
59
|
-
className: e.mobileButton,
|
|
60
|
-
size: "sm",
|
|
61
|
-
as: "a",
|
|
62
|
-
href: t,
|
|
63
|
-
suffixIcon: m.ARROW_FORWARD,
|
|
64
|
-
children: "READ MORE"
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ a(
|
|
68
|
-
s,
|
|
69
|
-
{
|
|
70
|
-
hideOn: "mobile",
|
|
71
|
-
className: e.desktopButton,
|
|
72
|
-
size: "lg",
|
|
73
|
-
as: "a",
|
|
74
|
-
href: t,
|
|
75
|
-
suffixIcon: m.ARROW_FORWARD,
|
|
76
|
-
children: "READ MORE"
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
134
|
] })
|
|
80
|
-
] })
|
|
81
|
-
|
|
135
|
+
] });
|
|
136
|
+
}
|
|
82
137
|
}
|
|
83
138
|
export {
|
|
84
|
-
|
|
139
|
+
k as StudyGridCard
|
|
85
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",e="studyGridCard-module__dataPart___mweMi",r="studyGridCard-module__dataPartCompressed___bLUMa",s="studyGridCard-module__info___xY-Kk",o="studyGridCard-module__title___U2va1",_="studyGridCard-module__button___bvI0u",a="studyGridCard-module__mobileButton___v-RZs",u="studyGridCard-module__studyCompressed___0XTXS",i="studyGridCard-module__imagePartCompressed___8GG-N",m="studyGridCard-module__titleCompressed___Z7uqM",l="studyGridCard-module__borderLeft___xGpbL",C="studyGridCard-module__borderRight___DmL9W",n={study:t,imagePart:d,dataPart:e,dataPartCompressed:r,info:s,title:o,button:_,mobileButton:a,studyCompressed:u,imagePartCompressed:i,titleCompressed:m,borderLeft:l,borderRight:C};exports.borderLeft=l;exports.borderRight=C;exports.button=_;exports.dataPart=e;exports.dataPartCompressed=r;exports.default=n;exports.imagePart=d;exports.imagePartCompressed=i;exports.info=s;exports.mobileButton=a;exports.study=t;exports.studyCompressed=u;exports.title=o;exports.titleCompressed=m;
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO",
|
|
1
|
+
const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO", e = "studyGridCard-module__dataPart___mweMi", _ = "studyGridCard-module__dataPartCompressed___bLUMa", r = "studyGridCard-module__info___xY-Kk", s = "studyGridCard-module__title___U2va1", o = "studyGridCard-module__button___bvI0u", a = "studyGridCard-module__mobileButton___v-RZs", u = "studyGridCard-module__studyCompressed___0XTXS", m = "studyGridCard-module__imagePartCompressed___8GG-N", i = "studyGridCard-module__titleCompressed___Z7uqM", C = "studyGridCard-module__borderLeft___xGpbL", l = "studyGridCard-module__borderRight___DmL9W", n = {
|
|
2
2
|
study: t,
|
|
3
3
|
imagePart: d,
|
|
4
|
-
dataPart:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
dataPart: e,
|
|
5
|
+
dataPartCompressed: _,
|
|
6
|
+
info: r,
|
|
7
|
+
title: s,
|
|
8
|
+
button: o,
|
|
9
|
+
mobileButton: a,
|
|
10
|
+
studyCompressed: u,
|
|
11
|
+
imagePartCompressed: m,
|
|
12
|
+
titleCompressed: i,
|
|
13
|
+
borderLeft: C,
|
|
14
|
+
borderRight: l
|
|
9
15
|
};
|
|
10
16
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
C as borderLeft,
|
|
18
|
+
l as borderRight,
|
|
19
|
+
o as button,
|
|
20
|
+
e as dataPart,
|
|
21
|
+
_ as dataPartCompressed,
|
|
22
|
+
n as default,
|
|
14
23
|
d as imagePart,
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
m as imagePartCompressed,
|
|
25
|
+
r as info,
|
|
26
|
+
a as mobileButton,
|
|
17
27
|
t as study,
|
|
18
|
-
|
|
28
|
+
u as studyCompressed,
|
|
29
|
+
s as title,
|
|
30
|
+
i as titleCompressed
|
|
19
31
|
};
|