@zenpatient-org/healthspan-marketing-ui 0.1.26 → 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.
Files changed (158) hide show
  1. package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
  2. package/dist/components/ComplexTooltip/ComplexTooltip.es.js +16 -14
  3. package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +1 -0
  4. package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +7 -0
  5. package/dist/components/FAQComponent/FAQComponent.cjs.js +1 -0
  6. package/dist/components/FAQComponent/FAQComponent.d.ts +3 -0
  7. package/dist/components/FAQComponent/FAQComponent.es.js +27 -0
  8. package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -0
  9. package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.d.ts +3 -0
  10. package/dist/components/{Accordion/components/AccordionItem/AccordionItem.es.js → FAQComponent/components/FAQComponentItem/FAQComponentItem.es.js} +6 -7
  11. package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +1 -0
  12. package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.es.js +25 -0
  13. package/dist/components/FAQComponent/components/FAQComponentItem/index.d.ts +2 -0
  14. package/dist/components/FAQComponent/components/FAQComponentItem/types.d.ts +9 -0
  15. package/dist/components/FAQComponent/components/index.d.ts +1 -0
  16. package/dist/components/FAQComponent/faqComponent.module.css.cjs.js +1 -0
  17. package/dist/components/FAQComponent/faqComponent.module.css.es.js +7 -0
  18. package/dist/components/FAQComponent/index.d.ts +1 -0
  19. package/dist/components/FAQComponent/types.d.ts +10 -0
  20. package/dist/components/Icon/constants.cjs.js +1 -1
  21. package/dist/components/Icon/constants.d.ts +5 -1
  22. package/dist/components/Icon/constants.es.js +6 -2
  23. package/dist/components/Icon/iconsMap.cjs.js +1 -1
  24. package/dist/components/Icon/iconsMap.es.js +65 -57
  25. package/dist/components/IconBracket/IconBracket.cjs.js +1 -1
  26. package/dist/components/IconBracket/IconBracket.d.ts +1 -1
  27. package/dist/components/IconBracket/IconBracket.es.js +13 -12
  28. package/dist/components/IconBracket/iconBracket.module.css.cjs.js +1 -1
  29. package/dist/components/IconBracket/iconBracket.module.css.es.js +11 -5
  30. package/dist/components/IconBracket/types.d.ts +3 -2
  31. package/dist/components/Pagination/Pagination.cjs.js +1 -0
  32. package/dist/components/Pagination/Pagination.d.ts +9 -0
  33. package/dist/components/Pagination/Pagination.es.js +55 -0
  34. package/dist/components/Pagination/Pagination.module.css.cjs.js +1 -0
  35. package/dist/components/Pagination/Pagination.module.css.es.js +19 -0
  36. package/dist/components/Pagination/index.d.ts +1 -0
  37. package/dist/components/RatingStars/RatingStars.cjs.js +1 -1
  38. package/dist/components/RatingStars/RatingStars.d.ts +2 -1
  39. package/dist/components/RatingStars/RatingStars.es.js +13 -13
  40. package/dist/healthspan-marketing-ui.css +1 -1
  41. package/dist/icons/action/bracket-left.svg.cjs.js +1 -1
  42. package/dist/icons/action/bracket-left.svg.es.js +2 -2
  43. package/dist/icons/action/bracket-right.svg.cjs.js +1 -1
  44. package/dist/icons/action/bracket-right.svg.es.js +2 -2
  45. package/dist/icons/bold/arrow-bold.svg.cjs.js +1 -0
  46. package/dist/icons/bold/arrow-bold.svg.es.js +5 -0
  47. package/dist/icons/bold/close-bold.svg.cjs.js +1 -0
  48. package/dist/icons/bold/close-bold.svg.es.js +5 -0
  49. package/dist/icons/bold/dot-bold.svg.cjs.js +1 -0
  50. package/dist/icons/bold/dot-bold.svg.es.js +5 -0
  51. package/dist/icons/bold/plus-bold.svg.cjs.js +1 -0
  52. package/dist/icons/bold/plus-bold.svg.es.js +5 -0
  53. package/dist/modules/FAQModule/FAQModule.cjs.js +1 -0
  54. package/dist/modules/FAQModule/FAQModule.d.ts +3 -0
  55. package/dist/modules/FAQModule/FAQModule.es.js +17 -0
  56. package/dist/modules/FAQModule/faqModule.module.css.cjs.js +1 -0
  57. package/dist/modules/FAQModule/faqModule.module.css.es.js +19 -0
  58. package/dist/modules/FAQModule/index.d.ts +1 -0
  59. package/dist/modules/HighestStandards/HighestStandards.cjs.js +1 -0
  60. package/dist/modules/HighestStandards/HighestStandards.d.ts +3 -0
  61. package/dist/modules/HighestStandards/HighestStandards.es.js +26 -0
  62. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.cjs.js +1 -0
  63. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.d.ts +3 -0
  64. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.es.js +24 -0
  65. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.cjs.js +1 -0
  66. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.d.ts +3 -0
  67. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.es.js +31 -0
  68. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/index.d.ts +2 -0
  69. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/tabsMenuItem.module.css.cjs.js +1 -0
  70. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/tabsMenuItem.module.css.es.js +23 -0
  71. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/types.d.ts +9 -0
  72. package/dist/modules/HighestStandards/components/TabsMenu/components/index.d.ts +1 -0
  73. package/dist/modules/HighestStandards/components/TabsMenu/index.d.ts +1 -0
  74. package/dist/modules/HighestStandards/components/TabsMenu/tabsMenu.module.css.cjs.js +1 -0
  75. package/dist/{components/Accordion/accordion.module.css.es.js → modules/HighestStandards/components/TabsMenu/tabsMenu.module.css.es.js} +1 -1
  76. package/dist/modules/HighestStandards/components/TabsMenu/types.d.ts +6 -0
  77. package/dist/modules/HighestStandards/components/index.d.ts +1 -0
  78. package/dist/modules/HighestStandards/highestStandards.module.css.cjs.js +1 -0
  79. package/dist/modules/HighestStandards/highestStandards.module.css.es.js +23 -0
  80. package/dist/modules/HighestStandards/index.d.ts +1 -0
  81. package/dist/modules/HighestStandards/types.d.ts +11 -0
  82. package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
  83. package/dist/modules/ImageWithText/ImageWithText.d.ts +1 -1
  84. package/dist/modules/ImageWithText/ImageWithText.es.js +17 -17
  85. package/dist/modules/ImageWithText/types.d.ts +4 -3
  86. package/dist/modules/IngredientHighlight/IngredientHighlight.cjs.js +1 -0
  87. package/dist/modules/IngredientHighlight/IngredientHighlight.d.ts +3 -0
  88. package/dist/modules/IngredientHighlight/IngredientHighlight.es.js +26 -0
  89. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -0
  90. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.d.ts +3 -0
  91. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +11 -0
  92. package/dist/modules/IngredientHighlight/components/Ingredient/index.d.ts +2 -0
  93. package/dist/modules/IngredientHighlight/components/Ingredient/ingredient.module.css.cjs.js +1 -0
  94. package/dist/modules/IngredientHighlight/components/Ingredient/ingredient.module.css.es.js +15 -0
  95. package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +7 -0
  96. package/dist/modules/IngredientHighlight/components/index.d.ts +1 -0
  97. package/dist/modules/IngredientHighlight/index.d.ts +2 -0
  98. package/dist/modules/IngredientHighlight/ingredientHighlight.module.css.cjs.js +1 -0
  99. package/dist/modules/IngredientHighlight/ingredientHighlight.module.css.es.js +15 -0
  100. package/dist/modules/IngredientHighlight/types.d.ts +7 -0
  101. package/dist/modules/Reviews/Reviews.cjs.js +1 -0
  102. package/dist/modules/Reviews/Reviews.d.ts +15 -0
  103. package/dist/modules/Reviews/Reviews.es.js +42 -0
  104. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.cjs.js +1 -0
  105. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.d.ts +3 -0
  106. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.es.js +17 -0
  107. package/dist/modules/Reviews/components/ReviewCard/index.d.ts +1 -0
  108. package/dist/modules/Reviews/components/ReviewCard/reviewCard.module.css.cjs.js +1 -0
  109. package/dist/modules/Reviews/components/ReviewCard/reviewCard.module.css.es.js +13 -0
  110. package/dist/modules/Reviews/components/ReviewList/ReviewList.cjs.js +1 -0
  111. package/dist/modules/Reviews/components/ReviewList/ReviewList.d.ts +10 -0
  112. package/dist/modules/Reviews/components/ReviewList/ReviewList.es.js +21 -0
  113. package/dist/modules/Reviews/components/ReviewList/index.d.ts +1 -0
  114. package/dist/modules/Reviews/components/ReviewList/reviewList.module.css.cjs.js +1 -0
  115. package/dist/modules/Reviews/components/ReviewList/reviewList.module.css.es.js +7 -0
  116. package/dist/modules/Reviews/index.d.ts +1 -0
  117. package/dist/modules/Reviews/reviews.module.css.cjs.js +1 -0
  118. package/dist/modules/Reviews/reviews.module.css.es.js +21 -0
  119. package/dist/modules/Reviews/types.d.ts +8 -0
  120. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -1
  121. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +1 -2
  122. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +43 -44
  123. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -1
  124. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +24 -20
  125. package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
  126. package/dist/modules/Testimonial/Testimonial.es.js +58 -40
  127. package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
  128. package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +1 -1
  129. package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
  130. package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +2 -1
  131. package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +32 -30
  132. package/dist/modules/Testimonial/testimonial.module.css.cjs.js +1 -1
  133. package/dist/modules/Testimonial/testimonial.module.css.es.js +15 -13
  134. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.cjs.js +1 -1
  135. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.es.js +45 -36
  136. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js +1 -1
  137. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js +22 -20
  138. package/package.json +30 -5
  139. package/dist/components/Accordion/Accordion.cjs.js +0 -1
  140. package/dist/components/Accordion/Accordion.d.ts +0 -8
  141. package/dist/components/Accordion/Accordion.es.js +0 -27
  142. package/dist/components/Accordion/accordion.module.css.cjs.js +0 -1
  143. package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +0 -1
  144. package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +0 -3
  145. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.cjs.js +0 -1
  146. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.es.js +0 -25
  147. package/dist/components/Accordion/components/AccordionItem/index.d.ts +0 -2
  148. package/dist/components/Accordion/components/AccordionItem/types.d.ts +0 -9
  149. package/dist/components/Accordion/components/index.d.ts +0 -1
  150. package/dist/components/Accordion/index.d.ts +0 -1
  151. package/dist/components/Accordion/types.d.ts +0 -6
  152. package/dist/modules/FAQ/FAQ.cjs.js +0 -1
  153. package/dist/modules/FAQ/FAQ.d.ts +0 -3
  154. package/dist/modules/FAQ/FAQ.es.js +0 -17
  155. package/dist/modules/FAQ/faq.module.css.cjs.js +0 -1
  156. package/dist/modules/FAQ/faq.module.css.es.js +0 -19
  157. package/dist/modules/FAQ/index.d.ts +0 -1
  158. /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,3 @@
1
+ import { TReviewCard } from '../../types';
2
+
3
+ export declare const ReviewCard: ({ review }: TReviewCard) => import("react/jsx-runtime").JSX.Element;
@@ -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,7 @@
1
+ const o = "reviewList-module__root___UIExi", t = {
2
+ root: o
3
+ };
4
+ export {
5
+ t as default,
6
+ o as root
7
+ };
@@ -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
+ };
@@ -0,0 +1,8 @@
1
+ export type TReviewCard = {
2
+ review: {
3
+ title: string;
4
+ description: string;
5
+ author: string;
6
+ stars?: number;
7
+ };
8
+ };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),x=require("../../node_modules/gsap/index.cjs.js"),p=require("../../node_modules/gsap/Flip.cjs.js"),R=require("../../node_modules/@gsap/react/src/index.cjs.js"),q=require("../../pageComponents/Bubbles/Bubbles.cjs.js"),C=require("../../pageComponents/Gradient/Gradient.cjs.js"),T=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),_=require("../../utils/cn/cn.cjs.js"),b=require("../../components/Typography/Typography.cjs.js"),B=require("../../components/Icon/Icon.cjs.js"),t=require("./SlidingTabsGallery.module.css.cjs.js");x.gsap.registerPlugin(p.Flip);const S=({title:y,tabs:o,withBubbles:j,withGradient:v})=>{const s=f.useRef(null),a=f.useRef(null),[l,h]=f.useState(o[0]);R.useGSAP(()=>{const i=s.current,n=a.current,u=r=>{if(i&&n&&r){const m=n.getBoundingClientRect(),g=r.getBoundingClientRect();x.gsap.set(i,{left:g.left-m.left,top:g.top-m.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 N=(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:[j&&e.jsx(q.Bubbles,{className:t.default.bubbles}),e.jsxs("div",{className:t.default.container,children:[e.jsx(T.HighlightedTitle,{as:"div",title:y,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:_.cn(t.default.tab,{[t.default.active]:l===i}),onClick:()=>N(i,n),children:[i.icon&&e.jsx(b.Typography,{defaultVariant:"displayMd",className:t.default.icon,children:e.jsx(B.Icon,{name:i.icon})}),e.jsx(b.Typography,{defaultVariant:"headingXs",children:i.label})]},i.label))]})}),l.description&&e.jsx("div",{className:t.default.description,children:e.jsx(T.HighlightedTitle,{as:"div",defaultVariant:"headingXs",mobileVariant:"bodyMd",className:t.default.descriptionText,title:l.description,colorScheme:"dark"})})]})]}),v&&e.jsx(C.Gradient,{variant:"blue"})]})};exports.SlidingTabsGallery=S;
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;
@@ -5,6 +5,5 @@ export type SlidingTabsGalleryProps = {
5
5
  title: ReactNode;
6
6
  tabs: ReadonlyArray<TContentTab>;
7
7
  withBubbles?: boolean;
8
- withGradient?: boolean;
9
8
  };
10
- export declare const SlidingTabsGallery: ({ title, tabs, withBubbles, withGradient }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const SlidingTabsGallery: ({ title, tabs, withBubbles }: SlidingTabsGalleryProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
3
- import { useRef as v, useState as w } from "react";
4
- import { gsap as N } from "../../node_modules/gsap/index.es.js";
3
+ import { useRef as T, useState as k } from "react";
4
+ import { gsap as C } from "../../node_modules/gsap/index.es.js";
5
5
  import { Flip as f } from "../../node_modules/gsap/Flip.es.js";
6
- import { useGSAP as B } from "../../node_modules/@gsap/react/src/index.es.js";
6
+ import { useGSAP as w } from "../../node_modules/@gsap/react/src/index.es.js";
7
7
  import { Bubbles as S } from "../../pageComponents/Bubbles/Bubbles.es.js";
8
8
  import { Gradient as x } from "../../pageComponents/Gradient/Gradient.es.js";
9
- import { HighlightedTitle as T } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
10
- import { cn as z } from "../../utils/cn/cn.es.js";
9
+ import { HighlightedTitle as N } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
10
+ import { cn as B } from "../../utils/cn/cn.es.js";
11
11
  import { Typography as b } from "../../components/Typography/Typography.es.js";
12
- import { Icon as V } from "../../components/Icon/Icon.es.js";
12
+ import { Icon as z } from "../../components/Icon/Icon.es.js";
13
13
  import e from "./SlidingTabsGallery.module.css.es.js";
14
- N.registerPlugin(f);
15
- const I = ({ title: C, tabs: l, withBubbles: R, withGradient: y }) => {
16
- const a = v(null), c = v(null), [o, p] = w(l[0]);
17
- B(
14
+ C.registerPlugin(f);
15
+ const I = ({ title: R, tabs: l, withBubbles: g }) => {
16
+ const c = T(null), o = T(null), [s, p] = k(l[0]);
17
+ w(
18
18
  () => {
19
- const t = a.current, r = c.current, u = (i) => {
19
+ const t = c.current, r = o.current, u = (i) => {
20
20
  if (t && r && i) {
21
- const g = r.getBoundingClientRect(), h = i.getBoundingClientRect();
22
- N.set(t, {
23
- left: h.left - g.left,
24
- top: h.top - g.top,
21
+ const v = r.getBoundingClientRect(), h = i.getBoundingClientRect();
22
+ C.set(t, {
23
+ left: h.left - v.left,
24
+ top: h.top - v.top,
25
25
  width: h.width,
26
26
  height: h.height
27
27
  });
@@ -31,9 +31,9 @@ const I = ({ title: C, tabs: l, withBubbles: R, withGradient: y }) => {
31
31
  const i = r.children[1];
32
32
  i && u(i);
33
33
  }
34
- let s;
34
+ let a;
35
35
  const d = () => {
36
- clearTimeout(s), s = setTimeout(() => {
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,64 +41,63 @@ const I = ({ title: C, tabs: l, withBubbles: R, withGradient: y }) => {
41
41
  }, 250);
42
42
  };
43
43
  return window.addEventListener("resize", d), () => {
44
- clearTimeout(s), window.removeEventListener("resize", d);
44
+ clearTimeout(a), window.removeEventListener("resize", d);
45
45
  };
46
46
  },
47
- { dependencies: [l, p], scope: c }
47
+ { dependencies: [l, p], scope: o }
48
48
  );
49
- const k = (t, r) => {
50
- if (t === o) return;
51
- const u = f.getState(a.current);
52
- if (p(t), a.current && c.current && c.current.children.length > r + 1) {
53
- const s = c.current.children[r + 1];
54
- if (s) {
55
- const d = c.current.getBoundingClientRect(), i = s.getBoundingClientRect();
56
- a.current.style.left = `${i.left - d.left}px`, a.current.style.top = `${i.top - d.top}px`, a.current.style.width = `${i.width}px`, a.current.style.height = `${i.height}px`;
49
+ const y = (t, r) => {
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: a.current,
60
+ targets: c.current,
61
61
  duration: 0.3,
62
62
  ease: "power1.inOut"
63
63
  });
64
64
  };
65
65
  return /* @__PURE__ */ m("section", { className: e.root, children: [
66
- R && /* @__PURE__ */ n(S, { className: e.bubbles }),
66
+ g && /* @__PURE__ */ n(S, { className: e.bubbles }),
67
67
  /* @__PURE__ */ m("div", { className: e.container, children: [
68
- /* @__PURE__ */ n(T, { as: "div", title: C, className: e.header, colorScheme: "dark" }),
68
+ /* @__PURE__ */ n(N, { as: "div", title: R, className: e.header, colorScheme: "dark" }),
69
69
  /* @__PURE__ */ m("div", { className: e.content, children: [
70
- o.image && /* @__PURE__ */ n("div", { className: e.imageWrap, children: /* @__PURE__ */ n("img", { src: o.image, alt: "Total Care", className: e.image }) }),
71
- /* @__PURE__ */ n("div", { className: e.tabsContainer, children: /* @__PURE__ */ m("div", { ref: c, className: e.tabs, children: [
72
- /* @__PURE__ */ n("div", { ref: a, id: "marker", className: e.marker }),
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
- className: z(e.tab, {
77
- [e.active]: o === t
76
+ className: B(e.tab, {
77
+ [e.active]: s === t
78
78
  }),
79
- onClick: () => k(t, r),
79
+ onClick: () => y(t, r),
80
80
  children: [
81
- t.icon && /* @__PURE__ */ n(b, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(V, { name: t.icon }) }),
82
- /* @__PURE__ */ n(b, { defaultVariant: "headingXs", children: t.label })
81
+ t.icon && /* @__PURE__ */ n(b, { defaultVariant: "displayMd", className: e.icon, children: /* @__PURE__ */ n(z, { name: t.icon }) }),
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
- o.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
89
- T,
88
+ s.description && /* @__PURE__ */ n("div", { className: e.description, children: /* @__PURE__ */ n(
89
+ N,
90
90
  {
91
91
  as: "div",
92
- defaultVariant: "headingXs",
93
- mobileVariant: "bodyMd",
92
+ defaultVariant: "bodyMd",
94
93
  className: e.descriptionText,
95
- title: o.description,
94
+ title: s.description,
96
95
  colorScheme: "dark"
97
96
  }
98
97
  ) })
99
98
  ] })
100
99
  ] }),
101
- y && /* @__PURE__ */ n(x, { variant: "blue" })
100
+ g && /* @__PURE__ */ n(x, { variant: "blue" })
102
101
  ] });
103
102
  };
104
103
  export {
@@ -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",_="SlidingTabsGallery-module__container___vP0rd",l="SlidingTabsGallery-module__header___eJQXu",t="SlidingTabsGallery-module__content___jjd1o",i="SlidingTabsGallery-module__tabsContainer___Se1lx",n="SlidingTabsGallery-module__tabs___ZEKrF",o="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__image___E02Sh",m={root:e,bubbles:a,container:_,header:l,content:t,tabsContainer:i,tabs:n,tab:o,active:r,marker:s,imageWrap:d,description:b,image:c};exports.active=r;exports.bubbles=a;exports.container=_;exports.content=t;exports.default=m;exports.description=b;exports.header=l;exports.image=c;exports.imageWrap=d;exports.marker=s;exports.root=e;exports.tab=o;exports.tabs=n;exports.tabsContainer=i;
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 _ = "SlidingTabsGallery-module__root___BsvYn", e = "SlidingTabsGallery-module__bubbles___XumkJ", a = "SlidingTabsGallery-module__container___vP0rd", l = "SlidingTabsGallery-module__header___eJQXu", t = "SlidingTabsGallery-module__content___jjd1o", n = "SlidingTabsGallery-module__tabsContainer___Se1lx", o = "SlidingTabsGallery-module__tabs___ZEKrF", i = "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__image___E02Sh", m = {
2
- root: _,
3
- bubbles: e,
4
- container: a,
5
- header: l,
6
- content: t,
7
- tabsContainer: n,
8
- tabs: o,
9
- tab: i,
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
- image: c
14
+ descriptionText: c,
15
+ image: m,
16
+ mobile: g
15
17
  };
16
18
  export {
17
19
  s as active,
18
- e as bubbles,
19
- a as container,
20
- t as content,
21
- m as default,
20
+ _ as bubbles,
21
+ l as container,
22
+ i as content,
23
+ u as default,
22
24
  b as description,
23
- l as header,
24
- c as image,
25
+ c as descriptionText,
26
+ a as header,
27
+ m as image,
25
28
  d as imageWrap,
26
29
  r as marker,
27
- _ as root,
28
- i as tab,
29
- o as tabs,
30
- n as tabsContainer
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"),j=require("../../node_modules/swiper/modules/navigation.cjs.js"),d=require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const c=require("../../components/ProgressButton/ProgressButton.cjs.js"),f=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),q=require("../../components/Typography/Typography.cjs.js"),C=require("../../components/RatingStars/RatingStars.cjs.js"),w=require("../../utils/useSwiper/useSwiper.cjs.js"),R=require("./components/VideoCard/VideoCard.cjs.js"),k=require("./components/TextCard/TextCard.cjs.js"),i=require("./testimonial.module.css.cjs.js"),N=[j.default],_=({title:u,rating:a,reviews:h})=>{const{isEnd:r,isBeginning:n,hideNav:t,handleSlideChange:g,handlePrevClick:l,handleNextClick:o,onSwiperInit:p,handleSwiperResize:m,handleReachEnd:S,handleReachBeginning:x}=w.useSwiper();return e.jsxs("section",{className:i.default.root,children:[e.jsxs("div",{className:i.default.headerContainer,children:[a&&e.jsxs("div",{className:i.default.ratingContainer,children:[!!a.stars&&e.jsx(C.RatingStars,{rating:a.stars}),!!a.totalReviews&&e.jsxs(q.Typography,{as:"p",defaultVariant:"labelLg",mobileVariant:"labelSm",emphasis:!0,children:[a.totalReviews,"+ member reviews"]})]}),e.jsxs("div",{className:i.default.headerRow,children:[e.jsx(f.HighlightedTitle,{title:u,colorScheme:"light"}),!t&&e.jsx("div",{className:i.default.desktopNavigation,children:e.jsx(c.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:r,onClick:o}})})]})]}),e.jsx("div",{className:i.default.content,children:e.jsx(d.Swiper,{onSwiper:p,onResize:m,onSlideChange:g,onReachEnd:S,onReachBeginning:x,modules:N,spaceBetween:0,slidesPerView:"auto",className:i.default.swiper,wrapperClass:i.default.swiperWrapper,children:h.map((s,b)=>e.jsx(d.SwiperSlide,{className:i.default.swiperSlide,children:s.background.type==="video"?e.jsx(R.VideoCard,{...s,background:s.background}):e.jsx(k.TextCard,{...s,background:s.background})},`${s.background.type}_${b}`))})}),!t&&e.jsx("div",{className:i.default.mobileNavigation,children:e.jsx(c.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:r,onClick:o}})})]})};exports.Testimonial=_;
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 N from "../../node_modules/swiper/modules/navigation.es.js";
4
- import { Swiper as k, SwiperSlide as C } from "../../node_modules/swiper/swiper-react.es.js";
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 c } from "../../components/ProgressButton/ProgressButton.es.js";
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 R } from "../../components/Typography/Typography.es.js";
11
- import { RatingStars as v } from "../../components/RatingStars/RatingStars.es.js";
12
- import { useSwiper as x } from "../../utils/useSwiper/useSwiper.es.js";
13
- import { VideoCard as y } from "./components/VideoCard/VideoCard.es.js";
14
- import { TextCard as B } from "./components/TextCard/TextCard.es.js";
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 E = [N], U = ({ title: m, rating: r, reviews: p }) => {
16
+ const z = [v], W = ({ title: p, rating: a, reviews: g }) => {
17
17
  const {
18
- isEnd: n,
19
- isBeginning: s,
18
+ activeIndex: b,
19
+ isEnd: s,
20
+ isBeginning: n,
20
21
  hideNav: l,
21
- handleSlideChange: h,
22
+ handleSlideChange: N,
22
23
  handlePrevClick: t,
23
24
  handleNextClick: d,
24
- onSwiperInit: g,
25
- handleSwiperResize: b,
26
- handleReachEnd: S,
27
- handleReachBeginning: f
28
- } = x();
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
- r && /* @__PURE__ */ o("div", { className: i.ratingContainer, children: [
32
- !!r.stars && /* @__PURE__ */ e(v, { rating: r.stars }),
33
- !!r.totalReviews && /* @__PURE__ */ o(R, { as: "p", defaultVariant: "labelLg", mobileVariant: "labelSm", emphasis: !0, children: [
34
- r.totalReviews,
35
- "+ member reviews"
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: m, colorScheme: "light" }),
51
+ /* @__PURE__ */ e(w, { title: p, colorScheme: "light" }),
40
52
  !l && /* @__PURE__ */ e("div", { className: i.desktopNavigation, children: /* @__PURE__ */ e(
41
- c,
53
+ m,
42
54
  {
43
55
  left: {
44
- disabled: s,
56
+ disabled: n,
45
57
  onClick: t
46
58
  },
47
59
  right: {
48
- disabled: n,
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
- k,
68
+ C,
57
69
  {
58
- onSwiper: g,
59
- onResize: b,
60
- onSlideChange: h,
61
- onReachEnd: S,
62
- onReachBeginning: f,
63
- modules: E,
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
- wrapperClass: i.swiperWrapper,
68
- children: p.map((a, u) => /* @__PURE__ */ e(C, { className: i.swiperSlide, children: a.background.type === "video" ? /* @__PURE__ */ e(y, { ...a, background: a.background }) : /* @__PURE__ */ e(B, { ...a, background: a.background }) }, `${a.background.type}_${u}`))
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
- c,
90
+ m,
73
91
  {
74
92
  left: {
75
- disabled: s,
93
+ disabled: n,
76
94
  onClick: t
77
95
  },
78
96
  right: {
79
- disabled: n,
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
- U as Testimonial
105
+ W as Testimonial
88
106
  };