@stackshift-ui/logo-cloud 6.0.14 → 6.1.0-beta.2
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-S35O64PB.mjs +1 -0
- package/dist/chunk-XXOTP3PJ.mjs +1 -0
- package/dist/helper/index.d.ts +3 -0
- package/dist/helper/index.js +1 -0
- package/dist/helper/index.mjs +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/logo-cloud.js +1 -1
- package/dist/logo-cloud.mjs +1 -1
- package/dist/logo-cloud_c.js +1 -1
- package/dist/logo-cloud_c.mjs +1 -1
- package/dist/types.d.ts +112 -1
- package/dist/types.js +1 -1
- package/package.json +14 -12
- package/src/helper/index.tsx +131 -0
- package/src/logo-cloud.test.tsx +2 -2
- package/src/logo-cloud_c.tsx +5 -1
- package/src/types.ts +118 -1
- package/dist/chunk-GGOHIST3.mjs +0 -1
- /package/dist/{chunk-IAIT346V.mjs → chunk-CZK3LJZW.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Link as f}from"@stackshift-ui/link";import{jsx as y}from"react/jsx-runtime";var b=r=>{var a,u,p;return r!=null&&r.internalLink&&(r==null?void 0:r.type)==="linkInternal"?(u=(a=r==null?void 0:r.internalLink)==null?void 0:a.toLowerCase())!=null&&u.includes("home")?"/":`/${r.internalLink}`:r!=null&&r.externalLink&&(r==null?void 0:r.type)==="linkExternal"&&(p=r==null?void 0:r.externalLink)!=null?p:"/"},o=({className:r,ariaLabel:a,style:u={},children:p,link:e,target:n})=>{var c,s;let L="inline-block py-2 px-6 rounded-l-xl rounded-t-xl bg-primary hover:bg-primary-foreground text-gray-50 font-bold leading-loose outline-none transition duration-200";if(!(e!=null&&e.internalLink)&&!(e!=null&&e.externalLink))return y("a",{className:r!=null?r:L,"aria-label":a,target:n,href:"/page-not-found",children:p});if(((e==null?void 0:e.type)==="linkInternal"||e.linkType==="linkInternal")&&((c=e==null?void 0:e.internalLink)==null?void 0:c.toLowerCase())==="home")return y(f,{href:(e==null?void 0:e.referenceType)==="projects"?"/projects":"/","aria-label":a,className:r!=null?r:L,target:n,children:p});if((e==null?void 0:e.type)==="linkInternal"||(e==null?void 0:e.linkType)==="linkInternal"){let t="";switch(e==null?void 0:e.referenceType){case"projects":t=`/projects/${e==null?void 0:e.internalLink}`;break;case"commercial":t=`/projects/commercial/${e==null?void 0:e.internalLink}`;break;case"residential":t=`/projects/residential/${e==null?void 0:e.internalLink}`;break;case"landscape":t=`/projects/landscape/${e==null?void 0:e.internalLink}`;break;case"public":t=`/projects/public/${e==null?void 0:e.internalLink}`;break;case"teaching":t=`/projects/teaching/${e==null?void 0:e.internalLink}`;break;case"designInMotion":t=`/projects/future-projects/${e==null?void 0:e.internalLink}`;break;case"renovation":t=`/projects/residential/renovation/${e==null?void 0:e.internalLink}`;break;case"newConstruction":t=`/projects/residential/new-construction/${e==null?void 0:e.internalLink}`;break;case"ourTeam":t=`/our-team/${e==null?void 0:e.internalLink}`;break;case"recognition":t=`/recognition/${e==null?void 0:e.internalLink}`;break;default:t=`/${e==null?void 0:e.internalLink}`}return y(f,{href:t,"aria-label":a,className:r!=null?r:L,target:n,children:p})}else return(e==null?void 0:e.type)==="linkExternal"||(e==null?void 0:e.linkType)==="linkExternal"?y("a",{"aria-label":a,className:r!=null?r:L,href:(s=e==null?void 0:e.externalLink)!=null?s:"",target:n,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":void 0,children:p}):y(f,{href:"/","aria-label":a,className:r!=null?r:L,target:n,children:p})};export{b as a,o as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-S35O64PB.mjs";import{Button as m}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as c}from"@stackshift-ui/heading";import{Image as p}from"@stackshift-ui/image";import{Section as f}from"@stackshift-ui/section";import{jsx as t,jsxs as i}from"react/jsx-runtime";function u({title:e,images:o,button:l}){return t(f,{className:"relative pt-20 pb-12 overflow-hidden bg-background lg:pb-80",children:i(d,{maxWidth:1280,children:[t(g,{title:e,button:l}),o&&o.length>0&&t(h,{images:o}),t(x,{images:o})]})})}function g({title:e,button:o}){return i(d,{maxWidth:448,className:"text-center",children:[e&&t(c,{weight:"bold",className:"mb-8 text-4xl lg:text-5xl",children:e}),(o==null?void 0:o.label)&&i(m,{variant:"link","aria-label":o.label,asChild:!0,children:[t(a,{link:o,ariaLabel:o.label,children:o.label}),o.label]})]})}function h({images:e}){return e?t("div",{className:"relative hidden lg:block",children:e.map((o,l)=>t(b,{image:o,alt:o==null?void 0:o.alt,index:l},l))}):null}function b({image:e,alt:o,index:l}){var n;return t("div",{className:"absolute flex items-center justify-center w-24 h-24 overflow-hidden rounded-full bg-gray-50",style:(n=[{top:"-120px",left:"-10px"},{top:"0",left:"0",marginTop:"20px"},{bottom:"-250px",left:"20%"},{top:"20px",right:"20%"},{bottom:"-250px",right:"0"},{top:"-150px",right:"0"}][l])!=null?n:{},children:t(p,{className:"object-scale-down w-16 h-16",src:`${e==null?void 0:e.image}`,sizes:"100vw",width:64,height:64,alt:o!=null?o:`logoCloud-image-${l+1}`})})}function x({images:e}){return e?t(s,{wrap:!0,justify:"center",className:"mt-16 lg:hidden",children:e&&e.map((o,l)=>{var r;return t(s,{align:"center",justify:"center",className:"w-24 h-24 mx-4 mb-8 rounded-full bg-gray-50",children:t(p,{className:"object-scale-down w-16 h-16",src:`${o==null?void 0:o.image}`,sizes:"100vw",width:64,height:64,alt:(r=o==null?void 0:o.alt)!=null?r:`logoCloud-image-${l}`})},l)})}):null}export{u as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-S35O64PB.mjs";export{b as ConditionalLink,a as logoLink};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var ue=Object.create;var y=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var fe=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>{for(var o in t)y(e,o,{get:t[o],enumerable:!0})},B=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of fe(t))!de.call(e,r)&&r!==o&&y(e,r,{get:()=>t[r],enumerable:!(n=ce(t,r))||n.enumerable});return e};var E=(e,t,o)=>(o=e!=null?ue(le(e)):{},B(t||!e||!e.__esModule?y(o,"default",{value:e,enumerable:!0}):o,e)),me=e=>B(y({},"__esModule",{value:!0}),e);var G={};b(G,{LogoCloud_A:()=>C,default:()=>C});function C({title:e,images:t}){return(0,i.jsx)(D.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(V.Container,{maxWidth:1280,children:[(0,i.jsx)(xe,{title:e}),(0,i.jsx)(w.Flex,{wrap:!0,justify:"center",align:"center",gap:3,children:(0,i.jsx)(be,{images:t})})]})})}function xe({title:e}){return e?(0,i.jsx)(M.Heading,{className:"mb-12 text-center",fontSize:"2xl",children:e}):null}function be({images:e}){return e?(0,i.jsx)(q.default.Fragment,{children:e==null?void 0:e.map((t,o)=>{var n;return(0,i.jsx)("div",{children:t!=null&&t.image?(0,i.jsx)(w.Flex,{align:"center",justify:"center",className:"w-[192px] w-[192px] rounded-global bg-gray-50",children:(0,i.jsx)(A.Image,{className:"object-scale-down",src:`${t==null?void 0:t.image}`,sizes:"192px",width:192,height:192,alt:(n=t==null?void 0:t.alt)!=null?n:`logoCloud-image${o}`})}):null},o)})}):null}var V,w,M,A,D,q,i,v=x(()=>{"use strict";V=require("@stackshift-ui/container"),w=require("@stackshift-ui/flex"),M=require("@stackshift-ui/heading"),A=require("@stackshift-ui/image"),D=require("@stackshift-ui/section"),q=E(require("react")),i=require("react/jsx-runtime")});var X={};b(X,{LogoCloud_B:()=>$,default:()=>$});function $({title:e,text:t,images:o}){return(0,i.jsx)(D.Section,{className:"py-20 bg-background",children:(0,i.jsx)(I.Container,{maxWidth:1280,children:(0,i.jsxs)(w.Flex,{wrap:!0,align:"center",justify:"between",children:[(0,i.jsx)(Le,{title:e,text:t}),(0,i.jsx)(w.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:(0,i.jsx)(ye,{images:o})})]})})})}function Le({title:e,text:t}){return(0,i.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,i.jsxs)(I.Container,{maxWidth:448,children:[e&&(0,i.jsx)(M.Heading,{weight:"bold",className:"mb-4",children:e}),t&&(0,i.jsx)(Q.Text,{muted:!0,className:"leading-loose",children:t})]})})}function ye({images:e}){return e?(0,i.jsx)(U.default.Fragment,{children:e==null?void 0:e.map((t,o)=>{var n;return(0,i.jsx)("div",{className:"w-full px-2 mb-4 sm:w-1/2 md:w-1/3",children:(t==null?void 0:t.image)&&(0,i.jsx)("div",{children:(0,i.jsx)(w.Flex,{align:"center",justify:"center",className:"mx-auto w-[192px] w-[192px] rounded-global bg-gray-50",children:(0,i.jsx)(A.Image,{className:"object-scale-down",src:`${t==null?void 0:t.image}`,sizes:"192px",width:192,height:192,alt:(n=t==null?void 0:t.alt)!=null?n:`logoCloud-image${o}`})})})},o)})}):null}var I,w,M,A,D,Q,U,i,j=x(()=>{"use strict";I=require("@stackshift-ui/container"),Q=require("@stackshift-ui/text"),U=E(require("react"))});var g,i,Y,Z=x(()=>{"use strict";g=require("@stackshift-ui/link"),Y=({className:e,ariaLabel:t,style:o={},children:n,link:r,target:u})=>{var d,m;let c="inline-block py-2 px-6 rounded-i-xl rounded-t-xl bg-primary hover:bg-primary-foreground text-gray-50 font-bold leading-loose outline-none transition duration-200";if(!(r!=null&&r.internalLink)&&!(r!=null&&r.externalLink))return(0,i.jsx)("a",{className:e!=null?e:c,"aria-label":t,target:u,href:"/page-not-found",children:n});if(((r==null?void 0:r.type)==="linkInternal"||r.linkType==="linkInternal")&&((d=r==null?void 0:r.internalLink)==null?void 0:d.toLowerCase())==="home")return(0,i.jsx)(g.Link,{href:(r==null?void 0:r.referenceType)==="projects"?"/projects":"/","aria-label":t,className:e!=null?e:c,target:u,children:n});if((r==null?void 0:r.type)==="linkInternal"||(r==null?void 0:r.linkType)==="linkInternal"){let s="";switch(r==null?void 0:r.referenceType){case"projects":s=`/projects/${r==null?void 0:r.internalLink}`;break;case"commercial":s=`/projects/commercial/${r==null?void 0:r.internalLink}`;break;case"residential":s=`/projects/residential/${r==null?void 0:r.internalLink}`;break;case"landscape":s=`/projects/landscape/${r==null?void 0:r.internalLink}`;break;case"public":s=`/projects/public/${r==null?void 0:r.internalLink}`;break;case"teaching":s=`/projects/teaching/${r==null?void 0:r.internalLink}`;break;case"designInMotion":s=`/projects/future-projects/${r==null?void 0:r.internalLink}`;break;case"renovation":s=`/projects/residential/renovation/${r==null?void 0:r.internalLink}`;break;case"newConstruction":s=`/projects/residential/new-construction/${r==null?void 0:r.internalLink}`;break;case"ourTeam":s=`/our-team/${r==null?void 0:r.internalLink}`;break;case"recognition":s=`/recognition/${r==null?void 0:r.internalLink}`;break;default:s=`/${r==null?void 0:r.internalLink}`}return(0,i.jsx)(g.Link,{href:s,"aria-label":t,className:e!=null?e:c,target:u,children:n})}else return(r==null?void 0:r.type)==="linkExternal"||(r==null?void 0:r.linkType)==="linkExternal"?(0,i.jsx)("a",{"aria-label":t,className:e!=null?e:c,href:(m=r==null?void 0:r.externalLink)!=null?m:"",target:u,rel:(r==null?void 0:r.linkTarget)==="_blank"?"noopener noreferrer":void 0,children:n}):(0,i.jsx)(g.Link,{href:"/","aria-label":t,className:e!=null?e:c,target:u,children:n})}});var re={};b(re,{LogoCloud_C:()=>P,default:()=>P});function P({title:e,images:t,button:o}){return(0,a.jsx)(D.Section,{className:"relative pt-20 pb-12 overflow-hidden bg-background lg:pb-80",children:(0,a.jsxs)(T.Container,{maxWidth:1280,children:[(0,a.jsx)(he,{title:e,button:o}),t&&t.length>0&&(0,a.jsx)(ge,{images:t}),(0,a.jsx)(Ce,{images:t})]})})}function he({title:e,button:t}){return(0,a.jsxs)(T.Container,{maxWidth:448,className:"text-center",children:[e&&(0,a.jsx)(M.Heading,{weight:"bold",className:"mb-8 text-4xl lg:text-5xl",children:e}),(t==null?void 0:t.label)&&(0,a.jsxs)(k.Button,{variant:"link","aria-label":t.label,asChild:!0,children:[(0,a.jsx)(Y,{link:t,ariaLabel:t.label,children:t.label}),t.label]})]})}function ge({images:e}){return e?(0,a.jsx)("div",{className:"relative hidden lg:block",children:e.map((t,o)=>(0,a.jsx)(we,{image:t,alt:t==null?void 0:t.alt,index:o},o))}):null}function we({image:e,alt:t,index:o}){var r;return(0,a.jsx)("div",{className:"absolute flex items-center justify-center w-24 w-24 overflow-hidden rounded-full bg-gray-50",style:(r=[{top:"-120px",left:"-10px"},{top:"0",left:"0",marginTop:"20px"},{bottom:"-250px",left:"20%"},{top:"20px",right:"20%"},{bottom:"-250px",right:"0"},{top:"-150px",right:"0"}][o])!=null?r:{},children:(0,a.jsx)(A.Image,{className:"object-scale-down w-16 w-16",src:`${e==null?void 0:e.image}`,sizes:"100vw",width:64,height:64,alt:t!=null?t:`logoCloud-image-${o+1}`})})}function Ce({images:e}){return e?(0,a.jsx)(w.Flex,{wrap:!0,justify:"center",className:"mt-16 lg:hidden",children:e&&e.map((t,o)=>{var n;return(0,a.jsx)(w.Flex,{align:"center",justify:"center",className:"w-24 w-24 mx-4 mb-8 rounded-full bg-gray-50",children:(0,a.jsx)(A.Image,{className:"object-scale-down w-16 w-16",src:`${t==null?void 0:t.image}`,sizes:"100vw",width:64,height:64,alt:(n=t==null?void 0:t.alt)!=null?n:`logoCloud-image-${o}`})},o)})}):null}var k,T,w,M,A,D,a,R=x(()=>{"use strict";k=require("@stackshift-ui/button"),T=require("@stackshift-ui/container");Z();a=require("react/jsx-runtime")});var pe={};b(pe,{LogoCloud_D:()=>N,default:()=>N});function N({images:e}){return(0,i.jsx)(D.Section,{className:"py-20 bg-background",children:(0,i.jsx)(oe.Container,{maxWidth:1280,children:(0,i.jsx)(w.Flex,{wrap:!0,justify:"center",align:"center",children:e&&(e==null?void 0:e.map((t,o)=>(0,i.jsx)(ve,{image:t})))})})})}function ve({image:e}){var t;return e?(0,i.jsx)("div",{className:"w-full px-2 mb-4 md:w-1/3 lg:mr-10 lg:w-1/6 xl:mr-0",children:(e==null?void 0:e.image)&&(0,i.jsx)(w.Flex,{align:"center",justify:"center",className:"mx-auto w-[192px] w-[192px] rounded-global bg-gray-50",children:(0,i.jsx)(A.Image,{className:"object-scale-down w-full w-full",src:`${e==null?void 0:e.image}`,sizes:"192px",width:192,height:192,alt:(t=e==null?void 0:e.alt)!=null?t:"logoCloud-image"})})}):null}var oe,w,A,D,i,z=x(()=>{"use strict";oe=require("@stackshift-ui/container")});var je={};b(je,{LogoCloud:()=>se,LogoCloud_A:()=>C,LogoCloud_B:()=>$,LogoCloud_C:()=>P,LogoCloud_D:()=>N});module.exports=me(je);var L=require("react"),Ie={variant_a:(0,L.lazy)(()=>Promise.resolve().then(()=>(v(),G))),variant_b:(0,L.lazy)(()=>Promise.resolve().then(()=>(j(),X))),variant_c:(0,L.lazy)(()=>Promise.resolve().then(()=>(R(),re))),variant_d:(0,L.lazy)(()=>Promise.resolve().then(()=>(z(),pe)))},$e="LogoCloud",se=({data:e})=>{var r,u,c,d,m,s,H,W;let t=e==null?void 0:e.variant,o=t&&Ie[t],n={title:(u=(r=e==null?void 0:e.variants)==null?void 0:r.title)!=null?u:void 0,images:(d=(c=e==null?void 0:e.variants)==null?void 0:c.images)!=null?d:void 0,text:(s=(m=e==null?void 0:e.variants)==null?void 0:m.plainText)!=null?s:void 0,button:(W=(H=e==null?void 0:e.variants)==null?void 0:H.primaryButton)!=null?W:void 0};return o?(0,i.jsx)(o,{...n}):null};se.displayName=$e;v();j();R();z();0&&(module.exports={LogoCloud,LogoCloud_A,LogoCloud_B,LogoCloud_C,LogoCloud_D});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a as f}from"./chunk-
|
|
2
|
+
"use strict";import{a as f}from"./chunk-CZK3LJZW.mjs";import{a as o}from"./chunk-O6AXZYU7.mjs";import{a as r}from"./chunk-LMWC2QH6.mjs";import{a as e}from"./chunk-XXOTP3PJ.mjs";import"./chunk-S35O64PB.mjs";import{a as t}from"./chunk-J6G7MDDQ.mjs";export{f as LogoCloud,o as LogoCloud_A,r as LogoCloud_B,e as LogoCloud_C,t as LogoCloud_D};
|
package/dist/logo-cloud.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ue=Object.create;var y=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var le=Object.getOwnPropertyNames;var fe=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>{for(var o in t)y(e,o,{get:t[o],enumerable:!0})},S=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of le(t))!de.call(e,r)&&r!==o&&y(e,r,{get:()=>t[r],enumerable:!(n=ce(t,r))||n.enumerable});return e};var P=(e,t,o)=>(o=e!=null?ue(fe(e)):{},S(t||!e||!e.__esModule?y(o,"default",{value:e,enumerable:!0}):o,e)),me=e=>S(y({},"__esModule",{value:!0}),e);var B={};b(B,{LogoCloud_A:()=>W,default:()=>W});function W({title:e,images:t}){return(0,i.jsx)(z.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(R.Container,{maxWidth:1280,children:[(0,i.jsx)(xe,{title:e}),(0,i.jsx)(w.Flex,{wrap:!0,justify:"center",align:"center",gap:3,children:(0,i.jsx)(be,{images:t})})]})})}function xe({title:e}){return e?(0,i.jsx)(_.Heading,{className:"mb-12 text-center",fontSize:"2xl",children:e}):null}function be({images:e}){return e?(0,i.jsx)(H.default.Fragment,{children:e==null?void 0:e.map((t,o)=>{var n;return(0,i.jsx)("div",{children:t!=null&&t.image?(0,i.jsx)(w.Flex,{align:"center",justify:"center",className:"w-[192px] w-[192px] rounded-global bg-gray-50",children:(0,i.jsx)(N.Image,{className:"object-scale-down",src:`${t==null?void 0:t.image}`,sizes:"192px",width:192,height:192,alt:(n=t==null?void 0:t.alt)!=null?n:`logoCloud-image${o}`})}):null},o)})}):null}var R,w,_,N,z,H,i,E=x(()=>{"use strict";R=require("@stackshift-ui/container"),w=require("@stackshift-ui/flex"),_=require("@stackshift-ui/heading"),N=require("@stackshift-ui/image"),z=require("@stackshift-ui/section"),H=P(require("react")),i=require("react/jsx-runtime")});var J={};b(J,{LogoCloud_B:()=>G,default:()=>G});function G({title:e,text:t,images:o}){return(0,i.jsx)(z.Section,{className:"py-20 bg-background",children:(0,i.jsx)(C.Container,{maxWidth:1280,children:(0,i.jsxs)(w.Flex,{wrap:!0,align:"center",justify:"between",children:[(0,i.jsx)(Le,{title:e,text:t}),(0,i.jsx)(w.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:(0,i.jsx)(ye,{images:o})})]})})})}function Le({title:e,text:t}){return(0,i.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,i.jsxs)(C.Container,{maxWidth:448,children:[e&&(0,i.jsx)(_.Heading,{weight:"bold",className:"mb-4",children:e}),t&&(0,i.jsx)(D.Text,{muted:!0,className:"leading-loose",children:t})]})})}function ye({images:e}){return e?(0,i.jsx)(q.default.Fragment,{children:e==null?void 0:e.map((t,o)=>{var n;return(0,i.jsx)("div",{className:"w-full px-2 mb-4 sm:w-1/2 md:w-1/3",children:(t==null?void 0:t.image)&&(0,i.jsx)("div",{children:(0,i.jsx)(w.Flex,{align:"center",justify:"center",className:"mx-auto w-[192px] w-[192px] rounded-global bg-gray-50",children:(0,i.jsx)(N.Image,{className:"object-scale-down",src:`${t==null?void 0:t.image}`,sizes:"192px",width:192,height:192,alt:(n=t==null?void 0:t.alt)!=null?n:`logoCloud-image${o}`})})})},o)})}):null}var C,w,_,N,z,D,q,i,K=x(()=>{"use strict";C=require("@stackshift-ui/container"),D=require("@stackshift-ui/text"),q=P(require("react"))});var g,i,O,Q=x(()=>{"use strict";g=require("@stackshift-ui/link"),O=({className:e,ariaLabel:t,style:o={},children:n,link:r,target:u})=>{var d,m;let c="inline-block py-2 px-6 rounded-i-xl rounded-t-xl bg-primary hover:bg-primary-foreground text-gray-50 font-bold leading-loose outline-none transition duration-200";if(!(r!=null&&r.internalLink)&&!(r!=null&&r.externalLink))return(0,i.jsx)("a",{className:e!=null?e:c,"aria-label":t,target:u,href:"/page-not-found",children:n});if(((r==null?void 0:r.type)==="linkInternal"||r.linkType==="linkInternal")&&((d=r==null?void 0:r.internalLink)==null?void 0:d.toLowerCase())==="home")return(0,i.jsx)(g.Link,{href:(r==null?void 0:r.referenceType)==="projects"?"/projects":"/","aria-label":t,className:e!=null?e:c,target:u,children:n});if((r==null?void 0:r.type)==="linkInternal"||(r==null?void 0:r.linkType)==="linkInternal"){let p="";switch(r==null?void 0:r.referenceType){case"projects":p=`/projects/${r==null?void 0:r.internalLink}`;break;case"commercial":p=`/projects/commercial/${r==null?void 0:r.internalLink}`;break;case"residential":p=`/projects/residential/${r==null?void 0:r.internalLink}`;break;case"landscape":p=`/projects/landscape/${r==null?void 0:r.internalLink}`;break;case"public":p=`/projects/public/${r==null?void 0:r.internalLink}`;break;case"teaching":p=`/projects/teaching/${r==null?void 0:r.internalLink}`;break;case"designInMotion":p=`/projects/future-projects/${r==null?void 0:r.internalLink}`;break;case"renovation":p=`/projects/residential/renovation/${r==null?void 0:r.internalLink}`;break;case"newConstruction":p=`/projects/residential/new-construction/${r==null?void 0:r.internalLink}`;break;case"ourTeam":p=`/our-team/${r==null?void 0:r.internalLink}`;break;case"recognition":p=`/recognition/${r==null?void 0:r.internalLink}`;break;default:p=`/${r==null?void 0:r.internalLink}`}return(0,i.jsx)(g.Link,{href:p,"aria-label":t,className:e!=null?e:c,target:u,children:n})}else return(r==null?void 0:r.type)==="linkExternal"||(r==null?void 0:r.linkType)==="linkExternal"?(0,i.jsx)("a",{"aria-label":t,className:e!=null?e:c,href:(m=r==null?void 0:r.externalLink)!=null?m:"",target:u,rel:(r==null?void 0:r.linkTarget)==="_blank"?"noopener noreferrer":void 0,children:n}):(0,i.jsx)(g.Link,{href:"/","aria-label":t,className:e!=null?e:c,target:u,children:n})}});var k={};b(k,{LogoCloud_C:()=>Z,default:()=>Z});function Z({title:e,images:t,button:o}){return(0,a.jsx)(z.Section,{className:"relative pt-20 pb-12 overflow-hidden bg-background lg:pb-80",children:(0,a.jsxs)(I.Container,{maxWidth:1280,children:[(0,a.jsx)(he,{title:e,button:o}),t&&t.length>0&&(0,a.jsx)(ge,{images:t}),(0,a.jsx)(Ce,{images:t})]})})}function he({title:e,button:t}){return(0,a.jsxs)(I.Container,{maxWidth:448,className:"text-center",children:[e&&(0,a.jsx)(_.Heading,{weight:"bold",className:"mb-8 text-4xl lg:text-5xl",children:e}),(t==null?void 0:t.label)&&(0,a.jsxs)(U.Button,{variant:"link","aria-label":t.label,asChild:!0,children:[(0,a.jsx)(O,{link:t,ariaLabel:t.label,children:t.label}),t.label]})]})}function ge({images:e}){return e?(0,a.jsx)("div",{className:"relative hidden lg:block",children:e.map((t,o)=>(0,a.jsx)(we,{image:t,alt:t==null?void 0:t.alt,index:o},o))}):null}function we({image:e,alt:t,index:o}){var r;return(0,a.jsx)("div",{className:"absolute flex items-center justify-center w-24 w-24 overflow-hidden rounded-full bg-gray-50",style:(r=[{top:"-120px",left:"-10px"},{top:"0",left:"0",marginTop:"20px"},{bottom:"-250px",left:"20%"},{top:"20px",right:"20%"},{bottom:"-250px",right:"0"},{top:"-150px",right:"0"}][o])!=null?r:{},children:(0,a.jsx)($.Image,{className:"object-scale-down w-16 w-16",src:`${e==null?void 0:e.image}`,sizes:"100vw",width:64,height:64,alt:t!=null?t:`logoCloud-image-${o+1}`})})}function Ce({images:e}){return e?(0,a.jsx)(w.Flex,{wrap:!0,justify:"center",className:"mt-16 lg:hidden",children:e&&e.map((t,o)=>{var n;return(0,a.jsx)(w.Flex,{align:"center",justify:"center",className:"w-24 w-24 mx-4 mb-8 rounded-full bg-gray-50",children:(0,a.jsx)($.Image,{className:"object-scale-down w-16 w-16",src:`${t==null?void 0:t.image}`,sizes:"100vw",width:64,height:64,alt:(n=t==null?void 0:t.alt)!=null?n:`logoCloud-image-${o}`})},o)})}):null}var U,I,w,_,$,z,a,ee=x(()=>{"use strict";U=require("@stackshift-ui/button"),I=require("@stackshift-ui/container");Q();a=require("react/jsx-runtime")});var ae={};b(ae,{LogoCloud_D:()=>ne,default:()=>ne});function ne({images:e}){return(0,i.jsx)(z.Section,{className:"py-20 bg-background",children:(0,i.jsx)(te.Container,{maxWidth:1280,children:(0,i.jsx)(w.Flex,{wrap:!0,justify:"center",align:"center",children:e&&(e==null?void 0:e.map((t,o)=>(0,i.jsx)(ve,{image:t})))})})})}function ve({image:e}){var t;return e?(0,i.jsx)("div",{className:"w-full px-2 mb-4 md:w-1/3 lg:mr-10 lg:w-1/6 xl:mr-0",children:(e==null?void 0:e.image)&&(0,i.jsx)(w.Flex,{align:"center",justify:"center",className:"mx-auto w-[192px] w-[192px] rounded-global bg-gray-50",children:(0,i.jsx)(N.Image,{className:"object-scale-down w-full w-full",src:`${e==null?void 0:e.image}`,sizes:"192px",width:192,height:192,alt:(t=e==null?void 0:e.alt)!=null?t:"logoCloud-image"})})}):null}var te,w,N,z,i,se=x(()=>{"use strict";te=require("@stackshift-ui/container")});var je={};b(je,{LogoCloud:()=>pe});module.exports=me(je);var L=require("react"),Ie={variant_a:(0,L.lazy)(()=>Promise.resolve().then(()=>(E(),B))),variant_b:(0,L.lazy)(()=>Promise.resolve().then(()=>(K(),J))),variant_c:(0,L.lazy)(()=>Promise.resolve().then(()=>(ee(),k))),variant_d:(0,L.lazy)(()=>Promise.resolve().then(()=>(se(),ae)))},$e="LogoCloud",pe=({data:e})=>{var r,u,c,d,m,p,F,T;let t=e==null?void 0:e.variant,o=t&&Ie[t],n={title:(u=(r=e==null?void 0:e.variants)==null?void 0:r.title)!=null?u:void 0,images:(d=(c=e==null?void 0:e.variants)==null?void 0:c.images)!=null?d:void 0,text:(p=(m=e==null?void 0:e.variants)==null?void 0:m.plainText)!=null?p:void 0,button:(T=(F=e==null?void 0:e.variants)==null?void 0:F.primaryButton)!=null?T:void 0};return o?(0,i.jsx)(o,{...n}):null};pe.displayName=$e;0&&(module.exports={LogoCloud});
|
package/dist/logo-cloud.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-CZK3LJZW.mjs";export{a as LogoCloud};
|
package/dist/logo-cloud_c.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var T=(r,t)=>{for(var a in t)f(r,a,{get:t[a],enumerable:!0})},g=(r,t,a,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of v(t))!I.call(r,e)&&e!==a&&f(r,e,{get:()=>t[e],enumerable:!(p=j(t,e))||p.enumerable});return r};var E=r=>g(f({},"__esModule",{value:!0}),r);var z={};T(z,{LogoCloud_C:()=>$,default:()=>$});module.exports=E(z);var m=require("@stackshift-ui/button"),i=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),C=require("@stackshift-ui/heading"),b=require("@stackshift-ui/image"),w=require("@stackshift-ui/section");var c=require("@stackshift-ui/link"),s=require("react/jsx-runtime");var x=({className:r,ariaLabel:t,style:a={},children:p,link:e,target:d})=>{var y,h;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,s.jsx)("a",{className:r!=null?r:u,"aria-label":t,target:d,href:"/page-not-found",children:p});if(((e==null?void 0:e.type)==="linkInternal"||e.linkType==="linkInternal")&&((y=e==null?void 0:e.internalLink)==null?void 0:y.toLowerCase())==="home")return(0,s.jsx)(c.Link,{href:(e==null?void 0:e.referenceType)==="projects"?"/projects":"/","aria-label":t,className:r!=null?r:u,target:d,children:p});if((e==null?void 0:e.type)==="linkInternal"||(e==null?void 0:e.linkType)==="linkInternal"){let n="";switch(e==null?void 0:e.referenceType){case"projects":n=`/projects/${e==null?void 0:e.internalLink}`;break;case"commercial":n=`/projects/commercial/${e==null?void 0:e.internalLink}`;break;case"residential":n=`/projects/residential/${e==null?void 0:e.internalLink}`;break;case"landscape":n=`/projects/landscape/${e==null?void 0:e.internalLink}`;break;case"public":n=`/projects/public/${e==null?void 0:e.internalLink}`;break;case"teaching":n=`/projects/teaching/${e==null?void 0:e.internalLink}`;break;case"designInMotion":n=`/projects/future-projects/${e==null?void 0:e.internalLink}`;break;case"renovation":n=`/projects/residential/renovation/${e==null?void 0:e.internalLink}`;break;case"newConstruction":n=`/projects/residential/new-construction/${e==null?void 0:e.internalLink}`;break;case"ourTeam":n=`/our-team/${e==null?void 0:e.internalLink}`;break;case"recognition":n=`/recognition/${e==null?void 0:e.internalLink}`;break;default:n=`/${e==null?void 0:e.internalLink}`}return(0,s.jsx)(c.Link,{href:n,"aria-label":t,className:r!=null?r:u,target:d,children:p})}else return(e==null?void 0:e.type)==="linkExternal"||(e==null?void 0:e.linkType)==="linkExternal"?(0,s.jsx)("a",{"aria-label":t,className:r!=null?r:u,href:(h=e==null?void 0:e.externalLink)!=null?h:"",target:d,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":void 0,children:p}):(0,s.jsx)(c.Link,{href:"/","aria-label":t,className:r!=null?r:u,target:d,children:p})};function $({title:r,images:t,button:a}){return(0,s.jsx)(w.Section,{className:"relative pt-20 pb-12 overflow-hidden bg-background lg:pb-80",children:(0,s.jsxs)(i.Container,{maxWidth:1280,children:[(0,s.jsx)(F,{title:r,button:a}),t&&t.length>0&&(0,s.jsx)(H,{images:t}),(0,s.jsx)(S,{images:t})]})})}function F({title:r,button:t}){return(0,s.jsxs)(i.Container,{maxWidth:448,className:"text-center",children:[r&&(0,s.jsx)(C.Heading,{weight:"bold",className:"mb-8 text-4xl lg:text-5xl",children:r}),(t==null?void 0:t.label)&&(0,s.jsxs)(m.Button,{variant:"link","aria-label":t.label,asChild:!0,children:[(0,s.jsx)(x,{link:t,ariaLabel:t.label,children:t.label}),t.label]})]})}function H({images:r}){return r?(0,s.jsx)("div",{className:"relative hidden lg:block",children:r.map((t,a)=>(0,s.jsx)(P,{image:t,alt:t==null?void 0:t.alt,index:a},a))}):null}function P({image:r,alt:t,index:a}){var e;return(0,s.jsx)("div",{className:"absolute flex items-center justify-center w-24 h-24 overflow-hidden rounded-full bg-gray-50",style:(e=[{top:"-120px",left:"-10px"},{top:"0",left:"0",marginTop:"20px"},{bottom:"-250px",left:"20%"},{top:"20px",right:"20%"},{bottom:"-250px",right:"0"},{top:"-150px",right:"0"}][a])!=null?e:{},children:(0,s.jsx)(b.Image,{className:"object-scale-down w-16 h-16",src:`${r==null?void 0:r.image}`,sizes:"100vw",width:64,height:64,alt:t!=null?t:`logoCloud-image-${a+1}`})})}function S({images:r}){return r?(0,s.jsx)(L.Flex,{wrap:!0,justify:"center",className:"mt-16 lg:hidden",children:r&&r.map((t,a)=>{var p;return(0,s.jsx)(L.Flex,{align:"center",justify:"center",className:"w-24 h-24 mx-4 mb-8 rounded-full bg-gray-50",children:(0,s.jsx)(b.Image,{className:"object-scale-down w-16 h-16",src:`${t==null?void 0:t.image}`,sizes:"100vw",width:64,height:64,alt:(p=t==null?void 0:t.alt)!=null?p:`logoCloud-image-${a}`})},a)})}):null}0&&(module.exports={LogoCloud_C});
|
package/dist/logo-cloud_c.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-XXOTP3PJ.mjs";import"./chunk-S35O64PB.mjs";export{a as LogoCloud_C,a as default};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,71 @@
|
|
|
1
|
+
import { PortableTextComponents } from "@portabletext/react";
|
|
1
2
|
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
3
|
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
3
4
|
export interface MainImage {
|
|
4
5
|
image: string;
|
|
5
6
|
alt?: string;
|
|
6
7
|
}
|
|
8
|
+
export interface MegaMenu {
|
|
9
|
+
_type: string;
|
|
10
|
+
showcaseLink?: ShowcaseLink[];
|
|
11
|
+
links?: MegaMenuLink[];
|
|
12
|
+
_key: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
groupOfLinks?: GroupOfLink[];
|
|
15
|
+
label?: string;
|
|
16
|
+
linkTarget?: string;
|
|
17
|
+
linkType?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
linkExternal?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Logo extends ConditionalLink {
|
|
22
|
+
alt?: string;
|
|
23
|
+
linkTarget?: string;
|
|
24
|
+
image?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface Logos {
|
|
27
|
+
logo: Logo[];
|
|
28
|
+
}
|
|
29
|
+
export interface GroupOfLink {
|
|
30
|
+
_type: string;
|
|
31
|
+
links: GroupOfLinkRoot[];
|
|
32
|
+
_key: string;
|
|
33
|
+
title: string;
|
|
34
|
+
primaryButton: LabeledRouteWithKey;
|
|
35
|
+
}
|
|
36
|
+
export interface GroupOfLinkRoot {
|
|
37
|
+
title: string;
|
|
38
|
+
_type: string;
|
|
39
|
+
label?: string;
|
|
40
|
+
links: LabeledRouteWithKey[];
|
|
41
|
+
_key: string;
|
|
42
|
+
}
|
|
43
|
+
export interface MegaMenu {
|
|
44
|
+
_type: string;
|
|
45
|
+
showcaseLink?: ShowcaseLink[];
|
|
46
|
+
links?: MegaMenuLink[];
|
|
47
|
+
_key: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
groupOfLinks?: GroupOfLink[];
|
|
50
|
+
label?: string;
|
|
51
|
+
linkTarget?: string;
|
|
52
|
+
linkType?: string;
|
|
53
|
+
url?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ShowcaseLink {
|
|
56
|
+
mainImage: MainImage;
|
|
57
|
+
_type: string;
|
|
58
|
+
primaryButton: LabeledRouteWithKey;
|
|
59
|
+
_key: string;
|
|
60
|
+
}
|
|
61
|
+
export interface MegaMenuLink {
|
|
62
|
+
_key: string;
|
|
63
|
+
title: string;
|
|
64
|
+
_type: string;
|
|
65
|
+
links: LabeledRouteWithKey[];
|
|
66
|
+
primaryButton: LabeledRouteWithKey;
|
|
67
|
+
label: string;
|
|
68
|
+
}
|
|
7
69
|
export interface LabeledRoute extends ConditionalLink {
|
|
8
70
|
ariaLabel?: string;
|
|
9
71
|
label?: string;
|
|
@@ -11,6 +73,10 @@ export interface LabeledRoute extends ConditionalLink {
|
|
|
11
73
|
linkType?: string;
|
|
12
74
|
_type?: string;
|
|
13
75
|
linkInternal?: any;
|
|
76
|
+
linkExternal?: any;
|
|
77
|
+
referenceType?: string;
|
|
78
|
+
multipleRoutes?: LabeledRouteWithKey[];
|
|
79
|
+
multipleInnerRoutes?: LabeledRouteWithKey[];
|
|
14
80
|
}
|
|
15
81
|
export interface ConditionalLink {
|
|
16
82
|
type?: string;
|
|
@@ -24,10 +90,15 @@ export interface StatItems {
|
|
|
24
90
|
_key?: string;
|
|
25
91
|
_type?: string;
|
|
26
92
|
}
|
|
27
|
-
export interface Logo
|
|
93
|
+
export interface Logo {
|
|
28
94
|
alt?: string;
|
|
29
95
|
linkTarget?: string;
|
|
30
96
|
image?: string;
|
|
97
|
+
type?: string;
|
|
98
|
+
internalLink?: string;
|
|
99
|
+
externalLink?: string;
|
|
100
|
+
linkExternal?: string;
|
|
101
|
+
linkInternal?: string;
|
|
31
102
|
}
|
|
32
103
|
export interface Images {
|
|
33
104
|
image?: string;
|
|
@@ -54,6 +125,17 @@ export interface SocialLink {
|
|
|
54
125
|
}
|
|
55
126
|
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
56
127
|
_key?: string;
|
|
128
|
+
image?: string;
|
|
129
|
+
alt?: string;
|
|
130
|
+
multipleRoutes?: LabeledRouteWithKey[];
|
|
131
|
+
featuredRoute?: {
|
|
132
|
+
featuredLink: LabeledRoute;
|
|
133
|
+
mainImage: {
|
|
134
|
+
image: string;
|
|
135
|
+
alt: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
routeType?: string;
|
|
57
139
|
}
|
|
58
140
|
export interface ArrayOfImageTitleAndText {
|
|
59
141
|
mainImage?: {
|
|
@@ -166,12 +248,17 @@ export interface Sections extends SanityBody {
|
|
|
166
248
|
export interface Variants {
|
|
167
249
|
template?: Template;
|
|
168
250
|
multipleMenus?: any;
|
|
251
|
+
multipleLinks?: any;
|
|
252
|
+
megaMenu?: MegaMenu[];
|
|
169
253
|
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
170
254
|
logo?: Logo | null;
|
|
255
|
+
logos?: Logos[] | null;
|
|
171
256
|
primaryButton?: LabeledRoute | null;
|
|
172
257
|
secondaryButton?: LabeledRoute | null;
|
|
173
258
|
routes?: LabeledRouteWithKey[] | null;
|
|
174
259
|
menu?: LabeledRouteWithKey[] | null;
|
|
260
|
+
dropdownMenu?: LabeledRouteWithKey[] | null;
|
|
261
|
+
iconLinks?: LabeledRouteWithKey[] | null;
|
|
175
262
|
plans?: Plans[] | null;
|
|
176
263
|
formLinks?: LabeledRouteWithKey[] | null;
|
|
177
264
|
portfolios?: Portfolios[] | null;
|
|
@@ -195,6 +282,7 @@ export interface Variants {
|
|
|
195
282
|
contactEmail?: string | null;
|
|
196
283
|
contactNumber?: string | null;
|
|
197
284
|
socialLinks?: SocialLink[] | null;
|
|
285
|
+
socialMedia?: SocialLink[] | null;
|
|
198
286
|
block?: any;
|
|
199
287
|
heading?: string | null;
|
|
200
288
|
acceptButtonLabel?: string | null;
|
|
@@ -359,4 +447,27 @@ export declare interface Reference {
|
|
|
359
447
|
};
|
|
360
448
|
};
|
|
361
449
|
}
|
|
450
|
+
export type MyPortableTextComponents = PortableTextComponents & {
|
|
451
|
+
code?: ({ value }: {
|
|
452
|
+
value: {
|
|
453
|
+
language?: string;
|
|
454
|
+
code?: string;
|
|
455
|
+
};
|
|
456
|
+
}) => JSX.Element;
|
|
457
|
+
};
|
|
458
|
+
export interface ConditionalLinkTypes {
|
|
459
|
+
className?: string;
|
|
460
|
+
ariaLabel: string;
|
|
461
|
+
style?: any;
|
|
462
|
+
children: string | React.ReactNode;
|
|
463
|
+
link: LabeledRoute | LabeledRouteWithKey | undefined;
|
|
464
|
+
target?: string;
|
|
465
|
+
}
|
|
466
|
+
export interface IconLink {
|
|
467
|
+
_key: string;
|
|
468
|
+
image: string;
|
|
469
|
+
alt?: string;
|
|
470
|
+
linkExternal: string;
|
|
471
|
+
linkTarget?: "_blank" | "_self";
|
|
472
|
+
}
|
|
362
473
|
export {};
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of s(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=a(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/logo-cloud",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.1.0-beta.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,19 +29,21 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.10",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/flex": "
|
|
36
|
+
"@portabletext/react": "^3.1.0",
|
|
37
|
+
"@stackshift-ui/scripts": "6.1.0-beta.0",
|
|
38
|
+
"@stackshift-ui/heading": "7.0.0-beta.1",
|
|
39
|
+
"@stackshift-ui/button": "6.1.0-beta.1",
|
|
40
|
+
"@stackshift-ui/system": "6.1.0-beta.1",
|
|
41
|
+
"@stackshift-ui/image": "6.1.0-beta.1",
|
|
42
|
+
"@stackshift-ui/link": "6.0.12-beta.1",
|
|
43
|
+
"@stackshift-ui/container": "7.0.0-beta.1",
|
|
44
|
+
"@stackshift-ui/flex": "7.0.0-beta.1",
|
|
45
|
+
"@stackshift-ui/text": "7.0.0-beta.1",
|
|
46
|
+
"@stackshift-ui/section": "7.0.0-beta.1"
|
|
45
47
|
},
|
|
46
48
|
"peerDependencies": {
|
|
47
49
|
"@types/react": "16.8 - 19",
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Link } from "@stackshift-ui/link";
|
|
2
|
+
import { ConditionalLinkTypes, Logo } from "../types";
|
|
3
|
+
|
|
4
|
+
// Logo link
|
|
5
|
+
export const logoLink = (logo: Logo) => {
|
|
6
|
+
if (logo?.internalLink && logo?.type === "linkInternal") {
|
|
7
|
+
if (logo?.internalLink?.toLowerCase()?.includes("home")) {
|
|
8
|
+
return "/";
|
|
9
|
+
}
|
|
10
|
+
return `/${logo.internalLink}`;
|
|
11
|
+
} else if (logo?.externalLink && logo?.type === "linkExternal") {
|
|
12
|
+
return logo?.externalLink ?? "/";
|
|
13
|
+
} else {
|
|
14
|
+
return "/";
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const ConditionalLink = ({
|
|
19
|
+
className,
|
|
20
|
+
ariaLabel,
|
|
21
|
+
style = {},
|
|
22
|
+
children,
|
|
23
|
+
link,
|
|
24
|
+
target,
|
|
25
|
+
}: ConditionalLinkTypes) => {
|
|
26
|
+
const defaultStyle =
|
|
27
|
+
"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";
|
|
28
|
+
|
|
29
|
+
if (!link?.internalLink && !link?.externalLink) {
|
|
30
|
+
return (
|
|
31
|
+
<a
|
|
32
|
+
className={className ?? defaultStyle}
|
|
33
|
+
aria-label={ariaLabel}
|
|
34
|
+
//style={style}
|
|
35
|
+
target={target}
|
|
36
|
+
href="/page-not-found">
|
|
37
|
+
{children}
|
|
38
|
+
</a>
|
|
39
|
+
);
|
|
40
|
+
} else if (
|
|
41
|
+
(link?.type === "linkInternal" || link.linkType === "linkInternal") &&
|
|
42
|
+
// link?.internalLink?.toLowerCase()?.includes("home")
|
|
43
|
+
link?.internalLink?.toLowerCase() === "home"
|
|
44
|
+
) {
|
|
45
|
+
return (
|
|
46
|
+
<Link
|
|
47
|
+
href={link?.referenceType === "projects" ? "/projects" : "/"}
|
|
48
|
+
aria-label={ariaLabel}
|
|
49
|
+
className={className ?? defaultStyle}
|
|
50
|
+
//style={style}
|
|
51
|
+
target={target}>
|
|
52
|
+
{children}
|
|
53
|
+
</Link>
|
|
54
|
+
);
|
|
55
|
+
} else if (link?.type === "linkInternal" || link?.linkType === "linkInternal") {
|
|
56
|
+
let hrefPath = "";
|
|
57
|
+
|
|
58
|
+
switch (link?.referenceType) {
|
|
59
|
+
case "projects":
|
|
60
|
+
hrefPath = `/projects/${link?.internalLink}`;
|
|
61
|
+
break;
|
|
62
|
+
case "commercial":
|
|
63
|
+
hrefPath = `/projects/commercial/${link?.internalLink}`;
|
|
64
|
+
break;
|
|
65
|
+
case "residential":
|
|
66
|
+
hrefPath = `/projects/residential/${link?.internalLink}`;
|
|
67
|
+
break;
|
|
68
|
+
case "landscape":
|
|
69
|
+
hrefPath = `/projects/landscape/${link?.internalLink}`;
|
|
70
|
+
break;
|
|
71
|
+
case "public":
|
|
72
|
+
hrefPath = `/projects/public/${link?.internalLink}`;
|
|
73
|
+
break;
|
|
74
|
+
case "teaching":
|
|
75
|
+
hrefPath = `/projects/teaching/${link?.internalLink}`;
|
|
76
|
+
break;
|
|
77
|
+
case "designInMotion":
|
|
78
|
+
hrefPath = `/projects/future-projects/${link?.internalLink}`;
|
|
79
|
+
break;
|
|
80
|
+
case "renovation":
|
|
81
|
+
hrefPath = `/projects/residential/renovation/${link?.internalLink}`;
|
|
82
|
+
break;
|
|
83
|
+
case "newConstruction":
|
|
84
|
+
hrefPath = `/projects/residential/new-construction/${link?.internalLink}`;
|
|
85
|
+
break;
|
|
86
|
+
case "ourTeam":
|
|
87
|
+
hrefPath = `/our-team/${link?.internalLink}`;
|
|
88
|
+
break;
|
|
89
|
+
case "recognition":
|
|
90
|
+
hrefPath = `/recognition/${link?.internalLink}`;
|
|
91
|
+
break;
|
|
92
|
+
|
|
93
|
+
default:
|
|
94
|
+
hrefPath = `/${link?.internalLink}`;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<Link
|
|
99
|
+
href={hrefPath}
|
|
100
|
+
aria-label={ariaLabel}
|
|
101
|
+
className={className ?? defaultStyle}
|
|
102
|
+
//style={style}
|
|
103
|
+
target={target}>
|
|
104
|
+
{children}
|
|
105
|
+
</Link>
|
|
106
|
+
);
|
|
107
|
+
} else if (link?.type === "linkExternal" || link?.linkType === "linkExternal") {
|
|
108
|
+
return (
|
|
109
|
+
<a
|
|
110
|
+
aria-label={ariaLabel}
|
|
111
|
+
className={className ?? defaultStyle}
|
|
112
|
+
//style={style}
|
|
113
|
+
href={link?.externalLink ?? ""}
|
|
114
|
+
target={target}
|
|
115
|
+
rel={link?.linkTarget === "_blank" ? "noopener noreferrer" : undefined}>
|
|
116
|
+
{children}
|
|
117
|
+
</a>
|
|
118
|
+
);
|
|
119
|
+
} else {
|
|
120
|
+
return (
|
|
121
|
+
<Link
|
|
122
|
+
href="/"
|
|
123
|
+
aria-label={ariaLabel}
|
|
124
|
+
className={className ?? defaultStyle}
|
|
125
|
+
//style={style}
|
|
126
|
+
target={target}>
|
|
127
|
+
{children}
|
|
128
|
+
</Link>
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
};
|
package/src/logo-cloud.test.tsx
CHANGED
|
@@ -7,7 +7,7 @@ describe.concurrent("logo-cloud", () => {
|
|
|
7
7
|
|
|
8
8
|
test.skip("Dummy test - test if renders without errors", ({ expect }) => {
|
|
9
9
|
const clx = "my-class";
|
|
10
|
-
render(<LogoCloud />);
|
|
11
|
-
expect(screen.getByTestId("
|
|
10
|
+
render(<LogoCloud data-testid="logo-cloud" />);
|
|
11
|
+
expect(screen.getByTestId("logo-cloud").classList).toContain(clx);
|
|
12
12
|
});
|
|
13
13
|
});
|
package/src/logo-cloud_c.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { Heading } from "@stackshift-ui/heading";
|
|
|
5
5
|
import { Image } from "@stackshift-ui/image";
|
|
6
6
|
import { Section } from "@stackshift-ui/section";
|
|
7
7
|
import { LogoCloudProps } from ".";
|
|
8
|
+
import { ConditionalLink } from "./helper";
|
|
8
9
|
import { Images, LabeledRoute } from "./types";
|
|
9
10
|
|
|
10
11
|
export default function LogoCloud_C({ title, images, button }: LogoCloudProps) {
|
|
@@ -28,7 +29,10 @@ function LogoCloudHeader({ title, button }: { title?: string; button?: LabeledRo
|
|
|
28
29
|
</Heading>
|
|
29
30
|
)}
|
|
30
31
|
{button?.label && (
|
|
31
|
-
<Button
|
|
32
|
+
<Button variant="link" aria-label={button.label} asChild>
|
|
33
|
+
<ConditionalLink link={button} ariaLabel={button.label}>
|
|
34
|
+
{button.label}
|
|
35
|
+
</ConditionalLink>
|
|
32
36
|
{button.label}
|
|
33
37
|
</Button>
|
|
34
38
|
)}
|
package/src/types.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PortableTextComponents } from "@portabletext/react";
|
|
2
|
+
|
|
1
3
|
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
4
|
|
|
3
5
|
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
@@ -6,6 +8,74 @@ export interface MainImage {
|
|
|
6
8
|
alt?: string;
|
|
7
9
|
}
|
|
8
10
|
|
|
11
|
+
export interface MegaMenu {
|
|
12
|
+
_type: string;
|
|
13
|
+
showcaseLink?: ShowcaseLink[];
|
|
14
|
+
links?: MegaMenuLink[];
|
|
15
|
+
_key: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
groupOfLinks?: GroupOfLink[];
|
|
18
|
+
label?: string;
|
|
19
|
+
linkTarget?: string;
|
|
20
|
+
linkType?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
linkExternal?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Logo extends ConditionalLink {
|
|
26
|
+
alt?: string;
|
|
27
|
+
linkTarget?: string;
|
|
28
|
+
image?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Logos {
|
|
32
|
+
logo: Logo[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface GroupOfLink {
|
|
36
|
+
_type: string;
|
|
37
|
+
links: GroupOfLinkRoot[];
|
|
38
|
+
_key: string;
|
|
39
|
+
title: string;
|
|
40
|
+
primaryButton: LabeledRouteWithKey;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface GroupOfLinkRoot {
|
|
44
|
+
title: string;
|
|
45
|
+
_type: string;
|
|
46
|
+
label?: string;
|
|
47
|
+
links: LabeledRouteWithKey[];
|
|
48
|
+
_key: string;
|
|
49
|
+
}
|
|
50
|
+
export interface MegaMenu {
|
|
51
|
+
_type: string;
|
|
52
|
+
showcaseLink?: ShowcaseLink[];
|
|
53
|
+
links?: MegaMenuLink[];
|
|
54
|
+
_key: string;
|
|
55
|
+
title?: string;
|
|
56
|
+
groupOfLinks?: GroupOfLink[];
|
|
57
|
+
label?: string;
|
|
58
|
+
linkTarget?: string;
|
|
59
|
+
linkType?: string;
|
|
60
|
+
url?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ShowcaseLink {
|
|
64
|
+
mainImage: MainImage;
|
|
65
|
+
_type: string;
|
|
66
|
+
primaryButton: LabeledRouteWithKey;
|
|
67
|
+
_key: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface MegaMenuLink {
|
|
71
|
+
_key: string;
|
|
72
|
+
title: string;
|
|
73
|
+
_type: string;
|
|
74
|
+
links: LabeledRouteWithKey[];
|
|
75
|
+
primaryButton: LabeledRouteWithKey;
|
|
76
|
+
label: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
9
79
|
export interface LabeledRoute extends ConditionalLink {
|
|
10
80
|
ariaLabel?: string;
|
|
11
81
|
label?: string;
|
|
@@ -13,6 +83,10 @@ export interface LabeledRoute extends ConditionalLink {
|
|
|
13
83
|
linkType?: string;
|
|
14
84
|
_type?: string;
|
|
15
85
|
linkInternal?: any;
|
|
86
|
+
linkExternal?: any;
|
|
87
|
+
referenceType?: string;
|
|
88
|
+
multipleRoutes?: LabeledRouteWithKey[];
|
|
89
|
+
multipleInnerRoutes?: LabeledRouteWithKey[];
|
|
16
90
|
}
|
|
17
91
|
export interface ConditionalLink {
|
|
18
92
|
type?: string;
|
|
@@ -28,10 +102,15 @@ export interface StatItems {
|
|
|
28
102
|
_type?: string;
|
|
29
103
|
}
|
|
30
104
|
|
|
31
|
-
export interface Logo
|
|
105
|
+
export interface Logo {
|
|
32
106
|
alt?: string;
|
|
33
107
|
linkTarget?: string;
|
|
34
108
|
image?: string;
|
|
109
|
+
type?: string;
|
|
110
|
+
internalLink?: string;
|
|
111
|
+
externalLink?: string;
|
|
112
|
+
linkExternal?: string;
|
|
113
|
+
linkInternal?: string;
|
|
35
114
|
}
|
|
36
115
|
|
|
37
116
|
export interface Images {
|
|
@@ -62,6 +141,17 @@ export interface SocialLink {
|
|
|
62
141
|
|
|
63
142
|
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
64
143
|
_key?: string;
|
|
144
|
+
image?: string;
|
|
145
|
+
alt?: string;
|
|
146
|
+
multipleRoutes?: LabeledRouteWithKey[];
|
|
147
|
+
featuredRoute?: {
|
|
148
|
+
featuredLink: LabeledRoute;
|
|
149
|
+
mainImage: {
|
|
150
|
+
image: string;
|
|
151
|
+
alt: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
routeType?: string;
|
|
65
155
|
}
|
|
66
156
|
|
|
67
157
|
export interface ArrayOfImageTitleAndText {
|
|
@@ -201,12 +291,17 @@ export interface Sections extends SanityBody {
|
|
|
201
291
|
export interface Variants {
|
|
202
292
|
template?: Template;
|
|
203
293
|
multipleMenus?: any;
|
|
294
|
+
multipleLinks?: any;
|
|
295
|
+
megaMenu?: MegaMenu[];
|
|
204
296
|
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
205
297
|
logo?: Logo | null;
|
|
298
|
+
logos?: Logos[] | null;
|
|
206
299
|
primaryButton?: LabeledRoute | null;
|
|
207
300
|
secondaryButton?: LabeledRoute | null;
|
|
208
301
|
routes?: LabeledRouteWithKey[] | null;
|
|
209
302
|
menu?: LabeledRouteWithKey[] | null;
|
|
303
|
+
dropdownMenu?: LabeledRouteWithKey[] | null;
|
|
304
|
+
iconLinks?: LabeledRouteWithKey[] | null;
|
|
210
305
|
plans?: Plans[] | null;
|
|
211
306
|
formLinks?: LabeledRouteWithKey[] | null;
|
|
212
307
|
portfolios?: Portfolios[] | null;
|
|
@@ -230,6 +325,7 @@ export interface Variants {
|
|
|
230
325
|
contactEmail?: string | null;
|
|
231
326
|
contactNumber?: string | null;
|
|
232
327
|
socialLinks?: SocialLink[] | null;
|
|
328
|
+
socialMedia?: SocialLink[] | null;
|
|
233
329
|
block?: any;
|
|
234
330
|
heading?: string | null;
|
|
235
331
|
acceptButtonLabel?: string | null;
|
|
@@ -410,3 +506,24 @@ export declare interface Reference {
|
|
|
410
506
|
};
|
|
411
507
|
};
|
|
412
508
|
}
|
|
509
|
+
|
|
510
|
+
export type MyPortableTextComponents = PortableTextComponents & {
|
|
511
|
+
code?: ({ value }: { value: { language?: string; code?: string } }) => JSX.Element;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export interface ConditionalLinkTypes {
|
|
515
|
+
className?: string;
|
|
516
|
+
ariaLabel: string; // required for A11Y
|
|
517
|
+
style?: any;
|
|
518
|
+
children: string | React.ReactNode;
|
|
519
|
+
link: LabeledRoute | LabeledRouteWithKey | undefined;
|
|
520
|
+
target?: string;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export interface IconLink {
|
|
524
|
+
_key: string;
|
|
525
|
+
image: string;
|
|
526
|
+
alt?: string;
|
|
527
|
+
linkExternal: string;
|
|
528
|
+
linkTarget?: "_blank" | "_self";
|
|
529
|
+
}
|
package/dist/chunk-GGOHIST3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Button as p}from"@stackshift-ui/button";import{Container as s}from"@stackshift-ui/container";import{Flex as i}from"@stackshift-ui/flex";import{Heading as c}from"@stackshift-ui/heading";import{Image as a}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{jsx as t,jsxs as d}from"react/jsx-runtime";function m({title:e,images:o,button:l}){return t(u,{className:"relative pt-20 pb-12 overflow-hidden bg-background lg:pb-80",children:d(s,{maxWidth:1280,children:[t(f,{title:e,button:l}),o&&o.length>0&&t(g,{images:o}),t(x,{images:o})]})})}function f({title:e,button:o}){return d(s,{maxWidth:448,className:"text-center",children:[e&&t(c,{weight:"bold",className:"mb-8 text-4xl lg:text-5xl",children:e}),(o==null?void 0:o.label)&&t(p,{as:"link",ariaLabel:o.label,link:o,children:o.label})]})}function g({images:e}){return e?t("div",{className:"relative hidden lg:block",children:e.map((o,l)=>t(h,{image:o,alt:o==null?void 0:o.alt,index:l},l))}):null}function h({image:e,alt:o,index:l}){var n;return t("div",{className:"absolute flex items-center justify-center w-24 h-24 overflow-hidden rounded-full bg-gray-50",style:(n=[{top:"-120px",left:"-10px"},{top:"0",left:"0",marginTop:"20px"},{bottom:"-250px",left:"20%"},{top:"20px",right:"20%"},{bottom:"-250px",right:"0"},{top:"-150px",right:"0"}][l])!=null?n:{},children:t(a,{className:"object-scale-down w-16 h-16",src:`${e==null?void 0:e.image}`,sizes:"100vw",width:64,height:64,alt:o!=null?o:`logoCloud-image-${l+1}`})})}function x({images:e}){return e?t(i,{wrap:!0,justify:"center",className:"mt-16 lg:hidden",children:e&&e.map((o,l)=>{var r;return t(i,{align:"center",justify:"center",className:"w-24 h-24 mx-4 mb-8 rounded-full bg-gray-50",children:t(a,{className:"object-scale-down w-16 h-16",src:`${o==null?void 0:o.image}`,sizes:"100vw",width:64,height:64,alt:(r=o==null?void 0:o.alt)!=null?r:`logoCloud-image-${l}`})},l)})}):null}export{m as a};
|
|
File without changes
|