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