@zenpatient-org/healthspan-marketing-ui 0.1.27 → 0.1.29

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 (161) 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/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
  41. package/dist/components/StepsCarousel/StepsCarousel.es.js +38 -42
  42. package/dist/healthspan-marketing-ui.css +1 -1
  43. package/dist/icons/action/bracket-left.svg.cjs.js +1 -1
  44. package/dist/icons/action/bracket-left.svg.es.js +2 -2
  45. package/dist/icons/action/bracket-right.svg.cjs.js +1 -1
  46. package/dist/icons/action/bracket-right.svg.es.js +2 -2
  47. package/dist/icons/bold/arrow-bold.svg.cjs.js +1 -0
  48. package/dist/icons/bold/arrow-bold.svg.es.js +5 -0
  49. package/dist/icons/bold/close-bold.svg.cjs.js +1 -0
  50. package/dist/icons/bold/close-bold.svg.es.js +5 -0
  51. package/dist/icons/bold/dot-bold.svg.cjs.js +1 -0
  52. package/dist/icons/bold/dot-bold.svg.es.js +5 -0
  53. package/dist/icons/bold/plus-bold.svg.cjs.js +1 -0
  54. package/dist/icons/bold/plus-bold.svg.es.js +5 -0
  55. package/dist/modules/FAQModule/FAQModule.cjs.js +1 -0
  56. package/dist/modules/FAQModule/FAQModule.d.ts +3 -0
  57. package/dist/modules/FAQModule/FAQModule.es.js +17 -0
  58. package/dist/modules/FAQModule/faqModule.module.css.cjs.js +1 -0
  59. package/dist/modules/FAQModule/faqModule.module.css.es.js +19 -0
  60. package/dist/modules/FAQModule/index.d.ts +1 -0
  61. package/dist/modules/HighestStandards/HighestStandards.cjs.js +1 -0
  62. package/dist/modules/HighestStandards/HighestStandards.d.ts +3 -0
  63. package/dist/modules/HighestStandards/HighestStandards.es.js +26 -0
  64. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.cjs.js +1 -0
  65. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.d.ts +3 -0
  66. package/dist/modules/HighestStandards/components/TabsMenu/TabsMenu.es.js +24 -0
  67. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.cjs.js +1 -0
  68. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.d.ts +3 -0
  69. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.es.js +31 -0
  70. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/index.d.ts +2 -0
  71. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/tabsMenuItem.module.css.cjs.js +1 -0
  72. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/tabsMenuItem.module.css.es.js +23 -0
  73. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/types.d.ts +9 -0
  74. package/dist/modules/HighestStandards/components/TabsMenu/components/index.d.ts +1 -0
  75. package/dist/modules/HighestStandards/components/TabsMenu/index.d.ts +1 -0
  76. package/dist/modules/HighestStandards/components/TabsMenu/tabsMenu.module.css.cjs.js +1 -0
  77. package/dist/{components/Accordion/accordion.module.css.es.js → modules/HighestStandards/components/TabsMenu/tabsMenu.module.css.es.js} +1 -1
  78. package/dist/modules/HighestStandards/components/TabsMenu/types.d.ts +6 -0
  79. package/dist/modules/HighestStandards/components/index.d.ts +1 -0
  80. package/dist/modules/HighestStandards/highestStandards.module.css.cjs.js +1 -0
  81. package/dist/modules/HighestStandards/highestStandards.module.css.es.js +23 -0
  82. package/dist/modules/HighestStandards/index.d.ts +1 -0
  83. package/dist/modules/HighestStandards/types.d.ts +11 -0
  84. package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -1
  85. package/dist/modules/ImageWithText/ImageWithText.d.ts +1 -1
  86. package/dist/modules/ImageWithText/ImageWithText.es.js +17 -17
  87. package/dist/modules/ImageWithText/types.d.ts +4 -3
  88. package/dist/modules/IngredientHighlight/IngredientHighlight.cjs.js +1 -0
  89. package/dist/modules/IngredientHighlight/IngredientHighlight.d.ts +3 -0
  90. package/dist/modules/IngredientHighlight/IngredientHighlight.es.js +26 -0
  91. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -0
  92. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.d.ts +3 -0
  93. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +11 -0
  94. package/dist/modules/IngredientHighlight/components/Ingredient/index.d.ts +2 -0
  95. package/dist/modules/IngredientHighlight/components/Ingredient/ingredient.module.css.cjs.js +1 -0
  96. package/dist/modules/IngredientHighlight/components/Ingredient/ingredient.module.css.es.js +15 -0
  97. package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +7 -0
  98. package/dist/modules/IngredientHighlight/components/index.d.ts +1 -0
  99. package/dist/modules/IngredientHighlight/index.d.ts +2 -0
  100. package/dist/modules/IngredientHighlight/ingredientHighlight.module.css.cjs.js +1 -0
  101. package/dist/modules/IngredientHighlight/ingredientHighlight.module.css.es.js +15 -0
  102. package/dist/modules/IngredientHighlight/types.d.ts +7 -0
  103. package/dist/modules/Reviews/Reviews.cjs.js +1 -0
  104. package/dist/modules/Reviews/Reviews.d.ts +15 -0
  105. package/dist/modules/Reviews/Reviews.es.js +42 -0
  106. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.cjs.js +1 -0
  107. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.d.ts +3 -0
  108. package/dist/modules/Reviews/components/ReviewCard/ReviewCard.es.js +17 -0
  109. package/dist/modules/Reviews/components/ReviewCard/index.d.ts +1 -0
  110. package/dist/modules/Reviews/components/ReviewCard/reviewCard.module.css.cjs.js +1 -0
  111. package/dist/modules/Reviews/components/ReviewCard/reviewCard.module.css.es.js +13 -0
  112. package/dist/modules/Reviews/components/ReviewList/ReviewList.cjs.js +1 -0
  113. package/dist/modules/Reviews/components/ReviewList/ReviewList.d.ts +10 -0
  114. package/dist/modules/Reviews/components/ReviewList/ReviewList.es.js +21 -0
  115. package/dist/modules/Reviews/components/ReviewList/index.d.ts +1 -0
  116. package/dist/modules/Reviews/components/ReviewList/reviewList.module.css.cjs.js +1 -0
  117. package/dist/modules/Reviews/components/ReviewList/reviewList.module.css.es.js +7 -0
  118. package/dist/modules/Reviews/index.d.ts +1 -0
  119. package/dist/modules/Reviews/reviews.module.css.cjs.js +1 -0
  120. package/dist/modules/Reviews/reviews.module.css.es.js +21 -0
  121. package/dist/modules/Reviews/types.d.ts +8 -0
  122. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -1
  123. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +24 -25
  124. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -1
  125. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +24 -20
  126. package/dist/modules/Testimonial/Testimonial.cjs.js +1 -1
  127. package/dist/modules/Testimonial/Testimonial.es.js +58 -40
  128. package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
  129. package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +1 -1
  130. package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -1
  131. package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +2 -1
  132. package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +32 -30
  133. package/dist/modules/Testimonial/testimonial.module.css.cjs.js +1 -1
  134. package/dist/modules/Testimonial/testimonial.module.css.es.js +15 -13
  135. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.cjs.js +1 -1
  136. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.es.js +45 -36
  137. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js +1 -1
  138. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js +22 -20
  139. package/dist/pageComponents/Bubbles/Bubbles.cjs.js +1 -1
  140. package/dist/pageComponents/Bubbles/Bubbles.es.js +12 -20
  141. package/package.json +30 -5
  142. package/dist/components/Accordion/Accordion.cjs.js +0 -1
  143. package/dist/components/Accordion/Accordion.d.ts +0 -8
  144. package/dist/components/Accordion/Accordion.es.js +0 -27
  145. package/dist/components/Accordion/accordion.module.css.cjs.js +0 -1
  146. package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +0 -1
  147. package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +0 -3
  148. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.cjs.js +0 -1
  149. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.es.js +0 -25
  150. package/dist/components/Accordion/components/AccordionItem/index.d.ts +0 -2
  151. package/dist/components/Accordion/components/AccordionItem/types.d.ts +0 -9
  152. package/dist/components/Accordion/components/index.d.ts +0 -1
  153. package/dist/components/Accordion/index.d.ts +0 -1
  154. package/dist/components/Accordion/types.d.ts +0 -6
  155. package/dist/modules/FAQ/FAQ.cjs.js +0 -1
  156. package/dist/modules/FAQ/FAQ.d.ts +0 -3
  157. package/dist/modules/FAQ/FAQ.es.js +0 -17
  158. package/dist/modules/FAQ/faq.module.css.cjs.js +0 -1
  159. package/dist/modules/FAQ/faq.module.css.es.js +0 -19
  160. package/dist/modules/FAQ/index.d.ts +0 -1
  161. /package/dist/modules/{FAQ → FAQModule}/types.d.ts +0 -0
@@ -1,63 +1,65 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as n } from "react/jsx-runtime";
3
- import { useState as h, useRef as d, useEffect as p } from "react";
4
- import { Typography as g } from "../../../../components/Typography/Typography.es.js";
5
- import { PlayButton as y } from "../../../../components/PlayButton/PlayButton.es.js";
6
- import { cn as b } from "../../../../utils/cn/cn.es.js";
7
- import { Product as v } from "../Product/Product.es.js";
2
+ import { jsxs as c, jsx as s } from "react/jsx-runtime";
3
+ import { useState as g, useRef as h, useEffect as u } from "react";
4
+ import { Typography as y } from "../../../../components/Typography/Typography.es.js";
5
+ import { PlayButton as b } from "../../../../components/PlayButton/PlayButton.es.js";
6
+ import { cn as v } from "../../../../utils/cn/cn.es.js";
7
+ import { Product as C } from "../Product/Product.es.js";
8
8
  import r from "./videoCard.module.css.es.js";
9
- const V = ({ product: a, review: s, background: u }) => {
10
- var f;
11
- const [e, l] = h(!1), t = d(null), m = d(null);
12
- return p(() => {
13
- const i = new IntersectionObserver(
9
+ const j = ({ product: t, review: i, background: f, isActive: d }) => {
10
+ var p;
11
+ const [e, n] = g(!1), a = h(null), m = h(null);
12
+ return u(() => {
13
+ const l = new IntersectionObserver(
14
14
  ([o]) => {
15
- !o.isIntersecting && e && l(!1);
15
+ !o.isIntersecting && e && n(!1);
16
16
  },
17
17
  { threshold: 0.2 }
18
18
  );
19
- return m.current && i.observe(m.current), () => i.disconnect();
20
- }, [e]), p(() => {
21
- !e && t.current && (t.current.pause(), t.current.currentTime = 0);
19
+ return m.current && l.observe(m.current), () => l.disconnect();
20
+ }, [e]), u(() => {
21
+ d || n(!1);
22
+ }, [d]), u(() => {
23
+ !e && a.current && (a.current.pause(), a.current.currentTime = 0);
22
24
  }, [e]), /* @__PURE__ */ c(
23
25
  "div",
24
26
  {
25
27
  className: r.root,
26
28
  ref: m,
27
- onClick: () => e ? l(!1) : void 0,
28
- style: { backgroundImage: `url(${u.preview})` },
29
+ onClick: () => e ? n(!1) : void 0,
30
+ style: { backgroundImage: `url(${f.preview})` },
29
31
  children: [
30
32
  /* @__PURE__ */ c("div", { className: r.mediaContainer, children: [
31
- /* @__PURE__ */ n(
33
+ /* @__PURE__ */ s(
32
34
  "video",
33
35
  {
34
- ref: t,
35
- src: u.url,
36
+ ref: a,
37
+ src: f.url,
36
38
  playsInline: !0,
37
39
  controls: !1,
38
- muted: !0,
39
- loop: !0,
40
- className: b(r.media, !e && r.mediaHidden)
40
+ muted: !1,
41
+ onEnded: () => n(!1),
42
+ className: v(r.media, !e && r.mediaHidden)
41
43
  }
42
44
  ),
43
- !e && /* @__PURE__ */ n("div", { className: r.playButton, children: /* @__PURE__ */ n(
44
- y,
45
+ !e && /* @__PURE__ */ s("div", { className: r.playButton, children: /* @__PURE__ */ s(
46
+ b,
45
47
  {
46
- onClick: (i) => {
48
+ onClick: (l) => {
47
49
  var o;
48
- i.stopPropagation(), (o = t.current) == null || o.play(), l(!0);
50
+ l.stopPropagation(), (o = a.current) == null || o.play(), n(!0);
49
51
  }
50
52
  }
51
53
  ) })
52
54
  ] }),
53
55
  /* @__PURE__ */ c("div", { className: r.infoContainer, children: [
54
- ((f = s == null ? void 0 : s.author) == null ? void 0 : f.username) && /* @__PURE__ */ n(g, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: s.author.username }),
55
- a && /* @__PURE__ */ n(v, { image: a.image, name: a.name, link: a.link })
56
+ ((p = i == null ? void 0 : i.author) == null ? void 0 : p.username) && /* @__PURE__ */ s(y, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: i.author.username }),
57
+ t && /* @__PURE__ */ s(C, { image: t.image, name: t.name, link: t.link })
56
58
  ] })
57
59
  ]
58
60
  }
59
61
  );
60
62
  };
61
63
  export {
62
- V as VideoCard
64
+ j as VideoCard
63
65
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="testimonial-module__root___Y3TlQ",o="testimonial-module__headerContainer___-FGrO",t="testimonial-module__headerRow___0JTHr",i="testimonial-module__ratingContainer___U9FDs",n="testimonial-module__content___BCbh-",a="testimonial-module__swiper___Necxi",r="testimonial-module__swiperWrapper___O-8SI",_="testimonial-module__swiperSlide___NvGru",s="testimonial-module__mobileNavigation___C1PT2",l="testimonial-module__desktopNavigation___nwHQV",d={root:e,headerContainer:o,headerRow:t,ratingContainer:i,content:n,swiper:a,swiperWrapper:r,swiperSlide:_,mobileNavigation:s,desktopNavigation:l};exports.content=n;exports.default=d;exports.desktopNavigation=l;exports.headerContainer=o;exports.headerRow=t;exports.mobileNavigation=s;exports.ratingContainer=i;exports.root=e;exports.swiper=a;exports.swiperSlide=_;exports.swiperWrapper=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="testimonial-module__root___Y3TlQ",o="testimonial-module__headerContainer___-FGrO",t="testimonial-module__headerRow___0JTHr",i="testimonial-module__ratingContainer___U9FDs",n="testimonial-module__content___BCbh-",_="testimonial-module__swiper___Necxi",a="testimonial-module__swiperSlide___NvGru",s="testimonial-module__mobile___-hB8U",l="testimonial-module__mobileNavigation___C1PT2",r="testimonial-module__desktop___D6s9T",d="testimonial-module__desktopNavigation___nwHQV",m={root:e,headerContainer:o,headerRow:t,ratingContainer:i,content:n,swiper:_,swiperSlide:a,mobile:s,mobileNavigation:l,desktop:r,desktopNavigation:d};exports.content=n;exports.default=m;exports.desktop=r;exports.desktopNavigation=d;exports.headerContainer=o;exports.headerRow=t;exports.mobile=s;exports.mobileNavigation=l;exports.ratingContainer=i;exports.root=e;exports.swiper=_;exports.swiperSlide=a;
@@ -1,25 +1,27 @@
1
- const e = "testimonial-module__root___Y3TlQ", o = "testimonial-module__headerContainer___-FGrO", t = "testimonial-module__headerRow___0JTHr", i = "testimonial-module__ratingContainer___U9FDs", _ = "testimonial-module__content___BCbh-", n = "testimonial-module__swiper___Necxi", a = "testimonial-module__swiperWrapper___O-8SI", r = "testimonial-module__swiperSlide___NvGru", s = "testimonial-module__mobileNavigation___C1PT2", l = "testimonial-module__desktopNavigation___nwHQV", d = {
2
- root: e,
3
- headerContainer: o,
1
+ const o = "testimonial-module__root___Y3TlQ", e = "testimonial-module__headerContainer___-FGrO", t = "testimonial-module__headerRow___0JTHr", i = "testimonial-module__ratingContainer___U9FDs", _ = "testimonial-module__content___BCbh-", n = "testimonial-module__swiper___Necxi", a = "testimonial-module__swiperSlide___NvGru", s = "testimonial-module__mobile___-hB8U", l = "testimonial-module__mobileNavigation___C1PT2", m = "testimonial-module__desktop___D6s9T", r = "testimonial-module__desktopNavigation___nwHQV", d = {
2
+ root: o,
3
+ headerContainer: e,
4
4
  headerRow: t,
5
5
  ratingContainer: i,
6
6
  content: _,
7
7
  swiper: n,
8
- swiperWrapper: a,
9
- swiperSlide: r,
10
- mobileNavigation: s,
11
- desktopNavigation: l
8
+ swiperSlide: a,
9
+ mobile: s,
10
+ mobileNavigation: l,
11
+ desktop: m,
12
+ desktopNavigation: r
12
13
  };
13
14
  export {
14
15
  _ as content,
15
16
  d as default,
16
- l as desktopNavigation,
17
- o as headerContainer,
17
+ m as desktop,
18
+ r as desktopNavigation,
19
+ e as headerContainer,
18
20
  t as headerRow,
19
- s as mobileNavigation,
21
+ s as mobile,
22
+ l as mobileNavigation,
20
23
  i as ratingContainer,
21
- e as root,
24
+ o as root,
22
25
  n as swiper,
23
- r as swiperSlide,
24
- a as swiperWrapper
26
+ a as swiperSlide
25
27
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),c=require("../../../../components/Typography/Typography.cjs.js"),h=require("../../../../utils/cn/cn.cjs.js"),a=require("./timelineContent.module.css.cjs.js");function p(r){const l=r.slice();for(let i=l.length-1;i>0;i--){const n=Math.floor(Math.random()*(i+1));[l[i],l[n]]=[l[n],l[i]]}return l}const f=[{key:"optimal",label:"Optimal"},{key:"inRange",label:"In Range"},{key:"outOfRange",label:"Out of Range"}],g=({tabs:r})=>{const[l,i]=d.useState(0),{optimal:n,inRange:o,outOfRange:u}=r[l],m=d.useMemo(()=>p([...Array(n).fill("optimal"),...Array(o).fill("inRange"),...Array(u).fill("outOfRange")]),[n,o,u]);return e.jsxs("div",{className:a.default.root,children:[e.jsxs("div",{className:a.default.content,children:[e.jsx("div",{className:a.default.metricsContainer,children:f.map((t,s)=>e.jsxs("div",{className:a.default.metric,children:[e.jsx(c.Typography,{defaultVariant:"displayLg",mobileVariant:"displaySm",weight:"regular",children:r[l][t.key]}),e.jsxs("div",{className:a.default.metricTitle,children:[e.jsx(c.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:"("}),e.jsx(c.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:t.label}),e.jsx("div",{className:a.default.circle,"data-key":t.key}),e.jsx(c.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:")"})]})]},t.key))}),e.jsx("div",{className:a.default.canvas,children:m.map((t,s)=>e.jsx("div",{className:a.default.circle,"data-key":t},s))})]}),e.jsx("div",{className:a.default.tabsContainer,children:r.map((t,s)=>e.jsx("button",{className:h.cn(a.default.tab,l===s&&a.default.tabActive),onClick:()=>i(s),children:e.jsx(c.Typography,{defaultVariant:"labelMd",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:t.label})},t.label))})]})};exports.TimelineContent=g;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),o=require("../../../../components/Typography/Typography.cjs.js"),b=require("../../../../utils/cn/cn.cjs.js"),l=require("./timelineContent.module.css.cjs.js");function T(r){const t=r.slice();for(let n=t.length-1;n>0;n--){const i=Math.floor(Math.random()*(n+1));[t[n],t[i]]=[t[i],t[n]]}return t}const j=[{key:"optimal",label:"Optimal"},{key:"inRange",label:"In Range"},{key:"outOfRange",label:"Out of Range"}],x=({tabs:r})=>{const[t,n]=u.useState(0),i=u.useRef(null),{optimal:h,inRange:m,outOfRange:f}=r[t],g=u.useMemo(()=>T([...Array(h).fill("optimal"),...Array(m).fill("inRange"),...Array(f).fill("outOfRange")]),[h,m,f]),p=u.useCallback(a=>{i.current=a.touches[0].clientX},[]),y=u.useCallback(a=>{if(i.current===null)return;const d=a.changedTouches[0].clientX-i.current;Math.abs(d)>50&&n(c=>d<0&&c<r.length-1?c+1:d>0&&c>0?c-1:c),i.current=null},[r.length]);return e.jsx("div",{className:l.default.root,children:e.jsxs("div",{className:l.default.container,children:[e.jsxs("div",{className:l.default.content,onTouchStart:p,onTouchEnd:y,children:[e.jsx("div",{className:l.default.metricsContainer,children:j.map((a,s)=>e.jsxs("div",{className:l.default.metric,children:[e.jsx(o.Typography,{defaultVariant:"displayLg",mobileVariant:"displaySm",weight:"regular",children:r[t][a.key]}),e.jsxs("div",{className:l.default.metricTitle,children:[e.jsx(o.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:"("}),e.jsx(o.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.label}),e.jsx("div",{className:l.default.circle,"data-value":a.key}),e.jsx(o.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:")"})]})]},`${a.key}_${s}`))}),e.jsx("div",{className:l.default.canvas,children:g.map((a,s)=>e.jsx("div",{className:l.default.circle,"data-value":a},s))})]}),e.jsx("div",{className:l.default.tabsContainer,children:r.map((a,s)=>e.jsx("button",{className:b.cn(l.default.tab,t===s&&l.default.tabActive),onClick:()=>n(s),children:e.jsx(o.Typography,{defaultVariant:"labelMd",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.label})},a.label))})]})})};exports.TimelineContent=x;
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
3
- import { useState as u, useMemo as p } from "react";
2
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
3
+ import { useState as v, useRef as N, useMemo as T, useCallback as g } from "react";
4
4
  import { Typography as o } from "../../../../components/Typography/Typography.es.js";
5
- import { cn as b } from "../../../../utils/cn/cn.es.js";
6
- import a from "./timelineContent.module.css.es.js";
7
- function f(r) {
8
- const l = r.slice();
9
- for (let t = l.length - 1; t > 0; t--) {
10
- const n = Math.floor(Math.random() * (t + 1));
11
- [l[t], l[n]] = [l[n], l[t]];
5
+ import { cn as R } from "../../../../utils/cn/cn.es.js";
6
+ import l from "./timelineContent.module.css.es.js";
7
+ function V(i) {
8
+ const n = i.slice();
9
+ for (let t = n.length - 1; t > 0; t--) {
10
+ const r = Math.floor(Math.random() * (t + 1));
11
+ [n[t], n[r]] = [n[r], n[t]];
12
12
  }
13
- return l;
13
+ return n;
14
14
  }
15
- const g = [
15
+ const X = [
16
16
  {
17
17
  key: "optimal",
18
18
  label: "Optimal"
@@ -25,18 +25,27 @@ const g = [
25
25
  key: "outOfRange",
26
26
  label: "Out of Range"
27
27
  }
28
- ], R = ({ tabs: r }) => {
29
- const [l, t] = u(0), { optimal: n, inRange: m, outOfRange: d } = r[l], h = p(() => f([
30
- ...Array(n).fill("optimal"),
31
- ...Array(m).fill("inRange"),
32
- ...Array(d).fill("outOfRange")
33
- ]), [n, m, d]);
34
- return /* @__PURE__ */ c("div", { className: a.root, children: [
35
- /* @__PURE__ */ c("div", { className: a.content, children: [
36
- /* @__PURE__ */ e("div", { className: a.metricsContainer, children: g.map((i, s) => /* @__PURE__ */ c("div", { className: a.metric, children: [
37
- /* @__PURE__ */ e(o, { defaultVariant: "displayLg", mobileVariant: "displaySm", weight: "regular", children: r[l][i.key] }),
38
- /* @__PURE__ */ c("div", { className: a.metricTitle, children: [
39
- /* @__PURE__ */ e(
28
+ ], E = ({ tabs: i }) => {
29
+ const [n, t] = v(0), r = N(null), { optimal: h, inRange: d, outOfRange: f } = i[n], b = T(() => V([
30
+ ...Array(h).fill("optimal"),
31
+ ...Array(d).fill("inRange"),
32
+ ...Array(f).fill("outOfRange")
33
+ ]), [h, d, f]), p = g((e) => {
34
+ r.current = e.touches[0].clientX;
35
+ }, []), y = g(
36
+ (e) => {
37
+ if (r.current === null) return;
38
+ const m = e.changedTouches[0].clientX - r.current;
39
+ Math.abs(m) > 50 && t((s) => m < 0 && s < i.length - 1 ? s + 1 : m > 0 && s > 0 ? s - 1 : s), r.current = null;
40
+ },
41
+ [i.length]
42
+ );
43
+ return /* @__PURE__ */ a("div", { className: l.root, children: /* @__PURE__ */ u("div", { className: l.container, children: [
44
+ /* @__PURE__ */ u("div", { className: l.content, onTouchStart: p, onTouchEnd: y, children: [
45
+ /* @__PURE__ */ a("div", { className: l.metricsContainer, children: X.map((e, c) => /* @__PURE__ */ u("div", { className: l.metric, children: [
46
+ /* @__PURE__ */ a(o, { defaultVariant: "displayLg", mobileVariant: "displaySm", weight: "regular", children: i[n][e.key] }),
47
+ /* @__PURE__ */ u("div", { className: l.metricTitle, children: [
48
+ /* @__PURE__ */ a(
40
49
  o,
41
50
  {
42
51
  as: "p",
@@ -47,7 +56,7 @@ const g = [
47
56
  children: "("
48
57
  }
49
58
  ),
50
- /* @__PURE__ */ e(
59
+ /* @__PURE__ */ a(
51
60
  o,
52
61
  {
53
62
  as: "p",
@@ -55,11 +64,11 @@ const g = [
55
64
  mobileVariant: "labelXs",
56
65
  emphasis: !0,
57
66
  weight: "regular",
58
- children: i.label
67
+ children: e.label
59
68
  }
60
69
  ),
61
- /* @__PURE__ */ e("div", { className: a.circle, "data-key": i.key }),
62
- /* @__PURE__ */ e(
70
+ /* @__PURE__ */ a("div", { className: l.circle, "data-value": e.key }),
71
+ /* @__PURE__ */ a(
63
72
  o,
64
73
  {
65
74
  as: "p",
@@ -71,20 +80,20 @@ const g = [
71
80
  }
72
81
  )
73
82
  ] })
74
- ] }, i.key)) }),
75
- /* @__PURE__ */ e("div", { className: a.canvas, children: h.map((i, s) => /* @__PURE__ */ e("div", { className: a.circle, "data-key": i }, s)) })
83
+ ] }, `${e.key}_${c}`)) }),
84
+ /* @__PURE__ */ a("div", { className: l.canvas, children: b.map((e, c) => /* @__PURE__ */ a("div", { className: l.circle, "data-value": e }, c)) })
76
85
  ] }),
77
- /* @__PURE__ */ e("div", { className: a.tabsContainer, children: r.map((i, s) => /* @__PURE__ */ e(
86
+ /* @__PURE__ */ a("div", { className: l.tabsContainer, children: i.map((e, c) => /* @__PURE__ */ a(
78
87
  "button",
79
88
  {
80
- className: b(a.tab, l === s && a.tabActive),
81
- onClick: () => t(s),
82
- children: /* @__PURE__ */ e(o, { defaultVariant: "labelMd", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: i.label })
89
+ className: R(l.tab, n === c && l.tabActive),
90
+ onClick: () => t(c),
91
+ children: /* @__PURE__ */ a(o, { defaultVariant: "labelMd", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: e.label })
83
92
  },
84
- i.label
93
+ e.label
85
94
  )) })
86
- ] });
95
+ ] }) });
87
96
  };
88
97
  export {
89
- R as TimelineContent
98
+ E as TimelineContent
90
99
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="timelineContent-module__root___5V2gz",e="timelineContent-module__content___HS3bJ",n="timelineContent-module__metricsContainer___Bl9Mq",i="timelineContent-module__metric___QgjTy",o="timelineContent-module__metricTitle___NgmIf",_="timelineContent-module__canvas___nyUmZ",c="timelineContent-module__circle___FOAjD",l="timelineContent-module__tabsContainer___drNVG",m="timelineContent-module__tab___sCTOs",r="timelineContent-module__tabActive___Oa023",a={root:t,content:e,metricsContainer:n,metric:i,metricTitle:o,canvas:_,circle:c,tabsContainer:l,tab:m,tabActive:r};exports.canvas=_;exports.circle=c;exports.content=e;exports.default=a;exports.metric=i;exports.metricTitle=o;exports.metricsContainer=n;exports.root=t;exports.tab=m;exports.tabActive=r;exports.tabsContainer=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="timelineContent-module__root___5V2gz",e="timelineContent-module__container___DSrBq",n="timelineContent-module__content___HS3bJ",o="timelineContent-module__metricsContainer___Bl9Mq",i="timelineContent-module__metric___QgjTy",_="timelineContent-module__metricTitle___NgmIf",c="timelineContent-module__canvas___nyUmZ",r="timelineContent-module__circle___FOAjD",l="timelineContent-module__tabsContainer___drNVG",a="timelineContent-module__tab___sCTOs",m="timelineContent-module__tabActive___Oa023",s={root:t,container:e,content:n,metricsContainer:o,metric:i,metricTitle:_,canvas:c,circle:r,tabsContainer:l,tab:a,tabActive:m};exports.canvas=c;exports.circle=r;exports.container=e;exports.content=n;exports.default=s;exports.metric=i;exports.metricTitle=_;exports.metricsContainer=o;exports.root=t;exports.tab=a;exports.tabActive=m;exports.tabsContainer=l;
@@ -1,25 +1,27 @@
1
- const t = "timelineContent-module__root___5V2gz", e = "timelineContent-module__content___HS3bJ", n = "timelineContent-module__metricsContainer___Bl9Mq", _ = "timelineContent-module__metric___QgjTy", o = "timelineContent-module__metricTitle___NgmIf", i = "timelineContent-module__canvas___nyUmZ", c = "timelineContent-module__circle___FOAjD", m = "timelineContent-module__tabsContainer___drNVG", l = "timelineContent-module__tab___sCTOs", s = "timelineContent-module__tabActive___Oa023", a = {
1
+ const t = "timelineContent-module__root___5V2gz", e = "timelineContent-module__container___DSrBq", n = "timelineContent-module__content___HS3bJ", _ = "timelineContent-module__metricsContainer___Bl9Mq", o = "timelineContent-module__metric___QgjTy", i = "timelineContent-module__metricTitle___NgmIf", c = "timelineContent-module__canvas___nyUmZ", m = "timelineContent-module__circle___FOAjD", l = "timelineContent-module__tabsContainer___drNVG", a = "timelineContent-module__tab___sCTOs", r = "timelineContent-module__tabActive___Oa023", s = {
2
2
  root: t,
3
- content: e,
4
- metricsContainer: n,
5
- metric: _,
6
- metricTitle: o,
7
- canvas: i,
8
- circle: c,
9
- tabsContainer: m,
10
- tab: l,
11
- tabActive: s
3
+ container: e,
4
+ content: n,
5
+ metricsContainer: _,
6
+ metric: o,
7
+ metricTitle: i,
8
+ canvas: c,
9
+ circle: m,
10
+ tabsContainer: l,
11
+ tab: a,
12
+ tabActive: r
12
13
  };
13
14
  export {
14
- i as canvas,
15
- c as circle,
16
- e as content,
17
- a as default,
18
- _ as metric,
19
- o as metricTitle,
20
- n as metricsContainer,
15
+ c as canvas,
16
+ m as circle,
17
+ e as container,
18
+ n as content,
19
+ s as default,
20
+ o as metric,
21
+ i as metricTitle,
22
+ _ as metricsContainer,
21
23
  t as root,
22
- l as tab,
23
- s as tabActive,
24
- m as tabsContainer
24
+ a as tab,
25
+ r as tabActive,
26
+ l as tabsContainer
25
27
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),l=require("../../utils/cn/cn.cjs.js"),n=require("./bubbles.module.css.cjs.js"),b=["xs","lg","sm","sm","xl","sm","xl","xl","xl","md","md","md","lg"],m=({className:o})=>{const[r,a]=t.useState(!1),[i,d]=t.useState(!1),c=t.useRef(null);return t.useEffect(()=>{const s=new window.IntersectionObserver(([e])=>{e.isIntersecting&&e.intersectionRatio===1&&!r&&!i&&(a(!0),setTimeout(()=>d(!0),5e3))},{threshold:1});return c.current&&s.observe(c.current),()=>s.disconnect()},[r,i]),u.jsx("section",{ref:c,className:l.cn(n.default.root,o),children:u.jsx("div",{className:n.default.container,children:b.map((s,e)=>u.jsx("div",{className:l.cn(n.default.bubble,(i||r)&&n.default.bubbleFinished),"data-size":s,"data-index":e},e))})})};exports.Bubbles=m;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("react"),n=require("../../utils/cn/cn.cjs.js"),e=require("./bubbles.module.css.cjs.js"),r=["xs","lg","sm","sm","xl","sm","xl","xl","xl","md","md","md","lg"],b=({className:a})=>{const[u,o]=t.useState(!1),[i,m]=t.useState(!1),c=t.useRef(null);return s.jsx("section",{ref:c,className:n.cn(e.default.root,a),children:s.jsx("div",{className:e.default.container,children:r.map((d,l)=>s.jsx("div",{className:n.cn(e.default.bubble,(i||u)&&e.default.bubbleFinished),"data-size":d,"data-index":l},l))})})};exports.Bubbles=b;
@@ -1,28 +1,20 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { useState as c, useRef as u, useEffect as b } from "react";
4
- import { cn as l } from "../../utils/cn/cn.es.js";
5
- import t from "./bubbles.module.css.es.js";
6
- const f = ["xs", "lg", "sm", "sm", "xl", "sm", "xl", "xl", "xl", "md", "md", "md", "lg"], g = ({ className: m }) => {
7
- const [n, a] = c(!1), [r, d] = c(!1), i = u(null);
8
- return b(() => {
9
- const s = new window.IntersectionObserver(
10
- ([e]) => {
11
- e.isIntersecting && e.intersectionRatio === 1 && !n && !r && (a(!0), setTimeout(() => d(!0), 5e3));
12
- },
13
- { threshold: 1 }
14
- );
15
- return i.current && s.observe(i.current), () => s.disconnect();
16
- }, [n, r]), /* @__PURE__ */ o("section", { ref: i, className: l(t.root, m), children: /* @__PURE__ */ o("div", { className: t.container, children: f.map((s, e) => /* @__PURE__ */ o(
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { useState as l, useRef as c } from "react";
4
+ import { cn as i } from "../../utils/cn/cn.es.js";
5
+ import s from "./bubbles.module.css.es.js";
6
+ const d = ["xs", "lg", "sm", "sm", "xl", "sm", "xl", "xl", "xl", "md", "md", "md", "lg"], N = ({ className: m }) => {
7
+ const [n, b] = l(!1), [a, f] = l(!1), o = c(null);
8
+ return /* @__PURE__ */ e("section", { ref: o, className: i(s.root, m), children: /* @__PURE__ */ e("div", { className: s.container, children: d.map((r, t) => /* @__PURE__ */ e(
17
9
  "div",
18
10
  {
19
- className: l(t.bubble, (r || n) && t.bubbleFinished),
20
- "data-size": s,
21
- "data-index": e
11
+ className: i(s.bubble, (a || n) && s.bubbleFinished),
12
+ "data-size": r,
13
+ "data-index": t
22
14
  },
23
- e
15
+ t
24
16
  )) }) });
25
17
  };
26
18
  export {
27
- g as Bubbles
19
+ N as Bubbles
28
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -223,10 +223,10 @@
223
223
  "import": "./dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js",
224
224
  "require": "./dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js"
225
225
  },
226
- "./Accordion": {
227
- "types": "./dist/components/Accordion/Accordion.d.ts",
228
- "import": "./dist/components/Accordion/Accordion.es.js",
229
- "require": "./dist/components/Accordion/Accordion.cjs.js"
226
+ "./FAQComponent": {
227
+ "types": "./dist/components/FAQComponent/FAQComponent.d.ts",
228
+ "import": "./dist/components/FAQComponent/FAQComponent.es.js",
229
+ "require": "./dist/components/FAQComponent/FAQComponent.cjs.js"
230
230
  },
231
231
  "./IconBracket": {
232
232
  "types": "./dist/components/IconBracket/IconBracket.d.ts",
@@ -248,6 +248,11 @@
248
248
  "import": "./dist/components/PlayButton/PlayButton.es.js",
249
249
  "require": "./dist/components/PlayButton/PlayButton.cjs.js"
250
250
  },
251
+ "./Pagination": {
252
+ "types": "./dist/components/Pagination/Pagination.d.ts",
253
+ "import": "./dist/components/Pagination/Pagination.es.js",
254
+ "require": "./dist/components/Pagination/Pagination.cjs.js"
255
+ },
251
256
  "./CallbackModule": {
252
257
  "types": "./dist/modules/Callback/Callback.d.ts",
253
258
  "import": "./dist/modules/Callback/Callback.es.js",
@@ -358,6 +363,26 @@
358
363
  "import": "./dist/modules/TrackProgress/TrackProgress.es.js",
359
364
  "require": "./dist/modules/TrackProgress/TrackProgress.cjs.js"
360
365
  },
366
+ "./IngredientHighlight": {
367
+ "types": "./dist/modules/IngredientHighlight/IngredientHighlight.d.ts",
368
+ "import": "./dist/modules/IngredientHighlight/IngredientHighlight.es.js",
369
+ "require": "./dist/modules/IngredientHighlight/IngredientHighlight.cjs.js"
370
+ },
371
+ "./FAQModule": {
372
+ "types": "./dist/modules/FAQModule/FAQModule.d.ts",
373
+ "import": "./dist/modules/FAQModule/FAQModule.es.js",
374
+ "require": "./dist/modules/FAQModule/FAQModule.cjs.js"
375
+ },
376
+ "./HighestStandards": {
377
+ "types": "./dist/modules/HighestStandards/HighestStandards.d.ts",
378
+ "import": "./dist/modules/HighestStandards/HighestStandards.es.js",
379
+ "require": "./dist/modules/HighestStandards/HighestStandards.cjs.js"
380
+ },
381
+ "./Reviews": {
382
+ "types": "./dist/modules/Reviews/Reviews.d.ts",
383
+ "import": "./dist/modules/Reviews/Reviews.es.js",
384
+ "require": "./dist/modules/Reviews/Reviews.cjs.js"
385
+ },
361
386
  "./Bubbles": {
362
387
  "types": "./dist/pageComponents/Bubbles/Bubbles.d.ts",
363
388
  "import": "./dist/pageComponents/Bubbles/Bubbles.es.js",
@@ -1 +0,0 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react"),p=require("./components/AccordionItem/AccordionItem.cjs.js"),I=require("./accordion.module.css.cjs.js"),S=({items:r,mode:c="multiple"})=>{const[l,i]=s.useState(null),[u,a]=s.useState(new Set),d=e=>{c==="single"?i(t=>t===e?null:e):a(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},m=e=>c==="single"?l===e:u.has(e);return o.jsx("div",{className:I.default.root,children:r.map((e,t)=>o.jsx(p.AccordionItem,{title:e.title,content:e.content,isOpen:m(t),index:t,onClick:d},t))})};exports.Accordion=S;
@@ -1,8 +0,0 @@
1
- import { TAccordionItem } from './components';
2
-
3
- type Props = {
4
- items: Array<TAccordionItem>;
5
- mode: 'single' | 'multiple';
6
- };
7
- export declare const Accordion: ({ items, mode }: Props) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,27 +0,0 @@
1
- "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { useState as l } from "react";
4
- import { AccordionItem as f } from "./components/AccordionItem/AccordionItem.es.js";
5
- import I from "./accordion.module.css.es.js";
6
- const w = ({ items: c, mode: s = "multiple" }) => {
7
- const [r, i] = l(null), [m, p] = l(/* @__PURE__ */ new Set()), a = (t) => {
8
- s === "single" ? i((e) => e === t ? null : t) : p((e) => {
9
- const o = new Set(e);
10
- return o.has(t) ? o.delete(t) : o.add(t), o;
11
- });
12
- }, u = (t) => s === "single" ? r === t : m.has(t);
13
- return /* @__PURE__ */ n("div", { className: I.root, children: c.map((t, e) => /* @__PURE__ */ n(
14
- f,
15
- {
16
- title: t.title,
17
- content: t.content,
18
- isOpen: u(e),
19
- index: e,
20
- onClick: a
21
- },
22
- e
23
- )) });
24
- };
25
- export {
26
- w as Accordion
27
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="accordion-module__root___oSY1m",e={root:o};exports.default=e;exports.root=o;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../Typography/Typography.cjs.js"),n=require("../../../Icon/Icon.cjs.js"),a=require("../../../Icon/constants.cjs.js"),t=require("../../../../utils/cn/cn.cjs.js"),o=require("./accordionItem.module.css.cjs.js"),u=({title:s,content:d,isOpen:c,index:i,onClick:l=()=>{}})=>e.jsxs("div",{className:o.default.root,children:[e.jsxs("div",{onClick:()=>l(i??0),className:t.cn(o.default.header,{[o.default.headerSticky]:c}),children:[e.jsx(r.Typography,{defaultVariant:"headingMd",mobileVariant:"headingXxs",children:s}),e.jsxs("div",{className:o.default.closeButtonWrapper,children:[e.jsx(n.Icon,{name:a.EIconName.BRACKET_LEFT}),e.jsx("div",{className:t.cn(o.default.closeButton,{[o.default.closeButtonActive]:c}),children:e.jsx(n.Icon,{name:a.EIconName.PLUS})}),e.jsx(n.Icon,{name:a.EIconName.BRACKET_RIGHT})]})]}),e.jsx("div",{className:t.cn(o.default.description,{[o.default.descriptionShow]:c}),children:e.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodyXs",children:d})}),e.jsx("div",{className:o.default.leftBorder}),e.jsx("div",{className:o.default.rightBorder})]});exports.AccordionItem=u;
@@ -1,3 +0,0 @@
1
- import { TAccordionItem } from './types';
2
-
3
- export declare const AccordionItem: ({ title, content, isOpen, index, onClick }: TAccordionItem) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="accordionItem-module__root___kmMpd",e="accordionItem-module__header___LpqCC",t="accordionItem-module__closeButtonWrapper___R46xq",r="accordionItem-module__closeButton___aKdPe",c="accordionItem-module__closeButtonActive___9Atr2",_="accordionItem-module__description___7jzjh",d="accordionItem-module__descriptionShow___lysW-",n="accordionItem-module__leftBorder___6sooc",i="accordionItem-module__rightBorder___VwUUT",s="accordionItem-module__headerSticky___OTNq3",l={root:o,header:e,closeButtonWrapper:t,closeButton:r,closeButtonActive:c,description:_,descriptionShow:d,leftBorder:n,rightBorder:i,headerSticky:s};exports.closeButton=r;exports.closeButtonActive=c;exports.closeButtonWrapper=t;exports.default=l;exports.description=_;exports.descriptionShow=d;exports.header=e;exports.headerSticky=s;exports.leftBorder=n;exports.rightBorder=i;exports.root=o;
@@ -1,25 +0,0 @@
1
- const o = "accordionItem-module__root___kmMpd", e = "accordionItem-module__header___LpqCC", t = "accordionItem-module__closeButtonWrapper___R46xq", c = "accordionItem-module__closeButton___aKdPe", _ = "accordionItem-module__closeButtonActive___9Atr2", r = "accordionItem-module__description___7jzjh", d = "accordionItem-module__descriptionShow___lysW-", n = "accordionItem-module__leftBorder___6sooc", i = "accordionItem-module__rightBorder___VwUUT", s = "accordionItem-module__headerSticky___OTNq3", l = {
2
- root: o,
3
- header: e,
4
- closeButtonWrapper: t,
5
- closeButton: c,
6
- closeButtonActive: _,
7
- description: r,
8
- descriptionShow: d,
9
- leftBorder: n,
10
- rightBorder: i,
11
- headerSticky: s
12
- };
13
- export {
14
- c as closeButton,
15
- _ as closeButtonActive,
16
- t as closeButtonWrapper,
17
- l as default,
18
- r as description,
19
- d as descriptionShow,
20
- e as header,
21
- s as headerSticky,
22
- n as leftBorder,
23
- i as rightBorder,
24
- o as root
25
- };
@@ -1,2 +0,0 @@
1
- export { AccordionItem } from './AccordionItem';
2
- export type { TAccordionItem } from './types';
@@ -1,9 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export type TAccordionItem = {
4
- title: string;
5
- content: ReactNode;
6
- index?: number;
7
- isOpen?: boolean;
8
- onClick?: (index: number) => void;
9
- };
@@ -1 +0,0 @@
1
- export { AccordionItem, type TAccordionItem } from './AccordionItem';
@@ -1 +0,0 @@
1
- export { Accordion } from './Accordion';
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export type TAccordion = {
4
- title: string;
5
- content: ReactNode;
6
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./faq.module.css.cjs.js"),l=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),s=require("../../components/Button/Button.cjs.js"),a=require("../../components/Accordion/Accordion.cjs.js"),r=({title:n,questions:i})=>e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.header,children:[e.jsx(l.HighlightedTitle,{title:n,defaultVariant:"displayMd",mobileVariant:"headingXl"}),e.jsx("div",{className:t.default.buttonWrapperDesktop,children:e.jsx(s.Button,{variant:"muted",size:"lg",as:"a",href:"/faq",children:"VIEW ALL FAQ"})}),e.jsx("div",{className:t.default.buttonWrapperMobile,children:e.jsx(s.Button,{variant:"muted",size:"sm",as:"a",href:"/faq",children:"VIEW ALL FAQ"})})]}),e.jsx("div",{className:t.default.contentDesktop,children:e.jsx(a.Accordion,{items:i,mode:"multiple"})}),e.jsx("div",{className:t.default.contentMobile,children:e.jsx(a.Accordion,{items:i,mode:"multiple"})})]})});exports.FAQ=r;
@@ -1,3 +0,0 @@
1
- import { TFaqView } from './types';
2
-
3
- export declare const FAQ: ({ title, questions }: TFaqView) => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import i from "./faq.module.css.es.js";
3
- import { HighlightedTitle as s } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
- import { Button as a } from "../../components/Button/Button.es.js";
5
- import { Accordion as l } from "../../components/Accordion/Accordion.es.js";
6
- const p = ({ title: o, questions: r }) => /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ t("div", { className: i.container, children: [
7
- /* @__PURE__ */ t("div", { className: i.header, children: [
8
- /* @__PURE__ */ e(s, { title: o, defaultVariant: "displayMd", mobileVariant: "headingXl" }),
9
- /* @__PURE__ */ e("div", { className: i.buttonWrapperDesktop, children: /* @__PURE__ */ e(a, { variant: "muted", size: "lg", as: "a", href: "/faq", children: "VIEW ALL FAQ" }) }),
10
- /* @__PURE__ */ e("div", { className: i.buttonWrapperMobile, children: /* @__PURE__ */ e(a, { variant: "muted", size: "sm", as: "a", href: "/faq", children: "VIEW ALL FAQ" }) })
11
- ] }),
12
- /* @__PURE__ */ e("div", { className: i.contentDesktop, children: /* @__PURE__ */ e(l, { items: r, mode: "multiple" }) }),
13
- /* @__PURE__ */ e("div", { className: i.contentMobile, children: /* @__PURE__ */ e(l, { items: r, mode: "multiple" }) })
14
- ] }) });
15
- export {
16
- p as FAQ
17
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="faq-module__root___Ywlru",e="faq-module__container___gsAKV",t="faq-module__header___3ZkST",n="faq-module__buttonWrapperDesktop___fHoTf",_="faq-module__buttonWrapperMobile___PRPQR",r="faq-module__contentDesktop___7Lor2",a="faq-module__contentMobile___4T04V",p={root:o,container:e,header:t,buttonWrapperDesktop:n,buttonWrapperMobile:_,contentDesktop:r,contentMobile:a};exports.buttonWrapperDesktop=n;exports.buttonWrapperMobile=_;exports.container=e;exports.contentDesktop=r;exports.contentMobile=a;exports.default=p;exports.header=t;exports.root=o;