@stackshift-ui/footer 7.0.0-beta.0 → 7.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6BH7H5U6.mjs → chunk-IHBDV5WG.mjs} +1 -1
- package/dist/chunk-JHKJISLR.mjs +1 -0
- package/dist/chunk-RCTJNFBQ.mjs +1 -0
- package/dist/chunk-RMQJ53K6.mjs +1 -0
- package/dist/chunk-S35O64PB.mjs +1 -0
- package/dist/chunk-VVCGL3KL.mjs +1 -0
- package/dist/footer.d.ts +1 -1
- package/dist/footer.js +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/footer_a.js +1 -1
- package/dist/footer_a.mjs +1 -1
- package/dist/footer_b.js +1 -1
- package/dist/footer_b.mjs +1 -1
- package/dist/footer_c.js +1 -1
- package/dist/footer_c.mjs +1 -1
- package/dist/footer_d.js +1 -1
- package/dist/footer_d.mjs +1 -1
- package/dist/helper/index.d.ts +2 -1
- package/dist/helper/index.js +1 -1
- package/dist/helper/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types.d.ts +112 -1
- package/dist/types.js +1 -1
- package/package.json +14 -14
- package/src/footer.tsx +10 -6
- package/src/footer_a.tsx +3 -2
- package/src/footer_b.tsx +9 -8
- package/src/footer_c.tsx +10 -7
- package/src/footer_d.tsx +7 -6
- package/dist/chunk-7W6RK7Y5.mjs +0 -1
- package/dist/chunk-FWXIR5AI.mjs +0 -1
- package/dist/chunk-QPANXJBZ.mjs +0 -1
- package/dist/chunk-SGUCRY3T.mjs +0 -1
- package/dist/chunk-ZHEGNPPP.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-S35O64PB.mjs";import{Container as p}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Grid as h}from"@stackshift-ui/grid";import{GridItem as u}from"@stackshift-ui/grid-item";import{Image as s}from"@stackshift-ui/image";import{Link as x}from"@stackshift-ui/link";import{Section as w}from"@stackshift-ui/section";import{SocialIcons as b}from"@stackshift-ui/social-icons";import{Text as i}from"@stackshift-ui/text";import{jsx as r,jsxs as t}from"react/jsx-runtime";function N({logo:e,text:m,contacts:n,copyright:a,socialMedia:f}){return r(w,{className:"py-20 bg-background",children:t(p,{maxWidth:1280,children:[t(d,{wrap:!0,className:"mb-5 lg:mb-20",children:[r(o,{logo:e}),r(k,{text:m}),r(g,{contacts:n})]}),t(d,{justify:"between",align:"center",wrap:!0,className:"w-full mx-auto gap-4",children:[r(I,{copyright:a}),r(L,{socialMedia:f})]})]})})}function o({logo:e}){var m;return e!=null&&e.image?r("div",{className:"w-full mb-5 lg:w-1/5",children:r(x,{className:"w-40 h-14 flex items-center","aria-label":l(e)==="/"?"Go to home page":`Go to ${l(e)}`,href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(s,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(m=e==null?void 0:e.alt)!=null?m:"footer-logo"})})}):null}function k({text:e}){return e?r(p,{className:"w-full mb-5 lg:w-1/5 !px-0 lg:px-4",maxWidth:1280,children:r(i,{muted:!0,className:"leading-loose",children:e})}):null}function g({contacts:e}){return e?r(p,{className:"w-full mt-1 lg:w-1/2 !px-0 lg:px-4",maxWidth:1280,children:e==null?void 0:e.map((m,n)=>t(h,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[t(u,{span:1,children:[r(i,{weight:"bold",className:"mb-4",children:"Address"}),r(i,{muted:!0,className:"mb-5",children:m==null?void 0:m.addressInfo})]}),t(u,{span:1,children:[r(i,{weight:"bold",className:"mb-4",children:"Email"}),r(i,{muted:!0,className:"mb-5",children:r("a",{href:`mailto:${m==null?void 0:m.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:m==null?void 0:m.emailInfo})})]}),t(u,{span:1,children:[r(i,{weight:"bold",className:"mb-4",children:"Number"}),r(i,{muted:!0,className:"mb-5",children:r("a",{href:`tel:${m==null?void 0:m.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:m==null?void 0:m.contactInfo})})]})]},n))}):null}function I({copyright:e}){return e?r(i,{muted:!0,className:"text-sm",children:e}):null}function L({socialMedia:e}){return e?r(d,{wrap:!0,className:"gap-5",children:e==null?void 0:e.map((m,n)=>r(C,{social:m},n))}):null}function C({social:e}){var m,n,a,f;return e!=null&&e.socialMediaLink?r(x,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(m=e==null?void 0:e.socialMediaIcon)!=null&&m.image?r(s,{className:"w-full h-full object-contain",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(f=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?f:"contact-socialMedia-icon"}):r(b,{social:e==null?void 0:e.socialMedia})}):null}export{N as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as L}from"./chunk-IHBDV5WG.mjs";import{a as h}from"./chunk-RCTJNFBQ.mjs";import{a as M}from"./chunk-VVCGL3KL.mjs";import{a as k}from"./chunk-RMQJ53K6.mjs";import{jsx as S}from"react/jsx-runtime";var C={variant_a:L,variant_b:h,variant_c:M,variant_d:k},D="Footer",R=({data:o})=>{var i,r,s,t,c,l,p,m,u,f,v,g,y,F;let n=o==null?void 0:o.variant,e=n&&C[n],x={logo:(r=(i=o==null?void 0:o.variants)==null?void 0:i.logo)!=null?r:void 0,text:(t=(s=o==null?void 0:o.variants)==null?void 0:s.plainText)!=null?t:void 0,contacts:(l=(c=o==null?void 0:o.variants)==null?void 0:c.contactDetails)!=null?l:void 0,copyright:(m=(p=o==null?void 0:o.variants)==null?void 0:p.copyright)!=null?m:void 0,socialMedia:(f=(u=o==null?void 0:o.variants)==null?void 0:u.socialLinks)!=null?f:void 0,menu:(g=(v=o==null?void 0:o.variants)==null?void 0:v.menu)!=null?g:void 0,multipleMenus:(F=(y=o==null?void 0:o.variants)==null?void 0:y.multipleMenus)!=null?F:void 0};return e?S(e,{...x}):null};R.displayName=D;export{R as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-S35O64PB.mjs";import{Button as p}from"@stackshift-ui/button";import{Container as l}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Image as d}from"@stackshift-ui/image";import{Link as o}from"@stackshift-ui/link";import{Section as b}from"@stackshift-ui/section";import{SocialIcons as h}from"@stackshift-ui/social-icons";import{Text as w}from"@stackshift-ui/text";import L from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";function c({logo:e,copyright:t,socialMedia:n,menu:a}){return r(b,{className:"py-20 bg-background",children:i(l,{maxWidth:1280,children:[i(u,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[r(y,{logo:e}),r(x,{menu:a})]}),i(u,{wrap:!0,className:"mt-8 justify-between items-start",children:[r(M,{copyright:t}),r(N,{socialMedia:n})]})]})})}function y({logo:e}){var t;return e!=null&&e.image?r("div",{className:"w-full lg:w-1/5",children:r(o,{"aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,className:"w-40 h-14 flex items-center",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(d,{className:"w-full h-full ",src:e==null?void 0:e.image,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})})}):null}function x({menu:e}){return e?r("div",{className:"w-full lg:w-auto",children:r(u,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,children:e==null?void 0:e.map((t,n,{length:a})=>i(L.Fragment,{children:[r(s,{links:t}),n+1!==a?r(v,{}):null]},(t==null?void 0:t._key)||n))})}):null}function s({links:e,index:t}){return e?r("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:r(p,{as:"link",link:e,variant:"unstyled",className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700","aria-label":e==null?void 0:e.label,asChild:!0,children:e==null?void 0:e.label})},t):null}function v(){return r("li",{className:"hidden md:block",children:r("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function M({copyright:e}){return e?r(w,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function N({socialMedia:e}){return e?r("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(t=>r(g,{social:t}))}):null}function g({social:e}){var t,n,a,f;return e!=null&&e.socialMediaLink?r(o,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?r(d,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(f=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?f:"contact-socialMedia-icon"}):r(h,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l}from"./chunk-S35O64PB.mjs";import{Button as w}from"@stackshift-ui/button";import{Container as o}from"@stackshift-ui/container";import{Flex as n}from"@stackshift-ui/flex";import{Image as s}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as h}from"@stackshift-ui/section";import{SocialIcons as y}from"@stackshift-ui/social-icons";import{Text as d}from"@stackshift-ui/text";import{jsx as t,jsxs as f}from"react/jsx-runtime";function u({logo:e,multipleMenus:r,copyright:i,socialMedia:a,text:m}){return t(h,{className:"py-20 overflow-hidden bg-background",children:f(o,{maxWidth:1280,children:[f(n,{className:"flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[f("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[t(N,{logo:e}),t(b,{text:m})]}),t(n,{className:"flex-col space-y-8 lg:space-y-0",children:t(n,{className:" flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:t(v,{multipleMenus:r})})}),t("div",{className:"hidden [@media(min-width:1444px)]:block",children:t(p,{socialMedia:a})})]}),t("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:t(x,{copyright:i})}),f(n,{className:"flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[t(x,{copyright:i}),t(p,{socialMedia:a})]})]})})}function N({logo:e}){var r;return e!=null&&e.image?t(c,{className:"w-40 h-14 flex items-center","aria-label":l(e)==="/"?"Go to home page":`Go to ${l(e)}`,href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(s,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function b({text:e}){return e?t(d,{muted:!0,className:"leading-normal",children:e}):null}function x({copyright:e}){return e?t(d,{className:"lg:pt-10 text-sm",children:e}):null}function v({multipleMenus:e}){return e?t("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>t(L,{menu:r},r==null?void 0:r._key))}):null}function L({menu:e}){var r,i;return e?f("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&t(d,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&t(n,{as:"ul",direction:"col",className:"space-y-2",children:(i=e==null?void 0:e.links)==null?void 0:i.map(a=>t("li",{children:t(w,{as:"link",link:a,variant:"unstyled",className:"text-gray-500 no-underline hover:text-gray-700 px-0 py-0","aria-label":a==null?void 0:a.label,asChild:!0,children:a==null?void 0:a.label})},a==null?void 0:a._key))})]}):null}function p({socialMedia:e}){return e?t(n,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&t(g,{social:r},r==null?void 0:r._key))}):null}function g({social:e}){var r,i,a,m;return e!=null&&e.socialMediaLink?t(c,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?t(s,{className:"w-full h-full object-contain",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:56,height:56,alt:(m=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?m:"contact-socialMedia-icon"}):t(y,{social:e==null?void 0:e.socialMedia})}):null}export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Link as f}from"@stackshift-ui/link";import{jsx as y}from"react/jsx-runtime";var b=r=>{var a,u,p;return r!=null&&r.internalLink&&(r==null?void 0:r.type)==="linkInternal"?(u=(a=r==null?void 0:r.internalLink)==null?void 0:a.toLowerCase())!=null&&u.includes("home")?"/":`/${r.internalLink}`:r!=null&&r.externalLink&&(r==null?void 0:r.type)==="linkExternal"&&(p=r==null?void 0:r.externalLink)!=null?p:"/"},o=({className:r,ariaLabel:a,style:u={},children:p,link:e,target:n})=>{var c,s;let L="inline-block py-2 px-6 rounded-l-xl rounded-t-xl bg-primary hover:bg-primary-foreground text-gray-50 font-bold leading-loose outline-none transition duration-200";if(!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink))return y("a",{className:r!=null?r:L,"aria-label":a,target:n,href:"/page-not-found",children:p});if(((e==null?void 0:e.type)==="linkInternal"||e.linkType==="linkInternal")&&((c=e==null?void 0:e.internalLink)==null?void 0:c.toLowerCase())==="home")return y(f,{href:(e==null?void 0:e.referenceType)==="projects"?"/projects":"/","aria-label":a,className:r!=null?r:L,target:n,children:p});if((e==null?void 0:e.type)==="linkInternal"||(e==null?void 0:e.linkType)==="linkInternal"){let t="";switch(e==null?void 0:e.referenceType){case"projects":t=`/projects/${e==null?void 0:e.internalLink}`;break;case"commercial":t=`/projects/commercial/${e==null?void 0:e.internalLink}`;break;case"residential":t=`/projects/residential/${e==null?void 0:e.internalLink}`;break;case"landscape":t=`/projects/landscape/${e==null?void 0:e.internalLink}`;break;case"public":t=`/projects/public/${e==null?void 0:e.internalLink}`;break;case"teaching":t=`/projects/teaching/${e==null?void 0:e.internalLink}`;break;case"designInMotion":t=`/projects/future-projects/${e==null?void 0:e.internalLink}`;break;case"renovation":t=`/projects/residential/renovation/${e==null?void 0:e.internalLink}`;break;case"newConstruction":t=`/projects/residential/new-construction/${e==null?void 0:e.internalLink}`;break;case"ourTeam":t=`/our-team/${e==null?void 0:e.internalLink}`;break;case"recognition":t=`/recognition/${e==null?void 0:e.internalLink}`;break;default:t=`/${e==null?void 0:e.internalLink}`}return y(f,{href:t,"aria-label":a,className:r!=null?r:L,target:n,children:p})}else return(e==null?void 0:e.type)==="linkExternal"||(e==null?void 0:e.linkType)==="linkExternal"?y("a",{"aria-label":a,className:r!=null?r:L,href:(s=e==null?void 0:e.externalLink)!=null?s:"",target:n,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":void 0,children:p}):y(f,{href:"/","aria-label":a,className:r!=null?r:L,target:n,children:p})};export{b as a,o as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l}from"./chunk-S35O64PB.mjs";import{Button as f}from"@stackshift-ui/button";import{Container as p}from"@stackshift-ui/container";import{Flex as n}from"@stackshift-ui/flex";import{Image as u}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as s}from"@stackshift-ui/section";import{SocialIcons as o}from"@stackshift-ui/social-icons";import{Text as b}from"@stackshift-ui/text";import{jsx as r,jsxs as i}from"react/jsx-runtime";function x({logo:e,menu:t,copyright:a,socialMedia:m}){return i(s,{className:"bg-background",children:[r(v,{}),r(p,{maxWidth:1e3,children:i("div",{className:"pt-10 pb-12",children:[i(n,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[r(y,{copyright:a}),r(w,{menu:t}),r(N,{logo:e})]}),r(h,{socialMedia:m})]})})]})}function y({copyright:e}){return e?r(b,{className:"w-full text-sm text-center",children:e}):null}function N({logo:e}){var t;return e!=null&&e.image?r("div",{className:"w-full text-center",children:r(c,{className:"inline-block text-xl font-bold leading-none","aria-label":l(e)==="/"?"Go to home page":`Go to ${l(e)}`,href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(u,{src:e==null?void 0:e.image,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function w({menu:e}){return e?r("div",{className:"mx-auto",children:r(n,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((t,a)=>r(g,{links:t,index:a}))})}):null}function g({links:e,index:t}){return e?r("li",{className:"w-full text-center",children:r(f,{as:"link",link:e,variant:"unstyled",asChild:!0,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap","aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})},t):null}function h({socialMedia:e}){return e?r(n,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((t,a)=>r(L,{social:t},a))}):null}function L({social:e}){var t,a,m,d;return e!=null&&e.socialMediaLink?r(c,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?r(u,{className:"w-full h-full object-contain",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:56,height:56,alt:(d=(m=e==null?void 0:e.socialMediaIcon)==null?void 0:m.alt)!=null?d:"contact-socialMedia-icon"}):r(o,{social:e==null?void 0:e.socialMedia})}):null}function v(){return i(n,{className:"w-full",children:[i(n,{className:"w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]}),i(n,{className:"w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]}),i(n,{className:"w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]})]})}export{x as a};
|
package/dist/footer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ContactDetails, LabeledRouteWithKey, Logo, SectionsProps, SocialLink } from "./types";
|
|
3
3
|
export interface FooterProps {
|
|
4
4
|
logo?: Logo;
|
|
5
5
|
text?: string;
|
package/dist/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ge=Object.create;var c=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var d=(e,r)=>()=>(e&&(r=e(e=0)),r);var s=(e,r)=>{for(var t in r)c(e,t,{get:r[t],enumerable:!0})},E=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Fe(r))!Ie.call(e,l)&&l!==t&&c(e,l,{get:()=>r[l],enumerable:!(n=Me(r,l))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?ge(Ce(e)):{},E(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)),_e=e=>E(c({},"__esModule",{value:!0}),e);var p,x=d(()=>{"use strict";p=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"}});var Q={};s(Q,{Footer_A:()=>O,default:()=>O});function O({logo:e,text:r,contacts:t,copyright:n,socialMedia:l}){return(0,a.jsx)(H.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(h.Container,{maxWidth:1280,children:[(0,a.jsxs)(w.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Pe,{logo:e}),(0,a.jsx)(Ge,{text:r}),(0,a.jsx)(Re,{contacts:t})]}),(0,a.jsxs)(w.Flex,{justify:"between",align:"center",wrap:!0,className:"w-full mx-auto gap-4",children:[(0,a.jsx)(We,{copyright:n}),(0,a.jsx)($e,{socialMedia:l})]})]})})}function Pe({logo:e}){var r;return e!=null&&e.image?(0,a.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,a.jsx)(k.Link,{className:"w-40 h-14 flex items-center","aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(v.Image,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Ge({text:e}){return e?(0,a.jsx)(h.Container,{className:"w-full mb-5 lg:w-1/5 !px-0 lg:px-4",maxWidth:1280,children:(0,a.jsx)(u.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Re({contacts:e}){return e?(0,a.jsx)(h.Container,{className:"w-full mt-1 lg:w-1/2 !px-0 lg:px-4",maxWidth:1280,children:e==null?void 0:e.map((r,t)=>(0,a.jsxs)(q.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,a.jsxs)(b.GridItem,{span:1,children:[(0,a.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(u.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(b.GridItem,{span:1,children:[(0,a.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(u.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,a.jsxs)(b.GridItem,{span:1,children:[(0,a.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(u.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function We({copyright:e}){return e?(0,a.jsx)(u.Text,{muted:!0,className:"text-sm",children:e}):null}function $e({socialMedia:e}){return e?(0,a.jsx)(w.Flex,{wrap:!0,className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(je,{social:r},t))}):null}function je({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,a.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,a.jsx)(v.Image,{className:"w-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,a.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var h,w,q,b,v,k,H,J,u,a,U=d(()=>{"use strict";h=require("@stackshift-ui/container"),w=require("@stackshift-ui/flex"),q=require("@stackshift-ui/grid"),b=require("@stackshift-ui/grid-item"),v=require("@stackshift-ui/image"),k=require("@stackshift-ui/link"),H=require("@stackshift-ui/section"),J=require("@stackshift-ui/social-icons"),u=require("@stackshift-ui/text");x();a=require("react/jsx-runtime")});var ie={};s(ie,{Footer_B:()=>ne,default:()=>ne});function ne({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,f.jsx)(H.Section,{className:"py-20 bg-background",children:(0,f.jsxs)(Y.Container,{maxWidth:1280,children:[(0,f.jsxs)(w.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,f.jsx)(Be,{logo:e}),(0,f.jsx)(De,{menu:n})]}),(0,f.jsxs)(w.Flex,{wrap:!0,className:"mt-8 justify-between items-start",children:[(0,f.jsx)(Ve,{copyright:r}),(0,f.jsx)(Ae,{socialMedia:t})]})]})})}function Be({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)("div",{className:"mb-8 xl:mb-0 w-full lg:w-1/5",children:(0,f.jsx)(k.Link,{"aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,className:"w-40 h-14 flex items-center",href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(v.Image,{className:"w-full h-full ",src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function De({menu:e}){return e?(0,f.jsx)("div",{className:"w-full lg:w-auto",children:(0,f.jsx)(w.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,className:"mt-8",children:e==null?void 0:e.map((r,t,{length:n})=>(0,f.jsxs)(te.default.Fragment,{children:[(0,f.jsx)(ze,{links:r}),t+1!==n?(0,f.jsx)(Ke,{}):null]},(r==null?void 0:r._key)||t))})}):null}function ze({links:e,index:r}){return e?(0,f.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,f.jsx)(X.Button,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Ke(){return(0,f.jsx)("li",{className:"hidden md:block",children:(0,f.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ve({copyright:e}){return e?(0,f.jsx)(u.Text,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function Ae({socialMedia:e}){return e?(0,f.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,f.jsx)(Ee,{social:r}))}):null}function Ee({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,f.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)(v.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,f.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var X,Y,w,v,k,H,J,u,te,f,ae=d(()=>{"use strict";X=require("@stackshift-ui/button"),Y=require("@stackshift-ui/container"),te=Te(require("react"));x();f=require("react/jsx-runtime")});var se={};s(se,{Footer_C:()=>de,default:()=>de});function de({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,i.jsxs)(H.Section,{className:"bg-background",children:[(0,i.jsx)(Xe,{}),(0,i.jsx)(Y.Container,{maxWidth:1e3,children:(0,i.jsxs)("div",{className:"pt-10 pb-12",children:[(0,i.jsxs)(w.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,i.jsx)(qe,{copyright:t}),(0,i.jsx)(Je,{menu:r}),(0,i.jsx)(He,{logo:e})]}),(0,i.jsx)(Qe,{socialMedia:n})]})})]})}function qe({copyright:e}){return e?(0,i.jsx)(u.Text,{className:"w-full text-sm text-center",children:e}):null}function He({logo:e}){var r;return e!=null&&e.image?(0,i.jsx)("div",{className:"w-full text-center",children:(0,i.jsx)(k.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(v.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function Je({menu:e}){return e?(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(w.Flex,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Oe,{links:r,index:t}))})}):null}function Oe({links:e,index:r}){return e?(0,i.jsx)("li",{className:"w-full text-center",children:(0,i.jsx)(me.Button,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Qe({socialMedia:e}){return e?(0,i.jsx)(w.Flex,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Ue,{social:r},t))}):null}function Ue({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,i.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,i.jsx)(v.Image,{className:"w-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,i.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}function Xe(){return(0,i.jsxs)("div",{className:"flex w-full",children:[(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var me,Y,w,v,k,H,J,u,i,xe=d(()=>{"use strict";me=require("@stackshift-ui/button");x();i=require("react/jsx-runtime")});var Ne={};s(Ne,{Footer_D:()=>Le,default:()=>Le});function Le({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:l}){return(0,m.jsx)(H.Section,{className:"py-20 overflow-hidden bg-background",children:(0,m.jsxs)(Y.Container,{maxWidth:1280,children:[(0,m.jsxs)("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,m.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-w-4",children:[(0,m.jsx)(Ye,{logo:e}),(0,m.jsx)(Ze,{text:l})]}),(0,m.jsx)("div",{className:"flex flex-col space-w-8 lg:space-w-0",children:(0,m.jsx)("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,m.jsx)(er,{multipleMenus:r})})}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,m.jsx)(ce,{socialMedia:n})})]}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,m.jsx)(oe,{copyright:t})}),(0,m.jsxs)("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,m.jsx)(oe,{copyright:t}),(0,m.jsx)(ce,{socialMedia:n})]})]})})}function Ye({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)(k.Link,{className:"w-40 h-14 flex items-center","aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(v.Image,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Ze({text:e}){return e?(0,m.jsx)(u.Text,{muted:!0,className:"leading-normal",children:e}):null}function oe({copyright:e}){return e?(0,m.jsx)(u.Text,{className:"lg:pt-10 text-sm",children:e}):null}function er({multipleMenus:e}){return e?(0,m.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>(0,m.jsx)(rr,{menu:r},r==null?void 0:r._key))}):null}function rr({menu:e}){var r,t;return e?(0,m.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,m.jsx)(u.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,m.jsx)(w.Flex,{as:"ul",direction:"col",className:"space-w-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,m.jsx)("li",{children:(0,m.jsx)(be.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function ce({socialMedia:e}){return e?(0,m.jsx)(w.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,m.jsx)(tr,{social:r},r==null?void 0:r._key))}):null}function tr({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,m.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,m.jsx)(v.Image,{className:"w-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,m.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var be,Y,w,v,k,H,J,u,m,ve=d(()=>{"use strict";be=require("@stackshift-ui/button");x();m=require("react/jsx-runtime")});var ar={};s(ar,{Footer:()=>ke});module.exports=_e(ar);var o=require("react"),Se=require("react/jsx-runtime"),nr={variant_a:(0,o.lazy)(()=>Promise.resolve().then(()=>(U(),Q))),variant_b:(0,o.lazy)(()=>Promise.resolve().then(()=>(ae(),ie))),variant_c:(0,o.lazy)(()=>Promise.resolve().then(()=>(xe(),se))),variant_d:(0,o.lazy)(()=>Promise.resolve().then(()=>(ve(),Ne)))},ir="Footer",ke=({data:e})=>{var l,_,P,G,R,W,$,j,B,D,z,K,V,A;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(_=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?_:void 0,text:(G=(P=e==null?void 0:e.variants)==null?void 0:P.plainText)!=null?G:void 0,contacts:(W=(R=e==null?void 0:e.variants)==null?void 0:R.contactDetails)!=null?W:void 0,copyright:(j=($=e==null?void 0:e.variants)==null?void 0:$.copyright)!=null?j:void 0,socialMedia:(D=(B=e==null?void 0:e.variants)==null?void 0:B.socialLinks)!=null?D:void 0,menu:(K=(z=e==null?void 0:e.variants)==null?void 0:z.menu)!=null?K:void 0,multipleMenus:(A=(V=e==null?void 0:e.variants)==null?void 0:V.multipleMenus)!=null?A:void 0};return t?(0,Se.jsx)(t,{...n}):null};ke.displayName=ir;0&&(module.exports={Footer});
|
|
1
|
+
"use strict";var xe=Object.create;var x=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var ce=Object.getOwnPropertyNames;var be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var we=(e,r)=>{for(var t in r)x(e,t,{get:r[t],enumerable:!0})},q=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of ce(r))!ye.call(e,p)&&p!==t&&x(e,p,{get:()=>r[p],enumerable:!(n=le(r,p))||n.enumerable});return e};var he=(e,r,t)=>(t=e!=null?xe(be(e)):{},q(r||!e||!e.__esModule?x(t,"default",{value:e,enumerable:!0}):t,e)),Le=e=>q(x({},"__esModule",{value:!0}),e);var Xe={};we(Xe,{Footer:()=>se});module.exports=Le(Xe);var b=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),H=require("@stackshift-ui/grid"),l=require("@stackshift-ui/grid-item"),h=require("@stackshift-ui/image"),L=require("@stackshift-ui/link"),J=require("@stackshift-ui/section"),O=require("@stackshift-ui/social-icons"),o=require("@stackshift-ui/text");var Ne=require("react/jsx-runtime"),u=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};function v({logo:e,text:r,contacts:t,copyright:n,socialMedia:p}){return(0,Ne.jsx)(J.Section,{className:"py-20 bg-background",children:(0,Ne.jsxs)(b.Container,{maxWidth:1280,children:[(0,Ne.jsxs)(c.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,Ne.jsx)(ge,{logo:e}),(0,Ne.jsx)(Se,{text:r}),(0,Ne.jsx)(Me,{contacts:t})]}),(0,Ne.jsxs)(c.Flex,{justify:"between",align:"center",wrap:!0,className:"o-full mx-auto gap-4",children:[(0,Ne.jsx)(Fe,{copyright:n}),(0,Ne.jsx)(Ce,{socialMedia:p})]})]})})}function ge({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"o-full mb-5 lg:o-1/5",children:(0,Ne.jsx)(L.Link,{className:"o-40 h-14 flex items-center","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(h.Image,{className:"o-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Se({text:e}){return e?(0,Ne.jsx)(b.Container,{className:"o-full mb-5 lg:o-1/5 !px-0 lg:px-4",maxWidth:1280,children:(0,Ne.jsx)(o.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Me({contacts:e}){return e?(0,Ne.jsx)(b.Container,{className:"o-full mt-1 lg:o-1/2 !px-0 lg:px-4",maxWidth:1280,children:e==null?void 0:e.map((r,t)=>(0,Ne.jsxs)(H.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,Ne.jsxs)(l.GridItem,{span:1,children:[(0,Ne.jsx)(o.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,Ne.jsx)(o.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,Ne.jsxs)(l.GridItem,{span:1,children:[(0,Ne.jsx)(o.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,Ne.jsx)(o.Text,{muted:!0,className:"mb-5",children:(0,Ne.jsx)("Ne",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,Ne.jsxs)(l.GridItem,{span:1,children:[(0,Ne.jsx)(o.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,Ne.jsx)(o.Text,{muted:!0,className:"mb-5",children:(0,Ne.jsx)("Ne",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function Fe({copyright:e}){return e?(0,Ne.jsx)(o.Text,{muted:!0,className:"text-sm",children:e}):null}function Ce({socialMedia:e}){return e?(0,Ne.jsx)(c.Flex,{wrap:!0,className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,Ne.jsx)(Te,{social:r},t))}):null}function Te({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(L.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded o-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(h.Image,{className:"o-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var Q=require("@stackshift-ui/button"),k=he(require("react"));function S({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,Ne.jsx)(J.Section,{className:"py-20 bg-background",children:(0,Ne.jsxs)(b.Container,{maxWidth:1280,children:[(0,Ne.jsxs)(c.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,Ne.jsx)(Ie,{logo:e}),(0,Ne.jsx)($e,{menu:n})]}),(0,Ne.jsxs)(c.Flex,{wrap:!0,className:"mt-8 justify-between items-start",children:[(0,Ne.jsx)(Pe,{copyright:r}),(0,Ne.jsx)(Ge,{socialMedia:t})]})]})})}function Ie({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"o-full lg:o-1/5",children:(0,Ne.jsx)(L.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"o-40 h-14 flex items-center",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(h.Image,{className:"o-full h-full ",src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function $e({menu:e}){return e?(0,Ne.jsx)("div",{className:"o-full lg:o-auto",children:(0,Ne.jsx)(c.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,children:e==null?void 0:e.map((r,t,{length:n})=>(0,Ne.jsxs)(k.default.Fragment,{children:[(0,Ne.jsx)(je,{links:r}),t+1!==n?(0,Ne.jsx)(_e,{}):null]},(r==null?void 0:r._key)||t))})}):null}function je({links:e,index:r}){return e?(0,Ne.jsx)("li",{className:"o-full mb-2 md:mb-0 md:o-auto",children:(0,Ne.jsx)(Q.Button,{as:"link",link:e,variant:"unstyled",className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700","aria-label":e==null?void 0:e.label,asChild:!0,children:e==null?void 0:e.label})},r):null}function _e(){return(0,Ne.jsx)("li",{className:"hidden md:block",children:(0,Ne.jsx)("svg",{className:"o-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Ne.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",c:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Pe({copyright:e}){return e?(0,Ne.jsx)(o.Text,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function Ge({socialMedia:e}){return e?(0,Ne.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,Ne.jsx)(Re,{social:r}))}):null}function Re({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(L.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(h.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}function C({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,Ne.jsxs)(J.Section,{className:"bg-background",children:[(0,Ne.jsx)(Ae,{}),(0,Ne.jsx)(b.Container,{maxWidth:1e3,children:(0,Ne.jsxs)("div",{className:"pt-10 pb-12",children:[(0,Ne.jsxs)(c.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,Ne.jsx)(We,{copyright:t}),(0,Ne.jsx)(De,{menu:r}),(0,Ne.jsx)(Be,{logo:e})]}),(0,Ne.jsx)(ze,{socialMedia:n})]})})]})}function We({copyright:e}){return e?(0,Ne.jsx)(o.Text,{className:"o-full text-sm text-center",children:e}):null}function Be({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"o-full text-center",children:(0,Ne.jsx)(L.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function De({menu:e}){return e?(0,Ne.jsx)("div",{className:"mx-auto",children:(0,Ne.jsx)(c.Flex,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,Ne.jsx)(Ke,{links:r,index:t}))})}):null}function Ke({links:e,index:r}){return e?(0,Ne.jsx)("li",{className:"o-full text-center",children:(0,Ne.jsx)(Q.Button,{as:"link",link:e,variant:"unstyled",asChild:!0,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap","aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function ze({socialMedia:e}){return e?(0,Ne.jsx)(c.Flex,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,Ne.jsx)(Ee,{social:r},t))}):null}function Ee({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(L.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded o-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(h.Image,{className:"o-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}function Ae(){return(0,Ne.jsxs)(c.Flex,{className:"o-full",children:[(0,Ne.jsxs)(c.Flex,{className:"o-1/3",children:[(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-primary"})]}),(0,Ne.jsxs)(c.Flex,{className:"o-1/3",children:[(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-primary"})]}),(0,Ne.jsxs)(c.Flex,{className:"o-1/3",children:[(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"o-1/3 py-1 bg-primary"})]})]})}function $({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:p}){return(0,Ne.jsx)(J.Section,{className:"py-20 overflow-hidden bg-background",children:(0,Ne.jsxs)(b.Container,{maxWidth:1280,children:[(0,Ne.jsxs)(c.Flex,{className:"flex-col lg:flex-row o-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,Ne.jsxs)("div",{className:"o-full lg:max-o-sm xl:max-o-xs space-c-4",children:[(0,Ne.jsx)(Ve,{logo:e}),(0,Ne.jsx)(qe,{text:p})]}),(0,Ne.jsx)(c.Flex,{className:"flex-col space-c-8 lg:space-c-0",children:(0,Ne.jsx)(c.Flex,{className:" flex-col lg:flex-row o-full justify-between items-start lg:items-center",children:(0,Ne.jsx)(He,{multipleMenus:r})})}),(0,Ne.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,Ne.jsx)(me,{socialMedia:n})})]}),(0,Ne.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,Ne.jsx)(ie,{copyright:t})}),(0,Ne.jsxs)(c.Flex,{className:"flex-col sm:flex-row o-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,Ne.jsx)(ie,{copyright:t}),(0,Ne.jsx)(me,{socialMedia:n})]})]})})}function Ve({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)(L.Link,{className:"o-40 h-14 flex items-center","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(h.Image,{className:"o-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function qe({text:e}){return e?(0,Ne.jsx)(o.Text,{muted:!0,className:"leading-normal",children:e}):null}function ie({copyright:e}){return e?(0,Ne.jsx)(o.Text,{className:"lg:pt-10 text-sm",children:e}):null}function He({multipleMenus:e}){return e?(0,Ne.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>(0,Ne.jsx)(Je,{menu:r},r==null?void 0:r._key))}):null}function Je({menu:e}){var r,t;return e?(0,Ne.jsxs)("div",{className:"min-o-[140px]",children:[(e==null?void 0:e.title)&&(0,Ne.jsx)(o.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,Ne.jsx)(c.Flex,{as:"ul",direction:"col",className:"space-c-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,Ne.jsx)("li",{children:(0,Ne.jsx)(Q.Button,{as:"link",link:n,variant:"unstyled",className:"text-gray-500 no-underline hover:text-gray-700 px-0 py-0","aria-label":n==null?void 0:n.label,asChild:!0,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function me({socialMedia:e}){return e?(0,Ne.jsx)(c.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,Ne.jsx)(Oe,{social:r},r==null?void 0:r._key))}):null}function Oe({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(L.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded o-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(h.Image,{className:"o-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var Qe={variant_a:v,variant_b:S,variant_c:C,variant_d:$},Ue="Footer",se=({data:e})=>{var p,j,_,P,G,R,W,B,D,K,z,E,A,V;let r=e==null?void 0:e.variant,t=r&&Qe[r],n={logo:(j=(p=e==null?void 0:e.variants)==null?void 0:p.logo)!=null?j:void 0,text:(P=(_=e==null?void 0:e.variants)==null?void 0:_.plainText)!=null?P:void 0,contacts:(R=(G=e==null?void 0:e.variants)==null?void 0:G.contactDetails)!=null?R:void 0,copyright:(B=(W=e==null?void 0:e.variants)==null?void 0:W.copyright)!=null?B:void 0,socialMedia:(K=(D=e==null?void 0:e.variants)==null?void 0:D.socialLinks)!=null?K:void 0,menu:(E=(z=e==null?void 0:e.variants)==null?void 0:z.menu)!=null?E:void 0,multipleMenus:(V=(A=e==null?void 0:e.variants)==null?void 0:A.multipleMenus)!=null?V:void 0};return t?(0,Ne.jsx)(t,{...n}):null};se.displayName=Ue;0&&(module.exports={Footer});
|
package/dist/footer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-JHKJISLR.mjs";import"./chunk-IHBDV5WG.mjs";import"./chunk-RCTJNFBQ.mjs";import"./chunk-VVCGL3KL.mjs";import"./chunk-RMQJ53K6.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer};
|
package/dist/footer_a.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var
|
|
1
|
+
"use strict";var s=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var C=(e,r)=>{for(var a in r)s(e,a,{get:r[a],enumerable:!0})},$=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of T(r))!I.call(e,m)&&m!==a&&s(e,m,{get:()=>r[m],enumerable:!(n=w(r,m))||n.enumerable});return e};var j=e=>$(s({},"__esModule",{value:!0}),e);var P={};C(P,{Footer_A:()=>h,default:()=>h});module.exports=j(P);var d=require("@stackshift-ui/container"),i=require("@stackshift-ui/flex"),L=require("@stackshift-ui/grid"),u=require("@stackshift-ui/grid-item"),x=require("@stackshift-ui/image"),b=require("@stackshift-ui/link"),o=require("@stackshift-ui/section"),y=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");var M=require("react/jsx-runtime"),f=e=>{var r,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};function h({logo:e,text:r,contacts:a,copyright:n,socialMedia:m}){return(0,M.jsx)(o.Section,{className:"py-20 bg-background",children:(0,M.jsxs)(d.Container,{maxWidth:1280,children:[(0,M.jsxs)(i.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,M.jsx)(v,{logo:e}),(0,M.jsx)(G,{text:r}),(0,M.jsx)(c,{contacts:a})]}),(0,M.jsxs)(i.Flex,{justify:"between",align:"center",wrap:!0,className:"w-full mx-auto gap-4",children:[(0,M.jsx)(F,{copyright:n}),(0,M.jsx)(D,{socialMedia:m})]})]})})}function v({logo:e}){var r;return e!=null&&e.image?(0,M.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,M.jsx)(b.Link,{className:"w-40 h-14 flex items-center","aria-label":f(e)==="/"?"Go to home page":`Go to ${f(e)}`,href:f(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,M.jsx)(x.Image,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function G({text:e}){return e?(0,M.jsx)(d.Container,{className:"w-full mb-5 lg:w-1/5 !px-0 lg:px-4",maxWidth:1280,children:(0,M.jsx)(p.Text,{muted:!0,className:"leading-loose",children:e})}):null}function c({contacts:e}){return e?(0,M.jsx)(d.Container,{className:"w-full mt-1 lg:w-1/2 !px-0 lg:px-4",maxWidth:1280,children:e==null?void 0:e.map((r,a)=>(0,M.jsxs)(L.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,M.jsxs)(u.GridItem,{span:1,children:[(0,M.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,M.jsx)(p.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,M.jsxs)(u.GridItem,{span:1,children:[(0,M.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,M.jsx)(p.Text,{muted:!0,className:"mb-5",children:(0,M.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,M.jsxs)(u.GridItem,{span:1,children:[(0,M.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,M.jsx)(p.Text,{muted:!0,className:"mb-5",children:(0,M.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},a))}):null}function F({copyright:e}){return e?(0,M.jsx)(p.Text,{muted:!0,className:"text-sm",children:e}):null}function D({socialMedia:e}){return e?(0,M.jsx)(i.Flex,{wrap:!0,className:"gap-5",children:e==null?void 0:e.map((r,a)=>(0,M.jsx)(E,{social:r},a))}):null}function E({social:e}){var r,a,n,m;return e!=null&&e.socialMediaLink?(0,M.jsx)(b.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,M.jsx)(x.Image,{className:"w-full h-full object-contain",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:56,height:56,alt:(m=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?m:"contact-socialMedia-icon"}):(0,M.jsx)(y.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}0&&(module.exports={Footer_A});
|
package/dist/footer_a.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-IHBDV5WG.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_A,a as default};
|
package/dist/footer_b.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var w=Object.create;var p=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var C=(e,r)=>{for(var a in r)p(e,a,{get:r[a],enumerable:!0})},L=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of M(r))!$.call(e,u)&&u!==a&&p(e,u,{get:()=>r[u],enumerable:!(n=v(r,u))||n.enumerable});return e};var S=(e,r,a)=>(a=e!=null?w(j(e)):{},L(r||!e||!e.__esModule?p(a,"default",{value:e,enumerable:!0}):a,e)),T=e=>L(p({},"__esModule",{value:!0}),e);var G={};C(G,{Footer_B:()=>x,default:()=>x});module.exports=T(G);var b=require("@stackshift-ui/button"),i=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),m=require("@stackshift-ui/image"),o=require("@stackshift-ui/link"),y=require("@stackshift-ui/section"),c=require("@stackshift-ui/social-icons"),s=require("@stackshift-ui/text"),h=S(require("react"));var F=require("react/jsx-runtime"),f=e=>{var r,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};function x({logo:e,copyright:r,socialMedia:a,menu:n}){return(0,F.jsx)(y.Section,{className:"py-20 bg-background",children:(0,F.jsxs)(i.Container,{maxWidth:1280,children:[(0,F.jsxs)(d.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,F.jsx)(R,{logo:e}),(0,F.jsx)(_,{menu:n})]}),(0,F.jsxs)(d.Flex,{wrap:!0,className:"mt-8 justify-between items-start",children:[(0,F.jsx)(W,{copyright:r}),(0,F.jsx)(z,{socialMedia:a})]})]})})}function R({logo:e}){var r;return e!=null&&e.image?(0,F.jsx)("div",{className:"w-full lg:w-1/5",children:(0,F.jsx)(o.Link,{"aria-label":f(e)==="/"?"Go to home page":`Go to ${f(e)}`,className:"w-40 h-14 flex items-center",href:f(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,F.jsx)(m.Image,{className:"w-full h-full ",src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function _({menu:e}){return e?(0,F.jsx)("div",{className:"w-full lg:w-auto",children:(0,F.jsx)(d.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,children:e==null?void 0:e.map((r,a,{length:n})=>(0,F.jsxs)(h.default.Fragment,{children:[(0,F.jsx)(B,{links:r}),a+1!==n?(0,F.jsx)(P,{}):null]},(r==null?void 0:r._key)||a))})}):null}function B({links:e,index:r}){return e?(0,F.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,F.jsx)(b.Button,{as:"link",link:e,variant:"unstyled",className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700","aria-label":e==null?void 0:e.label,asChild:!0,children:e==null?void 0:e.label})},r):null}function P(){return(0,F.jsx)("li",{className:"hidden md:block",children:(0,F.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,F.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function W({copyright:e}){return e?(0,F.jsx)(s.Text,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function z({socialMedia:e}){return e?(0,F.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,F.jsx)(E,{social:r}))}):null}function E({social:e}){var r,a,n,u;return e!=null&&e.socialMediaLink?(0,F.jsx)(o.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,F.jsx)(m.Image,{className:"h-6",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:24,height:24,alt:(u=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?u:"contact-socialMedia-icon"}):(0,F.jsx)(c.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}0&&(module.exports={Footer_B});
|
package/dist/footer_b.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-RCTJNFBQ.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_B,a as default};
|
package/dist/footer_c.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var c=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var a in t)c(e,a,{get:t[a],enumerable:!0})},j=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of w(t))!h.call(e,p)&&p!==a&&c(e,p,{get:()=>t[p],enumerable:!(n=x(t,p))||n.enumerable});return e};var $=e=>j(c({},"__esModule",{value:!0}),e);var R={};v(R,{Footer_C:()=>L,default:()=>L});module.exports=$(R);var m=require("@stackshift-ui/button"),s=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),i=require("@stackshift-ui/image"),d=require("@stackshift-ui/link"),y=require("@stackshift-ui/section"),o=require("@stackshift-ui/social-icons"),b=require("@stackshift-ui/text");var T=require("react/jsx-runtime"),f=e=>{var t,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};function L({logo:e,menu:t,copyright:a,socialMedia:n}){return(0,T.jsxs)(y.Section,{className:"bg-background",children:[(0,T.jsx)(P,{}),(0,T.jsx)(s.Container,{maxWidth:1e3,children:(0,T.jsxs)("div",{className:"pt-10 pb-12",children:[(0,T.jsxs)(u.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,T.jsx)(C,{copyright:a}),(0,T.jsx)(I,{menu:t}),(0,T.jsx)(F,{logo:e})]}),(0,T.jsx)(g,{socialMedia:n})]})})]})}function C({copyright:e}){return e?(0,T.jsx)(b.Text,{className:"w-full text-sm text-center",children:e}):null}function F({logo:e}){var t;return e!=null&&e.image?(0,T.jsx)("div",{className:"w-full text-center",children:(0,T.jsx)(d.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":f(e)==="/"?"Go to home page":`Go to ${f(e)}`,href:f(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,T.jsx)(i.Image,{src:e==null?void 0:e.image,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function I({menu:e}){return e?(0,T.jsx)("div",{className:"mx-auto",children:(0,T.jsx)(u.Flex,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((t,a)=>(0,T.jsx)(M,{links:t,index:a}))})}):null}function M({links:e,index:t}){return e?(0,T.jsx)("li",{className:"w-full text-center",children:(0,T.jsx)(m.Button,{as:"link",link:e,variant:"unstyled",asChild:!0,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap","aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})},t):null}function g({socialMedia:e}){return e?(0,T.jsx)(u.Flex,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((t,a)=>(0,T.jsx)(N,{social:t},a))}):null}function N({social:e}){var t,a,n,p;return e!=null&&e.socialMediaLink?(0,T.jsx)(d.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,T.jsx)(i.Image,{className:"w-full h-full object-contain",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,T.jsx)(o.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}function P(){return(0,T.jsxs)(u.Flex,{className:"w-full",children:[(0,T.jsxs)(u.Flex,{className:"w-1/3",children:[(0,T.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,T.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,T.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,T.jsxs)(u.Flex,{className:"w-1/3",children:[(0,T.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,T.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,T.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,T.jsxs)(u.Flex,{className:"w-1/3",children:[(0,T.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,T.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,T.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}0&&(module.exports={Footer_C});
|
package/dist/footer_c.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-VVCGL3KL.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_C,a as default};
|
package/dist/footer_d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var s=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},$=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of v(t))!j.call(e,f)&&f!==n&&s(e,f,{get:()=>t[f],enumerable:!(a=h(t,f))||a.enumerable});return e};var S=e=>$(s({},"__esModule",{value:!0}),e);var B={};T(B,{Footer_D:()=>b,default:()=>b});module.exports=S(B);var u=require("@stackshift-ui/button"),o=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex"),x=require("@stackshift-ui/image"),c=require("@stackshift-ui/link"),L=require("@stackshift-ui/section"),w=require("@stackshift-ui/social-icons"),i=require("@stackshift-ui/text");var I=require("react/jsx-runtime"),d=e=>{var t,n,a;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(n=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&n.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(a=e==null?void 0:e.externalLink)!=null?a:"/"};function b({logo:e,multipleMenus:t,copyright:n,socialMedia:a,text:f}){return(0,I.jsx)(L.Section,{className:"py-20 overflow-hidden bg-background",children:(0,I.jsxs)(o.Container,{maxWidth:1280,children:[(0,I.jsxs)(p.Flex,{className:"flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,I.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[(0,I.jsx)(F,{logo:e}),(0,I.jsx)(M,{text:f})]}),(0,I.jsx)(p.Flex,{className:"flex-col space-y-8 lg:space-y-0",children:(0,I.jsx)(p.Flex,{className:" flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,I.jsx)(_,{multipleMenus:t})})}),(0,I.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,I.jsx)(y,{socialMedia:a})})]}),(0,I.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,I.jsx)(m,{copyright:n})}),(0,I.jsxs)(p.Flex,{className:"flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,I.jsx)(m,{copyright:n}),(0,I.jsx)(y,{socialMedia:a})]})]})})}function F({logo:e}){var t;return e!=null&&e.image?(0,I.jsx)(c.Link,{className:"w-40 h-14 flex items-center","aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,I.jsx)(x.Image,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})}):null}function M({text:e}){return e?(0,I.jsx)(i.Text,{muted:!0,className:"leading-normal",children:e}):null}function m({copyright:e}){return e?(0,I.jsx)(i.Text,{className:"lg:pt-10 text-sm",children:e}):null}function _({multipleMenus:e}){return e?(0,I.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(t=>(0,I.jsx)(P,{menu:t},t==null?void 0:t._key))}):null}function P({menu:e}){var t,n;return e?(0,I.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,I.jsx)(i.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((t=e==null?void 0:e.links)==null?void 0:t.length)>0&&(0,I.jsx)(p.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(n=e==null?void 0:e.links)==null?void 0:n.map(a=>(0,I.jsx)("li",{children:(0,I.jsx)(u.Button,{as:"link",link:a,variant:"unstyled",className:"text-gray-500 no-underline hover:text-gray-700 px-0 py-0","aria-label":a==null?void 0:a.label,asChild:!0,children:a==null?void 0:a.label})},a==null?void 0:a._key))})]}):null}function y({socialMedia:e}){return e?(0,I.jsx)(p.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(t=>(t==null?void 0:t.socialMediaLink)&&(0,I.jsx)(E,{social:t},t==null?void 0:t._key))}):null}function E({social:e}){var t,n,a,f;return e!=null&&e.socialMediaLink?(0,I.jsx)(c.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,I.jsx)(x.Image,{className:"w-full h-full object-contain",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(f=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?f:"contact-socialMedia-icon"}):(0,I.jsx)(w.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}0&&(module.exports={Footer_D});
|
package/dist/footer_d.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-RMQJ53K6.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_D,a as default};
|
package/dist/helper/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { Logo } from "../types";
|
|
1
|
+
import { ConditionalLinkTypes, Logo } from "../types";
|
|
2
2
|
export declare const logoLink: (logo: Logo) => string;
|
|
3
|
+
export declare const ConditionalLink: ({ className, ariaLabel, style, children, link, target, }: ConditionalLinkTypes) => import("react/jsx-runtime").JSX.Element;
|
package/dist/helper/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var c=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var j=(r,t)=>{for(var n in t)c(r,n,{get:t[n],enumerable:!0})},x=(r,t,n,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of o(t))!$.call(r,e)&&e!==n&&c(r,e,{get:()=>t[e],enumerable:!(p=b(t,e))||p.enumerable});return r};var h=r=>x(c({},"__esModule",{value:!0}),r);var I={};j(I,{ConditionalLink:()=>C,logoLink:()=>T});module.exports=h(I);var f=require("@stackshift-ui/link"),L=require("react/jsx-runtime"),T=r=>{var t,n,p;return r!=null&&r.internalLink&&(r==null?void 0:r.type)==="linkInternal"?(n=(t=r==null?void 0:r.internalLink)==null?void 0:t.toLowerCase())!=null&&n.includes("home")?"/":`/${r.internalLink}`:r!=null&&r.externalLink&&(r==null?void 0:r.type)==="linkExternal"&&(p=r==null?void 0:r.externalLink)!=null?p:"/"},C=({className:r,ariaLabel:t,style:n={},children:p,link:e,target:y})=>{var s,d;let u="inline-block py-2 px-6 rounded-l-xl rounded-t-xl bg-primary hover:bg-primary-foreground text-gray-50 font-bold leading-loose outline-none transition duration-200";if(!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink))return(0,L.jsx)("a",{className:r!=null?r:u,"aria-label":t,target:y,href:"/page-not-found",children:p});if(((e==null?void 0:e.type)==="linkInternal"||e.linkType==="linkInternal")&&((s=e==null?void 0:e.internalLink)==null?void 0:s.toLowerCase())==="home")return(0,L.jsx)(f.Link,{href:(e==null?void 0:e.referenceType)==="projects"?"/projects":"/","aria-label":t,className:r!=null?r:u,target:y,children:p});if((e==null?void 0:e.type)==="linkInternal"||(e==null?void 0:e.linkType)==="linkInternal"){let a="";switch(e==null?void 0:e.referenceType){case"projects":a=`/projects/${e==null?void 0:e.internalLink}`;break;case"commercial":a=`/projects/commercial/${e==null?void 0:e.internalLink}`;break;case"residential":a=`/projects/residential/${e==null?void 0:e.internalLink}`;break;case"landscape":a=`/projects/landscape/${e==null?void 0:e.internalLink}`;break;case"public":a=`/projects/public/${e==null?void 0:e.internalLink}`;break;case"teaching":a=`/projects/teaching/${e==null?void 0:e.internalLink}`;break;case"designInMotion":a=`/projects/future-projects/${e==null?void 0:e.internalLink}`;break;case"renovation":a=`/projects/residential/renovation/${e==null?void 0:e.internalLink}`;break;case"newConstruction":a=`/projects/residential/new-construction/${e==null?void 0:e.internalLink}`;break;case"ourTeam":a=`/our-team/${e==null?void 0:e.internalLink}`;break;case"recognition":a=`/recognition/${e==null?void 0:e.internalLink}`;break;default:a=`/${e==null?void 0:e.internalLink}`}return(0,L.jsx)(f.Link,{href:a,"aria-label":t,className:r!=null?r:u,target:y,children:p})}else return(e==null?void 0:e.type)==="linkExternal"||(e==null?void 0:e.linkType)==="linkExternal"?(0,L.jsx)("a",{"aria-label":t,className:r!=null?r:u,href:(d=e==null?void 0:e.externalLink)!=null?d:"",target:y,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":void 0,children:p}):(0,L.jsx)(f.Link,{href:"/","aria-label":t,className:r!=null?r:u,target:y,children:p})};0&&(module.exports={ConditionalLink,logoLink});
|
package/dist/helper/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-S35O64PB.mjs";export{b as ConditionalLink,a as logoLink};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var ge=Object.create;var c=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var d=(e,r)=>()=>(e&&(r=e(e=0)),r);var s=(e,r)=>{for(var t in r)c(e,t,{get:r[t],enumerable:!0})},Y=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Fe(r))!Ie.call(e,l)&&l!==t&&c(e,l,{get:()=>r[l],enumerable:!(n=Me(r,l))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?ge(Ce(e)):{},Y(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)),_e=e=>Y(c({},"__esModule",{value:!0}),e);var p,x=d(()=>{"use strict";p=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"}});var te={};s(te,{Footer_A:()=>S,default:()=>S});function S({logo:e,text:r,contacts:t,copyright:n,socialMedia:l}){return(0,a.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(h.Container,{maxWidth:1280,children:[(0,a.jsxs)(w.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Pe,{logo:e}),(0,a.jsx)(Ge,{text:r}),(0,a.jsx)(Re,{contacts:t})]}),(0,a.jsxs)(w.Flex,{justify:"between",align:"center",wrap:!0,className:"w-full mx-auto gap-4",children:[(0,a.jsx)(We,{copyright:n}),(0,a.jsx)($e,{socialMedia:l})]})]})})}function Pe({logo:e}){var r;return e!=null&&e.image?(0,a.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,a.jsx)(k.Link,{className:"w-40 h-14 flex items-center","aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(v.Image,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Ge({text:e}){return e?(0,a.jsx)(h.Container,{className:"w-full mb-5 lg:w-1/5 !px-0 lg:px-4",maxWidth:1280,children:(0,a.jsx)(u.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Re({contacts:e}){return e?(0,a.jsx)(h.Container,{className:"w-full mt-1 lg:w-1/2 !px-0 lg:px-4",maxWidth:1280,children:e==null?void 0:e.map((r,t)=>(0,a.jsxs)(Z.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,a.jsxs)(b.GridItem,{span:1,children:[(0,a.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(u.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(b.GridItem,{span:1,children:[(0,a.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(u.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,a.jsxs)(b.GridItem,{span:1,children:[(0,a.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(u.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function We({copyright:e}){return e?(0,a.jsx)(u.Text,{muted:!0,className:"text-sm",children:e}):null}function $e({socialMedia:e}){return e?(0,a.jsx)(w.Flex,{wrap:!0,className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(je,{social:r},t))}):null}function je({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,a.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,a.jsx)(v.Image,{className:"w-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,a.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var h,w,Z,b,v,k,ee,re,u,a,g=d(()=>{"use strict";h=require("@stackshift-ui/container"),w=require("@stackshift-ui/flex"),Z=require("@stackshift-ui/grid"),b=require("@stackshift-ui/grid-item"),v=require("@stackshift-ui/image"),k=require("@stackshift-ui/link"),ee=require("@stackshift-ui/section"),re=require("@stackshift-ui/social-icons"),u=require("@stackshift-ui/text");x();a=require("react/jsx-runtime")});var pe={};s(pe,{Footer_B:()=>C,default:()=>C});function C({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,f.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,f.jsxs)(ie.Container,{maxWidth:1280,children:[(0,f.jsxs)(w.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,f.jsx)(Be,{logo:e}),(0,f.jsx)(De,{menu:n})]}),(0,f.jsxs)(w.Flex,{wrap:!0,className:"mt-8 justify-between items-start",children:[(0,f.jsx)(Ve,{copyright:r}),(0,f.jsx)(Ae,{socialMedia:t})]})]})})}function Be({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)("div",{className:"mb-8 xl:mb-0 w-full lg:w-1/5",children:(0,f.jsx)(k.Link,{"aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,className:"w-40 h-14 flex items-center",href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(v.Image,{className:"w-full h-full ",src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function De({menu:e}){return e?(0,f.jsx)("div",{className:"w-full lg:w-auto",children:(0,f.jsx)(w.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,className:"mt-8",children:e==null?void 0:e.map((r,t,{length:n})=>(0,f.jsxs)(le.default.Fragment,{children:[(0,f.jsx)(ze,{links:r}),t+1!==n?(0,f.jsx)(Ke,{}):null]},(r==null?void 0:r._key)||t))})}):null}function ze({links:e,index:r}){return e?(0,f.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,f.jsx)(ne.Button,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Ke(){return(0,f.jsx)("li",{className:"hidden md:block",children:(0,f.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ve({copyright:e}){return e?(0,f.jsx)(u.Text,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function Ae({socialMedia:e}){return e?(0,f.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,f.jsx)(Ee,{social:r}))}):null}function Ee({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,f.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)(v.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,f.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var ne,ie,w,v,k,ee,re,u,le,f,I=d(()=>{"use strict";ne=require("@stackshift-ui/button"),ie=require("@stackshift-ui/container"),le=Te(require("react"));x();f=require("react/jsx-runtime")});var ce={};s(ce,{Footer_C:()=>P,default:()=>P});function P({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,i.jsxs)(ee.Section,{className:"bg-background",children:[(0,i.jsx)(Xe,{}),(0,i.jsx)(ie.Container,{maxWidth:1e3,children:(0,i.jsxs)("div",{className:"pt-10 pb-12",children:[(0,i.jsxs)(w.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,i.jsx)(qe,{copyright:t}),(0,i.jsx)(Je,{menu:r}),(0,i.jsx)(He,{logo:e})]}),(0,i.jsx)(Qe,{socialMedia:n})]})})]})}function qe({copyright:e}){return e?(0,i.jsx)(u.Text,{className:"w-full text-sm text-center",children:e}):null}function He({logo:e}){var r;return e!=null&&e.image?(0,i.jsx)("div",{className:"w-full text-center",children:(0,i.jsx)(k.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(v.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function Je({menu:e}){return e?(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(w.Flex,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Oe,{links:r,index:t}))})}):null}function Oe({links:e,index:r}){return e?(0,i.jsx)("li",{className:"w-full text-center",children:(0,i.jsx)(ue.Button,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Qe({socialMedia:e}){return e?(0,i.jsx)(w.Flex,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Ue,{social:r},t))}):null}function Ue({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,i.jsx)(k.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,i.jsx)(v.Image,{className:"w-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,i.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}function Xe(){return(0,i.jsxs)("div",{className:"flex w-full",children:[(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var ue,ie,w,v,k,ee,re,u,i,G=d(()=>{"use strict";ue=require("@stackshift-ui/button");x();i=require("react/jsx-runtime")});var ve={};s(ve,{Footer_D:()=>j,default:()=>j});function j({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:l}){return(0,m.jsx)(ee.Section,{className:"py-20 overflow-hidden bg-background",children:(0,m.jsxs)(ie.Container,{maxWidth:1280,children:[(0,m.jsxs)("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,m.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-w-4",children:[(0,m.jsx)(Ye,{logo:e}),(0,m.jsx)(Ze,{text:l})]}),(0,m.jsx)("div",{className:"flex flex-col space-w-8 lg:space-w-0",children:(0,m.jsx)("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,m.jsx)(er,{multipleMenus:r})})}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,m.jsx)(we,{socialMedia:n})})]}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,m.jsx)(be,{copyright:t})}),(0,m.jsxs)("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,m.jsx)(be,{copyright:t}),(0,m.jsx)(we,{socialMedia:n})]})]})})}function Ye({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)($.Link,{className:"w-40 h-14 flex items-center","aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(v.Image,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Ze({text:e}){return e?(0,m.jsx)(u.Text,{muted:!0,className:"leading-normal",children:e}):null}function be({copyright:e}){return e?(0,m.jsx)(u.Text,{className:"lg:pt-10 text-sm",children:e}):null}function er({multipleMenus:e}){return e?(0,m.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>(0,m.jsx)(rr,{menu:r},r==null?void 0:r._key))}):null}function rr({menu:e}){var r,t;return e?(0,m.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,m.jsx)(u.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,m.jsx)(w.Flex,{as:"ul",direction:"col",className:"space-w-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,m.jsx)("li",{children:(0,m.jsx)(he.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function we({socialMedia:e}){return e?(0,m.jsx)(w.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,m.jsx)(tr,{social:r},r==null?void 0:r._key))}):null}function tr({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,m.jsx)($.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,m.jsx)(v.Image,{className:"w-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,m.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var he,ie,w,v,$,ee,re,u,m,B=d(()=>{"use strict";he=require("@stackshift-ui/button");x();m=require("react/jsx-runtime")});var ar={};s(ar,{Footer:()=>ke,Footer_A:()=>S,Footer_B:()=>C,Footer_C:()=>P,Footer_D:()=>j});module.exports=_e(ar);var o=require("react"),Se=require("react/jsx-runtime"),nr={variant_a:(0,o.lazy)(()=>Promise.resolve().then(()=>(g(),te))),variant_b:(0,o.lazy)(()=>Promise.resolve().then(()=>(I(),pe))),variant_c:(0,o.lazy)(()=>Promise.resolve().then(()=>(G(),ce))),variant_d:(0,o.lazy)(()=>Promise.resolve().then(()=>(B(),ve)))},ir="Footer",ke=({data:e})=>{var l,D,z,K,V,A,E,q,H,J,O,Q,U,X;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(D=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?D:void 0,text:(K=(z=e==null?void 0:e.variants)==null?void 0:z.plainText)!=null?K:void 0,contacts:(A=(V=e==null?void 0:e.variants)==null?void 0:V.contactDetails)!=null?A:void 0,copyright:(q=(E=e==null?void 0:e.variants)==null?void 0:E.copyright)!=null?q:void 0,socialMedia:(J=(H=e==null?void 0:e.variants)==null?void 0:H.socialLinks)!=null?J:void 0,menu:(Q=(O=e==null?void 0:e.variants)==null?void 0:O.menu)!=null?Q:void 0,multipleMenus:(X=(U=e==null?void 0:e.variants)==null?void 0:U.multipleMenus)!=null?X:void 0};return t?(0,Se.jsx)(t,{...n}):null};ke.displayName=ir;g();I();G();B();0&&(module.exports={Footer,Footer_A,Footer_B,Footer_C,Footer_D});
|
|
2
|
+
"use strict";var xe=Object.create;var x=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var ce=Object.getOwnPropertyNames;var be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var we=(e,r)=>{for(var t in r)x(e,t,{get:r[t],enumerable:!0})},q=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of ce(r))!ye.call(e,p)&&p!==t&&x(e,p,{get:()=>r[p],enumerable:!(n=le(r,p))||n.enumerable});return e};var he=(e,r,t)=>(t=e!=null?xe(be(e)):{},q(r||!e||!e.__esModule?x(t,"default",{value:e,enumerable:!0}):t,e)),Le=e=>q(x({},"__esModule",{value:!0}),e);var Xe={};we(Xe,{Footer:()=>se,Footer_A:()=>y,Footer_B:()=>h,Footer_C:()=>L,Footer_D:()=>N});module.exports=Le(Xe);var b=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),H=require("@stackshift-ui/grid"),l=require("@stackshift-ui/grid-item"),g=require("@stackshift-ui/image"),S=require("@stackshift-ui/link"),J=require("@stackshift-ui/section"),O=require("@stackshift-ui/social-icons"),u=require("@stackshift-ui/text");var Ne=require("react/jsx-runtime"),o=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};function y({logo:e,text:r,contacts:t,copyright:n,socialMedia:p}){return(0,Ne.jsx)(J.Section,{className:"py-20 bg-background",children:(0,Ne.jsxs)(b.Container,{maxWidth:1280,children:[(0,Ne.jsxs)(c.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,Ne.jsx)(ge,{logo:e}),(0,Ne.jsx)(Se,{text:r}),(0,Ne.jsx)(Me,{contacts:t})]}),(0,Ne.jsxs)(c.Flex,{justify:"between",align:"center",wrap:!0,className:"c-full mx-auto gap-4",children:[(0,Ne.jsx)(Fe,{copyright:n}),(0,Ne.jsx)(Ce,{socialMedia:p})]})]})})}function ge({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"c-full mb-5 lg:c-1/5",children:(0,Ne.jsx)(S.Link,{className:"c-40 h-14 flex items-center","aria-label":o(e)==="/"?"Go to home page":`Go to ${o(e)}`,href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(g.Image,{className:"c-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Se({text:e}){return e?(0,Ne.jsx)(b.Container,{className:"c-full mb-5 lg:c-1/5 !px-0 lg:px-4",maxWidth:1280,children:(0,Ne.jsx)(u.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Me({contacts:e}){return e?(0,Ne.jsx)(b.Container,{className:"c-full mt-1 lg:c-1/2 !px-0 lg:px-4",maxWidth:1280,children:e==null?void 0:e.map((r,t)=>(0,Ne.jsxs)(H.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,Ne.jsxs)(l.GridItem,{span:1,children:[(0,Ne.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,Ne.jsx)(u.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,Ne.jsxs)(l.GridItem,{span:1,children:[(0,Ne.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,Ne.jsx)(u.Text,{muted:!0,className:"mb-5",children:(0,Ne.jsx)("Ne",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,Ne.jsxs)(l.GridItem,{span:1,children:[(0,Ne.jsx)(u.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,Ne.jsx)(u.Text,{muted:!0,className:"mb-5",children:(0,Ne.jsx)("Ne",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function Fe({copyright:e}){return e?(0,Ne.jsx)(u.Text,{muted:!0,className:"text-sm",children:e}):null}function Ce({socialMedia:e}){return e?(0,Ne.jsx)(c.Flex,{wrap:!0,className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,Ne.jsx)(Te,{social:r},t))}):null}function Te({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(S.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded c-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(g.Image,{className:"c-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var Q=require("@stackshift-ui/button"),k=he(require("react"));function h({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,Ne.jsx)(J.Section,{className:"py-20 bg-background",children:(0,Ne.jsxs)(b.Container,{maxWidth:1280,children:[(0,Ne.jsxs)(c.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,Ne.jsx)(Ie,{logo:e}),(0,Ne.jsx)($e,{menu:n})]}),(0,Ne.jsxs)(c.Flex,{wrap:!0,className:"mt-8 justify-between items-start",children:[(0,Ne.jsx)(Pe,{copyright:r}),(0,Ne.jsx)(Ge,{socialMedia:t})]})]})})}function Ie({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"c-full lg:c-1/5",children:(0,Ne.jsx)(S.Link,{"aria-label":o(e)==="/"?"Go to home page":`Go to ${o(e)}`,className:"c-40 h-14 flex items-center",href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(g.Image,{className:"c-full h-full ",src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function $e({menu:e}){return e?(0,Ne.jsx)("div",{className:"c-full lg:c-auto",children:(0,Ne.jsx)(c.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,children:e==null?void 0:e.map((r,t,{length:n})=>(0,Ne.jsxs)(k.default.Fragment,{children:[(0,Ne.jsx)(je,{links:r}),t+1!==n?(0,Ne.jsx)(_e,{}):null]},(r==null?void 0:r._key)||t))})}):null}function je({links:e,index:r}){return e?(0,Ne.jsx)("li",{className:"c-full mb-2 md:mb-0 md:c-auto",children:(0,Ne.jsx)(Q.Button,{as:"link",link:e,variant:"unstyled",className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700","aria-label":e==null?void 0:e.label,asChild:!0,children:e==null?void 0:e.label})},r):null}function _e(){return(0,Ne.jsx)("li",{className:"hidden md:block",children:(0,Ne.jsx)("svg",{className:"c-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Ne.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",c:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Pe({copyright:e}){return e?(0,Ne.jsx)(u.Text,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function Ge({socialMedia:e}){return e?(0,Ne.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,Ne.jsx)(Re,{social:r}))}):null}function Re({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(S.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(g.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}function L({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,Ne.jsxs)(J.Section,{className:"bg-background",children:[(0,Ne.jsx)(Ae,{}),(0,Ne.jsx)(b.Container,{maxWidth:1e3,children:(0,Ne.jsxs)("div",{className:"pt-10 pb-12",children:[(0,Ne.jsxs)(c.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,Ne.jsx)(We,{copyright:t}),(0,Ne.jsx)(De,{menu:r}),(0,Ne.jsx)(Be,{logo:e})]}),(0,Ne.jsx)(ze,{socialMedia:n})]})})]})}function We({copyright:e}){return e?(0,Ne.jsx)(u.Text,{className:"c-full text-sm text-center",children:e}):null}function Be({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"c-full text-center",children:(0,Ne.jsx)(S.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":o(e)==="/"?"Go to home page":`Go to ${o(e)}`,href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(g.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function De({menu:e}){return e?(0,Ne.jsx)("div",{className:"mx-auto",children:(0,Ne.jsx)(c.Flex,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,Ne.jsx)(Ke,{links:r,index:t}))})}):null}function Ke({links:e,index:r}){return e?(0,Ne.jsx)("li",{className:"c-full text-center",children:(0,Ne.jsx)(Q.Button,{as:"link",link:e,variant:"unstyled",asChild:!0,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap","aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function ze({socialMedia:e}){return e?(0,Ne.jsx)(c.Flex,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((r,t)=>(0,Ne.jsx)(Ee,{social:r},t))}):null}function Ee({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)(S.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded c-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(g.Image,{className:"c-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}function Ae(){return(0,Ne.jsxs)(c.Flex,{className:"c-full",children:[(0,Ne.jsxs)(c.Flex,{className:"c-1/3",children:[(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-primary"})]}),(0,Ne.jsxs)(c.Flex,{className:"c-1/3",children:[(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-primary"})]}),(0,Ne.jsxs)(c.Flex,{className:"c-1/3",children:[(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"c-1/3 py-1 bg-primary"})]})]})}function N({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:p}){return(0,Ne.jsx)(J.Section,{className:"py-20 overflow-hidden bg-background",children:(0,Ne.jsxs)(b.Container,{maxWidth:1280,children:[(0,Ne.jsxs)(c.Flex,{className:"flex-col lg:flex-row c-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,Ne.jsxs)("div",{className:"c-full lg:max-c-sm xl:max-c-xs space-y-4",children:[(0,Ne.jsx)(Ve,{logo:e}),(0,Ne.jsx)(qe,{text:p})]}),(0,Ne.jsx)(c.Flex,{className:"flex-col space-y-8 lg:space-y-0",children:(0,Ne.jsx)(c.Flex,{className:" flex-col lg:flex-row c-full justify-between items-start lg:items-center",children:(0,Ne.jsx)(He,{multipleMenus:r})})}),(0,Ne.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,Ne.jsx)(me,{socialMedia:n})})]}),(0,Ne.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,Ne.jsx)(ie,{copyright:t})}),(0,Ne.jsxs)(c.Flex,{className:"flex-col sm:flex-row c-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,Ne.jsx)(ie,{copyright:t}),(0,Ne.jsx)(me,{socialMedia:n})]})]})})}function Ve({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)($.Link,{className:"c-40 h-14 flex items-center","aria-label":o(e)==="/"?"Go to home page":`Go to ${o(e)}`,href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,Ne.jsx)(g.Image,{className:"c-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function qe({text:e}){return e?(0,Ne.jsx)(u.Text,{muted:!0,className:"leading-normal",children:e}):null}function ie({copyright:e}){return e?(0,Ne.jsx)(u.Text,{className:"lg:pt-10 text-sm",children:e}):null}function He({multipleMenus:e}){return e?(0,Ne.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>(0,Ne.jsx)(Je,{menu:r},r==null?void 0:r._key))}):null}function Je({menu:e}){var r,t;return e?(0,Ne.jsxs)("div",{className:"min-c-[140px]",children:[(e==null?void 0:e.title)&&(0,Ne.jsx)(u.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,Ne.jsx)(c.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,Ne.jsx)("li",{children:(0,Ne.jsx)(Q.Button,{as:"link",link:n,variant:"unstyled",className:"text-gray-500 no-underline hover:text-gray-700 px-0 py-0","aria-label":n==null?void 0:n.label,asChild:!0,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function me({socialMedia:e}){return e?(0,Ne.jsx)(c.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,Ne.jsx)(Oe,{social:r},r==null?void 0:r._key))}):null}function Oe({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,Ne.jsx)($.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded c-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,Ne.jsx)(g.Image,{className:"c-full h-full object-contain",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:56,height:56,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,Ne.jsx)(O.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}var Qe={variant_a:y,variant_b:h,variant_c:L,variant_d:N},Ue="Footer",se=({data:e})=>{var p,j,_,P,G,R,W,B,D,K,z,E,A,V;let r=e==null?void 0:e.variant,t=r&&Qe[r],n={logo:(j=(p=e==null?void 0:e.variants)==null?void 0:p.logo)!=null?j:void 0,text:(P=(_=e==null?void 0:e.variants)==null?void 0:_.plainText)!=null?P:void 0,contacts:(R=(G=e==null?void 0:e.variants)==null?void 0:G.contactDetails)!=null?R:void 0,copyright:(B=(W=e==null?void 0:e.variants)==null?void 0:W.copyright)!=null?B:void 0,socialMedia:(K=(D=e==null?void 0:e.variants)==null?void 0:D.socialLinks)!=null?K:void 0,menu:(E=(z=e==null?void 0:e.variants)==null?void 0:z.menu)!=null?E:void 0,multipleMenus:(V=(A=e==null?void 0:e.variants)==null?void 0:A.multipleMenus)!=null?V:void 0};return t?(0,Ne.jsx)(t,{...n}):null};se.displayName=Ue;0&&(module.exports={Footer,Footer_A,Footer_B,Footer_C,Footer_D});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a as f}from"./chunk-
|
|
2
|
+
"use strict";import{a as f}from"./chunk-JHKJISLR.mjs";import{a as o}from"./chunk-IHBDV5WG.mjs";import{a as r}from"./chunk-RCTJNFBQ.mjs";import{a as e}from"./chunk-VVCGL3KL.mjs";import{a as t}from"./chunk-RMQJ53K6.mjs";import"./chunk-S35O64PB.mjs";export{f as Footer,o as Footer_A,r as Footer_B,e as Footer_C,t as Footer_D};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,71 @@
|
|
|
1
|
+
import { PortableTextComponents } from "@portabletext/react";
|
|
1
2
|
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
3
|
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
3
4
|
export interface MainImage {
|
|
4
5
|
image: string;
|
|
5
6
|
alt?: string;
|
|
6
7
|
}
|
|
8
|
+
export interface MegaMenu {
|
|
9
|
+
_type: string;
|
|
10
|
+
showcaseLink?: ShowcaseLink[];
|
|
11
|
+
links?: MegaMenuLink[];
|
|
12
|
+
_key: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
groupOfLinks?: GroupOfLink[];
|
|
15
|
+
label?: string;
|
|
16
|
+
linkTarget?: string;
|
|
17
|
+
linkType?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
linkExternal?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Logo extends ConditionalLink {
|
|
22
|
+
alt?: string;
|
|
23
|
+
linkTarget?: string;
|
|
24
|
+
image?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface Logos {
|
|
27
|
+
logo: Logo[];
|
|
28
|
+
}
|
|
29
|
+
export interface GroupOfLink {
|
|
30
|
+
_type: string;
|
|
31
|
+
links: GroupOfLinkRoot[];
|
|
32
|
+
_key: string;
|
|
33
|
+
title: string;
|
|
34
|
+
primaryButton: LabeledRouteWithKey;
|
|
35
|
+
}
|
|
36
|
+
export interface GroupOfLinkRoot {
|
|
37
|
+
title: string;
|
|
38
|
+
_type: string;
|
|
39
|
+
label?: string;
|
|
40
|
+
links: LabeledRouteWithKey[];
|
|
41
|
+
_key: string;
|
|
42
|
+
}
|
|
43
|
+
export interface MegaMenu {
|
|
44
|
+
_type: string;
|
|
45
|
+
showcaseLink?: ShowcaseLink[];
|
|
46
|
+
links?: MegaMenuLink[];
|
|
47
|
+
_key: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
groupOfLinks?: GroupOfLink[];
|
|
50
|
+
label?: string;
|
|
51
|
+
linkTarget?: string;
|
|
52
|
+
linkType?: string;
|
|
53
|
+
url?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ShowcaseLink {
|
|
56
|
+
mainImage: MainImage;
|
|
57
|
+
_type: string;
|
|
58
|
+
primaryButton: LabeledRouteWithKey;
|
|
59
|
+
_key: string;
|
|
60
|
+
}
|
|
61
|
+
export interface MegaMenuLink {
|
|
62
|
+
_key: string;
|
|
63
|
+
title: string;
|
|
64
|
+
_type: string;
|
|
65
|
+
links: LabeledRouteWithKey[];
|
|
66
|
+
primaryButton: LabeledRouteWithKey;
|
|
67
|
+
label: string;
|
|
68
|
+
}
|
|
7
69
|
export interface LabeledRoute extends ConditionalLink {
|
|
8
70
|
ariaLabel?: string;
|
|
9
71
|
label?: string;
|
|
@@ -11,6 +73,10 @@ export interface LabeledRoute extends ConditionalLink {
|
|
|
11
73
|
linkType?: string;
|
|
12
74
|
_type?: string;
|
|
13
75
|
linkInternal?: any;
|
|
76
|
+
linkExternal?: any;
|
|
77
|
+
referenceType?: string;
|
|
78
|
+
multipleRoutes?: LabeledRouteWithKey[];
|
|
79
|
+
multipleInnerRoutes?: LabeledRouteWithKey[];
|
|
14
80
|
}
|
|
15
81
|
export interface ConditionalLink {
|
|
16
82
|
type?: string;
|
|
@@ -24,10 +90,15 @@ export interface StatItems {
|
|
|
24
90
|
_key?: string;
|
|
25
91
|
_type?: string;
|
|
26
92
|
}
|
|
27
|
-
export interface Logo
|
|
93
|
+
export interface Logo {
|
|
28
94
|
alt?: string;
|
|
29
95
|
linkTarget?: string;
|
|
30
96
|
image?: string;
|
|
97
|
+
type?: string;
|
|
98
|
+
internalLink?: string;
|
|
99
|
+
externalLink?: string;
|
|
100
|
+
linkExternal?: string;
|
|
101
|
+
linkInternal?: string;
|
|
31
102
|
}
|
|
32
103
|
export interface Images {
|
|
33
104
|
image?: string;
|
|
@@ -54,6 +125,17 @@ export interface SocialLink {
|
|
|
54
125
|
}
|
|
55
126
|
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
56
127
|
_key?: string;
|
|
128
|
+
image?: string;
|
|
129
|
+
alt?: string;
|
|
130
|
+
multipleRoutes?: LabeledRouteWithKey[];
|
|
131
|
+
featuredRoute?: {
|
|
132
|
+
featuredLink: LabeledRoute;
|
|
133
|
+
mainImage: {
|
|
134
|
+
image: string;
|
|
135
|
+
alt: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
routeType?: string;
|
|
57
139
|
}
|
|
58
140
|
export interface ArrayOfImageTitleAndText {
|
|
59
141
|
mainImage?: {
|
|
@@ -166,12 +248,17 @@ export interface Sections extends SanityBody {
|
|
|
166
248
|
export interface Variants {
|
|
167
249
|
template?: Template;
|
|
168
250
|
multipleMenus?: any;
|
|
251
|
+
multipleLinks?: any;
|
|
252
|
+
megaMenu?: MegaMenu[];
|
|
169
253
|
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
170
254
|
logo?: Logo | null;
|
|
255
|
+
logos?: Logos[] | null;
|
|
171
256
|
primaryButton?: LabeledRoute | null;
|
|
172
257
|
secondaryButton?: LabeledRoute | null;
|
|
173
258
|
routes?: LabeledRouteWithKey[] | null;
|
|
174
259
|
menu?: LabeledRouteWithKey[] | null;
|
|
260
|
+
dropdownMenu?: LabeledRouteWithKey[] | null;
|
|
261
|
+
iconLinks?: LabeledRouteWithKey[] | null;
|
|
175
262
|
plans?: Plans[] | null;
|
|
176
263
|
formLinks?: LabeledRouteWithKey[] | null;
|
|
177
264
|
portfolios?: Portfolios[] | null;
|
|
@@ -195,6 +282,7 @@ export interface Variants {
|
|
|
195
282
|
contactEmail?: string | null;
|
|
196
283
|
contactNumber?: string | null;
|
|
197
284
|
socialLinks?: SocialLink[] | null;
|
|
285
|
+
socialMedia?: SocialLink[] | null;
|
|
198
286
|
block?: any;
|
|
199
287
|
heading?: string | null;
|
|
200
288
|
acceptButtonLabel?: string | null;
|
|
@@ -359,4 +447,27 @@ export declare interface Reference {
|
|
|
359
447
|
};
|
|
360
448
|
};
|
|
361
449
|
}
|
|
450
|
+
export type MyPortableTextComponents = PortableTextComponents & {
|
|
451
|
+
code?: ({ value }: {
|
|
452
|
+
value: {
|
|
453
|
+
language?: string;
|
|
454
|
+
code?: string;
|
|
455
|
+
};
|
|
456
|
+
}) => JSX.Element;
|
|
457
|
+
};
|
|
458
|
+
export interface ConditionalLinkTypes {
|
|
459
|
+
className?: string;
|
|
460
|
+
ariaLabel: string;
|
|
461
|
+
style?: any;
|
|
462
|
+
children: string | React.ReactNode;
|
|
463
|
+
link: LabeledRoute | LabeledRouteWithKey | undefined;
|
|
464
|
+
target?: string;
|
|
465
|
+
}
|
|
466
|
+
export interface IconLink {
|
|
467
|
+
_key: string;
|
|
468
|
+
image: string;
|
|
469
|
+
alt?: string;
|
|
470
|
+
linkExternal: string;
|
|
471
|
+
linkTarget?: "_blank" | "_self";
|
|
472
|
+
}
|
|
362
473
|
export {};
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of s(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=a(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/footer",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.10",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@portabletext/react": "^3.1.0",
|
|
37
37
|
"classnames": "^2.5.1",
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/link": "
|
|
44
|
-
"@stackshift-ui/social-icons": "7.0.0-beta.
|
|
45
|
-
"@stackshift-ui/section": "7.0.0-beta.
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/
|
|
48
|
-
"@stackshift-ui/grid
|
|
49
|
-
"@stackshift-ui/grid": "7.0.0-beta.
|
|
38
|
+
"@stackshift-ui/scripts": "7.0.0-beta.5",
|
|
39
|
+
"@stackshift-ui/system": "7.0.0-beta.6",
|
|
40
|
+
"@stackshift-ui/text": "7.0.0-beta.6",
|
|
41
|
+
"@stackshift-ui/button": "7.0.0-beta.8",
|
|
42
|
+
"@stackshift-ui/image": "7.0.0-beta.7",
|
|
43
|
+
"@stackshift-ui/link": "7.0.0-beta.6",
|
|
44
|
+
"@stackshift-ui/social-icons": "7.0.0-beta.6",
|
|
45
|
+
"@stackshift-ui/section": "7.0.0-beta.6",
|
|
46
|
+
"@stackshift-ui/container": "7.0.0-beta.6",
|
|
47
|
+
"@stackshift-ui/flex": "7.0.0-beta.6",
|
|
48
|
+
"@stackshift-ui/grid": "7.0.0-beta.6",
|
|
49
|
+
"@stackshift-ui/grid-item": "7.0.0-beta.6"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@types/react": "16.8 - 19",
|
|
53
53
|
"next": "10 - 14",
|
|
54
54
|
"react": "16.8 - 19",
|
|
55
55
|
"react-dom": "16.8 - 19",
|
|
56
|
-
"@stackshift-ui/system": ">=
|
|
56
|
+
"@stackshift-ui/system": ">=7.0.0-beta.6"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"next": {
|
package/src/footer.tsx
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import FooterA from "./footer_a";
|
|
3
|
+
import FooterB from "./footer_b";
|
|
4
|
+
import FooterC from "./footer_c";
|
|
5
|
+
import FooterD from "./footer_d";
|
|
6
|
+
import { ContactDetails, LabeledRouteWithKey, Logo, SectionsProps, SocialLink } from "./types";
|
|
3
7
|
|
|
4
8
|
const Variants = {
|
|
5
|
-
variant_a:
|
|
6
|
-
variant_b:
|
|
7
|
-
variant_c:
|
|
8
|
-
variant_d:
|
|
9
|
+
variant_a: FooterA,
|
|
10
|
+
variant_b: FooterB,
|
|
11
|
+
variant_c: FooterC,
|
|
12
|
+
variant_d: FooterD,
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
export interface FooterProps {
|
package/src/footer_a.tsx
CHANGED
|
@@ -7,7 +7,6 @@ import { Link } from "@stackshift-ui/link";
|
|
|
7
7
|
import { Section } from "@stackshift-ui/section";
|
|
8
8
|
import { SocialIcons } from "@stackshift-ui/social-icons";
|
|
9
9
|
import { Text } from "@stackshift-ui/text";
|
|
10
|
-
|
|
11
10
|
import { FooterProps } from ".";
|
|
12
11
|
import { logoLink } from "./helper";
|
|
13
12
|
import { ContactDetails, Logo, SocialLink, Socials } from "./types";
|
|
@@ -124,7 +123,9 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
124
123
|
|
|
125
124
|
return (
|
|
126
125
|
<Flex wrap className="gap-5">
|
|
127
|
-
{socialMedia?.map((social, index) =>
|
|
126
|
+
{socialMedia?.map((social, index) => (
|
|
127
|
+
<SocialMediaLink social={social} key={index} />
|
|
128
|
+
))}
|
|
128
129
|
</Flex>
|
|
129
130
|
);
|
|
130
131
|
}
|
package/src/footer_b.tsx
CHANGED
|
@@ -7,9 +7,8 @@ import { Section } from "@stackshift-ui/section";
|
|
|
7
7
|
import { SocialIcons } from "@stackshift-ui/social-icons";
|
|
8
8
|
import { Text } from "@stackshift-ui/text";
|
|
9
9
|
import React from "react";
|
|
10
|
-
|
|
11
10
|
import { FooterProps } from ".";
|
|
12
|
-
import {
|
|
11
|
+
import { logoLink } from "./helper";
|
|
13
12
|
import { LabeledRoute, LabeledRouteWithKey, Logo, SocialLink, Socials } from "./types";
|
|
14
13
|
|
|
15
14
|
export default function Footer_B({ logo, copyright, socialMedia, menu }: FooterProps) {
|
|
@@ -33,7 +32,7 @@ function LogoSection({ logo }: { logo?: Logo }) {
|
|
|
33
32
|
if (!logo?.image) return null;
|
|
34
33
|
|
|
35
34
|
return (
|
|
36
|
-
<div className="
|
|
35
|
+
<div className="w-full lg:w-1/5">
|
|
37
36
|
<Link
|
|
38
37
|
aria-label={logoLink(logo) === "/" ? "Go to home page" : `Go to ${logoLink(logo)}`}
|
|
39
38
|
className="w-40 h-14 flex items-center"
|
|
@@ -51,7 +50,7 @@ function MenuLists({ menu }: { menu?: LabeledRouteWithKey[] }) {
|
|
|
51
50
|
|
|
52
51
|
return (
|
|
53
52
|
<div className="w-full lg:w-auto">
|
|
54
|
-
<Flex wrap align="center" justify="between" as="ul" gap={5}
|
|
53
|
+
<Flex wrap align="center" justify="between" as="ul" gap={5}>
|
|
55
54
|
{menu?.map((links, index, { length }) => (
|
|
56
55
|
<React.Fragment key={links?._key || index}>
|
|
57
56
|
<MenuList links={links} />
|
|
@@ -69,13 +68,13 @@ function MenuList({ links, index }: { links?: LabeledRoute; index?: number }) {
|
|
|
69
68
|
return (
|
|
70
69
|
<li className="w-full mb-2 md:mb-0 md:w-auto" key={index}>
|
|
71
70
|
<Button
|
|
71
|
+
as="link"
|
|
72
|
+
link={links}
|
|
72
73
|
variant="unstyled"
|
|
73
74
|
className="text-gray-500 no-underline lg:text-sm hover:text-gray-700"
|
|
74
75
|
aria-label={links?.label}
|
|
75
76
|
asChild>
|
|
76
|
-
|
|
77
|
-
{links?.label}
|
|
78
|
-
</ConditionalLink>
|
|
77
|
+
{links?.label}
|
|
79
78
|
</Button>
|
|
80
79
|
</li>
|
|
81
80
|
);
|
|
@@ -116,7 +115,9 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
116
115
|
|
|
117
116
|
return (
|
|
118
117
|
<div className="order-first mb-4 lg:order-last lg:mb-0">
|
|
119
|
-
{socialMedia?.map(social =>
|
|
118
|
+
{socialMedia?.map(social => (
|
|
119
|
+
<SocialMediaLink social={social} />
|
|
120
|
+
))}
|
|
120
121
|
</div>
|
|
121
122
|
);
|
|
122
123
|
}
|
package/src/footer_c.tsx
CHANGED
|
@@ -6,9 +6,8 @@ import { Link } from "@stackshift-ui/link";
|
|
|
6
6
|
import { Section } from "@stackshift-ui/section";
|
|
7
7
|
import { SocialIcons } from "@stackshift-ui/social-icons";
|
|
8
8
|
import { Text } from "@stackshift-ui/text";
|
|
9
|
-
|
|
10
9
|
import { FooterProps } from ".";
|
|
11
|
-
import {
|
|
10
|
+
import { logoLink } from "./helper";
|
|
12
11
|
import { LabeledRoute, LabeledRouteWithKey, Logo, SocialLink, Socials } from "./types";
|
|
13
12
|
|
|
14
13
|
export default function Footer_C({ logo, menu, copyright, socialMedia }: FooterProps) {
|
|
@@ -71,7 +70,9 @@ function MenuLists({ menu }: { menu?: LabeledRouteWithKey[] }) {
|
|
|
71
70
|
as="ul"
|
|
72
71
|
align="center"
|
|
73
72
|
justify="center">
|
|
74
|
-
{menu?.map((links, index) =>
|
|
73
|
+
{menu?.map((links, index) => (
|
|
74
|
+
<MenuList links={links} index={index} />
|
|
75
|
+
))}
|
|
75
76
|
</Flex>
|
|
76
77
|
</div>
|
|
77
78
|
);
|
|
@@ -83,13 +84,13 @@ function MenuList({ links, index }: { links?: LabeledRoute; index?: number }) {
|
|
|
83
84
|
return (
|
|
84
85
|
<li className="w-full text-center" key={index}>
|
|
85
86
|
<Button
|
|
87
|
+
as="link"
|
|
88
|
+
link={links}
|
|
86
89
|
variant="unstyled"
|
|
87
90
|
asChild
|
|
88
91
|
className="text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap"
|
|
89
92
|
aria-label={links?.label}>
|
|
90
|
-
|
|
91
|
-
{links?.label}
|
|
92
|
-
</ConditionalLink>
|
|
93
|
+
{links?.label}
|
|
93
94
|
</Button>
|
|
94
95
|
</li>
|
|
95
96
|
);
|
|
@@ -100,7 +101,9 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
100
101
|
|
|
101
102
|
return (
|
|
102
103
|
<Flex wrap justify="center" align="center" className="gap-5">
|
|
103
|
-
{socialMedia?.map((social, index) =>
|
|
104
|
+
{socialMedia?.map((social, index) => (
|
|
105
|
+
<SocialMediaLink social={social} key={index} />
|
|
106
|
+
))}
|
|
104
107
|
</Flex>
|
|
105
108
|
);
|
|
106
109
|
}
|
package/src/footer_d.tsx
CHANGED
|
@@ -6,9 +6,8 @@ import { Link } from "@stackshift-ui/link";
|
|
|
6
6
|
import { Section } from "@stackshift-ui/section";
|
|
7
7
|
import { SocialIcons } from "@stackshift-ui/social-icons";
|
|
8
8
|
import { Text } from "@stackshift-ui/text";
|
|
9
|
-
|
|
10
9
|
import { FooterProps } from ".";
|
|
11
|
-
import {
|
|
10
|
+
import { logoLink } from "./helper";
|
|
12
11
|
import { Logo, SocialLink, Socials } from "./types";
|
|
13
12
|
|
|
14
13
|
export default function Footer_D({
|
|
@@ -90,7 +89,9 @@ function MenuSection({ multipleMenus }: { multipleMenus?: any[] }) {
|
|
|
90
89
|
|
|
91
90
|
return (
|
|
92
91
|
<div className="flex flex-col sm:flex-row flex-wrap gap-5">
|
|
93
|
-
{multipleMenus?.map(menu =>
|
|
92
|
+
{multipleMenus?.map(menu => (
|
|
93
|
+
<MenuLinks key={menu?._key} menu={menu} />
|
|
94
|
+
))}
|
|
94
95
|
</div>
|
|
95
96
|
);
|
|
96
97
|
}
|
|
@@ -110,13 +111,13 @@ function MenuLinks({ menu }: { menu?: any }) {
|
|
|
110
111
|
{menu?.links?.map((link: any) => (
|
|
111
112
|
<li key={link?._key}>
|
|
112
113
|
<Button
|
|
114
|
+
as="link"
|
|
115
|
+
link={link}
|
|
113
116
|
variant="unstyled"
|
|
114
117
|
className="text-gray-500 no-underline hover:text-gray-700 px-0 py-0"
|
|
115
118
|
aria-label={link?.label}
|
|
116
119
|
asChild>
|
|
117
|
-
|
|
118
|
-
{link?.label}
|
|
119
|
-
</ConditionalLink>
|
|
120
|
+
{link?.label}
|
|
120
121
|
</Button>
|
|
121
122
|
</li>
|
|
122
123
|
))}
|
package/dist/chunk-7W6RK7Y5.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-FWXIR5AI.mjs";import{Button as u}from"@stackshift-ui/button";import{Container as p}from"@stackshift-ui/container";import{Flex as l}from"@stackshift-ui/flex";import{Image as f}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as o}from"@stackshift-ui/section";import{SocialIcons as s}from"@stackshift-ui/social-icons";import{Text as b}from"@stackshift-ui/text";import{jsx as r,jsxs as n}from"react/jsx-runtime";function x({logo:e,menu:t,copyright:a,socialMedia:i}){return n(o,{className:"bg-background",children:[r(h,{}),r(p,{maxWidth:1e3,children:n("div",{className:"pt-10 pb-12",children:[n(l,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[r(y,{copyright:a}),r(w,{menu:t}),r(N,{logo:e})]}),r(g,{socialMedia:i})]})})]})}function y({copyright:e}){return e?r(b,{className:"w-full text-sm text-center",children:e}):null}function N({logo:e}){var t;return e!=null&&e.image?r("div",{className:"w-full text-center",children:r(c,{className:"inline-block text-xl font-bold leading-none","aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(f,{src:e==null?void 0:e.image,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function w({menu:e}){return e?r("div",{className:"mx-auto",children:r(l,{className:"flex-col gap-4 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((t,a)=>r(v,{links:t,index:a}))})}):null}function v({links:e,index:t}){return e?r("li",{className:"w-full text-center",children:r(u,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},t):null}function g({socialMedia:e}){return e?r(l,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((t,a)=>r(L,{social:t},a))}):null}function L({social:e}){var t,a,i,d;return e!=null&&e.socialMediaLink?r(c,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?r(f,{className:"w-full h-full object-contain",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:56,height:56,alt:(d=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?d:"contact-socialMedia-icon"}):r(s,{social:e==null?void 0:e.socialMedia})}):null}function h(){return n("div",{className:"flex w-full",children:[n("div",{className:"flex w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]}),n("div",{className:"flex w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]}),n("div",{className:"flex w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]})]})}export{x as a};
|
package/dist/chunk-FWXIR5AI.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};export{i as a};
|
package/dist/chunk-QPANXJBZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-FWXIR5AI.mjs";import{Button as w}from"@stackshift-ui/button";import{Container as o}from"@stackshift-ui/container";import{Flex as p}from"@stackshift-ui/flex";import{Image as s}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as h}from"@stackshift-ui/section";import{SocialIcons as v}from"@stackshift-ui/social-icons";import{Text as d}from"@stackshift-ui/text";import{jsx as t,jsxs as n}from"react/jsx-runtime";function y({logo:e,multipleMenus:r,copyright:a,socialMedia:i,text:f}){return t(h,{className:"py-20 overflow-hidden bg-background",children:n(o,{maxWidth:1280,children:[n("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[n("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[t(u,{logo:e}),t(N,{text:f})]}),t("div",{className:"flex flex-col space-y-8 lg:space-y-0",children:t("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:t(b,{multipleMenus:r})})}),t("div",{className:"hidden [@media(min-width:1444px)]:block",children:t(x,{socialMedia:i})})]}),t("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:t(l,{copyright:a})}),n("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[t(l,{copyright:a}),t(x,{socialMedia:i})]})]})})}function u({logo:e}){var r;return e!=null&&e.image?t(c,{className:"w-40 h-14 flex items-center","aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(s,{className:"w-fit h-full object-contain",src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function N({text:e}){return e?t(d,{muted:!0,className:"leading-normal",children:e}):null}function l({copyright:e}){return e?t(d,{className:"lg:pt-10 text-sm",children:e}):null}function b({multipleMenus:e}){return e?t("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>t(L,{menu:r},r==null?void 0:r._key))}):null}function L({menu:e}){var r,a;return e?n("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&t(d,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&t(p,{as:"ul",direction:"col",className:"space-y-2",children:(a=e==null?void 0:e.links)==null?void 0:a.map(i=>t("li",{children:t(w,{as:"link",link:i,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:i==null?void 0:i.label,children:i==null?void 0:i.label})},i==null?void 0:i._key))})]}):null}function x({socialMedia:e}){return e?t(p,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&t(g,{social:r},r==null?void 0:r._key))}):null}function g({social:e}){var r,a,i,f;return e!=null&&e.socialMediaLink?t(c,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded w-6 h-6 flex items-center",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?t(s,{className:"w-full h-full object-contain",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:56,height:56,alt:(f=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?f:"contact-socialMedia-icon"}):t(v,{social:e==null?void 0:e.socialMedia})}):null}export{y as a};
|
package/dist/chunk-SGUCRY3T.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-FWXIR5AI.mjs";import{Button as p}from"@stackshift-ui/button";import{Container as l}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Image as d}from"@stackshift-ui/image";import{Link as o}from"@stackshift-ui/link";import{Section as b}from"@stackshift-ui/section";import{SocialIcons as L}from"@stackshift-ui/social-icons";import{Text as w}from"@stackshift-ui/text";import c from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";function h({logo:e,copyright:t,socialMedia:n,menu:a}){return r(b,{className:"py-20 bg-background",children:i(l,{maxWidth:1280,children:[i(u,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[r(x,{logo:e}),r(y,{menu:a})]}),i(u,{wrap:!0,className:"mt-8 justify-between items-start",children:[r(M,{copyright:t}),r(g,{socialMedia:n})]})]})})}function x({logo:e}){var t;return e!=null&&e.image?r("div",{className:"mb-8 xl:mb-0 w-full lg:w-1/5",children:r(o,{"aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,className:"w-40 h-14 flex items-center",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(d,{className:"w-full h-full ",src:e==null?void 0:e.image,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})})}):null}function y({menu:e}){return e?r("div",{className:"w-full lg:w-auto",children:r(u,{wrap:!0,align:"center",justify:"between",as:"ul",gap:5,className:"mt-8",children:e==null?void 0:e.map((t,n,{length:a})=>i(c.Fragment,{children:[r(N,{links:t}),n+1!==a?r(s,{}):null]},(t==null?void 0:t._key)||n))})}):null}function N({links:e,index:t}){return e?r("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:r(p,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},t):null}function s(){return r("li",{className:"hidden md:block",children:r("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function M({copyright:e}){return e?r(w,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function g({socialMedia:e}){return e?r("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(t=>r(k,{social:t}))}):null}function k({social:e}){var t,n,a,f;return e!=null&&e.socialMediaLink?r(o,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?r(d,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(f=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?f:"contact-socialMedia-icon"}):r(L,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}export{h as a};
|
package/dist/chunk-ZHEGNPPP.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lazy as i}from"react";import{jsx as R}from"react/jsx-runtime";var k={variant_a:i(()=>import("./footer_a.mjs")),variant_b:i(()=>import("./footer_b.mjs")),variant_c:i(()=>import("./footer_c.mjs")),variant_d:i(()=>import("./footer_d.mjs"))},x="Footer",F=({data:n})=>{var r,s,t,c,l,p,u,m,v,f,y,g,L,h;let o=n==null?void 0:n.variant,e=o&&k[o],M={logo:(s=(r=n==null?void 0:n.variants)==null?void 0:r.logo)!=null?s:void 0,text:(c=(t=n==null?void 0:n.variants)==null?void 0:t.plainText)!=null?c:void 0,contacts:(p=(l=n==null?void 0:n.variants)==null?void 0:l.contactDetails)!=null?p:void 0,copyright:(m=(u=n==null?void 0:n.variants)==null?void 0:u.copyright)!=null?m:void 0,socialMedia:(f=(v=n==null?void 0:n.variants)==null?void 0:v.socialLinks)!=null?f:void 0,menu:(g=(y=n==null?void 0:n.variants)==null?void 0:y.menu)!=null?g:void 0,multipleMenus:(h=(L=n==null?void 0:n.variants)==null?void 0:L.multipleMenus)!=null?h:void 0};return e?R(e,{...M}):null};F.displayName=x;export{F as a};
|