@stackshift-ui/footer 7.0.0-beta.6 → 7.0.0-beta.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/footer",
3
3
  "description": "",
4
- "version": "7.0.0-beta.6",
4
+ "version": "7.0.0-beta.8",
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/system": "6.1.0-beta.3",
39
- "@stackshift-ui/text": "7.0.0-beta.3",
40
- "@stackshift-ui/button": "6.1.0-beta.5",
41
- "@stackshift-ui/link": "6.1.0-beta.3",
42
- "@stackshift-ui/social-icons": "7.0.0-beta.3",
43
- "@stackshift-ui/section": "7.0.0-beta.3",
44
- "@stackshift-ui/container": "7.0.0-beta.3",
45
- "@stackshift-ui/flex": "7.0.0-beta.3",
46
- "@stackshift-ui/scripts": "6.1.0-beta.2",
47
- "@stackshift-ui/image": "6.1.0-beta.4",
48
- "@stackshift-ui/grid": "7.0.0-beta.3",
49
- "@stackshift-ui/grid-item": "7.0.0-beta.3"
38
+ "@stackshift-ui/scripts": "7.0.0-beta.3",
39
+ "@stackshift-ui/system": "7.0.0-beta.4",
40
+ "@stackshift-ui/text": "7.0.0-beta.4",
41
+ "@stackshift-ui/button": "7.0.0-beta.6",
42
+ "@stackshift-ui/link": "7.0.0-beta.4",
43
+ "@stackshift-ui/image": "7.0.0-beta.5",
44
+ "@stackshift-ui/section": "7.0.0-beta.4",
45
+ "@stackshift-ui/grid": "7.0.0-beta.4",
46
+ "@stackshift-ui/grid-item": "7.0.0-beta.4",
47
+ "@stackshift-ui/flex": "7.0.0-beta.4",
48
+ "@stackshift-ui/container": "7.0.0-beta.4",
49
+ "@stackshift-ui/social-icons": "7.0.0-beta.4"
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": ">=6.1.0-beta.3"
56
+ "@stackshift-ui/system": ">=7.0.0-beta.4"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "next": {
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) => <SocialMediaLink social={social} key={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 { ConditionalLink, logoLink } from "./helper";
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) {
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 { ConditionalLink, logoLink } from "./helper";
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) {
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 { ConditionalLink, logoLink } from "./helper";
10
+ import { logoLink } from "./helper";
12
11
  import { Logo, SocialLink, Socials } from "./types";
13
12
 
14
13
  export default function Footer_D({
@@ -1 +0,0 @@
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(k,{social:r},r==null?void 0:r._key))}):null}function k({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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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 L}from"@stackshift-ui/social-icons";import{Text as h}from"@stackshift-ui/text";import w 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(v,{copyright:t}),r(M,{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(w.Fragment,{children:[r(k,{links:t}),n+1!==a?r(s,{}):null]},(t==null?void 0:t._key)||n))})}):null}function k({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 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 v({copyright:e}){return e?r(h,{muted:!0,className:"order-last text-sm p-2",children:e}):null}function M({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(N,{social:t}))}):null}function N({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{c as a};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{a as m}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 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 i}from"react/jsx-runtime";function x({logo:e,menu:t,copyright:a,socialMedia:l}){return i(o,{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(L,{socialMedia:l})]})})]})}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(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 L({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(h,{social:t},a))}):null}function h({social:e}){var t,a,l,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=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?d:"contact-socialMedia-icon"}):r(s,{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};
@@ -1 +0,0 @@
1
- import{a as L}from"./chunk-IHBDV5WG.mjs";import{a as h}from"./chunk-JZNMKFE2.mjs";import{a as M}from"./chunk-TEXQKDXV.mjs";import{a as k}from"./chunk-EVGKNVHC.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};
package/dist/footer.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { ContactDetails, LabeledRouteWithKey, Logo, SectionsProps, SocialLink } from "./types";
3
- export interface FooterProps {
4
- logo?: Logo;
5
- text?: string;
6
- contacts?: ContactDetails[];
7
- copyright?: string;
8
- socialMedia?: SocialLink[];
9
- menu?: LabeledRouteWithKey[];
10
- multipleMenus?: any;
11
- }
12
- export declare const Footer: React.FC<SectionsProps>;
package/dist/footer.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var le=Object.create;var l=Object.defineProperty;var xe=Object.getOwnPropertyDescriptor;var ce=Object.getOwnPropertyNames;var be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var we=(e,r)=>{for(var t in r)l(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&&l(e,p,{get:()=>r[p],enumerable:!(n=xe(r,p))||n.enumerable});return e};var Le=(e,r,t)=>(t=e!=null?le(be(e)):{},q(r||!e||!e.__esModule?l(t,"default",{value:e,enumerable:!0}):t,e)),he=e=>q(l({},"__esModule",{value:!0}),e);var Xe={};we(Xe,{Footer:()=>se});module.exports=he(Xe);var b=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),H=require("@stackshift-ui/grid"),x=require("@stackshift-ui/grid-item"),L=require("@stackshift-ui/image"),h=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 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:"u-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:"u-full mb-5 lg:u-1/5",children:(0,Ne.jsx)(h.Link,{className:"u-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)(L.Image,{className:"u-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:"u-full mb-5 lg:u-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:"u-full mt-1 lg:u-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)(x.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)(x.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)(x.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)(h.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded u-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)(L.Image,{className:"u-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=Le(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:"u-full lg:u-1/5",children:(0,Ne.jsx)(h.Link,{"aria-label":o(e)==="/"?"Go to home page":`Go to ${o(e)}`,className:"u-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)(L.Image,{className:"u-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:"u-full lg:u-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:"u-full mb-2 md:mb-0 md:u-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:"u-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)(h.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)(L.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)(u.Text,{className:"u-full text-sm text-center",children:e}):null}function Be({logo:e}){var r;return e!=null&&e.image?(0,Ne.jsx)("div",{className:"u-full text-center",children:(0,Ne.jsx)(h.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)(L.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:"u-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)(h.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded u-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)(L.Image,{className:"u-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:"u-full",children:[(0,Ne.jsxs)(c.Flex,{className:"u-1/3",children:[(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-primary"})]}),(0,Ne.jsxs)(c.Flex,{className:"u-1/3",children:[(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-primary"})]}),(0,Ne.jsxs)(c.Flex,{className:"u-1/3",children:[(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-secondary"}),(0,Ne.jsx)("div",{className:"u-1/3 py-1 bg-primary"}),(0,Ne.jsx)("div",{className:"u-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 u-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,Ne.jsxs)("div",{className:"u-full lg:max-u-sm xl:max-u-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 u-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 u-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)(h.Link,{className:"u-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)(L.Image,{className:"u-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-u-[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-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)(h.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"rounded u-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)(L.Image,{className:"u-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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-XMR7O3N4.mjs";import"./chunk-IHBDV5WG.mjs";import"./chunk-JZNMKFE2.mjs";import"./chunk-TEXQKDXV.mjs";import"./chunk-EVGKNVHC.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer};
@@ -1,3 +0,0 @@
1
- import { FooterProps } from ".";
2
- export default function Footer_A({ logo, text, contacts, copyright, socialMedia }: FooterProps): import("react/jsx-runtime").JSX.Element;
3
- export { Footer_A };
package/dist/footer_a.js DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-IHBDV5WG.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_A,a as default};
@@ -1,3 +0,0 @@
1
- import { FooterProps } from ".";
2
- export default function Footer_B({ logo, copyright, socialMedia, menu }: FooterProps): import("react/jsx-runtime").JSX.Element;
3
- export { Footer_B };
package/dist/footer_b.js DELETED
@@ -1 +0,0 @@
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 i=require("@stackshift-ui/button"),b=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)(b.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)(i.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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-JZNMKFE2.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_B,a as default};
@@ -1,3 +0,0 @@
1
- import { FooterProps } from ".";
2
- export default function Footer_C({ logo, menu, copyright, socialMedia }: FooterProps): import("react/jsx-runtime").JSX.Element;
3
- export { Footer_C };
package/dist/footer_c.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var f=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var a in t)f(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&&f(e,p,{get:()=>t[p],enumerable:!(n=x(t,p))||n.enumerable});return e};var $=e=>j(f({},"__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"),c=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 C=require("react/jsx-runtime"),i=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,C.jsxs)(y.Section,{className:"bg-background",children:[(0,C.jsx)(P,{}),(0,C.jsx)(s.Container,{maxWidth:1e3,children:(0,C.jsxs)("div",{className:"pt-10 pb-12",children:[(0,C.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,C.jsx)(T,{copyright:a}),(0,C.jsx)(I,{menu:t}),(0,C.jsx)(F,{logo:e})]}),(0,C.jsx)(g,{socialMedia:n})]})})]})}function T({copyright:e}){return e?(0,C.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,C.jsx)("div",{className:"w-full text-center",children:(0,C.jsx)(d.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":i(e)==="/"?"Go to home page":`Go to ${i(e)}`,href:i(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,C.jsx)(c.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,C.jsx)("div",{className:"mx-auto",children:(0,C.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,C.jsx)(M,{links:t,index:a}))})}):null}function M({links:e,index:t}){return e?(0,C.jsx)("li",{className:"w-full text-center",children:(0,C.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,C.jsx)(u.Flex,{wrap:!0,justify:"center",align:"center",className:"gap-5",children:e==null?void 0:e.map((t,a)=>(0,C.jsx)(N,{social:t},a))}):null}function N({social:e}){var t,a,n,p;return e!=null&&e.socialMediaLink?(0,C.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,C.jsx)(c.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,C.jsx)(o.SocialIcons,{social:e==null?void 0:e.socialMedia})}):null}function P(){return(0,C.jsxs)(u.Flex,{className:"w-full",children:[(0,C.jsxs)(u.Flex,{className:"w-1/3",children:[(0,C.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,C.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,C.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,C.jsxs)(u.Flex,{className:"w-1/3",children:[(0,C.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,C.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,C.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,C.jsxs)(u.Flex,{className:"w-1/3",children:[(0,C.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,C.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,C.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}0&&(module.exports={Footer_C});
package/dist/footer_c.mjs DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-TEXQKDXV.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_C,a as default};
@@ -1,3 +0,0 @@
1
- import { FooterProps } from ".";
2
- export default function Footer_D({ logo, multipleMenus, copyright, socialMedia, text, }: FooterProps): import("react/jsx-runtime").JSX.Element;
3
- export { Footer_D };
package/dist/footer_d.js DELETED
@@ -1 +0,0 @@
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 o=require("@stackshift-ui/button"),u=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)(u.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)(o.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 DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-EVGKNVHC.mjs";import"./chunk-S35O64PB.mjs";export{a as Footer_D,a as default};
@@ -1,3 +0,0 @@
1
- import { ConditionalLinkTypes, Logo } from "../types";
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;
@@ -1 +0,0 @@
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});
@@ -1 +0,0 @@
1
- import{a,b}from"../chunk-S35O64PB.mjs";export{b as ConditionalLink,a as logoLink};
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from "./footer";
2
- export * from "./footer_a";
3
- export * from "./footer_b";
4
- export * from "./footer_c";
5
- export * from "./footer_d";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
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 Le=(e,r,t)=>(t=e!=null?xe(be(e)):{},q(r||!e||!e.__esModule?x(t,"default",{value:e,enumerable:!0}):t,e)),he=e=>q(x({},"__esModule",{value:!0}),e);var Xe={};we(Xe,{Footer:()=>se,Footer_A:()=>y,Footer_B:()=>L,Footer_C:()=>h,Footer_D:()=>N});module.exports=he(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=Le(require("react"));function L({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 h({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:L,variant_c:h,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 DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as f}from"./chunk-XMR7O3N4.mjs";import{a as o}from"./chunk-IHBDV5WG.mjs";import{a as r}from"./chunk-JZNMKFE2.mjs";import{a as e}from"./chunk-TEXQKDXV.mjs";import{a as t}from"./chunk-EVGKNVHC.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 DELETED
@@ -1,473 +0,0 @@
1
- import { PortableTextComponents } from "@portabletext/react";
2
- export type StyleVariants<T extends string> = Record<T, string>;
3
- export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
4
- export interface MainImage {
5
- image: string;
6
- alt?: string;
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
- }
69
- export interface LabeledRoute extends ConditionalLink {
70
- ariaLabel?: string;
71
- label?: string;
72
- linkTarget?: string;
73
- linkType?: string;
74
- _type?: string;
75
- linkInternal?: any;
76
- linkExternal?: any;
77
- referenceType?: string;
78
- multipleRoutes?: LabeledRouteWithKey[];
79
- multipleInnerRoutes?: LabeledRouteWithKey[];
80
- }
81
- export interface ConditionalLink {
82
- type?: string;
83
- internalLink?: string | null;
84
- externalLink?: string | null;
85
- }
86
- export interface StatItems {
87
- label?: string;
88
- mainImage?: MainImage;
89
- value?: string;
90
- _key?: string;
91
- _type?: string;
92
- }
93
- export interface Logo {
94
- alt?: string;
95
- linkTarget?: string;
96
- image?: string;
97
- type?: string;
98
- internalLink?: string;
99
- externalLink?: string;
100
- linkExternal?: string;
101
- linkInternal?: string;
102
- }
103
- export interface Images {
104
- image?: string;
105
- _key?: string;
106
- _type?: string;
107
- alt?: string;
108
- }
109
- export interface ContactDetails {
110
- addressInfo?: string;
111
- contactInfo?: string;
112
- emailInfo?: string;
113
- _key?: string;
114
- }
115
- export interface SocialLink {
116
- socialMedia?: string | null;
117
- socialMediaLink?: string | null;
118
- _key?: string | null;
119
- _type?: string | null;
120
- socialMediaIcon?: {
121
- alt?: string;
122
- image?: string;
123
- } | null;
124
- socialMediaPlatform?: string | null;
125
- }
126
- export interface LabeledRouteWithKey extends LabeledRoute {
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;
139
- }
140
- export interface ArrayOfImageTitleAndText {
141
- mainImage?: {
142
- alt?: string;
143
- image?: string;
144
- };
145
- plainText?: string;
146
- title?: string;
147
- _key?: string;
148
- _type?: string;
149
- }
150
- export interface FeaturedItem {
151
- description?: string;
152
- mainImage?: MainImage;
153
- title?: string;
154
- subtitle?: string;
155
- _key?: string;
156
- _type?: string;
157
- }
158
- export interface ArrayOfTitleAndText {
159
- _key?: string;
160
- plainText?: string;
161
- title?: string;
162
- }
163
- export interface BlogPost extends SanityBody {
164
- authors?: Author[] | null;
165
- body?: any;
166
- categories?: Category[] | null;
167
- excerpt?: string | null;
168
- link?: string | null;
169
- mainImage?: string | null;
170
- publishedAt?: string;
171
- seo?: Seo | null;
172
- slug?: SanitySlug | null;
173
- title?: string;
174
- }
175
- export interface Seo {
176
- _type?: string;
177
- seoTitle?: string;
178
- seoDescription?: string;
179
- seoImage?: string;
180
- seoKeywords?: string;
181
- seoSynonyms?: string;
182
- }
183
- export interface SanitySlug {
184
- current?: string;
185
- _type?: "slug";
186
- }
187
- export interface SanityBody {
188
- _createdAt?: string;
189
- _id?: string;
190
- _rev?: string;
191
- _type?: string;
192
- _updatedAt?: string;
193
- }
194
- export interface Author extends SanityBody {
195
- link?: string | null;
196
- bio?: string | null;
197
- name?: string | null;
198
- slug?: SanitySlug | null;
199
- image?: string | null;
200
- profile?: {
201
- alt: string;
202
- image: string;
203
- } | null;
204
- }
205
- export interface Category extends SanityBody {
206
- title?: string;
207
- }
208
- export interface Form {
209
- id?: string | null;
210
- buttonLabel?: string | null;
211
- name?: string | null;
212
- subtitle?: string | null;
213
- fields?: FormFields[] | null;
214
- thankYouPage?: ThankYouPage | null;
215
- }
216
- export interface FormFields {
217
- name?: string;
218
- placeholder?: string;
219
- pricingType?: string;
220
- type?: FormTypes;
221
- _key?: string;
222
- _type?: string;
223
- isRequired?: boolean;
224
- label?: string;
225
- items?: string[];
226
- }
227
- export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
228
- export interface ThankYouPage {
229
- externalLink?: string | null;
230
- internalLink?: string | null;
231
- linkInternal?: any;
232
- linkTarget?: string;
233
- linkType?: string;
234
- type?: string;
235
- }
236
- export interface SectionsProps {
237
- template?: Template;
238
- data?: Sections;
239
- variant?: string | null | undefined;
240
- schema?: Variants;
241
- }
242
- export interface Sections extends SanityBody {
243
- label?: string;
244
- variant?: string;
245
- variants?: Variants;
246
- _key?: string;
247
- }
248
- export interface Variants {
249
- template?: Template;
250
- multipleMenus?: any;
251
- multipleLinks?: any;
252
- megaMenu?: MegaMenu[];
253
- arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
254
- logo?: Logo | null;
255
- logos?: Logos[] | null;
256
- primaryButton?: LabeledRoute | null;
257
- secondaryButton?: LabeledRoute | null;
258
- routes?: LabeledRouteWithKey[] | null;
259
- menu?: LabeledRouteWithKey[] | null;
260
- dropdownMenu?: LabeledRouteWithKey[] | null;
261
- iconLinks?: LabeledRouteWithKey[] | null;
262
- plans?: Plans[] | null;
263
- formLinks?: LabeledRouteWithKey[] | null;
264
- portfolios?: Portfolios[] | null;
265
- portfoliosWithCategories?: PortfoliosWithCategories[] | null;
266
- length?: number;
267
- signInLink?: LabeledRoute | null;
268
- signinLink?: LabeledRoute | null;
269
- tags?: string[] | null;
270
- posts?: BlogPost[] | null;
271
- blogsPerPage?: number | null;
272
- form?: Form | null;
273
- collections?: Collection | null;
274
- products?: CollectionProduct | null;
275
- allProducts?: Collection[];
276
- subtitle?: string | null;
277
- caption?: string | null;
278
- title?: string | null;
279
- plainText?: string | null;
280
- contactDescription?: string | null;
281
- officeInformation?: string | null;
282
- contactEmail?: string | null;
283
- contactNumber?: string | null;
284
- socialLinks?: SocialLink[] | null;
285
- socialMedia?: SocialLink[] | null;
286
- block?: any;
287
- heading?: string | null;
288
- acceptButtonLabel?: string | null;
289
- declineButtonLabel?: string | null;
290
- faqsWithCategories?: FaqsWithCategory[] | null;
291
- faqs?: AskedQuestion[] | null;
292
- arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
293
- description?: string | null;
294
- featuredItems?: FeaturedItem[] | null;
295
- images?: Images[] | null;
296
- contactDetails?: ContactDetails[] | null;
297
- copyright?: string | null;
298
- mainImage?: MainImage | null;
299
- youtubeLink?: string | null;
300
- banner?: any;
301
- stats?: StatItems[] | null;
302
- teams?: Team[] | null;
303
- testimonials?: Testimonial[] | null;
304
- selectStripeAccount?: string;
305
- annualBilling?: string;
306
- monthlyBilling?: string;
307
- productDetails?: ProductDetail[];
308
- btnLabel?: string;
309
- selectAccount?: string;
310
- hashtags?: string[];
311
- numberOfPosts?: number;
312
- text?: string;
313
- button?: LabeledRoute;
314
- features?: string[];
315
- config?: {
316
- enableAnalytics: boolean;
317
- cookiePolicy?: {
318
- siteName: string;
319
- cookiePolicyPage: Reference;
320
- };
321
- consentModalPosition?: string;
322
- };
323
- contactLink?: LabeledRoute;
324
- }
325
- export interface Template {
326
- bg?: string;
327
- color?: string;
328
- }
329
- export type Plans = {
330
- _key?: string | null;
331
- _type?: "planItems" | null;
332
- checkoutButtonName?: string | null;
333
- description?: string | null;
334
- monthlyPrice?: string | null;
335
- planType?: string | null;
336
- yearlyPrice?: string | null;
337
- planIncludes?: string[] | null;
338
- primaryButton?: LabeledRoute | null;
339
- } & Record<string, string>;
340
- export interface Portfolios {
341
- dateAdded?: string | null;
342
- mainImage?: {
343
- image?: string | null;
344
- alt?: string | null;
345
- } | null;
346
- primaryButton?: LabeledRoute | null;
347
- title?: string | null;
348
- _key?: string | null;
349
- _type?: string | null;
350
- }
351
- export interface PortfoliosWithCategories {
352
- category?: string | null;
353
- content?: Content[] | null;
354
- primaryButton?: LabeledRoute | null;
355
- _key?: string | null;
356
- _type?: string | null;
357
- }
358
- export interface Content extends Portfolios {
359
- description?: string | null;
360
- subtitle?: string | null;
361
- }
362
- export interface Collection extends SanityBody {
363
- collectionInfoVariant?: {
364
- variant?: string;
365
- } | null;
366
- name?: string | null;
367
- products?: CollectionProduct[] | null;
368
- sections?: any;
369
- seo?: Seo | null;
370
- slug?: SanitySlug | null;
371
- }
372
- export interface CollectionProduct extends SanityBody {
373
- compareToPrice?: number | null;
374
- description?: string | null;
375
- ecwidProductId?: number | null;
376
- name?: string | null;
377
- price?: number | null;
378
- productInfo?: ProductInfo | null;
379
- productInfoVariant?: {
380
- variant?: string;
381
- } | null;
382
- sections?: any;
383
- seo?: Seo | null;
384
- slug?: SanitySlug | null;
385
- }
386
- interface ProductInfo {
387
- btnLabel?: string | null;
388
- images?: ProductInfoImage[] | null;
389
- productDetails?: ProductDetail[] | null;
390
- socialLinks?: SocialLink[] | null;
391
- subtitle?: string | null;
392
- }
393
- export interface ProductDetail {
394
- blockContent?: any;
395
- contentType?: string;
396
- tabName?: string;
397
- _key?: string;
398
- [key: string]: any;
399
- }
400
- interface ProductInfoImage {
401
- alt?: string | null;
402
- _key: string;
403
- _type: string;
404
- image?: string | null;
405
- }
406
- export interface FaqsWithCategory {
407
- askedQuestions?: AskedQuestion[] | null;
408
- category?: string | null;
409
- _key?: string;
410
- _type?: string;
411
- }
412
- export interface AskedQuestion {
413
- answer?: string | null;
414
- question?: string | null;
415
- hidden?: boolean;
416
- _key?: string;
417
- _type?: string;
418
- }
419
- export interface Team {
420
- jobTitle?: string;
421
- mainImage?: MainImage;
422
- name?: string;
423
- plainText?: string;
424
- _key?: string;
425
- _type?: string;
426
- }
427
- export interface Testimonial {
428
- jobTitle?: string;
429
- mainImage?: MainImage;
430
- name?: string;
431
- rating?: string;
432
- testimony?: string;
433
- _key?: string;
434
- _type?: string;
435
- }
436
- export declare interface Reference {
437
- _type: string;
438
- _ref: string;
439
- _key?: string;
440
- _weak?: boolean;
441
- _strengthenOnPublish?: {
442
- type: string;
443
- weak?: boolean;
444
- template?: {
445
- id: string;
446
- params: Record<string, string | number | boolean>;
447
- };
448
- };
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
- }
473
- export {};
package/dist/types.js DELETED
@@ -1 +0,0 @@
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);