cortex-react-components 1.58.8 → 1.58.10
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/{chunk-RJGKFNZL.mjs → chunk-2A6JF3LE.mjs} +1 -1
- package/dist/{chunk-3DFRWKIF.mjs → chunk-2U53LYZN.mjs} +1 -1
- package/dist/{chunk-EEKJDWGI.mjs → chunk-2W4IMTIV.mjs} +1 -1
- package/dist/{chunk-6YWAX7NS.mjs → chunk-3GYJDXNA.mjs} +1 -1
- package/dist/{chunk-6DHYRATS.mjs → chunk-4YJ3HV64.mjs} +1 -1
- package/dist/{chunk-4NXJ76O5.mjs → chunk-5B4ISROY.mjs} +1 -1
- package/dist/{chunk-DJBBBN5I.mjs → chunk-5DBGTQXM.mjs} +1 -1
- package/dist/{chunk-5X4PB3FA.mjs → chunk-5FTK7M24.mjs} +1 -1
- package/dist/{chunk-D7A7EUEW.mjs → chunk-5RBQ77B3.mjs} +1 -1
- package/dist/{chunk-LGM6MCN3.mjs → chunk-7OBH6AB6.mjs} +1 -1
- package/dist/{chunk-6IRYD7Q7.mjs → chunk-BP7TH4IX.mjs} +1 -1
- package/dist/chunk-CFAC7SPP.mjs +1 -0
- package/dist/{chunk-34X6LQ6U.mjs → chunk-DJUA7Y5M.mjs} +1 -1
- package/dist/{chunk-GPG2PNPR.mjs → chunk-E5JYGW3N.mjs} +1 -1
- package/dist/{chunk-RI6VIXR6.mjs → chunk-E7435ZAX.mjs} +1 -1
- package/dist/{chunk-RQ23CZK5.mjs → chunk-F55C2C5H.mjs} +1 -1
- package/dist/{chunk-JPFBD2KD.mjs → chunk-FCCL6W7R.mjs} +1 -1
- package/dist/chunk-G6JBMV6L.mjs +1 -0
- package/dist/{chunk-SOXWIWAO.mjs → chunk-HGI7EHXL.mjs} +1 -1
- package/dist/{chunk-IIWZASBB.mjs → chunk-HJEBPSC5.mjs} +1 -1
- package/dist/chunk-I2W7RMTH.mjs +1 -0
- package/dist/{chunk-BIYVBANC.mjs → chunk-IHZ3OSBS.mjs} +1 -1
- package/dist/{chunk-2IKC7MAP.mjs → chunk-KB6PO4K4.mjs} +1 -1
- package/dist/{chunk-VHNDMY6M.mjs → chunk-KCNRSNZG.mjs} +1 -1
- package/dist/{chunk-HVPBVC33.mjs → chunk-KDTY4EY6.mjs} +1 -1
- package/dist/{chunk-23BDC5JG.mjs → chunk-KIICLHKI.mjs} +1 -1
- package/dist/{chunk-EJNRZ4WV.mjs → chunk-KIRUMRMR.mjs} +1 -1
- package/dist/chunk-L2QAYSRV.mjs +4 -0
- package/dist/{chunk-5NOCE5PC.mjs → chunk-LEEJPYVV.mjs} +1 -1
- package/dist/{chunk-XXTN5HMN.mjs → chunk-MGS3DQ22.mjs} +1 -1
- package/dist/{chunk-PDC45KCW.mjs → chunk-MSOWUU4F.mjs} +1 -1
- package/dist/{chunk-OJPHYSRN.mjs → chunk-NCHGLVBP.mjs} +1 -1
- package/dist/{chunk-OHCQJVFB.mjs → chunk-OD73JG7G.mjs} +1 -1
- package/dist/{chunk-GB6KVID5.mjs → chunk-OH22UHIS.mjs} +1 -1
- package/dist/{chunk-PIM2JQYT.mjs → chunk-OUKKI47A.mjs} +1 -1
- package/dist/{chunk-2SAIVBET.mjs → chunk-OVXCQ4OD.mjs} +1 -1
- package/dist/{chunk-D3YYAZOY.mjs → chunk-PKVCK4QY.mjs} +1 -1
- package/dist/{chunk-QMFZRG7O.mjs → chunk-PY53YVFX.mjs} +1 -1
- package/dist/{chunk-IO222G5L.mjs → chunk-SBAFXZVU.mjs} +1 -1
- package/dist/{chunk-I5RCZXFX.mjs → chunk-SYL22HOJ.mjs} +1 -1
- package/dist/{chunk-D44ZXHH4.mjs → chunk-T4I5D4XZ.mjs} +1 -1
- package/dist/{chunk-TZE7RZAV.mjs → chunk-V5N56VWG.mjs} +1 -1
- package/dist/{chunk-KLCZHZKQ.mjs → chunk-WRPTP2UD.mjs} +1 -1
- package/dist/{chunk-4TCLIMFP.mjs → chunk-Z7P4QOKT.mjs} +1 -1
- package/dist/{chunk-HER7J6HM.mjs → chunk-ZIWHUQ4D.mjs} +1 -1
- package/dist/{chunk-OYHKHCKZ.mjs → chunk-ZOHEYTN6.mjs} +1 -1
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.js +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.js +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.js +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.js +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.js +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +2 -2
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +2 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +3 -3
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +3 -3
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +3 -3
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.js +2 -2
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.js +2 -2
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +20 -20
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +4 -4
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +4 -4
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.js +2 -2
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.js +2 -2
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.js +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.js +3 -3
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.js +3 -3
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.js +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.js +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.js +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.js +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.js +2 -2
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4BFLJVX2.mjs +0 -1
- package/dist/chunk-65RRHBNH.mjs +0 -1
- package/dist/chunk-7F7S63JI.mjs +0 -4
- package/dist/chunk-CHZM24IX.mjs +0 -1
package/dist/chunk-4BFLJVX2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-CHZM24IX.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-7F7S63JI.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import c from"next/image";import{FaEnvelope as g,FaPhoneFlip as v}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function y(a){let{sectionHeading:t,image:s}=a;return i("div",{className:"relative w-full light py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden md:w-[56%] md:rounded-r-5",children:e(c,{src:s.src,alt:s.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(m,{children:e("div",{className:"ml-auto md:w-1/2",children:i("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(n,{...t,invert:!0})}),e(l,{})]})})})]})}function S(a){return e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:i("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[i("div",{children:[e("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:a.locations&&a.locations.map((t,s)=>{var o;return i("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 text-primary",children:t.title}),i("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=t.location.split(","))==null?void 0:o.map((d,p)=>e("p",{children:d},p))," ",t.mails&&i("p",{className:"flex items-center space-x-2",children:[e(g,{className:"pr-2 text-primary size-auto"}),e("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&i("p",{className:"flex items-center space-x-2",children:[e(v,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},s)})})]})})})})}export{y as a,S as b};
|
package/dist/chunk-65RRHBNH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as w}from"./chunk-34X6LQ6U.mjs";import{a as F}from"./chunk-PDC45KCW.mjs";import{c as B,d as x}from"./chunk-VHNDMY6M.mjs";import{a as b}from"./chunk-RJGKFNZL.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Fragment as M}from"react";import j from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var N={content:w,cta:B,mediaBlock:b,collapsibleArea:F,imageBlock:b,features:x,reusableContentBlock:I},z=e=>{let{blocks:l}=e;return l&&Array.isArray(l)&&l.length>0?t("section",{id:"render-blocks",className:i(e.fill?"h-full w-full":""),children:l.map((a,r)=>{var c;let{blockType:s}=a,o=a==null?void 0:a.theme;if(s&&s in N){let u=N[s];if(s==="reusableContentBlock")return t(M,{children:t(z,{blocks:a.reusableContent.layout})},r);if(u)return g("div",{className:i("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(C,{block:a,index:r}),t("div",{className:i("container h-full relative",((c=o==null?void 0:o.settings)==null?void 0:c.theme)||"dark"),children:t(u,{...a})})]},r)}return null})}):null},C=e=>{var d,a,r,s,o;if(!("theme"in e.block))return t("div",{className:i("absolute inset-0 w-screen h-full dark bg-background")});let l=(d=e.block)==null?void 0:d.theme;if(l.settings.background==="image"){let c={imagePosition:l.settings.imagePosition||"left",overlay:l.settings.overlay!==void 0?l.settings.overlay:!0};return g("div",{className:i("absolute inset-0 w-full h-full bg-background",l.settings.theme||"dark"),children:[t(j,{src:((r=(a=l.settings)==null?void 0:a.image)==null?void 0:r.url)||"/placeholder.svg",alt:((o=(s=l.settings)==null?void 0:s.image)==null?void 0:o.alt)||"",fill:!0,className:"object-cover",priority:!0}),l.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:c.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:i("absolute inset-0 w-screen h-full bg-background",l.settings.theme||"dark")})},V=e=>{let{blocks:l}=e;return l&&Array.isArray(l)&&l.length>0?t("main",{id:"content-blocks",className:i(e.fill?"h-full w-full":""),children:l.map((a,r)=>{let{blockType:s}=a,o=a==null?void 0:a.theme;if(s&&s in N){let c=N[s];if(s==="reusableContentBlock")return t(M,{children:t(z,{blocks:a.reusableContent.layout})},r);if(c)return t(_,{block:a,allBlocks:l,index:r,children:t(c,{...a})})}return null})}):null},_=e=>{var u,y,R,P,T;if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:i("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:i("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let l=n=>n%2===0?"light":"dark",d=({index:n,allBlocks:m})=>n===1?t(A,{position:"left"}):r(n,m)==="dark"&&o(n,m)==="light"?t(S,{position:"left"}):r(n,m)==="light"&&o(n,m)==="dark"?t(A,{position:"left"}):null,a=({index:n,allBlocks:m})=>(console.log("BlockBottom index:",n,s(n,m),o(n,m)),s(n,m)==="light"&&o(n,m)==="dark"?(console.log("BlockBottom index:",n,"returning dark bottom"),t(S,{position:"left"})):null),r=(n,m)=>{var f,h;if(n===1)return"light";let k=m[n-1];return"theme"in k&&((h=(f=k.theme)==null?void 0:f.settings)==null?void 0:h.theme)==="light"?"light":"dark"},s=(n,m)=>{var f,h;if(n===m.length-1)return console.log("nextBlockTheme index:",n,"returning dark"),"dark";if(n===0)return"light";let k=m[n+1];return"theme"in k&&((h=(f=k.theme)==null?void 0:f.settings)==null?void 0:h.theme)==="light"?"light":"dark"},o=(n,m)=>{var f,h;if(n===m.length-1)return"dark";let k=m[n];return k.theme&&((h=(f=k.theme)==null?void 0:f.settings)==null?void 0:h.theme)==="light"?"light":"dark"};if(console.log("theme",e.block.theme,e.index),!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(console.log("no theme... index:",e.index,"continue as dark"),g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:i("absolute inset-0 w-screen dark bg-background")}),t("div",{className:i("container relative","dark bg-background"),children:e.children})]})):(console.log("no theme... index:",e.index,"new dark section"),g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(d,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:i("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:i("container relative","dark bg-background"),children:e.children})})]}));if(!("theme"in e.block)||r(e.index,e.allBlocks)===o(e.index,e.allBlocks)){console.log("contiune theme. index:",e.index),console.log("prevBlockTheme:",e.index,r(e.index,e.allBlocks)),console.log("currentBlockTheme:",e.index,o(e.index,e.allBlocks)),console.log("nextBlockTheme:",e.index,s(e.index,e.allBlocks));let n=o(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:i("absolute inset-0 w-screen bg-background",n)}),t("div",{className:i("container relative bg-background",n,n==="light"&&"p-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==o(e.index,e.allBlocks)){console.log("new theme. index:",e.index,"theme:",o(e.index,e.allBlocks)),console.log("prevBlockTheme:",e.index,r(e.index,e.allBlocks)),console.log("currentBlockTheme:",e.index,o(e.index,e.allBlocks)),console.log("nextBlockTheme:",e.index,s(e.index,e.allBlocks)),console.log(e.index,"content: ",e.block);let n=o(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(d,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:i("absolute inset-0 w-screen bg-background",n)}),t("div",{className:i("container relative bg-background min-h-[22em] content-center",n,n==="light"&&"p-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:i("container h-full relative","dark"),children:[t("div",{className:i("absolute inset-0 w-screen h-full dark bg-background")}),e.children]});let c=(u=e.block)==null?void 0:u.theme;if(c.settings.background==="image"){let n={imagePosition:c.settings.imagePosition||"left",overlay:c.settings.overlay!==void 0?c.settings.overlay:!0};return g("div",{className:i("absolute inset-0 w-full h-full bg-background",c.settings.theme||"dark"),children:[t(j,{src:((R=(y=c.settings)==null?void 0:y.image)==null?void 0:R.url)||"/placeholder.svg",alt:((T=(P=c.settings)==null?void 0:P.image)==null?void 0:T.alt)||"",fill:!0,className:"object-cover",priority:!0}),c.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return t("div",{className:i("absolute inset-0 w-screen h-full bg-background",c.settings.theme||"dark")})},A=({position:e})=>t("div",{className:"w-full aspect-[1920/332] z-20 relative bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 334",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)",bottom:"-2px",position:"absolute"},className:i("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),S=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as W,jsx as v,jsxs as X}from"react/jsx-runtime";var I=e=>{let{customId:l,reusableContent:d}=e;return typeof d=="object"&&d!==null?v(D,{blocks:d.layout}):v(W,{})},L={content:w,cta:B,mediaBlock:b,imageBlock:b,features:x},D=e=>{let{blocks:l}=e;return l&&Array.isArray(l)&&l.length>0?v(W,{children:l.map((a,r)=>{var c,u;let{blockType:s}=a,o=a==null?void 0:a.theme;if(s&&s in L){let y=L[s];if(y)return X("div",{className:"py-6 relative",children:[v(C,{block:a,index:r}),v("div",{className:i(((c=o==null?void 0:o.settings)==null?void 0:c.theme)==="dark"?"dark":((u=o==null?void 0:o.settings)==null?void 0:u.theme)==="green"?"green":""),children:v(y,{...a})})]},r)}return null})}):null};export{I as a,z as b,C as c,V as d,_ as e,A as f,S as g};
|
package/dist/chunk-7F7S63JI.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as C}from"./chunk-EG6XIOOJ.mjs";import{a as p}from"./chunk-NOEITQK2.mjs";import{a as f}from"./chunk-CTKUF2I6.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as h}from"formik";import{FaUser as N}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as e,jsxs as r}from"react/jsx-runtime";var t={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,t.tooShort).max(50,t.tooLong).required(t.required),email:m.string().email(t.email).required(t.required),subject:m.string().min(2,t.tooShort).max(50,t.tooLong).required(t.required),message:m.string().min(2,t.tooShort).max(300,t.tooLong).required(t.required)}),u=i("!pr-[44px] text-foreground"),g=i("!border-red-600 border"),d=i("sr-only");function T(){return e(h,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(a,{resetForm:s})=>{let o=await f(a);o.data===null?b.error(o.message):(b.success(o.message),s())},children:({errors:a,touched:s,values:o,handleChange:n,handleBlur:c,isSubmitting:l,handleSubmit:x})=>r("form",{onSubmit:x,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[r("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:n,onBlur:c,disabled:l,icon:e(N,{className:"text-primary"}),className:i(u,a.name&&s.name&&g)}),a.name&&s.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),r("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:n,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.email&&s.email&&g)}),a.email&&s.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),r("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:n,onBlur:c,disabled:l,className:i(u,a.subject&&s.subject&&g)}),a.subject&&s.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),r("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:n,onBlur:c,disabled:l,icon:e(y,{}),className:i(u,a.message&&s.message&&g)}),a.message&&s.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2 light",children:e(v,{type:"submit",className:"w-full outline rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:l,children:e("span",{children:"Send"})})})]})})}function w(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function y(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{T as a};
|
package/dist/chunk-CHZM24IX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as s}from"./chunk-VHNDMY6M.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:r,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[r&&t("span",{className:"mb-[.625rem] block font-bold uppercase text-accent md:text-md",children:r}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(s,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
|