@stackshift-ui/footer 6.0.7 → 6.0.9
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-2T56DGA2.mjs +1 -0
- package/dist/chunk-66FDHHFF.mjs +1 -0
- package/dist/chunk-FWXIR5AI.mjs +1 -0
- package/dist/chunk-SGGB7UM2.mjs +1 -0
- package/dist/chunk-VWS3TQ4M.mjs +1 -0
- package/dist/chunk-XWMRUVIJ.mjs +1 -0
- package/dist/footer.d.ts +12 -0
- package/dist/footer.js +1 -0
- package/dist/footer.mjs +1 -0
- package/dist/footer_a.d.ts +3 -0
- package/dist/footer_a.js +1 -0
- package/dist/footer_a.mjs +1 -0
- package/dist/footer_b.d.ts +3 -0
- package/dist/footer_b.js +1 -0
- package/dist/footer_b.mjs +1 -0
- package/dist/footer_c.d.ts +3 -0
- package/dist/footer_c.js +1 -0
- package/dist/footer_c.mjs +1 -0
- package/dist/footer_d.d.ts +3 -0
- package/dist/footer_d.js +1 -0
- package/dist/footer_d.mjs +1 -0
- package/dist/helper/index.d.ts +2 -0
- package/dist/helper/index.js +1 -0
- package/dist/helper/index.mjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/types.d.ts +362 -0
- package/dist/types.js +1 -0
- package/package.json +16 -16
- package/src/footer_d.tsx +13 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{lazy as i}from"react";import{jsx as R}from"react/jsx-runtime";var k={variant_a:i(()=>import("./footer_a.mjs")),variant_b:i(()=>import("./footer_b.mjs")),variant_c:i(()=>import("./footer_c.mjs")),variant_d:i(()=>import("./footer_d.mjs"))},x="Footer",F=({data:n})=>{var r,s,t,c,l,p,u,m,v,f,y,g,L,h;let o=n==null?void 0:n.variant,e=o&&k[o],M={logo:(s=(r=n==null?void 0:n.variants)==null?void 0:r.logo)!=null?s:void 0,text:(c=(t=n==null?void 0:n.variants)==null?void 0:t.plainText)!=null?c:void 0,contacts:(p=(l=n==null?void 0:n.variants)==null?void 0:l.contactDetails)!=null?p:void 0,copyright:(m=(u=n==null?void 0:n.variants)==null?void 0:u.copyright)!=null?m:void 0,socialMedia:(f=(v=n==null?void 0:n.variants)==null?void 0:v.socialLinks)!=null?f:void 0,menu:(g=(y=n==null?void 0:n.variants)==null?void 0:y.menu)!=null?g:void 0,multipleMenus:(h=(L=n==null?void 0:n.variants)==null?void 0:L.multipleMenus)!=null?h:void 0};return e?R(e,{...M}):null};F.displayName=x;export{F as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-FWXIR5AI.mjs";import{Button as u}from"@stackshift-ui/button";import{Container as s}from"@stackshift-ui/container";import{Flex as l}from"@stackshift-ui/flex";import{Image as p}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as o}from"@stackshift-ui/section";import{SocialIcons as b}from"@stackshift-ui/social-icons";import{Text as x}from"@stackshift-ui/text";import{jsx as r,jsxs as n}from"react/jsx-runtime";function y({logo:e,menu:t,copyright:a,socialMedia:i}){return n(o,{className:"bg-background",children:[r(k,{}),r(s,{maxWidth:1e3,children:n("div",{className:"pt-10 pb-12",children:[n(l,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[r(N,{copyright:a}),r(w,{menu:t}),r(v,{logo:e})]}),r(L,{socialMedia:i})]})})]})}function N({copyright:e}){return e?r(x,{className:"w-full text-sm text-center",children:e}):null}function v({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(p,{src:e==null?void 0:e.image,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function w({menu:e}){return e?r("div",{className:"mx-auto",children:r(l,{className:"flex-col gap-0 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(u,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},t):null}function L({socialMedia:e}){return e?r(l,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((t,a)=>r(h,{social:t,index:a}))}):null}function h({social:e,index:t}){var a,i,d,f;return e!=null&&e.socialMediaLink?r(c,{"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:(a=e==null?void 0:e.socialMediaIcon)!=null&&a.image?r(p,{className:"h-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:56,height:56,alt:(f=(d=e==null?void 0:e.socialMediaIcon)==null?void 0:d.alt)!=null?f:"contact-socialMedia-icon"}):r(b,{social:e==null?void 0:e.socialMedia})},t):null}function k(){return n("div",{className:"flex w-full",children:[n("div",{className:"flex w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]}),n("div",{className:"flex w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]}),n("div",{className:"flex w-1/3",children:[r("div",{className:"w-1/3 py-1 bg-secondary"}),r("div",{className:"w-1/3 py-1 bg-primary"}),r("div",{className:"w-1/3 py-1 bg-primary"})]})]})}export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-FWXIR5AI.mjs";import{Button as l}from"@stackshift-ui/button";import{Container as p}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Image as o}from"@stackshift-ui/image";import{Link as f}from"@stackshift-ui/link";import{Section as b}from"@stackshift-ui/section";import{SocialIcons as c}from"@stackshift-ui/social-icons";import{Text as L}from"@stackshift-ui/text";import h from"react";import{jsx as t,jsxs as i}from"react/jsx-runtime";function x({logo:e,copyright:r,socialMedia:n,menu:a}){return t(b,{className:"py-20 bg-background",children:i(p,{maxWidth:1280,children:[i(u,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[t(w,{logo:e}),t(g,{menu:a})]}),i(u,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[t(N,{copyright:r}),t(M,{socialMedia:n})]})]})})}function w({logo:e}){var r;return e!=null&&e.image?t("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:t(f,{"aria-label":m(e)==="/"?"Go to home page":`Go to ${m(e)}`,className:"inline-block text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(o,{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 g({menu:e}){return e?t("div",{className:"w-full lg:w-auto",children:t(u,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,n,{length:a})=>i(h.Fragment,{children:[t(y,{links:r}),n+1!==a?t(k,{}):null]},(r==null?void 0:r._key)||n))})}):null}function y({links:e,index:r}){return e?t("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:t(l,{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 k(){return t("li",{className:"hidden md:block",children:t("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:t("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 N({copyright:e}){return e?t(L,{muted:!0,className:"order-last text-sm ",children:e}):null}function M({socialMedia:e}){return e?t("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>t(v,{social:r}))}):null}function v({social:e}){var r,n,a,d;return e!=null&&e.socialMediaLink?t(f,{"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?t(o,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(d=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?d:"contact-socialMedia-icon"}):t(c,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-FWXIR5AI.mjs";import{Container as p}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Grid as h}from"@stackshift-ui/grid";import{GridItem as f}from"@stackshift-ui/grid-item";import{Image as x}from"@stackshift-ui/image";import{Link as b}from"@stackshift-ui/link";import{Section as o}from"@stackshift-ui/section";import{SocialIcons as w}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:l}){return r(o,{className:"py-20 bg-background",children:t(p,{maxWidth:1e3,children:[t(u,{wrap:!0,className:"mb-5 lg:mb-20",children:[r(k,{logo:e}),r(g,{text:m}),r(I,{contacts:n})]}),t(u,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[r(L,{copyright:a}),r(C,{socialMedia:l})]})]})})}function k({logo:e}){var m;return e!=null&&e.image?r("div",{className:"w-full mb-5 lg:w-1/5",children:r(b,{"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:r(x,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(m=e==null?void 0:e.alt)!=null?m:"footer-logo"})})}):null}function g({text:e}){return e?r(p,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:r(i,{muted:!0,className:"leading-loose",children:e})}):null}function I({contacts:e}){return e?r(p,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,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(f,{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(f,{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(f,{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 L({copyright:e}){return e?r(i,{muted:!0,className:"text-sm",children:e}):null}function C({socialMedia:e}){return e?r(u,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((m,n)=>r(T,{social:m,index:n}))}):null}function T({social:e,index:m}){var n,a,l,s;return e!=null&&e.socialMediaLink?r(b,{"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:(n=e==null?void 0:e.socialMediaIcon)!=null&&n.image?r(x,{className:"h-6",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:24,height:24,alt:(s=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?s:"contact-socialMedia-icon"}):r(w,{social:e==null?void 0:e.socialMedia})},m):null}export{N as a};
|
package/dist/footer.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionsProps, Logo, ContactDetails, SocialLink, LabeledRouteWithKey } 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
ADDED
|
@@ -0,0 +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});
|
package/dist/footer.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-2T56DGA2.mjs";export{a as Footer};
|
package/dist/footer_a.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var T=(e,r)=>{for(var i in r)s(e,i,{get:r[i],enumerable:!0})},S=(e,r,i,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of I(r))!C.call(e,m)&&m!==i&&s(e,m,{get:()=>r[m],enumerable:!(t=N(r,m))||t.enumerable});return e};var y=e=>S(s({},"__esModule",{value:!0}),e);var P={};T(P,{Footer_A:()=>w,default:()=>w});module.exports=y(P);var p=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),h=require("@stackshift-ui/grid"),u=require("@stackshift-ui/grid-item"),x=require("@stackshift-ui/image"),l=require("@stackshift-ui/link"),b=require("@stackshift-ui/section"),L=require("@stackshift-ui/social-icons"),a=require("@stackshift-ui/text");var f=e=>{var r,i,t;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(i=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&i.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(t=e==null?void 0:e.externalLink)!=null?t:"/"};var n=require("react/jsx-runtime");function w({logo:e,text:r,contacts:i,copyright:t,socialMedia:m}){return(0,n.jsx)(b.Section,{className:"py-20 bg-background",children:(0,n.jsxs)(p.Container,{maxWidth:1e3,children:[(0,n.jsxs)(d.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,n.jsx)(G,{logo:e}),(0,n.jsx)(M,{text:r}),(0,n.jsx)(F,{contacts:i})]}),(0,n.jsxs)(d.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,n.jsx)($,{copyright:t}),(0,n.jsx)(v,{socialMedia:m})]})]})})}function G({logo:e}){var r;return e!=null&&e.image?(0,n.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,n.jsx)(l.Link,{"aria-label":f(e)==="/"?"Go to home page":`Go to ${f(e)}`,className:"text-3xl font-bold leading-none",href:f(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(x.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 M({text:e}){return e?(0,n.jsx)(p.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,n.jsx)(a.Text,{muted:!0,className:"leading-loose",children:e})}):null}function F({contacts:e}){return e?(0,n.jsx)(p.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,children:e==null?void 0:e.map((r,i)=>(0,n.jsxs)(h.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,n.jsxs)(u.GridItem,{span:1,children:[(0,n.jsx)(a.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,n.jsx)(a.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,n.jsxs)(u.GridItem,{span:1,children:[(0,n.jsx)(a.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,n.jsx)(a.Text,{muted:!0,className:"mb-5",children:(0,n.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,n.jsxs)(u.GridItem,{span:1,children:[(0,n.jsx)(a.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,n.jsx)(a.Text,{muted:!0,className:"mb-5",children:(0,n.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},i))}):null}function $({copyright:e}){return e?(0,n.jsx)(a.Text,{muted:!0,className:"text-sm",children:e}):null}function v({socialMedia:e}){return e?(0,n.jsx)(d.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,i)=>(0,n.jsx)(D,{social:r,index:i}))}):null}function D({social:e,index:r}){var i,t,m,k;return e!=null&&e.socialMediaLink?(0,n.jsx)(l.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:(i=e==null?void 0:e.socialMediaIcon)!=null&&i.image?(0,n.jsx)(x.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(k=(m=e==null?void 0:e.socialMediaIcon)==null?void 0:m.alt)!=null?k:"contact-socialMedia-icon"}):(0,n.jsx)(L.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}0&&(module.exports={Footer_A});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-XWMRUVIJ.mjs";import"./chunk-FWXIR5AI.mjs";export{a as Footer_A,a as default};
|
package/dist/footer_b.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var y=Object.create;var m=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var S=(e,r)=>{for(var n in r)m(e,n,{get:r[n],enumerable:!0})},b=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of N(r))!v.call(e,i)&&i!==n&&m(e,i,{get:()=>r[i],enumerable:!(a=s(r,i))||a.enumerable});return e};var F=(e,r,n)=>(n=e!=null?y(M(e)):{},b(r||!e||!e.__esModule?m(n,"default",{value:e,enumerable:!0}):n,e)),C=e=>b(m({},"__esModule",{value:!0}),e);var z={};S(z,{Footer_B:()=>w,default:()=>w});module.exports=C(z);var L=require("@stackshift-ui/button"),c=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),d=require("@stackshift-ui/image"),p=require("@stackshift-ui/link"),x=require("@stackshift-ui/section"),k=require("@stackshift-ui/social-icons"),h=require("@stackshift-ui/text"),l=F(require("react"));var u=e=>{var r,n,a;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(n=(r=e==null?void 0:e.internalLink)==null?void 0:r.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:"/"};var t=require("react/jsx-runtime");function w({logo:e,copyright:r,socialMedia:n,menu:a}){return(0,t.jsx)(x.Section,{className:"py-20 bg-background",children:(0,t.jsxs)(c.Container,{maxWidth:1280,children:[(0,t.jsxs)(f.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,t.jsx)(I,{logo:e}),(0,t.jsx)(R,{menu:a})]}),(0,t.jsxs)(f.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,t.jsx)(T,{copyright:r}),(0,t.jsx)(W,{socialMedia:n})]})]})})}function I({logo:e}){var r;return e!=null&&e.image?(0,t.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,t.jsx)(p.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,t.jsx)(d.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 R({menu:e}){return e?(0,t.jsx)("div",{className:"w-full lg:w-auto",children:(0,t.jsx)(f.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,n,{length:a})=>(0,t.jsxs)(l.default.Fragment,{children:[(0,t.jsx)(_,{links:r}),n+1!==a?(0,t.jsx)(B,{}):null]},(r==null?void 0:r._key)||n))})}):null}function _({links:e,index:r}){return e?(0,t.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,t.jsx)(L.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 B(){return(0,t.jsx)("li",{className:"hidden md:block",children:(0,t.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,t.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 T({copyright:e}){return e?(0,t.jsx)(h.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function W({socialMedia:e}){return e?(0,t.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,t.jsx)(j,{social:r}))}):null}function j({social:e}){var r,n,a,i;return e!=null&&e.socialMediaLink?(0,t.jsx)(p.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,t.jsx)(d.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(i=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?i:"contact-socialMedia-icon"}):(0,t.jsx)(k.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}0&&(module.exports={Footer_B});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-VWS3TQ4M.mjs";import"./chunk-FWXIR5AI.mjs";export{a as Footer_B,a as default};
|
package/dist/footer_c.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var k=(e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})},h=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of v(t))!w.call(e,i)&&i!==n&&f(e,i,{get:()=>t[i],enumerable:!(a=N(t,i))||a.enumerable});return e};var S=e=>h(f({},"__esModule",{value:!0}),e);var P={};k(P,{Footer_C:()=>L,default:()=>L});module.exports=S(P);var s=require("@stackshift-ui/button"),l=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),p=require("@stackshift-ui/image"),u=require("@stackshift-ui/link"),b=require("@stackshift-ui/section"),x=require("@stackshift-ui/social-icons"),y=require("@stackshift-ui/text");var m=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:"/"};var r=require("react/jsx-runtime");function L({logo:e,menu:t,copyright:n,socialMedia:a}){return(0,r.jsxs)(b.Section,{className:"bg-background",children:[(0,r.jsx)(B,{}),(0,r.jsx)(l.Container,{maxWidth:1e3,children:(0,r.jsxs)("div",{className:"pt-10 pb-12",children:[(0,r.jsxs)(d.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,r.jsx)(M,{copyright:n}),(0,r.jsx)(C,{menu:t}),(0,r.jsx)(F,{logo:e})]}),(0,r.jsx)(R,{socialMedia:a})]})})]})}function M({copyright:e}){return e?(0,r.jsx)(y.Text,{className:"w-full text-sm text-center",children:e}):null}function F({logo:e}){var t;return e!=null&&e.image?(0,r.jsx)("div",{className:"w-full text-center",children:(0,r.jsx)(u.Link,{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:(0,r.jsx)(p.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 C({menu:e}){return e?(0,r.jsx)("div",{className:"mx-auto",children:(0,r.jsx)(d.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((t,n)=>(0,r.jsx)(I,{links:t,index:n}))})}):null}function I({links:e,index:t}){return e?(0,r.jsx)("li",{className:"w-full text-center",children:(0,r.jsx)(s.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})},t):null}function R({socialMedia:e}){return e?(0,r.jsx)(d.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((t,n)=>(0,r.jsx)(T,{social:t,index:n}))}):null}function T({social:e,index:t}){var n,a,i,c;return e!=null&&e.socialMediaLink?(0,r.jsx)(u.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:(n=e==null?void 0:e.socialMediaIcon)!=null&&n.image?(0,r.jsx)(p.Image,{className:"h-6",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:56,height:56,alt:(c=(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.alt)!=null?c:"contact-socialMedia-icon"}):(0,r.jsx)(x.SocialIcons,{social:e==null?void 0:e.socialMedia})},t):null}function B(){return(0,r.jsxs)("div",{className:"flex w-full",children:[(0,r.jsxs)("div",{className:"flex w-1/3",children:[(0,r.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,r.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,r.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,r.jsxs)("div",{className:"flex w-1/3",children:[(0,r.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,r.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,r.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,r.jsxs)("div",{className:"flex w-1/3",children:[(0,r.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,r.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,r.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}0&&(module.exports={Footer_C});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-66FDHHFF.mjs";import"./chunk-FWXIR5AI.mjs";export{a as Footer_C,a as default};
|
package/dist/footer_d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var N=(e,r)=>{for(var a in r)d(e,a,{get:r[a],enumerable:!0})},S=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of c(r))!s.call(e,i)&&i!==a&&d(e,i,{get:()=>r[i],enumerable:!(n=b(r,i))||n.enumerable});return e};var v=e=>S(d({},"__esModule",{value:!0}),e);var P={};N(P,{Footer_D:()=>y,default:()=>y});module.exports=v(P);var k=require("@stackshift-ui/button"),L=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),x=require("@stackshift-ui/image"),u=require("@stackshift-ui/link"),h=require("@stackshift-ui/section"),w=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");var m=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:"/"};var t=require("react/jsx-runtime");function y({logo:e,multipleMenus:r,copyright:a,socialMedia:n,text:i}){return(0,t.jsx)(h.Section,{className:"py-20 overflow-hidden bg-background",children:(0,t.jsxs)(L.Container,{maxWidth:1280,children:[(0,t.jsxs)(f.Flex,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[(0,t.jsxs)("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[(0,t.jsx)(M,{logo:e}),(0,t.jsx)(F,{text:i})]}),(0,t.jsx)(I,{multipleMenus:r}),(0,t.jsx)(_,{socialMedia:n})]}),(0,t.jsx)(T,{copyright:a})]})})}function M({logo:e}){var r;return e!=null&&e.image?(0,t.jsx)(u.Link,{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:(0,t.jsx)(x.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 F({text:e}){return e?(0,t.jsx)(p.Text,{muted:!0,className:"leading-normal",children:e}):null}function T({copyright:e}){return e?(0,t.jsx)(p.Text,{className:"pt-10 text-sm",children:e}):null}function I({multipleMenus:e}){return e?(0,t.jsx)(f.Flex,{wrap:!0,className:"flex-grow lg:justify-around",gap:4,children:e==null?void 0:e.map((r,a)=>(0,t.jsx)(C,{menu:r},a))}):null}function C({menu:e}){var r,a;return e?(0,t.jsxs)("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&(0,t.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,t.jsx)(f.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(a=e==null?void 0:e.links)==null?void 0:a.map((n,i)=>(0,t.jsx)("li",{children:(0,t.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})},i))})]}):null}function _({socialMedia:e}){return e?(0,t.jsx)(f.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,t.jsx)($,{social:r}))}):null}function $({social:e}){var r,a,n,i;return e!=null&&e.socialMediaLink?(0,t.jsx)("span",{children:(0,t.jsx)(u.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,t.jsx)(x.Image,{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:(0,t.jsx)(w.SocialIcons,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}0&&(module.exports={Footer_D});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-SGGB7UM2.mjs";import"./chunk-FWXIR5AI.mjs";export{a as Footer_D,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(n,e)=>{for(var r in e)L(n,r,{get:e[r],enumerable:!0})},f=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of k(e))!s.call(n,i)&&i!==r&&L(n,i,{get:()=>e[i],enumerable:!(t=a(e,i))||t.enumerable});return n};var p=n=>f(L({},"__esModule",{value:!0}),n);var m={};u(m,{logoLink:()=>x});module.exports=p(m);var x=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};0&&(module.exports={logoLink});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-FWXIR5AI.mjs";export{a as logoLink};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
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});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";import{a as f}from"./chunk-2T56DGA2.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-SGGB7UM2.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/dist/types.d.ts
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
|
+
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
3
|
+
export interface MainImage {
|
|
4
|
+
image: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LabeledRoute extends ConditionalLink {
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
linkTarget?: string;
|
|
11
|
+
linkType?: string;
|
|
12
|
+
_type?: string;
|
|
13
|
+
linkInternal?: any;
|
|
14
|
+
}
|
|
15
|
+
export interface ConditionalLink {
|
|
16
|
+
type?: string;
|
|
17
|
+
internalLink?: string | null;
|
|
18
|
+
externalLink?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface StatItems {
|
|
21
|
+
label?: string;
|
|
22
|
+
mainImage?: MainImage;
|
|
23
|
+
value?: string;
|
|
24
|
+
_key?: string;
|
|
25
|
+
_type?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface Logo extends ConditionalLink {
|
|
28
|
+
alt?: string;
|
|
29
|
+
linkTarget?: string;
|
|
30
|
+
image?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Images {
|
|
33
|
+
image?: string;
|
|
34
|
+
_key?: string;
|
|
35
|
+
_type?: string;
|
|
36
|
+
alt?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ContactDetails {
|
|
39
|
+
addressInfo?: string;
|
|
40
|
+
contactInfo?: string;
|
|
41
|
+
emailInfo?: string;
|
|
42
|
+
_key?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface SocialLink {
|
|
45
|
+
socialMedia?: string | null;
|
|
46
|
+
socialMediaLink?: string | null;
|
|
47
|
+
_key?: string | null;
|
|
48
|
+
_type?: string | null;
|
|
49
|
+
socialMediaIcon?: {
|
|
50
|
+
alt?: string;
|
|
51
|
+
image?: string;
|
|
52
|
+
} | null;
|
|
53
|
+
socialMediaPlatform?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
56
|
+
_key?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ArrayOfImageTitleAndText {
|
|
59
|
+
mainImage?: {
|
|
60
|
+
alt?: string;
|
|
61
|
+
image?: string;
|
|
62
|
+
};
|
|
63
|
+
plainText?: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
_key?: string;
|
|
66
|
+
_type?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface FeaturedItem {
|
|
69
|
+
description?: string;
|
|
70
|
+
mainImage?: MainImage;
|
|
71
|
+
title?: string;
|
|
72
|
+
subtitle?: string;
|
|
73
|
+
_key?: string;
|
|
74
|
+
_type?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ArrayOfTitleAndText {
|
|
77
|
+
_key?: string;
|
|
78
|
+
plainText?: string;
|
|
79
|
+
title?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BlogPost extends SanityBody {
|
|
82
|
+
authors?: Author[] | null;
|
|
83
|
+
body?: any;
|
|
84
|
+
categories?: Category[] | null;
|
|
85
|
+
excerpt?: string | null;
|
|
86
|
+
link?: string | null;
|
|
87
|
+
mainImage?: string | null;
|
|
88
|
+
publishedAt?: string;
|
|
89
|
+
seo?: Seo | null;
|
|
90
|
+
slug?: SanitySlug | null;
|
|
91
|
+
title?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface Seo {
|
|
94
|
+
_type?: string;
|
|
95
|
+
seoTitle?: string;
|
|
96
|
+
seoDescription?: string;
|
|
97
|
+
seoImage?: string;
|
|
98
|
+
seoKeywords?: string;
|
|
99
|
+
seoSynonyms?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface SanitySlug {
|
|
102
|
+
current?: string;
|
|
103
|
+
_type?: "slug";
|
|
104
|
+
}
|
|
105
|
+
export interface SanityBody {
|
|
106
|
+
_createdAt?: string;
|
|
107
|
+
_id?: string;
|
|
108
|
+
_rev?: string;
|
|
109
|
+
_type?: string;
|
|
110
|
+
_updatedAt?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface Author extends SanityBody {
|
|
113
|
+
link?: string | null;
|
|
114
|
+
bio?: string | null;
|
|
115
|
+
name?: string | null;
|
|
116
|
+
slug?: SanitySlug | null;
|
|
117
|
+
image?: string | null;
|
|
118
|
+
profile?: {
|
|
119
|
+
alt: string;
|
|
120
|
+
image: string;
|
|
121
|
+
} | null;
|
|
122
|
+
}
|
|
123
|
+
export interface Category extends SanityBody {
|
|
124
|
+
title?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface Form {
|
|
127
|
+
id?: string | null;
|
|
128
|
+
buttonLabel?: string | null;
|
|
129
|
+
name?: string | null;
|
|
130
|
+
subtitle?: string | null;
|
|
131
|
+
fields?: FormFields[] | null;
|
|
132
|
+
thankYouPage?: ThankYouPage | null;
|
|
133
|
+
}
|
|
134
|
+
export interface FormFields {
|
|
135
|
+
name?: string;
|
|
136
|
+
placeholder?: string;
|
|
137
|
+
pricingType?: string;
|
|
138
|
+
type?: FormTypes;
|
|
139
|
+
_key?: string;
|
|
140
|
+
_type?: string;
|
|
141
|
+
isRequired?: boolean;
|
|
142
|
+
label?: string;
|
|
143
|
+
items?: string[];
|
|
144
|
+
}
|
|
145
|
+
export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
|
|
146
|
+
export interface ThankYouPage {
|
|
147
|
+
externalLink?: string | null;
|
|
148
|
+
internalLink?: string | null;
|
|
149
|
+
linkInternal?: any;
|
|
150
|
+
linkTarget?: string;
|
|
151
|
+
linkType?: string;
|
|
152
|
+
type?: string;
|
|
153
|
+
}
|
|
154
|
+
export interface SectionsProps {
|
|
155
|
+
template?: Template;
|
|
156
|
+
data?: Sections;
|
|
157
|
+
variant?: string | null | undefined;
|
|
158
|
+
schema?: Variants;
|
|
159
|
+
}
|
|
160
|
+
export interface Sections extends SanityBody {
|
|
161
|
+
label?: string;
|
|
162
|
+
variant?: string;
|
|
163
|
+
variants?: Variants;
|
|
164
|
+
_key?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface Variants {
|
|
167
|
+
template?: Template;
|
|
168
|
+
multipleMenus?: any;
|
|
169
|
+
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
170
|
+
logo?: Logo | null;
|
|
171
|
+
primaryButton?: LabeledRoute | null;
|
|
172
|
+
secondaryButton?: LabeledRoute | null;
|
|
173
|
+
routes?: LabeledRouteWithKey[] | null;
|
|
174
|
+
menu?: LabeledRouteWithKey[] | null;
|
|
175
|
+
plans?: Plans[] | null;
|
|
176
|
+
formLinks?: LabeledRouteWithKey[] | null;
|
|
177
|
+
portfolios?: Portfolios[] | null;
|
|
178
|
+
portfoliosWithCategories?: PortfoliosWithCategories[] | null;
|
|
179
|
+
length?: number;
|
|
180
|
+
signInLink?: LabeledRoute | null;
|
|
181
|
+
signinLink?: LabeledRoute | null;
|
|
182
|
+
tags?: string[] | null;
|
|
183
|
+
posts?: BlogPost[] | null;
|
|
184
|
+
blogsPerPage?: number | null;
|
|
185
|
+
form?: Form | null;
|
|
186
|
+
collections?: Collection | null;
|
|
187
|
+
products?: CollectionProduct | null;
|
|
188
|
+
allProducts?: Collection[];
|
|
189
|
+
subtitle?: string | null;
|
|
190
|
+
caption?: string | null;
|
|
191
|
+
title?: string | null;
|
|
192
|
+
plainText?: string | null;
|
|
193
|
+
contactDescription?: string | null;
|
|
194
|
+
officeInformation?: string | null;
|
|
195
|
+
contactEmail?: string | null;
|
|
196
|
+
contactNumber?: string | null;
|
|
197
|
+
socialLinks?: SocialLink[] | null;
|
|
198
|
+
block?: any;
|
|
199
|
+
heading?: string | null;
|
|
200
|
+
acceptButtonLabel?: string | null;
|
|
201
|
+
declineButtonLabel?: string | null;
|
|
202
|
+
faqsWithCategories?: FaqsWithCategory[] | null;
|
|
203
|
+
faqs?: AskedQuestion[] | null;
|
|
204
|
+
arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
|
|
205
|
+
description?: string | null;
|
|
206
|
+
featuredItems?: FeaturedItem[] | null;
|
|
207
|
+
images?: Images[] | null;
|
|
208
|
+
contactDetails?: ContactDetails[] | null;
|
|
209
|
+
copyright?: string | null;
|
|
210
|
+
mainImage?: MainImage | null;
|
|
211
|
+
youtubeLink?: string | null;
|
|
212
|
+
banner?: any;
|
|
213
|
+
stats?: StatItems[] | null;
|
|
214
|
+
teams?: Team[] | null;
|
|
215
|
+
testimonials?: Testimonial[] | null;
|
|
216
|
+
selectStripeAccount?: string;
|
|
217
|
+
annualBilling?: string;
|
|
218
|
+
monthlyBilling?: string;
|
|
219
|
+
productDetails?: ProductDetail[];
|
|
220
|
+
btnLabel?: string;
|
|
221
|
+
selectAccount?: string;
|
|
222
|
+
hashtags?: string[];
|
|
223
|
+
numberOfPosts?: number;
|
|
224
|
+
text?: string;
|
|
225
|
+
button?: LabeledRoute;
|
|
226
|
+
features?: string[];
|
|
227
|
+
config?: {
|
|
228
|
+
enableAnalytics: boolean;
|
|
229
|
+
cookiePolicy?: {
|
|
230
|
+
siteName: string;
|
|
231
|
+
cookiePolicyPage: Reference;
|
|
232
|
+
};
|
|
233
|
+
consentModalPosition?: string;
|
|
234
|
+
};
|
|
235
|
+
contactLink?: LabeledRoute;
|
|
236
|
+
}
|
|
237
|
+
export interface Template {
|
|
238
|
+
bg?: string;
|
|
239
|
+
color?: string;
|
|
240
|
+
}
|
|
241
|
+
export type Plans = {
|
|
242
|
+
_key?: string | null;
|
|
243
|
+
_type?: "planItems" | null;
|
|
244
|
+
checkoutButtonName?: string | null;
|
|
245
|
+
description?: string | null;
|
|
246
|
+
monthlyPrice?: string | null;
|
|
247
|
+
planType?: string | null;
|
|
248
|
+
yearlyPrice?: string | null;
|
|
249
|
+
planIncludes?: string[] | null;
|
|
250
|
+
primaryButton?: LabeledRoute | null;
|
|
251
|
+
} & Record<string, string>;
|
|
252
|
+
export interface Portfolios {
|
|
253
|
+
dateAdded?: string | null;
|
|
254
|
+
mainImage?: {
|
|
255
|
+
image?: string | null;
|
|
256
|
+
alt?: string | null;
|
|
257
|
+
} | null;
|
|
258
|
+
primaryButton?: LabeledRoute | null;
|
|
259
|
+
title?: string | null;
|
|
260
|
+
_key?: string | null;
|
|
261
|
+
_type?: string | null;
|
|
262
|
+
}
|
|
263
|
+
export interface PortfoliosWithCategories {
|
|
264
|
+
category?: string | null;
|
|
265
|
+
content?: Content[] | null;
|
|
266
|
+
primaryButton?: LabeledRoute | null;
|
|
267
|
+
_key?: string | null;
|
|
268
|
+
_type?: string | null;
|
|
269
|
+
}
|
|
270
|
+
export interface Content extends Portfolios {
|
|
271
|
+
description?: string | null;
|
|
272
|
+
subtitle?: string | null;
|
|
273
|
+
}
|
|
274
|
+
export interface Collection extends SanityBody {
|
|
275
|
+
collectionInfoVariant?: {
|
|
276
|
+
variant?: string;
|
|
277
|
+
} | null;
|
|
278
|
+
name?: string | null;
|
|
279
|
+
products?: CollectionProduct[] | null;
|
|
280
|
+
sections?: any;
|
|
281
|
+
seo?: Seo | null;
|
|
282
|
+
slug?: SanitySlug | null;
|
|
283
|
+
}
|
|
284
|
+
export interface CollectionProduct extends SanityBody {
|
|
285
|
+
compareToPrice?: number | null;
|
|
286
|
+
description?: string | null;
|
|
287
|
+
ecwidProductId?: number | null;
|
|
288
|
+
name?: string | null;
|
|
289
|
+
price?: number | null;
|
|
290
|
+
productInfo?: ProductInfo | null;
|
|
291
|
+
productInfoVariant?: {
|
|
292
|
+
variant?: string;
|
|
293
|
+
} | null;
|
|
294
|
+
sections?: any;
|
|
295
|
+
seo?: Seo | null;
|
|
296
|
+
slug?: SanitySlug | null;
|
|
297
|
+
}
|
|
298
|
+
interface ProductInfo {
|
|
299
|
+
btnLabel?: string | null;
|
|
300
|
+
images?: ProductInfoImage[] | null;
|
|
301
|
+
productDetails?: ProductDetail[] | null;
|
|
302
|
+
socialLinks?: SocialLink[] | null;
|
|
303
|
+
subtitle?: string | null;
|
|
304
|
+
}
|
|
305
|
+
export interface ProductDetail {
|
|
306
|
+
blockContent?: any;
|
|
307
|
+
contentType?: string;
|
|
308
|
+
tabName?: string;
|
|
309
|
+
_key?: string;
|
|
310
|
+
[key: string]: any;
|
|
311
|
+
}
|
|
312
|
+
interface ProductInfoImage {
|
|
313
|
+
alt?: string | null;
|
|
314
|
+
_key: string;
|
|
315
|
+
_type: string;
|
|
316
|
+
image?: string | null;
|
|
317
|
+
}
|
|
318
|
+
export interface FaqsWithCategory {
|
|
319
|
+
askedQuestions?: AskedQuestion[] | null;
|
|
320
|
+
category?: string | null;
|
|
321
|
+
_key?: string;
|
|
322
|
+
_type?: string;
|
|
323
|
+
}
|
|
324
|
+
export interface AskedQuestion {
|
|
325
|
+
answer?: string | null;
|
|
326
|
+
question?: string | null;
|
|
327
|
+
hidden?: boolean;
|
|
328
|
+
_key?: string;
|
|
329
|
+
_type?: string;
|
|
330
|
+
}
|
|
331
|
+
export interface Team {
|
|
332
|
+
jobTitle?: string;
|
|
333
|
+
mainImage?: MainImage;
|
|
334
|
+
name?: string;
|
|
335
|
+
plainText?: string;
|
|
336
|
+
_key?: string;
|
|
337
|
+
_type?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface Testimonial {
|
|
340
|
+
jobTitle?: string;
|
|
341
|
+
mainImage?: MainImage;
|
|
342
|
+
name?: string;
|
|
343
|
+
rating?: string;
|
|
344
|
+
testimony?: string;
|
|
345
|
+
_key?: string;
|
|
346
|
+
_type?: string;
|
|
347
|
+
}
|
|
348
|
+
export declare interface Reference {
|
|
349
|
+
_type: string;
|
|
350
|
+
_ref: string;
|
|
351
|
+
_key?: string;
|
|
352
|
+
_weak?: boolean;
|
|
353
|
+
_strengthenOnPublish?: {
|
|
354
|
+
type: string;
|
|
355
|
+
weak?: boolean;
|
|
356
|
+
template?: {
|
|
357
|
+
id: string;
|
|
358
|
+
params: Record<string, string | number | boolean>;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
export {};
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=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 a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/footer",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.9",
|
|
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.6",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.6"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/image": "6.0.
|
|
41
|
-
"@stackshift-ui/link": "6.0.
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/grid": "6.0.
|
|
47
|
-
"@stackshift-ui/
|
|
48
|
-
"@stackshift-ui/grid-item": "6.0.
|
|
37
|
+
"@stackshift-ui/scripts": "6.0.6",
|
|
38
|
+
"@stackshift-ui/text": "6.0.7",
|
|
39
|
+
"@stackshift-ui/button": "6.0.7",
|
|
40
|
+
"@stackshift-ui/image": "6.0.7",
|
|
41
|
+
"@stackshift-ui/link": "6.0.7",
|
|
42
|
+
"@stackshift-ui/social-icons": "6.0.7",
|
|
43
|
+
"@stackshift-ui/section": "6.0.7",
|
|
44
|
+
"@stackshift-ui/container": "6.0.7",
|
|
45
|
+
"@stackshift-ui/flex": "6.0.7",
|
|
46
|
+
"@stackshift-ui/grid": "6.0.7",
|
|
47
|
+
"@stackshift-ui/system": "6.0.7",
|
|
48
|
+
"@stackshift-ui/grid-item": "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.7"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"next": {
|
package/src/footer_d.tsx
CHANGED
|
@@ -78,7 +78,7 @@ function MenuSection({ multipleMenus }: { multipleMenus?: any[] }) {
|
|
|
78
78
|
|
|
79
79
|
return (
|
|
80
80
|
<Flex wrap className="flex-grow lg:justify-around" gap={4}>
|
|
81
|
-
{multipleMenus?.map(menu => <MenuLinks key={menu?._key} menu={menu} />)}
|
|
81
|
+
{multipleMenus?.map((menu) => <MenuLinks key={menu?._key} menu={menu} />)}
|
|
82
82
|
</Flex>
|
|
83
83
|
);
|
|
84
84
|
}
|
|
@@ -117,7 +117,7 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
117
117
|
if (!socialMedia) return null;
|
|
118
118
|
|
|
119
119
|
return (
|
|
120
|
-
<Flex className="w-full ml-auto lg:justify-end lg:w-1/6">
|
|
120
|
+
<Flex className="!items-center w-full ml-auto lg:justify-end lg:w-1/6" wrap={true}>
|
|
121
121
|
{socialMedia?.map(social => social?.socialMediaLink && <SocialMediaLink social={social} />)}
|
|
122
122
|
</Flex>
|
|
123
123
|
);
|
|
@@ -130,18 +130,20 @@ function SocialMediaLink({ social }: { social?: SocialLink }) {
|
|
|
130
130
|
<span key={social?._key}>
|
|
131
131
|
<Link
|
|
132
132
|
aria-label={social?.socialMedia || social?.socialMediaPlatform || ""}
|
|
133
|
-
className="inline-block p-2 mr-2 rounded"
|
|
133
|
+
className="inline-block items-center p-2 mr-2 rounded"
|
|
134
134
|
target="_blank"
|
|
135
135
|
rel="noopener noreferrer"
|
|
136
136
|
href={social?.socialMediaLink}>
|
|
137
|
-
{social?.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
{social?.socialMedia === "others" ? (
|
|
138
|
+
social?.socialMediaIcon?.image ? (
|
|
139
|
+
<Image
|
|
140
|
+
className="h-6"
|
|
141
|
+
src={`${social?.socialMediaIcon?.image}`}
|
|
142
|
+
width={24}
|
|
143
|
+
height={24}
|
|
144
|
+
alt={social?.socialMediaIcon?.alt ?? "contact-socialMedia-icon"}
|
|
145
|
+
/>
|
|
146
|
+
): null
|
|
145
147
|
) : (
|
|
146
148
|
<SocialIcons social={social?.socialMedia as Socials} />
|
|
147
149
|
)}
|