@zenpatient-org/healthspan-marketing-ui 0.1.27 → 0.1.28
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/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +16 -14
- package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +1 -0
- package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +7 -0
- package/dist/components/FAQComponent/FAQComponent.cjs.js +1 -0
- package/dist/components/FAQComponent/FAQComponent.d.ts +3 -0
- package/dist/components/FAQComponent/FAQComponent.es.js +27 -0
- package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -0
- package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.d.ts +3 -0
- package/dist/components/{Accordion/components/AccordionItem/AccordionItem.es.js → FAQComponent/components/FAQComponentItem/FAQComponentItem.es.js} +6 -7
- package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +1 -0
- package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.es.js +25 -0
- package/dist/components/FAQComponent/components/FAQComponentItem/index.d.ts +2 -0
- package/dist/components/FAQComponent/components/FAQComponentItem/types.d.ts +9 -0
- package/dist/components/FAQComponent/components/index.d.ts +1 -0
- package/dist/components/FAQComponent/faqComponent.module.css.cjs.js +1 -0
- package/dist/components/FAQComponent/faqComponent.module.css.es.js +7 -0
- package/dist/components/FAQComponent/index.d.ts +1 -0
- package/dist/components/FAQComponent/types.d.ts +10 -0
- package/dist/components/Icon/constants.cjs.js +1 -1
- package/dist/components/Icon/constants.d.ts +5 -1
- package/dist/components/Icon/constants.es.js +6 -2
- package/dist/components/Icon/iconsMap.cjs.js +1 -1
- package/dist/components/Icon/iconsMap.es.js +65 -57
- package/dist/components/IconBracket/IconBracket.cjs.js +1 -1
- package/dist/components/IconBracket/IconBracket.d.ts +1 -1
- package/dist/components/IconBracket/IconBracket.es.js +13 -12
- package/dist/components/IconBracket/iconBracket.module.css.cjs.js +1 -1
- package/dist/components/IconBracket/iconBracket.module.css.es.js +11 -5
- package/dist/components/IconBracket/types.d.ts +3 -2
- package/dist/components/Pagination/Pagination.cjs.js +1 -0
- package/dist/components/Pagination/Pagination.d.ts +9 -0
- package/dist/components/Pagination/Pagination.es.js +55 -0
- package/dist/components/Pagination/Pagination.module.css.cjs.js +1 -0
- package/dist/components/Pagination/Pagination.module.css.es.js +19 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/RatingStars/RatingStars.cjs.js +1 -1
- package/dist/components/RatingStars/RatingStars.d.ts +2 -1
- package/dist/components/RatingStars/RatingStars.es.js +13 -13
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/icons/action/bracket-left.svg.cjs.js +1 -1
- package/dist/icons/action/bracket-left.svg.es.js +2 -2
- package/dist/icons/action/bracket-right.svg.cjs.js +1 -1
- package/dist/icons/action/bracket-right.svg.es.js +2 -2
- package/dist/icons/bold/arrow-bold.svg.cjs.js +1 -0
- package/dist/icons/bold/arrow-bold.svg.es.js +5 -0
- package/dist/icons/bold/close-bold.svg.cjs.js +1 -0
- package/dist/icons/bold/close-bold.svg.es.js +5 -0
- package/dist/icons/bold/dot-bold.svg.cjs.js +1 -0
- package/dist/icons/bold/dot-bold.svg.es.js +5 -0
- package/dist/icons/bold/plus-bold.svg.cjs.js +1 -0
- package/dist/icons/bold/plus-bold.svg.es.js +5 -0
- package/dist/modules/FAQModule/FAQModule.cjs.js +1 -0
- package/dist/modules/FAQModule/FAQModule.d.ts +3 -0
- package/dist/modules/FAQModule/FAQModule.es.js +17 -0
- package/dist/modules/FAQModule/faqModule.module.css.cjs.js +1 -0
- package/dist/modules/FAQModule/faqModule.module.css.es.js +19 -0
- package/dist/modules/FAQModule/index.d.ts +1 -0
- package/dist/modules/HighestStandards/HighestStandards.cjs.js +1 -0
- package/dist/modules/HighestStandards/HighestStandards.d.ts +3 -0
- package/dist/modules/HighestStandards/HighestStandards.es.js +26 -0
- package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.cjs.js +1 -0
- package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.d.ts +3 -0
- package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.es.js +24 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.cjs.js +1 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.d.ts +3 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.es.js +31 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/index.d.ts +2 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/tabsMenuItem.module.css.cjs.js +1 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/tabsMenuItem.module.css.es.js +23 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/types.d.ts +9 -0
- package/dist/modules/HighestStandards/components/TabsMenu/components/index.d.ts +1 -0
- package/dist/modules/HighestStandards/components/TabsMenu/index.d.ts +1 -0
- package/dist/modules/HighestStandards/components/TabsMenu/tabsMenu.module.css.cjs.js +1 -0
- package/dist/{components/Accordion/accordion.module.css.es.js → modules/HighestStandards/components/TabsMenu/tabsMenu.module.css.es.js} +1 -1
- package/dist/modules/HighestStandards/components/TabsMenu/types.d.ts +6 -0
- package/dist/modules/HighestStandards/components/index.d.ts +1 -0
- package/dist/modules/HighestStandards/highestStandards.module.css.cjs.js +1 -0
- package/dist/modules/HighestStandards/highestStandards.module.css.es.js +23 -0
- package/dist/modules/HighestStandards/index.d.ts +1 -0
- package/dist/modules/HighestStandards/types.d.ts +11 -0
- 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 +17 -17
- package/dist/modules/ImageWithText/types.d.ts +4 -3
- package/dist/modules/IngredientHighlight/IngredientHighlight.cjs.js +1 -0
- package/dist/modules/IngredientHighlight/IngredientHighlight.d.ts +3 -0
- package/dist/modules/IngredientHighlight/IngredientHighlight.es.js +26 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.d.ts +3 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +11 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/index.d.ts +2 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/ingredient.module.css.cjs.js +1 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/ingredient.module.css.es.js +15 -0
- package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +7 -0
- package/dist/modules/IngredientHighlight/components/index.d.ts +1 -0
- package/dist/modules/IngredientHighlight/index.d.ts +2 -0
- package/dist/modules/IngredientHighlight/ingredientHighlight.module.css.cjs.js +1 -0
- package/dist/modules/IngredientHighlight/ingredientHighlight.module.css.es.js +15 -0
- package/dist/modules/IngredientHighlight/types.d.ts +7 -0
- package/dist/modules/Reviews/Reviews.cjs.js +1 -0
- package/dist/modules/Reviews/Reviews.d.ts +15 -0
- package/dist/modules/Reviews/Reviews.es.js +42 -0
- package/dist/modules/Reviews/components/ReviewCard/ReviewCard.cjs.js +1 -0
- package/dist/modules/Reviews/components/ReviewCard/ReviewCard.d.ts +3 -0
- package/dist/modules/Reviews/components/ReviewCard/ReviewCard.es.js +17 -0
- package/dist/modules/Reviews/components/ReviewCard/index.d.ts +1 -0
- package/dist/modules/Reviews/components/ReviewCard/reviewCard.module.css.cjs.js +1 -0
- package/dist/modules/Reviews/components/ReviewCard/reviewCard.module.css.es.js +13 -0
- package/dist/modules/Reviews/components/ReviewList/ReviewList.cjs.js +1 -0
- package/dist/modules/Reviews/components/ReviewList/ReviewList.d.ts +10 -0
- package/dist/modules/Reviews/components/ReviewList/ReviewList.es.js +21 -0
- package/dist/modules/Reviews/components/ReviewList/index.d.ts +1 -0
- package/dist/modules/Reviews/components/ReviewList/reviewList.module.css.cjs.js +1 -0
- package/dist/modules/Reviews/components/ReviewList/reviewList.module.css.es.js +7 -0
- package/dist/modules/Reviews/index.d.ts +1 -0
- package/dist/modules/Reviews/reviews.module.css.cjs.js +1 -0
- package/dist/modules/Reviews/reviews.module.css.es.js +21 -0
- package/dist/modules/Reviews/types.d.ts +8 -0
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -1
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +24 -25
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -1
- package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +24 -20
- package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
- package/dist/modules/Testimonial/Testimonial.es.js +58 -40
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +1 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +2 -1
- package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +32 -30
- package/dist/modules/Testimonial/testimonial.module.css.cjs.js +1 -1
- package/dist/modules/Testimonial/testimonial.module.css.es.js +15 -13
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.cjs.js +1 -1
- package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.es.js +45 -36
- package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js +1 -1
- package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js +22 -20
- package/package.json +30 -5
- package/dist/components/Accordion/Accordion.cjs.js +0 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -8
- package/dist/components/Accordion/Accordion.es.js +0 -27
- package/dist/components/Accordion/accordion.module.css.cjs.js +0 -1
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +0 -1
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +0 -3
- package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.cjs.js +0 -1
- package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.es.js +0 -25
- package/dist/components/Accordion/components/AccordionItem/index.d.ts +0 -2
- package/dist/components/Accordion/components/AccordionItem/types.d.ts +0 -9
- package/dist/components/Accordion/components/index.d.ts +0 -1
- package/dist/components/Accordion/index.d.ts +0 -1
- package/dist/components/Accordion/types.d.ts +0 -6
- package/dist/modules/FAQ/FAQ.cjs.js +0 -1
- package/dist/modules/FAQ/FAQ.d.ts +0 -3
- package/dist/modules/FAQ/FAQ.es.js +0 -17
- package/dist/modules/FAQ/faq.module.css.cjs.js +0 -1
- package/dist/modules/FAQ/faq.module.css.es.js +0 -19
- package/dist/modules/FAQ/index.d.ts +0 -1
- /package/dist/modules/{FAQ → FAQModule}/types.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../components/Typography/Typography.cjs.js"),o=require("../../components/RatingStars/RatingStars.cjs.js"),c=require("../../components/Pagination/Pagination.cjs.js"),u=require("./components/ReviewList/ReviewList.cjs.js"),s=require("./reviews.module.css.cjs.js"),h=({rating:a,reviews:d,page:t,pagesCount:l,isLoading:r,onPageChange:n})=>e.jsx("section",{className:s.default.root,children:e.jsxs("div",{className:s.default.container,children:[e.jsxs("div",{className:s.default.headerContainer,children:[e.jsx(i.Typography,{as:"h2",defaultVariant:"displaySm",mobileVariant:"headingXl",children:"Reviews"}),!!(a!=null&&a.stars)&&e.jsxs("div",{className:s.default.headerRow,children:[e.jsxs(i.Typography,{defaultVariant:"headingLg",mobileVariant:"headingSm",children:[a.stars,"/5"]}),e.jsx(o.RatingStars,{rating:a.stars,size:"lg"}),!!a.totalReviews&&e.jsxs(i.Typography,{as:"p",defaultVariant:"labelSm",emphasis:!0,weight:"regular",children:[a.totalReviews," reviews"]})]})]}),e.jsxs("div",{className:s.default.reviewsContainer,children:[r?e.jsxs("div",{className:s.default.loadingContainer,children:[e.jsx("div",{className:s.default.skeleton}),e.jsx("div",{className:s.default.skeleton}),e.jsx("div",{className:s.default.skeleton})]}):e.jsx(u.ReviewList,{reviews:d,page:t,pagesCount:l,onPageChange:n}),e.jsx("div",{className:s.default.pagination,children:e.jsx(c.Pagination,{page:t,pagesCount:l,visiblePagesLimit:3,disabled:r,onPageChange:n})})]})]})});exports.Reviews=h;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TReviewCard } from './types';
|
|
2
|
+
|
|
3
|
+
type ReviewsProps = {
|
|
4
|
+
rating?: {
|
|
5
|
+
stars?: number;
|
|
6
|
+
totalReviews?: number;
|
|
7
|
+
};
|
|
8
|
+
reviews: Array<TReviewCard>;
|
|
9
|
+
page: number;
|
|
10
|
+
pagesCount: number;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
onPageChange: (page: number) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const Reviews: ({ rating, reviews, page, pagesCount, isLoading, onPageChange }: ReviewsProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as l } from "../../components/Typography/Typography.es.js";
|
|
3
|
+
import { RatingStars as n } from "../../components/RatingStars/RatingStars.es.js";
|
|
4
|
+
import { Pagination as c } from "../../components/Pagination/Pagination.es.js";
|
|
5
|
+
import { ReviewList as h } from "./components/ReviewList/ReviewList.es.js";
|
|
6
|
+
import e from "./reviews.module.css.es.js";
|
|
7
|
+
const b = ({ rating: a, reviews: m, page: r, pagesCount: t, isLoading: d, onPageChange: o }) => /* @__PURE__ */ i("section", { className: e.root, children: /* @__PURE__ */ s("div", { className: e.container, children: [
|
|
8
|
+
/* @__PURE__ */ s("div", { className: e.headerContainer, children: [
|
|
9
|
+
/* @__PURE__ */ i(l, { as: "h2", defaultVariant: "displaySm", mobileVariant: "headingXl", children: "Reviews" }),
|
|
10
|
+
!!(a != null && a.stars) && /* @__PURE__ */ s("div", { className: e.headerRow, children: [
|
|
11
|
+
/* @__PURE__ */ s(l, { defaultVariant: "headingLg", mobileVariant: "headingSm", children: [
|
|
12
|
+
a.stars,
|
|
13
|
+
"/5"
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ i(n, { rating: a.stars, size: "lg" }),
|
|
16
|
+
!!a.totalReviews && /* @__PURE__ */ s(l, { as: "p", defaultVariant: "labelSm", emphasis: !0, weight: "regular", children: [
|
|
17
|
+
a.totalReviews,
|
|
18
|
+
" reviews"
|
|
19
|
+
] })
|
|
20
|
+
] })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ s("div", { className: e.reviewsContainer, children: [
|
|
23
|
+
d ? /* @__PURE__ */ s("div", { className: e.loadingContainer, children: [
|
|
24
|
+
/* @__PURE__ */ i("div", { className: e.skeleton }),
|
|
25
|
+
/* @__PURE__ */ i("div", { className: e.skeleton }),
|
|
26
|
+
/* @__PURE__ */ i("div", { className: e.skeleton })
|
|
27
|
+
] }) : /* @__PURE__ */ i(h, { reviews: m, page: r, pagesCount: t, onPageChange: o }),
|
|
28
|
+
/* @__PURE__ */ i("div", { className: e.pagination, children: /* @__PURE__ */ i(
|
|
29
|
+
c,
|
|
30
|
+
{
|
|
31
|
+
page: r,
|
|
32
|
+
pagesCount: t,
|
|
33
|
+
visiblePagesLimit: 3,
|
|
34
|
+
disabled: d,
|
|
35
|
+
onPageChange: o
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
] })
|
|
39
|
+
] }) });
|
|
40
|
+
export {
|
|
41
|
+
b as Reviews
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../../../components/Typography/Typography.cjs.js"),s=require("../../../../components/RatingStars/RatingStars.cjs.js"),t=require("./reviewCard.module.css.cjs.js"),i=({review:e})=>a.jsxs("div",{className:t.default.root,children:[a.jsxs("div",{className:t.default.authorContainer,children:[a.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",emphasis:!0,className:t.default.author,children:e.author}),!!e.stars&&a.jsx(s.RatingStars,{rating:e.stars,size:"sm"})]}),a.jsxs("div",{className:t.default.content,children:[a.jsx(r.Typography,{as:"h3",defaultVariant:"bodyXl",mobileVariant:"bodyMd",emphasis:!0,children:e.title}),a.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",children:e.description})]})]});exports.ReviewCard=i;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "../../../../components/Typography/Typography.es.js";
|
|
3
|
+
import { RatingStars as o } from "../../../../components/RatingStars/RatingStars.es.js";
|
|
4
|
+
import r from "./reviewCard.module.css.es.js";
|
|
5
|
+
const m = ({ review: a }) => /* @__PURE__ */ s("div", { className: r.root, children: [
|
|
6
|
+
/* @__PURE__ */ s("div", { className: r.authorContainer, children: [
|
|
7
|
+
/* @__PURE__ */ t(i, { as: "p", defaultVariant: "bodyMd", emphasis: !0, className: r.author, children: a.author }),
|
|
8
|
+
!!a.stars && /* @__PURE__ */ t(o, { rating: a.stars, size: "sm" })
|
|
9
|
+
] }),
|
|
10
|
+
/* @__PURE__ */ s("div", { className: r.content, children: [
|
|
11
|
+
/* @__PURE__ */ t(i, { as: "h3", defaultVariant: "bodyXl", mobileVariant: "bodyMd", emphasis: !0, children: a.title }),
|
|
12
|
+
/* @__PURE__ */ t(i, { as: "p", defaultVariant: "bodyMd", children: a.description })
|
|
13
|
+
] })
|
|
14
|
+
] });
|
|
15
|
+
export {
|
|
16
|
+
m as ReviewCard
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReviewCard } from './ReviewCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="reviewCard-module__root___ZfiJk",t="reviewCard-module__authorContainer___wbHrO",e="reviewCard-module__author___4DMyn",r="reviewCard-module__content___uqI8K",n={root:o,authorContainer:t,author:e,content:r};exports.author=e;exports.authorContainer=t;exports.content=r;exports.default=n;exports.root=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const o = "reviewCard-module__root___ZfiJk", t = "reviewCard-module__authorContainer___wbHrO", r = "reviewCard-module__author___4DMyn", e = "reviewCard-module__content___uqI8K", _ = {
|
|
2
|
+
root: o,
|
|
3
|
+
authorContainer: t,
|
|
4
|
+
author: r,
|
|
5
|
+
content: e
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
r as author,
|
|
9
|
+
t as authorContainer,
|
|
10
|
+
e as content,
|
|
11
|
+
_ as default,
|
|
12
|
+
o as root
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),a=require("../ReviewCard/ReviewCard.cjs.js"),f=require("./reviewList.module.css.cjs.js"),v=({reviews:l,page:t,pagesCount:u,onPageChange:n})=>{const r=i.useRef(null),d=e=>{r.current=e.touches[0].clientX},h=i.useCallback(e=>{if(r.current===null)return;const c=e.changedTouches[0].clientX-r.current,o=50;c>o&&t>1?n(t-1):c<-o&&(!u||t<u)&&n(t+1),r.current=null},[t,u,n]);return s.jsx("div",{className:f.default.root,onTouchStart:d,onTouchEnd:h,children:l.map(({review:e},c)=>s.jsx(a.ReviewCard,{review:e},`${e.author}_${c}`))})};exports.ReviewList=v;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TReviewCard } from '../../types';
|
|
2
|
+
|
|
3
|
+
type ReviewListProps = {
|
|
4
|
+
reviews: Array<TReviewCard>;
|
|
5
|
+
page: number;
|
|
6
|
+
pagesCount: number;
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const ReviewList: ({ reviews, page, pagesCount, onPageChange }: ReviewListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as d, useCallback as m } from "react";
|
|
4
|
+
import { ReviewCard as f } from "../ReviewCard/ReviewCard.es.js";
|
|
5
|
+
import T from "./reviewList.module.css.es.js";
|
|
6
|
+
const v = ({ reviews: s, page: r, pagesCount: n, onPageChange: l }) => {
|
|
7
|
+
const c = d(null), i = (t) => {
|
|
8
|
+
c.current = t.touches[0].clientX;
|
|
9
|
+
}, h = m(
|
|
10
|
+
(t) => {
|
|
11
|
+
if (c.current === null) return;
|
|
12
|
+
const o = t.changedTouches[0].clientX - c.current, e = 50;
|
|
13
|
+
o > e && r > 1 ? l(r - 1) : o < -e && (!n || r < n) && l(r + 1), c.current = null;
|
|
14
|
+
},
|
|
15
|
+
[r, n, l]
|
|
16
|
+
);
|
|
17
|
+
return /* @__PURE__ */ u("div", { className: T.root, onTouchStart: i, onTouchEnd: h, children: s.map(({ review: t }, o) => /* @__PURE__ */ u(f, { review: t }, `${t.author}_${o}`)) });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
v as ReviewList
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReviewList } from './ReviewList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="reviewList-module__root___UIExi",o={root:e};exports.default=o;exports.root=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Reviews } from './Reviews';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="reviews-module__root___1ZqJ6",o="reviews-module__container___QE-Af",n="reviews-module__headerContainer___GGw6i",t="reviews-module__headerRow___kpG8f",i="reviews-module__reviewsContainer___BHIYC",r="reviews-module__pagination___mWMay",a="reviews-module__loadingContainer___uJZ6c",_="reviews-module__skeleton___UaPlJ",s={root:e,container:o,headerContainer:n,headerRow:t,reviewsContainer:i,pagination:r,loadingContainer:a,skeleton:_};exports.container=o;exports.default=s;exports.headerContainer=n;exports.headerRow=t;exports.loadingContainer=a;exports.pagination=r;exports.reviewsContainer=i;exports.root=e;exports.skeleton=_;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const e = "reviews-module__root___1ZqJ6", o = "reviews-module__container___QE-Af", n = "reviews-module__headerContainer___GGw6i", _ = "reviews-module__headerRow___kpG8f", i = "reviews-module__reviewsContainer___BHIYC", r = "reviews-module__pagination___mWMay", t = "reviews-module__loadingContainer___uJZ6c", a = "reviews-module__skeleton___UaPlJ", s = {
|
|
2
|
+
root: e,
|
|
3
|
+
container: o,
|
|
4
|
+
headerContainer: n,
|
|
5
|
+
headerRow: _,
|
|
6
|
+
reviewsContainer: i,
|
|
7
|
+
pagination: r,
|
|
8
|
+
loadingContainer: t,
|
|
9
|
+
skeleton: a
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
o as container,
|
|
13
|
+
s as default,
|
|
14
|
+
n as headerContainer,
|
|
15
|
+
_ as headerRow,
|
|
16
|
+
t as loadingContainer,
|
|
17
|
+
r as pagination,
|
|
18
|
+
i as reviewsContainer,
|
|
19
|
+
e as root,
|
|
20
|
+
a as skeleton
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),y=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),N=require("../../node_modules/@gsap/react/src/index.cjs.js"),R=require("../../pageComponents/Bubbles/Bubbles.cjs.js"),q=require("../../pageComponents/Gradient/Gradient.cjs.js"),x=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),C=require("../../utils/cn/cn.cjs.js"),b=require("../../components/Typography/Typography.cjs.js"),_=require("../../components/Icon/Icon.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js");y.gsap.registerPlugin(p.Flip);const S=({title:j,tabs:o,withBubbles:m})=>{const s=f.useRef(null),a=f.useRef(null),[l,h]=f.useState(o[0]);N.useGSAP(()=>{const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),y=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),N=require("../../node_modules/@gsap/react/src/index.cjs.js"),R=require("../../pageComponents/Bubbles/Bubbles.cjs.js"),q=require("../../pageComponents/Gradient/Gradient.cjs.js"),x=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),C=require("../../utils/cn/cn.cjs.js"),b=require("../../components/Typography/Typography.cjs.js"),_=require("../../components/Icon/Icon.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js");y.gsap.registerPlugin(p.Flip);const S=({title:j,tabs:o,withBubbles:m})=>{const s=f.useRef(null),a=f.useRef(null),[l,h]=f.useState(o[0]);N.useGSAP(()=>{const i=s.current,n=a.current,u=r=>{if(i&&n&&r){const T=n.getBoundingClientRect(),g=r.getBoundingClientRect();y.gsap.set(i,{left:g.left-T.left,top:g.top-T.top,width:g.width,height:g.height})}};if(n&&n.children.length>1){const r=n.children[1];r&&u(r)}let c;const d=()=>{clearTimeout(c),c=setTimeout(()=>{if(i&&n&&n.children.length>1&&o.length>0){const r=n.children[1];r&&(u(r),h(o[0]))}},250)};return window.addEventListener("resize",d),()=>{clearTimeout(c),window.removeEventListener("resize",d)}},{dependencies:[o,h],scope:a});const v=(i,n)=>{if(i===l)return;const u=p.Flip.getState(s.current);if(h(i),s.current&&a.current&&a.current.children.length>n+1){const c=a.current.children[n+1];if(c){const d=a.current.getBoundingClientRect(),r=c.getBoundingClientRect();s.current.style.left=`${r.left-d.left}px`,s.current.style.top=`${r.top-d.top}px`,s.current.style.width=`${r.width}px`,s.current.style.height=`${r.height}px`}}p.Flip.from(u,{targets:s.current,duration:.3,ease:"power1.inOut"})};return e.jsxs("section",{className:t.default.root,children:[m&&e.jsx(R.Bubbles,{className:t.default.bubbles}),e.jsxs("div",{className:t.default.container,children:[e.jsx(x.HighlightedTitle,{as:"div",title:j,className:t.default.header,colorScheme:"dark"}),e.jsxs("div",{className:t.default.content,children:[l.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:l.image,alt:"Total Care",className:t.default.image})}),e.jsx("div",{className:t.default.tabsContainer,children:e.jsxs("div",{ref:a,className:t.default.tabs,children:[e.jsx("div",{ref:s,id:"marker",className:t.default.marker}),o.map((i,n)=>e.jsxs("button",{className:C.cn(t.default.tab,{[t.default.active]:l===i}),onClick:()=>v(i,n),children:[i.icon&&e.jsx(b.Typography,{defaultVariant:"displayMd",className:t.default.icon,children:e.jsx(_.Icon,{name:i.icon})}),e.jsx(b.Typography,{defaultVariant:"displayMd",className:t.default.mobile,children:i.label})]},i.label))]})}),l.description&&e.jsx("div",{className:t.default.description,children:e.jsx(x.HighlightedTitle,{as:"div",defaultVariant:"bodyMd",className:t.default.descriptionText,title:l.description,colorScheme:"dark"})})]})]}),m&&e.jsx(q.Gradient,{variant:"blue"})]})};exports.SlidingTabsGallery=S;
|
|
@@ -12,11 +12,11 @@ import { Typography as b } from "../../components/Typography/Typography.es.js";
|
|
|
12
12
|
import { Icon as z } from "../../components/Icon/Icon.es.js";
|
|
13
13
|
import e from "./SlidingTabsGallery.module.css.es.js";
|
|
14
14
|
C.registerPlugin(f);
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const I = ({ title: R, tabs: l, withBubbles: g }) => {
|
|
16
|
+
const c = T(null), o = T(null), [s, p] = k(l[0]);
|
|
17
17
|
w(
|
|
18
18
|
() => {
|
|
19
|
-
const t =
|
|
19
|
+
const t = c.current, r = o.current, u = (i) => {
|
|
20
20
|
if (t && r && i) {
|
|
21
21
|
const v = r.getBoundingClientRect(), h = i.getBoundingClientRect();
|
|
22
22
|
C.set(t, {
|
|
@@ -31,9 +31,9 @@ const H = ({ title: R, tabs: l, withBubbles: g }) => {
|
|
|
31
31
|
const i = r.children[1];
|
|
32
32
|
i && u(i);
|
|
33
33
|
}
|
|
34
|
-
let
|
|
34
|
+
let a;
|
|
35
35
|
const d = () => {
|
|
36
|
-
clearTimeout(
|
|
36
|
+
clearTimeout(a), a = setTimeout(() => {
|
|
37
37
|
if (t && r && r.children.length > 1 && l.length > 0) {
|
|
38
38
|
const i = r.children[1];
|
|
39
39
|
i && (u(i), p(l[0]));
|
|
@@ -41,23 +41,23 @@ const H = ({ title: R, tabs: l, withBubbles: g }) => {
|
|
|
41
41
|
}, 250);
|
|
42
42
|
};
|
|
43
43
|
return window.addEventListener("resize", d), () => {
|
|
44
|
-
clearTimeout(
|
|
44
|
+
clearTimeout(a), window.removeEventListener("resize", d);
|
|
45
45
|
};
|
|
46
46
|
},
|
|
47
|
-
{ dependencies: [l, p], scope:
|
|
47
|
+
{ dependencies: [l, p], scope: o }
|
|
48
48
|
);
|
|
49
49
|
const y = (t, r) => {
|
|
50
|
-
if (t ===
|
|
51
|
-
const u = f.getState(
|
|
52
|
-
if (p(t),
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
const d =
|
|
56
|
-
|
|
50
|
+
if (t === s) return;
|
|
51
|
+
const u = f.getState(c.current);
|
|
52
|
+
if (p(t), c.current && o.current && o.current.children.length > r + 1) {
|
|
53
|
+
const a = o.current.children[r + 1];
|
|
54
|
+
if (a) {
|
|
55
|
+
const d = o.current.getBoundingClientRect(), i = a.getBoundingClientRect();
|
|
56
|
+
c.current.style.left = `${i.left - d.left}px`, c.current.style.top = `${i.top - d.top}px`, c.current.style.width = `${i.width}px`, c.current.style.height = `${i.height}px`;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
f.from(u, {
|
|
60
|
-
targets:
|
|
60
|
+
targets: c.current,
|
|
61
61
|
duration: 0.3,
|
|
62
62
|
ease: "power1.inOut"
|
|
63
63
|
});
|
|
@@ -67,32 +67,31 @@ const H = ({ title: R, tabs: l, withBubbles: g }) => {
|
|
|
67
67
|
/* @__PURE__ */ m("div", { className: e.container, children: [
|
|
68
68
|
/* @__PURE__ */ n(N, { as: "div", title: R, className: e.header, colorScheme: "dark" }),
|
|
69
69
|
/* @__PURE__ */ m("div", { className: e.content, children: [
|
|
70
|
-
|
|
71
|
-
/* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ m("div", { ref:
|
|
72
|
-
/* @__PURE__ */ n("div", { ref:
|
|
70
|
+
s.image && /* @__PURE__ */ n("div", { className: e.imageWrap, children: /* @__PURE__ */ n("img", { src: s.image, alt: "Total Care", className: e.image }) }),
|
|
71
|
+
/* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ m("div", { ref: o, className: e.tabs, children: [
|
|
72
|
+
/* @__PURE__ */ n("div", { ref: c, id: "marker", className: e.marker }),
|
|
73
73
|
l.map((t, r) => /* @__PURE__ */ m(
|
|
74
74
|
"button",
|
|
75
75
|
{
|
|
76
76
|
className: B(e.tab, {
|
|
77
|
-
[e.active]:
|
|
77
|
+
[e.active]: s === t
|
|
78
78
|
}),
|
|
79
79
|
onClick: () => y(t, r),
|
|
80
80
|
children: [
|
|
81
81
|
t.icon && /* @__PURE__ */ n(b, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(z, { name: t.icon }) }),
|
|
82
|
-
/* @__PURE__ */ n(b, { defaultVariant: "
|
|
82
|
+
/* @__PURE__ */ n(b, { defaultVariant: "displayMd", className: e.mobile, children: t.label })
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
85
|
t.label
|
|
86
86
|
))
|
|
87
87
|
] }) }),
|
|
88
|
-
|
|
88
|
+
s.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
|
|
89
89
|
N,
|
|
90
90
|
{
|
|
91
91
|
as: "div",
|
|
92
|
-
defaultVariant: "
|
|
93
|
-
mobileVariant: "bodyMd",
|
|
92
|
+
defaultVariant: "bodyMd",
|
|
94
93
|
className: e.descriptionText,
|
|
95
|
-
title:
|
|
94
|
+
title: s.description,
|
|
96
95
|
colorScheme: "dark"
|
|
97
96
|
}
|
|
98
97
|
) })
|
|
@@ -102,5 +101,5 @@ const H = ({ title: R, tabs: l, withBubbles: g }) => {
|
|
|
102
101
|
] });
|
|
103
102
|
};
|
|
104
103
|
export {
|
|
105
|
-
|
|
104
|
+
I as SlidingTabsGallery
|
|
106
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__bubbles___XumkJ",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="SlidingTabsGallery-module__root___BsvYn",a="SlidingTabsGallery-module__bubbles___XumkJ",l="SlidingTabsGallery-module__container___vP0rd",_="SlidingTabsGallery-module__header___eJQXu",t="SlidingTabsGallery-module__content___jjd1o",i="SlidingTabsGallery-module__tabsContainer___Se1lx",o="SlidingTabsGallery-module__tabs___ZEKrF",n="SlidingTabsGallery-module__tab___Ztklx",r="SlidingTabsGallery-module__active___XatLw",s="SlidingTabsGallery-module__marker___c5lgj",d="SlidingTabsGallery-module__imageWrap___OWtqZ",b="SlidingTabsGallery-module__description___JBoEm",c="SlidingTabsGallery-module__descriptionText___g-K-K",m="SlidingTabsGallery-module__image___E02Sh",u="SlidingTabsGallery-module__mobile___7vFG2",g={root:e,bubbles:a,container:l,header:_,content:t,tabsContainer:i,tabs:o,tab:n,active:r,marker:s,imageWrap:d,description:b,descriptionText:c,image:m,mobile:u};exports.active=r;exports.bubbles=a;exports.container=l;exports.content=t;exports.default=g;exports.description=b;exports.descriptionText=c;exports.header=_;exports.image=m;exports.imageWrap=d;exports.marker=s;exports.mobile=u;exports.root=e;exports.tab=n;exports.tabs=o;exports.tabsContainer=i;
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
bubbles:
|
|
4
|
-
container:
|
|
5
|
-
header:
|
|
6
|
-
content:
|
|
7
|
-
tabsContainer:
|
|
8
|
-
tabs:
|
|
9
|
-
tab:
|
|
1
|
+
const e = "SlidingTabsGallery-module__root___BsvYn", _ = "SlidingTabsGallery-module__bubbles___XumkJ", l = "SlidingTabsGallery-module__container___vP0rd", a = "SlidingTabsGallery-module__header___eJQXu", i = "SlidingTabsGallery-module__content___jjd1o", o = "SlidingTabsGallery-module__tabsContainer___Se1lx", t = "SlidingTabsGallery-module__tabs___ZEKrF", n = "SlidingTabsGallery-module__tab___Ztklx", s = "SlidingTabsGallery-module__active___XatLw", r = "SlidingTabsGallery-module__marker___c5lgj", d = "SlidingTabsGallery-module__imageWrap___OWtqZ", b = "SlidingTabsGallery-module__description___JBoEm", c = "SlidingTabsGallery-module__descriptionText___g-K-K", m = "SlidingTabsGallery-module__image___E02Sh", g = "SlidingTabsGallery-module__mobile___7vFG2", u = {
|
|
2
|
+
root: e,
|
|
3
|
+
bubbles: _,
|
|
4
|
+
container: l,
|
|
5
|
+
header: a,
|
|
6
|
+
content: i,
|
|
7
|
+
tabsContainer: o,
|
|
8
|
+
tabs: t,
|
|
9
|
+
tab: n,
|
|
10
10
|
active: s,
|
|
11
11
|
marker: r,
|
|
12
12
|
imageWrap: d,
|
|
13
13
|
description: b,
|
|
14
|
-
|
|
14
|
+
descriptionText: c,
|
|
15
|
+
image: m,
|
|
16
|
+
mobile: g
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
17
19
|
s as active,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
_ as bubbles,
|
|
21
|
+
l as container,
|
|
22
|
+
i as content,
|
|
23
|
+
u as default,
|
|
22
24
|
b as description,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
c as descriptionText,
|
|
26
|
+
a as header,
|
|
27
|
+
m as image,
|
|
25
28
|
d as imageWrap,
|
|
26
29
|
r as marker,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
g as mobile,
|
|
31
|
+
e as root,
|
|
32
|
+
n as tab,
|
|
33
|
+
t as tabs,
|
|
34
|
+
o as tabsContainer
|
|
31
35
|
};
|
|
@@ -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"),q=require("../../node_modules/swiper/modules/navigation.cjs.js"),c=require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const u=require("../../components/ProgressButton/ProgressButton.cjs.js"),v=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),N=require("../../components/Typography/Typography.cjs.js"),h=require("../../components/RatingStars/RatingStars.cjs.js"),R=require("../../utils/useSwiper/useSwiper.cjs.js"),k=require("./components/VideoCard/VideoCard.cjs.js"),C=require("./components/TextCard/TextCard.cjs.js"),s=require("./testimonial.module.css.cjs.js"),w=[q.default],_=({title:g,rating:i,reviews:m})=>{const{activeIndex:p,isEnd:t,isBeginning:n,hideNav:r,handleSlideChange:x,handlePrevClick:l,handleNextClick:o,onSwiperInit:S,handleSwiperResize:j,handleReachEnd:b,handleReachBeginning:f}=R.useSwiper();return e.jsxs("section",{className:s.default.root,children:[e.jsxs("div",{className:s.default.headerContainer,children:[i&&e.jsxs("div",{className:s.default.ratingContainer,children:[!!i.stars&&e.jsx("div",{className:s.default.desktop,children:e.jsx(h.RatingStars,{rating:i.stars,size:"lg"})}),!!i.stars&&e.jsx("div",{className:s.default.mobile,children:e.jsx(h.RatingStars,{rating:i.stars,size:"sm"})}),!!i.totalReviews&&e.jsxs(N.Typography,{as:"p",defaultVariant:"labelLg",mobileVariant:"labelSm",emphasis:!0,weight:"regular",children:[i.totalReviews,"+ member reviews"]})]}),e.jsxs("div",{className:s.default.headerRow,children:[e.jsx(v.HighlightedTitle,{title:g,colorScheme:"light"}),!r&&e.jsx("div",{className:s.default.desktopNavigation,children:e.jsx(u.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:t,onClick:o}})})]})]}),e.jsx("div",{className:s.default.content,children:e.jsx(c.Swiper,{onSwiper:S,onResize:j,onSlideChange:x,onReachEnd:b,onReachBeginning:f,modules:w,spaceBetween:0,slidesPerView:"auto",className:s.default.swiper,children:m.map((a,d)=>e.jsx(c.SwiperSlide,{className:s.default.swiperSlide,children:a.background.type==="video"?e.jsx(k.VideoCard,{...a,background:a.background,isActive:p===d}):e.jsx(C.TextCard,{...a,background:a.background})},`${a.background.type}_${d}`))})}),!r&&e.jsx("div",{className:s.default.mobileNavigation,children:e.jsx(u.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:t,onClick:o}})})]})};exports.Testimonial=_;
|
|
@@ -1,51 +1,63 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import { Swiper as
|
|
3
|
+
import v from "../../node_modules/swiper/modules/navigation.es.js";
|
|
4
|
+
import { Swiper as C, SwiperSlide as R } from "../../node_modules/swiper/swiper-react.es.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { ProgressButton as
|
|
8
|
+
import { ProgressButton as m } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
9
9
|
import { HighlightedTitle as w } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
10
|
-
import { Typography as
|
|
11
|
-
import { RatingStars as
|
|
12
|
-
import { useSwiper as
|
|
13
|
-
import { VideoCard as
|
|
14
|
-
import { TextCard as
|
|
10
|
+
import { Typography as x } from "../../components/Typography/Typography.es.js";
|
|
11
|
+
import { RatingStars as h } from "../../components/RatingStars/RatingStars.es.js";
|
|
12
|
+
import { useSwiper as y } from "../../utils/useSwiper/useSwiper.es.js";
|
|
13
|
+
import { VideoCard as B } from "./components/VideoCard/VideoCard.es.js";
|
|
14
|
+
import { TextCard as E } from "./components/TextCard/TextCard.es.js";
|
|
15
15
|
import i from "./testimonial.module.css.es.js";
|
|
16
|
-
const
|
|
16
|
+
const z = [v], W = ({ title: p, rating: a, reviews: g }) => {
|
|
17
17
|
const {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
activeIndex: b,
|
|
19
|
+
isEnd: s,
|
|
20
|
+
isBeginning: n,
|
|
20
21
|
hideNav: l,
|
|
21
|
-
handleSlideChange:
|
|
22
|
+
handleSlideChange: N,
|
|
22
23
|
handlePrevClick: t,
|
|
23
24
|
handleNextClick: d,
|
|
24
|
-
onSwiperInit:
|
|
25
|
-
handleSwiperResize:
|
|
26
|
-
handleReachEnd:
|
|
27
|
-
handleReachBeginning:
|
|
28
|
-
} =
|
|
25
|
+
onSwiperInit: u,
|
|
26
|
+
handleSwiperResize: S,
|
|
27
|
+
handleReachEnd: f,
|
|
28
|
+
handleReachBeginning: k
|
|
29
|
+
} = y();
|
|
29
30
|
return /* @__PURE__ */ o("section", { className: i.root, children: [
|
|
30
31
|
/* @__PURE__ */ o("div", { className: i.headerContainer, children: [
|
|
31
|
-
|
|
32
|
-
!!
|
|
33
|
-
!!
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
a && /* @__PURE__ */ o("div", { className: i.ratingContainer, children: [
|
|
33
|
+
!!a.stars && /* @__PURE__ */ e("div", { className: i.desktop, children: /* @__PURE__ */ e(h, { rating: a.stars, size: "lg" }) }),
|
|
34
|
+
!!a.stars && /* @__PURE__ */ e("div", { className: i.mobile, children: /* @__PURE__ */ e(h, { rating: a.stars, size: "sm" }) }),
|
|
35
|
+
!!a.totalReviews && /* @__PURE__ */ o(
|
|
36
|
+
x,
|
|
37
|
+
{
|
|
38
|
+
as: "p",
|
|
39
|
+
defaultVariant: "labelLg",
|
|
40
|
+
mobileVariant: "labelSm",
|
|
41
|
+
emphasis: !0,
|
|
42
|
+
weight: "regular",
|
|
43
|
+
children: [
|
|
44
|
+
a.totalReviews,
|
|
45
|
+
"+ member reviews"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
)
|
|
37
49
|
] }),
|
|
38
50
|
/* @__PURE__ */ o("div", { className: i.headerRow, children: [
|
|
39
|
-
/* @__PURE__ */ e(w, { title:
|
|
51
|
+
/* @__PURE__ */ e(w, { title: p, colorScheme: "light" }),
|
|
40
52
|
!l && /* @__PURE__ */ e("div", { className: i.desktopNavigation, children: /* @__PURE__ */ e(
|
|
41
|
-
|
|
53
|
+
m,
|
|
42
54
|
{
|
|
43
55
|
left: {
|
|
44
|
-
disabled:
|
|
56
|
+
disabled: n,
|
|
45
57
|
onClick: t
|
|
46
58
|
},
|
|
47
59
|
right: {
|
|
48
|
-
disabled:
|
|
60
|
+
disabled: s,
|
|
49
61
|
onClick: d
|
|
50
62
|
}
|
|
51
63
|
}
|
|
@@ -53,30 +65,36 @@ const E = [N], U = ({ title: m, rating: r, reviews: p }) => {
|
|
|
53
65
|
] })
|
|
54
66
|
] }),
|
|
55
67
|
/* @__PURE__ */ e("div", { className: i.content, children: /* @__PURE__ */ e(
|
|
56
|
-
|
|
68
|
+
C,
|
|
57
69
|
{
|
|
58
|
-
onSwiper:
|
|
59
|
-
onResize:
|
|
60
|
-
onSlideChange:
|
|
61
|
-
onReachEnd:
|
|
62
|
-
onReachBeginning:
|
|
63
|
-
modules:
|
|
70
|
+
onSwiper: u,
|
|
71
|
+
onResize: S,
|
|
72
|
+
onSlideChange: N,
|
|
73
|
+
onReachEnd: f,
|
|
74
|
+
onReachBeginning: k,
|
|
75
|
+
modules: z,
|
|
64
76
|
spaceBetween: 0,
|
|
65
77
|
slidesPerView: "auto",
|
|
66
78
|
className: i.swiper,
|
|
67
|
-
|
|
68
|
-
|
|
79
|
+
children: g.map((r, c) => /* @__PURE__ */ e(R, { className: i.swiperSlide, children: r.background.type === "video" ? /* @__PURE__ */ e(
|
|
80
|
+
B,
|
|
81
|
+
{
|
|
82
|
+
...r,
|
|
83
|
+
background: r.background,
|
|
84
|
+
isActive: b === c
|
|
85
|
+
}
|
|
86
|
+
) : /* @__PURE__ */ e(E, { ...r, background: r.background }) }, `${r.background.type}_${c}`))
|
|
69
87
|
}
|
|
70
88
|
) }),
|
|
71
89
|
!l && /* @__PURE__ */ e("div", { className: i.mobileNavigation, children: /* @__PURE__ */ e(
|
|
72
|
-
|
|
90
|
+
m,
|
|
73
91
|
{
|
|
74
92
|
left: {
|
|
75
|
-
disabled:
|
|
93
|
+
disabled: n,
|
|
76
94
|
onClick: t
|
|
77
95
|
},
|
|
78
96
|
right: {
|
|
79
|
-
disabled:
|
|
97
|
+
disabled: s,
|
|
80
98
|
onClick: d
|
|
81
99
|
}
|
|
82
100
|
}
|
|
@@ -84,5 +102,5 @@ const E = [N], U = ({ title: m, rating: r, reviews: p }) => {
|
|
|
84
102
|
] });
|
|
85
103
|
};
|
|
86
104
|
export {
|
|
87
|
-
|
|
105
|
+
W as Testimonial
|
|
88
106
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../../../../components/Typography/Typography.cjs.js"),o=require("../../../../components/RatingStars/RatingStars.cjs.js"),u=require("../Product/Product.cjs.js"),s=require("./textCard.module.css.cjs.js"),d=({background:i,review:a,product:e})=>{var n,l;return t.jsxs("div",{className:s.default.root,style:{backgroundImage:`url(${i.url})`},children:[!!a.stars&&t.jsx(o.RatingStars,{rating:a.stars}),a&&t.jsxs("div",{className:s.default.reviewContainer,children:[a.title&&t.jsx(r.Typography,{as:"h3",defaultVariant:"headingSm",mobileVariant:"headingXs",weight:"regular",children:a.title}),a.description&&t.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:a.description}),((n=a.author)==null?void 0:n.name)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:s.default.reviewAuthor,children:a.author.name})]}),t.jsxs("div",{className:s.default.infoContainer,children:[((l=a==null?void 0:a.author)==null?void 0:l.username)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.author.username}),e&&t.jsx(u.Product,{image:e.image,name:e.name,link:e.link})]})]})};exports.TextCard=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("../../../../components/Typography/Typography.cjs.js"),o=require("../../../../components/RatingStars/RatingStars.cjs.js"),u=require("../Product/Product.cjs.js"),s=require("./textCard.module.css.cjs.js"),d=({background:i,review:a,product:e})=>{var n,l;return t.jsxs("div",{className:s.default.root,style:{backgroundImage:`url(${i.url})`},children:[!!a.stars&&t.jsx(o.RatingStars,{rating:a.stars,size:"lg"}),a&&t.jsxs("div",{className:s.default.reviewContainer,children:[a.title&&t.jsx(r.Typography,{as:"h3",defaultVariant:"headingSm",mobileVariant:"headingXs",weight:"regular",children:a.title}),a.description&&t.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:a.description}),((n=a.author)==null?void 0:n.name)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:s.default.reviewAuthor,children:a.author.name})]}),t.jsxs("div",{className:s.default.infoContainer,children:[((l=a==null?void 0:a.author)==null?void 0:l.username)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.author.username}),e&&t.jsx(u.Product,{image:e.image,name:e.name,link:e.link})]})]})};exports.TextCard=d;
|
|
@@ -6,7 +6,7 @@ import i from "./textCard.module.css.es.js";
|
|
|
6
6
|
const b = ({ background: m, review: a, product: r }) => {
|
|
7
7
|
var e, s;
|
|
8
8
|
return /* @__PURE__ */ n("div", { className: i.root, style: { backgroundImage: `url(${m.url})` }, children: [
|
|
9
|
-
!!a.stars && /* @__PURE__ */ t(o, { rating: a.stars }),
|
|
9
|
+
!!a.stars && /* @__PURE__ */ t(o, { rating: a.stars, size: "lg" }),
|
|
10
10
|
a && /* @__PURE__ */ n("div", { className: i.reviewContainer, children: [
|
|
11
11
|
a.title && /* @__PURE__ */ t(l, { as: "h3", defaultVariant: "headingSm", mobileVariant: "headingXs", weight: "regular", children: a.title }),
|
|
12
12
|
a.description && /* @__PURE__ */ t(l, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: a.description }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),y=require("../../../../components/Typography/Typography.cjs.js"),p=require("../../../../components/PlayButton/PlayButton.cjs.js"),g=require("../../../../utils/cn/cn.cjs.js"),h=require("../Product/Product.cjs.js"),n=require("./videoCard.module.css.cjs.js"),j=({product:l,review:i,background:d,isActive:f})=>{var m;const[r,t]=s.useState(!1),a=s.useRef(null),c=s.useRef(null);return s.useEffect(()=>{const o=new IntersectionObserver(([u])=>{!u.isIntersecting&&r&&t(!1)},{threshold:.2});return c.current&&o.observe(c.current),()=>o.disconnect()},[r]),s.useEffect(()=>{f||t(!1)},[f]),s.useEffect(()=>{!r&&a.current&&(a.current.pause(),a.current.currentTime=0)},[r]),e.jsxs("div",{className:n.default.root,ref:c,onClick:()=>r?t(!1):void 0,style:{backgroundImage:`url(${d.preview})`},children:[e.jsxs("div",{className:n.default.mediaContainer,children:[e.jsx("video",{ref:a,src:d.url,playsInline:!0,controls:!1,muted:!1,onEnded:()=>t(!1),className:g.cn(n.default.media,!r&&n.default.mediaHidden)}),!r&&e.jsx("div",{className:n.default.playButton,children:e.jsx(p.PlayButton,{onClick:o=>{var u;o.stopPropagation(),(u=a.current)==null||u.play(),t(!0)}})})]}),e.jsxs("div",{className:n.default.infoContainer,children:[((m=i==null?void 0:i.author)==null?void 0:m.username)&&e.jsx(y.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:i.author.username}),l&&e.jsx(h.Product,{image:l.image,name:l.name,link:l.link})]})]})};exports.VideoCard=j;
|
|
@@ -6,6 +6,7 @@ type VideoCardProps = {
|
|
|
6
6
|
url: string;
|
|
7
7
|
preview: string;
|
|
8
8
|
};
|
|
9
|
+
isActive: boolean;
|
|
9
10
|
} & Omit<RichReviewCard, 'background'>;
|
|
10
|
-
export declare const VideoCard: ({ product, review, background }: VideoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const VideoCard: ({ product, review, background, isActive }: VideoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|