@zenpatient-org/healthspan-marketing-ui 0.1.46 → 0.1.51

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 (115) hide show
  1. package/dist/components/AnchorLinks/AnchorLinks.cjs.js +1 -1
  2. package/dist/components/AnchorLinks/AnchorLinks.es.js +14 -6
  3. package/dist/components/AnchorLinks/types.d.ts +4 -0
  4. package/dist/components/Button/Button.d.ts +1 -1
  5. package/dist/components/CircleHighlights/CircleHighlights.d.ts +3 -3
  6. package/dist/components/CircleHighlights/circleHighlights.module.css.cjs.js +1 -1
  7. package/dist/components/CircleHighlights/circleHighlights.module.css.es.js +13 -13
  8. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.cjs.js +1 -0
  9. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +5 -0
  10. package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.es.js +57 -0
  11. package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.cjs.js +1 -0
  12. package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.es.js +24 -0
  13. package/dist/components/ComplexImageCarousel/ComplexCarousel/index.d.ts +1 -0
  14. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -1
  15. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +1 -1
  16. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +5 -55
  17. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.cjs.js +1 -0
  18. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +5 -0
  19. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.es.js +76 -0
  20. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/index.d.ts +1 -0
  21. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.cjs.js +1 -0
  22. package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.es.js +15 -0
  23. package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
  24. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -2
  25. package/dist/components/ComplexTooltip/ComplexTooltip.es.js +34 -29
  26. package/dist/components/FAQComponent/FAQComponent.cjs.js +1 -1
  27. package/dist/components/FAQComponent/FAQComponent.es.js +1 -1
  28. package/dist/components/FAQComponent/components/index.d.ts +1 -1
  29. package/dist/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -0
  30. package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/FAQComponentItem.es.js +4 -4
  31. package/dist/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +1 -0
  32. package/dist/components/FAQComponentItem/faqComponentItem.module.css.es.js +27 -0
  33. package/dist/components/IconButton/IconButton.d.ts +1 -1
  34. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  35. package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -0
  36. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +61 -46
  37. package/dist/components/Label/index.d.ts +1 -1
  38. package/dist/components/Label/types.d.ts +1 -3
  39. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
  40. package/dist/components/StepsCarousel/StepsCarousel.es.js +29 -35
  41. package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -1
  42. package/dist/components/StudyGridCard/StudyGridCard.d.ts +10 -2
  43. package/dist/components/StudyGridCard/StudyGridCard.es.js +115 -60
  44. package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -1
  45. package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +24 -12
  46. package/dist/components/Tag/Tag.cjs.js +1 -1
  47. package/dist/components/Tag/Tag.d.ts +2 -2
  48. package/dist/components/Tag/Tag.es.js +11 -11
  49. package/dist/healthspan-marketing-ui.css +1 -1
  50. package/dist/modules/Curiosity/Curiosity.cjs.js +1 -0
  51. package/dist/modules/Curiosity/Curiosity.d.ts +13 -0
  52. package/dist/modules/Curiosity/Curiosity.es.js +58 -0
  53. package/dist/modules/Curiosity/curiosity.module.css.cjs.js +1 -0
  54. package/dist/modules/Curiosity/curiosity.module.css.es.js +31 -0
  55. package/dist/modules/Curiosity/index.d.ts +1 -0
  56. package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +1 -0
  57. package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +3 -0
  58. package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +157 -0
  59. package/dist/modules/ExpandingDetails/expandingDetails.module.css.cjs.js +1 -0
  60. package/dist/modules/ExpandingDetails/expandingDetails.module.css.es.js +47 -0
  61. package/dist/modules/ExpandingDetails/index.d.ts +1 -0
  62. package/dist/modules/ExpandingDetails/types.d.ts +13 -0
  63. package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
  64. package/dist/modules/FollowTheScience/FollowTheScience.d.ts +1 -0
  65. package/dist/modules/FollowTheScience/FollowTheScience.es.js +13 -14
  66. package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -2
  67. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -1
  68. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +6 -6
  69. package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +1 -1
  70. package/dist/modules/IngredientHighlight/types.d.ts +1 -1
  71. package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.cjs.js +1 -1
  72. package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.es.js +13 -13
  73. package/dist/modules/ResearchEssentialReadings/index.d.ts +2 -0
  74. package/dist/modules/ResearchFeatured/ResearchFeatured.cjs.js +1 -1
  75. package/dist/modules/ResearchFeatured/ResearchFeatured.es.js +9 -9
  76. package/dist/modules/ResearchFeatured/index.d.ts +1 -0
  77. package/dist/modules/ResearchFilters/ResearchFilters.cjs.js +1 -1
  78. package/dist/modules/ResearchFilters/ResearchFilters.d.ts +3 -1
  79. package/dist/modules/ResearchFilters/ResearchFilters.es.js +18 -24
  80. package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -1
  81. package/dist/modules/ResearchStudies/ResearchStudies.d.ts +8 -2
  82. package/dist/modules/ResearchStudies/ResearchStudies.es.js +10 -11
  83. package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +1 -1
  84. package/dist/modules/ResearchStudies/components/StudyCard/index.d.ts +0 -1
  85. package/dist/modules/ResearchStudies/index.d.ts +1 -0
  86. package/dist/modules/ResearchStudies/types.d.ts +8 -3
  87. package/dist/modules/TextBlockAnimated/TextBlockAnimated.cjs.js +1 -0
  88. package/dist/modules/TextBlockAnimated/TextBlockAnimated.d.ts +6 -0
  89. package/dist/modules/TextBlockAnimated/TextBlockAnimated.es.js +54 -0
  90. package/dist/modules/TextBlockAnimated/index.d.ts +1 -0
  91. package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.cjs.js +1 -0
  92. package/dist/modules/TextBlockAnimated/textBlockAnimated.module.css.es.js +21 -0
  93. package/dist/node_modules/gsap/SplitText.cjs.js +9 -0
  94. package/dist/node_modules/gsap/SplitText.es.js +148 -0
  95. package/dist/pageComponents/HowItWorksHero/HowItWorksHero.cjs.js +1 -0
  96. package/dist/pageComponents/HowItWorksHero/HowItWorksHero.d.ts +1 -0
  97. package/dist/pageComponents/HowItWorksHero/HowItWorksHero.es.js +14 -0
  98. package/dist/pageComponents/HowItWorksHero/assets/Container.png.cjs.js +1 -0
  99. package/dist/pageComponents/HowItWorksHero/assets/Container.png.es.js +4 -0
  100. package/dist/pageComponents/HowItWorksHero/assets/people.png.cjs.js +1 -0
  101. package/dist/pageComponents/HowItWorksHero/assets/people.png.es.js +4 -0
  102. package/dist/pageComponents/HowItWorksHero/howItWorksHero.module.css.cjs.js +1 -0
  103. package/dist/pageComponents/HowItWorksHero/howItWorksHero.module.css.es.js +17 -0
  104. package/dist/pageComponents/HowItWorksHero/index.d.ts +1 -0
  105. package/package.json +3 -2
  106. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +0 -1
  107. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +0 -24
  108. package/dist/components/FAQComponent/components/FAQComponentItem/FAQComponentItem.cjs.js +0 -1
  109. package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.cjs.js +0 -1
  110. package/dist/components/FAQComponent/components/FAQComponentItem/faqComponentItem.module.css.es.js +0 -27
  111. package/dist/modules/ResearchStudies/components/StudyCard/types.d.ts +0 -10
  112. package/dist/modules/ResearchStudies/components/index.d.ts +0 -2
  113. /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/FAQComponentItem.d.ts +0 -0
  114. /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/index.d.ts +0 -0
  115. /package/dist/components/{FAQComponent/components/FAQComponentItem → FAQComponentItem}/types.d.ts +0 -0
@@ -10,5 +10,5 @@ interface BaseButtonProps {
10
10
  as?: ElementType;
11
11
  }
12
12
  export type ButtonProps = BaseButtonProps & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement>;
13
- export declare const IconButton: ({ iconName, variant, size, as: Component, disabled, ...props }: Omit<ButtonProps, "children">) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const IconButton: ({ iconName, variant, size, as: Component, disabled, ...props }: Omit<ButtonProps, "children" | "className">) => import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),t=require("react"),M=require("../../utils/cn/cn.cjs.js"),R=require("./infiniteScroll.module.css.cjs.js");function _({items:s,speed:S=50,contentClassName:x,itemClassName:y,rootClassName:b,renderItem:v},w){const u=t.useRef(null),[a,q]=t.useState(0),[i,A]=t.useState(0),f=t.useRef(null),h=t.useRef(!1),m=t.useRef(performance.now()),[T,W]=t.useState(2);t.useEffect(()=>{u.current&&s.length>0&&setTimeout(()=>{var o,c,l;const n=((c=(o=u.current)==null?void 0:o.parentElement)==null?void 0:c.offsetWidth)||0,e=(((l=u.current)==null?void 0:l.scrollWidth)||0)/2,r=Math.ceil(n*2/e);W(Math.max(2,r%2===0?r:r+1)),A(e)},0)},[s]);const d=t.useCallback(n=>{if(!h.current){const e=n??performance.now(),r=e-m.current||16.67;m.current=e,q(o=>{const c=o-S*(r/1e3);return Math.abs(c)>=i?c+i:c})}f.current=requestAnimationFrame(d)},[i,S]);t.useEffect(()=>(m.current=performance.now(),f.current=requestAnimationFrame(d),()=>{f.current&&cancelAnimationFrame(f.current)}),[d]);const E=t.useCallback(()=>{h.current=!0},[]),F=t.useCallback(()=>{h.current=!1,m.current=performance.now()},[]),C=t.useCallback((n,e=300)=>{const r=a,o=n-r,c=performance.now(),l=j=>{const k=j-c,g=Math.min(k/e,1),I=1-Math.pow(1-g,3);q(r+o*I),g<1&&requestAnimationFrame(l)};requestAnimationFrame(l)},[a]);return t.useImperativeHandle(w,()=>({scrollLeft:()=>{const n=a-200,e=Math.max(n,-i);C(e)},scrollRight:()=>{const n=a+200,e=Math.min(n,0);C(e)}})),p.jsx("div",{className:M.cn(R.default.root,b),onMouseEnter:E,onMouseLeave:F,children:p.jsx("div",{className:M.cn(R.default.content,x),style:{transform:`translate3D(${a}px, 0, 0)`},ref:u,children:Array.from({length:s.length*T},(n,e)=>p.jsx("div",{className:M.cn(R.default.item,y),children:v(s[e%s.length],e)},e))})})}const L=t.forwardRef(_);exports.InfiniteScroll=L;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),e=require("react"),R=require("../../utils/cn/cn.cjs.js"),q=require("./infiniteScroll.module.css.cjs.js");function L({items:u,speed:d=50,direction:o="left",contentClassName:y,itemClassName:v,rootClassName:w,renderItem:b},A){const f=e.useRef(null),[i,p]=e.useState(0),[c,E]=e.useState(0),m=e.useRef(null),g=e.useRef(!1),h=e.useRef(performance.now()),[T,W]=e.useState(2);e.useEffect(()=>{f.current&&u.length>0&&setTimeout(()=>{var a,l,n;const r=((l=(a=f.current)==null?void 0:a.parentElement)==null?void 0:l.offsetWidth)||0,t=(((n=f.current)==null?void 0:n.scrollWidth)||0)/2,s=Math.ceil(r*2/t);W(Math.max(2,s%2===0?s:s+1)),E(t)},0)},[u]),e.useEffect(()=>{p(o==="right"?-c:0)},[c,o]);const S=e.useCallback(r=>{if(!g.current){const t=r??performance.now(),s=t-h.current||16.67;h.current=t,p(a=>{const l=o==="right"?-d:d,n=a-l*(s/1e3);if(o==="left"){if(n<=-c)return n+c}else if(o==="right"&&n>=0)return n-c;return n})}m.current=requestAnimationFrame(S)},[c,d,o]);e.useEffect(()=>(h.current=performance.now(),m.current=requestAnimationFrame(S),()=>{m.current&&cancelAnimationFrame(m.current)}),[S]);const F=e.useCallback(()=>{g.current=!0},[]),j=e.useCallback(()=>{g.current=!1,h.current=performance.now()},[]),C=e.useCallback((r,t=300)=>{const s=i,a=r-s,l=performance.now(),n=k=>{const I=k-l,x=Math.min(I/t,1),_=1-Math.pow(1-x,3);p(s+a*_),x<1&&requestAnimationFrame(n)};requestAnimationFrame(n)},[i]);return e.useImperativeHandle(A,()=>({scrollLeft:()=>{const r=i-200,t=Math.max(r,-c);C(t)},scrollRight:()=>{const r=i+200,t=Math.min(r,c);C(t)}})),M.jsx("div",{className:R.cn(q.default.root,w),onMouseEnter:F,onMouseLeave:j,children:M.jsx("div",{className:R.cn(q.default.content,y),style:{transform:`translate3D(${i}px, 0, 0)`},ref:f,children:Array.from({length:u.length*T},(r,t)=>M.jsx("div",{className:R.cn(q.default.item,v),children:b(u[t%u.length],t)},t))})})}const N=e.forwardRef(L);exports.InfiniteScroll=N;
@@ -7,6 +7,7 @@ export type InfiniteScrollHandle = {
7
7
  type InfiniteScrollProps<T> = {
8
8
  items: ReadonlyArray<T>;
9
9
  speed?: number;
10
+ direction?: 'left' | 'right';
10
11
  contentClassName?: string;
11
12
  itemClassName?: string;
12
13
  rootClassName?: string;
@@ -1,67 +1,82 @@
1
1
  "use client";
2
- import { jsx as M } from "react/jsx-runtime";
3
- import { forwardRef as D, useRef as f, useState as g, useEffect as A, useCallback as h, useImperativeHandle as H } from "react";
4
- import { cn as w } from "../../utils/cn/cn.es.js";
5
- import x from "./infiniteScroll.module.css.es.js";
6
- function P({ items: c, speed: y = 50, contentClassName: W, itemClassName: q, rootClassName: F, renderItem: S }, T) {
7
- const l = f(null), [s, C] = g(0), [i, E] = g(0), m = f(null), d = f(!1), u = f(performance.now()), [I, L] = g(2);
8
- A(() => {
9
- l.current && c.length > 0 && setTimeout(() => {
10
- var o, r, a;
11
- const t = ((r = (o = l.current) == null ? void 0 : o.parentElement) == null ? void 0 : r.offsetWidth) || 0, e = (((a = l.current) == null ? void 0 : a.scrollWidth) || 0) / 2, n = Math.ceil(t * 2 / e);
12
- L(Math.max(2, n % 2 === 0 ? n : n + 1)), E(e);
2
+ import { jsx as x } from "react/jsx-runtime";
3
+ import { forwardRef as H, useRef as h, useState as y, useEffect as C, useCallback as p, useImperativeHandle as P } from "react";
4
+ import { cn as R } from "../../utils/cn/cn.es.js";
5
+ import v from "./infiniteScroll.module.css.es.js";
6
+ function _({
7
+ items: l,
8
+ speed: d = 50,
9
+ direction: c = "left",
10
+ contentClassName: W,
11
+ itemClassName: q,
12
+ rootClassName: F,
13
+ renderItem: T
14
+ }, E) {
15
+ const i = h(null), [u, g] = y(0), [r, I] = y(0), m = h(null), M = h(!1), f = h(performance.now()), [L, N] = y(2);
16
+ C(() => {
17
+ i.current && l.length > 0 && setTimeout(() => {
18
+ var s, a, e;
19
+ const n = ((a = (s = i.current) == null ? void 0 : s.parentElement) == null ? void 0 : a.offsetWidth) || 0, t = (((e = i.current) == null ? void 0 : e.scrollWidth) || 0) / 2, o = Math.ceil(n * 2 / t);
20
+ N(Math.max(2, o % 2 === 0 ? o : o + 1)), I(t);
13
21
  }, 0);
14
- }, [c]);
15
- const p = h(
16
- (t) => {
17
- if (!d.current) {
18
- const e = t ?? performance.now(), n = e - u.current || 16.67;
19
- u.current = e, C((o) => {
20
- const r = o - y * (n / 1e3);
21
- return Math.abs(r) >= i ? r + i : r;
22
+ }, [l]), C(() => {
23
+ g(c === "right" ? -r : 0);
24
+ }, [r, c]);
25
+ const w = p(
26
+ (n) => {
27
+ if (!M.current) {
28
+ const t = n ?? performance.now(), o = t - f.current || 16.67;
29
+ f.current = t, g((s) => {
30
+ const a = c === "right" ? -d : d, e = s - a * (o / 1e3);
31
+ if (c === "left") {
32
+ if (e <= -r)
33
+ return e + r;
34
+ } else if (c === "right" && e >= 0)
35
+ return e - r;
36
+ return e;
22
37
  });
23
38
  }
24
- m.current = requestAnimationFrame(p);
39
+ m.current = requestAnimationFrame(w);
25
40
  },
26
- [i, y]
41
+ [r, d, c]
27
42
  );
28
- A(() => (u.current = performance.now(), m.current = requestAnimationFrame(p), () => {
43
+ C(() => (f.current = performance.now(), m.current = requestAnimationFrame(w), () => {
29
44
  m.current && cancelAnimationFrame(m.current);
30
- }), [p]);
31
- const N = h(() => {
32
- d.current = !0;
33
- }, []), X = h(() => {
34
- d.current = !1, u.current = performance.now();
35
- }, []), R = h(
36
- (t, e = 300) => {
37
- const n = s, o = t - n, r = performance.now(), a = (b) => {
38
- const j = b - r, v = Math.min(j / e, 1), k = 1 - Math.pow(1 - v, 3);
39
- C(n + o * k), v < 1 && requestAnimationFrame(a);
45
+ }), [w]);
46
+ const X = p(() => {
47
+ M.current = !0;
48
+ }, []), b = p(() => {
49
+ M.current = !1, f.current = performance.now();
50
+ }, []), A = p(
51
+ (n, t = 300) => {
52
+ const o = u, s = n - o, a = performance.now(), e = (j) => {
53
+ const k = j - a, S = Math.min(k / t, 1), D = 1 - Math.pow(1 - S, 3);
54
+ g(o + s * D), S < 1 && requestAnimationFrame(e);
40
55
  };
41
- requestAnimationFrame(a);
56
+ requestAnimationFrame(e);
42
57
  },
43
- [s]
58
+ [u]
44
59
  );
45
- return H(T, () => ({
60
+ return P(E, () => ({
46
61
  scrollLeft: () => {
47
- const t = s - 200, e = Math.max(t, -i);
48
- R(e);
62
+ const n = u - 200, t = Math.max(n, -r);
63
+ A(t);
49
64
  },
50
65
  scrollRight: () => {
51
- const t = s + 200, e = Math.min(t, 0);
52
- R(e);
66
+ const n = u + 200, t = Math.min(n, r);
67
+ A(t);
53
68
  }
54
- })), /* @__PURE__ */ M("div", { className: w(x.root, F), onMouseEnter: N, onMouseLeave: X, children: /* @__PURE__ */ M(
69
+ })), /* @__PURE__ */ x("div", { className: R(v.root, F), onMouseEnter: X, onMouseLeave: b, children: /* @__PURE__ */ x(
55
70
  "div",
56
71
  {
57
- className: w(x.content, W),
58
- style: { transform: `translate3D(${s}px, 0, 0)` },
59
- ref: l,
60
- children: Array.from({ length: c.length * I }, (t, e) => /* @__PURE__ */ M("div", { className: w(x.item, q), children: S(c[e % c.length], e) }, e))
72
+ className: R(v.content, W),
73
+ style: { transform: `translate3D(${u}px, 0, 0)` },
74
+ ref: i,
75
+ children: Array.from({ length: l.length * L }, (n, t) => /* @__PURE__ */ x("div", { className: R(v.item, q), children: T(l[t % l.length], t) }, t))
61
76
  }
62
77
  ) });
63
78
  }
64
- const G = D(P);
79
+ const J = H(_);
65
80
  export {
66
- G as InfiniteScroll
81
+ J as InfiniteScroll
67
82
  };
@@ -1,2 +1,2 @@
1
1
  export { Label } from './Label';
2
- export type { LabelColor, LabelProps } from './types';
2
+ export type { LabelColor, LabelProps, LabelSize } from './types';
@@ -1,9 +1,7 @@
1
- import { ReactNode } from 'react';
2
-
3
1
  export type LabelSize = 'sm' | 'lg';
4
2
  export type LabelColor = 'black' | 'grey' | 'white' | 'solar' | 'indigo' | 'orchre' | 'alpha-white';
5
3
  export type LabelProps = {
6
- children: ReactNode;
4
+ children: string;
7
5
  color: LabelColor;
8
6
  size?: LabelSize;
9
7
  className?: string;
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),h=require("../../utils/cn/cn.cjs.js"),g=require("../Label/Label.cjs.js"),C=require("../ProgressButton/ProgressButton.cjs.js"),m=require("../Typography/Typography.cjs.js"),a=require("./stepsCarousel.module.css.cjs.js"),T=({steps:o,colorScheme:n})=>{const[c,b]=r.useState(0),f=r.useRef([]),i=r.useRef(null),u=r.useRef(null),j=r.useCallback(t=>{i.current=t.touches[0].clientX},[]),y=r.useCallback(t=>{u.current=t.touches[0].clientX},[]),d=r.useCallback(t=>{var s;b(t),(s=f.current[t])==null||s.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},[]),k=r.useCallback(()=>{if(i.current!==null&&u.current!==null){const t=u.current-i.current,s=50;b(l=>t>s&&l>0?l-1:t<-s&&l<o.length-1?l+1:l)}i.current=null,u.current=null},[o.length]);return e.jsxs("div",{className:a.default.root,"data-scheme":n,children:[e.jsx("div",{className:a.default.stepsContainer,"data-scheme":n,onTouchStart:j,onTouchMove:y,onTouchEnd:k,children:o.map((t,s)=>{const l=c===s;return e.jsxs("button",{ref:p=>{p&&(f.current[s]=p)},className:h.cn(a.default.card,l&&a.default.cardActive),onClick:()=>d(s),type:"button",children:[e.jsx("div",{className:h.cn(a.default.imageWrapper,l&&a.default.imageWrapperActive),children:e.jsx("img",{src:t.image,alt:t.title,className:a.default.image})}),e.jsx("div",{className:a.default.stepLabel,children:l?e.jsxs(e.Fragment,{children:[e.jsxs(g.Label,{size:"lg",className:a.default.desktop,color:n==="dark"?"white":"black",children:["Step ",s+1]}),e.jsxs(g.Label,{size:"sm",className:a.default.mobile,color:n==="dark"?"white":"black",children:["Step ",s+1]})]}):e.jsxs(m.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:a.default.labelText,children:["Step ",s+1]})}),e.jsxs("div",{className:a.default.textContainer,children:[e.jsx(m.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:t.title}),t.description&&e.jsx(m.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.cardDescription,children:t.description})]})]},`step-${s}`)})}),e.jsx("div",{className:h.cn(a.default.mobile,a.default.progressButtonContainer),children:e.jsx(C.ProgressButton,{invert:n==="dark",left:{disabled:c<=0,onClick:()=>d(c-1)},right:{disabled:c>=o.length-1,onClick:()=>d(c+1)}})})]})};exports.StepsCarousel=T;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),h=require("../../utils/cn/cn.cjs.js"),g=require("../Label/Label.cjs.js"),C=require("../ProgressButton/ProgressButton.cjs.js"),m=require("../Typography/Typography.cjs.js"),a=require("./stepsCarousel.module.css.cjs.js"),T=({steps:o,colorScheme:n})=>{const[c,b]=r.useState(0),f=r.useRef([]),i=r.useRef(null),u=r.useRef(null),j=r.useCallback(t=>{i.current=t.touches[0].clientX},[]),y=r.useCallback(t=>{u.current=t.touches[0].clientX},[]),d=r.useCallback(t=>{var s;b(t),(s=f.current[t])==null||s.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},[]),k=r.useCallback(()=>{if(i.current!==null&&u.current!==null){const t=u.current-i.current,s=50;b(l=>t>s&&l>0?l-1:t<-s&&l<o.length-1?l+1:l)}i.current=null,u.current=null},[o.length]);return e.jsxs("div",{className:a.default.root,"data-scheme":n,children:[e.jsx("div",{className:a.default.stepsContainer,"data-scheme":n,onTouchStart:j,onTouchMove:y,onTouchEnd:k,children:o.map((t,s)=>{const l=c===s;return e.jsxs("button",{ref:p=>{p&&(f.current[s]=p)},className:h.cn(a.default.card,l&&a.default.cardActive),onClick:()=>d(s),type:"button",children:[e.jsx("div",{className:h.cn(a.default.imageWrapper,l&&a.default.imageWrapperActive),children:e.jsx("img",{src:t.image,alt:t.title,className:a.default.image})}),e.jsx("div",{className:a.default.stepLabel,children:l?e.jsxs(e.Fragment,{children:[e.jsx(g.Label,{size:"lg",className:a.default.desktop,color:n==="dark"?"white":"black",children:`Step ${s+1}`}),e.jsx(g.Label,{size:"sm",className:a.default.mobile,color:n==="dark"?"white":"black",children:`Step ${s+1}`})]}):e.jsxs(m.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:a.default.labelText,children:["Step ",s+1]})}),e.jsxs("div",{className:a.default.textContainer,children:[e.jsx(m.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:t.title}),t.description&&e.jsx(m.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.cardDescription,children:t.description})]})]},`step-${s}`)})}),e.jsx("div",{className:h.cn(a.default.mobile,a.default.progressButtonContainer),children:e.jsx(C.ProgressButton,{invert:n==="dark",left:{disabled:c<=0,onClick:()=>d(c-1)},right:{disabled:c>=o.length-1,onClick:()=>d(c+1)}})})]})};exports.StepsCarousel=T;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as n, Fragment as X } from "react/jsx-runtime";
2
+ import { jsxs as i, jsx as a, Fragment as X } from "react/jsx-runtime";
3
3
  import { useState as V, useRef as m, useCallback as u } from "react";
4
4
  import { cn as b } from "../../utils/cn/cn.es.js";
5
5
  import { Label as k } from "../Label/Label.es.js";
6
6
  import { ProgressButton as y } from "../ProgressButton/ProgressButton.es.js";
7
7
  import { Typography as p } from "../Typography/Typography.es.js";
8
8
  import t from "./stepsCarousel.module.css.es.js";
9
- const B = ({ steps: s, colorScheme: c }) => {
10
- const [i, f] = V(0), g = m([]), o = m(null), d = m(null), v = u((e) => {
9
+ const z = ({ steps: s, colorScheme: l }) => {
10
+ const [c, f] = V(0), g = m([]), o = m(null), d = m(null), v = u((e) => {
11
11
  o.current = e.touches[0].clientX;
12
12
  }, []), C = u((e) => {
13
13
  d.current = e.touches[0].clientX;
@@ -17,58 +17,52 @@ const B = ({ steps: s, colorScheme: c }) => {
17
17
  }, []), T = u(() => {
18
18
  if (o.current !== null && d.current !== null) {
19
19
  const e = d.current - o.current, r = 50;
20
- f((a) => e > r && a > 0 ? a - 1 : e < -r && a < s.length - 1 ? a + 1 : a);
20
+ f((n) => e > r && n > 0 ? n - 1 : e < -r && n < s.length - 1 ? n + 1 : n);
21
21
  }
22
22
  o.current = null, d.current = null;
23
23
  }, [s.length]);
24
- return /* @__PURE__ */ l("div", { className: t.root, "data-scheme": c, children: [
25
- /* @__PURE__ */ n(
24
+ return /* @__PURE__ */ i("div", { className: t.root, "data-scheme": l, children: [
25
+ /* @__PURE__ */ a(
26
26
  "div",
27
27
  {
28
28
  className: t.stepsContainer,
29
- "data-scheme": c,
29
+ "data-scheme": l,
30
30
  onTouchStart: v,
31
31
  onTouchMove: C,
32
32
  onTouchEnd: T,
33
33
  children: s.map((e, r) => {
34
- const a = i === r;
35
- return /* @__PURE__ */ l(
34
+ const n = c === r;
35
+ return /* @__PURE__ */ i(
36
36
  "button",
37
37
  {
38
38
  ref: (N) => {
39
39
  N && (g.current[r] = N);
40
40
  },
41
- className: b(t.card, a && t.cardActive),
41
+ className: b(t.card, n && t.cardActive),
42
42
  onClick: () => h(r),
43
43
  type: "button",
44
44
  children: [
45
- /* @__PURE__ */ n("div", { className: b(t.imageWrapper, a && t.imageWrapperActive), children: /* @__PURE__ */ n("img", { src: e.image, alt: e.title, className: t.image }) }),
46
- /* @__PURE__ */ n("div", { className: t.stepLabel, children: a ? /* @__PURE__ */ l(X, { children: [
47
- /* @__PURE__ */ l(
45
+ /* @__PURE__ */ a("div", { className: b(t.imageWrapper, n && t.imageWrapperActive), children: /* @__PURE__ */ a("img", { src: e.image, alt: e.title, className: t.image }) }),
46
+ /* @__PURE__ */ a("div", { className: t.stepLabel, children: n ? /* @__PURE__ */ i(X, { children: [
47
+ /* @__PURE__ */ a(
48
48
  k,
49
49
  {
50
50
  size: "lg",
51
51
  className: t.desktop,
52
- color: c === "dark" ? "white" : "black",
53
- children: [
54
- "Step ",
55
- r + 1
56
- ]
52
+ color: l === "dark" ? "white" : "black",
53
+ children: `Step ${r + 1}`
57
54
  }
58
55
  ),
59
- /* @__PURE__ */ l(
56
+ /* @__PURE__ */ a(
60
57
  k,
61
58
  {
62
59
  size: "sm",
63
60
  className: t.mobile,
64
- color: c === "dark" ? "white" : "black",
65
- children: [
66
- "Step ",
67
- r + 1
68
- ]
61
+ color: l === "dark" ? "white" : "black",
62
+ children: `Step ${r + 1}`
69
63
  }
70
64
  )
71
- ] }) : /* @__PURE__ */ l(
65
+ ] }) : /* @__PURE__ */ i(
72
66
  p,
73
67
  {
74
68
  defaultVariant: "labelSm",
@@ -81,9 +75,9 @@ const B = ({ steps: s, colorScheme: c }) => {
81
75
  ]
82
76
  }
83
77
  ) }),
84
- /* @__PURE__ */ l("div", { className: t.textContainer, children: [
85
- /* @__PURE__ */ n(p, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: e.title }),
86
- e.description && /* @__PURE__ */ n(
78
+ /* @__PURE__ */ i("div", { className: t.textContainer, children: [
79
+ /* @__PURE__ */ a(p, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: e.title }),
80
+ e.description && /* @__PURE__ */ a(
87
81
  p,
88
82
  {
89
83
  as: "p",
@@ -101,22 +95,22 @@ const B = ({ steps: s, colorScheme: c }) => {
101
95
  })
102
96
  }
103
97
  ),
104
- /* @__PURE__ */ n("div", { className: b(t.mobile, t.progressButtonContainer), children: /* @__PURE__ */ n(
98
+ /* @__PURE__ */ a("div", { className: b(t.mobile, t.progressButtonContainer), children: /* @__PURE__ */ a(
105
99
  y,
106
100
  {
107
- invert: c === "dark",
101
+ invert: l === "dark",
108
102
  left: {
109
- disabled: i <= 0,
110
- onClick: () => h(i - 1)
103
+ disabled: c <= 0,
104
+ onClick: () => h(c - 1)
111
105
  },
112
106
  right: {
113
- disabled: i >= s.length - 1,
114
- onClick: () => h(i + 1)
107
+ disabled: c >= s.length - 1,
108
+ onClick: () => h(c + 1)
115
109
  }
116
110
  }
117
111
  ) })
118
112
  ] });
119
113
  };
120
114
  export {
121
- B as StepsCarousel
115
+ z as StepsCarousel
122
116
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../utils/formatDate.cjs.js");require("../Icon/Icon.cjs.js");const o=require("../Icon/constants.cjs.js"),h=require("../Label/Label.cjs.js"),i=require("../TextButton/TextButton.cjs.js"),t=require("../Typography/Typography.cjs.js"),a=require("./studyGridCard.module.css.cjs.js");function f({title:n,link:r,inverted:d,image:u,date:c,label:s,readTime:l}){return e.jsxs("div",{className:a.default.study,"data-inverted":d,children:[e.jsx("div",{className:a.default.imagePart,style:{backgroundImage:`url(${u})`},children:s&&e.jsx(h.Label,{...s})}),e.jsxs("div",{className:a.default.dataPart,children:[e.jsxs("div",{className:a.default.info,children:[e.jsx(t.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:m.formatDate(c)}),!!l&&e.jsxs(e.Fragment,{children:[e.jsx(t.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(t.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[l," MIN READ"]})]})]}),e.jsx(t.Typography,{className:a.default.title,defaultVariant:"headingSm",mobileVariant:"bodySm",as:"h6",children:n}),e.jsxs("div",{className:a.default.button,children:[e.jsx(i.TextButton,{hideOn:"desktop",className:a.default.mobileButton,size:"sm",as:"a",href:r,suffixIcon:o.EIconName.ARROW_FORWARD,children:"READ MORE"}),e.jsx(i.TextButton,{hideOn:"mobile",className:a.default.desktopButton,size:"lg",as:"a",href:r,suffixIcon:o.EIconName.ARROW_FORWARD,children:"READ MORE"})]})]})]})}exports.StudyGridCard=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("../../utils/formatDate.cjs.js");require("../Icon/Icon.cjs.js");const l=require("../Icon/constants.cjs.js"),x=require("../Label/Label.cjs.js"),r=require("../TextButton/TextButton.cjs.js"),s=require("../Typography/Typography.cjs.js"),i=require("../../utils/cn/cn.cjs.js"),a=require("./studyGridCard.module.css.cjs.js");function b(d){if(d.compressed===!0){const{title:n,link:t,image:o}=d;return e.jsxs("div",{className:i.cn(a.default.study,a.default.studyCompressed),children:[e.jsx("div",{className:i.cn(a.default.imagePart,a.default.imagePartCompressed),style:{backgroundImage:`url(${o})`}}),e.jsxs("div",{className:i.cn(a.default.dataPart,a.default.dataPartCompressed),children:[e.jsx(s.Typography,{className:i.cn(a.default.title,a.default.titleCompressed),defaultVariant:"headingSm",mobileVariant:"bodySm",as:"h6",children:n}),e.jsxs("div",{className:a.default.button,children:[e.jsx(r.TextButton,{hideOn:"desktop",className:a.default.mobileButton,size:"sm",as:"a",href:t,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"}),e.jsx(r.TextButton,{hideOn:"mobile",className:a.default.desktopButton,size:"lg",as:"a",href:t,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"})]})]}),e.jsx("div",{className:a.default.borderLeft}),e.jsx("div",{className:a.default.borderRight})]})}else{const{title:n,link:t,image:o,inverted:c,date:m,label:u,readTime:f}=d;return e.jsxs("div",{className:a.default.study,"data-inverted":c,children:[e.jsx("div",{className:a.default.imagePart,style:{backgroundImage:`url(${o})`},children:u&&e.jsx(x.Label,{...u})}),e.jsxs("div",{className:a.default.dataPart,children:[e.jsxs("div",{className:a.default.info,children:[e.jsx(s.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:h.formatDate(m)}),e.jsxs(e.Fragment,{children:[e.jsx(s.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(s.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[f," MIN READ"]})]})]}),e.jsx(s.Typography,{className:a.default.title,defaultVariant:"headingSm",mobileVariant:"bodySm",as:"h6",children:n}),e.jsxs("div",{className:a.default.button,children:[e.jsx(r.TextButton,{hideOn:"desktop",className:a.default.mobileButton,size:"sm",as:"a",href:t,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"}),e.jsx(r.TextButton,{hideOn:"mobile",className:a.default.desktopButton,size:"lg",as:"a",href:t,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"})]})]})]})}}exports.StudyGridCard=b;
@@ -1,6 +1,13 @@
1
1
  import { LabelProps } from '../Label';
2
2
 
3
- export type StudyGridCardProps = {
3
+ export type CompressedStudyCardProps = {
4
+ compressed: true;
5
+ title: string;
6
+ link: string;
7
+ image: string;
8
+ };
9
+ export type CompleteStudyCardProps = {
10
+ compressed?: false;
4
11
  title: string;
5
12
  inverted?: boolean;
6
13
  image: string;
@@ -9,4 +16,5 @@ export type StudyGridCardProps = {
9
16
  readTime: number;
10
17
  link: string;
11
18
  };
12
- export declare function StudyGridCard({ title, link, inverted, image, date, label, readTime }: StudyGridCardProps): import("react/jsx-runtime").JSX.Element;
19
+ export type StudyGridCardProps = CompressedStudyCardProps | CompleteStudyCardProps;
20
+ export declare function StudyGridCard(props: StudyGridCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,85 +1,140 @@
1
- import { jsxs as r, jsx as a, Fragment as u } from "react/jsx-runtime";
2
- import { formatDate as f } from "../../utils/formatDate.es.js";
1
+ import { jsxs as i, jsx as a, Fragment as R } from "react/jsx-runtime";
2
+ import { formatDate as b } from "../../utils/formatDate.es.js";
3
3
  import "../Icon/Icon.es.js";
4
- import { EIconName as m } from "../Icon/constants.es.js";
4
+ import { EIconName as l } from "../Icon/constants.es.js";
5
5
  import { Label as p } from "../Label/Label.es.js";
6
6
  import { TextButton as s } from "../TextButton/TextButton.es.js";
7
- import { Typography as i } from "../Typography/Typography.es.js";
7
+ import { Typography as r } from "../Typography/Typography.es.js";
8
+ import { cn as m } from "../../utils/cn/cn.es.js";
8
9
  import e from "./studyGridCard.module.css.es.js";
9
- function v({ title: n, link: t, inverted: d, image: c, date: h, label: l, readTime: o }) {
10
- return /* @__PURE__ */ r("div", { className: e.study, "data-inverted": d, children: [
11
- /* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${c})` }, children: l && /* @__PURE__ */ a(p, { ...l }) }),
12
- /* @__PURE__ */ r("div", { className: e.dataPart, children: [
13
- /* @__PURE__ */ r("div", { className: e.info, children: [
10
+ function k(d) {
11
+ if (d.compressed === !0) {
12
+ const { title: o, link: t, image: n } = d;
13
+ return /* @__PURE__ */ i("div", { className: m(e.study, e.studyCompressed), children: [
14
+ /* @__PURE__ */ a(
15
+ "div",
16
+ {
17
+ className: m(e.imagePart, e.imagePartCompressed),
18
+ style: { backgroundImage: `url(${n})` }
19
+ }
20
+ ),
21
+ /* @__PURE__ */ i("div", { className: m(e.dataPart, e.dataPartCompressed), children: [
14
22
  /* @__PURE__ */ a(
15
- i,
23
+ r,
16
24
  {
17
- defaultVariant: "labelSm",
18
- mobileVariant: "labelXs",
19
- emphasis: !0,
20
- weight: "medium",
21
- color: "color-neutral-500",
22
- children: f(h)
25
+ className: m(e.title, e.titleCompressed),
26
+ defaultVariant: "headingSm",
27
+ mobileVariant: "bodySm",
28
+ as: "h6",
29
+ children: o
23
30
  }
24
31
  ),
25
- !!o && /* @__PURE__ */ r(u, { children: [
32
+ /* @__PURE__ */ i("div", { className: e.button, children: [
26
33
  /* @__PURE__ */ a(
27
- i,
34
+ s,
28
35
  {
29
- defaultVariant: "labelSm",
30
- mobileVariant: "labelXs",
31
- emphasis: !0,
32
- weight: "medium",
33
- color: "color-neutral-500",
34
- children: "•"
36
+ hideOn: "desktop",
37
+ className: e.mobileButton,
38
+ size: "sm",
39
+ as: "a",
40
+ href: t,
41
+ suffixIcon: l.ARROW_FORWARD,
42
+ children: "READ MORE"
35
43
  }
36
44
  ),
37
- /* @__PURE__ */ r(
38
- i,
45
+ /* @__PURE__ */ a(
46
+ s,
47
+ {
48
+ hideOn: "mobile",
49
+ className: e.desktopButton,
50
+ size: "lg",
51
+ as: "a",
52
+ href: t,
53
+ suffixIcon: l.ARROW_FORWARD,
54
+ children: "READ MORE"
55
+ }
56
+ )
57
+ ] })
58
+ ] }),
59
+ /* @__PURE__ */ a("div", { className: e.borderLeft }),
60
+ /* @__PURE__ */ a("div", { className: e.borderRight })
61
+ ] });
62
+ } else {
63
+ const { title: o, link: t, image: n, inverted: h, date: u, label: c, readTime: f } = d;
64
+ return /* @__PURE__ */ i("div", { className: e.study, "data-inverted": h, children: [
65
+ /* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${n})` }, children: c && /* @__PURE__ */ a(p, { ...c }) }),
66
+ /* @__PURE__ */ i("div", { className: e.dataPart, children: [
67
+ /* @__PURE__ */ i("div", { className: e.info, children: [
68
+ /* @__PURE__ */ a(
69
+ r,
39
70
  {
40
71
  defaultVariant: "labelSm",
41
72
  mobileVariant: "labelXs",
42
73
  emphasis: !0,
43
74
  weight: "medium",
44
75
  color: "color-neutral-500",
45
- children: [
46
- o,
47
- " MIN READ"
48
- ]
76
+ children: b(u)
77
+ }
78
+ ),
79
+ /* @__PURE__ */ i(R, { children: [
80
+ /* @__PURE__ */ a(
81
+ r,
82
+ {
83
+ defaultVariant: "labelSm",
84
+ mobileVariant: "labelXs",
85
+ emphasis: !0,
86
+ weight: "medium",
87
+ color: "color-neutral-500",
88
+ children: "•"
89
+ }
90
+ ),
91
+ /* @__PURE__ */ i(
92
+ r,
93
+ {
94
+ defaultVariant: "labelSm",
95
+ mobileVariant: "labelXs",
96
+ emphasis: !0,
97
+ weight: "medium",
98
+ color: "color-neutral-500",
99
+ children: [
100
+ f,
101
+ " MIN READ"
102
+ ]
103
+ }
104
+ )
105
+ ] })
106
+ ] }),
107
+ /* @__PURE__ */ a(r, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: o }),
108
+ /* @__PURE__ */ i("div", { className: e.button, children: [
109
+ /* @__PURE__ */ a(
110
+ s,
111
+ {
112
+ hideOn: "desktop",
113
+ className: e.mobileButton,
114
+ size: "sm",
115
+ as: "a",
116
+ href: t,
117
+ suffixIcon: l.ARROW_FORWARD,
118
+ children: "READ MORE"
119
+ }
120
+ ),
121
+ /* @__PURE__ */ a(
122
+ s,
123
+ {
124
+ hideOn: "mobile",
125
+ className: e.desktopButton,
126
+ size: "lg",
127
+ as: "a",
128
+ href: t,
129
+ suffixIcon: l.ARROW_FORWARD,
130
+ children: "READ MORE"
49
131
  }
50
132
  )
51
133
  ] })
52
- ] }),
53
- /* @__PURE__ */ a(i, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: n }),
54
- /* @__PURE__ */ r("div", { className: e.button, children: [
55
- /* @__PURE__ */ a(
56
- s,
57
- {
58
- hideOn: "desktop",
59
- className: e.mobileButton,
60
- size: "sm",
61
- as: "a",
62
- href: t,
63
- suffixIcon: m.ARROW_FORWARD,
64
- children: "READ MORE"
65
- }
66
- ),
67
- /* @__PURE__ */ a(
68
- s,
69
- {
70
- hideOn: "mobile",
71
- className: e.desktopButton,
72
- size: "lg",
73
- as: "a",
74
- href: t,
75
- suffixIcon: m.ARROW_FORWARD,
76
- children: "READ MORE"
77
- }
78
- )
79
134
  ] })
80
- ] })
81
- ] });
135
+ ] });
136
+ }
82
137
  }
83
138
  export {
84
- v as StudyGridCard
139
+ k as StudyGridCard
85
140
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",_="studyGridCard-module__dataPart___mweMi",o="studyGridCard-module__info___xY-Kk",e="studyGridCard-module__title___U2va1",u="studyGridCard-module__button___bvI0u",a="studyGridCard-module__mobileButton___v-RZs",i={study:t,imagePart:d,dataPart:_,info:o,title:e,button:u,mobileButton:a};exports.button=u;exports.dataPart=_;exports.default=i;exports.imagePart=d;exports.info=o;exports.mobileButton=a;exports.study=t;exports.title=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",e="studyGridCard-module__dataPart___mweMi",r="studyGridCard-module__dataPartCompressed___bLUMa",s="studyGridCard-module__info___xY-Kk",o="studyGridCard-module__title___U2va1",_="studyGridCard-module__button___bvI0u",a="studyGridCard-module__mobileButton___v-RZs",u="studyGridCard-module__studyCompressed___0XTXS",i="studyGridCard-module__imagePartCompressed___8GG-N",m="studyGridCard-module__titleCompressed___Z7uqM",l="studyGridCard-module__borderLeft___xGpbL",C="studyGridCard-module__borderRight___DmL9W",n={study:t,imagePart:d,dataPart:e,dataPartCompressed:r,info:s,title:o,button:_,mobileButton:a,studyCompressed:u,imagePartCompressed:i,titleCompressed:m,borderLeft:l,borderRight:C};exports.borderLeft=l;exports.borderRight=C;exports.button=_;exports.dataPart=e;exports.dataPartCompressed=r;exports.default=n;exports.imagePart=d;exports.imagePartCompressed=i;exports.info=s;exports.mobileButton=a;exports.study=t;exports.studyCompressed=u;exports.title=o;exports.titleCompressed=m;
@@ -1,19 +1,31 @@
1
- const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO", _ = "studyGridCard-module__dataPart___mweMi", o = "studyGridCard-module__info___xY-Kk", a = "studyGridCard-module__title___U2va1", u = "studyGridCard-module__button___bvI0u", s = "studyGridCard-module__mobileButton___v-RZs", r = {
1
+ const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO", e = "studyGridCard-module__dataPart___mweMi", _ = "studyGridCard-module__dataPartCompressed___bLUMa", r = "studyGridCard-module__info___xY-Kk", s = "studyGridCard-module__title___U2va1", o = "studyGridCard-module__button___bvI0u", a = "studyGridCard-module__mobileButton___v-RZs", u = "studyGridCard-module__studyCompressed___0XTXS", m = "studyGridCard-module__imagePartCompressed___8GG-N", i = "studyGridCard-module__titleCompressed___Z7uqM", C = "studyGridCard-module__borderLeft___xGpbL", l = "studyGridCard-module__borderRight___DmL9W", n = {
2
2
  study: t,
3
3
  imagePart: d,
4
- dataPart: _,
5
- info: o,
6
- title: a,
7
- button: u,
8
- mobileButton: s
4
+ dataPart: e,
5
+ dataPartCompressed: _,
6
+ info: r,
7
+ title: s,
8
+ button: o,
9
+ mobileButton: a,
10
+ studyCompressed: u,
11
+ imagePartCompressed: m,
12
+ titleCompressed: i,
13
+ borderLeft: C,
14
+ borderRight: l
9
15
  };
10
16
  export {
11
- u as button,
12
- _ as dataPart,
13
- r as default,
17
+ C as borderLeft,
18
+ l as borderRight,
19
+ o as button,
20
+ e as dataPart,
21
+ _ as dataPartCompressed,
22
+ n as default,
14
23
  d as imagePart,
15
- o as info,
16
- s as mobileButton,
24
+ m as imagePartCompressed,
25
+ r as info,
26
+ a as mobileButton,
17
27
  t as study,
18
- a as title
28
+ u as studyCompressed,
29
+ s as title,
30
+ i as titleCompressed
19
31
  };