@zenpatient-org/healthspan-marketing-ui 0.1.16 → 0.1.18

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 (148) hide show
  1. package/dist/components/Benefit/Benefit.d.ts +8 -0
  2. package/dist/components/Benefit/index.d.ts +2 -0
  3. package/dist/components/Button/Button.es.js +33 -31
  4. package/dist/components/Callback/Callback.cjs.js +1 -1
  5. package/dist/components/Callback/Callback.es.js +16 -8
  6. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +19 -0
  7. package/dist/components/ComplexTooltip/index.d.ts +1 -0
  8. package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
  9. package/dist/components/ContentTabs/ContentTabs.d.ts +1 -1
  10. package/dist/components/ContentTabs/ContentTabs.es.js +13 -4
  11. package/dist/components/Cursor/Cursor.d.ts +6 -0
  12. package/dist/components/Cursor/components/ClientCursor.d.ts +3 -0
  13. package/dist/components/Cursor/components/ServerCursor.d.ts +3 -0
  14. package/dist/components/Cursor/index.d.ts +1 -0
  15. package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
  16. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
  17. package/dist/components/FilterMenu/FilterMenu.es.js +82 -38
  18. package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
  19. package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +2 -2
  20. package/dist/components/HighlightedTitle/HighlightedTitle.es.js +33 -17
  21. package/dist/components/IconButton/IconButton.cjs.js +1 -1
  22. package/dist/components/IconButton/IconButton.es.js +16 -19
  23. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  24. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +3 -0
  25. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +80 -46
  26. package/dist/components/Label/Label.cjs.js +1 -1
  27. package/dist/components/Label/Label.d.ts +1 -1
  28. package/dist/components/Label/Label.es.js +15 -9
  29. package/dist/components/Label/types.d.ts +1 -0
  30. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -0
  31. package/dist/components/ProductGallery/ProductGallery.d.ts +8 -0
  32. package/dist/components/ProductGallery/ProductGallery.es.js +99 -0
  33. package/dist/components/ProductGallery/index.d.ts +2 -0
  34. package/dist/components/ProductGallery/productGallery.module.css.cjs.js +1 -0
  35. package/dist/components/ProductGallery/productGallery.module.css.es.js +27 -0
  36. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  37. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +2 -11
  38. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +67 -20
  39. package/dist/components/ProductGalleryCard/index.d.ts +1 -0
  40. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
  41. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +12 -10
  42. package/dist/components/ProductGalleryCard/types.d.ts +11 -0
  43. package/dist/components/ProductListing/ProductListing.d.ts +19 -0
  44. package/dist/components/ProductListing/index.d.ts +1 -0
  45. package/dist/components/ProgramCard/ProgramCard.d.ts +13 -0
  46. package/dist/components/ProgramCard/index.d.ts +1 -0
  47. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -0
  48. package/dist/components/ProgressButton/ProgressButton.es.js +63 -0
  49. package/dist/components/ProgressButton/progressButton.module.css.cjs.js +1 -0
  50. package/dist/components/ProgressButton/progressButton.module.css.es.js +21 -0
  51. package/dist/components/ProgressButton/types.d.ts +1 -1
  52. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  53. package/dist/components/Tabs/Tabs.d.ts +4 -2
  54. package/dist/components/Tabs/Tabs.es.js +17 -15
  55. package/dist/components/Tabs/TabsWithFade.cjs.js +1 -0
  56. package/dist/components/Tabs/TabsWithFade.d.ts +9 -0
  57. package/dist/components/Tabs/TabsWithFade.es.js +43 -0
  58. package/dist/components/Tabs/index.d.ts +2 -0
  59. package/dist/components/Tabs/tabs.module.css.cjs.js +1 -1
  60. package/dist/components/Tabs/tabs.module.css.es.js +23 -15
  61. package/dist/components/Tag/Tag.d.ts +1 -1
  62. package/dist/components/Tag/Tag.es.js +10 -1
  63. package/dist/components/TextButton/TextButton.cjs.js +1 -0
  64. package/dist/components/TextButton/TextButton.es.js +39 -0
  65. package/dist/components/TextButton/textButton.module.css.cjs.js +1 -0
  66. package/dist/components/TextButton/textButton.module.css.es.js +19 -0
  67. package/dist/components/TypeBadge/TypeBadge.d.ts +1 -1
  68. package/dist/components/Typography/Typography.d.ts +1 -1
  69. package/dist/components/Typography/Typography.es.js +14 -1
  70. package/dist/components/index.d.ts +8 -1
  71. package/dist/healthspan-marketing-ui.css +1 -1
  72. package/dist/index.cjs.js +1 -1
  73. package/dist/index.es.js +48 -36
  74. package/dist/modules/Comparison/Comparison.d.ts +1 -1
  75. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -1
  76. package/dist/modules/Comparison/types.d.ts +2 -2
  77. package/dist/modules/FeaturedIn/FeaturedIn.d.ts +21 -0
  78. package/dist/modules/FeaturedIn/index.d.ts +1 -0
  79. package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +1 -1
  80. package/dist/modules/FollowTheScience/FollowTheScience.d.ts +10 -0
  81. package/dist/modules/FollowTheScience/index.d.ts +1 -0
  82. package/dist/modules/HowItWorks/HowItWorks.d.ts +11 -0
  83. package/dist/modules/HowItWorks/components/Content/Content.d.ts +10 -0
  84. package/dist/modules/HowItWorks/components/Content/index.d.ts +1 -0
  85. package/dist/modules/HowItWorks/index.d.ts +1 -0
  86. package/dist/modules/OptimalHealth/OptimalHealth.d.ts +11 -0
  87. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +7 -0
  88. package/dist/modules/OptimalHealth/components/ClockImages/hooks.d.ts +1 -0
  89. package/dist/modules/OptimalHealth/components/ClockImages/index.d.ts +1 -0
  90. package/dist/modules/OptimalHealth/index.d.ts +1 -0
  91. package/dist/modules/OptimalHealth/types.d.ts +12 -0
  92. package/dist/modules/OurProcess/OurProcess.d.ts +12 -0
  93. package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +9 -0
  94. package/dist/modules/OurProcess/components/StepCards/index.d.ts +1 -0
  95. package/dist/modules/OurProcess/index.d.ts +1 -0
  96. package/dist/modules/OurProcess/types.d.ts +5 -0
  97. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -0
  98. package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +3 -0
  99. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +53 -0
  100. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -0
  101. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +10 -0
  102. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +46 -0
  103. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/index.d.ts +1 -0
  104. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -0
  105. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +9 -0
  106. package/dist/modules/ProductsDisplay/components/index.d.ts +1 -0
  107. package/dist/modules/ProductsDisplay/index.d.ts +1 -0
  108. package/dist/modules/ProductsDisplay/productsDisplay.module.css.cjs.js +1 -0
  109. package/dist/modules/ProductsDisplay/productsDisplay.module.css.es.js +11 -0
  110. package/dist/modules/ProductsDisplay/types.d.ts +11 -0
  111. package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -0
  112. package/dist/modules/ProductsDisplay/useProductsData.d.ts +15 -0
  113. package/dist/modules/ProductsDisplay/useProductsData.es.js +26 -0
  114. package/dist/modules/Studies/Studies.d.ts +1 -1
  115. package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +7 -0
  116. package/dist/modules/TargetedPrograms/index.d.ts +1 -0
  117. package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
  118. package/dist/modules/TotalCare/TotalCare.d.ts +2 -2
  119. package/dist/modules/TotalCare/TotalCare.es.js +38 -19
  120. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  121. package/dist/modules/YourProtocol/YourProtocol.d.ts +1 -1
  122. package/dist/modules/YourProtocol/YourProtocol.es.js +20 -6
  123. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
  124. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +48 -22
  125. package/dist/modules/index.d.ts +1 -0
  126. package/dist/node_modules/swiper/modules/navigation.cjs.js +1 -0
  127. package/dist/node_modules/swiper/modules/navigation.es.js +127 -0
  128. package/dist/node_modules/swiper/shared/create-element-if-not-defined.cjs.js +1 -0
  129. package/dist/node_modules/swiper/shared/create-element-if-not-defined.es.js +12 -0
  130. package/dist/node_modules/swiper/shared/ssr-window.esm.cjs.js +1 -0
  131. package/dist/node_modules/swiper/shared/ssr-window.esm.es.js +135 -0
  132. package/dist/node_modules/swiper/shared/swiper-core.cjs.js +1 -0
  133. package/dist/node_modules/swiper/shared/swiper-core.es.js +2028 -0
  134. package/dist/node_modules/swiper/shared/update-on-virtual-data.cjs.js +1 -0
  135. package/dist/node_modules/swiper/shared/update-on-virtual-data.es.js +62 -0
  136. package/dist/node_modules/swiper/shared/update-swiper.cjs.js +1 -0
  137. package/dist/node_modules/swiper/shared/update-swiper.es.js +192 -0
  138. package/dist/node_modules/swiper/shared/utils.cjs.js +1 -0
  139. package/dist/node_modules/swiper/shared/utils.es.js +186 -0
  140. package/dist/node_modules/swiper/swiper-react.cjs.js +1 -0
  141. package/dist/node_modules/swiper/swiper-react.es.js +242 -0
  142. package/dist/utils/index.d.ts +1 -0
  143. package/dist/utils/useSwiper.cjs.js +1 -0
  144. package/dist/utils/useSwiper.d.ts +22 -0
  145. package/dist/utils/useSwiper.es.js +48 -0
  146. package/dist/utils.cjs.js +1 -1
  147. package/dist/utils.es.js +8 -6
  148. package/package.json +7 -2
@@ -1,62 +1,96 @@
1
- import { j as u } from "../../_virtual/jsx-runtime.es.js";
2
- import { forwardRef as I, useRef as m, useState as R, useEffect as v, useCallback as c, useImperativeHandle as L } from "react";
3
- import f from "./infiniteScroll.module.css.es.js";
4
- function N({ items: n, speed: a = 50, renderItem: A }, j) {
5
- const l = m(null), [r, h] = R(0), [o, q] = R(0), s = m(null), i = m(!1);
6
- v(() => {
7
- if (l.current) {
8
- const e = l.current.offsetWidth / 2;
9
- q(e);
10
- }
11
- }, [n]);
12
- const d = c(() => {
13
- i.current || h((e) => {
14
- const t = e - a / 60;
15
- return Math.abs(t) >= o ? t + o : t;
16
- }), s.current = requestAnimationFrame(d);
17
- }, [o, a]);
18
- v(() => (s.current = requestAnimationFrame(d), () => {
19
- s.current && cancelAnimationFrame(s.current);
20
- }), [o, a]);
21
- const F = c(() => {
22
- i.current = !0;
23
- }, []), S = c(() => {
24
- i.current = !1;
25
- }, []), p = c((e, t = 300) => {
26
- const x = r, w = e - x, E = performance.now(), M = (X) => {
27
- const y = X - E, g = Math.min(y / t, 1), C = 1 - Math.pow(1 - g, 3);
28
- h(x + w * C), g < 1 && requestAnimationFrame(M);
29
- };
30
- requestAnimationFrame(M);
31
- }, [r]);
32
- return L(j, () => ({
1
+ import { j as x } from "../../_virtual/jsx-runtime.es.js";
2
+ import { forwardRef as D, useRef as f, useState as M, useEffect as A, useCallback as h, useImperativeHandle as H } from "react";
3
+ import { cn as R } from "../../utils/cn.es.js";
4
+ import g from "./infiniteScroll.module.css.es.js";
5
+ function P({
6
+ items: c,
7
+ speed: w = 50,
8
+ contentClassName: W,
9
+ itemClassName: j,
10
+ rootClassName: q,
11
+ renderItem: E
12
+ }, F) {
13
+ const l = f(null), [s, y] = M(0), [i, S] = M(0), m = f(null), p = f(!1), u = f(performance.now()), [T, I] = M(2);
14
+ A(() => {
15
+ l.current && c.length > 0 && setTimeout(() => {
16
+ var o, r, a;
17
+ const e = ((r = (o = l.current) == null ? void 0 : o.parentElement) == null ? void 0 : r.offsetWidth) || 0, t = (((a = l.current) == null ? void 0 : a.scrollWidth) || 0) / 2, n = Math.ceil(e * 2 / t);
18
+ I(
19
+ Math.max(
20
+ 2,
21
+ n % 2 === 0 ? n : n + 1
22
+ )
23
+ ), S(t);
24
+ }, 0);
25
+ }, [c]);
26
+ const d = h(
27
+ (e) => {
28
+ if (!p.current) {
29
+ const t = e ?? performance.now(), n = t - u.current || 16.67;
30
+ u.current = t, y((o) => {
31
+ const r = o - w * (n / 1e3);
32
+ return Math.abs(r) >= i ? r + i : r;
33
+ });
34
+ }
35
+ m.current = requestAnimationFrame(d);
36
+ },
37
+ [i, w]
38
+ );
39
+ A(() => (u.current = performance.now(), m.current = requestAnimationFrame(d), () => {
40
+ m.current && cancelAnimationFrame(m.current);
41
+ }), [d]);
42
+ const L = h(() => {
43
+ p.current = !0;
44
+ }, []), N = h(() => {
45
+ p.current = !1, u.current = performance.now();
46
+ }, []), C = h(
47
+ (e, t = 300) => {
48
+ const n = s, o = e - n, r = performance.now(), a = (X) => {
49
+ const b = X - r, v = Math.min(b / t, 1), k = 1 - Math.pow(1 - v, 3);
50
+ y(n + o * k), v < 1 && requestAnimationFrame(a);
51
+ };
52
+ requestAnimationFrame(a);
53
+ },
54
+ [s]
55
+ );
56
+ return H(F, () => ({
33
57
  scrollLeft: () => {
34
- const e = r - 200, t = Math.max(e, -o);
35
- p(t);
58
+ const e = s - 200, t = Math.max(e, -i);
59
+ C(t);
36
60
  },
37
61
  scrollRight: () => {
38
- const e = r + 200, t = Math.min(e, 0);
39
- p(t);
62
+ const e = s + 200, t = Math.min(e, 0);
63
+ C(t);
40
64
  }
41
- })), /* @__PURE__ */ u.jsx(
65
+ })), /* @__PURE__ */ x.jsx(
42
66
  "div",
43
67
  {
44
- className: f.root,
45
- onMouseEnter: F,
46
- onMouseLeave: S,
47
- children: /* @__PURE__ */ u.jsx(
68
+ className: R(g.root, q),
69
+ onMouseEnter: L,
70
+ onMouseLeave: N,
71
+ children: /* @__PURE__ */ x.jsx(
48
72
  "div",
49
73
  {
50
- className: f.content,
51
- style: { transform: `translateX(${r}px)` },
74
+ className: R(g.content, W),
75
+ style: { transform: `translate3D(${s}px, 0, 0)` },
52
76
  ref: l,
53
- children: Array.from({ length: (n.length > 3 ? n.length : 5) * 10 }, (e, t) => n[t % n.length]).map((e, t) => /* @__PURE__ */ u.jsx("div", { className: f.item, children: A(e, t) }, t))
77
+ children: Array.from(
78
+ { length: c.length * T },
79
+ (e, t) => /* @__PURE__ */ x.jsx(
80
+ "div",
81
+ {
82
+ className: R(g.item, j),
83
+ children: E(c[t % c.length], t)
84
+ },
85
+ t
86
+ )
87
+ )
54
88
  }
55
89
  )
56
90
  }
57
91
  );
58
92
  }
59
- const k = I(N);
93
+ const G = D(P);
60
94
  export {
61
- k as InfiniteScroll
95
+ G as InfiniteScroll
62
96
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs.js"),e=require("../../styles/typography.module.css.cjs.js"),o=require("../../utils/cn.cjs.js"),r=require("./label.module.css.cjs.js"),u={sm:e.default.labelXs,lg:e.default.labelSm},n=({children:l,color:a,size:t="sm"})=>s.jsxRuntimeExports.jsx("div",{className:o.cn(r.default.root,e.default.labelEmphasis,u[t]),"data-size":t,"data-color":a,children:l});exports.Label=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/jsx-runtime.cjs.js"),e=require("../../styles/typography.module.css.cjs.js"),r=require("../../utils/cn.cjs.js"),u=require("./label.module.css.cjs.js"),n={sm:e.default.labelXs,lg:e.default.labelSm},c=({children:l,color:a,size:t="sm",className:s})=>o.jsxRuntimeExports.jsx("div",{className:r.cn(u.default.root,e.default.labelEmphasis,n[t],s),"data-size":t,"data-color":a,children:l});exports.Label=c;
@@ -1,3 +1,3 @@
1
1
  import { LabelProps } from './types';
2
2
 
3
- export declare const Label: ({ children, color, size }: LabelProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Label: ({ children, color, size, className, }: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,23 @@
1
- import { j as m } from "../../_virtual/jsx-runtime.es.js";
1
+ import { j as a } from "../../_virtual/jsx-runtime.es.js";
2
2
  import o from "../../styles/typography.module.css.es.js";
3
- import { cn as a } from "../../utils/cn.es.js";
4
- import l from "./label.module.css.es.js";
5
- const e = {
3
+ import { cn as l } from "../../utils/cn.es.js";
4
+ import e from "./label.module.css.es.js";
5
+ const p = {
6
6
  sm: o.labelXs,
7
7
  lg: o.labelSm
8
- }, S = ({ children: s, color: t, size: r = "sm" }) => /* @__PURE__ */ m.jsx(
8
+ }, b = ({
9
+ children: s,
10
+ color: t,
11
+ size: r = "sm",
12
+ className: m
13
+ }) => /* @__PURE__ */ a.jsx(
9
14
  "div",
10
15
  {
11
- className: a(
12
- l.root,
16
+ className: l(
17
+ e.root,
13
18
  o.labelEmphasis,
14
- e[r]
19
+ p[r],
20
+ m
15
21
  ),
16
22
  "data-size": r,
17
23
  "data-color": t,
@@ -19,5 +25,5 @@ const e = {
19
25
  }
20
26
  );
21
27
  export {
22
- S as Label
28
+ b as Label
23
29
  };
@@ -6,4 +6,5 @@ export type LabelProps = {
6
6
  children: ReactNode;
7
7
  color: LabelColor;
8
8
  size?: LabelSize;
9
+ className?: string;
9
10
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs.js"),u=require("react"),g=require("../../node_modules/swiper/modules/navigation.cjs.js"),c=require("../../node_modules/swiper/swiper-react.cjs.js"),x=require("../../utils/cn.cjs.js"),C=require("../../utils/useSwiper.cjs.js"),p=require("../ProgressButton/ProgressButton.cjs.js");;/* empty css */;/* empty css */;/* empty css */const e=require("./productGallery.module.css.cjs.js"),q=[g.default],v=({slides:t,header:m,isTabbed:i=!1})=>{const{swiper:r,activeIndex:n,isEnd:l,setIsEnd:j,hideNav:f,handleSlideChange:h,handlePrevClick:o,handleNextClick:a,onSwiperInit:R,handleSwiperResize:w,handleSlideTo:d}=C.useSwiper();return u.useEffect(()=>{r==null||r.setProgress(0,300)},[r]),u.useEffect(()=>{t.length&&d(0)},[t,d]),s.jsxRuntimeExports.jsxs("div",{className:e.default.root,children:[s.jsxRuntimeExports.jsxs("div",{className:x.cn(e.default.topRow,{[e.default.topRowTabbed]:i}),children:[s.jsxRuntimeExports.jsx("div",{className:e.default.headerWrapper,children:m}),s.jsxRuntimeExports.jsx("div",{className:x.cn(e.default.swiperControlsDesktop,{[e.default.swiperControlsHidden]:f,[e.default.swiperControlsTabbed]:i}),children:s.jsxRuntimeExports.jsx(p.ProgressButton,{left:{disabled:n<=0,onClick:o},right:{disabled:l,onClick:a}})})]}),s.jsxRuntimeExports.jsx("div",{className:e.default.carouselArea,children:s.jsxRuntimeExports.jsx(c.Swiper,{onSwiper:R,onResize:w,onSlideChange:h,onReachEnd:()=>j(!0),modules:q,spaceBetween:0,slidesPerView:"auto",className:e.default.swiper,children:t.map((E,S)=>s.jsxRuntimeExports.jsx(c.SwiperSlide,{className:e.default.swiperSlide,children:E},S))})}),s.jsxRuntimeExports.jsx("div",{className:e.default.swiperControlsMobile,children:s.jsxRuntimeExports.jsx(p.ProgressButton,{left:{disabled:n<=0,onClick:o},right:{disabled:l,onClick:a}})})]})};exports.ProductGallery=v;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export type TProductGalleryProps = {
4
+ header: ReactNode;
5
+ slides: ReactNode[];
6
+ isTabbed?: boolean;
7
+ };
8
+ export declare const ProductGallery: ({ slides, header, isTabbed, }: TProductGalleryProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,99 @@
1
+ import { j as i } from "../../_virtual/jsx-runtime.es.js";
2
+ import { useEffect as c } from "react";
3
+ import u from "../../node_modules/swiper/modules/navigation.es.js";
4
+ import { Swiper as v, SwiperSlide as g } from "../../node_modules/swiper/swiper-react.es.js";
5
+ import { cn as p } from "../../utils/cn.es.js";
6
+ import { useSwiper as b } from "../../utils/useSwiper.es.js";
7
+ import { ProgressButton as m } from "../ProgressButton/ProgressButton.es.js";
8
+ /* empty css */
9
+ /* empty css */
10
+ /* empty css */
11
+ import e from "./productGallery.module.css.es.js";
12
+ const k = [u], A = ({
13
+ slides: s,
14
+ header: h,
15
+ isTabbed: o = !1
16
+ }) => {
17
+ const {
18
+ swiper: r,
19
+ activeIndex: l,
20
+ isEnd: t,
21
+ setIsEnd: w,
22
+ hideNav: x,
23
+ handleSlideChange: f,
24
+ handlePrevClick: n,
25
+ handleNextClick: a,
26
+ onSwiperInit: S,
27
+ handleSwiperResize: j,
28
+ handleSlideTo: d
29
+ } = b();
30
+ return c(() => {
31
+ r == null || r.setProgress(0, 300);
32
+ }, [r]), c(() => {
33
+ s.length && d(0);
34
+ }, [s, d]), /* @__PURE__ */ i.jsxs("div", { className: e.root, children: [
35
+ /* @__PURE__ */ i.jsxs(
36
+ "div",
37
+ {
38
+ className: p(e.topRow, {
39
+ [e.topRowTabbed]: o
40
+ }),
41
+ children: [
42
+ /* @__PURE__ */ i.jsx("div", { className: e.headerWrapper, children: h }),
43
+ /* @__PURE__ */ i.jsx(
44
+ "div",
45
+ {
46
+ className: p(e.swiperControlsDesktop, {
47
+ [e.swiperControlsHidden]: x,
48
+ [e.swiperControlsTabbed]: o
49
+ }),
50
+ children: /* @__PURE__ */ i.jsx(
51
+ m,
52
+ {
53
+ left: {
54
+ disabled: l <= 0,
55
+ onClick: n
56
+ },
57
+ right: {
58
+ disabled: t,
59
+ onClick: a
60
+ }
61
+ }
62
+ )
63
+ }
64
+ )
65
+ ]
66
+ }
67
+ ),
68
+ /* @__PURE__ */ i.jsx("div", { className: e.carouselArea, children: /* @__PURE__ */ i.jsx(
69
+ v,
70
+ {
71
+ onSwiper: S,
72
+ onResize: j,
73
+ onSlideChange: f,
74
+ onReachEnd: () => w(!0),
75
+ modules: k,
76
+ spaceBetween: 0,
77
+ slidesPerView: "auto",
78
+ className: e.swiper,
79
+ children: s.map((C, N) => /* @__PURE__ */ i.jsx(g, { className: e.swiperSlide, children: C }, N))
80
+ }
81
+ ) }),
82
+ /* @__PURE__ */ i.jsx("div", { className: e.swiperControlsMobile, children: /* @__PURE__ */ i.jsx(
83
+ m,
84
+ {
85
+ left: {
86
+ disabled: l <= 0,
87
+ onClick: n
88
+ },
89
+ right: {
90
+ disabled: t,
91
+ onClick: a
92
+ }
93
+ }
94
+ ) })
95
+ ] });
96
+ };
97
+ export {
98
+ A as ProductGallery
99
+ };
@@ -0,0 +1,2 @@
1
+ export { ProductGallery } from './ProductGallery';
2
+ export type { TProductGalleryProps } from './ProductGallery';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGallery-module__root___tLADj",e="productGallery-module__topRow___Ko-SW",r="productGallery-module__topRowTabbed___rmjsc",l="productGallery-module__headerWrapper___sI0NZ",s="productGallery-module__carouselArea___7c5E5",t="productGallery-module__swiper___6D4n5",p="productGallery-module__swiperControlsTabbed___ESyKj",_="productGallery-module__swiperControlsHidden___IFD8m",d="productGallery-module__swiperControlsDesktop___tpIvz",i="productGallery-module__swiperControlsMobile___rTXjU",a="productGallery-module__swiperSlide___ieRKo",n={root:o,topRow:e,topRowTabbed:r,headerWrapper:l,carouselArea:s,swiper:t,swiperControlsTabbed:p,swiperControlsHidden:_,swiperControlsDesktop:d,swiperControlsMobile:i,swiperSlide:a};exports.carouselArea=s;exports.default=n;exports.headerWrapper=l;exports.root=o;exports.swiper=t;exports.swiperControlsDesktop=d;exports.swiperControlsHidden=_;exports.swiperControlsMobile=i;exports.swiperControlsTabbed=p;exports.swiperSlide=a;exports.topRow=e;exports.topRowTabbed=r;
@@ -0,0 +1,27 @@
1
+ const o = "productGallery-module__root___tLADj", e = "productGallery-module__topRow___Ko-SW", r = "productGallery-module__topRowTabbed___rmjsc", l = "productGallery-module__headerWrapper___sI0NZ", _ = "productGallery-module__carouselArea___7c5E5", s = "productGallery-module__swiper___6D4n5", t = "productGallery-module__swiperControlsTabbed___ESyKj", p = "productGallery-module__swiperControlsHidden___IFD8m", d = "productGallery-module__swiperControlsDesktop___tpIvz", a = "productGallery-module__swiperControlsMobile___rTXjU", c = "productGallery-module__swiperSlide___ieRKo", i = {
2
+ root: o,
3
+ topRow: e,
4
+ topRowTabbed: r,
5
+ headerWrapper: l,
6
+ carouselArea: _,
7
+ swiper: s,
8
+ swiperControlsTabbed: t,
9
+ swiperControlsHidden: p,
10
+ swiperControlsDesktop: d,
11
+ swiperControlsMobile: a,
12
+ swiperSlide: c
13
+ };
14
+ export {
15
+ _ as carouselArea,
16
+ i as default,
17
+ l as headerWrapper,
18
+ o as root,
19
+ s as swiper,
20
+ d as swiperControlsDesktop,
21
+ p as swiperControlsHidden,
22
+ a as swiperControlsMobile,
23
+ t as swiperControlsTabbed,
24
+ c as swiperSlide,
25
+ e as topRow,
26
+ r as topRowTabbed
27
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),a=require("../Typography/Typography.cjs.js"),c=require("../Button/Button.cjs.js"),t=require("./productGalleryCard.module.css.cjs.js"),p=({title:s,price:o,image:l,buttons:n,link:u})=>{const i=r=>{r.preventDefault(),r.stopPropagation()};return e.jsxRuntimeExports.jsxs("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:t.default.root,children:[e.jsxRuntimeExports.jsxs("div",{className:t.default.productInfo,children:[e.jsxRuntimeExports.jsx(a.Typography,{defaultVariant:"bodyXl",className:t.default.title,children:s}),e.jsxRuntimeExports.jsx(a.Typography,{defaultVariant:"bodyXl",className:t.default.price,children:o})]}),e.jsxRuntimeExports.jsx("img",{src:l,alt:"product image",className:t.default.productImage}),e.jsxRuntimeExports.jsx("div",{onClick:i,className:t.default.buttonContainer,children:n.map((r,d)=>e.jsxRuntimeExports.jsx(c.Button,{...r,children:r.label},d))})]})};exports.ProductGalleryCard=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),n=require("../Button/Button.cjs.js"),o=require("../Typography/Typography.cjs.js"),r=require("./productGalleryCard.module.css.cjs.js"),x=({name:i,price:u,image:c,link:d,buttons:l})=>{const s=t=>{t.preventDefault(),t.stopPropagation()};return e.jsxRuntimeExports.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:r.default.root,children:[e.jsxRuntimeExports.jsxs("div",{className:r.default.productInfo,children:[e.jsxRuntimeExports.jsx(o.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:r.default.title,children:i}),e.jsxRuntimeExports.jsx(o.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:r.default.price,children:u})]}),e.jsxRuntimeExports.jsx("img",{src:c,alt:"product image",className:r.default.productImage}),e.jsxRuntimeExports.jsx("div",{onClick:s,className:r.default.buttonContainerDesktop,children:l.map((t,a)=>e.jsxRuntimeExports.jsx(n.Button,{size:"sm",...t,children:t.label},a))}),e.jsxRuntimeExports.jsx("div",{onClick:s,className:r.default.buttonContainerMobile,children:l.map((t,a)=>e.jsxRuntimeExports.jsx(n.Button,{size:"xs",...t,children:t.label},a))})]})};exports.ProductGalleryCard=x;
@@ -1,12 +1,3 @@
1
- import { ButtonProps } from '../Button/Button';
1
+ import { TProductGalleryCardView } from './types';
2
2
 
3
- export type ProductGalleryCardProps = {
4
- title: string;
5
- price: string;
6
- image: string;
7
- buttons: Array<{
8
- label: string;
9
- } & ButtonProps>;
10
- link: string;
11
- };
12
- export declare const ProductGalleryCard: ({ title, price, image, buttons, link, }: ProductGalleryCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProductGalleryCard: ({ name, price, image, link, buttons, }: TProductGalleryCardView) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,73 @@
1
- import { j as r } from "../../_virtual/jsx-runtime.es.js";
2
- import { Typography as t } from "../Typography/Typography.es.js";
3
- import { Button as d } from "../Button/Button.es.js";
4
- import e from "./productGalleryCard.module.css.es.js";
5
- const h = ({
6
- title: o,
7
- price: s,
8
- image: l,
9
- buttons: n,
10
- link: i
1
+ import { j as e } from "../../_virtual/jsx-runtime.es.js";
2
+ import { Button as i } from "../Button/Button.es.js";
3
+ import { Typography as o } from "../Typography/Typography.es.js";
4
+ import r from "./productGalleryCard.module.css.es.js";
5
+ const f = ({
6
+ name: n,
7
+ price: c,
8
+ image: m,
9
+ link: d,
10
+ buttons: s
11
11
  }) => {
12
- const c = (a) => {
12
+ const t = (a) => {
13
13
  a.preventDefault(), a.stopPropagation();
14
14
  };
15
- return /* @__PURE__ */ r.jsxs("a", { href: i, target: "_blank", rel: "noopener noreferrer", className: e.root, children: [
16
- /* @__PURE__ */ r.jsxs("div", { className: e.productInfo, children: [
17
- /* @__PURE__ */ r.jsx(t, { defaultVariant: "bodyXl", className: e.title, children: o }),
18
- /* @__PURE__ */ r.jsx(t, { defaultVariant: "bodyXl", className: e.price, children: s })
19
- ] }),
20
- /* @__PURE__ */ r.jsx("img", { src: l, alt: "product image", className: e.productImage }),
21
- /* @__PURE__ */ r.jsx("div", { onClick: c, className: e.buttonContainer, children: n.map((a, m) => /* @__PURE__ */ r.jsx(d, { ...a, children: a.label }, m)) })
22
- ] });
15
+ return /* @__PURE__ */ e.jsxs(
16
+ "a",
17
+ {
18
+ href: d,
19
+ target: "_blank",
20
+ rel: "noopener noreferrer",
21
+ className: r.root,
22
+ children: [
23
+ /* @__PURE__ */ e.jsxs("div", { className: r.productInfo, children: [
24
+ /* @__PURE__ */ e.jsx(
25
+ o,
26
+ {
27
+ defaultVariant: "labelXl",
28
+ mobileVariant: "labelLg",
29
+ className: r.title,
30
+ children: n
31
+ }
32
+ ),
33
+ /* @__PURE__ */ e.jsx(
34
+ o,
35
+ {
36
+ defaultVariant: "labelXl",
37
+ mobileVariant: "labelLg",
38
+ className: r.price,
39
+ children: c
40
+ }
41
+ )
42
+ ] }),
43
+ /* @__PURE__ */ e.jsx(
44
+ "img",
45
+ {
46
+ src: m,
47
+ alt: "product image",
48
+ className: r.productImage
49
+ }
50
+ ),
51
+ /* @__PURE__ */ e.jsx(
52
+ "div",
53
+ {
54
+ onClick: t,
55
+ className: r.buttonContainerDesktop,
56
+ children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "sm", ...a, children: a.label }, l))
57
+ }
58
+ ),
59
+ /* @__PURE__ */ e.jsx(
60
+ "div",
61
+ {
62
+ onClick: t,
63
+ className: r.buttonContainerMobile,
64
+ children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "xs", ...a, children: a.label }, l))
65
+ }
66
+ )
67
+ ]
68
+ }
69
+ );
23
70
  };
24
71
  export {
25
- h as ProductGalleryCard
72
+ f as ProductGalleryCard
26
73
  };
@@ -1 +1,2 @@
1
1
  export { ProductGalleryCard } from './ProductGalleryCard';
2
+ export type { TProductGalleryCardView } from './types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGalleryCard-module__root___oGJjs",t="productGalleryCard-module__buttonContainer___0D5Ov",e="productGalleryCard-module__productInfo___IZeoL",r="productGalleryCard-module__title___dnRaF",d="productGalleryCard-module__price___dNy0O",u="productGalleryCard-module__productImage___uSNso",_={root:o,buttonContainer:t,productInfo:e,title:r,price:d,productImage:u};exports.buttonContainer=t;exports.default=_;exports.price=d;exports.productImage=u;exports.productInfo=e;exports.root=o;exports.title=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGalleryCard-module__root___oGJjs",t="productGalleryCard-module__buttonContainerDesktop___A9g0U",e="productGalleryCard-module__productInfo___IZeoL",r="productGalleryCard-module__title___dnRaF",n="productGalleryCard-module__price___dNy0O",u="productGalleryCard-module__buttonContainerMobile___molmH",l="productGalleryCard-module__productImage___uSNso",_={root:o,buttonContainerDesktop:t,productInfo:e,title:r,price:n,buttonContainerMobile:u,productImage:l};exports.buttonContainerDesktop=t;exports.buttonContainerMobile=u;exports.default=_;exports.price=n;exports.productImage=l;exports.productInfo=e;exports.root=o;exports.title=r;
@@ -1,17 +1,19 @@
1
- const o = "productGalleryCard-module__root___oGJjs", t = "productGalleryCard-module__buttonContainer___0D5Ov", r = "productGalleryCard-module__productInfo___IZeoL", _ = "productGalleryCard-module__title___dnRaF", e = "productGalleryCard-module__price___dNy0O", d = "productGalleryCard-module__productImage___uSNso", l = {
1
+ const o = "productGalleryCard-module__root___oGJjs", t = "productGalleryCard-module__buttonContainerDesktop___A9g0U", r = "productGalleryCard-module__productInfo___IZeoL", e = "productGalleryCard-module__title___dnRaF", _ = "productGalleryCard-module__price___dNy0O", d = "productGalleryCard-module__buttonContainerMobile___molmH", l = "productGalleryCard-module__productImage___uSNso", n = {
2
2
  root: o,
3
- buttonContainer: t,
3
+ buttonContainerDesktop: t,
4
4
  productInfo: r,
5
- title: _,
6
- price: e,
7
- productImage: d
5
+ title: e,
6
+ price: _,
7
+ buttonContainerMobile: d,
8
+ productImage: l
8
9
  };
9
10
  export {
10
- t as buttonContainer,
11
- l as default,
12
- e as price,
13
- d as productImage,
11
+ t as buttonContainerDesktop,
12
+ d as buttonContainerMobile,
13
+ n as default,
14
+ _ as price,
15
+ l as productImage,
14
16
  r as productInfo,
15
17
  o as root,
16
- _ as title
18
+ e as title
17
19
  };
@@ -0,0 +1,11 @@
1
+ import { ButtonProps } from '../Button';
2
+
3
+ export type TProductGalleryCardView = {
4
+ name: string;
5
+ price: string;
6
+ image: string;
7
+ link: string;
8
+ buttons: Array<{
9
+ label: string;
10
+ } & ButtonProps>;
11
+ };
@@ -0,0 +1,19 @@
1
+ import { ButtonProps } from '../Button';
2
+ import { ETypeBadge } from '../TypeBadge';
3
+
4
+ type ProductListingProps = {
5
+ name: string;
6
+ description: string;
7
+ image: string;
8
+ price: string;
9
+ features: Array<{
10
+ label: string;
11
+ type: ETypeBadge;
12
+ }>;
13
+ buttons: Array<{
14
+ label: string;
15
+ } & ButtonProps>;
16
+ label?: string;
17
+ };
18
+ export declare const ProductListing: ({ name, description, image, price, buttons, features, label, }: ProductListingProps) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1 @@
1
+ export { ProductListing } from './ProductListing';
@@ -0,0 +1,13 @@
1
+ type EmptyCardProps = {
2
+ type: 'coming_soon';
3
+ label?: string;
4
+ };
5
+ type CardProps = {
6
+ type: 'active';
7
+ label: string;
8
+ image?: string | null;
9
+ link?: string | null;
10
+ };
11
+ export type ProgramCardProps = EmptyCardProps | CardProps;
12
+ export declare function ProgramCard(props: ProgramCardProps): import("react/jsx-runtime").JSX.Element | null;
13
+ export {};
@@ -0,0 +1 @@
1
+ export { ProgramCard } from './ProgramCard';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),i=require("../../utils/cn.cjs.js"),r=require("../Icon/constants.cjs.js");require("react");const a=require("../Icon/Icon.cjs.js"),e=require("./progressButton.module.css.cjs.js"),u=({orientation:s,icon:n,disabled:o=!1,onClick:c})=>t.jsxRuntimeExports.jsx("button",{className:i.cn(e.default.button,{[e.default.buttonLeft]:s==="left",[e.default.buttonRight]:s==="right"}),disabled:o,onClick:c,children:t.jsxRuntimeExports.jsx("div",{className:e.default.iconWrap,children:t.jsxRuntimeExports.jsx(a.Icon,{name:n,className:e.default.icon})})}),l=({invert:s=!1,left:n,right:o})=>t.jsxRuntimeExports.jsxs("div",{className:i.cn(e.default.root,{[e.default.inverted]:s}),children:[t.jsxRuntimeExports.jsx(u,{orientation:"left",icon:r.EIconName.ARROW_BACK,disabled:n.disabled,onClick:n.onClick}),t.jsxRuntimeExports.jsx("div",{className:i.cn(e.default.divider,{[e.default.inverted]:s})}),t.jsxRuntimeExports.jsx(u,{orientation:"right",icon:r.EIconName.ARROW_FORWARD,disabled:o.disabled,onClick:o.onClick})]});exports.ProgressButton=l;
@@ -0,0 +1,63 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.es.js";
2
+ import { cn as n } from "../../utils/cn.es.js";
3
+ import { EIconName as r } from "../Icon/constants.es.js";
4
+ import "react";
5
+ import { Icon as l } from "../Icon/Icon.es.js";
6
+ import o from "./progressButton.module.css.es.js";
7
+ const a = ({
8
+ orientation: s,
9
+ icon: i,
10
+ disabled: e = !1,
11
+ onClick: c
12
+ }) => /* @__PURE__ */ t.jsx(
13
+ "button",
14
+ {
15
+ className: n(o.button, {
16
+ [o.buttonLeft]: s === "left",
17
+ [o.buttonRight]: s === "right"
18
+ }),
19
+ disabled: e,
20
+ onClick: c,
21
+ children: /* @__PURE__ */ t.jsx("div", { className: o.iconWrap, children: /* @__PURE__ */ t.jsx(l, { name: i, className: o.icon }) })
22
+ }
23
+ ), u = ({
24
+ invert: s = !1,
25
+ left: i,
26
+ right: e
27
+ }) => /* @__PURE__ */ t.jsxs(
28
+ "div",
29
+ {
30
+ className: n(o.root, {
31
+ [o.inverted]: s
32
+ }),
33
+ children: [
34
+ /* @__PURE__ */ t.jsx(
35
+ a,
36
+ {
37
+ orientation: "left",
38
+ icon: r.ARROW_BACK,
39
+ disabled: i.disabled,
40
+ onClick: i.onClick
41
+ }
42
+ ),
43
+ /* @__PURE__ */ t.jsx(
44
+ "div",
45
+ {
46
+ className: n(o.divider, { [o.inverted]: s })
47
+ }
48
+ ),
49
+ /* @__PURE__ */ t.jsx(
50
+ a,
51
+ {
52
+ orientation: "right",
53
+ icon: r.ARROW_FORWARD,
54
+ disabled: e.disabled,
55
+ onClick: e.onClick
56
+ }
57
+ )
58
+ ]
59
+ }
60
+ );
61
+ export {
62
+ u as ProgressButton
63
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="progressButton-module__root___gKwbK",o="progressButton-module__inverted___cGydv",e="progressButton-module__icon___wJpMj",n="progressButton-module__divider___u6q7X",_="progressButton-module__button___92i5d",r="progressButton-module__buttonLeft___p3wSE",u="progressButton-module__buttonRight___keqI6",s="progressButton-module__iconWrap___hshXK",i={root:t,inverted:o,icon:e,divider:n,button:_,buttonLeft:r,buttonRight:u,iconWrap:s};exports.button=_;exports.buttonLeft=r;exports.buttonRight=u;exports.default=i;exports.divider=n;exports.icon=e;exports.iconWrap=s;exports.inverted=o;exports.root=t;