@zenpatient-org/healthspan-marketing-ui 0.2.44 → 0.2.46
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/ImageGallery/ImageGallery.cjs.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.es.js +18 -18
- package/dist/components/ImageGallery/imageGallery.module.css +8 -12
- 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/dist/modules/IndividualProductCardV2/individualProductCardV2.module.css +1 -1
- 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"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),S=require("swiper/modules"),u=require("swiper/react"),h=require("react"),q=require("../../utils/useSwiper/useSwiper.cjs.js"),j=require("../../utils/cn/cn.cjs.js");;/* empty css */;/* empty css */;/* empty css */const i=require("../../src/components/ImageGallery/imageGallery.module.css"),w=require("../Label/Label.cjs.js"),x=require("./components/ImageGalleryPagination/ImageGalleryPagination.cjs.js"),y=require("../GalleryPagination/GalleryPagination.cjs.js"),P=[S.Navigation],_=({images:a,label:l,className:d,pagination:I="plain"})=>{const{activeIndex:s,handleSlideTo:t,handleSlideChange:m,onSwiperInit:g,handleSwiperResize:p,handleUserInteraction:n}=q.useSwiperWithAutoPlay(3e3),o=h.useCallback(r=>{n(),t(r)},[n,t]);return e.jsxs("div",{className:j.cn(i.root,d),children:[l&&e.jsx("div",{className:i.labelWrap,children:e.jsx(w.Label,{color:"black",size:"sm",children:l})}),e.jsx(u.Swiper,{onSwiper:g,onResize:p,onSlideChange:m,onTouchStart:n,onTouchEnd:n,modules:P,spaceBetween:0,slidesPerView:1,className:i.swiper,children:a.map((r,c)=>e.jsx(u.SwiperSlide,{children:e.jsx("div",{className:i.imageContainer,children:e.jsx("div",{className:i.imageWrapper,children:e.jsx("img",{src:r,alt:"product image",className:i.image,onClick:n},c)})})},c))}),e.jsx(x.ImageGalleryPagination,{images:a,activeIndex:s,onSelect:o}),e.jsx(y.GalleryPagination,{count:a.length,activeIndex:s,onSelect:o})]})};exports.ImageGallery=_;
|
|
@@ -3,49 +3,49 @@ import { jsxs as S, jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { Navigation as g } from "swiper/modules";
|
|
4
4
|
import { Swiper as f, SwiperSlide as u } from "swiper/react";
|
|
5
5
|
import { useCallback as w } from "react";
|
|
6
|
-
import { useSwiperWithAutoPlay as
|
|
7
|
-
import { cn as
|
|
6
|
+
import { useSwiperWithAutoPlay as N } from "../../utils/useSwiper/useSwiper.es.js";
|
|
7
|
+
import { cn as v } from "../../utils/cn/cn.es.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
import { Label as
|
|
13
|
-
import { ImageGalleryPagination as
|
|
11
|
+
import i from "../../components/ImageGallery/imageGallery.module.css";
|
|
12
|
+
import { Label as I } from "../Label/Label.es.js";
|
|
13
|
+
import { ImageGalleryPagination as P } from "./components/ImageGalleryPagination/ImageGalleryPagination.es.js";
|
|
14
14
|
import { GalleryPagination as y } from "../GalleryPagination/GalleryPagination.es.js";
|
|
15
15
|
const C = [g], D = ({ images: r, label: n, className: s, pagination: W = "plain" }) => {
|
|
16
|
-
const { activeIndex: l, handleSlideTo: t, handleSlideChange: p, onSwiperInit: d, handleSwiperResize: h, handleUserInteraction:
|
|
16
|
+
const { activeIndex: l, handleSlideTo: t, handleSlideChange: p, onSwiperInit: d, handleSwiperResize: h, handleUserInteraction: o } = N(3e3), m = w(
|
|
17
17
|
(a) => {
|
|
18
|
-
|
|
18
|
+
o(), t(a);
|
|
19
19
|
},
|
|
20
|
-
[
|
|
20
|
+
[o, t]
|
|
21
21
|
);
|
|
22
|
-
return /* @__PURE__ */ S("div", { className:
|
|
23
|
-
n && /* @__PURE__ */ e("div", { className:
|
|
22
|
+
return /* @__PURE__ */ S("div", { className: v(i.root, s), children: [
|
|
23
|
+
n && /* @__PURE__ */ e("div", { className: i.labelWrap, children: /* @__PURE__ */ e(I, { color: "black", size: "sm", children: n }) }),
|
|
24
24
|
/* @__PURE__ */ e(
|
|
25
25
|
f,
|
|
26
26
|
{
|
|
27
27
|
onSwiper: d,
|
|
28
28
|
onResize: h,
|
|
29
29
|
onSlideChange: p,
|
|
30
|
-
onTouchStart:
|
|
31
|
-
onTouchEnd:
|
|
30
|
+
onTouchStart: o,
|
|
31
|
+
onTouchEnd: o,
|
|
32
32
|
modules: C,
|
|
33
33
|
spaceBetween: 0,
|
|
34
34
|
slidesPerView: 1,
|
|
35
|
-
className:
|
|
36
|
-
children: r.map((a, c) => /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e("div", { className:
|
|
35
|
+
className: i.swiper,
|
|
36
|
+
children: r.map((a, c) => /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e("div", { className: i.imageContainer, children: /* @__PURE__ */ e("div", { className: i.imageWrapper, children: /* @__PURE__ */ e(
|
|
37
37
|
"img",
|
|
38
38
|
{
|
|
39
39
|
src: a,
|
|
40
40
|
alt: "product image",
|
|
41
|
-
className:
|
|
42
|
-
onClick:
|
|
41
|
+
className: i.image,
|
|
42
|
+
onClick: o
|
|
43
43
|
},
|
|
44
44
|
c
|
|
45
|
-
) }) }, c))
|
|
45
|
+
) }) }) }, c))
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
/* @__PURE__ */ e(
|
|
48
|
+
/* @__PURE__ */ e(P, { images: r, activeIndex: l, onSelect: m }),
|
|
49
49
|
/* @__PURE__ */ e(y, { count: r.length, activeIndex: l, onSelect: m })
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
position: relative;
|
|
3
|
-
padding:
|
|
3
|
+
padding: 18px 0 13px 0;
|
|
4
4
|
display: flex;
|
|
5
5
|
max-width: 100%;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: flex-start;
|
|
9
|
-
overflow: hidden;
|
|
10
9
|
border-radius: var(--border-radius-md);
|
|
11
10
|
background-color: var(--color-bg-neutral-light);
|
|
12
|
-
gap: 24px;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
.labelWrap {
|
|
16
14
|
width: 100%;
|
|
17
15
|
display: flex;
|
|
18
16
|
align-items: flex-start;
|
|
19
|
-
padding: 0
|
|
17
|
+
padding: 0 18px;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
.swiper {
|
|
23
21
|
width: 100%;
|
|
22
|
+
max-width: 566px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.imageContainer {
|
|
26
|
+
padding: 18px 0 14px 0;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
.imageWrapper {
|
|
27
30
|
width: 100%;
|
|
28
|
-
|
|
31
|
+
aspect-ratio: 1;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
.image {
|
|
@@ -34,16 +37,9 @@
|
|
|
34
37
|
object-fit: contain;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
@media (width <= 1024px) {
|
|
38
|
-
.imageWrapper {
|
|
39
|
-
height: 480px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
40
|
@media (width <= 768px) {
|
|
44
41
|
.root {
|
|
45
42
|
padding: 16px 0;
|
|
46
|
-
gap: 16px;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
.labelWrap {
|
|
@@ -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
|
};
|