@stackshift-ui/footer 6.0.9 → 6.0.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-AHKAOI66.mjs +1 -0
- package/dist/footer.js +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/footer_d.js +1 -1
- package/dist/footer_d.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +16 -16
- package/src/footer_d.tsx +59 -35
- package/dist/chunk-SGGB7UM2.mjs +0 -1
- /package/dist/{chunk-2T56DGA2.mjs → chunk-EGP3MYWE.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-FWXIR5AI.mjs";import{Button as h}from"@stackshift-ui/button";import{Container as y}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Image as w}from"@stackshift-ui/image";import{Link as u}from"@stackshift-ui/link";import{Section as b}from"@stackshift-ui/section";import{SocialIcons as v}from"@stackshift-ui/social-icons";import{Text as m}from"@stackshift-ui/text";import{jsx as t,jsxs as a}from"react/jsx-runtime";function g({logo:e,multipleMenus:r,copyright:n,socialMedia:i,text:f}){return t(b,{className:"py-20 overflow-hidden bg-background",children:a(y,{maxWidth:1280,children:[a("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[a("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[t(k,{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(L,{multipleMenus:r})})}),t("div",{className:"hidden [@media(min-width:1444px)]:block",children:t(o,{socialMedia:i})})]}),t("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:t(p,{copyright:n})}),a("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(p,{copyright:n}),t(o,{socialMedia:i})]})]})})}function k({logo:e}){var r;return e!=null&&e.image?t(u,{className:"inline-block text-xl font-bold leading-none","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:t(w,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function N({text:e}){return e?t(m,{muted:!0,className:"leading-normal",children:e}):null}function p({copyright:e}){return e?t(m,{className:"lg:pt-10 text-sm",children:e}):null}function L({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(S,{menu:r},r==null?void 0:r._key))}):null}function S({menu:e}){var r,n;return e?a("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&t(m,{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(c,{as:"ul",direction:"col",className:"space-y-2",children:(n=e==null?void 0:e.links)==null?void 0:n.map(i=>t("li",{children:t(h,{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 o({socialMedia:e}){return e?t(c,{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(T,{social:r},r==null?void 0:r._key))}):null}function T({social:e}){var n,i,f,l;if(!(e!=null&&e.socialMediaLink))return null;let r=x=>{if(!x)return;let s=x.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(s))return s};return t(u,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(n=e==null?void 0:e.socialMediaIcon)!=null&&n.image?t(w,{className:"h-6 w-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:24,height:24,alt:(l=(f=e==null?void 0:e.socialMediaIcon)==null?void 0:f.alt)!=null?l:"socialmedia-icon"}):t(v,{social:r(e==null?void 0:e.socialMedia)})})}export{g as a};
|
package/dist/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ve=Object.create;var h=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var ge=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(e&&(r=e(e=0)),r);var o=(e,r)=>{for(var t in r)h(e,t,{get:r[t],enumerable:!0})},E=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of ge(r))!Fe.call(e,u)&&u!==t&&h(e,u,{get:()=>r[u],enumerable:!(i=Se(r,u))||i.enumerable});return e};var Ce=(e,r,t)=>(t=e!=null?ve(Me(e)):{},E(r||!e||!e.__esModule?h(t,"default",{value:e,enumerable:!0}):t,e)),Ie=e=>E(h({},"__esModule",{value:!0}),e);var p,x=s(()=>{"use strict";p=e=>{var r,t,i;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"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"}});var Q={};o(Q,{Footer_A:()=>O,default:()=>O});function O({logo:e,text:r,contacts:t,copyright:i,socialMedia:u}){return(0,a.jsx)(H.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(w.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Te,{logo:e}),(0,a.jsx)(_e,{text:r}),(0,a.jsx)(Pe,{contacts:t})]}),(0,a.jsxs)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,a.jsx)(Ge,{copyright:i}),(0,a.jsx)(Re,{socialMedia:u})]})]})})}function Te({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)(g.Link,{"aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,className:"text-3xl font-bold leading-none",href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function _e({text:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(l.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Pe({contacts:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,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)(y.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(y.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(l.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)(y.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(l.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 Ge({copyright:e}){return e?(0,a.jsx)(l.Text,{muted:!0,className:"text-sm",children:e}):null}function Re({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(We,{social:r,index:t}))}):null}function We({social:e,index:r}){var t,i,u,d;return e!=null&&e.socialMediaLink?(0,a.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,a.jsx)(S.Image,{className:"h-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:24,height:24,alt:(d=(u=e==null?void 0:e.socialMediaIcon)==null?void 0:u.alt)!=null?d:"contact-socialMedia-icon"}):(0,a.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var w,L,q,y,S,g,H,J,l,a,U=s(()=>{"use strict";w=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),q=require("@stackshift-ui/grid"),y=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),g=require("@stackshift-ui/link"),H=require("@stackshift-ui/section"),J=require("@stackshift-ui/social-icons"),l=require("@stackshift-ui/text");x();a=require("react/jsx-runtime")});var ie={};o(ie,{Footer_B:()=>ne,default:()=>ne});function ne({logo:e,copyright:r,socialMedia:t,menu:i}){return(0,m.jsx)(H.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(Y.Container,{maxWidth:1280,children:[(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-L border-gray-100",children:[(0,m.jsx)($e,{logo:e}),(0,m.jsx)(Be,{menu:i})]}),(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,m.jsx)(Ke,{copyright:r}),(0,m.jsx)(je,{socialMedia:t})]})]})})}function $e({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,m.jsx)(g.Link,{"aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,className:"inline-block text-3xl font-bold leading-none",href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function Be({menu:e}){return e?(0,m.jsx)("div",{className:"w-full lg:w-auto",children:(0,m.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,t,{length:i})=>(0,m.jsxs)(te.default.Fragment,{children:[(0,m.jsx)(De,{links:r}),t+1!==i?(0,m.jsx)(ze,{}):null]},(r==null?void 0:r._key)||t))})}):null}function De({links:e,index:r}){return e?(0,m.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,m.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 ze(){return(0,m.jsx)("li",{className:"hidden md:block",children:(0,m.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,m.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 Ke({copyright:e}){return e?(0,m.jsx)(l.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function je({socialMedia:e}){return e?(0,m.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,m.jsx)(Ve,{social:r}))}):null}function Ve({social:e}){var r,t,i,u;return e!=null&&e.socialMediaLink?(0,m.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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,m.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(u=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?u:"contact-socialMedia-icon"}):(0,m.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var X,Y,L,S,g,H,J,l,te,m,ae=s(()=>{"use strict";X=require("@stackshift-ui/button"),Y=require("@stackshift-ui/container"),te=Ce(require("react"));x();m=require("react/jsx-runtime")});var se={};o(se,{Footer_C:()=>de,default:()=>de});function de({logo:e,menu:r,copyright:t,socialMedia:i}){return(0,n.jsxs)(H.Section,{className:"bg-background",children:[(0,n.jsx)(Qe,{}),(0,n.jsx)(Y.Container,{maxWidth:1e3,children:(0,n.jsxs)("div",{className:"pt-10 pb-12",children:[(0,n.jsxs)(L.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-L lg:border-gray-300 lg:pb-8",children:[(0,n.jsx)(Ae,{copyright:t}),(0,n.jsx)(qe,{menu:r}),(0,n.jsx)(Ee,{logo:e})]}),(0,n.jsx)(Je,{socialMedia:i})]})})]})}function Ae({copyright:e}){return e?(0,n.jsx)(l.Text,{className:"w-full text-sm text-center",children:e}):null}function Ee({logo:e}){var r;return e!=null&&e.image?(0,n.jsx)("div",{className:"w-full text-center",children:(0,n.jsx)(g.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,n.jsx)(S.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 qe({menu:e}){return e?(0,n.jsx)("div",{className:"mx-auto",children:(0,n.jsx)(L.Flex,{className:"flex-col gap-0 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,n.jsx)(He,{links:r,index:t}))})}):null}function He({links:e,index:r}){return e?(0,n.jsx)("li",{className:"w-full text-center",children:(0,n.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 Je({socialMedia:e}){return e?(0,n.jsx)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,n.jsx)(Oe,{social:r,index:t}))}):null}function Oe({social:e,index:r}){var t,i,u,d;return e!=null&&e.socialMediaLink?(0,n.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,n.jsx)(S.Image,{className:"h-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:56,height:56,alt:(d=(u=e==null?void 0:e.socialMediaIcon)==null?void 0:u.alt)!=null?d:"contact-socialMedia-icon"}):(0,n.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}function Qe(){return(0,n.jsxs)("div",{className:"flex w-full",children:[(0,n.jsxs)("div",{className:"flex w-1/3",children:[(0,n.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,n.jsxs)("div",{className:"flex w-1/3",children:[(0,n.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,n.jsxs)("div",{className:"flex w-1/3",children:[(0,n.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var me,Y,L,S,g,H,J,l,n,oe=s(()=>{"use strict";me=require("@stackshift-ui/button");x();n=require("react/jsx-runtime")});var Le={};o(Le,{Footer_D:()=>ye,default:()=>ye});function ye({logo:e,multipleMenus:r,copyright:t,socialMedia:i,text:u}){return(0,f.jsx)(H.Section,{className:"py-20 overflow-hidden bg-background",children:(0,f.jsxs)(Y.Container,{maxWidth:1280,children:[(0,f.jsxs)(L.Flex,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[(0,f.jsxs)("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[(0,f.jsx)(Ue,{logo:e}),(0,f.jsx)(Xe,{text:u})]}),(0,f.jsx)(Ze,{multipleMenus:r}),(0,f.jsx)(rr,{socialMedia:i})]}),(0,f.jsx)(Ye,{copyright:t})]})})}function Ue({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)(g.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,f.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Xe({text:e}){return e?(0,f.jsx)(l.Text,{muted:!0,className:"leading-normal",children:e}):null}function Ye({copyright:e}){return e?(0,f.jsx)(l.Text,{className:"pt-10 text-sm",children:e}):null}function Ze({multipleMenus:e}){return e?(0,f.jsx)(L.Flex,{wrap:!0,className:"flex-grow lg:justify-around",gap:4,children:e==null?void 0:e.map((r,t)=>(0,f.jsx)(er,{menu:r},t))}):null}function er({menu:e}){var r,t;return e?(0,f.jsxs)("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&(0,f.jsx)(l.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,f.jsx)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map((i,u)=>(0,f.jsx)("li",{children:(0,f.jsx)(xe.Button,{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})},u))})]}):null}function rr({socialMedia:e}){return e?(0,f.jsx)(L.Flex,{className:"!items-center w-full ml-auto lg:justify-end lg:w-1/6",wrap:!0,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,f.jsx)(tr,{social:r}))}):null}function tr({social:e}){var r,t,i,u;return e!=null&&e.socialMediaLink?(0,f.jsx)("span",{children:(0,f.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block items-center p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(e==null?void 0:e.socialMedia)==="others"?(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(u=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?u:"contact-socialMedia-icon"}):null:(0,f.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}var xe,Y,L,S,g,H,J,l,f,we=s(()=>{"use strict";xe=require("@stackshift-ui/button");x();f=require("react/jsx-runtime")});var ar={};o(ar,{Footer:()=>Ne});module.exports=Ie(ar);var c=require("react"),ke=require("react/jsx-runtime"),nr={variant_a:(0,c.lazy)(()=>Promise.resolve().then(()=>(U(),Q))),variant_b:(0,c.lazy)(()=>Promise.resolve().then(()=>(ae(),ie))),variant_c:(0,c.lazy)(()=>Promise.resolve().then(()=>(oe(),se))),variant_d:(0,c.lazy)(()=>Promise.resolve().then(()=>(we(),Le)))},ir="Footer",Ne=({data:e})=>{var u,d,P,G,R,W,$,B,D,z,K,j,V,A;let r=e==null?void 0:e.variant,t=r&&nr[r],i={logo:(d=(u=e==null?void 0:e.variants)==null?void 0:u.logo)!=null?d: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:(B=($=e==null?void 0:e.variants)==null?void 0:$.copyright)!=null?B:void 0,socialMedia:(z=(D=e==null?void 0:e.variants)==null?void 0:D.socialLinks)!=null?z:void 0,menu:(j=(K=e==null?void 0:e.variants)==null?void 0:K.menu)!=null?j:void 0,multipleMenus:(A=(V=e==null?void 0:e.variants)==null?void 0:V.multipleMenus)!=null?A:void 0};return t?(0,ke.jsx)(t,{...i}):null};Ne.displayName=ir;0&&(module.exports={Footer});
|
|
1
|
+
"use strict";var Se=Object.create;var y=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var x=(e,r)=>()=>(e&&(r=e(e=0)),r);var b=(e,r)=>{for(var t in r)y(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&&y(e,l,{get:()=>r[l],enumerable:!(n=Me(r,l))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?Se(Ce(e)):{},E(r||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),_e=e=>E(y({},"__esModule",{value:!0}),e);var d,c=x(()=>{"use strict";d=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={};b(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)(N.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.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)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",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)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Ge({text:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(p.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Re({contacts:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,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)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(p.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)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(p.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)(p.Text,{muted:!0,className:"text-sm",children:e}):null}function $e({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(Be,{social:r,index:t}))}):null}function Be({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,a.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,a.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,a.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var N,L,q,h,S,M,H,J,p,a,U=x(()=>{"use strict";N=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),q=require("@stackshift-ui/grid"),h=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),M=require("@stackshift-ui/link"),H=require("@stackshift-ui/section"),J=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");c();a=require("react/jsx-runtime")});var ie={};b(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)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,f.jsx)(De,{logo:e}),(0,f.jsx)(je,{menu:n})]}),(0,f.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,f.jsx)(Ve,{copyright:r}),(0,f.jsx)(Ae,{socialMedia:t})]})]})})}function De({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,f.jsx)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"inline-block text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function je({menu:e}){return e?(0,f.jsx)("div",{className:"w-full lg:w-auto",children:(0,f.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",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)(p.Text,{muted:!0,className:"order-last text-sm ",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)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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)(S.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,L,S,M,H,J,p,te,f,ae=x(()=>{"use strict";X=require("@stackshift-ui/button"),Y=require("@stackshift-ui/container"),te=Te(require("react"));c();f=require("react/jsx-runtime")});var se={};b(se,{Footer_C:()=>pe,default:()=>pe});function pe({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)(L.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)(p.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)(M.Link,{className:"inline-block text-xl font-bold leading-none","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)(S.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)(L.Flex,{className:"flex-col gap-0 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)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Ue,{social:r,index:t}))}):null}function Ue({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,i.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,i.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,i.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):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,L,S,M,H,J,p,i,oe=x(()=>{"use strict";me=require("@stackshift-ui/button");c();i=require("react/jsx-runtime")});var Ne={};b(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-y-4",children:[(0,m.jsx)(Ye,{logo:e}),(0,m.jsx)(Ze,{text:l})]}),(0,m.jsx)("div",{className:"flex flex-col space-y-8 lg:space-y-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)(be,{socialMedia:n})})]}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,m.jsx)(xe,{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)(xe,{copyright:t}),(0,m.jsx)(be,{socialMedia:n})]})]})})}function Ye({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)(M.Link,{className:"inline-block text-xl font-bold leading-none","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,m.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Ze({text:e}){return e?(0,m.jsx)(p.Text,{muted:!0,className:"leading-normal",children:e}):null}function xe({copyright:e}){return e?(0,m.jsx)(p.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)(p.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)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,m.jsx)("li",{children:(0,m.jsx)(ce.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 be({socialMedia:e}){return e?(0,m.jsx)(L.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 t,n,l,u;if(!(e!=null&&e.socialMediaLink))return null;let r=s=>{if(!s)return;let o=s.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(o))return o};return(0,m.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,m.jsx)(S.Image,{className:"h-6 w-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"socialmedia-icon"}):(0,m.jsx)(J.SocialIcons,{social:r(e==null?void 0:e.socialMedia)})})}var ce,Y,L,S,M,H,J,p,m,ke=x(()=>{"use strict";ce=require("@stackshift-ui/button");c();m=require("react/jsx-runtime")});var ar={};b(ar,{Footer:()=>ve});module.exports=_e(ar);var w=require("react"),ge=require("react/jsx-runtime"),nr={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(U(),Q))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(ae(),ie))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(oe(),se))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(ke(),Ne)))},ir="Footer",ve=({data:e})=>{var l,u,s,o,R,W,$,B,D,j,z,K,V,A;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(u=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?u:void 0,text:(o=(s=e==null?void 0:e.variants)==null?void 0:s.plainText)!=null?o:void 0,contacts:(W=(R=e==null?void 0:e.variants)==null?void 0:R.contactDetails)!=null?W:void 0,copyright:(B=($=e==null?void 0:e.variants)==null?void 0:$.copyright)!=null?B:void 0,socialMedia:(j=(D=e==null?void 0:e.variants)==null?void 0:D.socialLinks)!=null?j: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,ge.jsx)(t,{...n}):null};ve.displayName=ir;0&&(module.exports={Footer});
|
package/dist/footer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-EGP3MYWE.mjs";export{a as Footer};
|
package/dist/footer_d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var m=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var i in t)m(e,i,{get:t[i],enumerable:!0})},F=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of S(t))!T.call(e,a)&&a!==i&&m(e,a,{get:()=>t[a],enumerable:!(n=N(t,a))||n.enumerable});return e};var I=e=>F(m({},"__esModule",{value:!0}),e);var z={};C(z,{Footer_D:()=>v,default:()=>v});module.exports=I(z);var k=require("@stackshift-ui/button"),y=require("@stackshift-ui/container"),x=require("@stackshift-ui/flex"),s=require("@stackshift-ui/image"),p=require("@stackshift-ui/link"),L=require("@stackshift-ui/section"),b=require("@stackshift-ui/social-icons"),d=require("@stackshift-ui/text");var f=e=>{var t,i,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(i=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&i.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 r=require("react/jsx-runtime");function v({logo:e,multipleMenus:t,copyright:i,socialMedia:n,text:a}){return(0,r.jsx)(L.Section,{className:"py-20 overflow-hidden bg-background",children:(0,r.jsxs)(y.Container,{maxWidth:1280,children:[(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,r.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[(0,r.jsx)(M,{logo:e}),(0,r.jsx)(_,{text:a})]}),(0,r.jsx)("div",{className:"flex flex-col space-y-8 lg:space-y-0",children:(0,r.jsx)("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,r.jsx)($,{multipleMenus:t})})}),(0,r.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,r.jsx)(h,{socialMedia:n})})]}),(0,r.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,r.jsx)(w,{copyright:i})}),(0,r.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,r.jsx)(w,{copyright:i}),(0,r.jsx)(h,{socialMedia:n})]})]})})}function M({logo:e}){var t;return e!=null&&e.image?(0,r.jsx)(p.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,r.jsx)(s.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})}):null}function _({text:e}){return e?(0,r.jsx)(d.Text,{muted:!0,className:"leading-normal",children:e}):null}function w({copyright:e}){return e?(0,r.jsx)(d.Text,{className:"lg:pt-10 text-sm",children:e}):null}function $({multipleMenus:e}){return e?(0,r.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(t=>(0,r.jsx)(j,{menu:t},t==null?void 0:t._key))}):null}function j({menu:e}){var t,i;return e?(0,r.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,r.jsx)(d.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,r.jsx)(x.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(i=e==null?void 0:e.links)==null?void 0:i.map(n=>(0,r.jsx)("li",{children:(0,r.jsx)(k.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 h({socialMedia:e}){return e?(0,r.jsx)(x.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,r.jsx)(P,{social:t},t==null?void 0:t._key))}):null}function P({social:e}){var i,n,a,c;if(!(e!=null&&e.socialMediaLink))return null;let t=l=>{if(!l)return;let u=l.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(u))return u};return(0,r.jsx)(p.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(i=e==null?void 0:e.socialMediaIcon)!=null&&i.image?(0,r.jsx)(s.Image,{className:"h-6 w-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(c=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?c:"socialmedia-icon"}):(0,r.jsx)(b.SocialIcons,{social:t(e==null?void 0:e.socialMedia)})})}0&&(module.exports={Footer_D});
|
package/dist/footer_d.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-AHKAOI66.mjs";import"./chunk-FWXIR5AI.mjs";export{a as Footer_D,a as default};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var ve=Object.create;var h=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var ge=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(e&&(r=e(e=0)),r);var o=(e,r)=>{for(var t in r)h(e,t,{get:r[t],enumerable:!0})},Y=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of ge(r))!Fe.call(e,u)&&u!==t&&h(e,u,{get:()=>r[u],enumerable:!(i=Se(r,u))||i.enumerable});return e};var Ce=(e,r,t)=>(t=e!=null?ve(Me(e)):{},Y(r||!e||!e.__esModule?h(t,"default",{value:e,enumerable:!0}):t,e)),Ie=e=>Y(h({},"__esModule",{value:!0}),e);var p,x=s(()=>{"use strict";p=e=>{var r,t,i;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"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"}});var te={};o(te,{Footer_A:()=>M,default:()=>M});function M({logo:e,text:r,contacts:t,copyright:i,socialMedia:u}){return(0,a.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(w.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Te,{logo:e}),(0,a.jsx)(_e,{text:r}),(0,a.jsx)(Pe,{contacts:t})]}),(0,a.jsxs)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,a.jsx)(Ge,{copyright:i}),(0,a.jsx)(Re,{socialMedia:u})]})]})})}function Te({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)(g.Link,{"aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,className:"text-3xl font-bold leading-none",href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function _e({text:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(l.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Pe({contacts:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,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)(y.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(y.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(l.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)(y.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(l.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 Ge({copyright:e}){return e?(0,a.jsx)(l.Text,{muted:!0,className:"text-sm",children:e}):null}function Re({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(We,{social:r,index:t}))}):null}function We({social:e,index:r}){var t,i,u,d;return e!=null&&e.socialMediaLink?(0,a.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,a.jsx)(S.Image,{className:"h-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:24,height:24,alt:(d=(u=e==null?void 0:e.socialMediaIcon)==null?void 0:u.alt)!=null?d:"contact-socialMedia-icon"}):(0,a.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var w,L,Z,y,S,g,ee,re,l,a,F=s(()=>{"use strict";w=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),Z=require("@stackshift-ui/grid"),y=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),g=require("@stackshift-ui/link"),ee=require("@stackshift-ui/section"),re=require("@stackshift-ui/social-icons"),l=require("@stackshift-ui/text");x();a=require("react/jsx-runtime")});var pe={};o(pe,{Footer_B:()=>T,default:()=>T});function T({logo:e,copyright:r,socialMedia:t,menu:i}){return(0,m.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(ie.Container,{maxWidth:1280,children:[(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-L border-gray-100",children:[(0,m.jsx)($e,{logo:e}),(0,m.jsx)(Be,{menu:i})]}),(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,m.jsx)(Ke,{copyright:r}),(0,m.jsx)(je,{socialMedia:t})]})]})})}function $e({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,m.jsx)(g.Link,{"aria-label":p(e)==="/"?"Go to home page":`Go to ${p(e)}`,className:"inline-block text-3xl font-bold leading-none",href:p(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function Be({menu:e}){return e?(0,m.jsx)("div",{className:"w-full lg:w-auto",children:(0,m.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,t,{length:i})=>(0,m.jsxs)(ue.default.Fragment,{children:[(0,m.jsx)(De,{links:r}),t+1!==i?(0,m.jsx)(ze,{}):null]},(r==null?void 0:r._key)||t))})}):null}function De({links:e,index:r}){return e?(0,m.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,m.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 ze(){return(0,m.jsx)("li",{className:"hidden md:block",children:(0,m.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,m.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 Ke({copyright:e}){return e?(0,m.jsx)(l.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function je({socialMedia:e}){return e?(0,m.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,m.jsx)(Ve,{social:r}))}):null}function Ve({social:e}){var r,t,i,u;return e!=null&&e.socialMediaLink?(0,m.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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,m.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(u=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?u:"contact-socialMedia-icon"}):(0,m.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var ne,ie,L,S,g,ee,re,l,ue,m,_=s(()=>{"use strict";ne=require("@stackshift-ui/button"),ie=require("@stackshift-ui/container"),ue=Ce(require("react"));x();m=require("react/jsx-runtime")});var be={};o(be,{Footer_C:()=>R,default:()=>R});function R({logo:e,menu:r,copyright:t,socialMedia:i}){return(0,n.jsxs)(ee.Section,{className:"bg-background",children:[(0,n.jsx)(Qe,{}),(0,n.jsx)(ie.Container,{maxWidth:1e3,children:(0,n.jsxs)("div",{className:"pt-10 pb-12",children:[(0,n.jsxs)(L.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-L lg:border-gray-300 lg:pb-8",children:[(0,n.jsx)(Ae,{copyright:t}),(0,n.jsx)(qe,{menu:r}),(0,n.jsx)(Ee,{logo:e})]}),(0,n.jsx)(Je,{socialMedia:i})]})})]})}function Ae({copyright:e}){return e?(0,n.jsx)(l.Text,{className:"w-full text-sm text-center",children:e}):null}function Ee({logo:e}){var r;return e!=null&&e.image?(0,n.jsx)("div",{className:"w-full text-center",children:(0,n.jsx)(g.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,n.jsx)(S.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 qe({menu:e}){return e?(0,n.jsx)("div",{className:"mx-auto",children:(0,n.jsx)(L.Flex,{className:"flex-col gap-0 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,n.jsx)(He,{links:r,index:t}))})}):null}function He({links:e,index:r}){return e?(0,n.jsx)("li",{className:"w-full text-center",children:(0,n.jsx)(le.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 Je({socialMedia:e}){return e?(0,n.jsx)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,n.jsx)(Oe,{social:r,index:t}))}):null}function Oe({social:e,index:r}){var t,i,u,d;return e!=null&&e.socialMediaLink?(0,n.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,n.jsx)(S.Image,{className:"h-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:56,height:56,alt:(d=(u=e==null?void 0:e.socialMediaIcon)==null?void 0:u.alt)!=null?d:"contact-socialMedia-icon"}):(0,n.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}function Qe(){return(0,n.jsxs)("div",{className:"flex w-full",children:[(0,n.jsxs)("div",{className:"flex w-1/3",children:[(0,n.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,n.jsxs)("div",{className:"flex w-1/3",children:[(0,n.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,n.jsxs)("div",{className:"flex w-1/3",children:[(0,n.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,n.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var le,ie,L,S,g,ee,re,l,n,W=s(()=>{"use strict";le=require("@stackshift-ui/button");x();n=require("react/jsx-runtime")});var we={};o(we,{Footer_D:()=>D,default:()=>D});function D({logo:e,multipleMenus:r,copyright:t,socialMedia:i,text:u}){return(0,f.jsx)(ee.Section,{className:"py-20 overflow-hidden bg-background",children:(0,f.jsxs)(ie.Container,{maxWidth:1280,children:[(0,f.jsxs)(L.Flex,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[(0,f.jsxs)("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[(0,f.jsx)(Ue,{logo:e}),(0,f.jsx)(Xe,{text:u})]}),(0,f.jsx)(Ze,{multipleMenus:r}),(0,f.jsx)(rr,{socialMedia:i})]}),(0,f.jsx)(Ye,{copyright:t})]})})}function Ue({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)(g.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,f.jsx)($.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Xe({text:e}){return e?(0,f.jsx)(l.Text,{muted:!0,className:"leading-normal",children:e}):null}function Ye({copyright:e}){return e?(0,f.jsx)(l.Text,{className:"pt-10 text-sm",children:e}):null}function Ze({multipleMenus:e}){return e?(0,f.jsx)(L.Flex,{wrap:!0,className:"flex-grow lg:justify-around",gap:4,children:e==null?void 0:e.map((r,t)=>(0,f.jsx)(er,{menu:r},t))}):null}function er({menu:e}){var r,t;return e?(0,f.jsxs)("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&(0,f.jsx)(l.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,f.jsx)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map((i,u)=>(0,f.jsx)("li",{children:(0,f.jsx)(ce.Button,{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})},u))})]}):null}function rr({socialMedia:e}){return e?(0,f.jsx)(L.Flex,{className:"!items-center w-full ml-auto lg:justify-end lg:w-1/6",wrap:!0,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,f.jsx)(tr,{social:r}))}):null}function tr({social:e}){var r,t,i,u;return e!=null&&e.socialMediaLink?(0,f.jsx)("span",{children:(0,f.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block items-center p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(e==null?void 0:e.socialMedia)==="others"?(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)($.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(u=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?u:"contact-socialMedia-icon"}):null:(0,f.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}var ce,ie,L,$,g,ee,re,l,f,z=s(()=>{"use strict";ce=require("@stackshift-ui/button");x();f=require("react/jsx-runtime")});var ar={};o(ar,{Footer:()=>Ne,Footer_A:()=>M,Footer_B:()=>T,Footer_C:()=>R,Footer_D:()=>D});module.exports=Ie(ar);var c=require("react"),ke=require("react/jsx-runtime"),nr={variant_a:(0,c.lazy)(()=>Promise.resolve().then(()=>(F(),te))),variant_b:(0,c.lazy)(()=>Promise.resolve().then(()=>(_(),pe))),variant_c:(0,c.lazy)(()=>Promise.resolve().then(()=>(W(),be))),variant_d:(0,c.lazy)(()=>Promise.resolve().then(()=>(z(),we)))},ir="Footer",Ne=({data:e})=>{var u,d,K,j,V,A,E,q,H,J,O,Q,U,X;let r=e==null?void 0:e.variant,t=r&&nr[r],i={logo:(d=(u=e==null?void 0:e.variants)==null?void 0:u.logo)!=null?d:void 0,text:(j=(K=e==null?void 0:e.variants)==null?void 0:K.plainText)!=null?j: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,ke.jsx)(t,{...i}):null};Ne.displayName=ir;F();_();W();z();0&&(module.exports={Footer,Footer_A,Footer_B,Footer_C,Footer_D});
|
|
2
|
+
"use strict";var Se=Object.create;var y=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var x=(e,r)=>()=>(e&&(r=e(e=0)),r);var b=(e,r)=>{for(var t in r)y(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&&y(e,l,{get:()=>r[l],enumerable:!(n=Me(r,l))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?Se(Ce(e)):{},Y(r||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),_e=e=>Y(y({},"__esModule",{value:!0}),e);var d,c=x(()=>{"use strict";d=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={};b(te,{Footer_A:()=>F,default:()=>F});function F({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)(N.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.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)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",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)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Ge({text:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(p.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Re({contacts:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,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)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(p.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)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(p.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)(p.Text,{muted:!0,className:"text-sm",children:e}):null}function $e({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(Be,{social:r,index:t}))}):null}function Be({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,a.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,a.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,a.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var N,L,Z,h,S,M,ee,re,p,a,C=x(()=>{"use strict";N=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),Z=require("@stackshift-ui/grid"),h=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),M=require("@stackshift-ui/link"),ee=require("@stackshift-ui/section"),re=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");c();a=require("react/jsx-runtime")});var de={};b(de,{Footer_B:()=>_,default:()=>_});function _({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)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,f.jsx)(De,{logo:e}),(0,f.jsx)(je,{menu:n})]}),(0,f.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,f.jsx)(Ve,{copyright:r}),(0,f.jsx)(Ae,{socialMedia:t})]})]})})}function De({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,f.jsx)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"inline-block text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function je({menu:e}){return e?(0,f.jsx)("div",{className:"w-full lg:w-auto",children:(0,f.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",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)(p.Text,{muted:!0,className:"order-last text-sm ",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)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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)(S.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,L,S,M,ee,re,p,le,f,P=x(()=>{"use strict";ne=require("@stackshift-ui/button"),ie=require("@stackshift-ui/container"),le=Te(require("react"));c();f=require("react/jsx-runtime")});var be={};b(be,{Footer_C:()=>W,default:()=>W});function W({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)(L.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)(p.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)(M.Link,{className:"inline-block text-xl font-bold leading-none","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)(S.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)(L.Flex,{className:"flex-col gap-0 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)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Ue,{social:r,index:t}))}):null}function Ue({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,i.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-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?(0,i.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,i.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):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,L,S,M,ee,re,p,i,$=x(()=>{"use strict";ue=require("@stackshift-ui/button");c();i=require("react/jsx-runtime")});var ke={};b(ke,{Footer_D:()=>z,default:()=>z});function z({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-y-4",children:[(0,m.jsx)(Ye,{logo:e}),(0,m.jsx)(Ze,{text:l})]}),(0,m.jsx)("div",{className:"flex flex-col space-y-8 lg:space-y-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)(ce,{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)(ce,{copyright:t}),(0,m.jsx)(we,{socialMedia:n})]})]})})}function Ye({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)(M.Link,{className:"inline-block text-xl font-bold leading-none","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,m.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Ze({text:e}){return e?(0,m.jsx)(p.Text,{muted:!0,className:"leading-normal",children:e}):null}function ce({copyright:e}){return e?(0,m.jsx)(p.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)(p.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)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,m.jsx)("li",{children:(0,m.jsx)(ye.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)(L.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 t,n,l,u;if(!(e!=null&&e.socialMediaLink))return null;let r=s=>{if(!s)return;let o=s.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(o))return o};return(0,m.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,m.jsx)(S.Image,{className:"h-6 w-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"socialmedia-icon"}):(0,m.jsx)(re.SocialIcons,{social:r(e==null?void 0:e.socialMedia)})})}var ye,ie,L,S,M,ee,re,p,m,K=x(()=>{"use strict";ye=require("@stackshift-ui/button");c();m=require("react/jsx-runtime")});var ar={};b(ar,{Footer:()=>ve,Footer_A:()=>F,Footer_B:()=>_,Footer_C:()=>W,Footer_D:()=>z});module.exports=_e(ar);var w=require("react"),ge=require("react/jsx-runtime"),nr={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(C(),te))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(P(),de))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>($(),be))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(K(),ke)))},ir="Footer",ve=({data:e})=>{var l,u,s,o,V,A,E,q,H,J,O,Q,U,X;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(u=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?u:void 0,text:(o=(s=e==null?void 0:e.variants)==null?void 0:s.plainText)!=null?o: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,ge.jsx)(t,{...n}):null};ve.displayName=ir;C();P();$();K();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-EGP3MYWE.mjs";import{a as o}from"./chunk-XWMRUVIJ.mjs";import{a as r}from"./chunk-VWS3TQ4M.mjs";import{a as e}from"./chunk-66FDHHFF.mjs";import{a as t}from"./chunk-AHKAOI66.mjs";import"./chunk-FWXIR5AI.mjs";export{f as Footer,o as Footer_A,r as Footer_B,e as Footer_C,t as Footer_D};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/footer",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.10",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/eslint-config": "6.0.
|
|
33
|
-
"@stackshift-ui/typescript-config": "6.0.
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.7",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.7"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/social-icons": "6.0.
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/
|
|
48
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/system": "6.0.8",
|
|
38
|
+
"@stackshift-ui/button": "6.0.8",
|
|
39
|
+
"@stackshift-ui/text": "6.0.8",
|
|
40
|
+
"@stackshift-ui/link": "6.0.8",
|
|
41
|
+
"@stackshift-ui/image": "6.0.8",
|
|
42
|
+
"@stackshift-ui/social-icons": "6.0.8",
|
|
43
|
+
"@stackshift-ui/grid": "6.0.8",
|
|
44
|
+
"@stackshift-ui/flex": "6.0.8",
|
|
45
|
+
"@stackshift-ui/grid-item": "6.0.8",
|
|
46
|
+
"@stackshift-ui/section": "6.0.8",
|
|
47
|
+
"@stackshift-ui/container": "6.0.8",
|
|
48
|
+
"@stackshift-ui/scripts": "6.0.7"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@types/react": "16.8 - 19",
|
|
52
52
|
"next": "10 - 14",
|
|
53
53
|
"react": "16.8 - 19",
|
|
54
54
|
"react-dom": "16.8 - 19",
|
|
55
|
-
"@stackshift-ui/system": ">=6.0.
|
|
55
|
+
"@stackshift-ui/system": ">=6.0.8"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"next": {
|
package/src/footer_d.tsx
CHANGED
|
@@ -21,16 +21,29 @@ export default function Footer_D({
|
|
|
21
21
|
return (
|
|
22
22
|
<Section className="py-20 overflow-hidden bg-background">
|
|
23
23
|
<Container maxWidth={1280}>
|
|
24
|
-
<
|
|
25
|
-
<div className="w-full max-w-
|
|
24
|
+
<div className="flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start">
|
|
25
|
+
<div className="w-full lg:max-w-sm xl:max-w-xs space-y-4">
|
|
26
26
|
<LogoSection logo={logo} />
|
|
27
27
|
<TextSection text={text} />
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
|
-
<
|
|
30
|
+
<div className="flex flex-col space-y-8 lg:space-y-0">
|
|
31
|
+
<div className="flex flex-col lg:flex-row w-full justify-between items-start lg:items-center">
|
|
32
|
+
<MenuSection multipleMenus={multipleMenus} />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="hidden [@media(min-width:1444px)]:block">
|
|
37
|
+
<SocialMediaContainer socialMedia={socialMedia} />
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div className="hidden [@media(min-width:1444px)]:block items-center">
|
|
41
|
+
<CopyrightSection copyright={copyright} />
|
|
42
|
+
</div>
|
|
43
|
+
<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">
|
|
44
|
+
<CopyrightSection copyright={copyright} />
|
|
31
45
|
<SocialMediaContainer socialMedia={socialMedia} />
|
|
32
|
-
</
|
|
33
|
-
<CopyrightSection copyright={copyright} />
|
|
46
|
+
</div>
|
|
34
47
|
</Container>
|
|
35
48
|
</Section>
|
|
36
49
|
);
|
|
@@ -70,25 +83,24 @@ function TextSection({ text }: { text?: string }) {
|
|
|
70
83
|
function CopyrightSection({ copyright }: { copyright?: string }) {
|
|
71
84
|
if (!copyright) return null;
|
|
72
85
|
|
|
73
|
-
return <Text className="pt-10 text-sm">{copyright}</Text>;
|
|
86
|
+
return <Text className="lg:pt-10 text-sm">{copyright}</Text>;
|
|
74
87
|
}
|
|
75
88
|
|
|
76
89
|
function MenuSection({ multipleMenus }: { multipleMenus?: any[] }) {
|
|
77
90
|
if (!multipleMenus) return null;
|
|
78
91
|
|
|
79
92
|
return (
|
|
80
|
-
<
|
|
81
|
-
{multipleMenus?.map(
|
|
82
|
-
</
|
|
93
|
+
<div className="flex flex-col sm:flex-row flex-wrap gap-5">
|
|
94
|
+
{multipleMenus?.map(menu => <MenuLinks key={menu?._key} menu={menu} />)}
|
|
95
|
+
</div>
|
|
83
96
|
);
|
|
84
97
|
}
|
|
85
98
|
|
|
86
|
-
// Individual Menu Links Component
|
|
87
99
|
function MenuLinks({ menu }: { menu?: any }) {
|
|
88
100
|
if (!menu) return null;
|
|
89
101
|
|
|
90
102
|
return (
|
|
91
|
-
<div className="w-[
|
|
103
|
+
<div className="min-w-[140px]">
|
|
92
104
|
{menu?.title && (
|
|
93
105
|
<Text weight="bold" className="mb-3">
|
|
94
106
|
{menu?.title}
|
|
@@ -117,8 +129,12 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
117
129
|
if (!socialMedia) return null;
|
|
118
130
|
|
|
119
131
|
return (
|
|
120
|
-
<Flex
|
|
121
|
-
|
|
132
|
+
<Flex
|
|
133
|
+
className="flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4"
|
|
134
|
+
gap={2}>
|
|
135
|
+
{socialMedia?.map(
|
|
136
|
+
social => social?.socialMediaLink && <SocialMediaLink key={social?._key} social={social} />,
|
|
137
|
+
)}
|
|
122
138
|
</Flex>
|
|
123
139
|
);
|
|
124
140
|
}
|
|
@@ -126,29 +142,37 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
126
142
|
function SocialMediaLink({ social }: { social?: SocialLink }) {
|
|
127
143
|
if (!social?.socialMediaLink) return null;
|
|
128
144
|
|
|
145
|
+
// Helper function to convert social media string to valid type
|
|
146
|
+
const getSocialType = (
|
|
147
|
+
socialMedia: string | null | undefined,
|
|
148
|
+
): "facebook" | "instagram" | "youtube" | "linkedin" | "twitter" | undefined => {
|
|
149
|
+
if (!socialMedia) return undefined;
|
|
150
|
+
const normalized = socialMedia.toLowerCase();
|
|
151
|
+
if (["facebook", "instagram", "youtube", "linkedin", "twitter"].includes(normalized)) {
|
|
152
|
+
return normalized as "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
153
|
+
}
|
|
154
|
+
return undefined;
|
|
155
|
+
};
|
|
156
|
+
|
|
129
157
|
return (
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<SocialIcons social={social?.socialMedia as Socials} />
|
|
149
|
-
)}
|
|
150
|
-
</Link>
|
|
151
|
-
</span>
|
|
158
|
+
<Link
|
|
159
|
+
aria-label={social?.socialMedia || social?.socialMediaPlatform || ""}
|
|
160
|
+
className="sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100"
|
|
161
|
+
target="_blank"
|
|
162
|
+
rel="noopener noreferrer"
|
|
163
|
+
href={social?.socialMediaLink}>
|
|
164
|
+
{social?.socialMediaIcon?.image ? (
|
|
165
|
+
<Image
|
|
166
|
+
className="h-6 w-6"
|
|
167
|
+
src={`${social?.socialMediaIcon?.image}`}
|
|
168
|
+
width={24}
|
|
169
|
+
height={24}
|
|
170
|
+
alt={social?.socialMediaIcon?.alt ?? "socialmedia-icon"}
|
|
171
|
+
/>
|
|
172
|
+
) : (
|
|
173
|
+
<SocialIcons social={getSocialType(social?.socialMedia)} />
|
|
174
|
+
)}
|
|
175
|
+
</Link>
|
|
152
176
|
);
|
|
153
177
|
}
|
|
154
178
|
|
package/dist/chunk-SGGB7UM2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-FWXIR5AI.mjs";import{Button as h}from"@stackshift-ui/button";import{Container as w}from"@stackshift-ui/container";import{Flex as p}from"@stackshift-ui/flex";import{Image as x}from"@stackshift-ui/image";import{Link as u}from"@stackshift-ui/link";import{Section as l}from"@stackshift-ui/section";import{SocialIcons as o}from"@stackshift-ui/social-icons";import{Text as d}from"@stackshift-ui/text";import{jsx as r,jsxs as m}from"react/jsx-runtime";function y({logo:e,multipleMenus:t,copyright:a,socialMedia:n,text:i}){return r(l,{className:"py-20 overflow-hidden bg-background",children:m(w,{maxWidth:1280,children:[m(p,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[m("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[r(k,{logo:e}),r(L,{text:i})]}),r(N,{multipleMenus:t}),r(c,{socialMedia:n})]}),r(b,{copyright:a})]})})}function k({logo:e}){var t;return e!=null&&e.image?r(u,{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:r(x,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})}):null}function L({text:e}){return e?r(d,{muted:!0,className:"leading-normal",children:e}):null}function b({copyright:e}){return e?r(d,{className:"pt-10 text-sm",children:e}):null}function N({multipleMenus:e}){return e?r(p,{wrap:!0,className:"flex-grow lg:justify-around",gap:4,children:e==null?void 0:e.map((t,a)=>r(S,{menu:t},a))}):null}function S({menu:e}){var t,a;return e?m("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&r(d,{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&&r(p,{as:"ul",direction:"col",className:"space-y-2",children:(a=e==null?void 0:e.links)==null?void 0:a.map((n,i)=>r("li",{children:r(h,{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})},i))})]}):null}function c({socialMedia:e}){return e?r(p,{className:"!items-center w-full ml-auto lg:justify-end lg:w-1/6",wrap:!0,children:e==null?void 0:e.map(t=>(t==null?void 0:t.socialMediaLink)&&r(g,{social:t}))}):null}function g({social:e}){var t,a,n,i;return e!=null&&e.socialMediaLink?r("span",{children:r(u,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block items-center p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(e==null?void 0:e.socialMedia)==="others"?(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?r(x,{className:"h-6",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:24,height:24,alt:(i=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?i:"contact-socialMedia-icon"}):null:r(o,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}export{y as a};
|
|
File without changes
|