@zenpatient-org/healthspan-marketing-ui 0.1.21 → 0.1.23

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 (126) hide show
  1. package/README.md +11 -1
  2. package/dist/components/Button/Button.es.js +24 -6
  3. package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
  4. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -13
  5. package/dist/components/ComplexTooltip/ComplexTooltip.es.js +49 -59
  6. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -0
  7. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +10 -0
  8. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +52 -0
  9. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.cjs.js +1 -0
  10. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.es.js +15 -0
  11. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/index.d.ts +1 -0
  12. package/dist/components/ComplexTooltip/index.d.ts +1 -0
  13. package/dist/components/ComplexTooltip/types.d.ts +13 -0
  14. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
  15. package/dist/components/FilterMenu/FilterMenu.es.js +17 -2
  16. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +9 -1
  17. package/dist/components/Label/Label.es.js +9 -1
  18. package/dist/components/Pricing/Pricing.cjs.js +1 -0
  19. package/dist/components/Pricing/Pricing.d.ts +3 -0
  20. package/dist/components/Pricing/Pricing.es.js +41 -0
  21. package/dist/components/Pricing/components/BenefitItem/BenefitItem.cjs.js +1 -0
  22. package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +8 -0
  23. package/dist/components/Pricing/components/BenefitItem/BenefitItem.es.js +10 -0
  24. package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
  25. package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.es.js +7 -0
  26. package/dist/components/Pricing/components/BenefitItem/index.d.ts +1 -0
  27. package/dist/components/Pricing/components/index.d.ts +1 -0
  28. package/dist/components/Pricing/index.d.ts +2 -0
  29. package/dist/components/Pricing/pricing.module.css.cjs.js +1 -0
  30. package/dist/components/Pricing/pricing.module.css.es.js +25 -0
  31. package/dist/components/Pricing/types.d.ts +17 -0
  32. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  33. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +5 -1
  34. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +37 -15
  35. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
  36. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +14 -12
  37. package/dist/components/ProductPairs/ProductPairs.cjs.js +1 -0
  38. package/dist/components/ProductPairs/ProductPairs.d.ts +7 -0
  39. package/dist/components/ProductPairs/ProductPairs.es.js +55 -0
  40. package/dist/components/ProductPairs/index.d.ts +1 -0
  41. package/dist/components/ProductPairs/productPairs.module.css.cjs.js +1 -0
  42. package/dist/components/ProductPairs/productPairs.module.css.es.js +17 -0
  43. package/dist/components/ProgressButton/ProgressButton.es.js +9 -1
  44. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
  45. package/dist/components/StepsCarousel/StepsCarousel.es.js +110 -56
  46. package/dist/components/StudyGridCard/StudyGridCard.es.js +36 -6
  47. package/dist/components/Tabs/TabsWithFade.es.js +10 -1
  48. package/dist/components/Typography/Typography.es.js +8 -1
  49. package/dist/healthspan-marketing-ui.css +1 -1
  50. package/dist/modules/Benefits/Benefits.cjs.js +1 -0
  51. package/dist/modules/Benefits/Benefits.d.ts +14 -0
  52. package/dist/modules/Benefits/Benefits.es.js +30 -0
  53. package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -0
  54. package/dist/modules/Benefits/benefits.module.css.es.js +25 -0
  55. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.cjs.js +1 -0
  56. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.d.ts +7 -0
  57. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +13 -0
  58. package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
  59. package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.es.js +11 -0
  60. package/dist/modules/Benefits/components/BenefitItem/index.d.ts +1 -0
  61. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.cjs.js +1 -0
  62. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.d.ts +6 -0
  63. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +8 -0
  64. package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.cjs.js +1 -0
  65. package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.es.js +9 -0
  66. package/dist/modules/Benefits/components/BenefitTag/index.d.ts +1 -0
  67. package/dist/modules/Benefits/components/index.d.ts +2 -0
  68. package/dist/modules/Benefits/index.d.ts +1 -0
  69. package/dist/modules/Compare/Compare.d.ts +3 -0
  70. package/dist/modules/Compare/index.d.ts +1 -0
  71. package/dist/modules/Compare/types.d.ts +9 -0
  72. package/dist/modules/Comparison/Comparison.es.js +20 -5
  73. package/dist/modules/FeaturedIn/FeaturedIn.es.js +14 -5
  74. package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +9 -1
  75. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +32 -17
  76. package/dist/modules/FollowTheScience/FollowTheScience.es.js +21 -2
  77. package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -1
  78. package/dist/modules/OptimalHealth/OptimalHealth.es.js +6 -6
  79. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -1
  80. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +53 -31
  81. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -1
  82. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +25 -5
  83. package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -1
  84. package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +17 -15
  85. package/dist/modules/OurProcess/OurProcess.cjs.js +1 -1
  86. package/dist/modules/OurProcess/OurProcess.d.ts +3 -2
  87. package/dist/modules/OurProcess/OurProcess.es.js +17 -8
  88. package/dist/modules/PairedProducts/PairedProducts.cjs.js +1 -0
  89. package/dist/modules/PairedProducts/PairedProducts.d.ts +12 -0
  90. package/dist/modules/PairedProducts/PairedProducts.es.js +17 -0
  91. package/dist/modules/PairedProducts/index.d.ts +1 -0
  92. package/dist/modules/PairedProducts/pairedProducts.module.css.cjs.js +1 -0
  93. package/dist/modules/PairedProducts/pairedProducts.module.css.es.js +17 -0
  94. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
  95. package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -1
  96. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +1 -1
  97. package/dist/modules/ProductsDisplay/types.d.ts +1 -1
  98. package/dist/modules/TypesOfTests/TypesOfTests.cjs.js +1 -0
  99. package/dist/modules/TypesOfTests/TypesOfTests.d.ts +10 -0
  100. package/dist/modules/TypesOfTests/TypesOfTests.es.js +106 -0
  101. package/dist/modules/TypesOfTests/index.d.ts +1 -0
  102. package/dist/modules/TypesOfTests/types.d.ts +8 -0
  103. package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -0
  104. package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +31 -0
  105. package/dist/modules/YourProtocol/YourProtocol.es.js +19 -2
  106. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +18 -5
  107. package/dist/node_modules/gsap/CSSPlugin.cjs.js +8 -0
  108. package/dist/node_modules/gsap/CSSPlugin.es.js +423 -0
  109. package/dist/node_modules/gsap/Observer.cjs.js +8 -0
  110. package/dist/node_modules/gsap/Observer.es.js +242 -0
  111. package/dist/node_modules/gsap/ScrollTrigger.cjs.js +8 -0
  112. package/dist/node_modules/gsap/ScrollTrigger.es.js +859 -0
  113. package/dist/node_modules/gsap/gsap-core.cjs.js +8 -0
  114. package/dist/node_modules/gsap/gsap-core.es.js +1651 -0
  115. package/dist/node_modules/gsap/index.cjs.js +1 -0
  116. package/dist/node_modules/gsap/index.es.js +13 -0
  117. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +1 -0
  118. package/dist/pageComponents/StillHaveQuestions/index.d.ts +1 -0
  119. package/dist/utils/useIsMobile.cjs.js +1 -0
  120. package/dist/utils/useIsMobile.d.ts +1 -0
  121. package/dist/utils/useIsMobile.es.js +12 -0
  122. package/package.json +44 -4
  123. package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +0 -1
  124. package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +0 -17
  125. package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +0 -1
  126. package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +0 -13
@@ -1,21 +1,43 @@
1
- import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
- import { Button as n } from "../Button/Button.es.js";
3
- import { Typography as s } from "../Typography/Typography.es.js";
4
- import l from "./productGalleryCard.module.css.es.js";
5
- const g = ({ name: c, price: m, image: d, link: p, buttons: i }) => {
6
- const o = (e) => {
7
- e.preventDefault(), e.stopPropagation();
1
+ import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
+ import { Button as s } from "../Button/Button.es.js";
3
+ import { Typography as c } from "../Typography/Typography.es.js";
4
+ import { cn as m } from "../../utils/cn/cn.es.js";
5
+ import e from "./productGalleryCard.module.css.es.js";
6
+ const k = ({
7
+ name: d,
8
+ price: p,
9
+ image: h,
10
+ link: u,
11
+ buttons: t,
12
+ isHoverable: o = !0
13
+ }) => {
14
+ const i = (r) => {
15
+ r.preventDefault(), r.stopPropagation();
8
16
  };
9
- return /* @__PURE__ */ t("a", { href: p, target: "_blank", rel: "noopener noreferrer", className: l.root, children: [
10
- /* @__PURE__ */ t("div", { className: l.productInfo, children: [
11
- /* @__PURE__ */ a(s, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: l.title, children: c }),
12
- /* @__PURE__ */ a(s, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: l.price, children: m })
17
+ return /* @__PURE__ */ n("a", { href: u, target: "_blank", rel: "noopener noreferrer", className: e.root, children: [
18
+ /* @__PURE__ */ n("div", { className: e.productInfo, children: [
19
+ /* @__PURE__ */ a(c, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: e.title, children: d }),
20
+ /* @__PURE__ */ a(c, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: e.price, children: p })
13
21
  ] }),
14
- /* @__PURE__ */ a("img", { src: d, alt: "product image", className: l.productImage }),
15
- /* @__PURE__ */ a("div", { onClick: o, className: l.buttonContainerDesktop, children: i.map((e, r) => /* @__PURE__ */ a(n, { size: "sm", ...e, children: e.label }, r)) }),
16
- /* @__PURE__ */ a("div", { onClick: o, className: l.buttonContainerMobile, children: i.map((e, r) => /* @__PURE__ */ a(n, { size: "xs", ...e, children: e.label }, r)) })
22
+ /* @__PURE__ */ a("img", { src: h, alt: "product image", className: e.productImage }),
23
+ /* @__PURE__ */ a(
24
+ "div",
25
+ {
26
+ onClick: i,
27
+ className: m(e.buttonContainerDesktop, o && e.hoverableButtons),
28
+ children: t.map((r, l) => /* @__PURE__ */ a(s, { size: "sm", ...r, children: r.label }, l))
29
+ }
30
+ ),
31
+ /* @__PURE__ */ a(
32
+ "div",
33
+ {
34
+ onClick: i,
35
+ className: m(e.buttonContainerMobile, o && e.hoverableButtons),
36
+ children: t.map((r, l) => /* @__PURE__ */ a(s, { size: "xs", ...r, children: r.label }, l))
37
+ }
38
+ )
17
39
  ] });
18
40
  };
19
41
  export {
20
- g as ProductGalleryCard
42
+ k as ProductGalleryCard
21
43
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGalleryCard-module__root___oGJjs",t="productGalleryCard-module__buttonContainerDesktop___A9g0U",e="productGalleryCard-module__productInfo___IZeoL",r="productGalleryCard-module__title___dnRaF",n="productGalleryCard-module__price___dNy0O",u="productGalleryCard-module__buttonContainerMobile___molmH",l="productGalleryCard-module__productImage___uSNso",_={root:o,buttonContainerDesktop:t,productInfo:e,title:r,price:n,buttonContainerMobile:u,productImage:l};exports.buttonContainerDesktop=t;exports.buttonContainerMobile=u;exports.default=_;exports.price=n;exports.productImage=l;exports.productInfo=e;exports.root=o;exports.title=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGalleryCard-module__root___oGJjs",t="productGalleryCard-module__productInfo___IZeoL",e="productGalleryCard-module__title___dnRaF",r="productGalleryCard-module__price___dNy0O",l="productGalleryCard-module__buttonContainerDesktop___A9g0U",n="productGalleryCard-module__hoverableButtons___9AE80",u="productGalleryCard-module__buttonContainerMobile___molmH",_="productGalleryCard-module__productImage___uSNso",d={root:o,productInfo:t,title:e,price:r,buttonContainerDesktop:l,hoverableButtons:n,buttonContainerMobile:u,productImage:_};exports.buttonContainerDesktop=l;exports.buttonContainerMobile=u;exports.default=d;exports.hoverableButtons=n;exports.price=r;exports.productImage=_;exports.productInfo=t;exports.root=o;exports.title=e;
@@ -1,19 +1,21 @@
1
- const o = "productGalleryCard-module__root___oGJjs", t = "productGalleryCard-module__buttonContainerDesktop___A9g0U", r = "productGalleryCard-module__productInfo___IZeoL", e = "productGalleryCard-module__title___dnRaF", _ = "productGalleryCard-module__price___dNy0O", d = "productGalleryCard-module__buttonContainerMobile___molmH", l = "productGalleryCard-module__productImage___uSNso", n = {
1
+ const o = "productGalleryCard-module__root___oGJjs", t = "productGalleryCard-module__productInfo___IZeoL", e = "productGalleryCard-module__title___dnRaF", r = "productGalleryCard-module__price___dNy0O", _ = "productGalleryCard-module__buttonContainerDesktop___A9g0U", l = "productGalleryCard-module__hoverableButtons___9AE80", n = "productGalleryCard-module__buttonContainerMobile___molmH", d = "productGalleryCard-module__productImage___uSNso", u = {
2
2
  root: o,
3
- buttonContainerDesktop: t,
4
- productInfo: r,
3
+ productInfo: t,
5
4
  title: e,
6
- price: _,
7
- buttonContainerMobile: d,
8
- productImage: l
5
+ price: r,
6
+ buttonContainerDesktop: _,
7
+ hoverableButtons: l,
8
+ buttonContainerMobile: n,
9
+ productImage: d
9
10
  };
10
11
  export {
11
- t as buttonContainerDesktop,
12
- d as buttonContainerMobile,
13
- n as default,
14
- _ as price,
15
- l as productImage,
16
- r as productInfo,
12
+ _ as buttonContainerDesktop,
13
+ n as buttonContainerMobile,
14
+ u as default,
15
+ l as hoverableButtons,
16
+ r as price,
17
+ d as productImage,
18
+ t as productInfo,
17
19
  o as root,
18
20
  e as title
19
21
  };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),P=require("../../node_modules/swiper/modules/navigation.cjs.js"),s=require("../../node_modules/swiper/swiper-react.cjs.js"),h=require("../../utils/useSwiper/useSwiper.cjs.js"),w=require("../ProgressButton/ProgressButton.cjs.js"),m=require("../ProductGalleryCard/ProductGalleryCard.cjs.js");;/* empty css */;/* empty css */;/* empty css */const r=require("./productPairs.module.css.cjs.js"),g=[P.default],q=({productCards:i})=>{const{isBeginning:l,isEnd:t,setIsEnd:n,handleSlideChange:a,handlePrevClick:o,handleNextClick:d,onSwiperInit:c,handleSwiperResize:u}=h.useSwiper();return e.jsxs("div",{className:r.default.root,children:[e.jsx("div",{className:r.default.carouselArea,children:e.jsx(s.Swiper,{onSwiper:c,onResize:u,onSlideChange:a,onReachEnd:()=>n(!0),modules:g,spaceBetween:0,slidesPerView:"auto",className:r.default.swiper,children:i.slice(0,2).map((p,S)=>e.jsx(s.SwiperSlide,{className:r.default.swiperSlide,children:e.jsx("div",{className:r.default.card,children:e.jsx(m.ProductGalleryCard,{...p,isHoverable:!1})})},S))})}),e.jsx("div",{className:r.default.swiperControlsMobile,children:e.jsx(w.ProgressButton,{left:{disabled:l,onClick:o},right:{disabled:t,onClick:d}})})]})};exports.ProductPairs=q;
@@ -0,0 +1,7 @@
1
+ import { TProductGalleryCardView } from '../ProductGalleryCard';
2
+
3
+ type ProductPairsProps = {
4
+ productCards: Array<TProductGalleryCardView>;
5
+ };
6
+ export declare const ProductPairs: ({ productCards }: ProductPairsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,55 @@
1
+ "use client";
2
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
3
+ import S from "../../node_modules/swiper/modules/navigation.es.js";
4
+ import { Swiper as w, SwiperSlide as u } from "../../node_modules/swiper/swiper-react.es.js";
5
+ import { useSwiper as f } from "../../utils/useSwiper/useSwiper.es.js";
6
+ import { ProgressButton as C } from "../ProgressButton/ProgressButton.es.js";
7
+ import { ProductGalleryCard as N } from "../ProductGalleryCard/ProductGalleryCard.es.js";
8
+ /* empty css */
9
+ /* empty css */
10
+ /* empty css */
11
+ import i from "./productPairs.module.css.es.js";
12
+ const g = [S], y = ({ productCards: r }) => {
13
+ const {
14
+ isBeginning: s,
15
+ isEnd: o,
16
+ setIsEnd: l,
17
+ handleSlideChange: n,
18
+ handlePrevClick: a,
19
+ handleNextClick: t,
20
+ onSwiperInit: d,
21
+ handleSwiperResize: c
22
+ } = f();
23
+ return /* @__PURE__ */ h("div", { className: i.root, children: [
24
+ /* @__PURE__ */ e("div", { className: i.carouselArea, children: /* @__PURE__ */ e(
25
+ w,
26
+ {
27
+ onSwiper: d,
28
+ onResize: c,
29
+ onSlideChange: n,
30
+ onReachEnd: () => l(!0),
31
+ modules: g,
32
+ spaceBetween: 0,
33
+ slidesPerView: "auto",
34
+ className: i.swiper,
35
+ children: r.slice(0, 2).map((m, p) => /* @__PURE__ */ e(u, { className: i.swiperSlide, children: /* @__PURE__ */ e("div", { className: i.card, children: /* @__PURE__ */ e(N, { ...m, isHoverable: !1 }) }) }, p))
36
+ }
37
+ ) }),
38
+ /* @__PURE__ */ e("div", { className: i.swiperControlsMobile, children: /* @__PURE__ */ e(
39
+ C,
40
+ {
41
+ left: {
42
+ disabled: s,
43
+ onClick: a
44
+ },
45
+ right: {
46
+ disabled: o,
47
+ onClick: t
48
+ }
49
+ }
50
+ ) })
51
+ ] });
52
+ };
53
+ export {
54
+ y as ProductPairs
55
+ };
@@ -0,0 +1 @@
1
+ export { ProductPairs } from './ProductPairs';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="productPairs-module__root___TubBM",e="productPairs-module__carouselArea___ukTIF",o="productPairs-module__swiper___uuzGb",s="productPairs-module__swiperControlsMobile___ar7DY",_="productPairs-module__swiperSlide___fblEe",i="productPairs-module__card___n47uN",l={root:r,carouselArea:e,swiper:o,swiperControlsMobile:s,swiperSlide:_,card:i};exports.card=i;exports.carouselArea=e;exports.default=l;exports.root=r;exports.swiper=o;exports.swiperControlsMobile=s;exports.swiperSlide=_;
@@ -0,0 +1,17 @@
1
+ const o = "productPairs-module__root___TubBM", r = "productPairs-module__carouselArea___ukTIF", e = "productPairs-module__swiper___uuzGb", s = "productPairs-module__swiperControlsMobile___ar7DY", _ = "productPairs-module__swiperSlide___fblEe", t = "productPairs-module__card___n47uN", i = {
2
+ root: o,
3
+ carouselArea: r,
4
+ swiper: e,
5
+ swiperControlsMobile: s,
6
+ swiperSlide: _,
7
+ card: t
8
+ };
9
+ export {
10
+ t as card,
11
+ r as carouselArea,
12
+ i as default,
13
+ o as root,
14
+ e as swiper,
15
+ s as swiperControlsMobile,
16
+ _ as swiperSlide
17
+ };
@@ -23,7 +23,15 @@ const c = ({ orientation: i, icon: e, disabled: n = !1, onClick: a }) => /* @__P
23
23
  children: [
24
24
  /* @__PURE__ */ t(c, { orientation: "left", icon: s.ARROW_BACK, disabled: e.disabled, onClick: e.onClick }),
25
25
  /* @__PURE__ */ t("div", { className: r(o.divider, { [o.inverted]: i }) }),
26
- /* @__PURE__ */ t(c, { orientation: "right", icon: s.ARROW_FORWARD, disabled: n.disabled, onClick: n.onClick })
26
+ /* @__PURE__ */ t(
27
+ c,
28
+ {
29
+ orientation: "right",
30
+ icon: s.ARROW_FORWARD,
31
+ disabled: n.disabled,
32
+ onClick: n.onClick
33
+ }
34
+ )
27
35
  ]
28
36
  }
29
37
  );
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),d=require("../../utils/cn/cn.cjs.js"),m=require("../Label/Label.cjs.js"),h=require("../ProgressButton/ProgressButton.cjs.js"),u=require("../Typography/Typography.cjs.js"),t=require("./stepsCarousel.module.css.cjs.js"),b=({steps:p,colorScheme:l})=>{const[r,i]=o.useState(0),n=o.useRef([]);return o.useEffect(()=>{var a;n.current[r]&&((a=n.current[r])==null||a.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},[r]),e.jsxs("div",{className:t.default.root,"data-scheme":l,children:[e.jsx("div",{className:t.default.stepsContainer,"data-scheme":l,children:p.map((a,s)=>{const c=r===s;return e.jsxs("button",{ref:f=>{n.current.splice(s,1,f)},className:d.cn(t.default.card,c&&t.default.cardActive),onClick:()=>i(s),type:"button",children:[e.jsx("div",{className:d.cn(t.default.imageWrapper,c&&t.default.imageWrapperActive),children:e.jsx("img",{src:a.image,alt:a.title,className:t.default.image})}),e.jsx("div",{className:t.default.stepLabel,children:c?e.jsxs(e.Fragment,{children:[e.jsxs(m.Label,{size:"lg",className:t.default.desktop,color:l==="dark"?"white":"black",children:["Step ",s+1]}),e.jsxs(m.Label,{size:"sm",className:t.default.mobile,color:l==="dark"?"white":"black",children:["Step ",s+1]})]}):e.jsxs(u.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:t.default.labelText,children:["Step ",s+1]})}),e.jsxs("div",{className:t.default.textContainer,children:[e.jsx(u.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:a.title}),a.description&&e.jsx(u.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:t.default.cardDescription,children:a.description})]})]},`step-${s}`)})}),e.jsx("div",{className:d.cn(t.default.mobile,t.default.progressButtonContainer),children:e.jsx(h.ProgressButton,{invert:l==="dark",left:{disabled:r<=0,onClick:()=>i(a=>a-1)},right:{disabled:r>=p.length-1,onClick:()=>i(a=>a+1)}})})]})};exports.StepsCarousel=b;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),f=require("../../utils/cn/cn.cjs.js"),p=require("../Label/Label.cjs.js"),k=require("../ProgressButton/ProgressButton.cjs.js"),m=require("../Typography/Typography.cjs.js"),a=require("./stepsCarousel.module.css.cjs.js"),T=({steps:i,colorScheme:c})=>{const[n,o]=l.useState(0),h=l.useRef([]),u=l.useRef(null),d=l.useRef(null),g=l.useCallback(e=>{u.current=e.touches[0].clientX},[]),j=l.useCallback(e=>{d.current=e.touches[0].clientX},[]),y=l.useCallback(()=>{if(u.current!==null&&d.current!==null){const e=d.current-u.current,s=50;o(r=>e>s&&r>0?r-1:e<-s&&r<i.length-1?r+1:r)}u.current=null,d.current=null},[i.length]);return l.useEffect(()=>{var e;h.current[n]&&((e=h.current[n])==null||e.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},[n]),t.jsxs("div",{className:a.default.root,"data-scheme":c,children:[t.jsx("div",{className:a.default.stepsContainer,"data-scheme":c,onTouchStart:g,onTouchMove:j,onTouchEnd:y,children:i.map((e,s)=>{const r=n===s;return t.jsxs("button",{ref:b=>{b&&(h.current[s]=b)},className:f.cn(a.default.card,r&&a.default.cardActive),onClick:()=>o(s),type:"button",children:[t.jsx("div",{className:f.cn(a.default.imageWrapper,r&&a.default.imageWrapperActive),children:t.jsx("img",{src:e.image,alt:e.title,className:a.default.image})}),t.jsx("div",{className:a.default.stepLabel,children:r?t.jsxs(t.Fragment,{children:[t.jsxs(p.Label,{size:"lg",className:a.default.desktop,color:c==="dark"?"white":"black",children:["Step ",s+1]}),t.jsxs(p.Label,{size:"sm",className:a.default.mobile,color:c==="dark"?"white":"black",children:["Step ",s+1]})]}):t.jsxs(m.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:a.default.labelText,children:["Step ",s+1]})}),t.jsxs("div",{className:a.default.textContainer,children:[t.jsx(m.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:e.title}),e.description&&t.jsx(m.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.cardDescription,children:e.description})]})]},`step-${s}`)})}),t.jsx("div",{className:f.cn(a.default.mobile,a.default.progressButtonContainer),children:t.jsx(k.ProgressButton,{invert:c==="dark",left:{disabled:n<=0,onClick:()=>o(e=>e-1)},right:{disabled:n>=i.length-1,onClick:()=>o(e=>e+1)}})})]})};exports.StepsCarousel=T;
@@ -1,72 +1,126 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as t, Fragment as u } from "react/jsx-runtime";
3
- import { useState as f, useRef as g, useEffect as v } from "react";
4
- import { cn as m } from "../../utils/cn/cn.es.js";
5
- import { Label as h } from "../Label/Label.es.js";
6
- import { ProgressButton as N } from "../ProgressButton/ProgressButton.es.js";
7
- import { Typography as d } from "../Typography/Typography.es.js";
8
- import e from "./stepsCarousel.module.css.es.js";
9
- const X = ({ steps: p, colorScheme: l }) => {
10
- const [s, c] = f(0), n = g([]);
11
- return v(() => {
12
- var a;
13
- n.current[s] && ((a = n.current[s]) == null || a.scrollIntoView({
2
+ import { jsxs as l, jsx as n, Fragment as T } from "react/jsx-runtime";
3
+ import { useState as X, useRef as h, useCallback as b, useEffect as V } from "react";
4
+ import { cn as f } from "../../utils/cn/cn.es.js";
5
+ import { Label as N } from "../Label/Label.es.js";
6
+ import { ProgressButton as y } from "../ProgressButton/ProgressButton.es.js";
7
+ import { Typography as p } from "../Typography/Typography.es.js";
8
+ import t from "./stepsCarousel.module.css.es.js";
9
+ const B = ({ steps: s, colorScheme: i }) => {
10
+ const [c, o] = X(0), m = h([]), u = h(null), d = h(null), k = b((e) => {
11
+ u.current = e.touches[0].clientX;
12
+ }, []), v = b((e) => {
13
+ d.current = e.touches[0].clientX;
14
+ }, []), C = b(() => {
15
+ if (u.current !== null && d.current !== null) {
16
+ const e = d.current - u.current, r = 50;
17
+ o((a) => e > r && a > 0 ? a - 1 : e < -r && a < s.length - 1 ? a + 1 : a);
18
+ }
19
+ u.current = null, d.current = null;
20
+ }, [s.length]);
21
+ return V(() => {
22
+ var e;
23
+ m.current[c] && ((e = m.current[c]) == null || e.scrollIntoView({
14
24
  behavior: "smooth",
15
25
  inline: "center",
16
26
  block: "nearest"
17
27
  }));
18
- }, [s]), /* @__PURE__ */ i("div", { className: e.root, "data-scheme": l, children: [
19
- /* @__PURE__ */ t("div", { className: e.stepsContainer, "data-scheme": l, children: p.map((a, r) => {
20
- const o = s === r;
21
- return /* @__PURE__ */ i(
22
- "button",
23
- {
24
- ref: (b) => {
25
- n.current.splice(r, 1, b);
26
- },
27
- className: m(e.card, o && e.cardActive),
28
- onClick: () => c(r),
29
- type: "button",
30
- children: [
31
- /* @__PURE__ */ t("div", { className: m(e.imageWrapper, o && e.imageWrapperActive), children: /* @__PURE__ */ t("img", { src: a.image, alt: a.title, className: e.image }) }),
32
- /* @__PURE__ */ t("div", { className: e.stepLabel, children: o ? /* @__PURE__ */ i(u, { children: [
33
- /* @__PURE__ */ i(h, { size: "lg", className: e.desktop, color: l === "dark" ? "white" : "black", children: [
34
- "Step ",
35
- r + 1
36
- ] }),
37
- /* @__PURE__ */ i(h, { size: "sm", className: e.mobile, color: l === "dark" ? "white" : "black", children: [
38
- "Step ",
39
- r + 1
40
- ] })
41
- ] }) : /* @__PURE__ */ i(d, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, className: e.labelText, children: [
42
- "Step ",
43
- r + 1
44
- ] }) }),
45
- /* @__PURE__ */ i("div", { className: e.textContainer, children: [
46
- /* @__PURE__ */ t(d, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: a.title }),
47
- a.description && /* @__PURE__ */ t(d, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", className: e.cardDescription, children: a.description })
48
- ] })
49
- ]
50
- },
51
- `step-${r}`
52
- );
53
- }) }),
54
- /* @__PURE__ */ t("div", { className: m(e.mobile, e.progressButtonContainer), children: /* @__PURE__ */ t(
55
- N,
28
+ }, [c]), /* @__PURE__ */ l("div", { className: t.root, "data-scheme": i, children: [
29
+ /* @__PURE__ */ n(
30
+ "div",
31
+ {
32
+ className: t.stepsContainer,
33
+ "data-scheme": i,
34
+ onTouchStart: k,
35
+ onTouchMove: v,
36
+ onTouchEnd: C,
37
+ children: s.map((e, r) => {
38
+ const a = c === r;
39
+ return /* @__PURE__ */ l(
40
+ "button",
41
+ {
42
+ ref: (g) => {
43
+ g && (m.current[r] = g);
44
+ },
45
+ className: f(t.card, a && t.cardActive),
46
+ onClick: () => o(r),
47
+ type: "button",
48
+ children: [
49
+ /* @__PURE__ */ n("div", { className: f(t.imageWrapper, a && t.imageWrapperActive), children: /* @__PURE__ */ n("img", { src: e.image, alt: e.title, className: t.image }) }),
50
+ /* @__PURE__ */ n("div", { className: t.stepLabel, children: a ? /* @__PURE__ */ l(T, { children: [
51
+ /* @__PURE__ */ l(
52
+ N,
53
+ {
54
+ size: "lg",
55
+ className: t.desktop,
56
+ color: i === "dark" ? "white" : "black",
57
+ children: [
58
+ "Step ",
59
+ r + 1
60
+ ]
61
+ }
62
+ ),
63
+ /* @__PURE__ */ l(
64
+ N,
65
+ {
66
+ size: "sm",
67
+ className: t.mobile,
68
+ color: i === "dark" ? "white" : "black",
69
+ children: [
70
+ "Step ",
71
+ r + 1
72
+ ]
73
+ }
74
+ )
75
+ ] }) : /* @__PURE__ */ l(
76
+ p,
77
+ {
78
+ defaultVariant: "labelSm",
79
+ mobileVariant: "labelXs",
80
+ emphasis: !0,
81
+ className: t.labelText,
82
+ children: [
83
+ "Step ",
84
+ r + 1
85
+ ]
86
+ }
87
+ ) }),
88
+ /* @__PURE__ */ l("div", { className: t.textContainer, children: [
89
+ /* @__PURE__ */ n(p, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: e.title }),
90
+ e.description && /* @__PURE__ */ n(
91
+ p,
92
+ {
93
+ as: "p",
94
+ defaultVariant: "bodyMd",
95
+ mobileVariant: "bodySm",
96
+ className: t.cardDescription,
97
+ children: e.description
98
+ }
99
+ )
100
+ ] })
101
+ ]
102
+ },
103
+ `step-${r}`
104
+ );
105
+ })
106
+ }
107
+ ),
108
+ /* @__PURE__ */ n("div", { className: f(t.mobile, t.progressButtonContainer), children: /* @__PURE__ */ n(
109
+ y,
56
110
  {
57
- invert: l === "dark",
111
+ invert: i === "dark",
58
112
  left: {
59
- disabled: s <= 0,
60
- onClick: () => c((a) => a - 1)
113
+ disabled: c <= 0,
114
+ onClick: () => o((e) => e - 1)
61
115
  },
62
116
  right: {
63
- disabled: s >= p.length - 1,
64
- onClick: () => c((a) => a + 1)
117
+ disabled: c >= s.length - 1,
118
+ onClick: () => o((e) => e + 1)
65
119
  }
66
120
  }
67
121
  ) })
68
122
  ] });
69
123
  };
70
124
  export {
71
- X as StepsCarousel
125
+ B as StepsCarousel
72
126
  };
@@ -17,13 +17,43 @@ function S({ title: i, link: l, inverted: o, image: c, date: u, label: n, readTi
17
17
  /* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${c})` }, children: n && /* @__PURE__ */ a(f, { ...n }) }),
18
18
  /* @__PURE__ */ t("div", { className: e.dataPart, children: [
19
19
  /* @__PURE__ */ t("div", { className: e.info, children: [
20
- /* @__PURE__ */ a(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: b(u) }),
20
+ /* @__PURE__ */ a(
21
+ r,
22
+ {
23
+ defaultVariant: "labelSm",
24
+ mobileVariant: "labelXs",
25
+ emphasis: !0,
26
+ weight: "medium",
27
+ color: "color-neutral-500",
28
+ children: b(u)
29
+ }
30
+ ),
21
31
  !!m && /* @__PURE__ */ t(h, { children: [
22
- /* @__PURE__ */ a(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: "•" }),
23
- /* @__PURE__ */ t(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: [
24
- m,
25
- " MIN READ"
26
- ] })
32
+ /* @__PURE__ */ a(
33
+ r,
34
+ {
35
+ defaultVariant: "labelSm",
36
+ mobileVariant: "labelXs",
37
+ emphasis: !0,
38
+ weight: "medium",
39
+ color: "color-neutral-500",
40
+ children: "•"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ t(
44
+ r,
45
+ {
46
+ defaultVariant: "labelSm",
47
+ mobileVariant: "labelXs",
48
+ emphasis: !0,
49
+ weight: "medium",
50
+ color: "color-neutral-500",
51
+ children: [
52
+ m,
53
+ " MIN READ"
54
+ ]
55
+ }
56
+ )
27
57
  ] })
28
58
  ] }),
29
59
  /* @__PURE__ */ a(r, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: i }),
@@ -22,7 +22,16 @@ function g({ tabs: n, activeTab: l, onTabChange: c }) {
22
22
  [r.showFadeLeft]: a,
23
23
  [r.showFadeRight]: d
24
24
  }),
25
- children: /* @__PURE__ */ o("div", { ref: s, className: r.tabsTape, children: /* @__PURE__ */ o(L, { activeTab: l, tabs: n, size: "lg", activeLinePosition: "bottom", onTabClick: c }) })
25
+ children: /* @__PURE__ */ o("div", { ref: s, className: r.tabsTape, children: /* @__PURE__ */ o(
26
+ L,
27
+ {
28
+ activeTab: l,
29
+ tabs: n,
30
+ size: "lg",
31
+ activeLinePosition: "bottom",
32
+ onTabClick: c
33
+ }
34
+ ) })
26
35
  }
27
36
  );
28
37
  }
@@ -16,7 +16,14 @@ const _ = ({
16
16
  let s = e;
17
17
  l && !e && (s = "medium");
18
18
  const n = s ? o[`weight${s.charAt(0).toUpperCase()}${s.slice(1)}`] : "", h = t.startsWith("label") && l ? o.labelEmphasis : "", f = r ? o[`mobile__${r}`] : "";
19
- return /* @__PURE__ */ y(i, { style: g(p), className: C(c, n, h, f, m), children: a });
19
+ return /* @__PURE__ */ y(
20
+ i,
21
+ {
22
+ style: g(p),
23
+ className: C(c, n, h, f, m),
24
+ children: a
25
+ }
26
+ );
20
27
  };
21
28
  export {
22
29
  _ as Typography