@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.
Files changed (38) hide show
  1. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.cjs.js +1 -0
  2. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +5 -0
  3. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.es.js +57 -0
  4. package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.cjs.js +1 -0
  5. package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.es.js +24 -0
  6. package/dist/components/ComplexImageCarousel/ComplexCarousel/index.d.ts +1 -0
  7. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -1
  8. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +1 -1
  9. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +5 -55
  10. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.cjs.js +1 -0
  11. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +5 -0
  12. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.es.js +76 -0
  13. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/index.d.ts +1 -0
  14. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.cjs.js +1 -0
  15. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.es.js +15 -0
  16. package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
  17. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -2
  18. package/dist/components/ComplexTooltip/ComplexTooltip.es.js +34 -29
  19. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  20. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -0
  21. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +61 -46
  22. package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -1
  23. package/dist/components/StudyGridCard/StudyGridCard.d.ts +10 -2
  24. package/dist/components/StudyGridCard/StudyGridCard.es.js +115 -60
  25. package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -1
  26. package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +24 -12
  27. package/dist/healthspan-marketing-ui.css +1 -1
  28. package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +1 -0
  29. package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +3 -0
  30. package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +157 -0
  31. package/dist/modules/ExpandingDetails/expandingDetails.module.css.cjs.js +1 -0
  32. package/dist/modules/ExpandingDetails/expandingDetails.module.css.es.js +47 -0
  33. package/dist/modules/ExpandingDetails/index.d.ts +1 -0
  34. package/dist/modules/ExpandingDetails/types.d.ts +13 -0
  35. package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -2
  36. package/package.json +6 -1
  37. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +0 -1
  38. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +0 -24
@@ -1,85 +1,140 @@
1
- import { jsxs as r, jsx as a, Fragment as u } from "react/jsx-runtime";
2
- import { formatDate as f } from "../../utils/formatDate.es.js";
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 m } from "../Icon/constants.es.js";
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 i } from "../Typography/Typography.es.js";
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 v({ title: n, link: t, inverted: d, image: c, date: h, label: l, readTime: o }) {
10
- return /* @__PURE__ */ r("div", { className: e.study, "data-inverted": d, children: [
11
- /* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${c})` }, children: l && /* @__PURE__ */ a(p, { ...l }) }),
12
- /* @__PURE__ */ r("div", { className: e.dataPart, children: [
13
- /* @__PURE__ */ r("div", { className: e.info, children: [
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
- i,
23
+ r,
16
24
  {
17
- defaultVariant: "labelSm",
18
- mobileVariant: "labelXs",
19
- emphasis: !0,
20
- weight: "medium",
21
- color: "color-neutral-500",
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
- !!o && /* @__PURE__ */ r(u, { children: [
32
+ /* @__PURE__ */ i("div", { className: e.button, children: [
26
33
  /* @__PURE__ */ a(
27
- i,
34
+ s,
28
35
  {
29
- defaultVariant: "labelSm",
30
- mobileVariant: "labelXs",
31
- emphasis: !0,
32
- weight: "medium",
33
- color: "color-neutral-500",
34
- children: "•"
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__ */ r(
38
- i,
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
- o,
47
- " MIN READ"
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
- v as StudyGridCard
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",_="studyGridCard-module__dataPart___mweMi",o="studyGridCard-module__info___xY-Kk",e="studyGridCard-module__title___U2va1",u="studyGridCard-module__button___bvI0u",a="studyGridCard-module__mobileButton___v-RZs",i={study:t,imagePart:d,dataPart:_,info:o,title:e,button:u,mobileButton:a};exports.button=u;exports.dataPart=_;exports.default=i;exports.imagePart=d;exports.info=o;exports.mobileButton=a;exports.study=t;exports.title=e;
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", _ = "studyGridCard-module__dataPart___mweMi", o = "studyGridCard-module__info___xY-Kk", a = "studyGridCard-module__title___U2va1", u = "studyGridCard-module__button___bvI0u", s = "studyGridCard-module__mobileButton___v-RZs", r = {
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
- info: o,
6
- title: a,
7
- button: u,
8
- mobileButton: s
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
- u as button,
12
- _ as dataPart,
13
- r as default,
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
- o as info,
16
- s as mobileButton,
24
+ m as imagePartCompressed,
25
+ r as info,
26
+ a as mobileButton,
17
27
  t as study,
18
- a as title
28
+ u as studyCompressed,
29
+ s as title,
30
+ i as titleCompressed
19
31
  };