@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.
- package/README.md +11 -1
- package/dist/components/Button/Button.es.js +24 -6
- package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -13
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +49 -59
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +10 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +52 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.cjs.js +1 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.es.js +15 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/index.d.ts +1 -0
- package/dist/components/ComplexTooltip/index.d.ts +1 -0
- package/dist/components/ComplexTooltip/types.d.ts +13 -0
- package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
- package/dist/components/FilterMenu/FilterMenu.es.js +17 -2
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +9 -1
- package/dist/components/Label/Label.es.js +9 -1
- package/dist/components/Pricing/Pricing.cjs.js +1 -0
- package/dist/components/Pricing/Pricing.d.ts +3 -0
- package/dist/components/Pricing/Pricing.es.js +41 -0
- package/dist/components/Pricing/components/BenefitItem/BenefitItem.cjs.js +1 -0
- package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +8 -0
- package/dist/components/Pricing/components/BenefitItem/BenefitItem.es.js +10 -0
- package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
- package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.es.js +7 -0
- package/dist/components/Pricing/components/BenefitItem/index.d.ts +1 -0
- package/dist/components/Pricing/components/index.d.ts +1 -0
- package/dist/components/Pricing/index.d.ts +2 -0
- package/dist/components/Pricing/pricing.module.css.cjs.js +1 -0
- package/dist/components/Pricing/pricing.module.css.es.js +25 -0
- package/dist/components/Pricing/types.d.ts +17 -0
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +5 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +37 -15
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +14 -12
- package/dist/components/ProductPairs/ProductPairs.cjs.js +1 -0
- package/dist/components/ProductPairs/ProductPairs.d.ts +7 -0
- package/dist/components/ProductPairs/ProductPairs.es.js +55 -0
- package/dist/components/ProductPairs/index.d.ts +1 -0
- package/dist/components/ProductPairs/productPairs.module.css.cjs.js +1 -0
- package/dist/components/ProductPairs/productPairs.module.css.es.js +17 -0
- package/dist/components/ProgressButton/ProgressButton.es.js +9 -1
- package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
- package/dist/components/StepsCarousel/StepsCarousel.es.js +110 -56
- package/dist/components/StudyGridCard/StudyGridCard.es.js +36 -6
- package/dist/components/Tabs/TabsWithFade.es.js +10 -1
- package/dist/components/Typography/Typography.es.js +8 -1
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Benefits/Benefits.cjs.js +1 -0
- package/dist/modules/Benefits/Benefits.d.ts +14 -0
- package/dist/modules/Benefits/Benefits.es.js +30 -0
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/benefits.module.css.es.js +25 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.d.ts +7 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +13 -0
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.es.js +11 -0
- package/dist/modules/Benefits/components/BenefitItem/index.d.ts +1 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.d.ts +6 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +8 -0
- package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.es.js +9 -0
- package/dist/modules/Benefits/components/BenefitTag/index.d.ts +1 -0
- package/dist/modules/Benefits/components/index.d.ts +2 -0
- package/dist/modules/Benefits/index.d.ts +1 -0
- package/dist/modules/Compare/Compare.d.ts +3 -0
- package/dist/modules/Compare/index.d.ts +1 -0
- package/dist/modules/Compare/types.d.ts +9 -0
- package/dist/modules/Comparison/Comparison.es.js +20 -5
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +14 -5
- package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +9 -1
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +32 -17
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +21 -2
- package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -1
- package/dist/modules/OptimalHealth/OptimalHealth.es.js +6 -6
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -1
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +53 -31
- package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -1
- package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +25 -5
- package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -1
- package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +17 -15
- package/dist/modules/OurProcess/OurProcess.cjs.js +1 -1
- package/dist/modules/OurProcess/OurProcess.d.ts +3 -2
- package/dist/modules/OurProcess/OurProcess.es.js +17 -8
- package/dist/modules/PairedProducts/PairedProducts.cjs.js +1 -0
- package/dist/modules/PairedProducts/PairedProducts.d.ts +12 -0
- package/dist/modules/PairedProducts/PairedProducts.es.js +17 -0
- package/dist/modules/PairedProducts/index.d.ts +1 -0
- package/dist/modules/PairedProducts/pairedProducts.module.css.cjs.js +1 -0
- package/dist/modules/PairedProducts/pairedProducts.module.css.es.js +17 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +1 -1
- package/dist/modules/ProductsDisplay/types.d.ts +1 -1
- package/dist/modules/TypesOfTests/TypesOfTests.cjs.js +1 -0
- package/dist/modules/TypesOfTests/TypesOfTests.d.ts +10 -0
- package/dist/modules/TypesOfTests/TypesOfTests.es.js +106 -0
- package/dist/modules/TypesOfTests/index.d.ts +1 -0
- package/dist/modules/TypesOfTests/types.d.ts +8 -0
- package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -0
- package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +31 -0
- package/dist/modules/YourProtocol/YourProtocol.es.js +19 -2
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +18 -5
- package/dist/node_modules/gsap/CSSPlugin.cjs.js +8 -0
- package/dist/node_modules/gsap/CSSPlugin.es.js +423 -0
- package/dist/node_modules/gsap/Observer.cjs.js +8 -0
- package/dist/node_modules/gsap/Observer.es.js +242 -0
- package/dist/node_modules/gsap/ScrollTrigger.cjs.js +8 -0
- package/dist/node_modules/gsap/ScrollTrigger.es.js +859 -0
- package/dist/node_modules/gsap/gsap-core.cjs.js +8 -0
- package/dist/node_modules/gsap/gsap-core.es.js +1651 -0
- package/dist/node_modules/gsap/index.cjs.js +1 -0
- package/dist/node_modules/gsap/index.es.js +13 -0
- package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +1 -0
- package/dist/pageComponents/StillHaveQuestions/index.d.ts +1 -0
- package/dist/utils/useIsMobile.cjs.js +1 -0
- package/dist/utils/useIsMobile.d.ts +1 -0
- package/dist/utils/useIsMobile.es.js +12 -0
- package/package.json +44 -4
- package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +0 -1
- package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +0 -17
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +0 -1
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +0 -13
|
@@ -1,21 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */ a(
|
|
12
|
-
/* @__PURE__ */ a(
|
|
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:
|
|
15
|
-
/* @__PURE__ */ a(
|
|
16
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
4
|
-
productInfo: r,
|
|
3
|
+
productInfo: t,
|
|
5
4
|
title: e,
|
|
6
|
-
price:
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
price: r,
|
|
6
|
+
buttonContainerDesktop: _,
|
|
7
|
+
hoverableButtons: l,
|
|
8
|
+
buttonContainerMobile: n,
|
|
9
|
+
productImage: d
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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(
|
|
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
|
|
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
|
|
3
|
-
import { useState as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Label as
|
|
6
|
-
import { ProgressButton as
|
|
7
|
-
import { Typography as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
const [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
}, [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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:
|
|
111
|
+
invert: i === "dark",
|
|
58
112
|
left: {
|
|
59
|
-
disabled:
|
|
60
|
-
onClick: () =>
|
|
113
|
+
disabled: c <= 0,
|
|
114
|
+
onClick: () => o((e) => e - 1)
|
|
61
115
|
},
|
|
62
116
|
right: {
|
|
63
|
-
disabled:
|
|
64
|
-
onClick: () =>
|
|
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
|
-
|
|
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(
|
|
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(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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(
|
|
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(
|
|
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
|