@stackshift-ui/features 6.0.6-beta.2 → 6.0.6-beta.3
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-6ZXDHGFT.mjs → chunk-37NVYEW6.mjs} +1 -1
- package/dist/chunk-M4ZCOWFN.mjs +1 -0
- package/dist/features.js +1 -1
- package/dist/features.mjs +1 -1
- package/dist/features_f.js +1 -1
- package/dist/features_f.mjs +1 -1
- package/dist/features_g.js +1 -1
- package/dist/features_g.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +14 -14
- package/src/features_f.tsx +3 -3
- package/src/features_g.tsx +3 -3
- package/dist/chunk-XYIY6ZNZ.mjs +0 -1
- /package/dist/{chunk-BMTOAWXW.mjs → chunk-HAXWIVPS.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Container as s}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as d}from"@stackshift-ui/text";import h from"react";import{jsx as l,jsxs as a}from"react/jsx-runtime";function b({caption:e,title:t,description:r,images:n,tags:i}){return l(w,{className:"py-20 bg-background",children:l(s,{maxWidth:1280,children:a(u,{wrap:!0,align:"center",children:[l("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(s,{maxWidth:448,children:[l(N,{caption:e,title:t,description:r}),l(F,{tags:i})]})}),l(I,{images:n})]})})})}function N({caption:e,title:t,description:r}){return a(h.Fragment,{children:[e&&l(d,{weight:"bold",className:"text-secondary",children:e}),t&&l(v,{fontSize:"3xl",className:"mb-3",children:t}),r&&l(d,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function F({tags:e}){return e?l("ul",{className:"font-bold text-gray-500",children:e.map(t=>l(y,{item:t}))}):null}function y({item:e}){return e?a(u,{as:"li",align:"center",className:"mb-2 ",children:[l("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:l("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),l("span",{children:e})]}):null}function I({images:e}){var r,n,i,o;if(!e||(e==null?void 0:e.length)===0)return null;function t(g,m,f,c,p){return l("div",{className:`overflow-hidden ${p}`,children:l(x,{className:"object-cover w-full h-
|
|
1
|
+
import{Container as s}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as d}from"@stackshift-ui/text";import h from"react";import{jsx as l,jsxs as a}from"react/jsx-runtime";function b({caption:e,title:t,description:r,images:n,tags:i}){return l(w,{className:"py-20 bg-background",children:l(s,{maxWidth:1280,children:a(u,{wrap:!0,align:"center",children:[l("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(s,{maxWidth:448,children:[l(N,{caption:e,title:t,description:r}),l(F,{tags:i})]})}),l(I,{images:n})]})})})}function N({caption:e,title:t,description:r}){return a(h.Fragment,{children:[e&&l(d,{weight:"bold",className:"text-secondary",children:e}),t&&l(v,{fontSize:"3xl",className:"mb-3",children:t}),r&&l(d,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function F({tags:e}){return e?l("ul",{className:"font-bold text-gray-500",children:e.map(t=>l(y,{item:t}))}):null}function y({item:e}){return e?a(u,{as:"li",align:"center",className:"mb-2 ",children:[l("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:l("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),l("span",{children:e})]}):null}function I({images:e}){var r,n,i,o;if(!e||(e==null?void 0:e.length)===0)return null;function t(g,m,f,c,p){return l("div",{className:`overflow-hidden rounded-md ${p}`,children:l(x,{className:"object-cover w-full h-full",src:g,sizes:"100vw",width:f,height:c,alt:m!=null?m:"feature-image"})})}return a("div",{className:"w-full lg:w-1/2",children:[a("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),a("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((i=e[2])==null?void 0:i.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((o=e[3])==null?void 0:o.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Button as x}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as f}from"@stackshift-ui/text";import{jsx as l,jsxs as t}from"react/jsx-runtime";function N({caption:e,title:a,description:i,images:n,primaryButton:o}){return l(w,{className:"py-20 bg-background",children:l(d,{maxWidth:1280,children:t(s,{wrap:!0,align:"center",children:[t(s,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[l(p,{caption:e,title:a,description:i}),l(F,{primaryButton:o})]}),l(C,{images:n})]})})})}function p({caption:e,title:a,description:i}){return t(d,{maxWidth:448,className:"ml-0",children:[e&&l(f,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&l(v,{fontSize:"3xl",className:"mb-6",children:a}),i&&l(f,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function F({primaryButton:e}){return e!=null&&e.label?l(d,{maxWidth:448,className:"ml-0",children:l(x,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}function C({images:e}){var i,n,o,m;if(!e||(e==null?void 0:e.length)===0)return null;function a(c,r,g,u,b){return l("div",{className:`overflow-hidden rounded-md ${b}`,children:l(h,{className:"object-cover w-full h-full",src:c,sizes:"100vw",width:g,height:u,alt:r!=null?r:"feature-image"})})}return t("div",{className:"w-full lg:w-1/2",children:[t("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=e[0])==null?void 0:i.image)&&a(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),t("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((o=e[2])==null?void 0:o.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((m=e[3])==null?void 0:m.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}export{N as a};
|
package/dist/features.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var xn=Object.create;var R=Object.defineProperty;var un=Object.getOwnPropertyDescriptor;var wn=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty;var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var h=(t,n)=>{for(var i in n)R(t,i,{get:n[i],enumerable:!0})},it=(t,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of wn(n))!vn.call(t,e)&&e!==i&&R(t,e,{get:()=>n[e],enumerable:!(l=un(n,e))||l.enumerable});return t};var F=(t,n,i)=>(i=t!=null?xn(bn(t)):{},it(n||!t||!t.__esModule?R(i,"default",{value:t,enumerable:!0}):i,t)),hn=t=>it(R({},"__esModule",{value:!0}),t);var at={};h(at,{Features_A:()=>mt,default:()=>mt});function mt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(L.Container,{maxWidth:1280,children:[(0,d.jsx)(L.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(Nn,{caption:t,title:n,description:i})}),(0,d.jsx)(lt.Flex,{wrap:!0,children:(0,d.jsx)(fn,{features:l})})]})})}function Nn({caption:t,title:n,description:i}){return(0,d.jsxs)(_.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function fn({features:t}){return t?(0,d.jsx)(_.default.Fragment,{children:t==null?void 0:t.map(n=>(0,d.jsx)(Fn,{feature:n},n._key))}):null}function Fn({feature:t}){var n;return(0,d.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)(Tn,{feature:t}):null,t!=null&&t.title?(0,d.jsx)(k.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText}):null]})}function Tn({feature:t}){var n,i,l,e;return(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}):null}var L,lt,et,ot,rt,k,_,d,st=f(()=>{"use strict";L=require("@stackshift-ui/container"),lt=require("@stackshift-ui/flex"),et=require("@stackshift-ui/heading"),ot=require("@stackshift-ui/image"),rt=require("@stackshift-ui/section"),k=require("@stackshift-ui/text"),_=F(require("react")),d=require("react/jsx-runtime")});var wt={};h(wt,{Features_B:()=>ut,default:()=>ut});function ut({caption:t,title:n,description:i,features:l,tags:e}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(W.Container,{maxWidth:448,children:[(0,d.jsx)(yn,{caption:t,title:n,description:i}),(0,d.jsx)(Cn,{tags:e})]})}),(0,d.jsx)(kn,{features:l})]})})})}function yn({caption:t,title:n,description:i}){return(0,d.jsxs)(xt.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Cn({tags:t}){return t?(0,d.jsx)("ul",{children:t&&t.map(n=>(0,d.jsxs)("li",{className:"flex mb-4",children:[(0,d.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)(k.Text,{muted:!0,weight:"bold",children:n})]},n))}):null}function kn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((n,i)=>{var l,e,a,u;return(0,d.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,d.jsxs)(ct.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((l=n==null?void 0:n.mainImage)==null?void 0:l.image)&&(0,d.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(e=n==null?void 0:n.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(u=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?u:`features-image-${i}`})}),(0,d.jsx)(k.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:n==null?void 0:n.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText})]})},i)}))}):null}var ct,W,lt,et,ot,rt,k,xt,d,bt=f(()=>{"use strict";ct=require("@stackshift-ui/card"),W=require("@stackshift-ui/container"),xt=F(require("react"))});var Ct={};h(Ct,{Features_C:()=>yt,default:()=>yt});function yt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(W.Container,{maxWidth:1280,children:[(0,d.jsx)(W.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(An,{caption:t,title:n,description:i})}),(0,d.jsx)(Sn,{features:l})]})})}function An({caption:t,title:n,description:i}){return(0,d.jsxs)(Tt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Sn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,justify:"start",align:"stretch",className:"-mx-3",children:t.map(n=>(0,d.jsx)(Rn,{feature:n},n._key))}):null}function Rn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,d.jsxs)(vt.Card,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-main-image"})}),(0,d.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,d.jsx)(k.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}var vt,W,lt,et,ot,rt,k,Tt,d,kt=f(()=>{"use strict";vt=require("@stackshift-ui/card"),Tt=F(require("react"))});var _t={};h(_t,{Features_D:()=>Lt,default:()=>Lt});function Lt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsxs)($.Container,{maxWidth:1280,children:[(0,d.jsx)($.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,d.jsx)(In,{caption:t,title:n,description:i})}),(0,d.jsx)(zn,{features:l})]})})}function In({caption:t,title:n,description:i}){return(0,d.jsxs)(Pt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function zn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(n=>(0,d.jsx)(Pn,{feature:n},n._key))}):null}function Pn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,d.jsxs)(At.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ot.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}),(0,d.jsx)(k.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var At,$,lt,et,ot,rt,k,Pt,d,Wt=f(()=>{"use strict";At=require("@stackshift-ui/card"),Pt=F(require("react"))});var Bt={};h(Bt,{Features_E:()=>Gt,default:()=>Gt});function Gt({featuredItems:t}){let[n,i]=M.default.useState(0);return(0,d.jsx)(rt.Section,{className:"py-20 overflow-d-auto bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsx)($t.Flex,{className:"relative",children:(0,d.jsx)(Wn,{featuredItems:t,slider:e=>{t&&(e==="next"?n!==t.length-1?i(a=>a+1):i(0):n>=1?i(a=>a-1):i(t.length-1))},children:(0,d.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,d.jsx)(Ln,{featuredItems:t,item:n}),(0,d.jsx)(_n,{featuredItems:t,item:n})]})})})})})}function Ln({featuredItems:t,item:n}){var i,l,e,a,u,p,w;return(l=(i=t==null?void 0:t[n])==null?void 0:i.mainImage)!=null&&l.image?(0,d.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,d.jsx)(ot.Image,{className:"relative object-cover rounded-md",src:`${(a=(e=t==null?void 0:t[n])==null?void 0:e.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(w=(p=(u=t==null?void 0:t[n])==null?void 0:u.mainImage)==null?void 0:p.alt)!=null?w:`features-image-${n}`})}):null}function _n({featuredItems:t,item:n}){var i,l,e,a,u,p;return t?(0,d.jsxs)(Ht.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[n])==null?void 0:i.subtitle)&&((l=t==null?void 0:t[n])==null?void 0:l.subtitle)}),(0,d.jsx)(et.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[n])==null?void 0:e.title)&&((a=t==null?void 0:t[n])==null?void 0:a.title)}),(0,d.jsx)(k.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((u=t==null?void 0:t[n])==null?void 0:u.description)&&((p=t==null?void 0:t[n])==null?void 0:p.description)})]}):null}function Wn({featuredItems:t,children:n,slider:i}){return t?(0,d.jsxs)(M.default.Fragment,{children:[(0,d.jsx)("div",{className:"absolute left-0 ot-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(j.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"ot-10 p-4 text-white ",onClick:()=>i("prev"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),n,(0,d.jsx)("div",{className:"absolute right-0 ot-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(j.Button,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>i("next"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var j,Ht,W,$t,et,ot,rt,k,M,d,Dt=f(()=>{"use strict";j=require("@stackshift-ui/button"),Ht=require("@stackshift-ui/card"),M=F(require("react"))});var Ut={};h(Ut,{Features_F:()=>Qt,default:()=>Qt});function Qt({caption:t,title:n,description:i,images:l,primaryButton:e}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsxs)(lt.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,d.jsx)(Hn,{caption:t,title:n,description:i}),(0,d.jsx)(On,{primaryButton:e})]}),(0,d.jsx)($n,{images:l})]})})})}function Hn({caption:t,title:n,description:i}){return(0,d.jsxs)(W.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-6",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function On({primaryButton:t}){return t!=null&&t.label?(0,d.jsx)(W.Container,{maxWidth:448,className:"ml-0",children:(0,d.jsx)(Et.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})}):null}function $n({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(u,p,w,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ot.Image,{className:"object-cover w-full h-auto rounded-md",src:u,sizes:"100vw",width:w,height:b,alt:p!=null?p:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-full")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var Et,W,lt,et,ot,rt,k,d,Xt=f(()=>{"use strict";Et=require("@stackshift-ui/button")});var en={};h(en,{Features_G:()=>ln,default:()=>ln});function ln({caption:t,title:n,description:i,images:l,tags:e}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(D.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(D.Container,{maxWidth:448,children:[(0,d.jsx)(jn,{caption:t,title:n,description:i}),(0,d.jsx)(Vn,{tags:e})]})}),(0,d.jsx)(Gn,{images:l})]})})})}function jn({caption:t,title:n,description:i}){return(0,d.jsxs)(nn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-3",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function Vn({tags:t}){return t?(0,d.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(n=>(0,d.jsx)(Mn,{item:n}))}):null}function Mn({item:t}){return t?(0,d.jsxs)(lt.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,d.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)("span",{children:t})]}):null}function Gn({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(u,p,w,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ot.Image,{className:"object-cover w-full h-auto rounded-md",src:u,sizes:"100vw",width:w,height:b,alt:p!=null?p:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-full")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var D,lt,et,ot,rt,k,nn,d,on=f(()=>{"use strict";D=require("@stackshift-ui/container"),nn=F(require("react"))});var cn={};h(cn,{Features_H:()=>sn,default:()=>sn});function sn({caption:t,title:n,features:i,images:l}){return(0,d.jsx)(rt.Section,{className:"py-20 bg-background",children:(0,d.jsx)(J.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(J.Container,{maxWidth:448,children:[(0,d.jsx)(Bn,{caption:t,title:n}),(0,d.jsx)(Dn,{features:i})]})}),(0,d.jsx)(Jn,{images:l})]})})})}function Bn({caption:t,title:n}){return(0,d.jsxs)(an.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function Dn({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,d.jsx)("ul",{children:t.map(n=>(0,d.jsx)(En,{feature:n},n._key))})}function En({feature:t}){return t?(0,d.jsxs)(lt.Flex,{as:"li",className:"mb-5",children:[(0,d.jsx)(qn,{}),(0,d.jsxs)("div",{className:"max-w-xs",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function qn(){return(0,d.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function Jn({images:t}){var n,i,l,e,a,u,p,w,b,v,y,C;return!t||(t==null?void 0:t.length)===0?null:(0,d.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,d.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,d.jsx)(ot.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(l=t==null?void 0:t[0])==null?void 0:l.alt)!=null?e:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,d.jsx)(ot.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(u=t==null?void 0:t[1])==null?void 0:u.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(w=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?w:"features-image-2"})]}),((b=t==null?void 0:t[2])==null?void 0:b.image)&&(0,d.jsx)(ot.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(C=(y=t==null?void 0:t[2])==null?void 0:y.alt)!=null?C:"features-image-3"})]})}var J,lt,et,ot,rt,k,an,d,dn=f(()=>{"use strict";J=require("@stackshift-ui/container"),an=F(require("react"))});var Un={};h(Un,{Features:()=>gn});module.exports=hn(Un);var N=require("react"),Kn={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(st(),at))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(bt(),wt))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(kt(),Ct))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(Wt(),_t))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(Dt(),Bt))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(Xt(),Ut))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(on(),en))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(dn(),cn)))},Qn="Features",gn=({data:t})=>{var e,a,u,p,w,b,v,y,C,Q,U,X,Y,Z,tt,nt;let n=t==null?void 0:t.variant,i=n&&Kn[n],l={caption:(a=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?a:void 0,title:(p=(u=t==null?void 0:t.variants)==null?void 0:u.title)!=null?p:void 0,description:(b=(w=t==null?void 0:t.variants)==null?void 0:w.description)!=null?b:void 0,features:(y=(v=t==null?void 0:t.variants)==null?void 0:v.arrayOfImageTitleAndText)!=null?y:void 0,tags:(Q=(C=t==null?void 0:t.variants)==null?void 0:C.tags)!=null?Q:void 0,featuredItems:(X=(U=t==null?void 0:t.variants)==null?void 0:U.featuredItems)!=null?X:void 0,images:(Z=(Y=t==null?void 0:t.variants)==null?void 0:Y.images)!=null?Z:void 0,primaryButton:(nt=(tt=t==null?void 0:t.variants)==null?void 0:tt.primaryButton)!=null?nt:void 0};return i?(0,d.jsx)(i,{...l}):null};gn.displayName=Qn;0&&(module.exports={Features});
|
|
1
|
+
"use strict";var xn=Object.create;var R=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty;var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var h=(t,n)=>{for(var i in n)R(t,i,{get:n[i],enumerable:!0})},it=(t,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of un(n))!vn.call(t,e)&&e!==i&&R(t,e,{get:()=>n[e],enumerable:!(l=wn(n,e))||l.enumerable});return t};var F=(t,n,i)=>(i=t!=null?xn(bn(t)):{},it(n||!t||!t.__esModule?R(i,"default",{value:t,enumerable:!0}):i,t)),hn=t=>it(R({},"__esModule",{value:!0}),t);var at={};h(at,{Features_A:()=>mt,default:()=>mt});function mt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(L.Container,{maxWidth:1280,children:[(0,d.jsx)(L.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(Nn,{caption:t,title:n,description:i})}),(0,d.jsx)(lt.Flex,{wrap:!0,children:(0,d.jsx)(fn,{features:l})})]})})}function Nn({caption:t,title:n,description:i}){return(0,d.jsxs)(_.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function fn({features:t}){return t?(0,d.jsx)(_.default.Fragment,{children:t==null?void 0:t.map(n=>(0,d.jsx)(Fn,{feature:n},n._key))}):null}function Fn({feature:t}){var n;return(0,d.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)(Tn,{feature:t}):null,t!=null&&t.title?(0,d.jsx)(k.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText}):null]})}function Tn({feature:t}){var n,i,l,e;return(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,d.jsx)(rt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}):null}var L,lt,et,rt,ot,k,_,d,st=f(()=>{"use strict";L=require("@stackshift-ui/container"),lt=require("@stackshift-ui/flex"),et=require("@stackshift-ui/heading"),rt=require("@stackshift-ui/image"),ot=require("@stackshift-ui/section"),k=require("@stackshift-ui/text"),_=F(require("react")),d=require("react/jsx-runtime")});var ut={};h(ut,{Features_B:()=>wt,default:()=>wt});function wt({caption:t,title:n,description:i,features:l,tags:e}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(W.Container,{maxWidth:448,children:[(0,d.jsx)(yn,{caption:t,title:n,description:i}),(0,d.jsx)(Cn,{tags:e})]})}),(0,d.jsx)(kn,{features:l})]})})})}function yn({caption:t,title:n,description:i}){return(0,d.jsxs)(xt.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Cn({tags:t}){return t?(0,d.jsx)("ul",{children:t&&t.map(n=>(0,d.jsxs)("li",{className:"flex mb-4",children:[(0,d.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)(k.Text,{muted:!0,weight:"bold",children:n})]},n))}):null}function kn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((n,i)=>{var l,e,a,w;return(0,d.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,d.jsxs)(ct.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((l=n==null?void 0:n.mainImage)==null?void 0:l.image)&&(0,d.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,d.jsx)(rt.Image,{className:"object-scale-down",src:`${(e=n==null?void 0:n.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(w=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?w:`features-image-${i}`})}),(0,d.jsx)(k.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:n==null?void 0:n.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText})]})},i)}))}):null}var ct,W,lt,et,rt,ot,k,xt,d,bt=f(()=>{"use strict";ct=require("@stackshift-ui/card"),W=require("@stackshift-ui/container"),xt=F(require("react"))});var Ct={};h(Ct,{Features_C:()=>yt,default:()=>yt});function yt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(W.Container,{maxWidth:1280,children:[(0,d.jsx)(W.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(An,{caption:t,title:n,description:i})}),(0,d.jsx)(Sn,{features:l})]})})}function An({caption:t,title:n,description:i}){return(0,d.jsxs)(Tt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Sn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,justify:"start",align:"stretch",className:"-mx-3",children:t.map(n=>(0,d.jsx)(Rn,{feature:n},n._key))}):null}function Rn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,d.jsxs)(vt.Card,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(rt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-main-image"})}),(0,d.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,d.jsx)(k.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}var vt,W,lt,et,rt,ot,k,Tt,d,kt=f(()=>{"use strict";vt=require("@stackshift-ui/card"),Tt=F(require("react"))});var _t={};h(_t,{Features_D:()=>Lt,default:()=>Lt});function Lt({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsxs)($.Container,{maxWidth:1280,children:[(0,d.jsx)($.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,d.jsx)(In,{caption:t,title:n,description:i})}),(0,d.jsx)(zn,{features:l})]})})}function In({caption:t,title:n,description:i}){return(0,d.jsxs)(Pt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(et.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function zn({features:t}){return t?(0,d.jsx)(lt.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(n=>(0,d.jsx)(Pn,{feature:n},n._key))}):null}function Pn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,d.jsxs)(At.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(rt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}),(0,d.jsx)(k.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var At,$,lt,et,rt,ot,k,Pt,d,Wt=f(()=>{"use strict";At=require("@stackshift-ui/card"),Pt=F(require("react"))});var Bt={};h(Bt,{Features_E:()=>Gt,default:()=>Gt});function Gt({featuredItems:t}){let[n,i]=M.default.useState(0);return(0,d.jsx)(ot.Section,{className:"py-20 overflow-d-auto bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsx)($t.Flex,{className:"relative",children:(0,d.jsx)(Wn,{featuredItems:t,slider:e=>{t&&(e==="next"?n!==t.length-1?i(a=>a+1):i(0):n>=1?i(a=>a-1):i(t.length-1))},children:(0,d.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,d.jsx)(Ln,{featuredItems:t,item:n}),(0,d.jsx)(_n,{featuredItems:t,item:n})]})})})})})}function Ln({featuredItems:t,item:n}){var i,l,e,a,w,p,u;return(l=(i=t==null?void 0:t[n])==null?void 0:i.mainImage)!=null&&l.image?(0,d.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,d.jsx)(rt.Image,{className:"relative object-cover rounded-md",src:`${(a=(e=t==null?void 0:t[n])==null?void 0:e.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(u=(p=(w=t==null?void 0:t[n])==null?void 0:w.mainImage)==null?void 0:p.alt)!=null?u:`features-image-${n}`})}):null}function _n({featuredItems:t,item:n}){var i,l,e,a,w,p;return t?(0,d.jsxs)(Ht.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[n])==null?void 0:i.subtitle)&&((l=t==null?void 0:t[n])==null?void 0:l.subtitle)}),(0,d.jsx)(et.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[n])==null?void 0:e.title)&&((a=t==null?void 0:t[n])==null?void 0:a.title)}),(0,d.jsx)(k.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((w=t==null?void 0:t[n])==null?void 0:w.description)&&((p=t==null?void 0:t[n])==null?void 0:p.description)})]}):null}function Wn({featuredItems:t,children:n,slider:i}){return t?(0,d.jsxs)(M.default.Fragment,{children:[(0,d.jsx)("div",{className:"absolute left-0 rt-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(j.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"rt-10 p-4 text-white ",onClick:()=>i("prev"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),n,(0,d.jsx)("div",{className:"absolute right-0 rt-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(j.Button,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>i("next"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var j,Ht,W,$t,et,rt,ot,k,M,d,Dt=f(()=>{"use strict";j=require("@stackshift-ui/button"),Ht=require("@stackshift-ui/card"),M=F(require("react"))});var Ut={};h(Ut,{Features_F:()=>Qt,default:()=>Qt});function Qt({caption:t,title:n,description:i,images:l,primaryButton:e}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsx)(W.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsxs)(lt.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,d.jsx)(Hn,{caption:t,title:n,description:i}),(0,d.jsx)(On,{primaryButton:e})]}),(0,d.jsx)($n,{images:l})]})})})}function Hn({caption:t,title:n,description:i}){return(0,d.jsxs)(W.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-6",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function On({primaryButton:t}){return t!=null&&t.label?(0,d.jsx)(W.Container,{maxWidth:448,className:"ml-0",children:(0,d.jsx)(Et.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})}):null}function $n({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,p,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden rounded-md ${v}`,children:(0,d.jsx)(rt.Image,{className:"object-cover w-full h-full",src:w,sizes:"100vw",width:u,height:b,alt:p!=null?p:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var Et,W,lt,et,rt,ot,k,d,Xt=f(()=>{"use strict";Et=require("@stackshift-ui/button")});var en={};h(en,{Features_G:()=>ln,default:()=>ln});function ln({caption:t,title:n,description:i,images:l,tags:e}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsx)(D.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(D.Container,{maxWidth:448,children:[(0,d.jsx)(jn,{caption:t,title:n,description:i}),(0,d.jsx)(Vn,{tags:e})]})}),(0,d.jsx)(Gn,{images:l})]})})})}function jn({caption:t,title:n,description:i}){return(0,d.jsxs)(nn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-3",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function Vn({tags:t}){return t?(0,d.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(n=>(0,d.jsx)(Mn,{item:n}))}):null}function Mn({item:t}){return t?(0,d.jsxs)(lt.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,d.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)("span",{children:t})]}):null}function Gn({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,p,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden rounded-md ${v}`,children:(0,d.jsx)(rt.Image,{className:"object-cover w-full h-full",src:w,sizes:"100vw",width:u,height:b,alt:p!=null?p:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var D,lt,et,rt,ot,k,nn,d,rn=f(()=>{"use strict";D=require("@stackshift-ui/container"),nn=F(require("react"))});var cn={};h(cn,{Features_H:()=>sn,default:()=>sn});function sn({caption:t,title:n,features:i,images:l}){return(0,d.jsx)(ot.Section,{className:"py-20 bg-background",children:(0,d.jsx)(J.Container,{maxWidth:1280,children:(0,d.jsxs)(lt.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(J.Container,{maxWidth:448,children:[(0,d.jsx)(Bn,{caption:t,title:n}),(0,d.jsx)(Dn,{features:i})]})}),(0,d.jsx)(Jn,{images:l})]})})})}function Bn({caption:t,title:n}){return(0,d.jsxs)(an.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(et.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function Dn({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,d.jsx)("ul",{children:t.map(n=>(0,d.jsx)(En,{feature:n},n._key))})}function En({feature:t}){return t?(0,d.jsxs)(lt.Flex,{as:"li",className:"mb-5",children:[(0,d.jsx)(qn,{}),(0,d.jsxs)("div",{className:"max-w-xs",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function qn(){return(0,d.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function Jn({images:t}){var n,i,l,e,a,w,p,u,b,v,y,C;return!t||(t==null?void 0:t.length)===0?null:(0,d.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,d.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,d.jsx)(rt.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(l=t==null?void 0:t[0])==null?void 0:l.alt)!=null?e:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,d.jsx)(rt.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(w=t==null?void 0:t[1])==null?void 0:w.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?u:"features-image-2"})]}),((b=t==null?void 0:t[2])==null?void 0:b.image)&&(0,d.jsx)(rt.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(C=(y=t==null?void 0:t[2])==null?void 0:y.alt)!=null?C:"features-image-3"})]})}var J,lt,et,rt,ot,k,an,d,dn=f(()=>{"use strict";J=require("@stackshift-ui/container"),an=F(require("react"))});var Un={};h(Un,{Features:()=>gn});module.exports=hn(Un);var N=require("react"),Kn={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(st(),at))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(bt(),ut))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(kt(),Ct))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(Wt(),_t))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(Dt(),Bt))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(Xt(),Ut))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(rn(),en))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(dn(),cn)))},Qn="Features",gn=({data:t})=>{var e,a,w,p,u,b,v,y,C,Q,U,X,Y,Z,tt,nt;let n=t==null?void 0:t.variant,i=n&&Kn[n],l={caption:(a=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?a:void 0,title:(p=(w=t==null?void 0:t.variants)==null?void 0:w.title)!=null?p:void 0,description:(b=(u=t==null?void 0:t.variants)==null?void 0:u.description)!=null?b:void 0,features:(y=(v=t==null?void 0:t.variants)==null?void 0:v.arrayOfImageTitleAndText)!=null?y:void 0,tags:(Q=(C=t==null?void 0:t.variants)==null?void 0:C.tags)!=null?Q:void 0,featuredItems:(X=(U=t==null?void 0:t.variants)==null?void 0:U.featuredItems)!=null?X:void 0,images:(Z=(Y=t==null?void 0:t.variants)==null?void 0:Y.images)!=null?Z:void 0,primaryButton:(nt=(tt=t==null?void 0:t.variants)==null?void 0:tt.primaryButton)!=null?nt:void 0};return i?(0,d.jsx)(i,{...l}):null};gn.displayName=Qn;0&&(module.exports={Features});
|
package/dist/features.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-HAXWIVPS.mjs";export{a as Features};
|
package/dist/features_f.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var I=(e,a)=>{for(var
|
|
1
|
+
"use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var I=(e,a)=>{for(var i in a)d(e,i,{get:a[i],enumerable:!0})},T=(e,a,i,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of F(a))!C.call(e,t)&&t!==i&&d(e,t,{get:()=>a[t],enumerable:!(n=p(a,t))||n.enumerable});return e};var k=e=>T(d({},"__esModule",{value:!0}),e);var z={};I(z,{Features_F:()=>x,default:()=>x});module.exports=k(z);var c=require("@stackshift-ui/button"),o=require("@stackshift-ui/container"),m=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),u=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function x({caption:e,title:a,description:i,images:n,primaryButton:t}){return(0,l.jsx)(b.Section,{className:"py-20 bg-background",children:(0,l.jsx)(o.Container,{maxWidth:1280,children:(0,l.jsxs)(m.Flex,{wrap:!0,align:"center",children:[(0,l.jsxs)(m.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,l.jsx)(L,{caption:e,title:a,description:i}),(0,l.jsx)(S,{primaryButton:t})]}),(0,l.jsx)(W,{images:n})]})})})}function L({caption:e,title:a,description:i}){return(0,l.jsxs)(o.Container,{maxWidth:448,className:"ml-0",children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&(0,l.jsx)(g.Heading,{fontSize:"3xl",className:"mb-6",children:a}),i&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function S({primaryButton:e}){return e!=null&&e.label?(0,l.jsx)(o.Container,{maxWidth:448,className:"ml-0",children:(0,l.jsx)(c.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}function W({images:e}){var i,n,t,f;if(!e||(e==null?void 0:e.length)===0)return null;function a(v,r,h,w,N){return(0,l.jsx)("div",{className:`overflow-hidden rounded-md ${N}`,children:(0,l.jsx)(u.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:h,height:w,alt:r!=null?r:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=e[0])==null?void 0:i.image)&&a(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((t=e[2])==null?void 0:t.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((f=e[3])==null?void 0:f.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_F});
|
package/dist/features_f.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-M4ZCOWFN.mjs";export{a as Features_F,a as default};
|
package/dist/features_g.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var R=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of I(t))!C.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(n=y(t,a))||n.enumerable});return e};var T=(e,t,r)=>(r=e!=null?F(z(e)):{},g(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),S=e=>g(i({},"__esModule",{value:!0}),e);var W={};R(W,{Features_G:()=>x,default:()=>x});module.exports=S(W);var o=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),f=require("@stackshift-ui/heading"),c=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),v=T(require("react")),l=require("react/jsx-runtime");function x({caption:e,title:t,description:r,images:n,tags:a}){return(0,l.jsx)(p.Section,{className:"py-20 bg-background",children:(0,l.jsx)(o.Container,{maxWidth:1280,children:(0,l.jsxs)(d.Flex,{wrap:!0,align:"center",children:[(0,l.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,l.jsxs)(o.Container,{maxWidth:448,children:[(0,l.jsx)(G,{caption:e,title:t,description:r}),(0,l.jsx)(H,{tags:a})]})}),(0,l.jsx)(P,{images:n})]})})})}function G({caption:e,title:t,description:r}){return(0,l.jsxs)(v.default.Fragment,{children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:e}),t&&(0,l.jsx)(f.Heading,{fontSize:"3xl",className:"mb-3",children:t}),r&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function H({tags:e}){return e?(0,l.jsx)("ul",{className:"font-bold text-gray-500",children:e.map(t=>(0,l.jsx)(L,{item:t}))}):null}function L({item:e}){return e?(0,l.jsxs)(d.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,l.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,l.jsx)("span",{children:e})]}):null}function P({images:e}){var r,n,a,u;if(!e||(e==null?void 0:e.length)===0)return null;function t(w,m,h,b,N){return(0,l.jsx)("div",{className:`overflow-hidden ${N}`,children:(0,l.jsx)(c.Image,{className:"object-cover w-full h-
|
|
1
|
+
"use strict";var F=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var R=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of I(t))!C.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(n=y(t,a))||n.enumerable});return e};var T=(e,t,r)=>(r=e!=null?F(z(e)):{},g(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),S=e=>g(i({},"__esModule",{value:!0}),e);var W={};R(W,{Features_G:()=>x,default:()=>x});module.exports=S(W);var o=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),f=require("@stackshift-ui/heading"),c=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),v=T(require("react")),l=require("react/jsx-runtime");function x({caption:e,title:t,description:r,images:n,tags:a}){return(0,l.jsx)(p.Section,{className:"py-20 bg-background",children:(0,l.jsx)(o.Container,{maxWidth:1280,children:(0,l.jsxs)(d.Flex,{wrap:!0,align:"center",children:[(0,l.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,l.jsxs)(o.Container,{maxWidth:448,children:[(0,l.jsx)(G,{caption:e,title:t,description:r}),(0,l.jsx)(H,{tags:a})]})}),(0,l.jsx)(P,{images:n})]})})})}function G({caption:e,title:t,description:r}){return(0,l.jsxs)(v.default.Fragment,{children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:e}),t&&(0,l.jsx)(f.Heading,{fontSize:"3xl",className:"mb-3",children:t}),r&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function H({tags:e}){return e?(0,l.jsx)("ul",{className:"font-bold text-gray-500",children:e.map(t=>(0,l.jsx)(L,{item:t}))}):null}function L({item:e}){return e?(0,l.jsxs)(d.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,l.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,l.jsx)("span",{children:e})]}):null}function P({images:e}){var r,n,a,u;if(!e||(e==null?void 0:e.length)===0)return null;function t(w,m,h,b,N){return(0,l.jsx)("div",{className:`overflow-hidden rounded-md ${N}`,children:(0,l.jsx)(c.Image,{className:"object-cover w-full h-full",src:w,sizes:"100vw",width:h,height:b,alt:m!=null?m:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((a=e[2])==null?void 0:a.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((u=e[3])==null?void 0:u.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_G});
|
package/dist/features_g.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-37NVYEW6.mjs";export{a as Features_G,a as default};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var xn=Object.create;var R=Object.defineProperty;var un=Object.getOwnPropertyDescriptor;var wn=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty;var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var h=(t,n)=>{for(var i in n)R(t,i,{get:n[i],enumerable:!0})},vt=(t,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of wn(n))!vn.call(t,e)&&e!==i&&R(t,e,{get:()=>n[e],enumerable:!(l=un(n,e))||l.enumerable});return t};var F=(t,n,i)=>(i=t!=null?xn(bn(t)):{},vt(n||!t||!t.__esModule?R(i,"default",{value:t,enumerable:!0}):i,t)),hn=t=>vt(R({},"__esModule",{value:!0}),t);var Tt={};h(Tt,{Features_A:()=>W,default:()=>W});function W({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(L.Container,{maxWidth:1280,children:[(0,d.jsx)(L.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(Nn,{caption:t,title:n,description:i})}),(0,d.jsx)(ht.Flex,{wrap:!0,children:(0,d.jsx)(fn,{features:l})})]})})}function Nn({caption:t,title:n,description:i}){return(0,d.jsxs)(_.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function fn({features:t}){return t?(0,d.jsx)(_.default.Fragment,{children:t==null?void 0:t.map(n=>(0,d.jsx)(Fn,{feature:n},n._key))}):null}function Fn({feature:t}){var n;return(0,d.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)(Tn,{feature:t}):null,t!=null&&t.title?(0,d.jsx)(k.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText}):null]})}function Tn({feature:t}){var n,i,l,e;return(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}):null}var L,ht,Nt,ft,Ft,k,_,d,H=f(()=>{"use strict";L=require("@stackshift-ui/container"),ht=require("@stackshift-ui/flex"),Nt=require("@stackshift-ui/heading"),ft=require("@stackshift-ui/image"),Ft=require("@stackshift-ui/section"),k=require("@stackshift-ui/text"),_=F(require("react")),d=require("react/jsx-runtime")});var Rt={};h(Rt,{Features_B:()=>j,default:()=>j});function j({caption:t,title:n,description:i,features:l,tags:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(O.Container,{maxWidth:1280,children:(0,d.jsxs)($.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(O.Container,{maxWidth:448,children:[(0,d.jsx)(yn,{caption:t,title:n,description:i}),(0,d.jsx)(Cn,{tags:e})]})}),(0,d.jsx)(kn,{features:l})]})})})}function yn({caption:t,title:n,description:i}){return(0,d.jsxs)(St.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Cn({tags:t}){return t?(0,d.jsx)("ul",{children:t&&t.map(n=>(0,d.jsxs)("li",{className:"flex mb-4",children:[(0,d.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)(k.Text,{muted:!0,weight:"bold",children:n})]},n))}):null}function kn({features:t}){return t?(0,d.jsx)($.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((n,i)=>{var l,e,a,u;return(0,d.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,d.jsxs)(yt.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((l=n==null?void 0:n.mainImage)==null?void 0:l.image)&&(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded-lg bg-secondary/50",children:(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(e=n==null?void 0:n.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(u=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?u:`features-image-${i}`})}),(0,d.jsx)(k.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:n==null?void 0:n.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText})]})},i)}))}):null}var yt,O,$,Nt,ft,Ft,k,St,d,V=f(()=>{"use strict";yt=require("@stackshift-ui/card"),O=require("@stackshift-ui/container"),St=F(require("react"))});var Ht={};h(Ht,{Features_C:()=>G,default:()=>G});function G({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(O.Container,{maxWidth:1280,children:[(0,d.jsx)(O.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(An,{caption:t,title:n,description:i})}),(0,d.jsx)(Sn,{features:l})]})})}function An({caption:t,title:n,description:i}){return(0,d.jsxs)(Wt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Sn({features:t}){return t?(0,d.jsx)(ht.Flex,{wrap:!0,justify:"start",align:"stretch",className:"-mx-3",children:t.map(n=>(0,d.jsx)(Rn,{feature:n},n._key))}):null}function Rn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,d.jsxs)(It.Card,{className:"flex flex-wrap h-full d-6 bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:d-5 lg:mb-0",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-main-image"})}),(0,d.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,d.jsx)(k.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}var It,O,ht,Nt,ft,Ft,k,Wt,d,B=f(()=>{"use strict";It=require("@stackshift-ui/card"),Wt=F(require("react"))});var Bt={};h(Bt,{Features_D:()=>E,default:()=>E});function E({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(O.Container,{maxWidth:1280,children:[(0,d.jsx)(O.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,d.jsx)(In,{caption:t,title:n,description:i})}),(0,d.jsx)(zn,{features:l})]})})}function In({caption:t,title:n,description:i}){return(0,d.jsxs)(Gt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function zn({features:t}){return t?(0,d.jsx)($t.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(n=>(0,d.jsx)(Pn,{feature:n},n._key))}):null}function Pn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,d.jsxs)(Ot.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-6 rounded-lg bg-secondary/50 md:d-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}),(0,d.jsx)(k.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var Ot,O,$t,Nt,ft,Ft,k,Gt,d,q=f(()=>{"use strict";Ot=require("@stackshift-ui/card"),Gt=F(require("react"))});var Ut={};h(Ut,{Features_E:()=>U,default:()=>U});function U({featuredItems:t}){let[n,i]=Q.default.useState(0);return(0,d.jsx)(Ft.Section,{className:"py-20 overflow-d-auto bg-background",children:(0,d.jsx)(O.Container,{maxWidth:1280,children:(0,d.jsx)(ht.Flex,{className:"relative",children:(0,d.jsx)(Wn,{featuredItems:t,slider:e=>{t&&(e==="next"?n!==t.length-1?i(a=>a+1):i(0):n>=1?i(a=>a-1):i(t.length-1))},children:(0,d.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,d.jsx)(Ln,{featuredItems:t,item:n}),(0,d.jsx)(_n,{featuredItems:t,item:n})]})})})})})}function Ln({featuredItems:t,item:n}){var i,l,e,a,u,g,w;return(l=(i=t==null?void 0:t[n])==null?void 0:i.mainImage)!=null&&l.image?(0,d.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,d.jsx)(ft.Image,{className:"relative object-cover rounded-md",src:`${(a=(e=t==null?void 0:t[n])==null?void 0:e.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(w=(g=(u=t==null?void 0:t[n])==null?void 0:u.mainImage)==null?void 0:g.alt)!=null?w:`features-image-${n}`})}):null}function _n({featuredItems:t,item:n}){var i,l,e,a,u,g;return t?(0,d.jsxs)(Dt.Card,{className:"top-0 left-0 max-w-xl d-6 mx-auto text-center bg-white md:mt-12 md:d-10 lg:mt-12 lg:d-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[n])==null?void 0:i.subtitle)&&((l=t==null?void 0:t[n])==null?void 0:l.subtitle)}),(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[n])==null?void 0:e.title)&&((a=t==null?void 0:t[n])==null?void 0:a.title)}),(0,d.jsx)(k.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((u=t==null?void 0:t[n])==null?void 0:u.description)&&((g=t==null?void 0:t[n])==null?void 0:g.description)})]}):null}function Wn({featuredItems:t,children:n,slider:i}){return t?(0,d.jsxs)(Q.default.Fragment,{children:[(0,d.jsx)("div",{className:"absolute left-0 ft-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(J.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"ft-10 d-4 text-white ",onClick:()=>i("prev"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),n,(0,d.jsx)("div",{className:"absolute right-0 ft-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(J.Button,{as:"button",ariaLabel:"Show Next Feature",className:"d-4 text-white ",onClick:()=>i("next"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var J,Dt,O,ht,Nt,ft,Ft,k,Q,d,X=f(()=>{"use strict";J=require("@stackshift-ui/button"),Dt=require("@stackshift-ui/card"),Q=F(require("react"))});var nn={};h(nn,{Features_F:()=>tt,default:()=>tt});function tt({caption:t,title:n,description:i,images:l,primaryButton:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(O.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsxs)(ht.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,d.jsx)(Hn,{caption:t,title:n,description:i}),(0,d.jsx)(On,{primaryButton:e})]}),(0,d.jsx)($n,{images:l})]})})})}function Hn({caption:t,title:n,description:i}){return(0,d.jsxs)(O.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-6",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function On({primaryButton:t}){return t!=null&&t.label?(0,d.jsx)(O.Container,{maxWidth:448,className:"ml-0",children:(0,d.jsx)(Xt.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})}):null}function $n({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(u,g,w,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ft.Image,{className:"object-cover w-full h-auto rounded-md",src:u,sizes:"100vw",width:w,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-full")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var Xt,O,ht,Nt,ft,Ft,k,d,nt=f(()=>{"use strict";Xt=require("@stackshift-ui/button")});var mn={};h(mn,{Features_G:()=>ot,default:()=>ot});function ot({caption:t,title:n,description:i,images:l,tags:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(it.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(it.Container,{maxWidth:448,children:[(0,d.jsx)(jn,{caption:t,title:n,description:i}),(0,d.jsx)(Vn,{tags:e})]})}),(0,d.jsx)(Gn,{images:l})]})})})}function jn({caption:t,title:n,description:i}){return(0,d.jsxs)(rn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-3",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function Vn({tags:t}){return t?(0,d.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(n=>(0,d.jsx)(Mn,{item:n}))}):null}function Mn({item:t}){return t?(0,d.jsxs)(ht.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,d.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)("span",{children:t})]}):null}function Gn({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(u,g,w,b,v){return(0,d.jsx)("div",{className:`overflow-hidden ${v}`,children:(0,d.jsx)(ft.Image,{className:"object-cover w-full h-auto rounded-md",src:u,sizes:"100vw",width:w,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-full")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var it,ht,Nt,ft,Ft,k,rn,d,rt=f(()=>{"use strict";it=require("@stackshift-ui/container"),rn=F(require("react"))});var dn={};h(dn,{Features_H:()=>st,default:()=>st});function st({caption:t,title:n,features:i,images:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(mt.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(mt.Container,{maxWidth:448,children:[(0,d.jsx)(Bn,{caption:t,title:n}),(0,d.jsx)(Dn,{features:i})]})}),(0,d.jsx)(Jn,{images:l})]})})})}function Bn({caption:t,title:n}){return(0,d.jsxs)(cn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function Dn({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,d.jsx)("ul",{children:t.map(n=>(0,d.jsx)(En,{feature:n},n._key))})}function En({feature:t}){return t?(0,d.jsxs)(ht.Flex,{as:"li",className:"mb-5",children:[(0,d.jsx)(qn,{}),(0,d.jsxs)("div",{className:"max-w-xs",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function qn(){return(0,d.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function Jn({images:t}){var n,i,l,e,a,u,g,w,b,v,y,C;return!t||(t==null?void 0:t.length)===0?null:(0,d.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,d.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(l=t==null?void 0:t[0])==null?void 0:l.alt)!=null?e:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,d.jsx)(ft.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(u=t==null?void 0:t[1])==null?void 0:u.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(w=(g=t==null?void 0:t[1])==null?void 0:g.alt)!=null?w:"features-image-2"})]}),((b=t==null?void 0:t[2])==null?void 0:b.image)&&(0,d.jsx)(ft.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(C=(y=t==null?void 0:t[2])==null?void 0:y.alt)!=null?C:"features-image-3"})]})}var mt,ht,Nt,ft,Ft,k,cn,d,ct=f(()=>{"use strict";mt=require("@stackshift-ui/container"),cn=F(require("react"))});var Un={};h(Un,{Features:()=>pn,Features_A:()=>W,Features_B:()=>j,Features_C:()=>G,Features_D:()=>E,Features_E:()=>U,Features_F:()=>tt,Features_G:()=>ot,Features_H:()=>st});module.exports=hn(Un);var N=require("react"),Kn={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(H(),Tt))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(V(),Rt))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(B(),Ht))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(q(),Bt))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(X(),Ut))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(nt(),nn))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(rt(),mn))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(ct(),dn)))},Qn="Features",pn=({data:t})=>{var e,a,u,g,w,b,v,y,C,dt,pt,gt,xt,ut,wt,bt;let n=t==null?void 0:t.variant,i=n&&Kn[n],l={caption:(a=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?a:void 0,title:(g=(u=t==null?void 0:t.variants)==null?void 0:u.title)!=null?g:void 0,description:(b=(w=t==null?void 0:t.variants)==null?void 0:w.description)!=null?b:void 0,features:(y=(v=t==null?void 0:t.variants)==null?void 0:v.arrayOfImageTitleAndText)!=null?y:void 0,tags:(dt=(C=t==null?void 0:t.variants)==null?void 0:C.tags)!=null?dt:void 0,featuredItems:(gt=(pt=t==null?void 0:t.variants)==null?void 0:pt.featuredItems)!=null?gt:void 0,images:(ut=(xt=t==null?void 0:t.variants)==null?void 0:xt.images)!=null?ut:void 0,primaryButton:(bt=(wt=t==null?void 0:t.variants)==null?void 0:wt.primaryButton)!=null?bt:void 0};return i?(0,d.jsx)(i,{...l}):null};pn.displayName=Qn;H();V();B();q();X();nt();rt();ct();0&&(module.exports={Features,Features_A,Features_B,Features_C,Features_D,Features_E,Features_F,Features_G,Features_H});
|
|
2
|
+
"use strict";var xn=Object.create;var R=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var bn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty;var f=(t,n)=>()=>(t&&(n=t(t=0)),n);var h=(t,n)=>{for(var i in n)R(t,i,{get:n[i],enumerable:!0})},vt=(t,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of un(n))!vn.call(t,e)&&e!==i&&R(t,e,{get:()=>n[e],enumerable:!(l=wn(n,e))||l.enumerable});return t};var F=(t,n,i)=>(i=t!=null?xn(bn(t)):{},vt(n||!t||!t.__esModule?R(i,"default",{value:t,enumerable:!0}):i,t)),hn=t=>vt(R({},"__esModule",{value:!0}),t);var Tt={};h(Tt,{Features_A:()=>W,default:()=>W});function W({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(L.Container,{maxWidth:1280,children:[(0,d.jsx)(L.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(Nn,{caption:t,title:n,description:i})}),(0,d.jsx)(ht.Flex,{wrap:!0,children:(0,d.jsx)(fn,{features:l})})]})})}function Nn({caption:t,title:n,description:i}){return(0,d.jsxs)(_.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function fn({features:t}){return t?(0,d.jsx)(_.default.Fragment,{children:t==null?void 0:t.map(n=>(0,d.jsx)(Fn,{feature:n},n._key))}):null}function Fn({feature:t}){var n;return(0,d.jsxs)("div",{className:"w-full px-4 mt-16 mb-12 md:w-1/2 lg:mb-0 lg:w-1/4",children:[(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)(Tn,{feature:t}):null,t!=null&&t.title?(0,d.jsx)(k.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText}):null]})}function Tn({feature:t}){var n,i,l,e;return(n=t==null?void 0:t.mainImage)!=null&&n.image?(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}):null}var L,ht,Nt,ft,Ft,k,_,d,H=f(()=>{"use strict";L=require("@stackshift-ui/container"),ht=require("@stackshift-ui/flex"),Nt=require("@stackshift-ui/heading"),ft=require("@stackshift-ui/image"),Ft=require("@stackshift-ui/section"),k=require("@stackshift-ui/text"),_=F(require("react")),d=require("react/jsx-runtime")});var Rt={};h(Rt,{Features_B:()=>j,default:()=>j});function j({caption:t,title:n,description:i,features:l,tags:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(O.Container,{maxWidth:1280,children:(0,d.jsxs)($.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(O.Container,{maxWidth:448,children:[(0,d.jsx)(yn,{caption:t,title:n,description:i}),(0,d.jsx)(Cn,{tags:e})]})}),(0,d.jsx)(kn,{features:l})]})})})}function yn({caption:t,title:n,description:i}){return(0,d.jsxs)(St.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Cn({tags:t}){return t?(0,d.jsx)("ul",{children:t&&t.map(n=>(0,d.jsxs)("li",{className:"flex mb-4",children:[(0,d.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)(k.Text,{muted:!0,weight:"bold",children:n})]},n))}):null}function kn({features:t}){return t?(0,d.jsx)($.Flex,{wrap:!0,className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((n,i)=>{var l,e,a,w;return(0,d.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,d.jsxs)(yt.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((l=n==null?void 0:n.mainImage)==null?void 0:l.image)&&(0,d.jsx)("span",{className:"inline-block d-3 mb-4 rounded-lg bg-secondary/50",children:(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(e=n==null?void 0:n.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(w=(a=n==null?void 0:n.mainImage)==null?void 0:a.alt)!=null?w:`features-image-${i}`})}),(0,d.jsx)(k.Text,{weight:"bold",fontSize:"2xl",className:"mb-2 text-gray-500",children:n==null?void 0:n.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:n==null?void 0:n.plainText})]})},i)}))}):null}var yt,O,$,Nt,ft,Ft,k,St,d,V=f(()=>{"use strict";yt=require("@stackshift-ui/card"),O=require("@stackshift-ui/container"),St=F(require("react"))});var Ht={};h(Ht,{Features_C:()=>G,default:()=>G});function G({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(O.Container,{maxWidth:1280,children:[(0,d.jsx)(O.Container,{maxWidth:448,className:"mb-16 text-center ",children:(0,d.jsx)(An,{caption:t,title:n,description:i})}),(0,d.jsx)(Sn,{features:l})]})})}function An({caption:t,title:n,description:i}){return(0,d.jsxs)(Wt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Sn({features:t}){return t?(0,d.jsx)(ht.Flex,{wrap:!0,justify:"start",align:"stretch",className:"-mx-3",children:t.map(n=>(0,d.jsx)(Rn,{feature:n},n._key))}):null}function Rn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-3 mb-6 lg:w-1/2",children:(0,d.jsxs)(It.Card,{className:"flex flex-wrap h-full d-6 bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:d-5 lg:mb-0",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-main-image"})}),(0,d.jsxs)("div",{className:"w-full lg:w-2/3",children:[(0,d.jsx)(k.Text,{fontSize:"2xl",weight:"bold",className:"mb-2 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})]})})}var It,O,ht,Nt,ft,Ft,k,Wt,d,B=f(()=>{"use strict";It=require("@stackshift-ui/card"),Wt=F(require("react"))});var Bt={};h(Bt,{Features_D:()=>E,default:()=>E});function E({caption:t,title:n,description:i,features:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(O.Container,{maxWidth:1280,children:[(0,d.jsx)(O.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,d.jsx)(In,{caption:t,title:n,description:i})}),(0,d.jsx)(zn,{features:l})]})})}function In({caption:t,title:n,description:i}){return(0,d.jsxs)(Gt.default.Fragment,{children:[t?(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}):null,n?(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:n}):null,i?(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function zn({features:t}){return t?(0,d.jsx)($t.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(n=>(0,d.jsx)(Pn,{feature:n},n._key))}):null}function Pn({feature:t}){var n,i,l,e;return(0,d.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,d.jsxs)(Ot.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,d.jsx)("div",{className:"self-start inline-block d-3 mb-6 rounded-lg bg-secondary/50 md:d-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?e:"features-image-"})}),(0,d.jsx)(k.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var Ot,O,$t,Nt,ft,Ft,k,Gt,d,q=f(()=>{"use strict";Ot=require("@stackshift-ui/card"),Gt=F(require("react"))});var Ut={};h(Ut,{Features_E:()=>U,default:()=>U});function U({featuredItems:t}){let[n,i]=Q.default.useState(0);return(0,d.jsx)(Ft.Section,{className:"py-20 overflow-d-auto bg-background",children:(0,d.jsx)(O.Container,{maxWidth:1280,children:(0,d.jsx)(ht.Flex,{className:"relative",children:(0,d.jsx)(Wn,{featuredItems:t,slider:e=>{t&&(e==="next"?n!==t.length-1?i(a=>a+1):i(0):n>=1?i(a=>a-1):i(t.length-1))},children:(0,d.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,d.jsx)(Ln,{featuredItems:t,item:n}),(0,d.jsx)(_n,{featuredItems:t,item:n})]})})})})})}function Ln({featuredItems:t,item:n}){var i,l,e,a,w,g,u;return(l=(i=t==null?void 0:t[n])==null?void 0:i.mainImage)!=null&&l.image?(0,d.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,d.jsx)(ft.Image,{className:"relative object-cover rounded-md",src:`${(a=(e=t==null?void 0:t[n])==null?void 0:e.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(u=(g=(w=t==null?void 0:t[n])==null?void 0:w.mainImage)==null?void 0:g.alt)!=null?u:`features-image-${n}`})}):null}function _n({featuredItems:t,item:n}){var i,l,e,a,w,g;return t?(0,d.jsxs)(Dt.Card,{className:"top-0 left-0 max-w-xl d-6 mx-auto text-center bg-white md:mt-12 md:d-10 lg:mt-12 lg:d-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[n])==null?void 0:i.subtitle)&&((l=t==null?void 0:t[n])==null?void 0:l.subtitle)}),(0,d.jsx)(Nt.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[n])==null?void 0:e.title)&&((a=t==null?void 0:t[n])==null?void 0:a.title)}),(0,d.jsx)(k.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((w=t==null?void 0:t[n])==null?void 0:w.description)&&((g=t==null?void 0:t[n])==null?void 0:g.description)})]}):null}function Wn({featuredItems:t,children:n,slider:i}){return t?(0,d.jsxs)(Q.default.Fragment,{children:[(0,d.jsx)("div",{className:"absolute left-0 ft-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(J.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"ft-10 d-4 text-white ",onClick:()=>i("prev"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),n,(0,d.jsx)("div",{className:"absolute right-0 ft-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,d.jsx)(J.Button,{as:"button",ariaLabel:"Show Next Feature",className:"d-4 text-white ",onClick:()=>i("next"),children:(0,d.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var J,Dt,O,ht,Nt,ft,Ft,k,Q,d,X=f(()=>{"use strict";J=require("@stackshift-ui/button"),Dt=require("@stackshift-ui/card"),Q=F(require("react"))});var nn={};h(nn,{Features_F:()=>tt,default:()=>tt});function tt({caption:t,title:n,description:i,images:l,primaryButton:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(O.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsxs)(ht.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,d.jsx)(Hn,{caption:t,title:n,description:i}),(0,d.jsx)(On,{primaryButton:e})]}),(0,d.jsx)($n,{images:l})]})})})}function Hn({caption:t,title:n,description:i}){return(0,d.jsxs)(O.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-6",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function On({primaryButton:t}){return t!=null&&t.label?(0,d.jsx)(O.Container,{maxWidth:448,className:"ml-0",children:(0,d.jsx)(Xt.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})}):null}function $n({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,g,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden rounded-md ${v}`,children:(0,d.jsx)(ft.Image,{className:"object-cover w-full h-full",src:w,sizes:"100vw",width:u,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var Xt,O,ht,Nt,ft,Ft,k,d,nt=f(()=>{"use strict";Xt=require("@stackshift-ui/button")});var mn={};h(mn,{Features_G:()=>rt,default:()=>rt});function rt({caption:t,title:n,description:i,images:l,tags:e}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(it.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(it.Container,{maxWidth:448,children:[(0,d.jsx)(jn,{caption:t,title:n,description:i}),(0,d.jsx)(Vn,{tags:e})]})}),(0,d.jsx)(Gn,{images:l})]})})})}function jn({caption:t,title:n,description:i}){return(0,d.jsxs)(on.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-3",children:n}),i&&(0,d.jsx)(k.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function Vn({tags:t}){return t?(0,d.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(n=>(0,d.jsx)(Mn,{item:n}))}):null}function Mn({item:t}){return t?(0,d.jsxs)(ht.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,d.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,d.jsx)("span",{children:t})]}):null}function Gn({images:t}){var i,l,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function n(w,g,u,b,v){return(0,d.jsx)("div",{className:`overflow-hidden rounded-md ${v}`,children:(0,d.jsx)(ft.Image,{className:"object-cover w-full h-full",src:w,sizes:"100vw",width:u,height:b,alt:g!=null?g:"feature-image"})})}return(0,d.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,d.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&n(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((l=t[1])==null?void 0:l.image)&&n(t[1].image,t[1].alt,166,128,"")})]}),(0,d.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,d.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&n(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,d.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&n(t[3].image,t[3].alt,356,192,"")})]})]})}var it,ht,Nt,ft,Ft,k,on,d,ot=f(()=>{"use strict";it=require("@stackshift-ui/container"),on=F(require("react"))});var dn={};h(dn,{Features_H:()=>st,default:()=>st});function st({caption:t,title:n,features:i,images:l}){return(0,d.jsx)(Ft.Section,{className:"py-20 bg-background",children:(0,d.jsx)(mt.Container,{maxWidth:1280,children:(0,d.jsxs)(ht.Flex,{wrap:!0,align:"center",children:[(0,d.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,d.jsxs)(mt.Container,{maxWidth:448,children:[(0,d.jsx)(Bn,{caption:t,title:n}),(0,d.jsx)(Dn,{features:i})]})}),(0,d.jsx)(Jn,{images:l})]})})})}function Bn({caption:t,title:n}){return(0,d.jsxs)(cn.default.Fragment,{children:[t&&(0,d.jsx)(k.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,d.jsx)(Nt.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function Dn({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,d.jsx)("ul",{children:t.map(n=>(0,d.jsx)(En,{feature:n},n._key))})}function En({feature:t}){return t?(0,d.jsxs)(ht.Flex,{as:"li",className:"mb-5",children:[(0,d.jsx)(qn,{}),(0,d.jsxs)("div",{className:"max-w-xs",children:[(0,d.jsx)(k.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,d.jsx)(k.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function qn(){return(0,d.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function Jn({images:t}){var n,i,l,e,a,w,g,u,b,v,y,C;return!t||(t==null?void 0:t.length)===0?null:(0,d.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,d.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,d.jsx)(ft.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(l=t==null?void 0:t[0])==null?void 0:l.alt)!=null?e:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,d.jsx)(ft.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(w=t==null?void 0:t[1])==null?void 0:w.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(g=t==null?void 0:t[1])==null?void 0:g.alt)!=null?u:"features-image-2"})]}),((b=t==null?void 0:t[2])==null?void 0:b.image)&&(0,d.jsx)(ft.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(C=(y=t==null?void 0:t[2])==null?void 0:y.alt)!=null?C:"features-image-3"})]})}var mt,ht,Nt,ft,Ft,k,cn,d,ct=f(()=>{"use strict";mt=require("@stackshift-ui/container"),cn=F(require("react"))});var Un={};h(Un,{Features:()=>pn,Features_A:()=>W,Features_B:()=>j,Features_C:()=>G,Features_D:()=>E,Features_E:()=>U,Features_F:()=>tt,Features_G:()=>rt,Features_H:()=>st});module.exports=hn(Un);var N=require("react"),Kn={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(H(),Tt))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(V(),Rt))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(B(),Ht))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(q(),Bt))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(X(),Ut))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(nt(),nn))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(ot(),mn))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(ct(),dn)))},Qn="Features",pn=({data:t})=>{var e,a,w,g,u,b,v,y,C,dt,pt,gt,xt,wt,ut,bt;let n=t==null?void 0:t.variant,i=n&&Kn[n],l={caption:(a=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?a:void 0,title:(g=(w=t==null?void 0:t.variants)==null?void 0:w.title)!=null?g:void 0,description:(b=(u=t==null?void 0:t.variants)==null?void 0:u.description)!=null?b:void 0,features:(y=(v=t==null?void 0:t.variants)==null?void 0:v.arrayOfImageTitleAndText)!=null?y:void 0,tags:(dt=(C=t==null?void 0:t.variants)==null?void 0:C.tags)!=null?dt:void 0,featuredItems:(gt=(pt=t==null?void 0:t.variants)==null?void 0:pt.featuredItems)!=null?gt:void 0,images:(wt=(xt=t==null?void 0:t.variants)==null?void 0:xt.images)!=null?wt:void 0,primaryButton:(bt=(ut=t==null?void 0:t.variants)==null?void 0:ut.primaryButton)!=null?bt:void 0};return i?(0,d.jsx)(i,{...l}):null};pn.displayName=Qn;H();V();B();q();X();nt();ot();ct();0&&(module.exports={Features,Features_A,Features_B,Features_C,Features_D,Features_E,Features_F,Features_G,Features_H});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a as p}from"./chunk-
|
|
2
|
+
"use strict";import{a as p}from"./chunk-37NVYEW6.mjs";import{a as x}from"./chunk-NMDQZ26M.mjs";import{a as c}from"./chunk-HAXWIVPS.mjs";import{a as o}from"./chunk-IS5MPNWR.mjs";import{a as r}from"./chunk-A45XZBNO.mjs";import{a as e}from"./chunk-5MQSXFN3.mjs";import{a as t}from"./chunk-AFTO2DW4.mjs";import{a as f}from"./chunk-7B6FI3PR.mjs";import{a as m}from"./chunk-M4ZCOWFN.mjs";export{c as Features,o as Features_A,r as Features_B,e as Features_C,t as Features_D,f as Features_E,m as Features_F,p as Features_G,x as Features_H};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/features",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.6-beta.
|
|
4
|
+
"version": "6.0.6-beta.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/eslint-config": "6.0.3-beta.
|
|
33
|
-
"@stackshift-ui/typescript-config": "6.0.3-beta.
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.3-beta.2",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.3-beta.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/system": "6.0.4-beta.
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/section": "6.0.4-beta.
|
|
42
|
-
"@stackshift-ui/container": "6.0.4-beta.
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/flex": "6.0.4-beta.
|
|
45
|
-
"@stackshift-ui/card": "6.0.4-beta.
|
|
46
|
-
"@stackshift-ui/text": "6.0.4-beta.
|
|
37
|
+
"@stackshift-ui/scripts": "6.0.3-beta.2",
|
|
38
|
+
"@stackshift-ui/image": "6.0.4-beta.2",
|
|
39
|
+
"@stackshift-ui/system": "6.0.4-beta.2",
|
|
40
|
+
"@stackshift-ui/button": "6.0.4-beta.2",
|
|
41
|
+
"@stackshift-ui/section": "6.0.4-beta.2",
|
|
42
|
+
"@stackshift-ui/container": "6.0.4-beta.2",
|
|
43
|
+
"@stackshift-ui/heading": "6.0.4-beta.2",
|
|
44
|
+
"@stackshift-ui/flex": "6.0.4-beta.2",
|
|
45
|
+
"@stackshift-ui/card": "6.0.4-beta.2",
|
|
46
|
+
"@stackshift-ui/text": "6.0.4-beta.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@types/react": "16.8 - 19",
|
|
50
50
|
"next": "10 - 14",
|
|
51
51
|
"react": "16.8 - 19",
|
|
52
52
|
"react-dom": "16.8 - 19",
|
|
53
|
-
"@stackshift-ui/system": ">=6.0.4-beta.
|
|
53
|
+
"@stackshift-ui/system": ">=6.0.4-beta.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"next": {
|
package/src/features_f.tsx
CHANGED
|
@@ -83,9 +83,9 @@ function ImageGallery({ images }: { images?: any[] }) {
|
|
|
83
83
|
className?: string,
|
|
84
84
|
) {
|
|
85
85
|
return (
|
|
86
|
-
<div className={`overflow-hidden ${className}`}>
|
|
86
|
+
<div className={`overflow-hidden rounded-md ${className}`}>
|
|
87
87
|
<Image
|
|
88
|
-
className="object-cover w-full h-
|
|
88
|
+
className="object-cover w-full h-full"
|
|
89
89
|
src={image}
|
|
90
90
|
sizes="100vw"
|
|
91
91
|
width={width}
|
|
@@ -100,7 +100,7 @@ function ImageGallery({ images }: { images?: any[] }) {
|
|
|
100
100
|
<div className="w-full lg:w-1/2">
|
|
101
101
|
<div className="items-end mb-4 lg:flex lg:flex-wrap">
|
|
102
102
|
<div className="h-full px-3 mb-4 lg:mb-0 lg:w-2/3">
|
|
103
|
-
{images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-
|
|
103
|
+
{images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-[269px]")}
|
|
104
104
|
</div>
|
|
105
105
|
<div className="h-full px-3 lg:w-1/3">
|
|
106
106
|
{images[1]?.image && renderImage(images[1].image, images[1].alt, 166, 128, "")}
|
package/src/features_g.tsx
CHANGED
|
@@ -99,9 +99,9 @@ function ImageGallery({ images }: { images?: any[] }) {
|
|
|
99
99
|
className?: string,
|
|
100
100
|
) {
|
|
101
101
|
return (
|
|
102
|
-
<div className={`overflow-hidden ${className}`}>
|
|
102
|
+
<div className={`overflow-hidden rounded-md ${className}`}>
|
|
103
103
|
<Image
|
|
104
|
-
className="object-cover w-full h-
|
|
104
|
+
className="object-cover w-full h-full"
|
|
105
105
|
src={image}
|
|
106
106
|
sizes="100vw"
|
|
107
107
|
width={width}
|
|
@@ -116,7 +116,7 @@ function ImageGallery({ images }: { images?: any[] }) {
|
|
|
116
116
|
<div className="w-full lg:w-1/2">
|
|
117
117
|
<div className="items-end mb-4 lg:flex lg:flex-wrap">
|
|
118
118
|
<div className="h-full px-3 mb-4 lg:mb-0 lg:w-2/3">
|
|
119
|
-
{images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-
|
|
119
|
+
{images[0]?.image && renderImage(images[0].image, images[0].alt, 356, 192, "h-[269px]")}
|
|
120
120
|
</div>
|
|
121
121
|
<div className="h-full px-3 lg:w-1/3">
|
|
122
122
|
{images[1]?.image && renderImage(images[1].image, images[1].alt, 166, 128, "")}
|
package/dist/chunk-XYIY6ZNZ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Button as x}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as f}from"@stackshift-ui/text";import{jsx as l,jsxs as i}from"react/jsx-runtime";function N({caption:e,title:a,description:t,images:n,primaryButton:o}){return l(w,{className:"py-20 bg-background",children:l(d,{maxWidth:1280,children:i(s,{wrap:!0,align:"center",children:[i(s,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[l(p,{caption:e,title:a,description:t}),l(F,{primaryButton:o})]}),l(C,{images:n})]})})})}function p({caption:e,title:a,description:t}){return i(d,{maxWidth:448,className:"ml-0",children:[e&&l(f,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&l(v,{fontSize:"3xl",className:"mb-6",children:a}),t&&l(f,{muted:!0,className:"mb-6 leading-loose",children:t})]})}function F({primaryButton:e}){return e!=null&&e.label?l(d,{maxWidth:448,className:"ml-0",children:l(x,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}function C({images:e}){var t,n,o,m;if(!e||(e==null?void 0:e.length)===0)return null;function a(c,r,g,u,b){return l("div",{className:`overflow-hidden ${b}`,children:l(h,{className:"object-cover w-full h-auto rounded-md",src:c,sizes:"100vw",width:g,height:u,alt:r!=null?r:"feature-image"})})}return i("div",{className:"w-full lg:w-1/2",children:[i("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((t=e[0])==null?void 0:t.image)&&a(e[0].image,e[0].alt,356,192,"h-full")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),i("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((o=e[2])==null?void 0:o.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((m=e[3])==null?void 0:m.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}export{N as a};
|
|
File without changes
|