@uniformdev/csk-components 6.0.84-alpha.1 → 6.0.86-alpha.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.
- package/dist/{accordion-item-A2CU5OKG.mjs → accordion-item-ULLV2BRJ.mjs} +1 -1
- package/dist/{banner-QXWN54B7.mjs → banner-4QNCOJXP.mjs} +1 -1
- package/dist/{carousel-X2W2VEGH.mjs → carousel-PCTBGT7M.mjs} +1 -1
- package/dist/carousel-W3SCTR5K.mjs +1 -0
- package/dist/chunk-2R23IIXO.mjs +1 -0
- package/dist/{chunk-H3OSPGNK.mjs → chunk-C42FGNCU.mjs} +1 -1
- package/dist/chunk-CEMXG4S3.mjs +1 -0
- package/dist/{chunk-Q3CRLNSQ.mjs → chunk-DBXG5BKX.mjs} +1 -1
- package/dist/chunk-F435GHK2.mjs +1 -0
- package/dist/{chunk-T6HZMAEP.mjs → chunk-H4YYFWGR.mjs} +1 -1
- package/dist/chunk-PIBMG73F.mjs +1 -0
- package/dist/chunk-XWVE2EED.mjs +1 -0
- package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
- package/dist/components/canvas/index.d.mts +2 -1
- package/dist/components/canvas/index.mjs +2 -2
- package/dist/components/ui/index.d.mts +4 -4
- package/dist/components/ui/index.mjs +1 -1
- package/dist/content/components/canvas/Accordion/accordion.tsx +5 -1
- package/dist/content/components/canvas/Card/card.tsx +2 -1
- package/dist/content/components/canvas/Carousel/carousel.tsx +2 -1
- package/dist/content/components/canvas/Container/container.tsx +4 -1
- package/dist/content/components/canvas/Container/parameters.ts +1 -0
- package/dist/content/components/canvas/DemoHero/columns-variant.tsx +3 -1
- package/dist/content/components/canvas/DemoHero/default-variant.tsx +6 -1
- package/dist/content/components/canvas/DemoHero/demo-hero.tsx +2 -1
- package/dist/content/components/canvas/Flex/flex.tsx +2 -0
- package/dist/content/components/canvas/Grid/grid.tsx +2 -1
- package/dist/content/components/canvas/ImageGallery/image-gallery.tsx +2 -1
- package/dist/content/components/canvas/Review/default-variant.tsx +2 -1
- package/dist/content/components/canvas/Review/multi-column-variant.tsx +2 -1
- package/dist/content/components/canvas/Section/columns-variant.tsx +3 -1
- package/dist/content/components/canvas/Section/default-variant.tsx +6 -1
- package/dist/content/components/canvas/Section/section.tsx +2 -0
- package/dist/content/components/canvas/Table/table.tsx +5 -1
- package/dist/content/components/canvas/Tabs/tabs.tsx +5 -1
- package/dist/content/components/canvas/Testimonial/default-variant.tsx +3 -2
- package/dist/content/components/canvas/Testimonial/testimonial.tsx +2 -0
- package/dist/content/components/canvas/Testimonial/with-large-avatar-variant.tsx +3 -2
- package/dist/content/components/canvas/Testimonial/with-overlapping-image-variant.tsx +3 -2
- package/dist/content/components/ui/Container/container.tsx +3 -0
- package/dist/content/components/ui/Container/index.ts +1 -0
- package/dist/content/components/ui/Flex/flex.tsx +3 -1
- package/dist/content/components/ui/Flex/index.ts +1 -0
- package/dist/content/components/ui/Grid/grid.tsx +3 -1
- package/dist/content/components/ui/Grid/index.ts +1 -1
- package/dist/image-gallery-IYJI5V7T.mjs +1 -0
- package/dist/{index-GfacBA0f.d.mts → index-Bo0jbwJv.d.mts} +1 -0
- package/dist/{mobile-PRXIDJ7S.mjs → mobile-MRAEZAWR.mjs} +1 -1
- package/dist/{navigation-flyout-MH7LKGJ2.mjs → navigation-flyout-3SK6VRHA.mjs} +1 -1
- package/dist/tabs-75KAGSVH.mjs +1 -0
- package/package.json +4 -4
- package/dist/carousel-JVL3HRFG.mjs +0 -1
- package/dist/chunk-CFF343FV.mjs +0 -1
- package/dist/chunk-GKTFFPF4.mjs +0 -1
- package/dist/chunk-HLLKGZN6.mjs +0 -1
- package/dist/chunk-RZFK2OR7.mjs +0 -1
- package/dist/chunk-VZCFPWET.mjs +0 -1
- package/dist/image-gallery-GDHVDVIL.mjs +0 -1
- package/dist/tabs-CYLXRNAY.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{a as p}from"./chunk-QHIWJPL6.mjs";import{a as n}from"./chunk-
|
|
1
|
+
"use client";import{a as p}from"./chunk-QHIWJPL6.mjs";import{a as n}from"./chunk-F435GHK2.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as P,useState as B}from"react";import{UniformSlot as N,UniformText as R}from"@uniformdev/canvas-next-rsc/component";import{jsx as c}from"react/jsx-runtime";var f=({className:t,...o})=>c("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50013 0L0 7.13651L1.95843 9L7.5 3.7271L13.0416 9L15 7.13651L7.50013 0Z",fill:"currentColor"})});import{jsx as d}from"react/jsx-runtime";var a=({className:t,...o})=>d("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49987 9L15 1.86349L13.0416 0L7.5 5.2729L1.95843 0L0 1.86349L7.49987 9Z",fill:"currentColor"})});import{jsx as e,jsxs as w}from"react/jsx-runtime";var q=({tag:t,alignment:o,color:u,size:x,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,slots:S,component:l,context:i,backgroundColor:r,spacing:I,className:A})=>{let[s,G]=B(!1),V=P(()=>G(F=>!F),[]);return w(n,{fluidContent:!0,fullHeight:!1,children:[e(n,{backgroundColor:r,spacing:I,fluidContent:!0,className:A,children:w("button",{onClick:V,className:"flex w-full flex-row items-center justify-between text-start",children:[e(p,{alignment:o,color:u,size:x,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,children:e(R,{placeholder:"Text goes here",parameterId:"text",as:t||void 0,component:l,context:i})}),e("div",{className:m({[`text-${r} invert`]:!!r,"text-black dark:text-white":!r}),children:s?e(f,{}):e(a,{})})]})}),s&&e(N,{data:l,context:i,slot:S.accordionItemContent})]})};export{q as AccordionItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"./chunk-
|
|
1
|
+
"use client";import"./chunk-H4YYFWGR.mjs";import{a as i}from"./chunk-F435GHK2.mjs";import"./chunk-MSXDLSXH.mjs";import{c as e}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as L,useState as S}from"react";import{UniformSlot as V}from"@uniformdev/canvas-next-rsc/component";import{jsx as s}from"react/jsx-runtime";var h=({className:t,...o})=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:e("size-5",t),...o,children:s("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})}),y=({onClose:t,iconColor:o})=>s("button",{onClick:t,className:e("absolute right-5 top-1/2 -translate-y-1/2",{[`text-${o}`]:o}),children:s(h,{})}),C=y;var f=({variant:t,floating:o})=>e({"!w-11/12 left-1/2 -translate-x-1/2 my-4":o&&!!t,"fixed top-0 w-full z-10":t==="top","fixed bottom-0 w-full z-10":t==="bottom","p-4":o&&!t}),u=({contentAlignment:t,iconColor:o,fluidContent:r,floating:n})=>e("flex flex-row gap-x-4",{"justify-start":t==="left","justify-center":t==="center","justify-end":t==="right","pr-10":t==="right"&&o,"!mx-0":!r,"rounded-lg":n});import{jsx as p,jsxs as k}from"react/jsx-runtime";var X=({component:t,context:o,backgroundColor:r,spacing:n,border:c,fluidContent:a,slots:P,iconColor:l,contentAlignment:x="center",floating:m=!1})=>{let[d,B]=S(!0),g=L(()=>{B(!1)},[]);if(!d)return null;let w=f({variant:t.variant,floating:m}),b=u({contentAlignment:x,iconColor:l,fluidContent:a,floating:m});return p(i,{className:w,fluidContent:a,border:c,children:k(i,{className:e("relative w-full",b),backgroundColor:r,spacing:n,fluidContent:a,children:[p(V,{data:t,context:o,slot:P.bannerContent}),l&&p(C,{onClose:g,iconColor:l})]})})};export{X as Banner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"./chunk-
|
|
1
|
+
"use client";import"./chunk-PIBMG73F.mjs";import{a as p}from"./chunk-F435GHK2.mjs";import{a as x,c as s}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as h,useEffect as N,useMemo as S,useRef as T,useState as y}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var H=({countOfItems:o,backgroundColor:t,spacing:w,border:C,fluidContent:k,fullHeight:z,itemsPerPage:E="1",children:P,gapX:c,variant:b="default"})=>{let u=T(null),[f,m]=y(0),[R,$]=y(!1),l=Number(E),n=S(()=>o?l>1?Math.ceil(o/l):o:0,[o,l]);N(()=>{let e=()=>$(r=>!r);return window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[]),N(()=>{if(u.current){let{clientWidth:e}=u.current;u.current.scrollLeft=f*e}},[f,R]);let d=h(()=>{m(e=>e===0?n-1:e-1)},[n]),v=h(()=>{m(e=>e===n-1?0:e+1)},[n]),L=()=>b==="brochure"?a("div",{className:s("flex py-4 px-4 z-5 gap-x-4 justify-end items-center"),children:[i("button",{onClick:d,children:"\u276E"}),i("div",{className:"flex items-center gap-2",children:Array.from({length:n}).map((e,r)=>i("button",{onClick:()=>m(r),className:s("h-2 rounded-full transition-all duration-300 size-2 opacity-50",{"w-6 opacity-100":r===f,[`bg-${t} invert`]:!!t,"bg-black dark:bg-white":!t}),"aria-label":`Go to slide ${r+1}`},`slide-${r}`))}),i("button",{onClick:v,children:"\u276F"})]}):b==="numeric"?a("div",{className:s("flex py-4 px-4 z-5 gap-x-4 justify-end items-center",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[i("button",{onClick:d,children:"\u276E"}),a("div",{className:"flex flex-col px-2",children:[f+1," of ",n]}),i("button",{onClick:v,children:"\u276F"})]}):a("div",{className:s("absolute inset-x-5 top-1/2 flex -translate-y-1/2 justify-between",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[i("button",{onClick:d,children:"\u276E"}),i("button",{onClick:v,children:"\u276F"})]}),M=()=>P({className:s("flex size-full items-center justify-center",{[x(c,"px-{value}")]:c}),style:{minWidth:l>1?`calc(${100/l}%)`:"100%"}});return i(p,{backgroundColor:t,spacing:w,border:C,fluidContent:k,fullHeight:z,children:a("div",{className:s("relative",{[x(c,"-mx-{value}")]:c}),children:[i("div",{ref:u,className:"flex overflow-x-hidden scroll-smooth",children:M()}),L()]})})};export{H as Carousel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as s}from"./chunk-PIBMG73F.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as I}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var F=({slots:r,component:e,context:t,backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,fitHeight:f,itemsPerPage:C,gapX:n})=>o(s,{backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,fitHeight:f,itemsPerPage:C,gapX:n,countOfItems:r.carouselItems?.items.length??0,variant:e.variant,children:({className:p,style:c})=>o(I,{context:t,slot:r.carouselItems,data:e,children:({child:v,key:d})=>o("div",{className:p,style:c,children:v},d)})});export{F as Carousel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as xe,d as ye,e as he,f as Re,g as Ne,h as I}from"./chunk-C42FGNCU.mjs";import{a as ve}from"./chunk-QHIWJPL6.mjs";import{a as q}from"./chunk-SDTLQ3CZ.mjs";import{a as f}from"./chunk-F435GHK2.mjs";import{a as $}from"./chunk-JNIJ5N3Y.mjs";import{a as d}from"./chunk-MSXDLSXH.mjs";import{c as ge}from"./chunk-RX4IAAQQ.mjs";import{c}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Te}from"@uniformdev/canvas-next-rsc/component";import{jsx as X,jsxs as vo}from"react/jsx-runtime";var xo=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m})=>vo(f,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,children:[X("div",{className:"flex flex-col gap-4 text-start",children:X(Te,{data:o,context:t,slot:e.accordionContent})}),X(Te,{data:o,context:t,slot:e.accordionItems})]});import{jsx as be}from"react/jsx-runtime";var yo=e=>{switch(e.slotName){case"accordionContent":return{component:()=>be("div",{className:"h-20"})};case"accordionItems":return{component:()=>be("div",{className:"h-28"})};default:return d}};var we=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(we||{});import{UniformSlot as Ee}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ro}from"react/jsx-runtime";var ho=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>Ro("div",{className:"h-20"})};default:return d}};var Fe=(o=>(o.BackgroundImage="backgroundImage",o))(Fe||{}),He=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(He||{});import{jsx as V,jsxs as To}from"react/jsx-runtime";var No=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,className:l,contentClassName:p})=>{let P=e.variant==="backgroundImage";return To(f,{className:c("relative overflow-hidden",l),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,children:[V("div",{className:c({"inset-0 size-full absolute":P}),children:V(Ee,{data:e,context:o,slot:t.cardMedia})}),V("div",{className:c("relative flex flex-col gap-y-2",p),children:V(Ee,{data:e,context:o,slot:t.cardContent})})]})};import Ho from"next/dynamic";import{jsx as wo}from"react/jsx-runtime";var bo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>wo("div",{className:"mx-20 h-20 w-full"})};default:return d}};var Ae=(o=>(o.Items="carouselItems",o))(Ae||{}),Br=Ho(()=>import("./carousel-W3SCTR5K.mjs").then(e=>e.Carousel));import{UniformSlot as Ue}from"@uniformdev/canvas-next-rsc/component";import{UniformText as Be}from"@uniformdev/canvas-next-rsc/component";import{jsx as g}from"react/jsx-runtime";var D=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:g(ve,{...a,children:g(Be,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},Le=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=ge(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:g(xe,{...a,href:s,icon:g(()=>{let[p]=$(n),{url:P,title:C=""}=p||{};return P?g(q,{src:P,alt:C,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:g(Be,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Ie=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l,priority:p,unoptimized:P})=>{let[C]=$(t);if(!C){let G=o.previewMode==="editor"&&o.isContextualEditing,Y=e?._id?.includes("placeholder_");return!G||Y||!e.variant?null:g("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:g(ye,{type:"image",placeholder:"Please add an asset to display an image"})})}let{url:W,title:K=""}=C;return g(q,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:W,alt:K,fill:!0,unoptimized:P,priority:p,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l})};import{jsx as T,jsxs as Ve}from"react/jsx-runtime";var De=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,variant:n,demoHeroMedia:s,demoHeroContent:m,demoHeroCTA:l,textAlignmentClass:p,buttonAlignmentClass:P})=>T(f,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,children:Ve("div",{className:c("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:c("aspect-square",{"order-last":n==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:s})}),Ve("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:c("flex flex-col gap-4",p),children:m}),T("div",{className:c("flex flex-wrap gap-2 items-center",P),children:l})]})]})});import{jsx as Q,jsxs as Se}from"react/jsx-runtime";var Oe=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,demoHeroMedia:n,demoHeroContent:s,demoHeroCTA:m,textAlignmentClass:l,buttonAlignmentClass:p})=>Se(f,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,children:[Q("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:n}),Se(f,{className:"relative flex flex-col gap-8",children:[Q("div",{className:c("flex flex-col gap-4",l),children:s}),Q("div",{className:c("flex flex-wrap gap-2 items-center",p),children:m})]})]});var ke=({contentAlignment:e})=>c("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Me=({contentAlignment:e})=>c("text-center",{"text-start":e==="left","text-end":e==="right"});var h=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});import{Fragment as Z,jsx as u,jsxs as Fo}from"react/jsx-runtime";var S=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p,titleText:P,titleTag:C,titleSize:W,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:bt,titleLineCountRestrictions:wt,descriptionText:Ht,descriptionTag:Ft,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:Dt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:Ot,primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt,image:jt,imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo,contentAlignment:ce,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,fitHeight:uo,isFlexibleHero:fe=!1,component:x,context:v,slots:Pe})=>{let ue=x.variant,Co=fe?u(Ue,{data:x,context:v,slot:Pe.flexibleHeroContent}):Fo(Z,{children:[u(D,{...h({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p},"eyebrowTitle"),component:x,context:v,parameterId:"eyebrowTitleText"}),u(D,{...h({titleText:P,titleTag:C,titleSize:W,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:bt,titleLineCountRestrictions:wt},"title"),component:x,context:v,parameterId:"titleText"}),u(D,{...h({descriptionText:Ht,descriptionTag:Ft,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:Dt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:Ot},"description"),component:x,context:v,parameterId:"descriptionText"})]}),go=fe?u(Ue,{data:x,context:v,slot:Pe.flexibleHeroCta}):u(Z,{children:u(Le,{...h({primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt},"primaryButton"),component:x,context:v,parameterId:"primaryButtonText"})}),Ce={variant:ue,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,fitHeight:uo,textAlignmentClass:Me({contentAlignment:ce}),buttonAlignmentClass:ke({contentAlignment:ce}),demoHeroMedia:u(Z,{children:u(Ie,{image:jt,...h({imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo},"image"),component:x,context:v})}),demoHeroContent:Co,demoHeroCTA:go};switch(ue){case"columns":case"columnsReverse":return u(De,{...Ce});default:return u(Oe,{...Ce})}};import{jsx as Eo}from"react/jsx-runtime";var ze=({textColor:e,enableOverlayAutoTint:o=!1,...t})=>Eo(S,{...t,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||t.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"5xl",desktop:"5xl"},titleWeight:"bold",titleColor:e||t.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||t.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextColor:"text-light",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!t.component.variant&&o?e:void 0,imageOverlayOpacity:"0.3",spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!t.component.variant,isFlexibleHero:!1});import{jsx as Ao}from"react/jsx-runtime";var We=e=>Ao(S,{...e,isFlexibleHero:!0});import{jsx as Ke}from"react/jsx-runtime";var Bo=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Ke("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Ke("div",{className:"mx-40 h-20 w-full"})};default:return d}};var _e=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(_e||{}),J=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(J||{}),Ge=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ge||{}),Lo={FixedHero:ze,FlexibleHero:We},Ea=Lo;import{UniformSlot as j}from"@uniformdev/canvas-next-rsc/component";import{jsx as O}from"react/jsx-runtime";var Ye=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>O(he,{logo:O(j,{context:e,slot:t.footerLogo,data:o}),copyright:O(j,{context:e,slot:t.footerCopyright,data:o}),content:O(j,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ee}from"react/jsx-runtime";var Io=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ee("div",{className:"h-20 w-48"})};default:return d}};var $e=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))($e||{}),Ua=Ye;import{UniformSlot as te}from"@uniformdev/canvas-next-rsc/component";import{jsx as k}from"react/jsx-runtime";var qe=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>k(Re,{sticky:i.variant==="sticky",leftSection:k(te,{context:a,slot:n.headerLeftContent,data:i}),rightSection:k(te,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:k(te,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as oe}from"react/jsx-runtime";var Vo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>oe("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>oe("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>oe("div",{className:"h-20 w-48"})};default:return d}};var Je=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Je||{}),Xe=(o=>(o.Sticky="sticky",o))(Xe||{}),ti=qe;import Oo from"next/dynamic";import{jsx as So}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>So("div",{className:" mx-auto size-48"})};default:return d}};var Qe=(o=>(o.Items="imageGalleryItems",o))(Qe||{}),li=Oo(()=>import("./image-gallery-IYJI5V7T.mjs").then(e=>e.ImageGallery));import Mo from"next/dynamic";import{jsx as Ze}from"react/jsx-runtime";var ko=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};default:return d}};var xi=Mo(()=>import("./navigation-flyout-3SK6VRHA.mjs").then(e=>e.NavigationFlyout));import zo from"next/dynamic";import{jsx as Uo}from"react/jsx-runtime";var _o=e=>{switch(e.slotName){case"links":return{component:()=>Uo("div",{className:"h-40 w-48"})};default:return d}};var Hi=zo(()=>import("./navigation-group-7WBDV5IY.mjs").then(e=>e.NavigationGroup));import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var Wo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>M(Ne,{backgroundColor:r,header:M(re,{context:t,slot:e.pageHeader,data:o,children:a}),footer:M(re,{context:t,slot:e.pageFooter,data:o,children:n}),children:M(re,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as ae}from"react/jsx-runtime";var Ko=e=>{switch(e.slotName){case"pageHeader":return{component:()=>ae("div",{className:"h-40"})};case"pageContent":return{component:()=>ae("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>ae("div",{className:"h-40"})};default:return d}};var je=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(je||{});import{UniformSlot as ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as b}from"react/jsx-runtime";var Go=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?b("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};default:return d}};var ie=(o=>(o.MultiColumn="multiColumn",o))(ie||{}),et=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(et||{});import{jsx as w,jsxs as tt}from"react/jsx-runtime";var ot=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,ReviewImage:p,ReviewPersonInfo:P,ReviewContent:C})=>w(f,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,children:tt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[w("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:p}),tt("div",{className:"ml-6",children:[P,w("div",{className:"py-4",children:w(I,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),w("div",{className:"flex flex-col gap-y-5",children:C})]})]})});import{jsx as R,jsxs as rt}from"react/jsx-runtime";var at=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,ReviewImage:p,ReviewPersonInfo:P,ReviewContent:C})=>R(f,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,children:rt("div",{className:"grid md:grid-cols-12",children:[rt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[R("div",{className:"mb-2 aspect-square size-12 rounded-full",children:p}),R("div",{className:"flex flex-col gap-y-1",children:P})]}),R("div",{className:"my-2 md:col-span-4 md:my-0",children:R(I,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),R("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:C})]})});import{jsx as H}from"react/jsx-runtime";var Yo=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:H(ne,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:H(ne,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:H(ne,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return H(at,{...i});default:return H(ot,{...i})}};import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as se}from"react/jsx-runtime";var $o=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:se("div",{className:"size-full"})};case"sectionContent":return{component:()=>se("div",{className:"h-20"})};case"sectionCTA":return{component:()=>se("div",{className:"mx-40 h-20 w-full"})};default:return d}};var nt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(nt||{}),me=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(me||{}),it=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(it||{});import{jsx as F,jsxs as st}from"react/jsx-runtime";var mt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,variant:n,sectionMedia:s,sectionContent:m,sectionCTA:l,textAlignmentClass:p,buttonAlignmentClass:P})=>F(f,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,children:st("div",{className:c("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[F("div",{className:c("aspect-square",{"order-last":n==="columnsReverse"}),children:F("div",{className:"flex size-full items-center justify-center overflow-hidden",children:s})}),st("div",{className:"flex flex-col justify-center gap-8",children:[F("div",{className:c("flex flex-col gap-4",p),children:m}),F("div",{className:c("flex flex-wrap gap-2",P),children:l})]})]})});import{jsx as le,jsxs as lt}from"react/jsx-runtime";var pt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,sectionMedia:n,sectionContent:s,sectionCTA:m,textAlignmentClass:l,buttonAlignmentClass:p})=>lt(f,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,children:[le("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:n}),lt(f,{className:"relative flex flex-col gap-8",children:[le("div",{className:c("flex flex-col gap-4",l),children:s}),le("div",{className:c("flex flex-wrap gap-2",p),children:m})]})]});var dt=({contentAlignment:e})=>c("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),ct=({contentAlignment:e})=>c("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as E}from"react/jsx-runtime";var qo=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l})=>{let p=t.variant,P={variant:p,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,textAlignmentClass:ct({contentAlignment:e}),buttonAlignmentClass:dt({contentAlignment:e}),sectionMedia:E(pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:E(pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:E(pe,{data:t,context:r,slot:o.sectionCTA})};switch(p){case"columns":case"columnsReverse":return E(mt,{...P});default:return E(pt,{...P})}};import{UniformSlot as Pt}from"@uniformdev/canvas-next-rsc/component";var ft=({size:e,textColor:o})=>c("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as Jo}from"react/jsx-runtime";var Xo=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p})=>N(f,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,children:N("div",{className:"overflow-x-auto",children:Jo("table",{className:ft({size:e,textColor:o}),children:[N("thead",{children:N(Pt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Pt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as ut}from"react/jsx-runtime";var Qo=e=>{switch(e.slotName){case"tableHead":return{component:()=>ut("tr",{className:"h-20"})};case"tableBody":return{component:()=>ut("tr",{className:"h-40"})};default:return d}};var Ct=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(Ct||{});import{UniformSlot as z}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var Zo=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>_("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>_("div",{className:"h-20 w-64"})};default:return d}};var xt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(xt||{}),gt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(gt||{});import{jsx as A,jsxs as er}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l})=>A(f,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,children:er("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[A("div",{children:r}),A("div",{className:"my-8",children:o}),A("div",{className:"size-10 rounded-full",children:e}),A("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as B,jsxs as U}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l})=>B(f,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,children:U("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[B("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),U("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),U("div",{className:"flex items-center justify-between",children:[U("div",{className:"flex items-center gap-x-4",children:[B("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),B("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as L,jsxs as de}from"react/jsx-runtime";var ht=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l})=>L(f,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,children:L(f,{className:"pb-10 lg:pb-0",children:de("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[L("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),de("div",{className:"flex flex-col gap-y-8",children:[L("div",{className:"",children:o}),de("div",{className:"flex items-center justify-between",children:[L("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as y}from"react/jsx-runtime";var jo=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m})=>{let l=o.variant,p={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,testimonialPrimaryImage:y(z,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:y(z,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:y(z,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:y(z,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(l){case"withLargeAvatar":return y(yt,{...p});case"withOverlappingImage":return y(ht,{...p});default:return y(vt,{...p})}};export{xo as a,we as b,yo as c,No as d,Fe as e,He as f,ho as g,Ae as h,Br as i,bo as j,_e as k,J as l,Ge as m,Ea as n,Bo as o,$e as p,Ua as q,Io as r,Je as s,Xe as t,ti as u,Vo as v,Qe as w,li as x,Do as y,xi as z,ko as A,Hi as B,_o as C,Wo as D,je as E,Ko as F,Yo as G,ie as H,et as I,Go as J,qo as K,nt as L,me as M,it as N,$o as O,Xo as P,Ct as Q,Qo as R,jo as S,xt as T,gt as U,Zo as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,c as w}from"./chunk-6TUDWIYU.mjs";import{a as F}from"./chunk-QHIWJPL6.mjs";import{a as R,b as d}from"./chunk-
|
|
1
|
+
import{b as B,c as w}from"./chunk-6TUDWIYU.mjs";import{a as F}from"./chunk-QHIWJPL6.mjs";import{a as R,b as d}from"./chunk-XWVE2EED.mjs";import{a as m}from"./chunk-F435GHK2.mjs";import{d as y}from"./chunk-RX4IAAQQ.mjs";import{a as g,c as a}from"./chunk-S7CSCIW4.mjs";import A from"next/link";import{jsx as _}from"react/jsx-runtime";var x=({children:o,link:e,openInNewTab:t,rel:i,className:r})=>_(A,{href:e,className:a("[&:hover_img]:scale-[0.98] [&_img]:transition-transform hover:underline transition-transform",r),target:t?"_blank":"_self",rel:i,children:o});var L=(e=>(e.Link="link",e))(L||{});import{jsx as H,jsxs as Z}from"react/jsx-runtime";var O=({children:o,href:e,className:t,onClick:i})=>{let r=y(e);return e?H(x,{className:t,link:e,openInNewTab:r,rel:r?"noopener noreferrer":"",children:o}):H("button",{onClick:i,className:t,children:o})},E=({variant:o,children:e,href:t,className:i,onClick:r,textColor:n,textSize:s,buttonColor:p,isActive:W,icon:c,iconPosition:z,border:h="",textTransform:u="",textWeight:P,textFont:C,size:N,hoverButtonColor:k,hoverTextColor:b})=>{let D=a("block w-max font-medium focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50",{[`text-${n}`]:n,[`hover:text-${b}`]:b,"flex flex-row gap-x-2":c,"flex-row-reverse":c&&z==="right",[`font-${C}`]:!!C,[`font-${P}`]:!!P,[`p-${N}`]:N,[u]:!!u,[g(h,"{value}")]:h,[g(s,"text-{value}")]:s}),G=a({[`bg-${p}`]:p,[`hover:bg-${k}`]:k}),V=a("bg-transparent hover:underline hover:opacity-100",{[`hover:decoration-${p}`]:p,"!underline":t===W});return Z(O,{href:t,onClick:r,className:a(D,{[G]:!o,[V]:o==="link"},i),children:[c,e]})};import{jsx as T,jsxs as J}from"react/jsx-runtime";var q=({type:o,placeholder:e})=>J("div",{className:"flex aspect-video size-full flex-col items-center justify-center bg-white text-black dark:bg-black dark:text-white",children:[T(o==="video"?w:B,{className:"size-1/2 max-h-36 max-w-36"}),!!e&&T(F,{className:"text-center",weight:"bold",children:e})]});import{jsx as v,jsxs as S}from"react/jsx-runtime";var K=({logo:o,content:e,copyright:t,backgroundColor:i,spacing:r,border:n,fluidContent:s})=>v("footer",{children:v(m,{backgroundColor:i,spacing:r,border:n,fluidContent:s,children:S(m,{className:"flex w-full flex-col justify-between gap-4 md:flex-row",children:[S("div",{className:"flex flex-col gap-2 gap-y-4 md:w-1/2",children:[o,t]}),v("div",{children:e})]})})});import U from"next/dynamic";import{jsx as l,jsxs as Q}from"react/jsx-runtime";var M=({leftSection:o,rightSection:e,children:t,backgroundColor:i,spacing:r,border:n,className:s})=>l("nav",{children:l(m,{fluidContent:!0,backgroundColor:i,spacing:r,border:n,className:s,children:Q(R,{className:"items-center",columnsCount:"12",children:[l(d,{columnSpan:"span-3",children:l("div",{className:"flex items-center justify-start",children:o})}),l(d,{columnSpan:"span-6",children:l("div",{className:"flex items-center justify-center gap-x-8",children:t})}),l(d,{columnSpan:"span-3",children:l("div",{className:"flex items-center justify-end gap-x-4",children:e})})]})})});import{jsx as f,jsxs as j}from"react/jsx-runtime";var X=U(()=>import("./mobile-MRAEZAWR.mjs").then(o=>o.MobileHeader)),Y=({sticky:o,...e})=>j("header",{className:a({"sticky top-0 shadow z-10":o}),children:[f("div",{className:"hidden md:block",children:f(M,{...e})}),f("div",{className:"block md:hidden",children:f(X,{...e})})]});import{jsx as oe,jsxs as te}from"react/jsx-runtime";var ee=({className:o,header:e,footer:t,children:i,backgroundColor:r,...n})=>te("div",{className:a("flex min-h-screen flex-col",o,{[`bg-${r}`]:!!r}),...n,children:[e,oe("div",{className:"flex flex-1 flex-col",children:i}),t]});import{jsx as $,jsxs as I}from"react/jsx-runtime";var re=({rating:o,showReviewLabel:e,starsColor:t,activeStarsColor:i})=>I("div",{className:"flex items-center space-x-1",children:[Array.from({length:5},(r,n)=>{let s=o>=n+1;return $("svg",{className:a("w-5 h-5",{[`fill-${t}`]:!s,[`fill-${i}`]:s}),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 20",children:$("path",{d:"M20.924 7.625a1.523 1.523 0 0 0-1.238-1.044l-5.051-.734-2.259-4.577a1.534 1.534 0 0 0-2.752 0L7.365 5.847l-5.051.734A1.535 1.535 0 0 0 1.463 9.2l3.656 3.563-.863 5.031a1.532 1.532 0 0 0 2.226 1.616L11 17.033l4.518 2.375a1.534 1.534 0 0 0 2.226-1.617l-.863-5.03L20.537 9.2a1.523 1.523 0 0 0 .387-1.575Z"})},n)}),e&&I("div",{className:"text-sm leading-[3px]",children:["(",o,"/5)"]})]});export{x as a,E as b,L as c,q as d,K as e,Y as f,ee as g,re as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-F435GHK2.mjs";import{a as e,c as i}from"./chunk-S7CSCIW4.mjs";import{jsx as n}from"react/jsx-runtime";var v=({className:r,wrapperClassName:t,direction:o,justifyContent:l,gap:a,alignItems:p,backgroundColor:f,spacing:P,border:c,fluidContent:y,fullHeight:x,fitHeight:s,children:u})=>n(m,{backgroundColor:f,spacing:P,border:c,fluidContent:y,fullHeight:x,fitHeight:s,wrapperClassName:t,children:n("div",{className:i("flex",{[e(o,"flex-{value}")]:o,[e(l,"justify-{value}")]:l,[e(a,"gap-{value}")]:a,[e(p,"items-{value}")]:p,"h-full":s},r),children:u})});import{jsx as g}from"react/jsx-runtime";var d=({className:r,alignSelf:t,shrink:o,children:l})=>g("div",{className:i({[e(t,"self-{value}")]:t,[`shrink-${o}`]:o},r),children:l});import F from"next/dynamic";var B=F(()=>import("./video-RC2QHJS2.mjs").then(r=>r.Video));export{v as a,d as b,B as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-MSXDLSXH.mjs";import s from"next/dynamic";import{jsx as a}from"react/jsx-runtime";var p=e=>{switch(e.slotName){case"tabItems":return{component:()=>a("div",{className:"h-20 w-full"})};default:return r}};var l=(o=>(o.Default="default",o.Bordered="bordered",o))(l||{}),t=(m=>(m.TabItems="tabItems",m))(t||{}),c=s(()=>import("./tabs-
|
|
1
|
+
import{a as r}from"./chunk-MSXDLSXH.mjs";import s from"next/dynamic";import{jsx as a}from"react/jsx-runtime";var p=e=>{switch(e.slotName){case"tabItems":return{component:()=>a("div",{className:"h-20 w-full"})};default:return r}};var l=(o=>(o.Default="default",o.Bordered="bordered",o))(l||{}),t=(m=>(m.TabItems="tabItems",m))(t||{}),c=s(()=>import("./tabs-75KAGSVH.mjs").then(e=>e.Tabs));export{l as a,t as b,c,p as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as c,c as t}from"./chunk-S7CSCIW4.mjs";import{jsx as d}from"react/jsx-runtime";var y=({className:x,wrapperClassName:w,style:b,children:P,backgroundColor:o,spacing:T,border:i="",fluidContent:a=!1,fullHeight:h=!1,fitHeight:p=!1,maxWidth:r,...C})=>{let[V,{marginTop:l,marginBottom:n,marginRight:m,marginLeft:s,paddingTop:g,paddingBottom:u,paddingRight:f,paddingLeft:v}]=c(T);return d("div",{className:t("px-4 xl:px-0",{"!px-0":a,"mx-auto w-full":!a,"max-w-7xl max-w-container-width":!r&&!a,[`max-w-${r}`]:!!r&&!a,"h-full":p},w),children:d("div",{className:t({"!h-screen":h,"h-full":p,[`bg-${o}`]:!!o,[e(l,"mt-{value}")]:l,[e(n,"mb-{value}")]:n,[e(m,"mr-{value}")]:m,[e(s,"ml-{value}")]:s,[e(g,"pt-{value}")]:g,[e(u,"pb-{value}")]:u,[e(f,"pr-{value}")]:f,[e(v,"pl-{value}")]:v,[e(i,"{value}")]:i},x),style:{...V,...b},...C,children:P})})};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-MSXDLSXH.mjs";import p from"next/dynamic";import{jsx as m}from"react/jsx-runtime";var a=e=>{switch(e.slotName){case"bannerContent":return{component:()=>m("div",{className:"h-20 w-full"})};default:return o}};var l=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(l||{}),t=(n=>(n.BannerContent="bannerContent",n))(t||{}),h=p(()=>import("./banner-
|
|
1
|
+
import{a as o}from"./chunk-MSXDLSXH.mjs";import p from"next/dynamic";import{jsx as m}from"react/jsx-runtime";var a=e=>{switch(e.slotName){case"bannerContent":return{component:()=>m("div",{className:"h-20 w-full"})};default:return o}};var l=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(l||{}),t=(n=>(n.BannerContent="bannerContent",n))(t||{}),h=p(()=>import("./banner-4QNCOJXP.mjs").then(e=>e.Banner));export{l as a,t as b,h as c,a as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"next/dynamic";var o=t(()=>import("./carousel-PCTBGT7M.mjs").then(e=>e.Carousel));export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-F435GHK2.mjs";import{a as e,c as l}from"./chunk-S7CSCIW4.mjs";import{jsx as s}from"react/jsx-runtime";var C=({className:i,columnsCount:a,gapX:o,gapY:r,backgroundColor:t,spacing:m,border:u,fluidContent:f,fullHeight:v,fitHeight:p,children:d})=>s(n,{backgroundColor:t,spacing:m,border:u,fluidContent:f,fullHeight:v,fitHeight:p,children:s("div",{className:l("grid",{[e(a,"grid-cols-{value}")]:a,[e(o,"gap-x-{value}")]:o,[e(r,"gap-y-{value}")]:r,"h-full":p},i),children:d})});import{jsx as A}from"react/jsx-runtime";var b=({className:i,columnStart:a,columnSpan:o,rowStart:r,rowSpan:t,children:m})=>A("div",{className:l({[e(a,"col-start-{value}")]:a,[e(o,"col-{value}")]:o,[e(r,"row-start-{value}")]:r,[e(t,"row-{value}")]:t},i),children:m});export{C as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,C as n,F as P,J as h,O as E,R as f,V as g,c as e,g as m,j as l,o as a,r as p,v as i,y as c}from"../../chunk-
|
|
1
|
+
import{A as y,C as n,F as P,J as h,O as E,R as f,V as g,c as e,g as m,j as l,o as a,r as p,v as i,y as c}from"../../chunk-2R23IIXO.mjs";import{d}from"../../chunk-2SEOCBRK.mjs";import{d as s}from"../../chunk-DBXG5BKX.mjs";import"../../chunk-C42FGNCU.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-QHIWJPL6.mjs";import{d as r}from"../../chunk-H4YYFWGR.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-XWVE2EED.mjs";import"../../chunk-SDTLQ3CZ.mjs";import"../../chunk-F435GHK2.mjs";import"../../chunk-3PDY7RJC.mjs";import"../../chunk-JNIJ5N3Y.mjs";import{b as o}from"../../chunk-MSXDLSXH.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";var u={accordion:e,banner:r,card:m,carousel:l,countdown:t,flexibleHero:a,footer:p,header:i,imageGallery:c,modal:d,navigationFlyout:y,navigationGroup:n,page:P,review:h,section:E,table:f,tabs:s,testimonial:g},K=u,L=o(u);export{K as default,L as emptyPlaceholderResolver};
|
|
@@ -7,7 +7,7 @@ import { ComponentMapping } from '../../utils/createComponentResolver.mjs';
|
|
|
7
7
|
import { SpaceType, ViewPort } from '../../types/cskTypes.mjs';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { FC } from 'react';
|
|
10
|
-
import { T as TextProps$1, B as ButtonProps$1, a as ButtonVariant, F as FooterProps$1, H as HeaderProps$1 } from '../../index-
|
|
10
|
+
import { T as TextProps$1, B as ButtonProps$1, a as ButtonVariant, F as FooterProps$1, H as HeaderProps$1 } from '../../index-Bo0jbwJv.mjs';
|
|
11
11
|
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
12
12
|
import { AssetParamValue } from '@uniformdev/assets';
|
|
13
13
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
@@ -20,6 +20,7 @@ type ContainerParameters = {
|
|
|
20
20
|
border?: string | ViewPort<string>;
|
|
21
21
|
fluidContent?: boolean;
|
|
22
22
|
fullHeight?: boolean;
|
|
23
|
+
fitHeight?: boolean;
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
declare const Accordion: FC<AccordionProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as ut}from"../../chunk-TM7Q5NMH.mjs";import{a as ft,b as ht,c as Pt}from"../../chunk-
|
|
2
|
-
${a}${p?" "+p:""} (${t} ${o}${i?` Request ID: ${i}`:""})`),this.errorMessage=e,this.fetchMethod=t,this.fetchUri=o,this.statusCode=a,this.statusText=p,this.requestId=i,Object.setPrototypeOf(this,Nt.prototype)}},y=class Bt{constructor(e){ao(this,"options");var t,o,a,p,i;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let s=e.fetch;if(!s)if(typeof window<"u")s=window.fetch.bind(window);else if(typeof fetch<"u")s=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:s,apiHost:this.ensureApiHost(e.apiHost),apiKey:(t=e.apiKey)!=null?t:null,projectId:(o=e.projectId)!=null?o:null,bearerToken:(a=e.bearerToken)!=null?a:null,limitPolicy:(p=e.limitPolicy)!=null?p:io,bypassCache:(i=e.bypassCache)!=null?i:!1}}async apiClient(e,t){return(await this.apiClientWithResponse(e,t)).body}async apiClientWithResponse(e,t){return this.options.limitPolicy(async()=>{var o;let a=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(a["x-bypass-cache"]="true");let{fetch:p,signal:i}=this.options,n=await po(()=>p(e.toString(),{...t,signal:i,headers:{...t?.headers,...a}}));if(!n.ok){let m="";try{let l=await n.text();try{let c=JSON.parse(l);c.errorMessage?m=Array.isArray(c.errorMessage)?c.errorMessage.join(", "):c.errorMessage:m=l}catch{m=l}}catch{m="General error"}throw new so(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,Bt.getRequestId(n))}return t?.expectNoContent?{response:n,body:null}:{response:n,body:await n.json()}})}createUrl(e,t,o){let a=new URL(`${o??this.options.apiHost}${e}`);return Object.entries(t??{}).forEach(([p,i])=>{var s;typeof i<"u"&&i!==null&&a.searchParams.append(p,Array.isArray(i)?i.join(","):(s=i?.toString())!=null?s:"")}),a}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let t=e.headers.get("apigw-requestid");if(t)return t}};async function po(r){var e;let o=5,a;for(;o>0&&(a=await r(),a.status===429);){let p=0;try{let n=a.clone(),m=n.headers.get("date"),l=m?new Date(m).getTime():void 0,c=await n.json(),u=(e=c?.info)==null?void 0:e.reset;typeof l=="number"&&typeof u=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(u-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var _,mo=class q extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(q,_),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(q,_));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(q,_));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};_=new WeakMap;I(mo,_,"/api/v2/aggregate");var Ee,lo=class kt extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(kt,Ee),{...e,projectId:t});return await this.apiClient(o)}};Ee=new WeakMap;I(lo,Ee,"/api/v2/dimension");var V,Y,Ft=class F extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(F,V),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(h(F,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(h(F,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(h(F,Y));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(h(F,Y));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;Y=new WeakMap;I(Ft,V,"/api/v1/enrichments");I(Ft,Y,"/api/v1/enrichment-values");var Me,co=class Ut extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Ut,Me),{...e,projectId:t});return await this.apiClient(o)}async publish(){let{projectId:e}=this.options,t=this.createUrl("/api/v1/publish",{siteId:e});await this.apiClient(t,{method:"POST",expectNoContent:!0})}};Me=new WeakMap;I(co,Me,"/api/v2/manifest");var L,uo=class J extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(J,L),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(J,L));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(J,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;I(uo,L,"/api/v2/quirk");var R,fo=class K extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(K,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(K,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(K,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;I(fo,R,"/api/v2/signal");var G,ho=class Q extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Q,G),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(Q,G));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(Q,G));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};G=new WeakMap;I(ho,G,"/api/v2/test");import{createVariableReference as Co,parseVariableExpression as yo}from"@uniformdev/canvas";var _t=r=>{throw TypeError(r)},$e=(r,e,t)=>e.has(r)||_t("Cannot "+t),X=(r,e,t)=>($e(r,e,"read from private field"),t?t.call(r):e.get(r)),Vt=(r,e,t)=>e.has(r)?_t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Po=(r,e,t,o)=>($e(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),D=(r,e,t)=>($e(r,e,"access private method"),t);var Lt=class extends y{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:e}=this.options,t=this.createUrl("/api/v1/project-map",{projectId:e});return await this.apiClient(t)},this.getProjectMapDefinition=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map",{...e,projectId:t});return await this.apiClient(o)},this.upsertProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");return(await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t})})).projectMapId},this.deleteProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.upsertProjectMapNodes=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t,nodes:e.nodes.map(a=>({...a,node:{...this.cleanProjectMapNode(a.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.getSubtree=async e=>{var t;let o=this.setFetchOptions(e);o.tree="true";let a=this.createUrl("/api/v1/project-map-nodes",o),i={...(await this.apiClient(a)).tree},s=[i];for(;s&&s.length>0;){let n=s.pop(),m;(t=n?.children)==null||t.forEach(l=>{l.parent=Oe(n),l.previousSibling=Oe(m),m&&(m.nextSibling=Oe(l)),m=l,s.push(l)})}return i},this.getNodes=async e=>{let t=this.setFetchOptions(e),o=this.createUrl("/api/v1/project-map-nodes",t);return await this.apiClient(o)}}setFetchOptions(r){let{projectId:e}=this.options,t={projectId:e};return Object.entries(r).forEach(([o,a])=>{if(a!==void 0){if(typeof a=="boolean"){if(!a)return;t[o]="true";return}if(typeof a=="number"){t[o]=a.toString(10);return}t[o]=a}}),t}cleanProjectMapNode(r){var e,t,o;return{id:((o=(t=(e=r.id)==null?void 0:e.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))==null?void 0:t.length)!=null?o:0)==1?r.id:void 0,path:r.path,name:r.name,type:r.type,order:r.order,data:r.data,compositionId:r.compositionId,description:r.description,locales:r.locales}}};var Oe=r=>r?{...r,parent:void 0,children:void 0}:void 0;var S,A,He,Z,We=class w{constructor(e){this.route=e,Vt(this,S);var t;Po(this,S,D(t=w,A,He).call(t,this.route))}get dynamicSegmentCount(){return X(this,S).segments.reduce((e,t)=>{var o;return D(o=w,A,Z).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=D(t=w,A,He).call(t,e),{segments:i}=X(this,S);if(a.length!==i.length)return{match:!1};let s={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let n=0;n<i.length;n++){let m=i[n],l=a[n];if(D(o=w,A,Z).call(o,m)){let c=m.slice(1);s.pathParams[c]=l,s.dynamicSegmentCount++}else if(m!==l)return{match:!1}}for(let[n,m]of X(this,S).queryParams)s.queryParams[n]=p.has(n)?p.get(n):m;return s}expand(e){let{dynamicInputValues:t={},allowedQueryParams:o=[],doNotEscapeVariables:a=!1}=e??{},p=X(this,S).segments.map(n=>{let m=w.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?je(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${je(n,a)}=${je(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(D(t=w,A,Z).call(t,e))return e.slice(w.dynamicSegmentPrefix.length)}};S=new WeakMap;A=new WeakSet;He=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[e,t]=r.split("?"),o=e.substring(1).split("/");o[o.length-1]===""&&o.pop();let a=new URLSearchParams(t);return{segments:o,queryParams:a}};Z=function(r){return r?r.startsWith(We.dynamicSegmentPrefix):!1};Vt(We,A);We.dynamicSegmentPrefix=":";function je(r,e){if(!e)return encodeURIComponent(r);let t=[];return yo(r.toString(10),(o,a)=>{a==="variable"?t.push(Co(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as ee}from"react/jsx-runtime";var Rt=r=>{switch(r){case"slash":return ee("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:ee("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return ee("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:ee("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as te,jsxs as go}from"react/jsx-runtime";var Dt=async({separator:r,links:e,size:t,color:o,font:a,transform:p,autoGenerate:i,context:s})=>{let l=i?await(async()=>{let c=new Lt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:u}=await c.getNodes({path:s?.matchedRoute,includeAncestors:!0});return u?.length?Promise.all(u.map(async d=>{let x=d.pathSegment?.includes(":")&&d.compositionId?await new xo({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:d.compositionId}).then(({composition:N})=>N&&Gt(N)?.pageTitle||d.name).catch(()=>d.name):d.name,T=d.type==="placeholder"?void 0:O(d.path,s.dynamicInputs);return{title:x,link:T}})):[]})():await(async()=>e?.reduce((c,u)=>{let{title:d,link:P}=Gt(u);return d?[...c,{title:d,link:g(P)}]:c},[])||[])();return l.length?te("ul",{className:f("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:l.map(({title:c,link:u},d)=>go("li",{className:"flex items-center",children:[!!d&&te("div",{className:"mx-2 size-[1em]",children:Rt(r)}),u?te(H,{variant:"link",textColor:o,className:f({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:u,children:c}):te(b,{size:t,font:a,color:o,transform:p,children:c})]},`${c}-${d}`))}):null};var ze=Dt;import{useMemo as vo}from"react";import{UniformText as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as re}from"react/jsx-runtime";var Et=({component:r,context:e,link:t,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,icon:n,iconPosition:m,border:l,size:c,textSize:u,hoverButtonColor:d,hoverTextColor:P,className:x,onClick:T,text:N})=>{let U=g(t),B=e.previewMode==="editor"&&e?.isContextualEditing,k=vo(()=>{let[he]=C(n),{url:M,title:br=""}=he||{};if(M)return{url:M,title:br}},[n]),ue=()=>{if(!k)return;let{url:he,title:M}=k;return re(v,{src:he,alt:M,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!N||!!k)&&!B?null:re(H,{variant:r.variant,href:U,border:l,size:c,onClick:T,className:x,textSize:u,isActive:e.matchedRoute===U,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:d,hoverTextColor:P,icon:re(ue,{}),iconPosition:m,children:re(bo,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var qe=Et;import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as Mt}from"react/jsx-runtime";var oe=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,className:l})=>Mt(lt,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,className:l,children:Mt(Io,{data:o,context:a,slot:t.containerContent})});var Ot=(e=>(e.ContainerContent="containerContent",e))(Ot||{});import{jsx as jt}from"react/jsx-runtime";var ae=({color:r,thickness:e,width:t,alignment:o})=>jt("div",{className:f("flex w-full",`justify-${o||"center"}`),children:jt("div",{className:f({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ht}from"react/jsx-runtime";var $t=({direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,slots:m,component:l,context:c,className:u,wrapperClassName:d})=>Ht(ft,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,wrapperClassName:d,className:u,children:Ht(wo,{data:l,context:c,slot:m.flexItem})});var Je=$t;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>Wt(ht,{alignSelf:r,shrink:e,children:Wt(To,{data:o,context:t,slot:a.inner})});import{UniformSlot as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as zt}from"react/jsx-runtime";var qt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,slots:n,component:m,context:l,className:c})=>zt(ct,{className:c,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,children:zt(So,{data:m,context:l,slot:n.gridInner})});var Jt=(e=>(e.GridInner="gridInner",e))(Jt||{}),Ke=qt;import{UniformSlot as Ao}from"@uniformdev/canvas-next-rsc/component";import{jsx as Kt}from"react/jsx-runtime";var Qt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Kt(dt,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Kt(Ao,{data:i,context:p,slot:s.inner})});var Yt=(e=>(e.Inner="inner",e))(Yt||{}),Qe=Qt;import{UniformText as No}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ye}from"react/jsx-runtime";var Xt=({icon:r,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,component:l,context:c})=>{let[u]=C(r),{url:d,title:P=""}=u||{};return Ye(z,{icon:d?Ye(v,{src:d,alt:P,fill:!0}):void 0,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,children:Ye(No,{placeholder:"Text goes here",parameterId:"text",component:l,context:c})})};var Xe=Xt;import{jsx as Zt}from"react/jsx-runtime";var er=({context:r,component:e,width:t,height:o})=>{let a=r.previewMode==="editor"&&r.isContextualEditing,p=e?._id?.includes("placeholder_");return!a||p?null:Zt("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:Zt($,{type:"image",placeholder:"Please add an asset to display an image"})})};import{jsx as tr}from"react/jsx-runtime";var ie=({image:r,objectFit:e,width:t,height:o,overlayColor:a,overlayOpacity:p,border:i,priority:s,unoptimized:n,context:m,component:l})=>{let[c]=C(r);if(!c)return tr(er,{context:m,component:l,width:t,height:o});let{url:u,title:d=""}=c;return tr(v,{containerStyle:{...t?{width:`${t}px`}:{},...o?{height:`${o}px`}:{}},src:u,alt:d,fill:!0,unoptimized:n,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i})};import{UniformSlot as Bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as rr}from"react/jsx-runtime";var or=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>rr(j,{link:g(o),openInNewTab:a,children:rr(Bo,{data:r,context:e,slot:t.linkContent})});var ar=(e=>(e.LinkContent="linkContent",e))(ar||{}),Ze=or;import{UniformText as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as nr}from"react/jsx-runtime";var ir=({href:r,isExternalLink:e,children:t})=>r?nr(j,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):nr("div",{className:"cursor-pointer",children:t});import{jsx as E}from"react/jsx-runtime";var sr=({icon:r,link:e,activeState:t,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,component:u,context:d,hoverEffect:P="",className:x})=>{let T=g(e),N=t&&O(d.matchedRoute,d.dynamicInputs)===T,[U]=C(r),{url:B,title:k=""}=U||{},ue=()=>B?B.endsWith(".svg")?E(ut,{src:B,alt:k,fill:!0}):E(v,{src:B,alt:k,fill:!0}):null,fe=f("transition-all duration-150",{[Pe(P,"group-hover:{value}")]:!!P,[Pe(P,"{value}")]:!!P&&N});return E(ir,{href:T,isExternalLink:mt(T),children:E(z,{icon:ue(),className:f("group",x),iconClassName:fe,textClassName:fe,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,children:E(ko,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:u,context:d})})})};var et=sr;import{UniformRichText as Fo}from"@uniformdev/canvas-next-rsc/component";import{jsx as pr}from"react/jsx-runtime";var mr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>pr(b,{lineCountRestrictions:e,color:r,font:t,children:pr(Fo,{className:f("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:o,placeholder:"Rich text content goes here..."})});var tt=mr;import{jsx as Uo}from"react/jsx-runtime";var se=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return Uo("div",{className:f({[`w-${r}`]:t,[`h-${r}`]:!t})})};var rt=(e=>(e.Horizontal="horizontal",e))(rt||{});import{UniformSlot as _o}from"@uniformdev/canvas-next-rsc/component";import{jsx as Vo}from"react/jsx-runtime";var lr=({slots:r,component:e,context:t})=>Vo(_o,{data:e,context:t,slot:r.tabContent});var cr=(e=>(e.TabContent="tabContent",e))(cr||{}),ot=lr;import{UniformSlot as Lo}from"@uniformdev/canvas-next-rsc/component";import{jsx as at}from"react/jsx-runtime";var pe=({component:r,context:e,slots:t,alignment:o})=>at("td",{children:at("div",{className:f("w-fit",dr[o||"left"]),children:at(Lo,{slot:t.tableCustomCellContent,context:e,data:r})})});var dr={left:"ml-0",center:"mx-auto",right:"ml-auto"},ur=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(ur||{});import{UniformText as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var me=({component:r,context:e})=>fr("td",{children:fr(Ro,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var le=({component:r,context:e})=>hr("th",{children:hr(Go,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Do}from"@uniformdev/canvas-next-rsc/component";import{jsx as Pr}from"react/jsx-runtime";var ce=({slots:r,component:e,context:t})=>Pr("tr",{children:Pr(Do,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Eo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Cr}from"react/jsx-runtime";var yr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:c})=>Cr(b,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:Cr(Eo,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:c})});var nt=yr;import Mo from"next/dynamic";var it=Mo(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as Oo}from"react/jsx-runtime";var xr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:Oo($,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as gr}from"react/jsx-runtime";var de=({video:r,url:e,placeholderImage:t,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l,component:c,context:u})=>{let[d]=C(r),[P]=C(t),x=d?.url||(e?.type==="url"?e.path:void 0);return x?gr(Pt,{url:x,placeholderImageUrl:P?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):gr(xr,{component:c,context:u})};var vr={accordion:{component:Ce},accordionItem:{component:Ve},badge:{component:Re},banner:{component:ye},button:{component:qe},card:{component:xe},carousel:{component:ge},container:{component:oe},countdown:{component:ve},divider:{component:ae},grid:{component:Ke},gridItem:{component:Qe},flex:{component:Je},flexItem:{component:ne},header:{component:Ie},section:{component:ke},iconLabel:{component:Xe},image:{component:ie},page:{component:Ne},richText:{component:tt},spacer:{component:se},text:{component:nt},video:{component:de},tabs:{component:Ue},tab:{component:ot},table:{component:Fe},tableRow:{component:ce},tableHeaderCell:{component:le},tableDataCell:{component:me},tableCustomCell:{component:pe},modal:{component:Te},imageGallery:{component:we},testimonial:{component:_e},breadcrumbs:{component:ze},review:{component:Be},navigationLink:{component:et},navigationGroup:{component:Ae},navigationFlyout:{component:Se},footer:{component:be},themeSwitcher:{component:it},link:{component:Ze},fixedHero:{component:W.FixedHero},flexibleHero:{component:W.FlexibleHero}},ap=vr,np=pt(vr);export{Ce as Accordion,Ve as AccordionItem,Ct as AccordionItemSlots,wr as AccordionSlots,Re as Badge,ye as Banner,Tr as BannerContentAlignment,Sr as BannerSlots,ze as Breadcrumbs,qe as Button,xe as Card,Nr as CardSlots,Ar as CardVariants,ge as Carousel,Br as CarouselSlots,Mr as CommonPageSlots,oe as Container,Ot as ContainerSlots,ve as Countdown,kr as CountdownSlots,Fr as CountdownVariants,W as DemoHero,Ur as DemoHeroContentAlignment,_r as DemoHeroVariants,ae as Divider,Je as Flex,ne as FlexItem,Vr as FlexibleHeroSlots,be as Footer,Lr as FooterSlots,Ke as Grid,Qe as GridItem,Yt as GridItemSlots,Jt as GridSlots,Ie as Header,Rr as HeaderSlots,Gr as HeaderVariants,Xe as IconLabel,ie as Image,we as ImageGallery,Dr as ImageGallerySlots,Ze as Link,ar as LinkSlots,Te as Modal,Er as ModalSlots,Se as NavigationFlyout,Ae as NavigationGroup,et as NavigationLink,Ne as Page,Be as Review,jr as ReviewSlots,Or as ReviewVariants,tt as RichText,ke as Section,Hr as SectionContentAlignment,Wr as SectionSlots,$r as SectionVariants,se as Spacer,rt as SpacerVariants,ot as Tab,cr as TabSlots,Fe as Table,pe as TableCustomCell,ur as TableCustomCellSlots,me as TableDataCell,le as TableHeaderCell,ce as TableRow,zr as TableSlots,Ue as Tabs,Jr as TabsSlots,qr as TabsVariants,_e as Testimonial,Qr as TestimonialSlots,Kr as TestimonialVariants,nt as Text,it as ThemeSwitcher,de as Video,np as componentResolver,vr as cskComponentsMapping,ap as default};
|
|
1
|
+
import{a as ut}from"../../chunk-TM7Q5NMH.mjs";import{a as ft,b as ht,c as Pt}from"../../chunk-CEMXG4S3.mjs";import{a as z}from"../../chunk-AKRWCDDG.mjs";import{a as pt}from"../../chunk-56OQGKRM.mjs";import{B as Ae,D as Ne,E as Mr,G as Be,H as Or,I as jr,K as ke,L as Hr,M as $r,N as Wr,P as Fe,Q as zr,S as _e,T as Kr,U as Qr,a as Ce,b as wr,d as xe,e as Ar,f as Nr,h as Br,i as ge,k as Ur,l as _r,m as Vr,n as W,p as Lr,q as be,s as Rr,t as Gr,u as Ie,w as Dr,x as we,z as Se}from"../../chunk-2R23IIXO.mjs";import{b as Er,c as Te}from"../../chunk-2SEOCBRK.mjs";import{a as qr,b as Jr,c as Ue}from"../../chunk-DBXG5BKX.mjs";import{a as j,b as H,d as $}from"../../chunk-C42FGNCU.mjs";import"../../chunk-6TUDWIYU.mjs";import{a as b}from"../../chunk-QHIWJPL6.mjs";import{a as Tr,b as Sr,c as ye}from"../../chunk-H4YYFWGR.mjs";import{a as kr,b as Fr,c as ve}from"../../chunk-2UV7TQNF.mjs";import{a as ct,b as dt}from"../../chunk-XWVE2EED.mjs";import{a as v}from"../../chunk-SDTLQ3CZ.mjs";import{a as lt}from"../../chunk-F435GHK2.mjs";import"../../chunk-3PDY7RJC.mjs";import{a as C}from"../../chunk-JNIJ5N3Y.mjs";import"../../chunk-MSXDLSXH.mjs";import{a as O,c as g,d as mt}from"../../chunk-RX4IAAQQ.mjs";import{a as Pe,c as f}from"../../chunk-S7CSCIW4.mjs";import{a as st,b as Ir}from"../../chunk-YEKQJ4YC.mjs";var It=st((aa,bt)=>{"use strict";var Ge=class{constructor(e){this.value=e,this.next=void 0}},De=class{constructor(){this.clear()}enqueue(e){let t=new Ge(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};bt.exports=De});var Tt=st((na,wt)=>{"use strict";var eo=It(),to=r=>{if(!((Number.isInteger(r)||r===1/0)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new eo,t=0,o=()=>{t--,e.size>0&&e.dequeue()()},a=async(s,n,...m)=>{t++;let l=(async()=>s(...m))();n(l);try{await l}catch{}o()},p=(s,n,...m)=>{e.enqueue(a.bind(null,s,n,...m)),(async()=>(await Promise.resolve(),t<r&&e.size>0&&e.dequeue()()))()},i=(s,...n)=>new Promise(m=>{p(s,m,...n)});return Object.defineProperties(i,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),i};wt.exports=to});import Yr from"next/dynamic";var Ct=(e=>(e.AccordionItemContent="accordionItemContent",e))(Ct||{}),Ve=Yr(()=>import("../../accordion-item-ULLV2BRJ.mjs").then(r=>r.AccordionItem));import{UniformText as Xr}from"@uniformdev/canvas-next-rsc/component";import{jsx as yt}from"react/jsx-runtime";var xt=({className:r,...e})=>yt("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:f("w-1.5 h-1.5",r),...e,children:yt("circle",{r:"3",cx:"3",cy:"3"})});var gt=({pill:r,size:e,dotColor:t,borderColor:o,backgroundColor:a})=>f("inline-flex items-center w-fit",{"rounded-full":r,"rounded-md":!r,"gap-x-1.5":!!t,[`ring-1 ring-inset ring-${o}`]:!!o,[`bg-${a}`]:!!a,[`p-${e}`]:e});import{jsx as Le,jsxs as Zr}from"react/jsx-runtime";var vt=({component:r,context:e,textColor:t,backgroundColor:o,borderColor:a,dotColor:p,pill:i=!1,size:s})=>Zr("div",{className:gt({pill:i,size:s,dotColor:p,borderColor:a,backgroundColor:o}),children:[p&&Le(xt,{className:f({[`fill-${p}`]:p})}),Le(b,{color:t,size:"xs",children:Le(Xr,{placeholder:"Badge text goes here",parameterId:"text",component:r,context:e})})]});var Re=vt;import{flattenValues as Gt,CanvasClient as xo}from"@uniformdev/canvas";var At=Ir(Tt(),1),ro=Object.defineProperty,St=r=>{throw TypeError(r)},oo=(r,e,t)=>e in r?ro(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ao=(r,e,t)=>oo(r,typeof e!="symbol"?e+"":e,t),no=(r,e,t)=>e.has(r)||St("Cannot "+t),h=(r,e,t)=>(no(r,e,"read from private field"),t?t.call(r):e.get(r)),I=(r,e,t)=>e.has(r)?St("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var io=(0,At.default)(6),so=class Nt extends Error{constructor(e,t,o,a,p,i){super(`${e}
|
|
2
|
+
${a}${p?" "+p:""} (${t} ${o}${i?` Request ID: ${i}`:""})`),this.errorMessage=e,this.fetchMethod=t,this.fetchUri=o,this.statusCode=a,this.statusText=p,this.requestId=i,Object.setPrototypeOf(this,Nt.prototype)}},y=class Bt{constructor(e){ao(this,"options");var t,o,a,p,i;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let s=e.fetch;if(!s)if(typeof window<"u")s=window.fetch.bind(window);else if(typeof fetch<"u")s=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:s,apiHost:this.ensureApiHost(e.apiHost),apiKey:(t=e.apiKey)!=null?t:null,projectId:(o=e.projectId)!=null?o:null,bearerToken:(a=e.bearerToken)!=null?a:null,limitPolicy:(p=e.limitPolicy)!=null?p:io,bypassCache:(i=e.bypassCache)!=null?i:!1}}async apiClient(e,t){return(await this.apiClientWithResponse(e,t)).body}async apiClientWithResponse(e,t){return this.options.limitPolicy(async()=>{var o;let a=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(a["x-bypass-cache"]="true");let{fetch:p,signal:i}=this.options,n=await po(()=>p(e.toString(),{...t,signal:i,headers:{...t?.headers,...a}}));if(!n.ok){let m="";try{let l=await n.text();try{let c=JSON.parse(l);c.errorMessage?m=Array.isArray(c.errorMessage)?c.errorMessage.join(", "):c.errorMessage:m=l}catch{m=l}}catch{m="General error"}throw new so(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,Bt.getRequestId(n))}return t?.expectNoContent?{response:n,body:null}:{response:n,body:await n.json()}})}createUrl(e,t,o){let a=new URL(`${o??this.options.apiHost}${e}`);return Object.entries(t??{}).forEach(([p,i])=>{var s;typeof i<"u"&&i!==null&&a.searchParams.append(p,Array.isArray(i)?i.join(","):(s=i?.toString())!=null?s:"")}),a}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let t=e.headers.get("apigw-requestid");if(t)return t}};async function po(r){var e;let o=5,a;for(;o>0&&(a=await r(),a.status===429);){let p=0;try{let n=a.clone(),m=n.headers.get("date"),l=m?new Date(m).getTime():void 0,c=await n.json(),u=(e=c?.info)==null?void 0:e.reset;typeof l=="number"&&typeof u=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(u-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var _,mo=class q extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(q,_),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(q,_));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(q,_));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};_=new WeakMap;I(mo,_,"/api/v2/aggregate");var Ee,lo=class kt extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(kt,Ee),{...e,projectId:t});return await this.apiClient(o)}};Ee=new WeakMap;I(lo,Ee,"/api/v2/dimension");var V,Y,Ft=class F extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(F,V),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(h(F,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(h(F,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(h(F,Y));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(h(F,Y));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;Y=new WeakMap;I(Ft,V,"/api/v1/enrichments");I(Ft,Y,"/api/v1/enrichment-values");var Me,co=class Ut extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Ut,Me),{...e,projectId:t});return await this.apiClient(o)}async publish(){let{projectId:e}=this.options,t=this.createUrl("/api/v1/publish",{siteId:e});await this.apiClient(t,{method:"POST",expectNoContent:!0})}};Me=new WeakMap;I(co,Me,"/api/v2/manifest");var L,uo=class J extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(J,L),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(J,L));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(J,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;I(uo,L,"/api/v2/quirk");var R,fo=class K extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(K,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(K,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(K,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;I(fo,R,"/api/v2/signal");var G,ho=class Q extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Q,G),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(Q,G));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(Q,G));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};G=new WeakMap;I(ho,G,"/api/v2/test");import{createVariableReference as Co,parseVariableExpression as yo}from"@uniformdev/canvas";var _t=r=>{throw TypeError(r)},$e=(r,e,t)=>e.has(r)||_t("Cannot "+t),X=(r,e,t)=>($e(r,e,"read from private field"),t?t.call(r):e.get(r)),Vt=(r,e,t)=>e.has(r)?_t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Po=(r,e,t,o)=>($e(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),D=(r,e,t)=>($e(r,e,"access private method"),t);var Lt=class extends y{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:e}=this.options,t=this.createUrl("/api/v1/project-map",{projectId:e});return await this.apiClient(t)},this.getProjectMapDefinition=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map",{...e,projectId:t});return await this.apiClient(o)},this.upsertProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");return(await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t})})).projectMapId},this.deleteProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.upsertProjectMapNodes=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t,nodes:e.nodes.map(a=>({...a,node:{...this.cleanProjectMapNode(a.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.getSubtree=async e=>{var t;let o=this.setFetchOptions(e);o.tree="true";let a=this.createUrl("/api/v1/project-map-nodes",o),i={...(await this.apiClient(a)).tree},s=[i];for(;s&&s.length>0;){let n=s.pop(),m;(t=n?.children)==null||t.forEach(l=>{l.parent=Oe(n),l.previousSibling=Oe(m),m&&(m.nextSibling=Oe(l)),m=l,s.push(l)})}return i},this.getNodes=async e=>{let t=this.setFetchOptions(e),o=this.createUrl("/api/v1/project-map-nodes",t);return await this.apiClient(o)}}setFetchOptions(r){let{projectId:e}=this.options,t={projectId:e};return Object.entries(r).forEach(([o,a])=>{if(a!==void 0){if(typeof a=="boolean"){if(!a)return;t[o]="true";return}if(typeof a=="number"){t[o]=a.toString(10);return}t[o]=a}}),t}cleanProjectMapNode(r){var e,t,o;return{id:((o=(t=(e=r.id)==null?void 0:e.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))==null?void 0:t.length)!=null?o:0)==1?r.id:void 0,path:r.path,name:r.name,type:r.type,order:r.order,data:r.data,compositionId:r.compositionId,description:r.description,locales:r.locales}}};var Oe=r=>r?{...r,parent:void 0,children:void 0}:void 0;var S,A,He,Z,We=class w{constructor(e){this.route=e,Vt(this,S);var t;Po(this,S,D(t=w,A,He).call(t,this.route))}get dynamicSegmentCount(){return X(this,S).segments.reduce((e,t)=>{var o;return D(o=w,A,Z).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=D(t=w,A,He).call(t,e),{segments:i}=X(this,S);if(a.length!==i.length)return{match:!1};let s={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let n=0;n<i.length;n++){let m=i[n],l=a[n];if(D(o=w,A,Z).call(o,m)){let c=m.slice(1);s.pathParams[c]=l,s.dynamicSegmentCount++}else if(m!==l)return{match:!1}}for(let[n,m]of X(this,S).queryParams)s.queryParams[n]=p.has(n)?p.get(n):m;return s}expand(e){let{dynamicInputValues:t={},allowedQueryParams:o=[],doNotEscapeVariables:a=!1}=e??{},p=X(this,S).segments.map(n=>{let m=w.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?je(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${je(n,a)}=${je(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(D(t=w,A,Z).call(t,e))return e.slice(w.dynamicSegmentPrefix.length)}};S=new WeakMap;A=new WeakSet;He=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[e,t]=r.split("?"),o=e.substring(1).split("/");o[o.length-1]===""&&o.pop();let a=new URLSearchParams(t);return{segments:o,queryParams:a}};Z=function(r){return r?r.startsWith(We.dynamicSegmentPrefix):!1};Vt(We,A);We.dynamicSegmentPrefix=":";function je(r,e){if(!e)return encodeURIComponent(r);let t=[];return yo(r.toString(10),(o,a)=>{a==="variable"?t.push(Co(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as ee}from"react/jsx-runtime";var Rt=r=>{switch(r){case"slash":return ee("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:ee("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return ee("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:ee("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as te,jsxs as go}from"react/jsx-runtime";var Dt=async({separator:r,links:e,size:t,color:o,font:a,transform:p,autoGenerate:i,context:s})=>{let l=i?await(async()=>{let c=new Lt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:u}=await c.getNodes({path:s?.matchedRoute,includeAncestors:!0});return u?.length?Promise.all(u.map(async d=>{let x=d.pathSegment?.includes(":")&&d.compositionId?await new xo({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:d.compositionId}).then(({composition:N})=>N&&Gt(N)?.pageTitle||d.name).catch(()=>d.name):d.name,T=d.type==="placeholder"?void 0:O(d.path,s.dynamicInputs);return{title:x,link:T}})):[]})():await(async()=>e?.reduce((c,u)=>{let{title:d,link:P}=Gt(u);return d?[...c,{title:d,link:g(P)}]:c},[])||[])();return l.length?te("ul",{className:f("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:l.map(({title:c,link:u},d)=>go("li",{className:"flex items-center",children:[!!d&&te("div",{className:"mx-2 size-[1em]",children:Rt(r)}),u?te(H,{variant:"link",textColor:o,className:f({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:u,children:c}):te(b,{size:t,font:a,color:o,transform:p,children:c})]},`${c}-${d}`))}):null};var ze=Dt;import{useMemo as vo}from"react";import{UniformText as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as re}from"react/jsx-runtime";var Et=({component:r,context:e,link:t,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,icon:n,iconPosition:m,border:l,size:c,textSize:u,hoverButtonColor:d,hoverTextColor:P,className:x,onClick:T,text:N})=>{let U=g(t),B=e.previewMode==="editor"&&e?.isContextualEditing,k=vo(()=>{let[he]=C(n),{url:M,title:br=""}=he||{};if(M)return{url:M,title:br}},[n]),ue=()=>{if(!k)return;let{url:he,title:M}=k;return re(v,{src:he,alt:M,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!N||!!k)&&!B?null:re(H,{variant:r.variant,href:U,border:l,size:c,onClick:T,className:x,textSize:u,isActive:e.matchedRoute===U,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:d,hoverTextColor:P,icon:re(ue,{}),iconPosition:m,children:re(bo,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var qe=Et;import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as Mt}from"react/jsx-runtime";var oe=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,className:c})=>Mt(lt,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,className:c,children:Mt(Io,{data:o,context:a,slot:t.containerContent})});var Ot=(e=>(e.ContainerContent="containerContent",e))(Ot||{});import{jsx as jt}from"react/jsx-runtime";var ae=({color:r,thickness:e,width:t,alignment:o})=>jt("div",{className:f("flex w-full",`justify-${o||"center"}`),children:jt("div",{className:f({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ht}from"react/jsx-runtime";var $t=({direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,slots:m,component:l,context:c,className:u,fitHeight:d,wrapperClassName:P})=>Ht(ft,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,fitHeight:d,wrapperClassName:P,className:u,children:Ht(wo,{data:l,context:c,slot:m.flexItem})});var Je=$t;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>Wt(ht,{alignSelf:r,shrink:e,children:Wt(To,{data:o,context:t,slot:a.inner})});import{UniformSlot as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as zt}from"react/jsx-runtime";var qt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,slots:m,component:l,context:c,className:u})=>zt(ct,{className:u,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,children:zt(So,{data:l,context:c,slot:m.gridInner})});var Jt=(e=>(e.GridInner="gridInner",e))(Jt||{}),Ke=qt;import{UniformSlot as Ao}from"@uniformdev/canvas-next-rsc/component";import{jsx as Kt}from"react/jsx-runtime";var Qt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Kt(dt,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Kt(Ao,{data:i,context:p,slot:s.inner})});var Yt=(e=>(e.Inner="inner",e))(Yt||{}),Qe=Qt;import{UniformText as No}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ye}from"react/jsx-runtime";var Xt=({icon:r,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,component:l,context:c})=>{let[u]=C(r),{url:d,title:P=""}=u||{};return Ye(z,{icon:d?Ye(v,{src:d,alt:P,fill:!0}):void 0,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,children:Ye(No,{placeholder:"Text goes here",parameterId:"text",component:l,context:c})})};var Xe=Xt;import{jsx as Zt}from"react/jsx-runtime";var er=({context:r,component:e,width:t,height:o})=>{let a=r.previewMode==="editor"&&r.isContextualEditing,p=e?._id?.includes("placeholder_");return!a||p?null:Zt("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:Zt($,{type:"image",placeholder:"Please add an asset to display an image"})})};import{jsx as tr}from"react/jsx-runtime";var ie=({image:r,objectFit:e,width:t,height:o,overlayColor:a,overlayOpacity:p,border:i,priority:s,unoptimized:n,context:m,component:l})=>{let[c]=C(r);if(!c)return tr(er,{context:m,component:l,width:t,height:o});let{url:u,title:d=""}=c;return tr(v,{containerStyle:{...t?{width:`${t}px`}:{},...o?{height:`${o}px`}:{}},src:u,alt:d,fill:!0,unoptimized:n,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i})};import{UniformSlot as Bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as rr}from"react/jsx-runtime";var or=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>rr(j,{link:g(o),openInNewTab:a,children:rr(Bo,{data:r,context:e,slot:t.linkContent})});var ar=(e=>(e.LinkContent="linkContent",e))(ar||{}),Ze=or;import{UniformText as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as nr}from"react/jsx-runtime";var ir=({href:r,isExternalLink:e,children:t})=>r?nr(j,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):nr("div",{className:"cursor-pointer",children:t});import{jsx as E}from"react/jsx-runtime";var sr=({icon:r,link:e,activeState:t,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,component:u,context:d,hoverEffect:P="",className:x})=>{let T=g(e),N=t&&O(d.matchedRoute,d.dynamicInputs)===T,[U]=C(r),{url:B,title:k=""}=U||{},ue=()=>B?B.endsWith(".svg")?E(ut,{src:B,alt:k,fill:!0}):E(v,{src:B,alt:k,fill:!0}):null,fe=f("transition-all duration-150",{[Pe(P,"group-hover:{value}")]:!!P,[Pe(P,"{value}")]:!!P&&N});return E(ir,{href:T,isExternalLink:mt(T),children:E(z,{icon:ue(),className:f("group",x),iconClassName:fe,textClassName:fe,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,children:E(ko,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:u,context:d})})})};var et=sr;import{UniformRichText as Fo}from"@uniformdev/canvas-next-rsc/component";import{jsx as pr}from"react/jsx-runtime";var mr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>pr(b,{lineCountRestrictions:e,color:r,font:t,children:pr(Fo,{className:f("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:o,placeholder:"Rich text content goes here..."})});var tt=mr;import{jsx as Uo}from"react/jsx-runtime";var se=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return Uo("div",{className:f({[`w-${r}`]:t,[`h-${r}`]:!t})})};var rt=(e=>(e.Horizontal="horizontal",e))(rt||{});import{UniformSlot as _o}from"@uniformdev/canvas-next-rsc/component";import{jsx as Vo}from"react/jsx-runtime";var lr=({slots:r,component:e,context:t})=>Vo(_o,{data:e,context:t,slot:r.tabContent});var cr=(e=>(e.TabContent="tabContent",e))(cr||{}),ot=lr;import{UniformSlot as Lo}from"@uniformdev/canvas-next-rsc/component";import{jsx as at}from"react/jsx-runtime";var pe=({component:r,context:e,slots:t,alignment:o})=>at("td",{children:at("div",{className:f("w-fit",dr[o||"left"]),children:at(Lo,{slot:t.tableCustomCellContent,context:e,data:r})})});var dr={left:"ml-0",center:"mx-auto",right:"ml-auto"},ur=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(ur||{});import{UniformText as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var me=({component:r,context:e})=>fr("td",{children:fr(Ro,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var le=({component:r,context:e})=>hr("th",{children:hr(Go,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Do}from"@uniformdev/canvas-next-rsc/component";import{jsx as Pr}from"react/jsx-runtime";var ce=({slots:r,component:e,context:t})=>Pr("tr",{children:Pr(Do,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Eo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Cr}from"react/jsx-runtime";var yr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:c})=>Cr(b,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:Cr(Eo,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:c})});var nt=yr;import Mo from"next/dynamic";var it=Mo(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as Oo}from"react/jsx-runtime";var xr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:Oo($,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as gr}from"react/jsx-runtime";var de=({video:r,url:e,placeholderImage:t,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l,component:c,context:u})=>{let[d]=C(r),[P]=C(t),x=d?.url||(e?.type==="url"?e.path:void 0);return x?gr(Pt,{url:x,placeholderImageUrl:P?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):gr(xr,{component:c,context:u})};var vr={accordion:{component:Ce},accordionItem:{component:Ve},badge:{component:Re},banner:{component:ye},button:{component:qe},card:{component:xe},carousel:{component:ge},container:{component:oe},countdown:{component:ve},divider:{component:ae},grid:{component:Ke},gridItem:{component:Qe},flex:{component:Je},flexItem:{component:ne},header:{component:Ie},section:{component:ke},iconLabel:{component:Xe},image:{component:ie},page:{component:Ne},richText:{component:tt},spacer:{component:se},text:{component:nt},video:{component:de},tabs:{component:Ue},tab:{component:ot},table:{component:Fe},tableRow:{component:ce},tableHeaderCell:{component:le},tableDataCell:{component:me},tableCustomCell:{component:pe},modal:{component:Te},imageGallery:{component:we},testimonial:{component:_e},breadcrumbs:{component:ze},review:{component:Be},navigationLink:{component:et},navigationGroup:{component:Ae},navigationFlyout:{component:Se},footer:{component:be},themeSwitcher:{component:it},link:{component:Ze},fixedHero:{component:W.FixedHero},flexibleHero:{component:W.FlexibleHero}},ap=vr,np=pt(vr);export{Ce as Accordion,Ve as AccordionItem,Ct as AccordionItemSlots,wr as AccordionSlots,Re as Badge,ye as Banner,Tr as BannerContentAlignment,Sr as BannerSlots,ze as Breadcrumbs,qe as Button,xe as Card,Nr as CardSlots,Ar as CardVariants,ge as Carousel,Br as CarouselSlots,Mr as CommonPageSlots,oe as Container,Ot as ContainerSlots,ve as Countdown,kr as CountdownSlots,Fr as CountdownVariants,W as DemoHero,Ur as DemoHeroContentAlignment,_r as DemoHeroVariants,ae as Divider,Je as Flex,ne as FlexItem,Vr as FlexibleHeroSlots,be as Footer,Lr as FooterSlots,Ke as Grid,Qe as GridItem,Yt as GridItemSlots,Jt as GridSlots,Ie as Header,Rr as HeaderSlots,Gr as HeaderVariants,Xe as IconLabel,ie as Image,we as ImageGallery,Dr as ImageGallerySlots,Ze as Link,ar as LinkSlots,Te as Modal,Er as ModalSlots,Se as NavigationFlyout,Ae as NavigationGroup,et as NavigationLink,Ne as Page,Be as Review,jr as ReviewSlots,Or as ReviewVariants,tt as RichText,ke as Section,Hr as SectionContentAlignment,Wr as SectionSlots,$r as SectionVariants,se as Spacer,rt as SpacerVariants,ot as Tab,cr as TabSlots,Fe as Table,pe as TableCustomCell,ur as TableCustomCellSlots,me as TableDataCell,le as TableHeaderCell,ce as TableRow,zr as TableSlots,Ue as Tabs,Jr as TabsSlots,qr as TabsVariants,_e as Testimonial,Qr as TestimonialSlots,Kr as TestimonialVariants,nt as Text,it as ThemeSwitcher,de as Video,np as componentResolver,vr as cskComponentsMapping,ap as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { FC, SVGProps, ReactElement, HTMLAttributes, ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import { T as TextProps, B as ButtonProps, C as ContainerProps, F as FooterProps, H as HeaderProps } from '../../index-
|
|
4
|
-
export { a as ButtonVariant } from '../../index-
|
|
3
|
+
import { T as TextProps, B as ButtonProps, C as ContainerProps, F as FooterProps, H as HeaderProps } from '../../index-Bo0jbwJv.mjs';
|
|
4
|
+
export { a as ButtonVariant } from '../../index-Bo0jbwJv.mjs';
|
|
5
5
|
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
6
6
|
import { ViewPort } from '../../types/cskTypes.mjs';
|
|
7
7
|
import { ImageProps as ImageProps$1 } from 'next/image';
|
|
@@ -42,7 +42,7 @@ type Direction = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
|
42
42
|
type Justify = 'normal' | 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
43
43
|
type FlexGap = keyof DefaultTheme['spacing'];
|
|
44
44
|
type Align = 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
45
|
-
type FlexProps = Pick<ContainerProps, 'className' | 'wrapperClassName' | 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'children'> & {
|
|
45
|
+
type FlexProps = Pick<ContainerProps, 'className' | 'wrapperClassName' | 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children'> & {
|
|
46
46
|
direction?: Direction | ViewPort<Direction>;
|
|
47
47
|
justifyContent?: Justify | ViewPort<Justify>;
|
|
48
48
|
gap?: FlexGap | ViewPort<FlexGap>;
|
|
@@ -62,7 +62,7 @@ declare const Grid: FC<GridProps>;
|
|
|
62
62
|
|
|
63
63
|
type AvailableColumnsCount = keyof DefaultTheme['gridTemplateColumns'];
|
|
64
64
|
type AvailableGap = keyof DefaultTheme['spacing'];
|
|
65
|
-
type GridProps = Pick<ContainerProps, 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'children'> & {
|
|
65
|
+
type GridProps = Pick<ContainerProps, 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children'> & {
|
|
66
66
|
columnsCount?: AvailableColumnsCount | ViewPort<AvailableColumnsCount>;
|
|
67
67
|
gapY?: AvailableGap | ViewPort<AvailableGap>;
|
|
68
68
|
gapX?: AvailableGap | ViewPort<AvailableGap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"../../chunk-V4EBWEG4.mjs";import{a as c,b as g,c as F}from"../../chunk-
|
|
1
|
+
import{a as h}from"../../chunk-V4EBWEG4.mjs";import{a as c,b as g,c as F}from"../../chunk-CEMXG4S3.mjs";import{a as i}from"../../chunk-AKRWCDDG.mjs";import{a as o}from"../../chunk-PIBMG73F.mjs";import{a as t,b as r,c as a,d as m,e as x,f as y,g as n,h as I}from"../../chunk-C42FGNCU.mjs";import{a as f,b as s,c as d}from"../../chunk-6TUDWIYU.mjs";import{a as l}from"../../chunk-QHIWJPL6.mjs";import{a as u,b as P}from"../../chunk-XWVE2EED.mjs";import{a as p}from"../../chunk-SDTLQ3CZ.mjs";import{a as e}from"../../chunk-F435GHK2.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";export{f as ArrowIcon,r as Button,a as ButtonVariant,o as Carousel,e as Container,c as Flex,g as FlexItem,x as Footer,u as Grid,P as GridItem,y as Header,i as IconLabel,p as Image,s as ImageIcon,t as Link,m as MediaPlaceholder,n as Page,I as Rating,l as Text,h as ThemeSwitcher,F as Video,d as VideoIcon};
|
|
@@ -12,8 +12,12 @@ export const Accordion: FC<AccordionProps> = ({
|
|
|
12
12
|
border,
|
|
13
13
|
fluidContent,
|
|
14
14
|
fullHeight,
|
|
15
|
+
fitHeight,
|
|
15
16
|
}) => (
|
|
16
|
-
<Container
|
|
17
|
+
<Container
|
|
18
|
+
className="flex flex-col gap-8"
|
|
19
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
20
|
+
>
|
|
17
21
|
<div className="flex flex-col gap-4 text-start">
|
|
18
22
|
<UniformSlot data={component} context={context} slot={slots.accordionContent} />
|
|
19
23
|
</div>
|
|
@@ -13,6 +13,7 @@ export const Card: FC<CardProps> = ({
|
|
|
13
13
|
border,
|
|
14
14
|
fluidContent,
|
|
15
15
|
fullHeight,
|
|
16
|
+
fitHeight,
|
|
16
17
|
className,
|
|
17
18
|
contentClassName,
|
|
18
19
|
}) => {
|
|
@@ -21,7 +22,7 @@ export const Card: FC<CardProps> = ({
|
|
|
21
22
|
return (
|
|
22
23
|
<Container
|
|
23
24
|
className={cn('relative overflow-hidden', className)}
|
|
24
|
-
{...{ backgroundColor, spacing, border, fluidContent, fullHeight }}
|
|
25
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
25
26
|
>
|
|
26
27
|
<div
|
|
27
28
|
className={cn({
|
|
@@ -14,11 +14,12 @@ export const Carousel: FC<CarouselProps> = ({
|
|
|
14
14
|
border,
|
|
15
15
|
fluidContent,
|
|
16
16
|
fullHeight,
|
|
17
|
+
fitHeight,
|
|
17
18
|
itemsPerPage,
|
|
18
19
|
gapX,
|
|
19
20
|
}) => (
|
|
20
21
|
<BaseCarousel
|
|
21
|
-
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, itemsPerPage, gapX }}
|
|
22
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, itemsPerPage, gapX }}
|
|
22
23
|
countOfItems={slots.carouselItems?.items.length ?? 0}
|
|
23
24
|
variant={component.variant}
|
|
24
25
|
>
|
|
@@ -14,9 +14,12 @@ export const Container: FC<ContainerProps> = ({
|
|
|
14
14
|
border,
|
|
15
15
|
fluidContent,
|
|
16
16
|
fullHeight,
|
|
17
|
+
fitHeight,
|
|
17
18
|
className,
|
|
18
19
|
}) => (
|
|
19
|
-
<BaseContainer
|
|
20
|
+
<BaseContainer
|
|
21
|
+
{...{ title: displayName, id, backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, className }}
|
|
22
|
+
>
|
|
20
23
|
<UniformSlot data={component} context={context} slot={slots.containerContent} />
|
|
21
24
|
</BaseContainer>
|
|
22
25
|
);
|
|
@@ -9,6 +9,7 @@ type ColumnsVariantProps = {
|
|
|
9
9
|
border: DemoHeroParameters['border'];
|
|
10
10
|
fluidContent: DemoHeroParameters['fluidContent'];
|
|
11
11
|
fullHeight: DemoHeroParameters['fullHeight'];
|
|
12
|
+
fitHeight: DemoHeroParameters['fitHeight'];
|
|
12
13
|
variant?: DemoHeroVariants;
|
|
13
14
|
demoHeroMedia: React.ReactNode;
|
|
14
15
|
demoHeroContent: React.ReactNode;
|
|
@@ -23,6 +24,7 @@ export const ColumnsVariant: FC<ColumnsVariantProps> = ({
|
|
|
23
24
|
border,
|
|
24
25
|
fluidContent,
|
|
25
26
|
fullHeight,
|
|
27
|
+
fitHeight,
|
|
26
28
|
variant,
|
|
27
29
|
demoHeroMedia,
|
|
28
30
|
demoHeroContent,
|
|
@@ -30,7 +32,7 @@ export const ColumnsVariant: FC<ColumnsVariantProps> = ({
|
|
|
30
32
|
textAlignmentClass,
|
|
31
33
|
buttonAlignmentClass,
|
|
32
34
|
}) => (
|
|
33
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
35
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
34
36
|
<div className={cn('grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0')}>
|
|
35
37
|
<div className={cn('aspect-square', { 'order-last': variant === DemoHeroVariants.ColumnsReverse })}>
|
|
36
38
|
<div className="flex size-full items-center justify-center overflow-hidden">{demoHeroMedia}</div>
|
|
@@ -9,6 +9,7 @@ type DefaultVariantProps = {
|
|
|
9
9
|
border: DemoHeroParameters['border'];
|
|
10
10
|
fluidContent: DemoHeroParameters['fluidContent'];
|
|
11
11
|
fullHeight: DemoHeroParameters['fullHeight'];
|
|
12
|
+
fitHeight: DemoHeroParameters['fitHeight'];
|
|
12
13
|
demoHeroMedia: React.ReactNode;
|
|
13
14
|
demoHeroContent: React.ReactNode;
|
|
14
15
|
demoHeroCTA: React.ReactNode;
|
|
@@ -22,13 +23,17 @@ export const DefaultVariant: FC<DefaultVariantProps> = ({
|
|
|
22
23
|
border,
|
|
23
24
|
fluidContent,
|
|
24
25
|
fullHeight,
|
|
26
|
+
fitHeight,
|
|
25
27
|
demoHeroMedia,
|
|
26
28
|
demoHeroContent,
|
|
27
29
|
demoHeroCTA,
|
|
28
30
|
textAlignmentClass,
|
|
29
31
|
buttonAlignmentClass,
|
|
30
32
|
}) => (
|
|
31
|
-
<Container
|
|
33
|
+
<Container
|
|
34
|
+
className="relative overflow-hidden"
|
|
35
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
36
|
+
>
|
|
32
37
|
<div className="absolute left-0 top-0 size-full overflow-hidden">{demoHeroMedia}</div>
|
|
33
38
|
<Container className="relative flex flex-col gap-8">
|
|
34
39
|
<div className={cn('flex flex-col gap-4', textAlignmentClass)}>{demoHeroContent}</div>
|
|
@@ -78,7 +78,7 @@ export const DemoHero: FC<(FixedHeroProps | FlexibleHeroProps) & { isFlexibleHer
|
|
|
78
78
|
border,
|
|
79
79
|
fluidContent,
|
|
80
80
|
fullHeight,
|
|
81
|
-
|
|
81
|
+
fitHeight,
|
|
82
82
|
isFlexibleHero = false,
|
|
83
83
|
component,
|
|
84
84
|
context,
|
|
@@ -195,6 +195,7 @@ export const DemoHero: FC<(FixedHeroProps | FlexibleHeroProps) & { isFlexibleHer
|
|
|
195
195
|
border,
|
|
196
196
|
fluidContent,
|
|
197
197
|
fullHeight,
|
|
198
|
+
fitHeight,
|
|
198
199
|
textAlignmentClass: getTextAlignmentClass({ contentAlignment }),
|
|
199
200
|
buttonAlignmentClass: getButtonAlignmentClass({ contentAlignment }),
|
|
200
201
|
demoHeroMedia: (
|
|
@@ -17,6 +17,7 @@ export const Flex: FC<FlexProps> = ({
|
|
|
17
17
|
component,
|
|
18
18
|
context,
|
|
19
19
|
className,
|
|
20
|
+
fitHeight,
|
|
20
21
|
wrapperClassName,
|
|
21
22
|
}) => (
|
|
22
23
|
<BaseFlex
|
|
@@ -30,6 +31,7 @@ export const Flex: FC<FlexProps> = ({
|
|
|
30
31
|
border,
|
|
31
32
|
fluidContent,
|
|
32
33
|
fullHeight,
|
|
34
|
+
fitHeight,
|
|
33
35
|
wrapperClassName,
|
|
34
36
|
className,
|
|
35
37
|
}}
|
|
@@ -12,6 +12,7 @@ export const Grid: FC<GridProps> = ({
|
|
|
12
12
|
border,
|
|
13
13
|
fluidContent,
|
|
14
14
|
fullHeight,
|
|
15
|
+
fitHeight,
|
|
15
16
|
slots,
|
|
16
17
|
component,
|
|
17
18
|
context,
|
|
@@ -19,7 +20,7 @@ export const Grid: FC<GridProps> = ({
|
|
|
19
20
|
}) => (
|
|
20
21
|
<BaseGrid
|
|
21
22
|
className={className}
|
|
22
|
-
{...{ columnsCount, gapX, gapY, backgroundColor, spacing, border, fluidContent, fullHeight }}
|
|
23
|
+
{...{ columnsCount, gapX, gapY, backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
23
24
|
>
|
|
24
25
|
<UniformSlot data={component} context={context} slot={slots.gridInner} />
|
|
25
26
|
</BaseGrid>
|
|
@@ -17,6 +17,7 @@ export const ImageGallery: FC<ImageGalleryProps> = ({
|
|
|
17
17
|
border,
|
|
18
18
|
fluidContent,
|
|
19
19
|
fullHeight,
|
|
20
|
+
fitHeight,
|
|
20
21
|
config,
|
|
21
22
|
context,
|
|
22
23
|
component,
|
|
@@ -43,7 +44,7 @@ export const ImageGallery: FC<ImageGalleryProps> = ({
|
|
|
43
44
|
?.length;
|
|
44
45
|
|
|
45
46
|
return (
|
|
46
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
47
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
47
48
|
<div className="flex flex-col gap-1">
|
|
48
49
|
{showEmptySlot ? (
|
|
49
50
|
<UniformSlot context={context} slot={slots.imageGalleryItems} data={component} />
|
|
@@ -19,11 +19,12 @@ export const DefaultVariant: FC<DefaultVariantProps> = ({
|
|
|
19
19
|
border,
|
|
20
20
|
fluidContent,
|
|
21
21
|
fullHeight,
|
|
22
|
+
fitHeight,
|
|
22
23
|
ReviewImage,
|
|
23
24
|
ReviewPersonInfo,
|
|
24
25
|
ReviewContent,
|
|
25
26
|
}) => (
|
|
26
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
27
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
27
28
|
<div className="mx-auto flex lg:max-w-[60%]">
|
|
28
29
|
<div className="aspect-square size-12 shrink-0 rounded-full">{ReviewImage}</div>
|
|
29
30
|
<div className="ml-6">
|
|
@@ -19,11 +19,12 @@ export const MultiColumnVariant: FC<MultiColumnVariantProps> = ({
|
|
|
19
19
|
border,
|
|
20
20
|
fluidContent,
|
|
21
21
|
fullHeight,
|
|
22
|
+
fitHeight,
|
|
22
23
|
ReviewImage,
|
|
23
24
|
ReviewPersonInfo,
|
|
24
25
|
ReviewContent,
|
|
25
26
|
}) => (
|
|
26
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
27
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
27
28
|
<div className="grid md:grid-cols-12">
|
|
28
29
|
<div className="mb-2 md:col-span-4 md:my-0">
|
|
29
30
|
<div className="mb-2 aspect-square size-12 rounded-full">{ReviewImage}</div>
|
|
@@ -9,6 +9,7 @@ type ColumnsVariantProps = {
|
|
|
9
9
|
border: SectionParameters['border'];
|
|
10
10
|
fluidContent: SectionParameters['fluidContent'];
|
|
11
11
|
fullHeight: SectionParameters['fullHeight'];
|
|
12
|
+
fitHeight: SectionParameters['fitHeight'];
|
|
12
13
|
variant: SectionVariants;
|
|
13
14
|
sectionMedia: React.ReactNode;
|
|
14
15
|
sectionContent: React.ReactNode;
|
|
@@ -23,6 +24,7 @@ export const ColumnsVariant: FC<ColumnsVariantProps> = ({
|
|
|
23
24
|
border,
|
|
24
25
|
fluidContent,
|
|
25
26
|
fullHeight,
|
|
27
|
+
fitHeight,
|
|
26
28
|
variant,
|
|
27
29
|
sectionMedia,
|
|
28
30
|
sectionContent,
|
|
@@ -30,7 +32,7 @@ export const ColumnsVariant: FC<ColumnsVariantProps> = ({
|
|
|
30
32
|
textAlignmentClass,
|
|
31
33
|
buttonAlignmentClass,
|
|
32
34
|
}) => (
|
|
33
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
35
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
34
36
|
<div className={cn('grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0')}>
|
|
35
37
|
<div className={cn('aspect-square', { 'order-last': variant === SectionVariants.ColumnsReverse })}>
|
|
36
38
|
<div className="flex size-full items-center justify-center overflow-hidden">{sectionMedia}</div>
|
|
@@ -9,6 +9,7 @@ type DefaultVariantProps = {
|
|
|
9
9
|
border?: SectionParameters['border'];
|
|
10
10
|
fluidContent?: SectionParameters['fluidContent'];
|
|
11
11
|
fullHeight?: SectionParameters['fullHeight'];
|
|
12
|
+
fitHeight?: SectionParameters['fitHeight'];
|
|
12
13
|
sectionMedia: React.ReactNode;
|
|
13
14
|
sectionContent: React.ReactNode;
|
|
14
15
|
sectionCTA: React.ReactNode;
|
|
@@ -22,13 +23,17 @@ export const DefaultVariant: FC<DefaultVariantProps> = ({
|
|
|
22
23
|
border,
|
|
23
24
|
fluidContent,
|
|
24
25
|
fullHeight,
|
|
26
|
+
fitHeight,
|
|
25
27
|
sectionMedia,
|
|
26
28
|
sectionContent,
|
|
27
29
|
sectionCTA,
|
|
28
30
|
textAlignmentClass,
|
|
29
31
|
buttonAlignmentClass,
|
|
30
32
|
}) => (
|
|
31
|
-
<Container
|
|
33
|
+
<Container
|
|
34
|
+
className="relative overflow-hidden"
|
|
35
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
36
|
+
>
|
|
32
37
|
<div className="absolute left-0 top-0 size-full overflow-hidden">{sectionMedia}</div>
|
|
33
38
|
<Container className="relative flex flex-col gap-8">
|
|
34
39
|
<div className={cn('flex flex-col gap-4', textAlignmentClass)}>{sectionContent}</div>
|
|
@@ -15,6 +15,7 @@ export const Section: FC<SectionProps> = ({
|
|
|
15
15
|
border,
|
|
16
16
|
fluidContent,
|
|
17
17
|
fullHeight,
|
|
18
|
+
fitHeight,
|
|
18
19
|
}) => {
|
|
19
20
|
const variant = component.variant as SectionVariants;
|
|
20
21
|
|
|
@@ -25,6 +26,7 @@ export const Section: FC<SectionProps> = ({
|
|
|
25
26
|
border,
|
|
26
27
|
fluidContent,
|
|
27
28
|
fullHeight,
|
|
29
|
+
fitHeight,
|
|
28
30
|
textAlignmentClass: getTextAlignmentClass({ contentAlignment }),
|
|
29
31
|
buttonAlignmentClass: getButtonAlignmentClass({ contentAlignment }),
|
|
30
32
|
sectionMedia: <UniformSlot data={component} context={context} slot={slots.sectionMedia} />,
|
|
@@ -15,8 +15,12 @@ export const Table: FC<TableProps> = ({
|
|
|
15
15
|
border,
|
|
16
16
|
fluidContent,
|
|
17
17
|
fullHeight,
|
|
18
|
+
fitHeight,
|
|
18
19
|
}) => (
|
|
19
|
-
<Container
|
|
20
|
+
<Container
|
|
21
|
+
className="flex flex-col gap-5"
|
|
22
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
23
|
+
>
|
|
20
24
|
<div className="overflow-x-auto">
|
|
21
25
|
<table className={getTableClasses({ size, textColor })}>
|
|
22
26
|
<thead>
|
|
@@ -17,6 +17,7 @@ export const Tabs: FC<TabsProps> = ({
|
|
|
17
17
|
border,
|
|
18
18
|
fluidContent,
|
|
19
19
|
fullHeight,
|
|
20
|
+
fitHeight,
|
|
20
21
|
}) => {
|
|
21
22
|
const variant = (component.variant || TabsVariants.Default) as TabsVariants;
|
|
22
23
|
const [activeTabId, setActiveTabId] = useState(component?.slots?.tabItems?.[0]?._id as string);
|
|
@@ -44,7 +45,10 @@ export const Tabs: FC<TabsProps> = ({
|
|
|
44
45
|
);
|
|
45
46
|
|
|
46
47
|
return (
|
|
47
|
-
<Container
|
|
48
|
+
<Container
|
|
49
|
+
className="flex flex-col gap-5"
|
|
50
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
51
|
+
>
|
|
48
52
|
<div className={getButtonContainerClasses({ color, variant })}>
|
|
49
53
|
{tabItems.map((tabItem, index) => (
|
|
50
54
|
<button
|
|
@@ -4,7 +4,7 @@ import { TestimonialProps } from '.';
|
|
|
4
4
|
|
|
5
5
|
type WithLargeAvatarVariantProps = Pick<
|
|
6
6
|
TestimonialProps,
|
|
7
|
-
'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight'
|
|
7
|
+
'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight'
|
|
8
8
|
> & {
|
|
9
9
|
testimonialPrimaryImage: React.ReactNode;
|
|
10
10
|
testimonialContent: React.ReactNode;
|
|
@@ -22,8 +22,9 @@ export const DefaultVariant: FC<WithLargeAvatarVariantProps> = ({
|
|
|
22
22
|
border,
|
|
23
23
|
fluidContent,
|
|
24
24
|
fullHeight,
|
|
25
|
+
fitHeight,
|
|
25
26
|
}) => (
|
|
26
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
27
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
27
28
|
<div className="mx-auto flex flex-col items-center md:max-w-[80%]">
|
|
28
29
|
<div>{testimonialSecondaryImage}</div>
|
|
29
30
|
<div className="my-8">{testimonialContent}</div>
|
|
@@ -14,6 +14,7 @@ export const Testimonial: FC<TestimonialProps> = ({
|
|
|
14
14
|
border,
|
|
15
15
|
fluidContent,
|
|
16
16
|
fullHeight,
|
|
17
|
+
fitHeight,
|
|
17
18
|
}) => {
|
|
18
19
|
const variant = component.variant as TestimonialVariants | undefined;
|
|
19
20
|
|
|
@@ -23,6 +24,7 @@ export const Testimonial: FC<TestimonialProps> = ({
|
|
|
23
24
|
border,
|
|
24
25
|
fluidContent,
|
|
25
26
|
fullHeight,
|
|
27
|
+
fitHeight,
|
|
26
28
|
testimonialPrimaryImage: <UniformSlot context={context} data={component} slot={slots.testimonialPrimaryImage} />,
|
|
27
29
|
testimonialContent: <UniformSlot context={context} data={component} slot={slots.testimonialContent} />,
|
|
28
30
|
testimonialAuthor: <UniformSlot context={context} data={component} slot={slots.testimonialAuthor} />,
|
|
@@ -4,7 +4,7 @@ import { TestimonialProps } from '.';
|
|
|
4
4
|
|
|
5
5
|
type WithLargeAvatarVariantProps = Pick<
|
|
6
6
|
TestimonialProps,
|
|
7
|
-
'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight'
|
|
7
|
+
'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight'
|
|
8
8
|
> & {
|
|
9
9
|
testimonialPrimaryImage: React.ReactNode;
|
|
10
10
|
testimonialContent: React.ReactNode;
|
|
@@ -22,8 +22,9 @@ export const WithLargeAvatarVariant: FC<WithLargeAvatarVariantProps> = ({
|
|
|
22
22
|
border,
|
|
23
23
|
fluidContent,
|
|
24
24
|
fullHeight,
|
|
25
|
+
fitHeight,
|
|
25
26
|
}) => (
|
|
26
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
27
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
27
28
|
<div className="mx-auto flex items-center gap-x-10 md:max-w-[80%]">
|
|
28
29
|
<div className="hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block">
|
|
29
30
|
{testimonialPrimaryImage}
|
|
@@ -4,7 +4,7 @@ import { TestimonialProps } from '.';
|
|
|
4
4
|
|
|
5
5
|
type WithLargeAvatarVariantProps = Pick<
|
|
6
6
|
TestimonialProps,
|
|
7
|
-
'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight'
|
|
7
|
+
'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight'
|
|
8
8
|
> & {
|
|
9
9
|
testimonialPrimaryImage: React.ReactNode;
|
|
10
10
|
testimonialContent: React.ReactNode;
|
|
@@ -22,8 +22,9 @@ export const WithOverlappingImageVariant: FC<WithLargeAvatarVariantProps> = ({
|
|
|
22
22
|
border,
|
|
23
23
|
fluidContent,
|
|
24
24
|
fullHeight,
|
|
25
|
+
fitHeight,
|
|
25
26
|
}) => (
|
|
26
|
-
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
27
|
+
<Container {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
27
28
|
<Container className="pb-10 lg:pb-0">
|
|
28
29
|
<div className="mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row">
|
|
29
30
|
<div className="-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs">
|
|
@@ -12,6 +12,7 @@ export const Container: FC<ContainerProps> = ({
|
|
|
12
12
|
border = '',
|
|
13
13
|
fluidContent = false,
|
|
14
14
|
fullHeight = false,
|
|
15
|
+
fitHeight = false,
|
|
15
16
|
maxWidth,
|
|
16
17
|
...rest
|
|
17
18
|
}) => {
|
|
@@ -29,6 +30,7 @@ export const Container: FC<ContainerProps> = ({
|
|
|
29
30
|
'mx-auto w-full': !fluidContent,
|
|
30
31
|
'max-w-7xl max-w-container-width': !maxWidth && !fluidContent,
|
|
31
32
|
[`max-w-${maxWidth}`]: !!maxWidth && !fluidContent,
|
|
33
|
+
'h-full': fitHeight,
|
|
32
34
|
},
|
|
33
35
|
wrapperClassName
|
|
34
36
|
)}
|
|
@@ -37,6 +39,7 @@ export const Container: FC<ContainerProps> = ({
|
|
|
37
39
|
className={cn(
|
|
38
40
|
{
|
|
39
41
|
'!h-screen': fullHeight,
|
|
42
|
+
'h-full': fitHeight,
|
|
40
43
|
[`bg-${backgroundColor}`]: !!backgroundColor,
|
|
41
44
|
[resolveViewPort(marginTop, 'mt-{value}')]: marginTop,
|
|
42
45
|
[resolveViewPort(marginBottom, 'mb-{value}')]: marginBottom,
|
|
@@ -15,9 +15,10 @@ export const Flex: FC<FlexProps> = ({
|
|
|
15
15
|
border,
|
|
16
16
|
fluidContent,
|
|
17
17
|
fullHeight,
|
|
18
|
+
fitHeight,
|
|
18
19
|
children,
|
|
19
20
|
}) => (
|
|
20
|
-
<BaseContainer {...{ backgroundColor, spacing, border, fluidContent, fullHeight, wrapperClassName }}>
|
|
21
|
+
<BaseContainer {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, wrapperClassName }}>
|
|
21
22
|
<div
|
|
22
23
|
className={cn(
|
|
23
24
|
'flex',
|
|
@@ -26,6 +27,7 @@ export const Flex: FC<FlexProps> = ({
|
|
|
26
27
|
[resolveViewPort(justifyContent, 'justify-{value}')]: justifyContent,
|
|
27
28
|
[resolveViewPort(gap, 'gap-{value}')]: gap,
|
|
28
29
|
[resolveViewPort(alignItems, 'items-{value}')]: alignItems,
|
|
30
|
+
'h-full': fitHeight,
|
|
29
31
|
},
|
|
30
32
|
className
|
|
31
33
|
)}
|
|
@@ -13,9 +13,10 @@ export const Grid: FC<GridProps> = ({
|
|
|
13
13
|
border,
|
|
14
14
|
fluidContent,
|
|
15
15
|
fullHeight,
|
|
16
|
+
fitHeight,
|
|
16
17
|
children,
|
|
17
18
|
}) => (
|
|
18
|
-
<BaseContainer {...{ backgroundColor, spacing, border, fluidContent, fullHeight }}>
|
|
19
|
+
<BaseContainer {...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}>
|
|
19
20
|
<div
|
|
20
21
|
className={cn(
|
|
21
22
|
'grid',
|
|
@@ -23,6 +24,7 @@ export const Grid: FC<GridProps> = ({
|
|
|
23
24
|
[resolveViewPort(columnsCount, 'grid-cols-{value}')]: columnsCount,
|
|
24
25
|
[resolveViewPort(gapX, 'gap-x-{value}')]: gapX,
|
|
25
26
|
[resolveViewPort(gapY, 'gap-y-{value}')]: gapY,
|
|
27
|
+
'h-full': fitHeight,
|
|
26
28
|
},
|
|
27
29
|
className
|
|
28
30
|
)}
|
|
@@ -7,7 +7,7 @@ type AvailableGap = keyof DefaultTheme['spacing'];
|
|
|
7
7
|
|
|
8
8
|
export type GridProps = Pick<
|
|
9
9
|
BaseContainerProps,
|
|
10
|
-
'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'children'
|
|
10
|
+
'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children'
|
|
11
11
|
> & {
|
|
12
12
|
columnsCount?: AvailableColumnsCount | ViewPort<AvailableColumnsCount>;
|
|
13
13
|
gapY?: AvailableGap | ViewPort<AvailableGap>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as d}from"./chunk-SDTLQ3CZ.mjs";import{a as I}from"./chunk-F435GHK2.mjs";import{a as G}from"./chunk-JNIJ5N3Y.mjs";import{c as h}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as N}from"@uniformdev/canvas-next-rsc/component";import v from"react-responsive-masonry";import{Fragment as R,jsx as y}from"react/jsx-runtime";var g={firstLineCount:2,secondLineCount:3,otherLinesCount:4},L=({slot:n,aspectRatio:s,config:r})=>{let{firstLineCount:i=g.firstLineCount,secondLineCount:f=g.secondLineCount,otherLinesCount:m=g.otherLinesCount}=r||{},{items:c=[]}=n||{},u=c.reduce((e,o,t)=>(t<i?e[0]?.push(o):t<i+f?e[1]?.push(o):e[2]?.push(o),e),[[],[],[]])||[];return y(R,{children:u?.map((e,o)=>e.length?y(v,{columnsCount:o<2||e.length<m?e.length:m,gutter:"4px",children:e.map((t,a)=>y("div",{className:h("flex flex-1 items-center justify-center",{[`aspect-${s}`]:!!s}),children:t},`img-${a}`))},`line-${o}`):null)})};import{jsx as l}from"react/jsx-runtime";var T=({slots:n,aspectRatio:s,items:r,backgroundColor:i,spacing:f,border:m,fluidContent:c,fullHeight:u,fitHeight:e,config:o,context:t,component:a})=>{let P=r?.length?{name:"items",items:G(r)?.map((p,C)=>l(d,{src:p.url,style:{objectFit:"cover"},alt:`Image ${C}`,fill:!0},p?.id||`image-${C}`))||[]}:n.imageGalleryItems,F=!r?.length&&!a?.slots?.imageGalleryItems?.filter(({_id:p})=>!p?.startsWith("placeholder"))?.length;return l(I,{backgroundColor:i,spacing:f,border:m,fluidContent:c,fullHeight:u,fitHeight:e,children:l("div",{className:"flex flex-col gap-1",children:F?l(N,{context:t,slot:n.imageGalleryItems,data:a}):l(L,{slot:P,aspectRatio:s,config:o})})})};export{T as ImageGallery};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{a as u,b as s}from"./chunk-
|
|
1
|
+
"use client";import{a as u,b as s}from"./chunk-XWVE2EED.mjs";import{a as o}from"./chunk-F435GHK2.mjs";import{c as n}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useState as C}from"react";import{jsx as e,jsxs as l}from"react/jsx-runtime";var B=({isOpen:t,onClick:i,color:a})=>e("button",{onClick:i,"aria-label":"Menu",className:n("w-7 h-7 relative focus:outline-none"),children:l("div",{className:"absolute left-1/2 top-1/2 block w-7 -translate-x-1/2 -translate-y-1/2",children:[e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"rotate-45":t," -translate-y-2":!t,[`bg-${a}`]:!!a})}),e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"opacity-0":t,[`bg-${a}`]:!!a})}),e("span",{"aria-hidden":"true",className:n("block absolute h-0.5 w-7 transform transition duration-500 ease-in-out",{"-rotate-45":t," translate-y-2":!t,[`bg-${a}`]:!!a})})]})}),G=({leftSection:t,rightSection:i,children:a,backgroundColor:m,spacing:c,border:d,className:p,color:f})=>{let[r,b]=C(!1);return l("nav",{children:[e(o,{id:"mobile-header",fluidContent:!0,backgroundColor:m,spacing:c,border:d,className:p,children:l(u,{className:"items-center",columnsCount:"12",children:[e(s,{columnSpan:"span-2",children:e(B,{isOpen:r,onClick:()=>{b(v=>!v)},color:f})}),e(s,{columnSpan:"span-6",children:e("div",{className:"flex items-center justify-start",children:t})}),e(s,{columnSpan:"span-4",children:e("div",{className:"flex items-center justify-end gap-x-4",children:i})})]})}),e(o,{fluidContent:!0,className:n({"min-h-screen":r}),backgroundColor:m,children:r&&e("div",{className:"size-full py-8",children:e("div",{className:"flex flex-col items-center justify-center gap-y-8",children:a})})})]})};export{G as MobileHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{a as H}from"./chunk-TM7Q5NMH.mjs";import{a as B}from"./chunk-AKRWCDDG.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as w,b as y}from"./chunk-
|
|
1
|
+
"use client";import{a as H}from"./chunk-TM7Q5NMH.mjs";import{a as B}from"./chunk-AKRWCDDG.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as w,b as y}from"./chunk-XWVE2EED.mjs";import{a as C}from"./chunk-SDTLQ3CZ.mjs";import"./chunk-F435GHK2.mjs";import{a as g}from"./chunk-JNIJ5N3Y.mjs";import{a as u,c as o}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as O,useMemo as et,useState as at}from"react";import{UniformText as st}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as M}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as _}from"react/jsx-runtime";var G=({isOpen:t,backgroundColor:s,context:e,slots:i,border:r,component:n,hasRightContent:l})=>m("div",{className:o("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!l,"w-full md:w-[460px] xl:w-[768px]":l}),children:m("div",{className:o("p-8",{[`bg-${s}`]:!!s,[u(r,"{value}")]:r}),children:_(w,{columnsCount:"2",gapX:"4",children:[m(y,{children:m("div",{className:"flex flex-col gap-y-4",children:m(M,{context:e,data:n,slot:i.navigationFlyoutLeftContent})})}),m(y,{children:m(M,{context:e,data:n,slot:i.navigationFlyoutRightContent})})]})})});import{useEffect as j,useState as tt}from"react";import{UniformSlot as L}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as R}from"react/jsx-runtime";var ot=()=>{let[t,s]=tt(0);return j(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),t},S=({isOpen:t,backgroundColor:s,context:e,slots:i,onClose:r,component:n})=>{let l=ot();return R("div",{style:{top:l},className:o("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!t,block:t}),children:[d("button",{onClick:r,className:"w-max rotate-180 px-4",children:d(k,{})}),R("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(L,{context:e,data:n,slot:i.navigationFlyoutLeftContent}),d(L,{context:e,data:n,slot:i.navigationFlyoutRightContent})]})]})};var U=({isOpen:t})=>o("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),D=({color:t})=>o("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as a,jsxs as $}from"react/jsx-runtime";var Gt=({icon:t,caretIcon:s,backgroundColor:e,border:i,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,component:p,context:v,slots:N,hoverEffect:F="",className:X})=>{let[f,P]=at(!1),q=O(()=>P(!0),[]),h=O(()=>P(!1),[]),J=et(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[K]=g(t),{url:c,title:x=""}=K||{},Q=()=>c?c.endsWith(".svg")?a(H,{src:c,alt:x,fill:!0}):a(C,{src:c,alt:x,fill:!0}):null,b=o("transition-all duration-150",{[u(F,"group-hover:{value}")]:!!F}),[Y]=g(s),{url:I,title:Z=""}=Y||{};return $("div",{className:"relative",onMouseLeave:h,children:[$("button",{onMouseEnter:q,className:D({color:l}),children:[a(B,{icon:Q(),className:o("group",X),iconClassName:b,textClassName:b,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,children:a(st,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),I&&a("div",{className:o("relative size-[1em]",U({isOpen:f}),{[`text-${r}`]:!!r}),children:a(C,{src:I,alt:Z,fill:!0})})]}),a("div",{className:"hidden md:block",children:a(G,{hasRightContent:J,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})}),a("div",{className:"block md:hidden",children:a(S,{onClose:h,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})})]})};export{Gt as NavigationFlyout};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"./chunk-DBXG5BKX.mjs";import{a as f}from"./chunk-F435GHK2.mjs";import"./chunk-MSXDLSXH.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{Fragment as C,useCallback as v,useEffect as V,useMemo as h,useState as F}from"react";import{flattenValues as E}from"@uniformdev/canvas";import{UniformSlot as I,UniformText as N}from"@uniformdev/canvas-next-rsc/component";var u=({color:r,variant:a})=>m("flex flex-row overflow-x-auto ",{[`border-${r} border-b`]:r&&a==="bordered"}),p=({color:r,variant:a,tabItem:t,activeTabId:e})=>m("text-lg shrink-0 font-medium px-5 py-3",{[`text-${r}`]:r,[`border-${r}`]:t.id===e&&a==="bordered","border-b-2":a==="bordered","opacity-60 hover:opacity-100":t.id!==e,"border-transparent":t.id!==e&&a==="bordered"});import{jsx as i,jsxs as S}from"react/jsx-runtime";var K=({slots:r,color:a,component:t,context:e,backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B,fitHeight:P})=>{let b=t.variant||"default",[n,d]=F(t?.slots?.tabItems?.[0]?._id),l=h(()=>t?.slots?.tabItems?t.slots.tabItems.map(s=>({...E(s),id:s._id})):[],[t?.slots?.tabItems]);V(()=>{l.length&&(n||d(l[0]?.id||""))},[l,n]);let y=v(s=>{e.isContextualEditing&&d(s)},[e.isContextualEditing]);return S(f,{className:"flex flex-col gap-5",backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B,fitHeight:P,children:[i("div",{className:u({color:a,variant:b}),children:l.map((s,o)=>i("button",{onClick:()=>d(s.id),className:p({color:a,variant:b,tabItem:s,activeTabId:n}),children:t?.slots?.tabItems?.[o]&&i(N,{onFocus:()=>y(s.id),context:e,parameterId:"text",component:t?.slots?.tabItems[o],placeholder:"Tab title"})},s.id))}),i(I,{data:t,context:e,slot:r.tabItems,children:({child:s,component:{_id:o}})=>o===n?i(C,{children:s},o):i(C,{},o)})]})};export{K as Tabs};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/csk-components",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.86-alpha.1",
|
|
4
4
|
"description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@repo/eslint-config": "*",
|
|
79
79
|
"@repo/typescript-config": "*",
|
|
80
|
-
"@uniformdev/assets": "^20.20.
|
|
81
|
-
"@uniformdev/canvas": "^20.20.
|
|
82
|
-
"@uniformdev/canvas-next-rsc": "^20.20.
|
|
80
|
+
"@uniformdev/assets": "^20.20.3",
|
|
81
|
+
"@uniformdev/canvas": "^20.20.3",
|
|
82
|
+
"@uniformdev/canvas-next-rsc": "^20.20.3",
|
|
83
83
|
"next": "^15.3.2",
|
|
84
84
|
"react": "^19.1.0",
|
|
85
85
|
"react-dom": "^19.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as s}from"./chunk-GKTFFPF4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as d}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var B=({slots:r,component:e,context:t,backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,itemsPerPage:f,gapX:C})=>o(s,{backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,itemsPerPage:f,gapX:C,countOfItems:r.carouselItems?.items.length??0,variant:e.variant,children:({className:n,style:p})=>o(d,{context:t,slot:r.carouselItems,data:e,children:({child:c,key:v})=>o("div",{className:n,style:p,children:c},v)})});export{B as Carousel};
|
package/dist/chunk-CFF343FV.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as xe,d as ye,e as he,f as Re,g as Ne,h as I}from"./chunk-H3OSPGNK.mjs";import{a as ve}from"./chunk-QHIWJPL6.mjs";import{a as q}from"./chunk-SDTLQ3CZ.mjs";import{a as c}from"./chunk-RZFK2OR7.mjs";import{a as $}from"./chunk-JNIJ5N3Y.mjs";import{a as l}from"./chunk-MSXDLSXH.mjs";import{c as ge}from"./chunk-RX4IAAQQ.mjs";import{c as p}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Te}from"@uniformdev/canvas-next-rsc/component";import{jsx as X,jsxs as xo}from"react/jsx-runtime";var go=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s})=>xo(c,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,children:[X("div",{className:"flex flex-col gap-4 text-start",children:X(Te,{data:o,context:t,slot:e.accordionContent})}),X(Te,{data:o,context:t,slot:e.accordionItems})]});import{jsx as be}from"react/jsx-runtime";var vo=e=>{switch(e.slotName){case"accordionContent":return{component:()=>be("div",{className:"h-20"})};case"accordionItems":return{component:()=>be("div",{className:"h-28"})};default:return l}};var we=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(we||{});import{UniformSlot as Ee}from"@uniformdev/canvas-next-rsc/component";import{jsx as ho}from"react/jsx-runtime";var yo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>ho("div",{className:"h-20"})};default:return l}};var He=(o=>(o.BackgroundImage="backgroundImage",o))(He||{}),Fe=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(Fe||{});import{jsx as V,jsxs as No}from"react/jsx-runtime";var Ro=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,className:m,contentClassName:d})=>{let f=e.variant==="backgroundImage";return No(c,{className:p("relative overflow-hidden",m),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,children:[V("div",{className:p({"inset-0 size-full absolute":f}),children:V(Ee,{data:e,context:o,slot:t.cardMedia})}),V("div",{className:p("relative flex flex-col gap-y-2",d),children:V(Ee,{data:e,context:o,slot:t.cardContent})})]})};import wo from"next/dynamic";import{jsx as bo}from"react/jsx-runtime";var To=e=>{switch(e.slotName){case"carouselItems":return{component:()=>bo("div",{className:"mx-20 h-20 w-full"})};default:return l}};var Ae=(o=>(o.Items="carouselItems",o))(Ae||{}),Ar=wo(()=>import("./carousel-JVL3HRFG.mjs").then(e=>e.Carousel));import{UniformSlot as Ue}from"@uniformdev/canvas-next-rsc/component";import{UniformText as Be}from"@uniformdev/canvas-next-rsc/component";import{jsx as C}from"react/jsx-runtime";var D=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:C(ve,{...a,children:C(Be,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},Le=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=ge(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:C(xe,{...a,href:s,icon:C(()=>{let[f]=$(n),{url:u,title:y=""}=f||{};return u?C(q,{src:u,alt:y,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:C(Be,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Ie=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,priority:f,unoptimized:u})=>{let[y]=$(t);if(!y){let G=o.previewMode==="editor"&&o.isContextualEditing,Y=e?._id?.includes("placeholder_");return!G||Y||!e.variant?null:C("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:C(ye,{type:"image",placeholder:"Please add an asset to display an image"})})}let{url:W,title:K=""}=y;return C(q,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:W,alt:K,fill:!0,unoptimized:u,priority:f,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d})};import{jsx as T,jsxs as Ve}from"react/jsx-runtime";var De=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,variant:i,demoHeroMedia:n,demoHeroContent:s,demoHeroCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>T(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:Ve("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),Ve("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:p("flex flex-col gap-4",d),children:s}),T("div",{className:p("flex flex-wrap gap-2 items-center",f),children:m})]})]})});import{jsx as Q,jsxs as Se}from"react/jsx-runtime";var Oe=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>Se(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:[Q("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Se(c,{className:"relative flex flex-col gap-8",children:[Q("div",{className:p("flex flex-col gap-4",m),children:n}),Q("div",{className:p("flex flex-wrap gap-2 items-center",d),children:s})]})]});var ke=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Me=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});var h=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});import{Fragment as Z,jsx as P,jsxs as Fo}from"react/jsx-runtime";var S=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:u,titleTag:y,titleSize:W,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:bt,titleLineCountRestrictions:wt,descriptionText:Ft,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:Dt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:Ot,primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt,image:jt,imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo,contentAlignment:ce,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,isFlexibleHero:fe=!1,component:g,context:x,slots:Pe})=>{let ue=g.variant,uo=fe?P(Ue,{data:g,context:x,slot:Pe.flexibleHeroContent}):Fo(Z,{children:[P(D,{...h({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:g,context:x,parameterId:"eyebrowTitleText"}),P(D,{...h({titleText:u,titleTag:y,titleSize:W,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:bt,titleLineCountRestrictions:wt},"title"),component:g,context:x,parameterId:"titleText"}),P(D,{...h({descriptionText:Ft,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:Dt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:Ot},"description"),component:g,context:x,parameterId:"descriptionText"})]}),Co=fe?P(Ue,{data:g,context:x,slot:Pe.flexibleHeroCta}):P(Z,{children:P(Le,{...h({primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt},"primaryButton"),component:g,context:x,parameterId:"primaryButtonText"})}),Ce={variant:ue,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,textAlignmentClass:Me({contentAlignment:ce}),buttonAlignmentClass:ke({contentAlignment:ce}),demoHeroMedia:P(Z,{children:P(Ie,{image:jt,...h({imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo},"image"),component:g,context:x})}),demoHeroContent:uo,demoHeroCTA:Co};switch(ue){case"columns":case"columnsReverse":return P(De,{...Ce});default:return P(Oe,{...Ce})}};import{jsx as Ho}from"react/jsx-runtime";var ze=({textColor:e,enableOverlayAutoTint:o=!1,...t})=>Ho(S,{...t,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||t.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"5xl",desktop:"5xl"},titleWeight:"bold",titleColor:e||t.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||t.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextColor:"text-light",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!t.component.variant&&o?e:void 0,imageOverlayOpacity:"0.3",spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!t.component.variant,isFlexibleHero:!1});import{jsx as Eo}from"react/jsx-runtime";var We=e=>Eo(S,{...e,isFlexibleHero:!0});import{jsx as Ke}from"react/jsx-runtime";var Ao=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Ke("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Ke("div",{className:"mx-40 h-20 w-full"})};default:return l}};var _e=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(_e||{}),J=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(J||{}),Ge=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ge||{}),Bo={FixedHero:ze,FlexibleHero:We},Ha=Bo;import{UniformSlot as j}from"@uniformdev/canvas-next-rsc/component";import{jsx as O}from"react/jsx-runtime";var Ye=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>O(he,{logo:O(j,{context:e,slot:t.footerLogo,data:o}),copyright:O(j,{context:e,slot:t.footerCopyright,data:o}),content:O(j,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ee}from"react/jsx-runtime";var Lo=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ee("div",{className:"h-20 w-48"})};default:return l}};var $e=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))($e||{}),_a=Ye;import{UniformSlot as te}from"@uniformdev/canvas-next-rsc/component";import{jsx as k}from"react/jsx-runtime";var qe=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>k(Re,{sticky:i.variant==="sticky",leftSection:k(te,{context:a,slot:n.headerLeftContent,data:i}),rightSection:k(te,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:k(te,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as oe}from"react/jsx-runtime";var Io=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>oe("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>oe("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>oe("div",{className:"h-20 w-48"})};default:return l}};var Je=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Je||{}),Xe=(o=>(o.Sticky="sticky",o))(Xe||{}),ei=qe;import So from"next/dynamic";import{jsx as Do}from"react/jsx-runtime";var Vo=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Do("div",{className:" mx-auto size-48"})};default:return l}};var Qe=(o=>(o.Items="imageGalleryItems",o))(Qe||{}),mi=So(()=>import("./image-gallery-GDHVDVIL.mjs").then(e=>e.ImageGallery));import ko from"next/dynamic";import{jsx as Ze}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};default:return l}};var gi=ko(()=>import("./navigation-flyout-MH7LKGJ2.mjs").then(e=>e.NavigationFlyout));import Uo from"next/dynamic";import{jsx as _o}from"react/jsx-runtime";var Mo=e=>{switch(e.slotName){case"links":return{component:()=>_o("div",{className:"h-40 w-48"})};default:return l}};var wi=Uo(()=>import("./navigation-group-7WBDV5IY.mjs").then(e=>e.NavigationGroup));import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var zo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>M(Ne,{backgroundColor:r,header:M(re,{context:t,slot:e.pageHeader,data:o,children:a}),footer:M(re,{context:t,slot:e.pageFooter,data:o,children:n}),children:M(re,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as ae}from"react/jsx-runtime";var Wo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>ae("div",{className:"h-40"})};case"pageContent":return{component:()=>ae("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>ae("div",{className:"h-40"})};default:return l}};var je=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(je||{});import{UniformSlot as ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as b}from"react/jsx-runtime";var Ko=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?b("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};default:return l}};var ie=(o=>(o.MultiColumn="multiColumn",o))(ie||{}),et=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(et||{});import{jsx as w,jsxs as tt}from"react/jsx-runtime";var ot=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>w(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:tt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[w("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),tt("div",{className:"ml-6",children:[f,w("div",{className:"py-4",children:w(I,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),w("div",{className:"flex flex-col gap-y-5",children:u})]})]})});import{jsx as R,jsxs as rt}from"react/jsx-runtime";var at=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>R(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:rt("div",{className:"grid md:grid-cols-12",children:[rt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[R("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),R("div",{className:"flex flex-col gap-y-1",children:f})]}),R("div",{className:"my-2 md:col-span-4 md:my-0",children:R(I,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),R("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:u})]})});import{jsx as F}from"react/jsx-runtime";var Go=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:F(ne,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:F(ne,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:F(ne,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return F(at,{...i});default:return F(ot,{...i})}};import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as se}from"react/jsx-runtime";var Yo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:se("div",{className:"size-full"})};case"sectionContent":return{component:()=>se("div",{className:"h-20"})};case"sectionCTA":return{component:()=>se("div",{className:"mx-40 h-20 w-full"})};default:return l}};var nt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(nt||{}),me=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(me||{}),it=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(it||{});import{jsx as H,jsxs as st}from"react/jsx-runtime";var mt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,variant:i,sectionMedia:n,sectionContent:s,sectionCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>H(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:st("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[H("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:H("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),st("div",{className:"flex flex-col justify-center gap-8",children:[H("div",{className:p("flex flex-col gap-4",d),children:s}),H("div",{className:p("flex flex-wrap gap-2",f),children:m})]})]})});import{jsx as le,jsxs as lt}from"react/jsx-runtime";var pt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,sectionMedia:i,sectionContent:n,sectionCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>lt(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:[le("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),lt(c,{className:"relative flex flex-col gap-8",children:[le("div",{className:p("flex flex-col gap-4",m),children:n}),le("div",{className:p("flex flex-wrap gap-2",d),children:s})]})]});var dt=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),ct=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as E}from"react/jsx-runtime";var $o=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>{let d=t.variant,f={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,textAlignmentClass:ct({contentAlignment:e}),buttonAlignmentClass:dt({contentAlignment:e}),sectionMedia:E(pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:E(pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:E(pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return E(mt,{...f});default:return E(pt,{...f})}};import{UniformSlot as Pt}from"@uniformdev/canvas-next-rsc/component";var ft=({size:e,textColor:o})=>p("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as Xo}from"react/jsx-runtime";var qo=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:d})=>N(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:d,children:N("div",{className:"overflow-x-auto",children:Xo("table",{className:ft({size:e,textColor:o}),children:[N("thead",{children:N(Pt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Pt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as ut}from"react/jsx-runtime";var Jo=e=>{switch(e.slotName){case"tableHead":return{component:()=>ut("tr",{className:"h-20"})};case"tableBody":return{component:()=>ut("tr",{className:"h-40"})};default:return l}};var Ct=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(Ct||{});import{UniformSlot as z}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var Qo=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>_("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>_("div",{className:"h-20 w-64"})};default:return l}};var xt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(xt||{}),gt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(gt||{});import{jsx as A,jsxs as jo}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>A(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:jo("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[A("div",{children:r}),A("div",{className:"my-8",children:o}),A("div",{className:"size-10 rounded-full",children:e}),A("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as B,jsxs as U}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:U("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[B("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),U("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),U("div",{className:"flex items-center justify-between",children:[U("div",{className:"flex items-center gap-x-4",children:[B("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),B("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as L,jsxs as de}from"react/jsx-runtime";var ht=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:L(c,{className:"pb-10 lg:pb-0",children:de("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[L("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),de("div",{className:"flex flex-col gap-y-8",children:[L("div",{className:"",children:o}),de("div",{className:"flex items-center justify-between",children:[L("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as v}from"react/jsx-runtime";var Zo=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s})=>{let m=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,testimonialPrimaryImage:v(z,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:v(z,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:v(z,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:v(z,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(m){case"withLargeAvatar":return v(yt,{...d});case"withOverlappingImage":return v(ht,{...d});default:return v(vt,{...d})}};export{go as a,we as b,vo as c,Ro as d,He as e,Fe as f,yo as g,Ae as h,Ar as i,To as j,_e as k,J as l,Ge as m,Ha as n,Ao as o,$e as p,_a as q,Lo as r,Je as s,Xe as t,ei as u,Io as v,Qe as w,mi as x,Vo as y,gi as z,Oo as A,wi as B,Mo as C,zo as D,je as E,Wo as F,Go as G,ie as H,et as I,Ko as J,$o as K,nt as L,me as M,it as N,Yo as O,qo as P,Ct as Q,Jo as R,Zo as S,xt as T,gt as U,Qo as V};
|
package/dist/chunk-GKTFFPF4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"next/dynamic";var o=t(()=>import("./carousel-X2W2VEGH.mjs").then(e=>e.Carousel));export{o as a};
|
package/dist/chunk-HLLKGZN6.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-RZFK2OR7.mjs";import{a as e,c as l}from"./chunk-S7CSCIW4.mjs";import{jsx as m}from"react/jsx-runtime";var v=({className:r,wrapperClassName:t,direction:o,justifyContent:i,gap:a,alignItems:p,backgroundColor:n,spacing:f,border:P,fluidContent:c,fullHeight:y,children:x})=>m(s,{backgroundColor:n,spacing:f,border:P,fluidContent:c,fullHeight:y,wrapperClassName:t,children:m("div",{className:l("flex",{[e(o,"flex-{value}")]:o,[e(i,"justify-{value}")]:i,[e(a,"gap-{value}")]:a,[e(p,"items-{value}")]:p},r),children:x})});import{jsx as u}from"react/jsx-runtime";var d=({className:r,alignSelf:t,shrink:o,children:i})=>u("div",{className:l({[e(t,"self-{value}")]:t,[`shrink-${o}`]:o},r),children:i});import g from"next/dynamic";var T=g(()=>import("./video-RC2QHJS2.mjs").then(r=>r.Video));export{v as a,d as b,T as c};
|
package/dist/chunk-RZFK2OR7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,b as f,c as t}from"./chunk-S7CSCIW4.mjs";import{jsx as c}from"react/jsx-runtime";var y=({className:d,wrapperClassName:x,style:w,children:P,backgroundColor:o,spacing:T,border:i="",fluidContent:a=!1,fullHeight:b=!1,maxWidth:r,...C})=>{let[V,{marginTop:p,marginBottom:n,marginRight:m,marginLeft:l,paddingTop:s,paddingBottom:g,paddingRight:u,paddingLeft:v}]=f(T);return c("div",{className:t("px-4 xl:px-0",{"!px-0":a,"mx-auto w-full":!a,"max-w-7xl max-w-container-width":!r&&!a,[`max-w-${r}`]:!!r&&!a},x),children:c("div",{className:t({"!h-screen":b,[`bg-${o}`]:!!o,[e(p,"mt-{value}")]:p,[e(n,"mb-{value}")]:n,[e(m,"mr-{value}")]:m,[e(l,"ml-{value}")]:l,[e(s,"pt-{value}")]:s,[e(g,"pb-{value}")]:g,[e(u,"pr-{value}")]:u,[e(v,"pl-{value}")]:v,[e(i,"{value}")]:i},d),style:{...V,...w},...C,children:P})})};export{y as a};
|
package/dist/chunk-VZCFPWET.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-RZFK2OR7.mjs";import{a as e,c as i}from"./chunk-S7CSCIW4.mjs";import{jsx as n}from"react/jsx-runtime";var f=({className:l,columnsCount:a,gapX:o,gapY:r,backgroundColor:t,spacing:m,border:s,fluidContent:u,fullHeight:v,children:d})=>n(p,{backgroundColor:t,spacing:m,border:s,fluidContent:u,fullHeight:v,children:n("div",{className:i("grid",{[e(a,"grid-cols-{value}")]:a,[e(o,"gap-x-{value}")]:o,[e(r,"gap-y-{value}")]:r},l),children:d})});import{jsx as b}from"react/jsx-runtime";var C=({className:l,columnStart:a,columnSpan:o,rowStart:r,rowSpan:t,children:m})=>b("div",{className:i({[e(a,"col-start-{value}")]:a,[e(o,"col-{value}")]:o,[e(r,"row-start-{value}")]:r,[e(t,"row-{value}")]:t},l),children:m});export{f as a,C as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as d}from"./chunk-SDTLQ3CZ.mjs";import{a as I}from"./chunk-RZFK2OR7.mjs";import{a as G}from"./chunk-JNIJ5N3Y.mjs";import{c as h}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as R}from"@uniformdev/canvas-next-rsc/component";import F from"react-responsive-masonry";import{Fragment as v,jsx as y}from"react/jsx-runtime";var g={firstLineCount:2,secondLineCount:3,otherLinesCount:4},L=({slot:n,aspectRatio:s,config:r})=>{let{firstLineCount:i=g.firstLineCount,secondLineCount:p=g.secondLineCount,otherLinesCount:m=g.otherLinesCount}=r||{},{items:f=[]}=n||{},c=f.reduce((e,o,t)=>(t<i?e[0]?.push(o):t<i+p?e[1]?.push(o):e[2]?.push(o),e),[[],[],[]])||[];return y(v,{children:c?.map((e,o)=>e.length?y(F,{columnsCount:o<2||e.length<m?e.length:m,gutter:"4px",children:e.map((t,u)=>y("div",{className:h("flex flex-1 items-center justify-center",{[`aspect-${s}`]:!!s}),children:t},`img-${u}`))},`line-${o}`):null)})};import{jsx as l}from"react/jsx-runtime";var M=({slots:n,aspectRatio:s,items:r,backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,config:e,context:o,component:t})=>{let u=r?.length?{name:"items",items:G(r)?.map((a,C)=>l(d,{src:a.url,style:{objectFit:"cover"},alt:`Image ${C}`,fill:!0},a?.id||`image-${C}`))||[]}:n.imageGalleryItems,P=!r?.length&&!t?.slots?.imageGalleryItems?.filter(({_id:a})=>!a?.startsWith("placeholder"))?.length;return l(I,{backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,children:l("div",{className:"flex flex-col gap-1",children:P?l(R,{context:o,slot:n.imageGalleryItems,data:t}):l(L,{slot:u,aspectRatio:s,config:e})})})};export{M as ImageGallery};
|
package/dist/tabs-CYLXRNAY.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import"./chunk-Q3CRLNSQ.mjs";import{a as f}from"./chunk-RZFK2OR7.mjs";import"./chunk-MSXDLSXH.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{Fragment as C,useCallback as k,useEffect as v,useMemo as V,useState as h}from"react";import{flattenValues as F}from"@uniformdev/canvas";import{UniformSlot as E,UniformText as I}from"@uniformdev/canvas-next-rsc/component";var u=({color:r,variant:a})=>m("flex flex-row overflow-x-auto ",{[`border-${r} border-b`]:r&&a==="bordered"}),p=({color:r,variant:a,tabItem:t,activeTabId:e})=>m("text-lg shrink-0 font-medium px-5 py-3",{[`text-${r}`]:r,[`border-${r}`]:t.id===e&&a==="bordered","border-b-2":a==="bordered","opacity-60 hover:opacity-100":t.id!==e,"border-transparent":t.id!==e&&a==="bordered"});import{jsx as i,jsxs as N}from"react/jsx-runtime";var J=({slots:r,color:a,component:t,context:e,backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B})=>{let b=t.variant||"default",[n,d]=h(t?.slots?.tabItems?.[0]?._id),l=V(()=>t?.slots?.tabItems?t.slots.tabItems.map(s=>({...F(s),id:s._id})):[],[t?.slots?.tabItems]);v(()=>{l.length&&(n||d(l[0]?.id||""))},[l,n]);let P=k(s=>{e.isContextualEditing&&d(s)},[e.isContextualEditing]);return N(f,{className:"flex flex-col gap-5",backgroundColor:g,spacing:T,border:c,fluidContent:x,fullHeight:B,children:[i("div",{className:u({color:a,variant:b}),children:l.map((s,o)=>i("button",{onClick:()=>d(s.id),className:p({color:a,variant:b,tabItem:s,activeTabId:n}),children:t?.slots?.tabItems?.[o]&&i(I,{onFocus:()=>P(s.id),context:e,parameterId:"text",component:t?.slots?.tabItems[o],placeholder:"Tab title"})},s.id))}),i(E,{data:t,context:e,slot:r.tabItems,children:({child:s,component:{_id:o}})=>o===n?i(C,{children:s},o):i(C,{},o)})]})};export{J as Tabs};
|