@zenpatient-org/healthspan-marketing-ui 0.2.0 → 0.2.2
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/HowItWorks/HowItWorks.d.ts +1 -0
- package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -1
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +1 -0
- package/dist/modules/HowItWorks/components/Content/Content.es.js +57 -37
- package/dist/modules/HowItWorks/components/Content/content.module.css +17 -1
- package/dist/modules/YourProtocol/yourProtocol.module.css +7 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("swiper/modules"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("swiper/modules"),l=require("swiper/react");;/* empty css */;/* empty css */;/* empty css */const a=require("../../../../src/modules/HowItWorks/components/Content/content.module.css"),n=require("../../../../components/Typography/Typography.cjs.js"),v=require("../../../../components/ProgressButton/ProgressButton.cjs.js"),q=[N.Navigation],w=({items:t,colorScheme:i,showBottomNav:d,swiper:o})=>{const{isEnd:c,isBeginning:h,hideNav:u,handleSlideChange:g,handlePrevClick:p,handleNextClick:m,onSwiperInit:y,handleSwiperResize:b,handleReachEnd:j,handleReachBeginning:S,handleSlideTo:x}=o;return e.jsxs("div",{className:a.root,children:[e.jsx("div",{className:a.carouselArea,"data-color-scheme":i,children:e.jsx(l.Swiper,{onSwiper:y,onResize:b,onSlideChange:g,onReachEnd:j,onReachBeginning:S,modules:q,spaceBetween:0,slidesPerView:"auto",className:a.swiper,children:t.map((s,r)=>e.jsx(l.SwiperSlide,{className:a.swiperSlide,"data-color-scheme":i,children:e.jsxs("div",{className:a.card,onClick:()=>x(r),children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx("img",{src:s.image,className:a.cardImage,alt:s.title}),e.jsx(n.Typography,{as:"h3",defaultVariant:"headingLg",mobileVariant:"headingXs",className:a.title,children:s.title}),s.subtitle&&e.jsx(n.Typography,{as:"h4",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:a.subtitle,children:s.subtitle})]}),e.jsx(n.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",children:s.description})]})},`${s.title}_${r}`))})}),!u&&d&&e.jsx("div",{className:a.navigation,children:e.jsx(v.ProgressButton,{invert:i==="dark",left:{disabled:h,onClick:p},right:{disabled:c,onClick:m}})})]})};exports.Content=w;
|
|
@@ -1,68 +1,88 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Navigation as
|
|
4
|
-
import { Swiper as
|
|
2
|
+
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { Navigation as w } from "swiper/modules";
|
|
4
|
+
import { Swiper as C, SwiperSlide as R } from "swiper/react";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import { Typography as
|
|
10
|
-
import { ProgressButton as
|
|
11
|
-
const
|
|
8
|
+
import e from "../../../../modules/HowItWorks/components/Content/content.module.css";
|
|
9
|
+
import { Typography as r } from "../../../../components/Typography/Typography.es.js";
|
|
10
|
+
import { ProgressButton as V } from "../../../../components/ProgressButton/ProgressButton.es.js";
|
|
11
|
+
const k = [w], T = ({ items: t, colorScheme: l, showBottomNav: d, swiper: o }) => {
|
|
12
12
|
const {
|
|
13
13
|
isEnd: c,
|
|
14
14
|
isBeginning: h,
|
|
15
15
|
hideNav: m,
|
|
16
16
|
handleSlideChange: p,
|
|
17
17
|
handlePrevClick: g,
|
|
18
|
-
handleNextClick:
|
|
19
|
-
onSwiperInit:
|
|
20
|
-
handleSwiperResize:
|
|
21
|
-
handleReachEnd:
|
|
22
|
-
handleReachBeginning:
|
|
23
|
-
handleSlideTo:
|
|
24
|
-
} =
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
18
|
+
handleNextClick: u,
|
|
19
|
+
onSwiperInit: N,
|
|
20
|
+
handleSwiperResize: b,
|
|
21
|
+
handleReachEnd: S,
|
|
22
|
+
handleReachBeginning: f,
|
|
23
|
+
handleSlideTo: v
|
|
24
|
+
} = o;
|
|
25
|
+
return /* @__PURE__ */ n("div", { className: e.root, children: [
|
|
26
|
+
/* @__PURE__ */ a("div", { className: e.carouselArea, "data-color-scheme": l, children: /* @__PURE__ */ a(
|
|
27
|
+
C,
|
|
28
28
|
{
|
|
29
|
-
onSwiper:
|
|
30
|
-
onResize:
|
|
29
|
+
onSwiper: N,
|
|
30
|
+
onResize: b,
|
|
31
31
|
onSlideChange: p,
|
|
32
|
-
onReachEnd:
|
|
33
|
-
onReachBeginning:
|
|
34
|
-
modules:
|
|
32
|
+
onReachEnd: S,
|
|
33
|
+
onReachBeginning: f,
|
|
34
|
+
modules: k,
|
|
35
35
|
spaceBetween: 0,
|
|
36
36
|
slidesPerView: "auto",
|
|
37
|
-
className:
|
|
38
|
-
children:
|
|
39
|
-
|
|
37
|
+
className: e.swiper,
|
|
38
|
+
children: t.map((i, s) => /* @__PURE__ */ a(
|
|
39
|
+
R,
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
42
|
-
"data-color-scheme":
|
|
43
|
-
children: /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
41
|
+
className: e.swiperSlide,
|
|
42
|
+
"data-color-scheme": l,
|
|
43
|
+
children: /* @__PURE__ */ n("div", { className: e.card, onClick: () => v(s), children: [
|
|
44
|
+
/* @__PURE__ */ n("div", { className: e.cardHeader, children: [
|
|
45
|
+
/* @__PURE__ */ a("img", { src: i.image, className: e.cardImage, alt: i.title }),
|
|
46
|
+
/* @__PURE__ */ a(
|
|
47
|
+
r,
|
|
48
|
+
{
|
|
49
|
+
as: "h3",
|
|
50
|
+
defaultVariant: "headingLg",
|
|
51
|
+
mobileVariant: "headingXs",
|
|
52
|
+
className: e.title,
|
|
53
|
+
children: i.title
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
i.subtitle && /* @__PURE__ */ a(
|
|
57
|
+
r,
|
|
58
|
+
{
|
|
59
|
+
as: "h4",
|
|
60
|
+
defaultVariant: "labelSm",
|
|
61
|
+
mobileVariant: "labelXs",
|
|
62
|
+
emphasis: !0,
|
|
63
|
+
className: e.subtitle,
|
|
64
|
+
children: i.subtitle
|
|
65
|
+
}
|
|
66
|
+
)
|
|
47
67
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ a(r, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", children: i.description })
|
|
49
69
|
] })
|
|
50
70
|
},
|
|
51
|
-
`${
|
|
71
|
+
`${i.title}_${s}`
|
|
52
72
|
))
|
|
53
73
|
}
|
|
54
74
|
) }),
|
|
55
|
-
!m &&
|
|
56
|
-
|
|
75
|
+
!m && d && /* @__PURE__ */ a("div", { className: e.navigation, children: /* @__PURE__ */ a(
|
|
76
|
+
V,
|
|
57
77
|
{
|
|
58
|
-
invert:
|
|
78
|
+
invert: l === "dark",
|
|
59
79
|
left: {
|
|
60
80
|
disabled: h,
|
|
61
81
|
onClick: g
|
|
62
82
|
},
|
|
63
83
|
right: {
|
|
64
84
|
disabled: c,
|
|
65
|
-
onClick:
|
|
85
|
+
onClick: u
|
|
66
86
|
}
|
|
67
87
|
}
|
|
68
88
|
) })
|
|
@@ -63,7 +63,9 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.cardHeader {
|
|
66
|
-
display:
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: 1fr 1fr;
|
|
68
|
+
grid-template-rows: 1fr 1fr;
|
|
67
69
|
align-items: center;
|
|
68
70
|
text-align: center;
|
|
69
71
|
flex-wrap: nowrap;
|
|
@@ -71,6 +73,8 @@
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.cardImage {
|
|
76
|
+
grid-column: 1 / 2;
|
|
77
|
+
grid-row: 1 / 3;
|
|
74
78
|
width: 180px;
|
|
75
79
|
min-width: 180px;
|
|
76
80
|
height: 240px;
|
|
@@ -79,6 +83,18 @@
|
|
|
79
83
|
object-fit: cover;
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
.title {
|
|
87
|
+
grid-column: 2 / 3;
|
|
88
|
+
grid-row: 1 / 2;
|
|
89
|
+
align-self: end;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.subtitle {
|
|
93
|
+
grid-column: 2 / 3;
|
|
94
|
+
grid-row: 2 / 3;
|
|
95
|
+
align-self: start;
|
|
96
|
+
}
|
|
97
|
+
|
|
82
98
|
.navigation {
|
|
83
99
|
display: flex;
|
|
84
100
|
width: 100%;
|