@stackshift-ui/header 7.0.0-beta.1 → 7.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/header.tsx +22 -15
- package/src/header_a.tsx +6 -30
- package/src/header_b.tsx +6 -31
- package/src/header_c.tsx +7 -36
- package/src/header_d.tsx +6 -30
- package/src/header_e.tsx +6 -30
- package/src/header_f.tsx +2 -8
- package/src/header_g.tsx +3 -11
- package/src/helpers/index.tsx +130 -0
- package/src/types.ts +136 -3
- package/dist/chunk-BK26DQRD.mjs +0 -1
- package/dist/chunk-EJ4QPSAH.mjs +0 -1
- package/dist/chunk-EQ2IKL2P.mjs +0 -1
- package/dist/chunk-GWCAKTWK.mjs +0 -1
- package/dist/chunk-KTNFPZEI.mjs +0 -1
- package/dist/chunk-T5ODG4Q5.mjs +0 -1
- package/dist/chunk-TGXSJZFD.mjs +0 -1
- package/dist/chunk-W2QPS3BW.mjs +0 -1
- package/dist/chunk-YONFC5QQ.mjs +0 -1
- package/dist/header.d.ts +0 -34
- package/dist/header.js +0 -1
- package/dist/header.mjs +0 -1
- package/dist/header_a.d.ts +0 -3
- package/dist/header_a.js +0 -1
- package/dist/header_a.mjs +0 -1
- package/dist/header_b.d.ts +0 -3
- package/dist/header_b.js +0 -1
- package/dist/header_b.mjs +0 -1
- package/dist/header_c.d.ts +0 -3
- package/dist/header_c.js +0 -1
- package/dist/header_c.mjs +0 -1
- package/dist/header_d.d.ts +0 -3
- package/dist/header_d.js +0 -1
- package/dist/header_d.mjs +0 -1
- package/dist/header_e.d.ts +0 -3
- package/dist/header_e.js +0 -1
- package/dist/header_e.mjs +0 -1
- package/dist/header_f.d.ts +0 -3
- package/dist/header_f.js +0 -1
- package/dist/header_f.mjs +0 -1
- package/dist/header_g.d.ts +0 -3
- package/dist/header_g.js +0 -1
- package/dist/header_g.mjs +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/types.d.ts +0 -403
- package/dist/types.js +0 -1
- package/dist/utils/portableText/customBlockStyle.d.ts +0 -2
- package/dist/utils/portableText/customBlockStyle.js +0 -1
- package/dist/utils/portableText/customBlockStyle.mjs +0 -1
- package/dist/utils/portableText.d.ts +0 -0
- package/dist/utils/portableText.js +0 -1
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var ue=Object.create;var W=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Ee=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty;var S=(l,e)=>()=>(l&&(e=l(l=0)),e);var C=(l,e)=>{for(var n in e)W(l,n,{get:e[n],enumerable:!0})},Gl=(l,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of De(e))!Ge.call(l,i)&&i!==n&&W(l,i,{get:()=>e[i],enumerable:!(t=qe(e,i))||t.enumerable});return l};var A=(l,e,n)=>(n=l!=null?ue(Ee(l)):{},Gl(e||!l||!l.__esModule?W(n,"default",{value:l,enumerable:!0}):n,l)),Oe=l=>Gl(W({},"__esModule",{value:!0}),l);var Ql={};C(Ql,{Header_A:()=>Q,default:()=>Q});function Q({mainImage:l,title:e,description:n,primaryButton:t,secondaryButton:i}){return(0,g.jsx)(Kl.Section,{className:"py-20 bg-background",children:(0,g.jsx)(Ol.Container,{maxWidth:1280,children:(0,g.jsxs)(q.Flex,{align:"center",className:"flex-col lg:flex-row lg:gap-10",children:[(0,g.jsx)(q.Flex,{align:"center",direction:"col",className:"w-full basis-1/2",children:(0,g.jsxs)("div",{className:"max-w-md text-center lg:text-left",children:[(0,g.jsx)(Ve,{title:e,description:n}),(0,g.jsx)(Ke,{primaryButton:t,secondaryButton:i})]})}),(0,g.jsx)(Je,{mainImage:l})]})})})}function Ve({title:l,description:e}){return(0,g.jsxs)(Xl.default.Fragment,{children:[l&&(0,g.jsx)(Vl.Heading,{fontSize:"3xl",className:"mb-3",children:l}),e&&(0,g.jsx)(Jl.Text,{muted:!0,className:"my-6",children:e})]})}function Ke({primaryButton:l,secondaryButton:e}){var i,r,o,x,f,m,b,a;let n=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((i=l==null?void 0:l.link)==null?void 0:i.target)==="_self"?(r=l==null?void 0:l.link)==null?void 0:r.route:"",externalLink:((o=l==null?void 0:l.link)==null?void 0:o.target)!="_self"?(x=l==null?void 0:l.link)==null?void 0:x.route:""}),t=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((f=e==null?void 0:e.link)==null?void 0:f.target)==="_self"?(m=e==null?void 0:e.link)==null?void 0:m.route:"",externalLink:((b=e==null?void 0:e.link)==null?void 0:b.target)!="_self"?(a=e==null?void 0:e.link)==null?void 0:a.route:""});return(0,g.jsxs)(q.Flex,{align:"center",justify:"center",gap:2,direction:"col",className:"lg:justify-start md:flex-row",children:[(l==null?void 0:l.label)&&(0,g.jsx)(V.Button,{variant:"default","aria-label":l==null?void 0:l.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:n.href,target:n.target,rel:n.rel,children:l==null?void 0:l.label})}),(e==null?void 0:e.label)&&(0,g.jsx)(V.Button,{variant:"secondary",className:"bg-transparent border hover:bg-gray-300 inline-block font-default text-default transition duration-200 rounded-global","aria-label":e==null?void 0:e.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})]})}function Je({mainImage:l}){var e;return l!=null&&l.image?(0,g.jsxs)("div",{className:"relative w-full max-w-md mt-10 lg:mt-0",children:[(0,g.jsx)(X.Image,{className:"overflow-hidden rounded-md object-cover md:rounded-br-none lg:h-[448px] relative z-10",src:`${l.image}`,sizes:"(min-width: 520px) 448px, 90vw",width:448,height:448,alt:(e=l.alt)!=null?e:"header-main-image"}),(0,g.jsx)(Xe,{})]}):null}function Xe(){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(u,{src:"/assets/elements/webriq-blue-dark-up.png",alt:"webriq-blue-dark-up-mainImage-element",className:"absolute hidden md:block",style:{top:"-2rem",right:"3rem",zIndex:2},width:112,height:112}),(0,g.jsx)(u,{src:"/assets/elements/wing-webriq-blue-down.png",alt:"wing-webriq-blue-down-mainImage-element",className:"absolute hidden md:block",style:{bottom:"-2rem",right:"-2rem",zIndex:2},width:144,height:144}),(0,g.jsx)(u,{src:"/assets/elements/bullets-gray-right.svg",alt:"bullets-gray-right-mainImage-element",className:"absolute hidden md:block",style:{top:"3rem",right:"-3rem",zIndex:2},width:115,height:157}),(0,g.jsx)(u,{src:"/assets/elements/bullets-gray-left.svg",alt:"bullets-gray-left-mainImage-element",className:"absolute hidden md:block",style:{bottom:"2.5rem",left:"-4.5rem",zIndex:2},width:157,height:115})]})}function u({src:l,alt:e,className:n,style:t,width:i,height:r}){return(0,g.jsx)(X.Image,{src:l,alt:e,className:n,style:t,width:i,height:r})}var V,Ol,q,Vl,X,K,Kl,J,Jl,Xl,g,U=S(()=>{"use strict";V=require("@stackshift-ui/button"),Ol=require("@stackshift-ui/container"),q=require("@stackshift-ui/flex"),Vl=require("@stackshift-ui/heading"),X=require("@stackshift-ui/image"),K=require("@stackshift-ui/link"),Kl=require("@stackshift-ui/section"),J=require("@stackshift-ui/system"),Jl=require("@stackshift-ui/text"),Xl=A(require("react")),g=require("react/jsx-runtime")});var le={};C(le,{Header_B:()=>B,default:()=>B});function B({images:l,title:e,description:n,primaryButton:t,secondaryButton:i}){return(0,g.jsx)(Kl.Section,{className:"relative z-10 py-20 bg-background",children:(0,g.jsx)(Ol.Container,{maxWidth:1280,children:(0,g.jsxs)(q.Flex,{align:"center",direction:"col",gap:4,className:"lg:flex-row",children:[(0,g.jsx)(q.Flex,{align:"center",direction:"col",className:"w-full basis-1/2",children:(0,g.jsxs)("div",{className:"max-w-md mx-auto text-center lg:text-left",children:[(0,g.jsx)(Qe,{title:e,description:n}),(0,g.jsx)(Ue,{primaryButton:t,secondaryButton:i})]})}),l&&(0,g.jsx)(Ye,{images:l})]})})})}function Qe({title:l,description:e}){return(0,g.jsxs)(Bl.default.Fragment,{children:[l&&(0,g.jsx)(Vl.Heading,{fontSize:"3xl",className:"mb-3",children:l}),e&&(0,g.jsx)(Jl.Text,{muted:!0,className:"my-6",children:e})]})}function Ue({primaryButton:l,secondaryButton:e}){var i,r,o,x,f,m,b,a;let n=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((i=l==null?void 0:l.link)==null?void 0:i.target)==="_self"?(r=l==null?void 0:l.link)==null?void 0:r.route:"",externalLink:((o=l==null?void 0:l.link)==null?void 0:o.target)!="_self"?(x=l==null?void 0:l.link)==null?void 0:x.route:""}),t=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((f=e==null?void 0:e.link)==null?void 0:f.target)==="_self"?(m=e==null?void 0:e.link)==null?void 0:m.route:"",externalLink:((b=e==null?void 0:e.link)==null?void 0:b.target)!="_self"?(a=e==null?void 0:e.link)==null?void 0:a.route:""});return(0,g.jsxs)(q.Flex,{align:"center",justify:"center",gap:2,direction:"col",className:"lg:justify-start md:flex-row",children:[(l==null?void 0:l.label)&&(0,g.jsx)(Y.Button,{variant:"default","aria-label":l==null?void 0:l.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:n.href,target:n.target,rel:n.rel,children:l==null?void 0:l.label})}),(e==null?void 0:e.label)&&(0,g.jsx)(Y.Button,{variant:"secondary",className:"bg-transparent border hover:bg-gray-300 inline-block font-default text-default transition duration-200 rounded-global","aria-label":e==null?void 0:e.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})]})}function Ye({images:l}){var e,n,t,i,r,o,x,f,m,b,a,P,h,d,T,H;return l?(0,g.jsxs)("div",{className:"w-full px-4 lg:w-1/2 mt-10 lg:mt-0",children:[(0,g.jsxs)("div",{className:"mb-3 sm:flex lg:mb-4 lg:K-6",children:[((e=l==null?void 0:l[0])==null?void 0:e.image)&&(0,g.jsx)(X.Image,{className:"relative object-cover mb-3 mr-2 overflow-hidden rounded-xl sm:mb-0 sm:w-1/3 md:rounded-3xl lg:rounded-br-none",sizes:"100vw",src:`${(n=l==null?void 0:l[0])==null?void 0:n.image}`,width:941,height:734,alt:(i=(t=l==null?void 0:l[0])==null?void 0:t.alt)!=null?i:"header-image-1"}),((r=l==null?void 0:l[1])==null?void 0:r.image)&&(0,g.jsx)(X.Image,{className:"relative object-cover overflow-hidden rounded-xl sm:K-2 sm:w-2/3 md:rounded-3xl lg:rounded-bl-none",sizes:"100vw",src:`${(o=l==null?void 0:l[1])==null?void 0:o.image}`,width:1050,height:701,alt:(f=(x=l==null?void 0:l[1])==null?void 0:x.alt)!=null?f:"header-image-2"})]}),(0,g.jsxs)("div",{className:"mb-3 sm:flex lg:mb-4 lg:mr-6",children:[((m=l==null?void 0:l[2])==null?void 0:m.image)&&(0,g.jsx)(X.Image,{className:"object-cover mb-3 mr-2 overflow-hidden rounded-xl sm:w-2/3 md:mb-0 md:rounded-3xl lg:rounded-br-none",sizes:"100vw",src:`${(b=l==null?void 0:l[2])==null?void 0:b.image}`,width:1050,height:701,alt:(P=(a=l==null?void 0:l[2])==null?void 0:a.alt)!=null?P:"header-image-3"}),((h=l==null?void 0:l[3])==null?void 0:h.image)&&(0,g.jsx)(X.Image,{className:"object-cover overflow-hidden rounded-xl sm:K-2 sm:w-1/3 md:rounded-3xl lg:rounded-bl-none",sizes:"100vw",src:`${(d=l==null?void 0:l[3])==null?void 0:d.image}`,width:941,height:734,alt:(H=(T=l==null?void 0:l[3])==null?void 0:T.alt)!=null?H:"header-image-4"})]})]}):null}var Y,Ol,q,Vl,X,K,Kl,J,Jl,Bl,g,ll=S(()=>{"use strict";Y=require("@stackshift-ui/button"),Bl=A(require("react"))});var se={};C(se,{Header_C:()=>nl,default:()=>nl});function nl({videoLink:l,title:e,primaryButton:n,secondaryButton:t}){let i;return l&&(l.includes("embed")?i=l.split("/")[4]:i=l.split("/watch?g=")[1]||l.split("/")[3]),(0,g.jsx)(Kl.Section,{className:"py-20 md:py-52 bg-background",children:(0,g.jsxs)(Ol.Container,{maxWidth:1280,children:[(0,g.jsxs)("div",{className:"max-w-2xl mx-auto mb-12 text-center md:mb-20",children:[e&&(0,g.jsx)(Vl.Heading,{fontSize:"3xl",className:"mb-10",children:e}),(0,g.jsx)(ye,{primaryButton:n,secondaryButton:t})]}),(0,g.jsx)("div",{className:"md:mx-20 lg:mx-60 xl:mx-60",children:i&&(0,g.jsx)(Ze,{videoLinkId:i,title:e})})]})})}function Ze({videoLinkId:l,title:e}){return(0,g.jsx)("div",{className:"aspect-video",children:(0,g.jsx)("iframe",{"aria-label":"Show Video Frame",className:"w-full h-full border-4 rounded-3xl border-primary",src:`https://www.youtube.com/embed/${l}`,srcDoc:`<style>*{padding:0;margin:0;overflow:hidden;border-radius:24px}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;text-shadow:0 0 0.5em black}</style><a href=${`https://www.youtube.com/embed/${l}`}><img src=${`https://i.ytimg.com/vi_webp/${l}/maxresdefault.webp`} alt=${e} loading="lazy" /><span>\u25B6</span></a>`,loading:"lazy",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}function ye({primaryButton:l,secondaryButton:e}){var i,r,o,x,f,m,b,a;let n=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((i=l==null?void 0:l.link)==null?void 0:i.target)==="_self"?(r=l==null?void 0:l.link)==null?void 0:r.route:"",externalLink:((o=l==null?void 0:l.link)==null?void 0:o.target)!="_self"?(x=l==null?void 0:l.link)==null?void 0:x.route:""}),t=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((f=e==null?void 0:e.link)==null?void 0:f.target)==="_self"?(m=e==null?void 0:e.link)==null?void 0:m.route:"",externalLink:((b=e==null?void 0:e.link)==null?void 0:b.target)!="_self"?(a=e==null?void 0:e.link)==null?void 0:a.route:""});return(0,g.jsxs)(q.Flex,{align:"center",justify:"center",gap:2,direction:"col",className:"lg:justify-start md:flex-row",children:[(l==null?void 0:l.label)&&(0,g.jsx)(el.Button,{variant:"default","aria-label":l==null?void 0:l.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:n.href,target:n.target,rel:n.rel,children:l==null?void 0:l.label})}),(e==null?void 0:e.label)&&(0,g.jsx)(el.Button,{variant:"secondary",className:"bg-transparent border hover:bg-gray-300 inline-block font-default text-default transition duration-200 rounded-global","aria-label":e==null?void 0:e.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})]})}var el,Ol,q,Vl,K,Kl,J,g,sl=S(()=>{"use strict";el=require("@stackshift-ui/button")});var xe={};C(xe,{Header_D:()=>ol,default:()=>ol});function ol({title:l,description:e,primaryButton:n,secondaryButton:t,mainImage:i}){return(0,g.jsx)(Kl.Section,{className:"py-20 bg-background",children:(0,g.jsx)(Ol.Container,{maxWidth:1280,children:(0,g.jsxs)(q.Flex,{align:"center",className:"flex-col lg:flex-row",gap:4,children:[(0,g.jsx)(q.Flex,{align:"center",className:"w-full basis-1/2",direction:"col",children:(0,g.jsxs)(Ol.Container,{className:"mx-auto items-center text-center lg:text-left",maxWidth:"md",children:[(0,g.jsx)(Be,{title:l,description:e}),(0,g.jsx)(li,{primaryButton:n,secondaryButton:t})]})}),(0,g.jsx)(ei,{mainImage:i})]})})})}function Be({title:l,description:e}){return(0,g.jsxs)(oe.default.Fragment,{children:[l?(0,g.jsx)(Vl.Heading,{fontSize:"3xl",className:"mb-3",type:"h1",children:l}):null,e?(0,g.jsx)(Jl.Text,{className:"my-6",muted:!0,children:e}):null]})}function li({primaryButton:l,secondaryButton:e}){var i,r,o,x,f,m,b,a;let n=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((i=l==null?void 0:l.link)==null?void 0:i.target)==="_self"?(r=l==null?void 0:l.link)==null?void 0:r.route:"",externalLink:((o=l==null?void 0:l.link)==null?void 0:o.target)!="_self"?(x=l==null?void 0:l.link)==null?void 0:x.route:""}),t=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((f=e==null?void 0:e.link)==null?void 0:f.target)==="_self"?(m=e==null?void 0:e.link)==null?void 0:m.route:"",externalLink:((b=e==null?void 0:e.link)==null?void 0:b.target)!="_self"?(a=e==null?void 0:e.link)==null?void 0:a.route:""});return(0,g.jsxs)(q.Flex,{align:"center",justify:"center",gap:2,direction:"col",className:"lg:justify-start md:flex-row",children:[(l==null?void 0:l.label)&&(0,g.jsx)(rl.Button,{variant:"default","aria-label":l==null?void 0:l.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:n.href,target:n.target,rel:n.rel,children:l==null?void 0:l.label})}),(e==null?void 0:e.label)&&(0,g.jsx)(rl.Button,{variant:"secondary",className:"bg-transparent border hover:bg-gray-300 inline-block font-default text-default transition duration-200 rounded-global","aria-label":e==null?void 0:e.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})]})}function ei({mainImage:l}){var e;return l!=null&&l.image?(0,g.jsx)("div",{className:"w-full md:w-2/3 h-full mt-10 lg:mt-0",children:(0,g.jsx)(X.Image,{alt:(e=l.alt)!=null?e:"header-main-image",className:"rounded-md",height:700,sizes:"100vw",src:`${l==null?void 0:l.image}`,style:{objectFit:"contain"},width:1050})}):null}var rl,Ol,q,Vl,X,K,Kl,J,Jl,oe,g,xl=S(()=>{"use strict";rl=require("@stackshift-ui/button"),oe=A(require("react"))});var we={};C(we,{Header_E:()=>kl,default:()=>kl});function kl({title:l,description:e,primaryButton:n,secondaryButton:t,formLinks:i,form:r}){return(0,g.jsx)(Kl.Section,{className:"relative py-20 bg-background",children:(0,g.jsx)(Ol.Container,{maxWidth:1280,children:(0,g.jsxs)(q.Flex,{align:"center",className:"flex-col lg:flex-row",gap:4,children:[(0,g.jsx)(q.Flex,{align:"center",direction:"col",className:"w-full basis-1/2",children:(0,g.jsxs)("div",{className:"max-w-md mx-auto text-center lg:text-left",children:[(0,g.jsx)(ii,{title:l,description:e}),(0,g.jsx)(ti,{primaryButton:n,secondaryButton:t})]})}),(0,g.jsx)("div",{className:"w-full lg:w-1/2 mt-10 lg:mt-0",children:(0,g.jsx)("div",{className:"max-w-sm mx-auto text-center",children:(0,g.jsx)(ke.SigninSignup_A,{form:r,formLinks:i})})})]})})})}function ii({title:l,description:e}){return(0,g.jsxs)(ve.default.Fragment,{children:[l&&(0,g.jsx)(Vl.Heading,{fontSize:"3xl",className:"mb-3",children:l}),e&&(0,g.jsx)(Jl.Text,{muted:!0,className:"my-6",children:e})]})}function ti({primaryButton:l,secondaryButton:e}){var i,r,o,x,f,m,b,a;let n=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((i=l==null?void 0:l.link)==null?void 0:i.target)==="_self"?(r=l==null?void 0:l.link)==null?void 0:r.route:"",externalLink:((o=l==null?void 0:l.link)==null?void 0:o.target)!="_self"?(x=l==null?void 0:l.link)==null?void 0:x.route:""}),t=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((f=e==null?void 0:e.link)==null?void 0:f.target)==="_self"?(m=e==null?void 0:e.link)==null?void 0:m.route:"",externalLink:((b=e==null?void 0:e.link)==null?void 0:b.target)!="_self"?(a=e==null?void 0:e.link)==null?void 0:a.route:""});return(0,g.jsxs)(q.Flex,{align:"center",justify:"center",gap:2,direction:"col",className:"lg:justify-start md:flex-row",children:[(l==null?void 0:l.label)&&(0,g.jsx)(bl.Button,{variant:"default","aria-label":l==null?void 0:l.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:n.href,target:n.target,rel:n.rel,children:l==null?void 0:l.label})}),(e==null?void 0:e.label)&&(0,g.jsx)(bl.Button,{variant:"secondary",className:"bg-transparent border hover:bg-gray-300 inline-block font-default text-default transition duration-200 rounded-global","aria-label":e==null?void 0:e.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})]})}var bl,Ol,q,Vl,K,Kl,ke,J,Jl,ve,g,pl=S(()=>{"use strict";bl=require("@stackshift-ui/button"),ke=require("@stackshift-ui/signin-signup"),ve=A(require("react"))});var w,Ne,Pe=S(()=>{"use strict";w=require("react/jsx-runtime"),Ne=({className:l})=>({block:{h1:e=>(0,w.jsx)("h1",{className:`h1 ${l}`,children:e.children}),h2:e=>(0,w.jsx)("h2",{className:`h2 ${l}`,children:e.children}),h3:e=>(0,w.jsx)("h3",{className:`h3 ${l}`,children:e.children}),h4:e=>(0,w.jsx)("h4",{className:`h4 ${l}`,children:e.children}),normal:e=>(0,w.jsx)("g",{className:`text-normal lg:text-left sm:text-lg sm:!leading-[32px] font-normal font-body-kb tracking-wide ${l}`,children:e.children}),blockquote:e=>(0,w.jsxs)("blockquote",{className:`my-5 px-14 leading-loose italic ${l}`,children:["- ",e.children]})},code:e=>(0,w.jsx)("pre",{"data-language":e.value.language,className:l,children:(0,w.jsx)("code",{children:e.value.code})}),list:{bullet:e=>(0,w.jsx)("ul",{className:`pl-4 list-disc font-light ${l}`,children:e.children}),number:e=>(0,w.jsx)("ol",{className:`pl-4 list-decimal font-light ${l}`,children:e.children})},listItem:{bullet:e=>(0,w.jsx)("li",{className:`font-light ${l}`,children:e.children})},marks:{strong:e=>(0,w.jsx)("strong",{className:`font-bold ${l}`,children:e.children}),em:e=>(0,w.jsx)("em",{className:l,children:e.children}),code:e=>(0,w.jsx)("code",{className:l,children:e.children}),link:e=>{var n,t,i;return(0,w.jsx)("a",{"aria-label":(t=(n=e.children)==null?void 0:n.toString())!=null?t:"external link",className:`underline underline-offset-2 decoration-gray-2 decoration-1 hover:decoration-2 ${l}`,href:(i=e.value)==null?void 0:i.href,target:"_blank",rel:"noopener noreferrer",children:e.children})}},types:{image:e=>(0,w.jsxs)("div",{className:`my-5 ${l}`,children:[(0,w.jsx)("img",{src:e.value.toString(),alt:e.value.alt||"Image",className:`w-full h-auto ${l}`}),e.value.caption&&(0,w.jsx)("g",{className:`text-center text-sm text-gray-600 ${l}`,children:e.value.caption})]})}})});var _e={};C(_e,{Header_F:()=>wl,default:()=>wl});function wl({title:l,subtitle:e,subtitlePosition:n,headerSections:t,isFullWidth:i,spacing:r,isOrdered:o,startingPosition:x}){return(0,g.jsx)(Kl.Section,{className:`relative pb-14 bg-white ${n==="top"&&"mt-[32px]"}`,children:(0,g.jsxs)("div",{style:{marginBottom:`${r}px`},className:`w-full mx-auto ${i?"":"max-w-[1548px] px-4"}`,children:[(l||e)&&(0,g.jsx)(si,{title:l,subtitle:e,subtitlePosition:n}),(0,g.jsx)(q.Flex,{className:"flex-col",style:{gap:`${r}px`},children:t==null?void 0:t.map((f,m)=>{let b=x==="left"?m%2===0:m%2!==0;return f.isImageLeft=b,f.isFullWidth=i,f.index=m+1,f.isOrdered=o,(0,g.jsx)(oi,{header:f,isImageLeft:b},f._key)})})]})})}var Le,he,q,Vl,X,Kl,Jl,Se,Ce,J,g,ni,si,ri,fi,mi,gi,oi,Nl=S(()=>{"use strict";Le=require("@portabletext/react"),he=require("@stackshift-ui/button"),Se=require("react-icons/lia");Pe();Ce=require("@stackshift-ui/link"),ni={lg:"min-h-[200px] sm:min-h-[400px] md:min-h-[600px] lg:min-h-[800px] xl:min-h-[1150px]",md:"min-h-[200px] sm:min-h-[400px] md:min-h-[500px] lg:min-h-[700px]",sm:"min-h-[200px] sm:min-h-[400px] md:min-h-[500px]"};si=({title:l,subtitle:e,subtitlePosition:n})=>(0,g.jsxs)(q.Flex,{direction:"col",justify:"center",align:"center",gap:3,className:"mb-16",children:[n==="top"&&e&&(0,g.jsx)(Jl.Text,{className:"font-label tracking-[2.1px]",children:e}),l&&(0,g.jsx)(Jl.Text,{className:"text-2xl text-center sm:text-4xl font-normal font-heading-kb tracking-[6px] uppercase border-b border-black",children:l}),n==="bottom"&&e?(0,g.jsx)(Jl.Text,{className:"font-label tracking-[2.1px]",children:e}):!n&&(0,g.jsx)(Jl.Text,{className:"font-label tracking-[2.1px]",children:e})]}),ri=({image:l,height:e})=>(0,g.jsx)("div",{className:`relative w-full ${e?ni[e]:""}`,style:{backgroundImage:`url(${l})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),fi=({header:l})=>{var e;return(0,g.jsx)("div",{className:"px-10 sm:px-20 md:px-30 lg:px-40 py-10",children:(0,g.jsxs)("div",{className:`w-full max-w-[665px] h-full flex flex-col justify-center items-${l==null?void 0:l.alignment} gap-20`,children:[((l==null?void 0:l.title)||(l==null?void 0:l.subtitle)||(l==null?void 0:l.imageTitle))&&(0,g.jsx)(mi,{header:l}),(l==null?void 0:l.description)&&(0,g.jsx)(Jl.Text,{className:`text-normal lg:text-left sm:text-lg sm:!leading-[32px] font-normal font-body-kb tracking-wide ${l!=null&&l.isFullWidth?"lg:text-[18px] lg:!leading-[30px] xl:text-[28px] xl:!leading-[50px]":"lg:text-[18px] lg:!leading-[30px]"}`,children:l==null?void 0:l.description}),(l==null?void 0:l.columnContent)&&(0,g.jsx)(Le.PortableText,{value:l==null?void 0:l.columnContent,components:Ne({className:`${l!=null&&l.isFullWidth?"lg:text-[18px] lg:!leading-[30px] xl:text-[28px] xl:!leading-[50px]":"lg:text-[18px] lg:!leading-[30px]"}`})}),((e=l==null?void 0:l.primaryButton)==null?void 0:e.label)&&(0,g.jsx)(gi,{header:l})]})})},mi=({header:l})=>(0,g.jsxs)("div",{children:[(l==null?void 0:l.isOrdered)&&(0,g.jsx)("div",{className:"border border-black w-fit text-center pb-2 pt-1 px-4 lg:px-6 mb-8",children:(0,g.jsx)(Jl.Text,{className:"font-normal font-heading-kb text-6xl min-w-[40px] lg:text-[82px] lg:min-w-[45px]",children:l==null?void 0:l.index})}),(0,g.jsxs)("div",{className:`text-${l==null?void 0:l.alignment}`,children:[(l==null?void 0:l.subtitle)&&(0,g.jsx)(Jl.Text,{className:"text-sm font-label tracking-[2px] mb-2",children:l==null?void 0:l.subtitle}),(l==null?void 0:l.title)&&(0,g.jsx)(Vl.Heading,{className:`text-2xl sm:text-4xl lg:text-[40px] font-normal font-heading-kb uppercase tracking-[6px] !leading-[60px] ${l!=null&&l.isFullWidth?"border-b border-black w-fit pb-3":""}`,children:l==null?void 0:l.title}),(l==null?void 0:l.imageTitle)&&(0,g.jsxs)("div",{className:"relative w-fit",children:[(0,g.jsx)(X.Image,{src:l==null?void 0:l.imageTitle,alt:"",width:497,height:32,className:"object-contain object-left"}),(0,g.jsx)("div",{className:"absolute bottom-[-25px] left-0 right-[0] border-b border-black"})]})]})]}),gi=({header:l})=>{var n,t,i,r,o,x,f,m,b,a,P;let e=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((t=(n=l==null?void 0:l.primaryButton)==null?void 0:n.link)==null?void 0:t.target)==="_self"?(r=(i=l==null?void 0:l.primaryButton)==null?void 0:i.link)==null?void 0:r.route:"",externalLink:((x=(o=l==null?void 0:l.primaryButton)==null?void 0:o.link)==null?void 0:x.target)!="_self"?(m=(f=l==null?void 0:l.primaryButton)==null?void 0:f.link)==null?void 0:m.route:""});return(0,g.jsx)("div",{className:`flex justify-${l==null?void 0:l.alignment} gap-4`,children:((b=l==null?void 0:l.primaryButton)==null?void 0:b.label)&&(0,g.jsx)(he.Button,{variant:"link","aria-label":(a=l==null?void 0:l.primaryButton)==null?void 0:a.label,className:"border border-black px-14 py-3.5 text-sm",asChild:!0,children:(0,g.jsx)(Ce.Link,{href:e.href,target:e.target,rel:e.rel,children:(0,g.jsxs)("span",{className:"flex items-center gap-2 font-label text-sm font-normal uppercase tracking-widest",children:[(P=l==null?void 0:l.primaryButton)==null?void 0:P.label," ",(0,g.jsx)(Se.LiaLongArrowAltRightSolid,{})]})})})})},oi=({header:l,isImageLeft:e})=>{var n;return(0,g.jsxs)("div",{className:`bg-light-kb w-full h-full flex flex-col items-center justify-center md:flex-row ${e?"":"md:flex-row-reverse"}`,children:[((n=l==null?void 0:l.mainImage)==null?void 0:n.image)&&(0,g.jsx)(ri,{image:l.mainImage.image,height:l.imageHeight}),(0,g.jsx)("div",{className:"w-full flex justify-center",children:(0,g.jsx)(fi,{header:l})})]})}});var Re={};C(Re,{Header_G:()=>dl,default:()=>dl});function dl({mediaItems:l,title:e,description:n,primaryButton:t,secondaryButton:i,position:r="center"}){var h,d,T,H,$,z,j,M;if(!(l!=null&&l.length))return null;let[o,x]=(0,O.useState)(0),f=l[o];(0,O.useEffect)(()=>{let F=setInterval(()=>{x(L=>(L+1)%l.length)},5e3);return()=>clearInterval(F)},[l.length]);let m=F=>{x(F)},b=()=>{switch(r){case"left":return"items-start text-left";case"right":return"items-end text-right";default:return"items-center text-center"}},a=(0,J.buildSanityLink)({type:"linkInternal",internalLink:((h=t==null?void 0:t.link)==null?void 0:h.target)==="_self"?(d=t==null?void 0:t.link)==null?void 0:d.route:"",externalLink:((T=t==null?void 0:t.link)==null?void 0:T.target)!="_self"?(H=t==null?void 0:t.link)==null?void 0:H.route:""}),P=(0,J.buildSanityLink)({type:"linkInternal",internalLink:(($=i==null?void 0:i.link)==null?void 0:$.target)==="_self"?(z=i==null?void 0:i.link)==null?void 0:z.route:"",externalLink:((j=i==null?void 0:i.link)==null?void 0:j.target)!="_self"?(M=i==null?void 0:i.link)==null?void 0:M.route:""});return(0,g.jsx)(Kl.Section,{children:(0,g.jsxs)("div",{className:"relative w-full h-[80vh] overflow-hidden",children:[f.video?(0,g.jsx)("video",{className:"absolute inset-0 w-full h-full object-cover",src:f.video,autoPlay:!0,loop:!0,muted:!0,playsInline:!0}):(0,g.jsx)("div",{className:"absolute inset-0 w-full h-full bg-cover bg-center",style:{backgroundImage:`url(${f.image})`}}),(0,g.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-50 z-0"}),(0,g.jsx)("div",{className:`relative z-10 flex g-8 justify-${r==="right"?"end":r} items-center h-full`,children:(0,g.jsxs)("div",{className:`max-w-[600px] flex flex-col justify-center ${b()} px-4`,children:[(0,g.jsx)($e.Heading,{className:"text-white uppercase mb-10",children:e!=null&&e.includes("Introducing")?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"md:text-3xl text-2xl",children:e.split(" ").slice(0,1).join(" ")}),(0,g.jsx)("br",{}),(0,g.jsx)("span",{children:e.split(" ").slice(1).join(" ")})]}):e}),n&&(0,g.jsx)(Jl.Text,{className:"text-white mb-10",children:n}),(0,g.jsxs)(q.Flex,{align:"center",justify:"center",gap:2,direction:"col",className:"lg:justify-start md:flex-row",children:[(t==null?void 0:t.label)&&(0,g.jsx)(Pl.Button,{variant:"default","aria-label":t==null?void 0:t.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:a.href,target:a.target,rel:a.rel,children:t==null?void 0:t.label})}),(i==null?void 0:i.label)&&(0,g.jsx)(Pl.Button,{variant:"secondary",className:"bg-white border hover:bg-gray-300 inline-block font-default text-default transition duration-200 rounded-global","aria-label":i==null?void 0:i.label,asChild:!0,children:(0,g.jsx)(K.Link,{href:P.href,target:P.target,rel:P.rel,children:i==null?void 0:i.label})})]})]})}),(0,g.jsx)("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 z-20 flex gap-2",children:l.map((F,L)=>(0,g.jsx)(je.SwiperPagination,{colorScheme:"white",isActive:L===o,onClick:()=>m(L),ariaLabel:`Go to slide ${L+1}`},L))})]})})}var Pl,q,$e,K,Kl,je,J,Jl,O,g,Tl=S(()=>{"use strict";Pl=require("@stackshift-ui/button"),je=require("@stackshift-ui/swiper-pagination"),O=require("react")});var ai={};C(ai,{Header:()=>We,Header_A:()=>Q,Header_B:()=>B,Header_C:()=>nl,Header_D:()=>ol,Header_E:()=>kl,Header_F:()=>wl,Header_G:()=>dl});module.exports=Oe(ai);var xi={variant_a:(0,O.lazy)(()=>Promise.resolve().then(()=>(U(),Ql))),variant_b:(0,O.lazy)(()=>Promise.resolve().then(()=>(ll(),le))),variant_c:(0,O.lazy)(()=>Promise.resolve().then(()=>(sl(),se))),variant_d:(0,O.lazy)(()=>Promise.resolve().then(()=>(xl(),xe))),variant_e:(0,O.lazy)(()=>Promise.resolve().then(()=>(pl(),we))),variant_f:(0,O.lazy)(()=>Promise.resolve().then(()=>(Nl(),_e))),variant_g:(0,O.lazy)(()=>Promise.resolve().then(()=>(Tl(),Re)))},bi="Header",We=({data:l})=>{var i,r,o,x,f,m,b,a,P,h,d,T,H,$,z,j,M,F,L,Hl,Sl,Cl,Il,_l,Fl,$l,zl,jl,Ml,Rl,Wl,Al,ul,ql,Dl,El;let e=l==null?void 0:l.variant,n=e&&xi[e],t={mainImage:(r=(i=l==null?void 0:l.variants)==null?void 0:i.mainImage)!=null?r:void 0,images:(x=(o=l==null?void 0:l.variants)==null?void 0:o.images)!=null?x:void 0,mediaItems:(m=(f=l==null?void 0:l.variants)==null?void 0:f.mediaItems)!=null?m:void 0,title:(a=(b=l==null?void 0:l.variants)==null?void 0:b.title)!=null?a:void 0,subtitle:(h=(P=l==null?void 0:l.variants)==null?void 0:P.subtitle)!=null?h:void 0,description:(T=(d=l==null?void 0:l.variants)==null?void 0:d.description)!=null?T:void 0,primaryButton:($=(H=l==null?void 0:l.variants)==null?void 0:H.primaryButton)!=null?$:void 0,secondaryButton:(j=(z=l==null?void 0:l.variants)==null?void 0:z.secondaryButton)!=null?j:void 0,videoLink:(F=(M=l==null?void 0:l.variants)==null?void 0:M.youtubeLink)!=null?F:void 0,formLinks:(Hl=(L=l==null?void 0:l.variants)==null?void 0:L.formLinks)!=null?Hl:void 0,form:(Cl=(Sl=l==null?void 0:l.variants)==null?void 0:Sl.form)!=null?Cl:void 0,spacing:(_l=(Il=l==null?void 0:l.variants)==null?void 0:Il.spacing)!=null?_l:void 0,isOrdered:($l=(Fl=l==null?void 0:l.variants)==null?void 0:Fl.isOrdered)!=null?$l:void 0,startingPosition:(jl=(zl=l==null?void 0:l.variants)==null?void 0:zl.startingPosition)!=null?jl:void 0,headerSections:(Rl=(Ml=l==null?void 0:l.variants)==null?void 0:Ml.headerSections)!=null?Rl:void 0,subtitlePosition:(Al=(Wl=l==null?void 0:l.variants)==null?void 0:Wl.subtitlePosition)!=null?Al:void 0,isFullWidth:(ql=(ul=l==null?void 0:l.variants)==null?void 0:ul.isFullWidth)!=null?ql:void 0,position:(El=(Dl=l==null?void 0:l.variants)==null?void 0:Dl.position)!=null?El:void 0};return n?(0,g.jsx)(n,{...t}):null};We.displayName=bi;U();ll();sl();xl();pl();Nl();Tl();0&&(module.exports={Header,Header_A,Header_B,Header_C,Header_D,Header_E,Header_F,Header_G});
|
package/dist/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";import{a as p}from"./chunk-YONFC5QQ.mjs";import{a as x}from"./chunk-TGXSJZFD.mjs";import{a as o}from"./chunk-KTNFPZEI.mjs";import{a as r}from"./chunk-GWCAKTWK.mjs";import{a as e}from"./chunk-EQ2IKL2P.mjs";import{a as t}from"./chunk-EJ4QPSAH.mjs";import{a as f}from"./chunk-T5ODG4Q5.mjs";import{a as m}from"./chunk-BK26DQRD.mjs";import"./chunk-W2QPS3BW.mjs";export{x as Header,o as Header_A,r as Header_B,e as Header_C,t as Header_D,f as Header_E,m as Header_F,p as Header_G};
|
package/dist/types.d.ts
DELETED
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
import { PortableTextComponents } from "@portabletext/react";
|
|
2
|
-
import { ButtonProps } from "./header";
|
|
3
|
-
export type StyleVariants<T extends string> = Record<T, string>;
|
|
4
|
-
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
5
|
-
export interface MainImage {
|
|
6
|
-
image: string;
|
|
7
|
-
alt?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface LabeledRoute extends ConditionalLink {
|
|
10
|
-
ariaLabel?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
linkTarget?: string;
|
|
13
|
-
linkType?: string;
|
|
14
|
-
_type?: string;
|
|
15
|
-
linkInternal?: any;
|
|
16
|
-
}
|
|
17
|
-
export interface ConditionalLink {
|
|
18
|
-
type?: string;
|
|
19
|
-
internalLink?: string | null;
|
|
20
|
-
externalLink?: string | null;
|
|
21
|
-
}
|
|
22
|
-
export interface StatItems {
|
|
23
|
-
label?: string;
|
|
24
|
-
mainImage?: MainImage;
|
|
25
|
-
value?: string;
|
|
26
|
-
_key?: string;
|
|
27
|
-
_type?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface Logo extends ConditionalLink {
|
|
30
|
-
alt?: string;
|
|
31
|
-
linkTarget?: string;
|
|
32
|
-
image?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface Images {
|
|
35
|
-
image?: string | null;
|
|
36
|
-
video?: string | null;
|
|
37
|
-
_key?: string;
|
|
38
|
-
_type?: string;
|
|
39
|
-
alt?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface ContactDetails {
|
|
42
|
-
addressInfo?: string;
|
|
43
|
-
contactInfo?: string;
|
|
44
|
-
emailInfo?: string;
|
|
45
|
-
_key?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface SocialLink {
|
|
48
|
-
socialMedia?: string | null;
|
|
49
|
-
socialMediaLink?: string | null;
|
|
50
|
-
_key?: string | null;
|
|
51
|
-
_type?: string | null;
|
|
52
|
-
socialMediaIcon?: {
|
|
53
|
-
alt?: string;
|
|
54
|
-
image?: string;
|
|
55
|
-
} | null;
|
|
56
|
-
socialMediaPlatform?: string | null;
|
|
57
|
-
}
|
|
58
|
-
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
59
|
-
_key?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface ArrayOfImageTitleAndText {
|
|
62
|
-
mainImage?: {
|
|
63
|
-
alt?: string;
|
|
64
|
-
image?: string;
|
|
65
|
-
};
|
|
66
|
-
plainText?: string;
|
|
67
|
-
title?: string;
|
|
68
|
-
_key?: string;
|
|
69
|
-
_type?: string;
|
|
70
|
-
}
|
|
71
|
-
export interface FeaturedItem {
|
|
72
|
-
description?: string;
|
|
73
|
-
mainImage?: MainImage;
|
|
74
|
-
title?: string;
|
|
75
|
-
subtitle?: string;
|
|
76
|
-
_key?: string;
|
|
77
|
-
_type?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface ArrayOfTitleAndText {
|
|
80
|
-
_key?: string;
|
|
81
|
-
plainText?: string;
|
|
82
|
-
title?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface BlogPost extends SanityBody {
|
|
85
|
-
authors?: Author[] | null;
|
|
86
|
-
body?: any;
|
|
87
|
-
categories?: Category[] | null;
|
|
88
|
-
excerpt?: string | null;
|
|
89
|
-
link?: string | null;
|
|
90
|
-
mainImage?: string | null;
|
|
91
|
-
publishedAt?: string;
|
|
92
|
-
seo?: Seo | null;
|
|
93
|
-
slug?: SanitySlug | null;
|
|
94
|
-
title?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface Seo {
|
|
97
|
-
_type?: string;
|
|
98
|
-
seoTitle?: string;
|
|
99
|
-
seoDescription?: string;
|
|
100
|
-
seoImage?: string;
|
|
101
|
-
seoKeywords?: string;
|
|
102
|
-
seoSynonyms?: string;
|
|
103
|
-
}
|
|
104
|
-
export interface SanitySlug {
|
|
105
|
-
current?: string;
|
|
106
|
-
_type?: "slug";
|
|
107
|
-
}
|
|
108
|
-
export interface SanityBody {
|
|
109
|
-
_createdAt?: string;
|
|
110
|
-
_id?: string;
|
|
111
|
-
_rev?: string;
|
|
112
|
-
_type?: string;
|
|
113
|
-
_updatedAt?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface Author extends SanityBody {
|
|
116
|
-
link?: string | null;
|
|
117
|
-
bio?: string | null;
|
|
118
|
-
name?: string | null;
|
|
119
|
-
slug?: SanitySlug | null;
|
|
120
|
-
image?: string | null;
|
|
121
|
-
profile?: {
|
|
122
|
-
alt: string;
|
|
123
|
-
image: string;
|
|
124
|
-
} | null;
|
|
125
|
-
}
|
|
126
|
-
export interface Category extends SanityBody {
|
|
127
|
-
title?: string;
|
|
128
|
-
}
|
|
129
|
-
export interface Form {
|
|
130
|
-
id?: string | null;
|
|
131
|
-
buttonLabel?: string | null;
|
|
132
|
-
name?: string | null;
|
|
133
|
-
subtitle?: string | null;
|
|
134
|
-
fields?: FormFields[] | null;
|
|
135
|
-
thankYouPage?: ThankYouPage | null;
|
|
136
|
-
}
|
|
137
|
-
export interface FormFields {
|
|
138
|
-
name?: string;
|
|
139
|
-
placeholder?: string;
|
|
140
|
-
pricingType?: string;
|
|
141
|
-
type?: FormTypes;
|
|
142
|
-
_key?: string;
|
|
143
|
-
_type?: string;
|
|
144
|
-
isRequired?: boolean;
|
|
145
|
-
label?: string;
|
|
146
|
-
items?: string[];
|
|
147
|
-
}
|
|
148
|
-
export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
|
|
149
|
-
export interface ThankYouPage {
|
|
150
|
-
externalLink?: string | null;
|
|
151
|
-
internalLink?: string | null;
|
|
152
|
-
linkInternal?: any;
|
|
153
|
-
linkTarget?: string;
|
|
154
|
-
linkType?: string;
|
|
155
|
-
type?: string;
|
|
156
|
-
}
|
|
157
|
-
export interface SectionsProps {
|
|
158
|
-
template?: Template;
|
|
159
|
-
data?: Sections;
|
|
160
|
-
variant?: string | null | undefined;
|
|
161
|
-
schema?: Variants;
|
|
162
|
-
}
|
|
163
|
-
export interface Sections extends SanityBody {
|
|
164
|
-
label?: string;
|
|
165
|
-
variant?: string;
|
|
166
|
-
variants?: Variants;
|
|
167
|
-
_key?: string;
|
|
168
|
-
}
|
|
169
|
-
export interface Variants {
|
|
170
|
-
template?: Template;
|
|
171
|
-
multipleMenus?: any;
|
|
172
|
-
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
173
|
-
logo?: Logo | null;
|
|
174
|
-
imageSrc?: string | null;
|
|
175
|
-
primaryButton?: LabeledRoute | null;
|
|
176
|
-
secondaryButton?: LabeledRoute | null;
|
|
177
|
-
routes?: LabeledRouteWithKey[] | null;
|
|
178
|
-
menu?: LabeledRouteWithKey[] | null;
|
|
179
|
-
plans?: Plans[] | null;
|
|
180
|
-
formLinks?: LabeledRouteWithKey[] | null;
|
|
181
|
-
portfolios?: Portfolios[] | null;
|
|
182
|
-
portfoliosWithCategories?: PortfoliosWithCategories[] | null;
|
|
183
|
-
length?: number;
|
|
184
|
-
signInLink?: LabeledRoute | null;
|
|
185
|
-
signinLink?: LabeledRoute | null;
|
|
186
|
-
tags?: string[] | null;
|
|
187
|
-
posts?: BlogPost[] | null;
|
|
188
|
-
position?: "left" | "center" | "right";
|
|
189
|
-
blogsPerPage?: number | null;
|
|
190
|
-
form?: Form | null;
|
|
191
|
-
collections?: Collection | null;
|
|
192
|
-
products?: CollectionProduct | null;
|
|
193
|
-
allProducts?: Collection[];
|
|
194
|
-
subtitle?: string | null;
|
|
195
|
-
caption?: string | null;
|
|
196
|
-
title?: string | null;
|
|
197
|
-
plainText?: string | null;
|
|
198
|
-
contactDescription?: string | null;
|
|
199
|
-
officeInformation?: string | null;
|
|
200
|
-
contactEmail?: string | null;
|
|
201
|
-
contactNumber?: string | null;
|
|
202
|
-
socialLinks?: SocialLink[] | null;
|
|
203
|
-
block?: any;
|
|
204
|
-
heading?: string | null;
|
|
205
|
-
acceptButtonLabel?: string | null;
|
|
206
|
-
declineButtonLabel?: string | null;
|
|
207
|
-
faqsWithCategories?: FaqsWithCategory[] | null;
|
|
208
|
-
faqs?: AskedQuestion[] | null;
|
|
209
|
-
arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
|
|
210
|
-
description?: string | null;
|
|
211
|
-
featuredItems?: FeaturedItem[] | null;
|
|
212
|
-
images?: Images[] | null;
|
|
213
|
-
mediaItems?: Images[] | null;
|
|
214
|
-
contactDetails?: ContactDetails[] | null;
|
|
215
|
-
copyright?: string | null;
|
|
216
|
-
mainImage?: MainImage | null;
|
|
217
|
-
youtubeLink?: string | null;
|
|
218
|
-
banner?: any;
|
|
219
|
-
stats?: StatItems[] | null;
|
|
220
|
-
teams?: Team[] | null;
|
|
221
|
-
testimonials?: Testimonial[] | null;
|
|
222
|
-
selectStripeAccount?: string;
|
|
223
|
-
annualBilling?: string;
|
|
224
|
-
monthlyBilling?: string;
|
|
225
|
-
productDetails?: ProductDetail[];
|
|
226
|
-
btnLabel?: string;
|
|
227
|
-
selectAccount?: string;
|
|
228
|
-
hashtags?: string[];
|
|
229
|
-
numberOfPosts?: number;
|
|
230
|
-
text?: string;
|
|
231
|
-
button?: LabeledRoute;
|
|
232
|
-
features?: string[];
|
|
233
|
-
config?: {
|
|
234
|
-
enableAnalytics: boolean;
|
|
235
|
-
cookiePolicy?: {
|
|
236
|
-
siteName: string;
|
|
237
|
-
cookiePolicyPage: Reference;
|
|
238
|
-
};
|
|
239
|
-
consentModalPosition?: string;
|
|
240
|
-
};
|
|
241
|
-
contactLink?: LabeledRoute;
|
|
242
|
-
isFullWidth?: boolean;
|
|
243
|
-
subtitlePosition?: "top" | "bottom";
|
|
244
|
-
spacing?: number;
|
|
245
|
-
isOrdered?: boolean;
|
|
246
|
-
startingPosition?: "left" | "right";
|
|
247
|
-
headerSections?: HeaderSections[];
|
|
248
|
-
}
|
|
249
|
-
export interface HeaderBox extends HeaderSections {
|
|
250
|
-
isImageLeft?: boolean;
|
|
251
|
-
isFullWidth?: boolean;
|
|
252
|
-
index?: number;
|
|
253
|
-
isOrdered?: boolean;
|
|
254
|
-
}
|
|
255
|
-
export interface HeaderSections {
|
|
256
|
-
_key: string;
|
|
257
|
-
title?: string;
|
|
258
|
-
subtitle?: string;
|
|
259
|
-
description?: string;
|
|
260
|
-
mainImage?: {
|
|
261
|
-
image: any;
|
|
262
|
-
alt?: string;
|
|
263
|
-
};
|
|
264
|
-
imageTitle?: any;
|
|
265
|
-
alignment?: string;
|
|
266
|
-
imageHeight?: "sm" | "md" | "lg";
|
|
267
|
-
columnContent?: any;
|
|
268
|
-
primaryButton?: ButtonProps;
|
|
269
|
-
}
|
|
270
|
-
export interface Template {
|
|
271
|
-
bg?: string;
|
|
272
|
-
color?: string;
|
|
273
|
-
}
|
|
274
|
-
export type Plans = {
|
|
275
|
-
_key?: string | null;
|
|
276
|
-
_type?: "planItems" | null;
|
|
277
|
-
checkoutButtonName?: string | null;
|
|
278
|
-
description?: string | null;
|
|
279
|
-
monthlyPrice?: string | null;
|
|
280
|
-
planType?: string | null;
|
|
281
|
-
yearlyPrice?: string | null;
|
|
282
|
-
planIncludes?: string[] | null;
|
|
283
|
-
primaryButton?: LabeledRoute | null;
|
|
284
|
-
} & Record<string, string>;
|
|
285
|
-
export interface Portfolios {
|
|
286
|
-
dateAdded?: string | null;
|
|
287
|
-
mainImage?: {
|
|
288
|
-
image?: string | null;
|
|
289
|
-
alt?: string | null;
|
|
290
|
-
} | null;
|
|
291
|
-
primaryButton?: LabeledRoute | null;
|
|
292
|
-
title?: string | null;
|
|
293
|
-
_key?: string | null;
|
|
294
|
-
_type?: string | null;
|
|
295
|
-
}
|
|
296
|
-
export interface PortfoliosWithCategories {
|
|
297
|
-
category?: string | null;
|
|
298
|
-
content?: Content[] | null;
|
|
299
|
-
primaryButton?: LabeledRoute | null;
|
|
300
|
-
_key?: string | null;
|
|
301
|
-
_type?: string | null;
|
|
302
|
-
}
|
|
303
|
-
export interface Content extends Portfolios {
|
|
304
|
-
description?: string | null;
|
|
305
|
-
subtitle?: string | null;
|
|
306
|
-
}
|
|
307
|
-
export interface Collection extends SanityBody {
|
|
308
|
-
collectionInfoVariant?: {
|
|
309
|
-
variant?: string;
|
|
310
|
-
} | null;
|
|
311
|
-
name?: string | null;
|
|
312
|
-
products?: CollectionProduct[] | null;
|
|
313
|
-
sections?: any;
|
|
314
|
-
seo?: Seo | null;
|
|
315
|
-
slug?: SanitySlug | null;
|
|
316
|
-
}
|
|
317
|
-
export interface CollectionProduct extends SanityBody {
|
|
318
|
-
compareToPrice?: number | null;
|
|
319
|
-
description?: string | null;
|
|
320
|
-
ecwidProductId?: number | null;
|
|
321
|
-
name?: string | null;
|
|
322
|
-
price?: number | null;
|
|
323
|
-
productInfo?: ProductInfo | null;
|
|
324
|
-
productInfoVariant?: {
|
|
325
|
-
variant?: string;
|
|
326
|
-
} | null;
|
|
327
|
-
sections?: any;
|
|
328
|
-
seo?: Seo | null;
|
|
329
|
-
slug?: SanitySlug | null;
|
|
330
|
-
}
|
|
331
|
-
interface ProductInfo {
|
|
332
|
-
btnLabel?: string | null;
|
|
333
|
-
images?: ProductInfoImage[] | null;
|
|
334
|
-
productDetails?: ProductDetail[] | null;
|
|
335
|
-
socialLinks?: SocialLink[] | null;
|
|
336
|
-
subtitle?: string | null;
|
|
337
|
-
}
|
|
338
|
-
export interface ProductDetail {
|
|
339
|
-
blockContent?: any;
|
|
340
|
-
contentType?: string;
|
|
341
|
-
tabName?: string;
|
|
342
|
-
_key?: string;
|
|
343
|
-
[key: string]: any;
|
|
344
|
-
}
|
|
345
|
-
interface ProductInfoImage {
|
|
346
|
-
alt?: string | null;
|
|
347
|
-
_key: string;
|
|
348
|
-
_type: string;
|
|
349
|
-
image?: string | null;
|
|
350
|
-
}
|
|
351
|
-
export interface FaqsWithCategory {
|
|
352
|
-
askedQuestions?: AskedQuestion[] | null;
|
|
353
|
-
category?: string | null;
|
|
354
|
-
_key?: string;
|
|
355
|
-
_type?: string;
|
|
356
|
-
}
|
|
357
|
-
export interface AskedQuestion {
|
|
358
|
-
answer?: string | null;
|
|
359
|
-
question?: string | null;
|
|
360
|
-
hidden?: boolean;
|
|
361
|
-
_key?: string;
|
|
362
|
-
_type?: string;
|
|
363
|
-
}
|
|
364
|
-
export interface Team {
|
|
365
|
-
jobTitle?: string;
|
|
366
|
-
mainImage?: MainImage;
|
|
367
|
-
name?: string;
|
|
368
|
-
plainText?: string;
|
|
369
|
-
_key?: string;
|
|
370
|
-
_type?: string;
|
|
371
|
-
}
|
|
372
|
-
export interface Testimonial {
|
|
373
|
-
jobTitle?: string;
|
|
374
|
-
mainImage?: MainImage;
|
|
375
|
-
name?: string;
|
|
376
|
-
rating?: string;
|
|
377
|
-
testimony?: string;
|
|
378
|
-
_key?: string;
|
|
379
|
-
_type?: string;
|
|
380
|
-
}
|
|
381
|
-
export declare interface Reference {
|
|
382
|
-
_type: string;
|
|
383
|
-
_ref: string;
|
|
384
|
-
_key?: string;
|
|
385
|
-
_weak?: boolean;
|
|
386
|
-
_strengthenOnPublish?: {
|
|
387
|
-
type: string;
|
|
388
|
-
weak?: boolean;
|
|
389
|
-
template?: {
|
|
390
|
-
id: string;
|
|
391
|
-
params: Record<string, string | number | boolean>;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
export type MyPortableTextComponents = PortableTextComponents & {
|
|
396
|
-
code?: ({ value }: {
|
|
397
|
-
value: {
|
|
398
|
-
language?: string;
|
|
399
|
-
code?: string;
|
|
400
|
-
};
|
|
401
|
-
}) => JSX.Element;
|
|
402
|
-
};
|
|
403
|
-
export {};
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var b=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},m=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of i(e))!P.call(t,l)&&l!==r&&a(t,l,{get:()=>e[l],enumerable:!(n=c(e,l))||n.enumerable});return t};var x=t=>m(a({},"__esModule",{value:!0}),t);var p={};b(p,{customBlockStyle:()=>h});module.exports=x(p);var o=require("react/jsx-runtime"),h=({className:t})=>({block:{h1:e=>(0,o.jsx)("h1",{className:`h1 ${t}`,children:e.children}),h2:e=>(0,o.jsx)("h2",{className:`h2 ${t}`,children:e.children}),h3:e=>(0,o.jsx)("h3",{className:`h3 ${t}`,children:e.children}),h4:e=>(0,o.jsx)("h4",{className:`h4 ${t}`,children:e.children}),normal:e=>(0,o.jsx)("p",{className:`text-normal lg:text-left sm:text-lg sm:!leading-[32px] font-normal font-body-kb tracking-wide ${t}`,children:e.children}),blockquote:e=>(0,o.jsxs)("blockquote",{className:`my-5 px-14 leading-loose italic ${t}`,children:["- ",e.children]})},code:e=>(0,o.jsx)("pre",{"data-language":e.value.language,className:t,children:(0,o.jsx)("code",{children:e.value.code})}),list:{bullet:e=>(0,o.jsx)("ul",{className:`pl-4 list-disc font-light ${t}`,children:e.children}),number:e=>(0,o.jsx)("ol",{className:`pl-4 list-decimal font-light ${t}`,children:e.children})},listItem:{bullet:e=>(0,o.jsx)("li",{className:`font-light ${t}`,children:e.children})},marks:{strong:e=>(0,o.jsx)("strong",{className:`font-bold ${t}`,children:e.children}),em:e=>(0,o.jsx)("em",{className:t,children:e.children}),code:e=>(0,o.jsx)("code",{className:t,children:e.children}),link:e=>{var r,n,l;return(0,o.jsx)("a",{"aria-label":(n=(r=e.children)==null?void 0:r.toString())!=null?n:"external link",className:`underline underline-offset-2 decoration-gray-2 decoration-1 hover:decoration-2 ${t}`,href:(l=e.value)==null?void 0:l.href,target:"_blank",rel:"noopener noreferrer",children:e.children})}},types:{image:e=>(0,o.jsxs)("div",{className:`my-5 ${t}`,children:[(0,o.jsx)("img",{src:e.value.toString(),alt:e.value.alt||"Image",className:`w-full h-auto ${t}`}),e.value.caption&&(0,o.jsx)("p",{className:`text-center text-sm text-gray-600 ${t}`,children:e.value.caption})]})}});0&&(module.exports={customBlockStyle});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-W2QPS3BW.mjs";export{a as customBlockStyle};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|