@zenpatient-org/healthspan-marketing-ui 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.d.ts +5 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/ComplexCarousel.es.js +57 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/complexImageCarousel.module.css.es.js +24 -0
- package/dist/components/ComplexImageCarousel/ComplexCarousel/index.d.ts +1 -0
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +1 -1
- package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +5 -55
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.d.ts +5 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/SimpleImageCarousel.es.js +76 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/index.d.ts +1 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.cjs.js +1 -0
- package/dist/components/ComplexImageCarousel/SimpleImageCarousel/simpleImageCarousel.module.css.es.js +15 -0
- package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -1
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -2
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +34 -29
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +61 -46
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/Label/types.d.ts +1 -3
- package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
- package/dist/components/StepsCarousel/StepsCarousel.es.js +29 -35
- package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -1
- package/dist/components/StudyGridCard/StudyGridCard.d.ts +10 -2
- package/dist/components/StudyGridCard/StudyGridCard.es.js +115 -60
- package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -1
- package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +24 -12
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.es.js +11 -11
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +1 -0
- package/dist/modules/ExpandingDetails/ExpandingDetails.d.ts +3 -0
- package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +157 -0
- package/dist/modules/ExpandingDetails/expandingDetails.module.css.cjs.js +1 -0
- package/dist/modules/ExpandingDetails/expandingDetails.module.css.es.js +47 -0
- package/dist/modules/ExpandingDetails/index.d.ts +1 -0
- package/dist/modules/ExpandingDetails/types.d.ts +13 -0
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.d.ts +1 -0
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +13 -14
- package/dist/modules/IndividualProductCard/IndividualProductCard.d.ts +2 -2
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -1
- package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +6 -6
- package/dist/modules/IngredientHighlight/components/Ingredient/types.d.ts +1 -1
- package/dist/modules/IngredientHighlight/types.d.ts +1 -1
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.cjs.js +1 -1
- package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.es.js +13 -13
- package/dist/modules/ResearchEssentialReadings/index.d.ts +2 -0
- package/dist/modules/ResearchFeatured/ResearchFeatured.cjs.js +1 -1
- package/dist/modules/ResearchFeatured/ResearchFeatured.es.js +9 -9
- package/dist/modules/ResearchFeatured/index.d.ts +1 -0
- package/dist/modules/ResearchFilters/ResearchFilters.cjs.js +1 -1
- package/dist/modules/ResearchFilters/ResearchFilters.d.ts +3 -1
- package/dist/modules/ResearchFilters/ResearchFilters.es.js +18 -24
- package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -1
- package/dist/modules/ResearchStudies/ResearchStudies.d.ts +8 -2
- package/dist/modules/ResearchStudies/ResearchStudies.es.js +10 -11
- package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +1 -1
- package/dist/modules/ResearchStudies/components/StudyCard/index.d.ts +0 -1
- package/dist/modules/ResearchStudies/index.d.ts +1 -0
- package/dist/modules/ResearchStudies/types.d.ts +8 -3
- package/dist/modules/TextBlockAnimated/TextBlockAnimated.d.ts +6 -0
- package/dist/pageComponents/HowItWorksHero/HowItWorksHero.d.ts +1 -0
- package/dist/pageComponents/HowItWorksHero/assets/Container.png.cjs.js +1 -0
- package/dist/pageComponents/HowItWorksHero/assets/Container.png.es.js +4 -0
- package/dist/pageComponents/HowItWorksHero/assets/people.png.cjs.js +1 -0
- package/dist/pageComponents/HowItWorksHero/assets/people.png.es.js +4 -0
- package/dist/pageComponents/HowItWorksHero/howItWorksHero.module.css.cjs.js +1 -0
- package/dist/pageComponents/HowItWorksHero/howItWorksHero.module.css.es.js +17 -0
- package/dist/pageComponents/HowItWorksHero/index.d.ts +1 -0
- package/dist/pageComponents/HowItWorksHero.cjs.js +1 -0
- package/dist/pageComponents/HowItWorksHero.es.js +14 -0
- package/package.json +26 -16
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +0 -1
- package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +0 -24
- package/dist/modules/ResearchStudies/components/StudyCard/types.d.ts +0 -10
- package/dist/modules/ResearchStudies/components/index.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),H=require("../../node_modules/@gsap/react/src/index.cjs.js"),d=require("../../node_modules/gsap/index.cjs.js"),u=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),w=require("react"),A=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),g=require("../../components/Typography/Typography.cjs.js"),V=require("../../utils/debounce.cjs.js"),r=require("./expandingDetails.module.css.cjs.js");d.gsap.registerPlugin(u.ScrollTrigger);const $=({colorScheme:h,label:N,title:P,sections:b})=>{const c=w.useRef(null);return H.useGSAP(()=>{if(!c.current)return;const a=()=>{var S;d.gsap.killTweensOf("*"),u.ScrollTrigger.getAll().forEach(e=>e.kill());const o=d.gsap.utils.toArray('[data-scroll-id="section"]'),t=(S=c.current)==null?void 0:S.querySelector('[data-scroll-id="sections"]');if(!t)return;const f=d.gsap.timeline({scrollTrigger:{trigger:c.current,start:"top top",end:()=>`+=${o.length*500}`,scrub:1,markers:!1,pin:!0}}),p=t==null?void 0:t.querySelector('[data-scroll-id="heading"]');if(!p)return;d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="section"]'),{height:p.offsetHeight||0}),d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="protocol"]'),{scale:.5,yPercent:0}),d.gsap.set(t==null?void 0:t.querySelectorAll('[data-scroll-id="image-circle"]'),{scale:.5,yPercent:5});const y=window.innerWidth<768?1.2:2,m=window.innerWidth<768?1.2:2;o.forEach((e,E)=>{var x,q,T,j,v;const n=e==null?void 0:e.querySelector('[data-scroll-id="heading"]'),i=e==null?void 0:e.querySelector('[data-scroll-id="content"]');!n||!i||(f.to(e,{height:n.offsetHeight+i.offsetHeight}).to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:y,yPercent:50},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:m,yPercent:50},"<").to(i,{height:i.offsetHeight},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:1},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:1,yPercent:5},"<"),E<o.length-1&&f.to(e,{height:n.offsetHeight,delay:.5}).to(e.nextElementSibling,{height:n.offsetHeight+i.offsetHeight},"<").to(((x=e.nextElementSibling)==null?void 0:x.querySelector('[data-scroll-id="section-title"]'))||null,{scale:y,yPercent:100},"<").to(((q=e.nextElementSibling)==null?void 0:q.querySelector('[data-scroll-id="section-index"]'))||null,{scale:m,yPercent:100},"<").to(((T=e.nextElementSibling)==null?void 0:T.querySelector('[data-scroll-id="content"]'))||null,{height:i.offsetHeight,yPercent:0},"<").to(((j=e.nextElementSibling)==null?void 0:j.querySelector('[data-scroll-id="protocol"]'))||null,{scale:1},"<").to(((v=e.nextElementSibling)==null?void 0:v.querySelector('[data-scroll-id="image-circle"]'))||null,{scale:1,yPercent:5},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-title"]'),{scale:1,yPercent:-15},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="section-index"]'),{scale:1,yPercent:-15},"<").to(i,{height:0,yPercent:0},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="protocol"]'),{scale:0,yPercent:200},"<").to(e==null?void 0:e.querySelector('[data-scroll-id="image-circle"]'),{scale:0,yPercent:200},"<"))})};a();const s=V.default(()=>{a()},200);return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s),u.ScrollTrigger.getAll().forEach(o=>o.kill()),d.gsap.killTweensOf("*")}},{scope:c,dependencies:[c]}),l.jsx("div",{ref:c,className:`${r.default.root} ${r.default[h]}`,children:l.jsxs("div",{className:r.default.expandingDetailsWrapper,children:[l.jsxs("header",{"data-scroll-id":"header",className:r.default.header,children:[l.jsx(g.Typography,{as:"div",defaultVariant:"labelSm",emphasis:!0,className:r.default.label,children:N}),l.jsx(A.HighlightedTitle,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingXl",colorScheme:h,className:r.default.title,title:P})]}),l.jsx("div",{"data-scroll-id":"sections",className:r.default.sections,children:b.map((a,s)=>l.jsxs("div",{id:`section-${s+1}`,"data-scroll-id":"section",className:r.default.section,children:[l.jsxs("div",{"data-scroll-id":"heading",className:r.default.heading,children:[l.jsx("div",{"data-scroll-id":"section-title",className:r.default.sectionTitleWrapper,children:l.jsx(g.Typography,{as:"h3",defaultVariant:"headingSm",className:r.default.sectionTitle,children:a.title})}),l.jsx("div",{"data-scroll-id":"section-index",className:r.default.sectionIndexWrapper,children:l.jsxs(g.Typography,{as:"p",defaultVariant:"headingSm",className:r.default.sectionIndex,children:["(",String(s+1).padStart(2,"0"),")"]})})]}),l.jsxs("div",{"data-scroll-id":"content",className:r.default.content,children:[l.jsx("div",{"data-scroll-id":"protocol",className:r.default.protocolWrapper,children:l.jsx(g.Typography,{as:"div",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:r.default.protocol,children:a.protocol})}),l.jsx("div",{"data-scroll-id":"image-circle",className:r.default.imageCircle,children:l.jsx("img",{src:a.image,alt:a.title})})]}),l.jsx("div",{className:r.default.leftBorder}),l.jsx("div",{className:r.default.rightBorder})]},a.title))})]})})};exports.ExpandingDetails=$;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useGSAP as A } from "../../node_modules/@gsap/react/src/index.es.js";
|
|
3
|
+
import { gsap as d } from "../../node_modules/gsap/index.es.js";
|
|
4
|
+
import { ScrollTrigger as g } from "../../node_modules/gsap/ScrollTrigger.es.js";
|
|
5
|
+
import { useRef as V } from "react";
|
|
6
|
+
import { HighlightedTitle as W } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
7
|
+
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
8
|
+
import k from "../../utils/debounce.es.js";
|
|
9
|
+
import l from "./expandingDetails.module.css.es.js";
|
|
10
|
+
d.registerPlugin(g);
|
|
11
|
+
const O = ({ colorScheme: u, label: E, title: w, sections: T }) => {
|
|
12
|
+
const c = V(null);
|
|
13
|
+
return A(
|
|
14
|
+
() => {
|
|
15
|
+
if (!c.current) return;
|
|
16
|
+
const a = () => {
|
|
17
|
+
var q;
|
|
18
|
+
d.killTweensOf("*"), g.getAll().forEach((e) => e.kill());
|
|
19
|
+
const n = d.utils.toArray('[data-scroll-id="section"]'), r = (q = c.current) == null ? void 0 : q.querySelector('[data-scroll-id="sections"]');
|
|
20
|
+
if (!r) return;
|
|
21
|
+
const f = d.timeline({
|
|
22
|
+
scrollTrigger: {
|
|
23
|
+
trigger: c.current,
|
|
24
|
+
start: "top top",
|
|
25
|
+
end: () => `+=${n.length * 500}`,
|
|
26
|
+
scrub: 1,
|
|
27
|
+
markers: !1,
|
|
28
|
+
pin: !0
|
|
29
|
+
}
|
|
30
|
+
}), p = r == null ? void 0 : r.querySelector('[data-scroll-id="heading"]');
|
|
31
|
+
if (!p) return;
|
|
32
|
+
d.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="section"]'), {
|
|
33
|
+
height: p.offsetHeight || 0
|
|
34
|
+
}), d.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="protocol"]'), {
|
|
35
|
+
scale: 0.5,
|
|
36
|
+
yPercent: 0
|
|
37
|
+
}), d.set(r == null ? void 0 : r.querySelectorAll('[data-scroll-id="image-circle"]'), {
|
|
38
|
+
scale: 0.5,
|
|
39
|
+
yPercent: 5
|
|
40
|
+
});
|
|
41
|
+
const y = window.innerWidth < 768 ? 1.2 : 2, S = window.innerWidth < 768 ? 1.2 : 2;
|
|
42
|
+
n.forEach((e, H) => {
|
|
43
|
+
var v, N, x, P, b;
|
|
44
|
+
const h = e == null ? void 0 : e.querySelector('[data-scroll-id="heading"]'), i = e == null ? void 0 : e.querySelector('[data-scroll-id="content"]');
|
|
45
|
+
!h || !i || (f.to(e, { height: h.offsetHeight + i.offsetHeight }).to(
|
|
46
|
+
e == null ? void 0 : e.querySelector('[data-scroll-id="section-title"]'),
|
|
47
|
+
{ scale: y, yPercent: 50 },
|
|
48
|
+
"<"
|
|
49
|
+
).to(
|
|
50
|
+
e == null ? void 0 : e.querySelector('[data-scroll-id="section-index"]'),
|
|
51
|
+
{ scale: S, yPercent: 50 },
|
|
52
|
+
"<"
|
|
53
|
+
).to(i, { height: i.offsetHeight }, "<").to(e == null ? void 0 : e.querySelector('[data-scroll-id="protocol"]'), { scale: 1 }, "<").to(e == null ? void 0 : e.querySelector('[data-scroll-id="image-circle"]'), { scale: 1, yPercent: 5 }, "<"), H < n.length - 1 && f.to(e, { height: h.offsetHeight, delay: 0.5 }).to(
|
|
54
|
+
e.nextElementSibling,
|
|
55
|
+
{ height: h.offsetHeight + i.offsetHeight },
|
|
56
|
+
"<"
|
|
57
|
+
).to(
|
|
58
|
+
((v = e.nextElementSibling) == null ? void 0 : v.querySelector('[data-scroll-id="section-title"]')) || null,
|
|
59
|
+
{ scale: y, yPercent: 100 },
|
|
60
|
+
"<"
|
|
61
|
+
).to(
|
|
62
|
+
((N = e.nextElementSibling) == null ? void 0 : N.querySelector('[data-scroll-id="section-index"]')) || null,
|
|
63
|
+
{ scale: S, yPercent: 100 },
|
|
64
|
+
"<"
|
|
65
|
+
).to(
|
|
66
|
+
((x = e.nextElementSibling) == null ? void 0 : x.querySelector('[data-scroll-id="content"]')) || null,
|
|
67
|
+
{ height: i.offsetHeight, yPercent: 0 },
|
|
68
|
+
"<"
|
|
69
|
+
).to(
|
|
70
|
+
((P = e.nextElementSibling) == null ? void 0 : P.querySelector('[data-scroll-id="protocol"]')) || null,
|
|
71
|
+
{ scale: 1 },
|
|
72
|
+
"<"
|
|
73
|
+
).to(
|
|
74
|
+
((b = e.nextElementSibling) == null ? void 0 : b.querySelector('[data-scroll-id="image-circle"]')) || null,
|
|
75
|
+
{ scale: 1, yPercent: 5 },
|
|
76
|
+
"<"
|
|
77
|
+
).to(
|
|
78
|
+
e == null ? void 0 : e.querySelector('[data-scroll-id="section-title"]'),
|
|
79
|
+
{ scale: 1, yPercent: -15 },
|
|
80
|
+
"<"
|
|
81
|
+
).to(
|
|
82
|
+
e == null ? void 0 : e.querySelector('[data-scroll-id="section-index"]'),
|
|
83
|
+
{ scale: 1, yPercent: -15 },
|
|
84
|
+
"<"
|
|
85
|
+
).to(i, { height: 0, yPercent: 0 }, "<").to(e == null ? void 0 : e.querySelector('[data-scroll-id="protocol"]'), { scale: 0, yPercent: 200 }, "<").to(
|
|
86
|
+
e == null ? void 0 : e.querySelector('[data-scroll-id="image-circle"]'),
|
|
87
|
+
{ scale: 0, yPercent: 200 },
|
|
88
|
+
"<"
|
|
89
|
+
));
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
a();
|
|
93
|
+
const s = k(() => {
|
|
94
|
+
a();
|
|
95
|
+
}, 200);
|
|
96
|
+
return window.addEventListener("resize", s), () => {
|
|
97
|
+
window.removeEventListener("resize", s), g.getAll().forEach((n) => n.kill()), d.killTweensOf("*");
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
scope: c,
|
|
102
|
+
dependencies: [c]
|
|
103
|
+
}
|
|
104
|
+
), /* @__PURE__ */ t("div", { ref: c, className: `${l.root} ${l[u]}`, children: /* @__PURE__ */ o("div", { className: l.expandingDetailsWrapper, children: [
|
|
105
|
+
/* @__PURE__ */ o("header", { "data-scroll-id": "header", className: l.header, children: [
|
|
106
|
+
/* @__PURE__ */ t(m, { as: "div", defaultVariant: "labelSm", emphasis: !0, className: l.label, children: E }),
|
|
107
|
+
/* @__PURE__ */ t(
|
|
108
|
+
W,
|
|
109
|
+
{
|
|
110
|
+
as: "div",
|
|
111
|
+
defaultVariant: "displayMd",
|
|
112
|
+
mobileVariant: "headingXl",
|
|
113
|
+
colorScheme: u,
|
|
114
|
+
className: l.title,
|
|
115
|
+
title: w
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] }),
|
|
119
|
+
/* @__PURE__ */ t("div", { "data-scroll-id": "sections", className: l.sections, children: T.map((a, s) => /* @__PURE__ */ o(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
id: `section-${s + 1}`,
|
|
123
|
+
"data-scroll-id": "section",
|
|
124
|
+
className: l.section,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ o("div", { "data-scroll-id": "heading", className: l.heading, children: [
|
|
127
|
+
/* @__PURE__ */ t("div", { "data-scroll-id": "section-title", className: l.sectionTitleWrapper, children: /* @__PURE__ */ t(m, { as: "h3", defaultVariant: "headingSm", className: l.sectionTitle, children: a.title }) }),
|
|
128
|
+
/* @__PURE__ */ t("div", { "data-scroll-id": "section-index", className: l.sectionIndexWrapper, children: /* @__PURE__ */ o(m, { as: "p", defaultVariant: "headingSm", className: l.sectionIndex, children: [
|
|
129
|
+
"(",
|
|
130
|
+
String(s + 1).padStart(2, "0"),
|
|
131
|
+
")"
|
|
132
|
+
] }) })
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ o("div", { "data-scroll-id": "content", className: l.content, children: [
|
|
135
|
+
/* @__PURE__ */ t("div", { "data-scroll-id": "protocol", className: l.protocolWrapper, children: /* @__PURE__ */ t(
|
|
136
|
+
m,
|
|
137
|
+
{
|
|
138
|
+
as: "div",
|
|
139
|
+
defaultVariant: "bodyMd",
|
|
140
|
+
mobileVariant: "bodySm",
|
|
141
|
+
className: l.protocol,
|
|
142
|
+
children: a.protocol
|
|
143
|
+
}
|
|
144
|
+
) }),
|
|
145
|
+
/* @__PURE__ */ t("div", { "data-scroll-id": "image-circle", className: l.imageCircle, children: /* @__PURE__ */ t("img", { src: a.image, alt: a.title }) })
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ t("div", { className: l.leftBorder }),
|
|
148
|
+
/* @__PURE__ */ t("div", { className: l.rightBorder })
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
a.title
|
|
152
|
+
)) })
|
|
153
|
+
] }) });
|
|
154
|
+
};
|
|
155
|
+
export {
|
|
156
|
+
O as ExpandingDetails
|
|
157
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="expandingDetails-module__root___5WLQh",t="expandingDetails-module__dark___BhUf9",o="expandingDetails-module__expandingDetailsWrapper___sqLS5",n="expandingDetails-module__header___Rp1BD",r="expandingDetails-module__title___5WsER",i="expandingDetails-module__label___w2Sjs",_="expandingDetails-module__sections___xpvak",a="expandingDetails-module__section___zgXvg",l="expandingDetails-module__leftBorder___lZI-L",s="expandingDetails-module__rightBorder___xfwvL",d="expandingDetails-module__topLeftCorner___sT8-Q",p="expandingDetails-module__topRightCorner___q9HbO",c="expandingDetails-module__bottomLeftCorner___E3e0F",g="expandingDetails-module__bottomRightCorner___VQJBu",x="expandingDetails-module__heading___htlX-",m="expandingDetails-module__sectionTitleWrapper___WxS9B",u="expandingDetails-module__sectionIndexWrapper___l-3VD",D="expandingDetails-module__content___1uGIY",h="expandingDetails-module__protocolWrapper___nq7ij",C="expandingDetails-module__imageCircle___HZJB-",W="expandingDetails-module__sectionIndex___spgOf",f={root:e,dark:t,expandingDetailsWrapper:o,header:n,title:r,label:i,sections:_,section:a,leftBorder:l,rightBorder:s,topLeftCorner:d,topRightCorner:p,bottomLeftCorner:c,bottomRightCorner:g,heading:x,sectionTitleWrapper:m,sectionIndexWrapper:u,content:D,protocolWrapper:h,imageCircle:C,sectionIndex:W};exports.bottomLeftCorner=c;exports.bottomRightCorner=g;exports.content=D;exports.dark=t;exports.default=f;exports.expandingDetailsWrapper=o;exports.header=n;exports.heading=x;exports.imageCircle=C;exports.label=i;exports.leftBorder=l;exports.protocolWrapper=h;exports.rightBorder=s;exports.root=e;exports.section=a;exports.sectionIndex=W;exports.sectionIndexWrapper=u;exports.sectionTitleWrapper=m;exports.sections=_;exports.title=r;exports.topLeftCorner=d;exports.topRightCorner=p;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const e = "expandingDetails-module__root___5WLQh", t = "expandingDetails-module__dark___BhUf9", n = "expandingDetails-module__expandingDetailsWrapper___sqLS5", o = "expandingDetails-module__header___Rp1BD", _ = "expandingDetails-module__title___5WsER", i = "expandingDetails-module__label___w2Sjs", r = "expandingDetails-module__sections___xpvak", a = "expandingDetails-module__section___zgXvg", s = "expandingDetails-module__leftBorder___lZI-L", l = "expandingDetails-module__rightBorder___xfwvL", d = "expandingDetails-module__topLeftCorner___sT8-Q", p = "expandingDetails-module__topRightCorner___q9HbO", c = "expandingDetails-module__bottomLeftCorner___E3e0F", g = "expandingDetails-module__bottomRightCorner___VQJBu", x = "expandingDetails-module__heading___htlX-", m = "expandingDetails-module__sectionTitleWrapper___WxS9B", D = "expandingDetails-module__sectionIndexWrapper___l-3VD", u = "expandingDetails-module__content___1uGIY", h = "expandingDetails-module__protocolWrapper___nq7ij", C = "expandingDetails-module__imageCircle___HZJB-", W = "expandingDetails-module__sectionIndex___spgOf", f = {
|
|
2
|
+
root: e,
|
|
3
|
+
dark: t,
|
|
4
|
+
expandingDetailsWrapper: n,
|
|
5
|
+
header: o,
|
|
6
|
+
title: _,
|
|
7
|
+
label: i,
|
|
8
|
+
sections: r,
|
|
9
|
+
section: a,
|
|
10
|
+
leftBorder: s,
|
|
11
|
+
rightBorder: l,
|
|
12
|
+
topLeftCorner: d,
|
|
13
|
+
topRightCorner: p,
|
|
14
|
+
bottomLeftCorner: c,
|
|
15
|
+
bottomRightCorner: g,
|
|
16
|
+
heading: x,
|
|
17
|
+
sectionTitleWrapper: m,
|
|
18
|
+
sectionIndexWrapper: D,
|
|
19
|
+
content: u,
|
|
20
|
+
protocolWrapper: h,
|
|
21
|
+
imageCircle: C,
|
|
22
|
+
sectionIndex: W
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
c as bottomLeftCorner,
|
|
26
|
+
g as bottomRightCorner,
|
|
27
|
+
u as content,
|
|
28
|
+
t as dark,
|
|
29
|
+
f as default,
|
|
30
|
+
n as expandingDetailsWrapper,
|
|
31
|
+
o as header,
|
|
32
|
+
x as heading,
|
|
33
|
+
C as imageCircle,
|
|
34
|
+
i as label,
|
|
35
|
+
s as leftBorder,
|
|
36
|
+
h as protocolWrapper,
|
|
37
|
+
l as rightBorder,
|
|
38
|
+
e as root,
|
|
39
|
+
a as section,
|
|
40
|
+
W as sectionIndex,
|
|
41
|
+
D as sectionIndexWrapper,
|
|
42
|
+
m as sectionTitleWrapper,
|
|
43
|
+
r as sections,
|
|
44
|
+
_ as title,
|
|
45
|
+
d as topLeftCorner,
|
|
46
|
+
p as topRightCorner
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ExpandingDetails } from './ExpandingDetails';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TColorScheme } from '../../types/common';
|
|
3
|
+
|
|
4
|
+
export type ExpandingDetailsProps = {
|
|
5
|
+
colorScheme: TColorScheme;
|
|
6
|
+
label: string;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
sections: {
|
|
9
|
+
title: string;
|
|
10
|
+
protocol: React.ReactNode;
|
|
11
|
+
image: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */;/* empty css */;/* empty css */const x=require("../../node_modules/swiper/modules/navigation.cjs.js"),c=require("../../node_modules/swiper/swiper-react.cjs.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */;/* empty css */;/* empty css */const x=require("../../node_modules/swiper/modules/navigation.cjs.js"),c=require("../../node_modules/swiper/swiper-react.cjs.js"),g=require("../../components/Benefit/Benefit.cjs.js"),f=require("../../components/Icon/constants.cjs.js"),_=require("../../components/Label/Label.cjs.js"),a=require("../../components/ProgressButton/ProgressButton.cjs.js"),q=require("../../components/TextButton/TextButton.cjs.js"),B=require("../../utils/useSwiper/useSwiper.cjs.js"),s=require("./followTheScience.module.css.cjs.js"),j=[x.default];function v({labelText:d,benefits:u}){const{setIsEnd:h,isEnd:n,isBeginning:t,hideNav:o,handleSlideChange:p,handlePrevClick:r,handleNextClick:l,onSwiperInit:S,handleSwiperResize:m}=B.useSwiper();return e.jsxs("section",{className:s.default.container,children:[e.jsxs("div",{className:s.default.heading,children:[e.jsx(_.Label,{color:"white",size:"lg",children:d}),!o&&e.jsx("div",{className:s.default.progressButtons,"data-device":"desktop",children:e.jsx(a.ProgressButton,{left:{onClick:r,disabled:t},right:{disabled:n,onClick:l}})})]}),e.jsx("div",{className:s.default.content,children:e.jsx(c.Swiper,{onSwiper:S,onResize:m,onSlideChange:p,onReachEnd:()=>h(!0),modules:j,spaceBetween:0,slidesPerView:"auto",className:s.default.swiper,children:u.map((i,w)=>e.jsx(c.SwiperSlide,{className:s.default.swiperSlide,children:e.jsx(g.Benefit,{title:i.title,description:i.description,button:e.jsx(q.TextButton,{as:"a",size:"sm",color:"white",suffixIcon:f.EIconName.ARROW_FORWARD,href:i.link,children:i.buttonText||"READ THE STUDY"})})},w))})}),!o&&e.jsx("div",{className:s.default.progressButtons,"data-device":"mobile",children:e.jsx(a.ProgressButton,{left:{onClick:r,disabled:t},right:{onClick:l,disabled:n}})})]})}exports.FollowTheScience=v;
|
|
@@ -13,27 +13,26 @@ import { TextButton as C } from "../../components/TextButton/TextButton.es.js";
|
|
|
13
13
|
import { useSwiper as E } from "../../utils/useSwiper/useSwiper.es.js";
|
|
14
14
|
import i from "./followTheScience.module.css.es.js";
|
|
15
15
|
const x = [w];
|
|
16
|
-
function
|
|
16
|
+
function U({ labelText: c, benefits: m }) {
|
|
17
17
|
const {
|
|
18
|
-
activeIndex: B,
|
|
19
18
|
setIsEnd: p,
|
|
20
19
|
isEnd: r,
|
|
21
20
|
isBeginning: t,
|
|
22
|
-
hideNav:
|
|
21
|
+
hideNav: s,
|
|
23
22
|
handleSlideChange: h,
|
|
24
|
-
handlePrevClick:
|
|
23
|
+
handlePrevClick: n,
|
|
25
24
|
handleNextClick: l,
|
|
26
25
|
onSwiperInit: f,
|
|
27
|
-
handleSwiperResize:
|
|
26
|
+
handleSwiperResize: u
|
|
28
27
|
} = E();
|
|
29
28
|
return /* @__PURE__ */ d("section", { className: i.container, children: [
|
|
30
29
|
/* @__PURE__ */ d("div", { className: i.heading, children: [
|
|
31
30
|
/* @__PURE__ */ e(k, { color: "white", size: "lg", children: c }),
|
|
32
|
-
!
|
|
31
|
+
!s && /* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
33
32
|
a,
|
|
34
33
|
{
|
|
35
34
|
left: {
|
|
36
|
-
onClick:
|
|
35
|
+
onClick: n,
|
|
37
36
|
disabled: t
|
|
38
37
|
},
|
|
39
38
|
right: {
|
|
@@ -47,14 +46,14 @@ function _({ labelText: c, benefits: m }) {
|
|
|
47
46
|
g,
|
|
48
47
|
{
|
|
49
48
|
onSwiper: f,
|
|
50
|
-
onResize:
|
|
49
|
+
onResize: u,
|
|
51
50
|
onSlideChange: h,
|
|
52
51
|
onReachEnd: () => p(!0),
|
|
53
52
|
modules: x,
|
|
54
53
|
spaceBetween: 0,
|
|
55
54
|
slidesPerView: "auto",
|
|
56
55
|
className: i.swiper,
|
|
57
|
-
children: m.map((o,
|
|
56
|
+
children: m.map((o, S) => /* @__PURE__ */ e(N, { className: i.swiperSlide, children: /* @__PURE__ */ e(
|
|
58
57
|
v,
|
|
59
58
|
{
|
|
60
59
|
title: o.title,
|
|
@@ -67,18 +66,18 @@ function _({ labelText: c, benefits: m }) {
|
|
|
67
66
|
color: "white",
|
|
68
67
|
suffixIcon: R.ARROW_FORWARD,
|
|
69
68
|
href: o.link,
|
|
70
|
-
children: "READ THE STUDY"
|
|
69
|
+
children: o.buttonText || "READ THE STUDY"
|
|
71
70
|
}
|
|
72
71
|
)
|
|
73
72
|
}
|
|
74
|
-
) },
|
|
73
|
+
) }, S))
|
|
75
74
|
}
|
|
76
75
|
) }),
|
|
77
|
-
!
|
|
76
|
+
!s && /* @__PURE__ */ e("div", { className: i.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
78
77
|
a,
|
|
79
78
|
{
|
|
80
79
|
left: {
|
|
81
|
-
onClick:
|
|
80
|
+
onClick: n,
|
|
82
81
|
disabled: t
|
|
83
82
|
},
|
|
84
83
|
right: {
|
|
@@ -90,5 +89,5 @@ function _({ labelText: c, benefits: m }) {
|
|
|
90
89
|
] });
|
|
91
90
|
}
|
|
92
91
|
export {
|
|
93
|
-
|
|
92
|
+
U as FollowTheScience
|
|
94
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../../../components/Typography/Typography.cjs.js"),a=require("../../../../utils/cn/cn.cjs.js"),r=require("./ingredient.module.css.cjs.js"),l=({title:i,description:t,isOpen:n,index:o,onClick:c})=>e.jsxs("div",{onClick:()=>c(o??0),className:a.cn(r.default.root,{[r.default.rootOpened]:n}),children:[e.jsx("div",{className:r.default.header,children:e.jsx(d.Typography,{defaultVariant:"headingXs",color:`color-text-primary${n?"":"-disabled"}`,children:i})}),!!t&&e.jsx("div",{className:a.cn(r.default.description,{[r.default.descriptionShow]:n}),children:e.jsx("div",{className:r.default.descriptionInner,children:e.jsx(d.Typography,{as:"p",defaultVariant:"bodySm",children:t})})})]});exports.Ingredient=l;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as d } from "../../../../components/Typography/Typography.es.js";
|
|
3
|
+
import { cn as a } from "../../../../utils/cn/cn.es.js";
|
|
4
4
|
import r from "./ingredient.module.css.es.js";
|
|
5
|
-
const f = ({ title:
|
|
6
|
-
/* @__PURE__ */ e("div", { className: r.header, children: /* @__PURE__ */ e(
|
|
7
|
-
/* @__PURE__ */ e("div", { className:
|
|
5
|
+
const f = ({ title: t, description: i, isOpen: o, index: n, onClick: c }) => /* @__PURE__ */ l("div", { onClick: () => c(n ?? 0), className: a(r.root, { [r.rootOpened]: o }), children: [
|
|
6
|
+
/* @__PURE__ */ e("div", { className: r.header, children: /* @__PURE__ */ e(d, { defaultVariant: "headingXs", color: `color-text-primary${o ? "" : "-disabled"}`, children: t }) }),
|
|
7
|
+
!!i && /* @__PURE__ */ e("div", { className: a(r.description, { [r.descriptionShow]: o }), children: /* @__PURE__ */ e("div", { className: r.descriptionInner, children: /* @__PURE__ */ e(d, { as: "p", defaultVariant: "bodySm", children: i }) }) })
|
|
8
8
|
] });
|
|
9
9
|
export {
|
|
10
10
|
f as Ingredient
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),j=require("../../node_modules/swiper/modules/navigation.cjs.js"),c=require("../../node_modules/swiper/swiper-react.cjs.js"),x=require("../../utils/useSwiper/useSwiper.cjs.js"),R=require("../../utils/cn/cn.cjs.js"),q=require("../../components/Typography/Typography.cjs.js"),u=require("../../components/ProgressButton/ProgressButton.cjs.js"),C=require("./components/ReadingCard/ReadingCard.cjs.js");;/* empty css */;/* empty css */;/* empty css */const s=require("./researchEssentialReadings.module.css.cjs.js"),v=[j.default],N=({readings:r})=>{const{swiper:i,isEnd:a,isBeginning:n,setIsEnd:h,hideNav:p,handleSlideChange:g,handlePrevClick:l,handleNextClick:t,onSwiperInit:f,handleSwiperResize:m,handleSlideTo:d}=x.useSwiper();return o.useEffect(()=>{i==null||i.setProgress(0,300)},[i]),o.useEffect(()=>{r.length&&d(0)},[r,d]),e.jsx("div",{className:s.default.root,children:e.jsxs("div",{className:s.default.container,children:[e.jsxs("div",{className:s.default.topRow,children:[e.jsx("div",{className:s.default.headerWrapper,children:e.jsx("div",{className:s.default.header,children:e.jsx(q.Typography,{defaultVariant:"displayXs",mobileVariant:"headingLg",children:"Essential Readings"})})}),e.jsx("div",{className:R.cn(s.default.swiperControlsDesktop,{[s.default.swiperControlsHidden]:p}),children:e.jsx(u.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:a,onClick:t}})})]}),e.jsx("div",{className:s.default.carouselArea,children:e.jsx(c.Swiper,{onSwiper:f,onResize:m,onSlideChange:g,onReachEnd:()=>h(!0),modules:v,spaceBetween:0,slidesPerView:"auto",className:s.default.swiper,children:r.map((S,w)=>e.jsx(c.SwiperSlide,{className:s.default.swiperSlide,children:e.jsx(C.ReadingCard,{...S})},w))})}),e.jsx("div",{className:s.default.swiperControlsMobile,children:e.jsx(u.ProgressButton,{left:{disabled:n,onClick:l},right:{disabled:a,onClick:t}})})]})})};exports.ResearchEssentialReadings=N;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
3
|
import { useEffect as c } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { Swiper as
|
|
4
|
+
import C from "../../node_modules/swiper/modules/navigation.es.js";
|
|
5
|
+
import { Swiper as v, SwiperSlide as u } from "../../node_modules/swiper/swiper-react.es.js";
|
|
5
6
|
import { useSwiper as R } from "../../utils/useSwiper/useSwiper.es.js";
|
|
6
7
|
import { cn as E } from "../../utils/cn/cn.es.js";
|
|
7
8
|
import { Typography as k } from "../../components/Typography/Typography.es.js";
|
|
@@ -11,16 +12,15 @@ import { ReadingCard as b } from "./components/ReadingCard/ReadingCard.es.js";
|
|
|
11
12
|
/* empty css */
|
|
12
13
|
/* empty css */
|
|
13
14
|
import i from "./researchEssentialReadings.module.css.es.js";
|
|
14
|
-
const
|
|
15
|
+
const P = [C], H = ({ readings: s }) => {
|
|
15
16
|
const {
|
|
16
17
|
swiper: r,
|
|
17
|
-
activeIndex: P,
|
|
18
18
|
isEnd: o,
|
|
19
|
-
isBeginning:
|
|
19
|
+
isBeginning: l,
|
|
20
20
|
setIsEnd: p,
|
|
21
21
|
hideNav: h,
|
|
22
22
|
handleSlideChange: f,
|
|
23
|
-
handlePrevClick:
|
|
23
|
+
handlePrevClick: a,
|
|
24
24
|
handleNextClick: n,
|
|
25
25
|
onSwiperInit: g,
|
|
26
26
|
handleSwiperResize: w,
|
|
@@ -43,8 +43,8 @@ const x = [v], O = ({ readings: s }) => {
|
|
|
43
43
|
m,
|
|
44
44
|
{
|
|
45
45
|
left: {
|
|
46
|
-
disabled:
|
|
47
|
-
onClick:
|
|
46
|
+
disabled: l,
|
|
47
|
+
onClick: a
|
|
48
48
|
},
|
|
49
49
|
right: {
|
|
50
50
|
disabled: o,
|
|
@@ -56,13 +56,13 @@ const x = [v], O = ({ readings: s }) => {
|
|
|
56
56
|
)
|
|
57
57
|
] }),
|
|
58
58
|
/* @__PURE__ */ e("div", { className: i.carouselArea, children: /* @__PURE__ */ e(
|
|
59
|
-
|
|
59
|
+
v,
|
|
60
60
|
{
|
|
61
61
|
onSwiper: g,
|
|
62
62
|
onResize: w,
|
|
63
63
|
onSlideChange: f,
|
|
64
64
|
onReachEnd: () => p(!0),
|
|
65
|
-
modules:
|
|
65
|
+
modules: P,
|
|
66
66
|
spaceBetween: 0,
|
|
67
67
|
slidesPerView: "auto",
|
|
68
68
|
className: i.swiper,
|
|
@@ -73,8 +73,8 @@ const x = [v], O = ({ readings: s }) => {
|
|
|
73
73
|
m,
|
|
74
74
|
{
|
|
75
75
|
left: {
|
|
76
|
-
disabled:
|
|
77
|
-
onClick:
|
|
76
|
+
disabled: l,
|
|
77
|
+
onClick: a
|
|
78
78
|
},
|
|
79
79
|
right: {
|
|
80
80
|
disabled: o,
|
|
@@ -85,5 +85,5 @@ const x = [v], O = ({ readings: s }) => {
|
|
|
85
85
|
] }) });
|
|
86
86
|
};
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
H as ResearchEssentialReadings
|
|
89
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/Typography/Typography.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("../../components/Typography/Typography.cjs.js"),l=require("./components/HighlightedArticle/HighlightedArticle.cjs.js"),c=require("./components/FeaturedArticle/FeaturedArticle.cjs.js"),r=require("./researchFeatured.module.css.cjs.js"),n=({highlightedArticle:t,articles:a})=>e.jsx("div",{className:r.default.root,children:e.jsxs("div",{className:r.default.container,children:[e.jsx("div",{className:r.default.divider}),e.jsx(l.HighlightedArticle,{...t}),a.length>0&&e.jsxs("div",{className:r.default.featuredArticles,children:[e.jsx(d.Typography,{defaultVariant:"headingLg",mobileVariant:"headingSm",children:"Featured"}),e.jsx("div",{className:r.default.articlesContainer,children:a.map((i,s)=>e.jsx(c.FeaturedArticle,{...i},s))})]})]})});exports.ResearchFeatured=n;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { HighlightedArticle as
|
|
4
|
-
import { FeaturedArticle as
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
3
|
+
import { HighlightedArticle as o } from "./components/HighlightedArticle/HighlightedArticle.es.js";
|
|
4
|
+
import { FeaturedArticle as s } from "./components/FeaturedArticle/FeaturedArticle.es.js";
|
|
5
5
|
import r from "./researchFeatured.module.css.es.js";
|
|
6
|
-
const g = ({ highlightedArticle:
|
|
6
|
+
const g = ({ highlightedArticle: t, articles: i }) => /* @__PURE__ */ e("div", { className: r.root, children: /* @__PURE__ */ a("div", { className: r.container, children: [
|
|
7
7
|
/* @__PURE__ */ e("div", { className: r.divider }),
|
|
8
|
-
/* @__PURE__ */ e(
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ e(
|
|
11
|
-
/* @__PURE__ */ e("div", { className: r.articlesContainer, children:
|
|
8
|
+
/* @__PURE__ */ e(o, { ...t }),
|
|
9
|
+
i.length > 0 && /* @__PURE__ */ a("div", { className: r.featuredArticles, children: [
|
|
10
|
+
/* @__PURE__ */ e(m, { defaultVariant: "headingLg", mobileVariant: "headingSm", children: "Featured" }),
|
|
11
|
+
/* @__PURE__ */ e("div", { className: r.articlesContainer, children: i.map((d, l) => /* @__PURE__ */ e(s, { ...d }, l)) })
|
|
12
12
|
] })
|
|
13
13
|
] }) });
|
|
14
14
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../components/Typography/Typography.cjs.js");require("../../components/Tabs/Tabs.cjs.js");const l=require("../../components/Tabs/TabsWithFade.cjs.js"),r=require("./researchFilters.module.css.cjs.js"),c=({tabs:s,activeTab:a,onTabChange:i})=>e.jsx("section",{className:r.default.root,children:e.jsxs("div",{className:r.default.container,children:[e.jsx(t.Typography,{defaultVariant:"displayMd",mobileVariant:"displayXs",children:"Research"}),e.jsx("div",{className:r.default.filters,children:e.jsx("div",{className:r.default.tabsWrapper,children:e.jsx(l.TabsWithFade,{activeTab:a,tabs:s,size:"md",activeLinePosition:"bottom",onTabClick:i})})})]})});exports.ResearchFilters=c;
|
|
@@ -2,5 +2,7 @@ import { TTab } from '../../components/Tabs';
|
|
|
2
2
|
|
|
3
3
|
export type TResearchFilters = {
|
|
4
4
|
tabs: Array<TTab<string>>;
|
|
5
|
+
activeTab: string;
|
|
6
|
+
onTabChange: (value: string) => void;
|
|
5
7
|
};
|
|
6
|
-
export declare const ResearchFilters: ({ tabs }: TResearchFilters) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ResearchFilters: ({ tabs, activeTab, onTabChange }: TResearchFilters) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { Typography as m } from "../../components/Typography/Typography.es.js";
|
|
1
|
+
import { jsx as i, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as o } from "../../components/Typography/Typography.es.js";
|
|
4
3
|
import "../../components/Tabs/Tabs.es.js";
|
|
5
|
-
import { TabsWithFade as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onTabClick: s
|
|
21
|
-
}
|
|
22
|
-
) }) })
|
|
23
|
-
] }) });
|
|
24
|
-
};
|
|
4
|
+
import { TabsWithFade as l } from "../../components/Tabs/TabsWithFade.es.js";
|
|
5
|
+
import r from "./researchFilters.module.css.es.js";
|
|
6
|
+
const h = ({ tabs: e, activeTab: s, onTabChange: a }) => /* @__PURE__ */ i("section", { className: r.root, children: /* @__PURE__ */ t("div", { className: r.container, children: [
|
|
7
|
+
/* @__PURE__ */ i(o, { defaultVariant: "displayMd", mobileVariant: "displayXs", children: "Research" }),
|
|
8
|
+
/* @__PURE__ */ i("div", { className: r.filters, children: /* @__PURE__ */ i("div", { className: r.tabsWrapper, children: /* @__PURE__ */ i(
|
|
9
|
+
l,
|
|
10
|
+
{
|
|
11
|
+
activeTab: s,
|
|
12
|
+
tabs: e,
|
|
13
|
+
size: "md",
|
|
14
|
+
activeLinePosition: "bottom",
|
|
15
|
+
onTabClick: a
|
|
16
|
+
}
|
|
17
|
+
) }) })
|
|
18
|
+
] }) });
|
|
25
19
|
export {
|
|
26
|
-
|
|
20
|
+
h as ResearchFilters
|
|
27
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/Button/Button.cjs.js");require("../../components/Icon/Icon.cjs.js");const d=require("../../components/Icon/constants.cjs.js"),u=require("./components/StudyCard/StudyCard.cjs.js"),t=require("./researchStudies.module.css.cjs.js"),l=({studies:r,hasMoreButton:s,onClickShowMore:n})=>e.jsx("div",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(a.Typography,{defaultVariant:"displayXs",mobileVariant:"headingLg",children:"Studies"}),e.jsx("div",{className:t.default.studies,children:r.map((i,o)=>e.jsx(u.StudyCard,{...i},o))}),s&&e.jsx("div",{className:t.default.buttonContainer,children:e.jsx(c.Button,{size:"lg",variant:"muted",prefixIcon:d.EIconName.PLUS,onClick:n,children:"show more"})})]})});exports.ResearchStudies=l;
|