@zenpatient-org/healthspan-marketing-ui 0.1.34 → 0.1.35

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 (185) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs.js +1 -0
  2. package/dist/_virtual/_commonjsHelpers.es.js +6 -0
  3. package/dist/_virtual/browser.cjs.js +1 -0
  4. package/dist/_virtual/browser.es.js +4 -0
  5. package/dist/_virtual/debug.cjs.js +1 -0
  6. package/dist/_virtual/debug.es.js +4 -0
  7. package/dist/_virtual/index.cjs.js +1 -0
  8. package/dist/_virtual/index.cjs2.js +1 -0
  9. package/dist/_virtual/index.cjs3.js +1 -0
  10. package/dist/_virtual/index.cjs4.js +1 -0
  11. package/dist/_virtual/index.es.js +7 -0
  12. package/dist/_virtual/index.es2.js +7 -0
  13. package/dist/_virtual/index.es3.js +4 -0
  14. package/dist/_virtual/index.es4.js +4 -0
  15. package/dist/_virtual/react-is.development.cjs.js +1 -0
  16. package/dist/_virtual/react-is.development.es.js +4 -0
  17. package/dist/_virtual/react-is.production.min.cjs.js +1 -0
  18. package/dist/_virtual/react-is.production.min.es.js +4 -0
  19. package/dist/_virtual/to-querystring.min.cjs.js +1 -0
  20. package/dist/_virtual/to-querystring.min.cjs2.js +1 -0
  21. package/dist/_virtual/to-querystring.min.es.js +7 -0
  22. package/dist/_virtual/to-querystring.min.es2.js +4 -0
  23. package/dist/components/Accordion/components/AccordionItem/index.d.ts +1 -1
  24. package/dist/components/CircleHighlights/CircleHighlights.cjs.js +1 -0
  25. package/dist/components/CircleHighlights/CircleHighlights.d.ts +10 -0
  26. package/dist/components/CircleHighlights/CircleHighlights.es.js +20 -0
  27. package/dist/components/CircleHighlights/circleHighlights.module.css.cjs.js +1 -0
  28. package/dist/components/CircleHighlights/circleHighlights.module.css.es.js +19 -0
  29. package/dist/components/CircleHighlights/index.d.ts +1 -0
  30. package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -1
  31. package/dist/components/StudyGridCard/StudyGridCard.es.js +24 -30
  32. package/dist/components/TextInput/TextInput.cjs.js +1 -0
  33. package/dist/components/TextInput/TextInput.d.ts +20 -0
  34. package/dist/components/TextInput/TextInput.es.js +86 -0
  35. package/dist/components/TextInput/index.d.ts +1 -0
  36. package/dist/components/TextInput/textInput.module.css.cjs.js +1 -0
  37. package/dist/components/TextInput/textInput.module.css.es.js +32 -0
  38. package/dist/healthspan-marketing-ui.css +1 -1
  39. package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.cjs.js +1 -0
  40. package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.d.ts +3 -0
  41. package/dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.es.js +89 -0
  42. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.cjs.js +1 -0
  43. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.d.ts +3 -0
  44. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/ReadingCard.es.js +26 -0
  45. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/index.d.ts +2 -0
  46. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/readingCard.module.css.cjs.js +1 -0
  47. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/readingCard.module.css.es.js +17 -0
  48. package/dist/modules/ResearchEssentialReadings/components/ReadingCard/types.d.ts +10 -0
  49. package/dist/modules/ResearchEssentialReadings/components/index.d.ts +2 -0
  50. package/dist/modules/ResearchEssentialReadings/index.d.ts +1 -0
  51. package/dist/modules/ResearchEssentialReadings/researchEssentialReadings.module.css.cjs.js +1 -0
  52. package/dist/modules/ResearchEssentialReadings/researchEssentialReadings.module.css.es.js +27 -0
  53. package/dist/modules/ResearchEssentialReadings/types.d.ts +5 -0
  54. package/dist/modules/ResearchFeatured/ResearchFeatured.cjs.js +1 -0
  55. package/dist/modules/ResearchFeatured/ResearchFeatured.d.ts +3 -0
  56. package/dist/modules/ResearchFeatured/ResearchFeatured.es.js +16 -0
  57. package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.cjs.js +1 -0
  58. package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.d.ts +3 -0
  59. package/dist/modules/ResearchFeatured/components/FeaturedArticle/FeaturedArticle.es.js +37 -0
  60. package/dist/modules/ResearchFeatured/components/FeaturedArticle/featuredArticle.module.css.cjs.js +1 -0
  61. package/dist/modules/ResearchFeatured/components/FeaturedArticle/featuredArticle.module.css.es.js +19 -0
  62. package/dist/modules/ResearchFeatured/components/FeaturedArticle/index.d.ts +2 -0
  63. package/dist/modules/ResearchFeatured/components/FeaturedArticle/types.d.ts +7 -0
  64. package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.cjs.js +1 -0
  65. package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.d.ts +3 -0
  66. package/dist/modules/ResearchFeatured/components/HighlightedArticle/HighlightedArticle.es.js +15 -0
  67. package/dist/modules/ResearchFeatured/components/HighlightedArticle/highlightedArticle.module.css.cjs.js +1 -0
  68. package/dist/modules/ResearchFeatured/components/HighlightedArticle/highlightedArticle.module.css.es.js +15 -0
  69. package/dist/modules/ResearchFeatured/components/HighlightedArticle/index.d.ts +1 -0
  70. package/dist/modules/ResearchFeatured/components/HighlightedArticle/types.d.ts +9 -0
  71. package/dist/modules/ResearchFeatured/components/index.d.ts +4 -0
  72. package/dist/modules/ResearchFeatured/index.d.ts +1 -0
  73. package/dist/modules/ResearchFeatured/researchFeatured.module.css.cjs.js +1 -0
  74. package/dist/modules/ResearchFeatured/researchFeatured.module.css.es.js +15 -0
  75. package/dist/modules/ResearchFeatured/types.d.ts +6 -0
  76. package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -0
  77. package/dist/modules/ResearchStudies/ResearchStudies.d.ts +3 -0
  78. package/dist/modules/ResearchStudies/ResearchStudies.es.js +16 -0
  79. package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.cjs.js +1 -0
  80. package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.d.ts +3 -0
  81. package/dist/modules/ResearchStudies/components/StudyCard/StudyCard.es.js +30 -0
  82. package/dist/modules/ResearchStudies/components/StudyCard/index.d.ts +2 -0
  83. package/dist/modules/ResearchStudies/components/StudyCard/studyCard.module.css.cjs.js +1 -0
  84. package/dist/modules/ResearchStudies/components/StudyCard/studyCard.module.css.es.js +21 -0
  85. package/dist/modules/ResearchStudies/components/StudyCard/types.d.ts +10 -0
  86. package/dist/modules/ResearchStudies/components/index.d.ts +2 -0
  87. package/dist/modules/ResearchStudies/index.d.ts +1 -0
  88. package/dist/modules/ResearchStudies/researchStudies.module.css.cjs.js +1 -0
  89. package/dist/modules/ResearchStudies/researchStudies.module.css.es.js +13 -0
  90. package/dist/modules/ResearchStudies/types.d.ts +5 -0
  91. package/dist/node_modules/jsonp/index.cjs.js +1 -0
  92. package/dist/node_modules/jsonp/index.es.js +31 -0
  93. package/dist/node_modules/jsonp/node_modules/debug/src/browser.cjs.js +1 -0
  94. package/dist/node_modules/jsonp/node_modules/debug/src/browser.es.js +67 -0
  95. package/dist/node_modules/jsonp/node_modules/debug/src/debug.cjs.js +1 -0
  96. package/dist/node_modules/jsonp/node_modules/debug/src/debug.es.js +64 -0
  97. package/dist/node_modules/jsonp/node_modules/ms/index.cjs.js +1 -0
  98. package/dist/node_modules/jsonp/node_modules/ms/index.es.js +79 -0
  99. package/dist/node_modules/object-assign/index.cjs.js +5 -0
  100. package/dist/node_modules/object-assign/index.es.js +54 -0
  101. package/dist/node_modules/prop-types/checkPropTypes.cjs.js +1 -0
  102. package/dist/node_modules/prop-types/checkPropTypes.es.js +54 -0
  103. package/dist/node_modules/prop-types/factoryWithThrowingShims.cjs.js +1 -0
  104. package/dist/node_modules/prop-types/factoryWithThrowingShims.es.js +52 -0
  105. package/dist/node_modules/prop-types/factoryWithTypeCheckers.cjs.js +2 -0
  106. package/dist/node_modules/prop-types/factoryWithTypeCheckers.es.js +329 -0
  107. package/dist/node_modules/prop-types/index.cjs.js +1 -0
  108. package/dist/node_modules/prop-types/index.es.js +17 -0
  109. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.cjs.js +1 -0
  110. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.es.js +10 -0
  111. package/dist/node_modules/prop-types/lib/has.cjs.js +1 -0
  112. package/dist/node_modules/prop-types/lib/has.es.js +7 -0
  113. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs.js +8 -0
  114. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.es.js +95 -0
  115. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.cjs.js +8 -0
  116. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.es.js +78 -0
  117. package/dist/node_modules/prop-types/node_modules/react-is/index.cjs.js +1 -0
  118. package/dist/node_modules/prop-types/node_modules/react-is/index.es.js +10 -0
  119. package/dist/node_modules/react-mailchimp-subscribe/es/SimpleForm.cjs.js +1 -0
  120. package/dist/node_modules/react-mailchimp-subscribe/es/SimpleForm.es.js +40 -0
  121. package/dist/node_modules/react-mailchimp-subscribe/es/index.cjs.js +1 -0
  122. package/dist/node_modules/react-mailchimp-subscribe/es/index.es.js +81 -0
  123. package/dist/node_modules/to-querystring/lib/to-querystring.min.cjs.js +1 -0
  124. package/dist/node_modules/to-querystring/lib/to-querystring.min.es.js +54 -0
  125. package/dist/pageComponents/Footer/Footer.cjs.js +1 -0
  126. package/dist/pageComponents/Footer/Footer.d.ts +17 -0
  127. package/dist/pageComponents/Footer/Footer.es.js +63 -0
  128. package/dist/pageComponents/Footer/assets/CompanyName.svg.cjs.js +1 -0
  129. package/dist/pageComponents/Footer/assets/CompanyName.svg.es.js +5 -0
  130. package/dist/pageComponents/Footer/assets/logo.png.cjs.js +1 -0
  131. package/dist/pageComponents/Footer/assets/logo.png.es.js +4 -0
  132. package/dist/pageComponents/Footer/components/AccordionFooter/AccordionFooter.cjs.js +1 -0
  133. package/dist/pageComponents/Footer/components/AccordionFooter/AccordionFooter.d.ts +13 -0
  134. package/dist/pageComponents/Footer/components/AccordionFooter/AccordionFooter.es.js +24 -0
  135. package/dist/pageComponents/Footer/components/AccordionFooter/accordionFooter.module.css.cjs.js +1 -0
  136. package/dist/pageComponents/Footer/components/AccordionFooter/accordionFooter.module.css.es.js +7 -0
  137. package/dist/pageComponents/Footer/components/AccordionFooter/index.d.ts +1 -0
  138. package/dist/pageComponents/Footer/components/AccordionFooterItem/AccordionFooterItem.cjs.js +1 -0
  139. package/dist/pageComponents/Footer/components/AccordionFooterItem/AccordionFooterItem.d.ts +14 -0
  140. package/dist/pageComponents/Footer/components/AccordionFooterItem/AccordionFooterItem.es.js +29 -0
  141. package/dist/pageComponents/Footer/components/AccordionFooterItem/accordionFooterItem.module.css.cjs.js +1 -0
  142. package/dist/pageComponents/Footer/components/AccordionFooterItem/accordionFooterItem.module.css.es.js +27 -0
  143. package/dist/pageComponents/Footer/components/AccordionFooterItem/index.d.ts +1 -0
  144. package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.cjs.js +1 -0
  145. package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.d.ts +1 -0
  146. package/dist/pageComponents/Footer/components/FooterAbout/FooterAbout.es.js +42 -0
  147. package/dist/pageComponents/Footer/components/FooterAbout/footerAbout.module.css.cjs.js +1 -0
  148. package/dist/pageComponents/Footer/components/FooterAbout/footerAbout.module.css.es.js +11 -0
  149. package/dist/pageComponents/Footer/components/FooterAbout/index.d.ts +1 -0
  150. package/dist/pageComponents/Footer/components/FooterLinksBlock/FooterLinksBlock.cjs.js +1 -0
  151. package/dist/pageComponents/Footer/components/FooterLinksBlock/FooterLinksBlock.d.ts +5 -0
  152. package/dist/pageComponents/Footer/components/FooterLinksBlock/FooterLinksBlock.es.js +47 -0
  153. package/dist/pageComponents/Footer/components/FooterLinksBlock/footerLinksBlock.module.css.cjs.js +1 -0
  154. package/dist/pageComponents/Footer/components/FooterLinksBlock/footerLinksBlock.module.css.es.js +11 -0
  155. package/dist/pageComponents/Footer/components/FooterLinksBlock/index.d.ts +1 -0
  156. package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.cjs.js +1 -0
  157. package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.d.ts +11 -0
  158. package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.es.js +15 -0
  159. package/dist/pageComponents/Footer/components/LinksColumn/index.d.ts +1 -0
  160. package/dist/pageComponents/Footer/components/LinksColumn/linksColumn.module.css.cjs.js +1 -0
  161. package/dist/pageComponents/Footer/components/LinksColumn/linksColumn.module.css.es.js +17 -0
  162. package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.cjs.js +1 -0
  163. package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.d.ts +1 -0
  164. package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.es.js +69 -0
  165. package/dist/pageComponents/Footer/components/NewsLetter/index.d.ts +1 -0
  166. package/dist/pageComponents/Footer/components/NewsLetter/newsLetter.module.css.cjs.js +1 -0
  167. package/dist/pageComponents/Footer/components/NewsLetter/newsLetter.module.css.es.js +17 -0
  168. package/dist/pageComponents/Footer/components/TopTreatmentsCard/TopTreatmentsCard.cjs.js +1 -0
  169. package/dist/pageComponents/Footer/components/TopTreatmentsCard/TopTreatmentsCard.d.ts +11 -0
  170. package/dist/pageComponents/Footer/components/TopTreatmentsCard/TopTreatmentsCard.es.js +47 -0
  171. package/dist/pageComponents/Footer/components/TopTreatmentsCard/index.d.ts +1 -0
  172. package/dist/pageComponents/Footer/components/TopTreatmentsCard/topTreatmentsCard.module.css.cjs.js +1 -0
  173. package/dist/pageComponents/Footer/components/TopTreatmentsCard/topTreatmentsCard.module.css.es.js +33 -0
  174. package/dist/pageComponents/Footer/components/index.d.ts +5 -0
  175. package/dist/pageComponents/Footer/footer.module.css.cjs.js +1 -0
  176. package/dist/pageComponents/Footer/footer.module.css.es.js +25 -0
  177. package/dist/pageComponents/Footer/index.d.ts +1 -0
  178. package/dist/utils/formatDate.cjs.js +1 -0
  179. package/dist/utils/formatDate.d.ts +1 -0
  180. package/dist/utils/formatDate.es.js +10 -0
  181. package/dist/utils/isValidEmail.cjs.js +1 -0
  182. package/dist/utils/isValidEmail.d.ts +1 -0
  183. package/dist/utils/isValidEmail.es.js +4 -0
  184. package/package.json +37 -5
  185. package/dist/components/Accordion/components/index.d.ts +0 -1
@@ -0,0 +1 @@
1
+ export { FooterLinksBlock } from './FooterLinksBlock';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../../components/Typography/Typography.cjs.js"),l=require("./linksColumn.module.css.cjs.js"),u=({title:s,links:t,onLinkClick:c,disableLinks:i})=>{const n=a=>{i&&a.preventDefault()};return e.jsxs("div",{className:l.default.root,children:[e.jsx(r.Typography,{as:"span",defaultVariant:"labelSm",weight:"regular",className:l.default.title,emphasis:!0,children:s}),e.jsx("ul",{className:l.default.list,children:t.map(a=>e.jsx("li",{className:l.default.listItem,children:e.jsx("a",{href:a.href,className:l.default.link,onClick:n,children:e.jsx(r.Typography,{defaultVariant:"labelLg",className:l.default.linkText,weight:"regular",children:a.title})})},a.title))})]},s)};exports.LinksColumn=u;
@@ -0,0 +1,11 @@
1
+ export type TLinksColumnProps = {
2
+ title: string;
3
+ links: Array<{
4
+ title: string;
5
+ href: string;
6
+ }>;
7
+ onLinkClick?: (href: string) => void;
8
+ className?: string;
9
+ disableLinks?: boolean;
10
+ };
11
+ export declare const LinksColumn: ({ title, links, onLinkClick, disableLinks }: TLinksColumnProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { Typography as r } from "../../../../components/Typography/Typography.es.js";
3
+ import l from "./linksColumn.module.css.es.js";
4
+ const p = ({ title: i, links: s, onLinkClick: m, disableLinks: t }) => {
5
+ const n = (e) => {
6
+ t && e.preventDefault();
7
+ };
8
+ return /* @__PURE__ */ c("div", { className: l.root, children: [
9
+ /* @__PURE__ */ a(r, { as: "span", defaultVariant: "labelSm", weight: "regular", className: l.title, emphasis: !0, children: i }),
10
+ /* @__PURE__ */ a("ul", { className: l.list, children: s.map((e) => /* @__PURE__ */ a("li", { className: l.listItem, children: /* @__PURE__ */ a("a", { href: e.href, className: l.link, onClick: n, children: /* @__PURE__ */ a(r, { defaultVariant: "labelLg", className: l.linkText, weight: "regular", children: e.title }) }) }, e.title)) })
11
+ ] }, i);
12
+ };
13
+ export {
14
+ p as LinksColumn
15
+ };
@@ -0,0 +1 @@
1
+ export { LinksColumn } from './LinksColumn';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="linksColumn-module__root___VJtQA",l="linksColumn-module__title___YLCht",e="linksColumn-module__list___iNKm3",o="linksColumn-module__listItem___1gHcr",_="linksColumn-module__link___Y-u3e",i="linksColumn-module__linkText___3N1Zf",n={root:t,title:l,list:e,listItem:o,link:_,linkText:i};exports.default=n;exports.link=_;exports.linkText=i;exports.list=e;exports.listItem=o;exports.root=t;exports.title=l;
@@ -0,0 +1,17 @@
1
+ const l = "linksColumn-module__root___VJtQA", t = "linksColumn-module__title___YLCht", _ = "linksColumn-module__list___iNKm3", o = "linksColumn-module__listItem___1gHcr", n = "linksColumn-module__link___Y-u3e", i = "linksColumn-module__linkText___3N1Zf", s = {
2
+ root: l,
3
+ title: t,
4
+ list: _,
5
+ listItem: o,
6
+ link: n,
7
+ linkText: i
8
+ };
9
+ export {
10
+ s as default,
11
+ n as link,
12
+ i as linkText,
13
+ _ as list,
14
+ o as listItem,
15
+ l as root,
16
+ t as title
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),h=require("../../../../components/Typography/Typography.cjs.js"),v=require("../../../../components/TextInput/TextInput.cjs.js"),S=require("../../../../utils/cn/cn.cjs.js"),T=require("../../../../node_modules/react-mailchimp-subscribe/es/index.cjs.js"),j=require("../../../../utils/isValidEmail.cjs.js"),i=require("./newsLetter.module.css.cjs.js"),q="//gethealthspan.us21.list-manage.com/subscribe/post?u=664ad54ec243b3582164cf116&amp;id=2483a4d606&amp;f_id=0050e6e6f0&tags=239347,239351",E=({status:e,message:l,subscribe:c})=>{const[n,o]=a.useState(""),[f,p]=a.useState(""),[u,s]=a.useState(!1),[g,r]=a.useState(""),[b,d]=a.useState(!1),y=m=>{o(m.target.value),u&&(s(!1),r("")),d(m.target.value.length>0)},x=()=>{if(!n){s(!0),r("Please enter your email address");return}if(!j.isValidEmail(n)){s(!0),r("Please enter a valid email address");return}s(!1),r(""),c({EMAIL:n})};return a.useEffect(()=>{e==="success"&&(p(n),o(""),s(!1),r(""),d(!1)),e==="error"&&typeof l=="string"&&(s(!0),r("Subscription failed. Please try again."))},[e,l]),t.jsxs("div",{className:S.cn(i.default.root,{[i.default.subscribed]:e==="success"}),children:[t.jsxs("div",{className:i.default.container,children:[t.jsx(h.Typography,{defaultVariant:"headingLg",mobileVariant:"headingSm",as:"h2",className:i.default.title,children:e==="success"?"Thanks for subscribing!":"Read the latest research reviews"}),t.jsx(h.Typography,{defaultVariant:"bodySm",mobileVariant:"bodyXs",as:"span",className:i.default.text,children:e==="success"?t.jsxs(t.Fragment,{children:["A confirmation email has been sent to ",t.jsx("b",{className:i.default.email,children:f}),". Please confirm your subscription."]}):"Request The Longevity Blueprint to receive our weekly newsletter containing synopses of the latest clinical research."})]}),e==="sending"&&t.jsx("div",{style:{marginTop:"1rem"},children:"Subscribing, please wait..."}),e!=="success"&&e!=="sending"&&t.jsx(v.TextInput,{placeholder:"Your email",variant:"primary-invert",value:n,handleChange:y,onButtonClick:x,showButton:!0,error:u,errorText:g,active:b})]})},w=()=>t.jsx(T.default,{url:q,render:({subscribe:e,status:l,message:c})=>t.jsx(E,{status:l,message:c,subscribe:e})});exports.NewsLetter=w;
@@ -0,0 +1 @@
1
+ export declare const NewsLetter: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,69 @@
1
+ import { jsx as r, jsxs as c, Fragment as S } from "react/jsx-runtime";
2
+ import { useState as n, useEffect as x } from "react";
3
+ import { Typography as h } from "../../../../components/Typography/Typography.es.js";
4
+ import { TextInput as T } from "../../../../components/TextInput/TextInput.es.js";
5
+ import { cn as w } from "../../../../utils/cn/cn.es.js";
6
+ import N from "../../../../node_modules/react-mailchimp-subscribe/es/index.es.js";
7
+ import { isValidEmail as V } from "../../../../utils/isValidEmail.es.js";
8
+ import s from "./newsLetter.module.css.es.js";
9
+ const C = "//gethealthspan.us21.list-manage.com/subscribe/post?u=664ad54ec243b3582164cf116&amp;id=2483a4d606&amp;f_id=0050e6e6f0&tags=239347,239351", L = ({
10
+ status: e,
11
+ message: l,
12
+ subscribe: o
13
+ }) => {
14
+ const [t, m] = n(""), [p, b] = n(""), [d, i] = n(!1), [g, a] = n(""), [v, u] = n(!1), y = (f) => {
15
+ m(f.target.value), d && (i(!1), a("")), u(f.target.value.length > 0);
16
+ }, E = () => {
17
+ if (!t) {
18
+ i(!0), a("Please enter your email address");
19
+ return;
20
+ }
21
+ if (!V(t)) {
22
+ i(!0), a("Please enter a valid email address");
23
+ return;
24
+ }
25
+ i(!1), a(""), o({
26
+ EMAIL: t
27
+ });
28
+ };
29
+ return x(() => {
30
+ e === "success" && (b(t), m(""), i(!1), a(""), u(!1)), e === "error" && typeof l == "string" && (i(!0), a("Subscription failed. Please try again."));
31
+ }, [e, l]), /* @__PURE__ */ c("div", { className: w(s.root, { [s.subscribed]: e === "success" }), children: [
32
+ /* @__PURE__ */ c("div", { className: s.container, children: [
33
+ /* @__PURE__ */ r(h, { defaultVariant: "headingLg", mobileVariant: "headingSm", as: "h2", className: s.title, children: e === "success" ? "Thanks for subscribing!" : "Read the latest research reviews" }),
34
+ /* @__PURE__ */ r(h, { defaultVariant: "bodySm", mobileVariant: "bodyXs", as: "span", className: s.text, children: e === "success" ? /* @__PURE__ */ c(S, { children: [
35
+ "A confirmation email has been sent to ",
36
+ /* @__PURE__ */ r("b", { className: s.email, children: p }),
37
+ ". Please confirm your subscription."
38
+ ] }) : "Request The Longevity Blueprint to receive our weekly newsletter containing synopses of the latest clinical research." })
39
+ ] }),
40
+ e === "sending" && /* @__PURE__ */ r("div", { style: { marginTop: "1rem" }, children: "Subscribing, please wait..." }),
41
+ e !== "success" && e !== "sending" && /* @__PURE__ */ r(
42
+ T,
43
+ {
44
+ placeholder: "Your email",
45
+ variant: "primary-invert",
46
+ value: t,
47
+ handleChange: y,
48
+ onButtonClick: E,
49
+ showButton: !0,
50
+ error: d,
51
+ errorText: g,
52
+ active: v
53
+ }
54
+ )
55
+ ] });
56
+ }, R = () => /* @__PURE__ */ r(
57
+ N,
58
+ {
59
+ url: C,
60
+ render: ({
61
+ subscribe: e,
62
+ status: l,
63
+ message: o
64
+ }) => /* @__PURE__ */ r(L, { status: l, message: o, subscribe: e })
65
+ }
66
+ );
67
+ export {
68
+ R as NewsLetter
69
+ };
@@ -0,0 +1 @@
1
+ export { NewsLetter } from './NewsLetter';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="newsLetter-module__root___nwHwt",t="newsLetter-module__container___OOMwi",_="newsLetter-module__title___yx3-Q",o="newsLetter-module__text___vDPQi",s="newsLetter-module__email___17EYB",n="newsLetter-module__subscribed___01M7l",r={root:e,container:t,title:_,text:o,email:s,subscribed:n};exports.container=t;exports.default=r;exports.email=s;exports.root=e;exports.subscribed=n;exports.text=o;exports.title=_;
@@ -0,0 +1,17 @@
1
+ const e = "newsLetter-module__root___nwHwt", t = "newsLetter-module__container___OOMwi", _ = "newsLetter-module__title___yx3-Q", o = "newsLetter-module__text___vDPQi", s = "newsLetter-module__email___17EYB", n = "newsLetter-module__subscribed___01M7l", r = {
2
+ root: e,
3
+ container: t,
4
+ title: _,
5
+ text: o,
6
+ email: s,
7
+ subscribed: n
8
+ };
9
+ export {
10
+ t as container,
11
+ r as default,
12
+ s as email,
13
+ e as root,
14
+ n as subscribed,
15
+ o as text,
16
+ _ as title
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../../../components/Button/Button.cjs.js"),n=require("../../../../components/Icon/constants.cjs.js"),s=require("../../../../components/Typography/Typography.cjs.js"),t=require("../../../../components/Icon/Icon.cjs.js"),a=require("./topTreatmentsCard.module.css.cjs.js"),h=({title:l,image:i,name:r,price:c,onPrev:d,onNext:o,onLearnMore:u})=>e.jsxs("div",{className:a.default.root,children:[e.jsx(s.Typography,{as:"span",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:a.default.title,children:l}),e.jsxs("div",{className:a.default.productCard,children:[e.jsx("img",{src:i,alt:r,className:a.default.image}),e.jsxs("div",{className:a.default.rightSide,children:[e.jsx("div",{className:a.default.productInfo,children:e.jsx("div",{className:a.default.productInfoHeader,children:e.jsxs("div",{className:a.default.headerSplit,children:[e.jsx("div",{className:a.default.nameContainer,children:e.jsx(s.Typography,{defaultVariant:"headingXs",children:r})}),e.jsx(s.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.price,children:c})]})})}),e.jsxs("div",{className:a.default.actions,children:[e.jsx("div",{className:a.default.btnLearnMore,children:e.jsx(m.Button,{size:"sm",variant:"primary-invert",onClick:u,children:"Learn More"})}),e.jsxs("div",{className:a.default.switchers,children:[e.jsx("div",{className:a.default.arrowIcon,onClick:d,children:e.jsx(t.Icon,{name:n.EIconName.ARROW_BACK})}),e.jsx("div",{className:a.default.arrowIcon,onClick:o,children:e.jsx(t.Icon,{name:n.EIconName.ARROW_FORWARD})})]})]})]})]})]});exports.TopTreatmentsCard=h;
@@ -0,0 +1,11 @@
1
+ type TTopTreatmentsCardProps = {
2
+ title: string;
3
+ image: string;
4
+ name: string;
5
+ price: string;
6
+ onPrev: () => void;
7
+ onNext: () => void;
8
+ onLearnMore: () => void;
9
+ };
10
+ export declare const TopTreatmentsCard: ({ title, image, name, price, onPrev, onNext, onLearnMore, }: TTopTreatmentsCardProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,47 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { Button as p } from "../../../../components/Button/Button.es.js";
3
+ import { EIconName as l } from "../../../../components/Icon/constants.es.js";
4
+ import { Typography as i } from "../../../../components/Typography/Typography.es.js";
5
+ import { Icon as c } from "../../../../components/Icon/Icon.es.js";
6
+ import a from "./topTreatmentsCard.module.css.es.js";
7
+ const C = ({
8
+ title: n,
9
+ image: d,
10
+ name: s,
11
+ price: o,
12
+ onPrev: m,
13
+ onNext: t,
14
+ onLearnMore: h
15
+ }) => /* @__PURE__ */ r("div", { className: a.root, children: [
16
+ /* @__PURE__ */ e(
17
+ i,
18
+ {
19
+ as: "span",
20
+ defaultVariant: "labelSm",
21
+ mobileVariant: "labelXs",
22
+ weight: "regular",
23
+ emphasis: !0,
24
+ className: a.title,
25
+ children: n
26
+ }
27
+ ),
28
+ /* @__PURE__ */ r("div", { className: a.productCard, children: [
29
+ /* @__PURE__ */ e("img", { src: d, alt: s, className: a.image }),
30
+ /* @__PURE__ */ r("div", { className: a.rightSide, children: [
31
+ /* @__PURE__ */ e("div", { className: a.productInfo, children: /* @__PURE__ */ e("div", { className: a.productInfoHeader, children: /* @__PURE__ */ r("div", { className: a.headerSplit, children: [
32
+ /* @__PURE__ */ e("div", { className: a.nameContainer, children: /* @__PURE__ */ e(i, { defaultVariant: "headingXs", children: s }) }),
33
+ /* @__PURE__ */ e(i, { defaultVariant: "bodyMd", mobileVariant: "bodySm", className: a.price, children: o })
34
+ ] }) }) }),
35
+ /* @__PURE__ */ r("div", { className: a.actions, children: [
36
+ /* @__PURE__ */ e("div", { className: a.btnLearnMore, children: /* @__PURE__ */ e(p, { size: "sm", variant: "primary-invert", onClick: h, children: "Learn More" }) }),
37
+ /* @__PURE__ */ r("div", { className: a.switchers, children: [
38
+ /* @__PURE__ */ e("div", { className: a.arrowIcon, onClick: m, children: /* @__PURE__ */ e(c, { name: l.ARROW_BACK }) }),
39
+ /* @__PURE__ */ e("div", { className: a.arrowIcon, onClick: t, children: /* @__PURE__ */ e(c, { name: l.ARROW_FORWARD }) })
40
+ ] })
41
+ ] })
42
+ ] })
43
+ ] })
44
+ ] });
45
+ export {
46
+ C as TopTreatmentsCard
47
+ };
@@ -0,0 +1 @@
1
+ export { TopTreatmentsCard } from './TopTreatmentsCard';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="topTreatmentsCard-module__root___XT7oM",e="topTreatmentsCard-module__title___HmMp1",o="topTreatmentsCard-module__productCard___GUeYS",r="topTreatmentsCard-module__image___CMBE0",_="topTreatmentsCard-module__rightSide___YV44-",n="topTreatmentsCard-module__productInfo___4KrYR",a="topTreatmentsCard-module__productInfoHeader___Ietzc",d="topTreatmentsCard-module__headerSplit___j7jGh",s="topTreatmentsCard-module__nameContainer___-scSS",c="topTreatmentsCard-module__price___6wpTo",i="topTreatmentsCard-module__actions___ZYREi",m="topTreatmentsCard-module__switchers___4rS0s",p="topTreatmentsCard-module__btnLearnMore___3nb1-",u="topTreatmentsCard-module__arrowIcon___Jnz-F",l={root:t,title:e,productCard:o,image:r,rightSide:_,productInfo:n,productInfoHeader:a,headerSplit:d,nameContainer:s,price:c,actions:i,switchers:m,btnLearnMore:p,arrowIcon:u};exports.actions=i;exports.arrowIcon=u;exports.btnLearnMore=p;exports.default=l;exports.headerSplit=d;exports.image=r;exports.nameContainer=s;exports.price=c;exports.productCard=o;exports.productInfo=n;exports.productInfoHeader=a;exports.rightSide=_;exports.root=t;exports.switchers=m;exports.title=e;
@@ -0,0 +1,33 @@
1
+ const t = "topTreatmentsCard-module__root___XT7oM", e = "topTreatmentsCard-module__title___HmMp1", o = "topTreatmentsCard-module__productCard___GUeYS", r = "topTreatmentsCard-module__image___CMBE0", _ = "topTreatmentsCard-module__rightSide___YV44-", n = "topTreatmentsCard-module__productInfo___4KrYR", a = "topTreatmentsCard-module__productInfoHeader___Ietzc", d = "topTreatmentsCard-module__headerSplit___j7jGh", s = "topTreatmentsCard-module__nameContainer___-scSS", c = "topTreatmentsCard-module__price___6wpTo", m = "topTreatmentsCard-module__actions___ZYREi", p = "topTreatmentsCard-module__switchers___4rS0s", i = "topTreatmentsCard-module__btnLearnMore___3nb1-", u = "topTreatmentsCard-module__arrowIcon___Jnz-F", l = {
2
+ root: t,
3
+ title: e,
4
+ productCard: o,
5
+ image: r,
6
+ rightSide: _,
7
+ productInfo: n,
8
+ productInfoHeader: a,
9
+ headerSplit: d,
10
+ nameContainer: s,
11
+ price: c,
12
+ actions: m,
13
+ switchers: p,
14
+ btnLearnMore: i,
15
+ arrowIcon: u
16
+ };
17
+ export {
18
+ m as actions,
19
+ u as arrowIcon,
20
+ i as btnLearnMore,
21
+ l as default,
22
+ d as headerSplit,
23
+ r as image,
24
+ s as nameContainer,
25
+ c as price,
26
+ o as productCard,
27
+ n as productInfo,
28
+ a as productInfoHeader,
29
+ _ as rightSide,
30
+ t as root,
31
+ p as switchers,
32
+ e as title
33
+ };
@@ -0,0 +1,5 @@
1
+ export { FooterAbout } from './FooterAbout';
2
+ export { FooterLinksBlock } from './FooterLinksBlock';
3
+ export { NewsLetter } from './NewsLetter';
4
+ export { TextInput } from '../../../components/TextInput';
5
+ export { AccordionFooter } from './AccordionFooter';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="footer-module__root___H-8--",t="footer-module__container___6Dzcn",e="footer-module__content___ELMb8",_="footer-module__footerLeft___GGbx6",n="footer-module__footerRight___qIHVr",r="footer-module__columns___RJdci",s="footer-module__footerLinks___GZNN3",c="footer-module__about___q7wp9",f="footer-module__socials___BrswA",i="footer-module__img___T7yaJ",l={root:o,container:t,content:e,footerLeft:_,footerRight:n,columns:r,footerLinks:s,about:c,socials:f,img:i};exports.about=c;exports.columns=r;exports.container=t;exports.content=e;exports.default=l;exports.footerLeft=_;exports.footerLinks=s;exports.footerRight=n;exports.img=i;exports.root=o;exports.socials=f;
@@ -0,0 +1,25 @@
1
+ const o = "footer-module__root___H-8--", t = "footer-module__container___6Dzcn", _ = "footer-module__content___ELMb8", e = "footer-module__footerLeft___GGbx6", n = "footer-module__footerRight___qIHVr", r = "footer-module__columns___RJdci", s = "footer-module__footerLinks___GZNN3", c = "footer-module__about___q7wp9", f = "footer-module__socials___BrswA", l = "footer-module__img___T7yaJ", u = {
2
+ root: o,
3
+ container: t,
4
+ content: _,
5
+ footerLeft: e,
6
+ footerRight: n,
7
+ columns: r,
8
+ footerLinks: s,
9
+ about: c,
10
+ socials: f,
11
+ img: l
12
+ };
13
+ export {
14
+ c as about,
15
+ r as columns,
16
+ t as container,
17
+ _ as content,
18
+ u as default,
19
+ e as footerLeft,
20
+ s as footerLinks,
21
+ n as footerRight,
22
+ l as img,
23
+ o as root,
24
+ f as socials
25
+ };
@@ -0,0 +1 @@
1
+ export { Footer } from './Footer';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return new Date(t).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).replace(/\//g," / ")}exports.formatDate=e;
@@ -0,0 +1 @@
1
+ export declare function formatDate(date: number): string;
@@ -0,0 +1,10 @@
1
+ function n(t) {
2
+ return new Date(t).toLocaleDateString("en-US", {
3
+ month: "2-digit",
4
+ day: "2-digit",
5
+ year: "numeric"
6
+ }).replace(/\//g, " / ");
7
+ }
8
+ export {
9
+ n as formatDate
10
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=t=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t);exports.isValidEmail=a;
@@ -0,0 +1 @@
1
+ export declare const isValidEmail: (email: string) => boolean;
@@ -0,0 +1,4 @@
1
+ const e = (t) => /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t);
2
+ export {
3
+ e as isValidEmail
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -42,6 +42,7 @@
42
42
  "@storybook/react-vite": "^8.6.12",
43
43
  "@storybook/test": "^8.6.12",
44
44
  "@types/react-dom": "^18.3.1",
45
+ "@types/react-mailchimp-subscribe": "^2.1.4",
45
46
  "@vitejs/plugin-react": "^4.4.1",
46
47
  "chromatic": "^11.28.2",
47
48
  "eslint": "^9.28.0",
@@ -64,6 +65,7 @@
64
65
  "@gsap/react": "^2.1.2",
65
66
  "@types/node": "^22.15.14",
66
67
  "gsap": "^3.13.0",
68
+ "react-mailchimp-subscribe": "^2.1.3",
67
69
  "react-tiny-popover": "^8.1.6",
68
70
  "swiper": "^11.2.8"
69
71
  },
@@ -79,22 +81,22 @@
79
81
  "require": "./dist/utils.cjs.js"
80
82
  },
81
83
  "./cn": {
82
- "types": "./dist/utils/cn/cn.d.ts",
84
+ "types": "./dist/utils/cn.d.ts",
83
85
  "import": "./dist/utils/cn/cn.es.js",
84
86
  "require": "./dist/utils/cn/cn.cjs.js"
85
87
  },
86
88
  "./formatUnits": {
87
- "types": "./dist/utils/formatUnits/formatUnits.d.ts",
89
+ "types": "./dist/utils/formatUnits.d.ts",
88
90
  "import": "./dist/utils/formatUnits/formatUnits.es.js",
89
91
  "require": "./dist/utils/formatUnits/formatUnits.cjs.js"
90
92
  },
91
93
  "./isHsIcon": {
92
- "types": "./dist/utils/isHsIcon/isHsIcon.d.ts",
94
+ "types": "./dist/utils/isHsIcon.d.ts",
93
95
  "import": "./dist/utils/isHsIcon/isHsIcon.es.js",
94
96
  "require": "./dist/utils/isHsIcon/isHsIcon.cjs.js"
95
97
  },
96
98
  "./useSwiper": {
97
- "types": "./dist/lib/useSwiper/useSwiper.d.ts",
99
+ "types": "./dist/lib/useSwiper.d.ts",
98
100
  "import": "./dist/lib/useSwiper/useSwiper.es.js",
99
101
  "require": "./dist/lib/useSwiper/useSwiper.cjs.js"
100
102
  },
@@ -103,6 +105,11 @@
103
105
  "import": "./dist/components/TextButton/TextButton.es.js",
104
106
  "require": "./dist/components/TextButton/TextButton.cjs.js"
105
107
  },
108
+ "./TextInput": {
109
+ "types": "./dist/components/TextInput/TextInput.d.ts",
110
+ "import": "./dist/components/TextInput/TextInput.es.js",
111
+ "require": "./dist/components/TextInput/TextInput.cjs.js"
112
+ },
106
113
  "./Icon": {
107
114
  "types": "./dist/components/Icon/Icon.d.ts",
108
115
  "import": "./dist/components/Icon/Icon.es.js",
@@ -118,6 +125,11 @@
118
125
  "import": "./dist/components/Button/Button.es.js",
119
126
  "require": "./dist/components/Button/Button.cjs.js"
120
127
  },
128
+ "./CircleHighlights": {
129
+ "types": "./dist/components/CircleHighlights/CircleHighlights.d.ts",
130
+ "import": "./dist/components/CircleHighlights/CircleHighlights.es.js",
131
+ "require": "./dist/components/CircleHighlights/CircleHighlights.cjs.js"
132
+ },
121
133
  "./IconButton": {
122
134
  "types": "./dist/components/IconButton/IconButton.d.ts",
123
135
  "import": "./dist/components/IconButton/IconButton.es.js",
@@ -433,6 +445,21 @@
433
445
  "import": "./dist/modules/IndividualProductCard/IndividualProductCard.es.js",
434
446
  "require": "./dist/modules/IndividualProductCard/IndividualProductCard.cjs.js"
435
447
  },
448
+ "./ResearchFeatured": {
449
+ "types": "./dist/modules/ResearchFeatured/ResearchFeatured.d.ts",
450
+ "import": "./dist/modules/ResearchFeatured/ResearchFeatured.es.js",
451
+ "require": "./dist/modules/ResearchFeatured/ResearchFeatured.cjs.js"
452
+ },
453
+ "./ResearchStudies": {
454
+ "types": "./dist/modules/ResearchStudies/ResearchStudies.d.ts",
455
+ "import": "./dist/modules/ResearchStudies/ResearchStudies.es.js",
456
+ "require": "./dist/modules/ResearchStudies/ResearchStudies.cjs.js"
457
+ },
458
+ "./ResearchEssentialReadings": {
459
+ "types": "./dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.d.ts",
460
+ "import": "./dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.es.js",
461
+ "require": "./dist/modules/ResearchEssentialReadings/ResearchEssentialReadings.cjs.js"
462
+ },
436
463
  "./Bubbles": {
437
464
  "types": "./dist/pageComponents/Bubbles/Bubbles.d.ts",
438
465
  "import": "./dist/pageComponents/Bubbles/Bubbles.es.js",
@@ -483,6 +510,11 @@
483
510
  "import": "./dist/pageComponents/ContactUs/ContactUs.es.js",
484
511
  "require": "./dist/pageComponents/ContactUs/ContactUs.cjs.js"
485
512
  },
513
+ "./Footer": {
514
+ "types": "./dist/pageComponents/Footer/Footer.d.ts",
515
+ "import": "./dist/pageComponents/Footer/Footer.es.js",
516
+ "require": "./dist/pageComponents/Footer/Footer.cjs.js"
517
+ },
486
518
  "./dist/*.css": "./dist/*.css"
487
519
  }
488
520
  }
@@ -1 +0,0 @@
1
- export * from './AccordionItem';