@zenpatient-org/healthspan-marketing-ui 0.1.130 → 0.1.132
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/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +10 -10
- package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +2 -1
- package/dist/components/ProductGallery/ProductGallery.es.js +57 -47
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
- package/dist/modules/ImageWithText/ImageWithText.d.ts +1 -1
- package/dist/modules/ImageWithText/ImageWithText.es.js +28 -14
- package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -1
- package/dist/modules/ImageWithText/imageWithText.module.css.es.js +5 -3
- package/dist/modules/ImageWithText/types.d.ts +3 -0
- package/dist/modules/InfiniteScrollModule/InfiniteScrollModule.cjs.js +1 -0
- package/dist/modules/InfiniteScrollModule/InfiniteScrollModule.d.ts +7 -0
- package/dist/modules/InfiniteScrollModule/InfiniteScrollModule.es.js +8 -0
- package/dist/modules/InfiniteScrollModule/index.d.ts +2 -0
- package/dist/modules/InfiniteScrollModule/infiniteScrolle.module.css.cjs.js +1 -0
- package/dist/modules/InfiniteScrollModule/infiniteScrolle.module.css.es.js +11 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +15 -16
- package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/useProductsData.es.js +13 -12
- package/dist/pageComponents/BiologicalAge/BiologicalAge.cjs.js +1 -1
- package/dist/pageComponents/BiologicalAge/BiologicalAge.es.js +4 -3
- package/dist/pageComponents/BiologicalAge/biologicalAge.module.css.cjs.js +1 -1
- package/dist/pageComponents/BiologicalAge/biologicalAge.module.css.es.js +10 -8
- package/package.json +6 -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"),l=require("../../utils/cn/cn.cjs.js"),s=require("../Typography/Typography.cjs.js"),d=require("../IconBracket/IconBracket.cjs.js"),u=require("../Icon/Icon.cjs.js"),n=require("./contentTabs.module.css.cjs.js");function m({tabs:c,activeTab:t,colorScheme:r,activeWithArrow:o,onTabClick:i}){return e.jsx("div",{className:l.cn(n.default.root,n.default[r]),children:c.map(a=>e.jsxs("div",{className:n.default.tabWrap,children:[e.jsxs("button",{className:l.cn(n.default.tab,{[n.default.activeTab]:t.label===a.label}),onClick:()=>i(a),children:[t.label===a.label&&o&&e.jsx("div",{className:n.default.arrow,children:e.jsx(d.IconBracket,{variant:"arrow",size:"md",colorScheme:r})}),a.icon&&e.jsx(u.Icon,{name:a.icon,className:n.default.icon}),e.jsx(s.Typography,{defaultVariant:"headingXxs",children:a.label})]}),e.jsx("div",{className:l.cn(n.default.itemContent,{[n.default.itemContentOpen]:t.label===a.label}),children:e.jsx("div",{className:n.default.itemContentInner,children:e.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",children:a.description})})})]},String(a.label)))})}exports.ContentTabs=m;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { cn as l } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { Typography as t } from "../Typography/Typography.es.js";
|
|
5
5
|
import { IconBracket as d } from "../IconBracket/IconBracket.es.js";
|
|
6
6
|
import { Icon as p } from "../Icon/Icon.es.js";
|
|
7
7
|
import e from "./contentTabs.module.css.es.js";
|
|
8
|
-
function b({ tabs: m, activeTab:
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function b({ tabs: m, activeTab: i, colorScheme: a, activeWithArrow: s, onTabClick: c }) {
|
|
9
|
+
return /* @__PURE__ */ r("div", { className: l(e.root, e[a]), children: m.map((n) => /* @__PURE__ */ o("div", { className: e.tabWrap, children: [
|
|
10
10
|
/* @__PURE__ */ o(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
13
13
|
className: l(e.tab, {
|
|
14
|
-
[e.activeTab]:
|
|
14
|
+
[e.activeTab]: i.label === n.label
|
|
15
15
|
}),
|
|
16
16
|
onClick: () => c(n),
|
|
17
17
|
children: [
|
|
18
|
-
|
|
19
|
-
n.icon && /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
18
|
+
i.label === n.label && s && /* @__PURE__ */ r("div", { className: e.arrow, children: /* @__PURE__ */ r(d, { variant: "arrow", size: "md", colorScheme: a }) }),
|
|
19
|
+
n.icon && /* @__PURE__ */ r(p, { name: n.icon, className: e.icon }),
|
|
20
|
+
/* @__PURE__ */ r(t, { defaultVariant: "headingXxs", children: n.label })
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ r(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className: l(e.itemContent, { [e.itemContentOpen]:
|
|
28
|
-
children: /* @__PURE__ */
|
|
27
|
+
className: l(e.itemContent, { [e.itemContentOpen]: i.label === n.label }),
|
|
28
|
+
children: /* @__PURE__ */ r("div", { className: e.itemContentInner, children: /* @__PURE__ */ r(t, { as: "p", defaultVariant: "bodySm", children: n.description }) })
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
] }, String(n.label))) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),q=require("../../node_modules/swiper/modules/navigation.cjs.js"),p=require("../../node_modules/swiper/swiper-react.cjs.js"),f=require("../../utils/cn/cn.cjs.js"),x=require("../../utils/useSwiper/useSwiper.cjs.js"),h=require("../ProgressButton/ProgressButton.cjs.js"),j=require("../ProductGalleryCard/ProductGalleryCard.cjs.js");;/* empty css */;/* empty css */;/* empty css */const r=require("./productGallery.module.css.cjs.js"),b=[q.default],v=({slides:i,header:m,isTabbed:l=!1})=>{const{swiper:t,activeIndex:n,isEnd:a,setIsEnd:w,hideNav:S,handleSlideChange:g,handlePrevClick:o,handleNextClick:c,onSwiperInit:C,handleSwiperResize:P,handleSlideTo:d}=x.useSwiper();return u.useEffect(()=>{t==null||t.setProgress(0,300)},[t]),u.useEffect(()=>{i.length&&d(0)},[i,d]),e.jsxs("div",{className:r.default.root,children:[e.jsxs("div",{className:f.cn(r.default.topRow,{[r.default.topRowTabbed]:l}),children:[e.jsx("div",{className:r.default.headerWrapper,children:m}),e.jsx("div",{className:f.cn(r.default.swiperControlsDesktop,{[r.default.swiperControlsHidden]:S,[r.default.swiperControlsTabbed]:l}),children:e.jsx(h.ProgressButton,{left:{disabled:n<=0,onClick:o},right:{disabled:a,onClick:c}})})]}),e.jsx("div",{className:r.default.carouselArea,children:e.jsx(p.Swiper,{onSwiper:C,onResize:P,onSlideChange:g,onReachEnd:()=>w(!0),modules:b,spaceBetween:0,slidesPerView:"auto",className:r.default.swiper,children:i.map(s=>e.jsx(p.SwiperSlide,{className:r.default.swiperSlide,children:e.jsx(j.ProductGalleryCard,{name:s.name,price:s.price,image:s.image,link:s.link,buttons:s.buttons})},`${s.name}_${s.link}`))})}),e.jsx("div",{className:r.default.swiperControlsMobile,children:e.jsx(h.ProgressButton,{left:{disabled:n<=0,onClick:o},right:{disabled:a,onClick:c}})})]})};exports.ProductGallery=v;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { TProductGalleryCardView } from '../ProductGalleryCard';
|
|
2
3
|
|
|
3
4
|
export type TProductGalleryProps = {
|
|
4
5
|
header: ReactNode;
|
|
5
|
-
slides:
|
|
6
|
+
slides: Array<TProductGalleryCardView>;
|
|
6
7
|
isTabbed?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const ProductGallery: ({ slides, header, isTabbed }: TProductGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect as p } from "react";
|
|
4
|
-
import
|
|
5
|
-
import { Swiper as
|
|
6
|
-
import { cn as
|
|
4
|
+
import k from "../../node_modules/swiper/modules/navigation.es.js";
|
|
5
|
+
import { Swiper as v, SwiperSlide as b } from "../../node_modules/swiper/swiper-react.es.js";
|
|
6
|
+
import { cn as h } from "../../utils/cn/cn.es.js";
|
|
7
7
|
import { useSwiper as P } from "../../utils/useSwiper/useSwiper.es.js";
|
|
8
|
-
import { ProgressButton as
|
|
8
|
+
import { ProgressButton as f } from "../ProgressButton/ProgressButton.es.js";
|
|
9
|
+
import { ProductGalleryCard as E } from "../ProductGalleryCard/ProductGalleryCard.es.js";
|
|
9
10
|
/* empty css */
|
|
10
11
|
/* empty css */
|
|
11
12
|
/* empty css */
|
|
12
13
|
import e from "./productGallery.module.css.es.js";
|
|
13
|
-
const R = [
|
|
14
|
+
const R = [k], $ = ({ slides: n, header: w, isTabbed: t = !1 }) => {
|
|
14
15
|
const {
|
|
15
|
-
swiper:
|
|
16
|
-
activeIndex:
|
|
17
|
-
isEnd:
|
|
18
|
-
setIsEnd:
|
|
19
|
-
hideNav:
|
|
20
|
-
handleSlideChange:
|
|
21
|
-
handlePrevClick:
|
|
22
|
-
handleNextClick:
|
|
16
|
+
swiper: o,
|
|
17
|
+
activeIndex: a,
|
|
18
|
+
isEnd: l,
|
|
19
|
+
setIsEnd: u,
|
|
20
|
+
hideNav: C,
|
|
21
|
+
handleSlideChange: S,
|
|
22
|
+
handlePrevClick: s,
|
|
23
|
+
handleNextClick: d,
|
|
23
24
|
onSwiperInit: N,
|
|
24
|
-
handleSwiperResize:
|
|
25
|
-
handleSlideTo:
|
|
25
|
+
handleSwiperResize: g,
|
|
26
|
+
handleSlideTo: c
|
|
26
27
|
} = P();
|
|
27
28
|
return p(() => {
|
|
28
|
-
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
}, [
|
|
32
|
-
/* @__PURE__ */
|
|
29
|
+
o == null || o.setProgress(0, 300);
|
|
30
|
+
}, [o]), p(() => {
|
|
31
|
+
n.length && c(0);
|
|
32
|
+
}, [n, c]), /* @__PURE__ */ m("div", { className: e.root, children: [
|
|
33
|
+
/* @__PURE__ */ m(
|
|
33
34
|
"div",
|
|
34
35
|
{
|
|
35
|
-
className:
|
|
36
|
-
[e.topRowTabbed]:
|
|
36
|
+
className: h(e.topRow, {
|
|
37
|
+
[e.topRowTabbed]: t
|
|
37
38
|
}),
|
|
38
39
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ r("div", { className: e.headerWrapper, children: w }),
|
|
41
|
+
/* @__PURE__ */ r(
|
|
41
42
|
"div",
|
|
42
43
|
{
|
|
43
|
-
className:
|
|
44
|
-
[e.swiperControlsHidden]:
|
|
45
|
-
[e.swiperControlsTabbed]:
|
|
44
|
+
className: h(e.swiperControlsDesktop, {
|
|
45
|
+
[e.swiperControlsHidden]: C,
|
|
46
|
+
[e.swiperControlsTabbed]: t
|
|
46
47
|
}),
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
-
|
|
48
|
+
children: /* @__PURE__ */ r(
|
|
49
|
+
f,
|
|
49
50
|
{
|
|
50
51
|
left: {
|
|
51
|
-
disabled:
|
|
52
|
-
onClick:
|
|
52
|
+
disabled: a <= 0,
|
|
53
|
+
onClick: s
|
|
53
54
|
},
|
|
54
55
|
right: {
|
|
55
|
-
disabled:
|
|
56
|
-
onClick:
|
|
56
|
+
disabled: l,
|
|
57
|
+
onClick: d
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
)
|
|
@@ -62,35 +63,44 @@ const R = [b], G = ({ slides: o, header: w, isTabbed: s = !1 }) => {
|
|
|
62
63
|
]
|
|
63
64
|
}
|
|
64
65
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
66
|
+
/* @__PURE__ */ r("div", { className: e.carouselArea, children: /* @__PURE__ */ r(
|
|
67
|
+
v,
|
|
67
68
|
{
|
|
68
69
|
onSwiper: N,
|
|
69
|
-
onResize:
|
|
70
|
-
onSlideChange:
|
|
71
|
-
onReachEnd: () =>
|
|
70
|
+
onResize: g,
|
|
71
|
+
onSlideChange: S,
|
|
72
|
+
onReachEnd: () => u(!0),
|
|
72
73
|
modules: R,
|
|
73
74
|
spaceBetween: 0,
|
|
74
75
|
slidesPerView: "auto",
|
|
75
76
|
className: e.swiper,
|
|
76
|
-
children:
|
|
77
|
+
children: n.map((i) => /* @__PURE__ */ r(b, { className: e.swiperSlide, children: /* @__PURE__ */ r(
|
|
78
|
+
E,
|
|
79
|
+
{
|
|
80
|
+
name: i.name,
|
|
81
|
+
price: i.price,
|
|
82
|
+
image: i.image,
|
|
83
|
+
link: i.link,
|
|
84
|
+
buttons: i.buttons
|
|
85
|
+
}
|
|
86
|
+
) }, `${i.name}_${i.link}`))
|
|
77
87
|
}
|
|
78
88
|
) }),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
89
|
+
/* @__PURE__ */ r("div", { className: e.swiperControlsMobile, children: /* @__PURE__ */ r(
|
|
90
|
+
f,
|
|
81
91
|
{
|
|
82
92
|
left: {
|
|
83
|
-
disabled:
|
|
84
|
-
onClick:
|
|
93
|
+
disabled: a <= 0,
|
|
94
|
+
onClick: s
|
|
85
95
|
},
|
|
86
96
|
right: {
|
|
87
|
-
disabled:
|
|
88
|
-
onClick:
|
|
97
|
+
disabled: l,
|
|
98
|
+
onClick: d
|
|
89
99
|
}
|
|
90
100
|
}
|
|
91
101
|
) })
|
|
92
102
|
] });
|
|
93
103
|
};
|
|
94
104
|
export {
|
|
95
|
-
|
|
105
|
+
$ as ProductGallery
|
|
96
106
|
};
|