cortex-react-components 1.11.0 → 1.11.1

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 (118) hide show
  1. package/dist/chunk-2CXNNW54.mjs +4 -0
  2. package/dist/chunk-3QQFCCOW.mjs +1 -0
  3. package/dist/{chunk-SPDBC32Z.mjs → chunk-55BPPKDS.mjs} +1 -1
  4. package/dist/{chunk-MESSAICX.mjs → chunk-63BUZTVI.mjs} +1 -1
  5. package/dist/chunk-A24IEDVI.mjs +1 -0
  6. package/dist/{chunk-LKMZ5ROU.mjs → chunk-CQHNH3XJ.mjs} +1 -1
  7. package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
  8. package/dist/{chunk-ZVSS2NJE.mjs → chunk-D7VI7GHN.mjs} +1 -1
  9. package/dist/{chunk-WMZYFRHZ.mjs → chunk-FEBVOLWP.mjs} +1 -1
  10. package/dist/chunk-FHRWUBJS.mjs +4 -0
  11. package/dist/{chunk-A5OBDLSS.mjs → chunk-GLKHI35O.mjs} +1 -1
  12. package/dist/{chunk-FXOJ7XKV.mjs → chunk-H2TB2T6H.mjs} +1 -1
  13. package/dist/{chunk-CP6IA4YZ.mjs → chunk-IB72MBM7.mjs} +1 -1
  14. package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
  15. package/dist/{chunk-3UMXC67W.mjs → chunk-IH3RVXY6.mjs} +1 -1
  16. package/dist/{chunk-VY32UTE2.mjs → chunk-KVLKXXVS.mjs} +1 -1
  17. package/dist/chunk-MFCXNXQ5.mjs +1 -0
  18. package/dist/{chunk-CSUTG7F5.mjs → chunk-N7Z6I6KY.mjs} +1 -1
  19. package/dist/{chunk-WQF47M5N.mjs → chunk-NSUCU5DU.mjs} +1 -1
  20. package/dist/{chunk-6FHLIH4J.mjs → chunk-ODLDYXPZ.mjs} +1 -1
  21. package/dist/{chunk-5EX5KVLO.mjs → chunk-OEM7RQ4Q.mjs} +1 -1
  22. package/dist/{chunk-M5X4MWJX.mjs → chunk-Q24IVBS5.mjs} +1 -1
  23. package/dist/{chunk-5TTFPIXL.mjs → chunk-Q3HKMCDA.mjs} +1 -1
  24. package/dist/{chunk-CW7WANDA.mjs → chunk-QRNJ7O2L.mjs} +1 -1
  25. package/dist/{chunk-NUOP7T5Z.mjs → chunk-RPSDBRAG.mjs} +1 -1
  26. package/dist/{chunk-YPP62UKD.mjs → chunk-RQKTHY3B.mjs} +1 -1
  27. package/dist/chunk-UN4YL2CJ.mjs +1 -0
  28. package/dist/chunk-VTC2WEYO.mjs +1 -0
  29. package/dist/chunk-X6QN5C6U.mjs +1 -0
  30. package/dist/components/Blocks/Banner.mjs +1 -1
  31. package/dist/components/Blocks/CallToAction.mjs +1 -1
  32. package/dist/components/Blocks/Content.mjs +1 -1
  33. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  34. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  35. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  36. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  37. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  38. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  39. package/dist/components/Blocks/index.mjs +1 -1
  40. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  41. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  42. package/dist/components/HeaderFooter/index.js +1 -1
  43. package/dist/components/HeaderFooter/index.mjs +1 -1
  44. package/dist/components/Heros/HighImpact/index.js +1 -1
  45. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  46. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  47. package/dist/components/Heros/MediumImpact/index.js +1 -1
  48. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  49. package/dist/components/Heros/PostHero/index.js +1 -1
  50. package/dist/components/Heros/PostHero/index.mjs +1 -1
  51. package/dist/components/Heros/RenderHero.js +1 -1
  52. package/dist/components/Heros/RenderHero.mjs +1 -1
  53. package/dist/components/Heros/SectionHero/index.d.ts +11 -0
  54. package/dist/components/Heros/SectionHero/index.js +1 -0
  55. package/dist/components/Heros/SectionHero/index.mjs +1 -0
  56. package/dist/components/Heros/index.d.ts +1 -0
  57. package/dist/components/Heros/index.js +1 -1
  58. package/dist/components/Heros/index.mjs +1 -1
  59. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  60. package/dist/components/Layouts/NewsGrid.stories.mjs +1 -1
  61. package/dist/components/Layouts/index.mjs +1 -1
  62. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  63. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  64. package/dist/components/Menus/SidebarRight.mjs +1 -1
  65. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  66. package/dist/components/Menus/index.mjs +1 -1
  67. package/dist/components/Pages/Documentation.mjs +1 -1
  68. package/dist/components/Pages/Documentation.stories.mjs +1 -1
  69. package/dist/components/Pages/IndexPage.mjs +1 -1
  70. package/dist/components/Pages/IndexPage.stories.mjs +1 -1
  71. package/dist/components/Pages/Intranet.mjs +1 -1
  72. package/dist/components/Pages/Intranet.stories.mjs +1 -1
  73. package/dist/components/Pages/LandingPage.js +1 -1
  74. package/dist/components/Pages/LandingPage.mjs +1 -1
  75. package/dist/components/Pages/LandingPage.stories.js +1 -1
  76. package/dist/components/Pages/LandingPage.stories.mjs +1 -1
  77. package/dist/components/Pages/Page.js +1 -1
  78. package/dist/components/Pages/Page.mjs +1 -1
  79. package/dist/components/Pages/Page.stories.js +182 -182
  80. package/dist/components/Pages/Page.stories.mjs +1 -1
  81. package/dist/components/Pages/Website.d.ts +1 -1
  82. package/dist/components/Pages/Website.js +1 -1
  83. package/dist/components/Pages/Website.mjs +1 -1
  84. package/dist/components/Pages/Website.stories.js +200 -200
  85. package/dist/components/Pages/Website.stories.mjs +1 -1
  86. package/dist/components/Payload/Card/index.mjs +1 -1
  87. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  88. package/dist/components/Payload/Media/index.mjs +1 -1
  89. package/dist/components/Payload/RichText/index.mjs +1 -1
  90. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  91. package/dist/components/Payload/index.mjs +1 -1
  92. package/dist/components/index.js +4 -4
  93. package/dist/components/index.mjs +1 -1
  94. package/dist/components/ui/index.mjs +1 -1
  95. package/dist/components/ui/sidebar.mjs +1 -1
  96. package/dist/globals.css +1 -1
  97. package/dist/hero-3-N2CBGEV6.jpg +0 -0
  98. package/dist/image-hero1-V6MPFDQ6.webp +0 -0
  99. package/dist/images/hero/hero-3.js +1 -0
  100. package/dist/images/hero/hero-3.mjs +1 -0
  101. package/dist/images/hero/image-hero1.js +1 -0
  102. package/dist/images/hero/image-hero1.mjs +1 -0
  103. package/dist/images/hero/pattern-1.js +1 -0
  104. package/dist/images/hero/pattern-1.mjs +1 -0
  105. package/dist/images/hero/pattern-2.js +1 -0
  106. package/dist/images/hero/pattern-2.mjs +1 -0
  107. package/dist/index.js +4 -4
  108. package/dist/index.mjs +1 -1
  109. package/dist/metafile-cjs.json +1 -1
  110. package/dist/metafile-esm.json +1 -1
  111. package/dist/pattern-1-EKFV67R7.png +0 -0
  112. package/dist/pattern-2-6AZH7ORR.png +0 -0
  113. package/package.json +1 -1
  114. package/dist/chunk-DDEPPEJ7.mjs +0 -1
  115. package/dist/chunk-LBXZO7YT.mjs +0 -1
  116. package/dist/chunk-PTX3WDAE.mjs +0 -4
  117. package/dist/chunk-Q5NQ35NR.mjs +0 -4
  118. package/dist/chunk-Z4MPZSVH.mjs +0 -1
Binary file
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "cortex-react-components",
3
3
  "author": "Cortex Reply",
4
4
  "private": false,
5
- "version": "1.11.0",
5
+ "version": "1.11.1",
6
6
  "description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
7
7
  "license": "MPL-2.0",
8
8
  "main": "./dist/index.js",
@@ -1 +0,0 @@
1
- import{a as d}from"./chunk-WU3JMLSC.mjs";import{a as p}from"./chunk-BZAYEKYC.mjs";import{a as m}from"./chunk-LBXZO7YT.mjs";import{a as i}from"./chunk-SPDBC32Z.mjs";import{a as o}from"./chunk-PTX3WDAE.mjs";import{a as t}from"./chunk-Z4MPZSVH.mjs";import{a}from"./chunk-YCT3EQRB.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function n({...r}){return u("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(a,{isMenuOpen:!0,logoLight:p,logoDark:d}),r.hero&&r.hero.type==="lowImpact"&&e(i,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(t,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(o,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(m,{...r.hero})]})}export{n as a};
@@ -1 +0,0 @@
1
- import{a as g}from"./chunk-CW7WANDA.mjs";import{a as p}from"./chunk-JUV4GZ2N.mjs";import s from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var u=({post:v})=>{let{categories:o,meta:{image:i}={},populatedAuthors:a,publishedAt:n,title:f}=v;return t("div",{className:"relative -mt-[10.4rem] flex items-end",children:[e("div",{className:"container z-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-white pb-8",children:t("div",{className:"col-start-1 col-span-1 md:col-start-2 md:col-span-2",children:[e("div",{className:"uppercase text-sm mb-6",children:o==null?void 0:o.map((m,l)=>{if(typeof m=="object"&&m!==null){let{title:c}=m,d=c||"Untitled category",r=l===o.length-1;return t(s.Fragment,{children:[d,!r&&e(s.Fragment,{children:", \xA0"})]},l)}return null})}),e("div",{className:"",children:e("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:f})}),t("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[e("div",{className:"flex flex-col gap-4",children:a&&t("div",{className:"flex flex-col gap-1",children:[e("p",{className:"text-sm",children:"Author"}),a.map((m,l)=>{let{name:c}=m,d=l===a.length-1,r=l===a.length-2;return t(s.Fragment,{children:[c,r&&a.length>2&&e(s.Fragment,{children:", "}),r&&a.length===2&&e(s.Fragment,{children:" "}),!d&&a.length>1&&e(s.Fragment,{children:"and "})]},l)})]})}),n&&t("div",{className:"flex flex-col gap-1",children:[e("p",{className:"text-sm",children:"Date Published"}),e("time",{dateTime:n,children:p(n)})]})]})]})}),t("div",{className:"min-h-[80vh] select-none",children:[i&&typeof i!="string"&&e(g,{fill:!0,imgClassName:"-z-10 object-cover",resource:i}),e("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-black to-transparent"})]})]})};export{u as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{d as c}from"./chunk-WQF47M5N.mjs";import{a as s}from"./chunk-YAH6C5YX.mjs";import{a as o}from"./chunk-CW7WANDA.mjs";import p from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var y=({links:r,media:t,children:l,richText:i})=>a("div",{className:"relative -mt-[10.4rem] flex items-center justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mb-8 z-10 relative flex items-center justify-center",children:a("div",{className:"max-w-[36.5rem] text-center",children:[l||i&&e(c,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:i,enableGutter:!1}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:m},n)=>e("li",{children:e(s,{...m})},n))})]})}),a("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&e(o,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&e("div",{children:e(p,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),e("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-accent-900/0 dark:to-accent-900"})]})]});export{y as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as d}from"./chunk-YCT3EQRB.mjs";import{useState as i,useEffect as u}from"react";import{Menu as p,X as w,ChevronDown as g}from"lucide-react";import x from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";function E({logoVideo:a,logoLight:m,logoDark:v}){console.log("logoVideo",a);let[r,n]=i(!1),[f,c]=i(!1),[l,s]=i(!1),h=()=>{let t=document.getElementById("next-section");t&&t.scrollIntoView({behavior:"smooth"})};return u(()=>{let t=()=>{window.scrollY>100?(c(!0),s(!1)):(c(!1),s(!0))};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),u(()=>{let t=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),o("div",{className:"relative h-screen",children:[o("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[o("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!r&&e("button",{className:"fixed top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{s(!l)},children:l?e(w,{className:"w-6 h-6 text-white"}):e(p,{className:"w-6 h-6 text-white"})}),e("div",{className:"fixed top-0 left-0 right-0 z-50",children:e(d,{isMenuOpen:r,logoLight:m,logoDark:v})}),e("div",{className:`fixed top-4 left-4 z-50 transition-all duration-300 ${f||l?"opacity-0":"opacity-100"}`}),o("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[e(x,{src:a,alt:"Cortex Reply Logo",width:720,height:320,className:"h-auto w-auto mt-8"}),o("div",{children:[e("h1",{className:"text-4xl font-bold mb-4",children:"We are Cortex Reply."}),e("p",{className:"text-2xl mb-8 max-w-2xl",children:"Efficiency through technology."})]}),e("div",{className:"flex justify-center items-center w-full mb-8",children:e("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:h,children:e(g,{size:64})})})]})]})}export{E as a};
@@ -1 +0,0 @@
1
- import{d as i}from"./chunk-WQF47M5N.mjs";import{a}from"./chunk-CW7WANDA.mjs";import m from"next/image";import{jsx as r,jsxs as n}from"react/jsx-runtime";var d=({links:l,media:e,children:t,richText:o})=>n("div",{className:"relative bg-brand-one pb-12 pt-10",children:[e&&typeof e=="object"&&r(a,{imgClassName:"mix-blend-overlay opacity-50",fill:!0,priority:!0,resource:e}),e&&typeof e=="string"&&r("div",{children:r(m,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e})}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:t||o&&r(i,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});export{d as a};