@stackshift-ui/team 6.0.14-beta.0 → 6.0.14-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import{Card as p}from"@stackshift-ui/card";import{Container as x}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as c}from"@stackshift-ui/heading";import{Image as g}from"@stackshift-ui/image";import{Section as m}from"@stackshift-ui/section";import{Text as l}from"@stackshift-ui/text";import{jsx as i,jsxs as o}from"react/jsx-runtime";function u({caption:a,title:t,team:e}){return i(m,{className:"py-20 bg-background",children:o(x,{maxWidth:1280,children:[i(T,{caption:a,title:t}),i(w,{team:e})]})})}function T({caption:a,title:t}){return o(x,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&i(l,{weight:"bold",className:"text-secondary",children:a}),t&&i(c,{children:t})]})}function w({team:a}){return a?i(f,{wrap:!0,children:a&&a.map((t,e)=>{var n,s,d,r;return i("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:o(p,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((n=t.mainImage)==null?void 0:n.image)&&i(g,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(s=t==null?void 0:t.mainImage)==null?void 0:s.image}`,width:179,height:320,alt:(r=(d=t==null?void 0:t.mainImage)==null?void 0:d.alt)!=null?r:`team-member-${t==null?void 0:t.name}-profile-image`}),i(h,{member:t})]})},e)})}):null}function h({member:a}){return o("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[i(l,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),i(l,{className:"leading-loose text-sm md:text-base",muted:!0,children:a==null?void 0:a.plainText})]})}export{u as a};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var mt=Object.create;var d=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var x=(t,a)=>()=>(t&&(a=t(t=0)),a);var m=(t,a)=>{for(var i in a)d(t,i,{get:a[i],enumerable:!0})},W=(t,a,i,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of dt(a))!gt.call(t,n)&&n!==i&&d(t,n,{get:()=>a[n],enumerable:!(o=ct(a,n))||o.enumerable});return t};var w=(t,a,i)=>(i=t!=null?mt(xt(t)):{},W(a||!t||!t.__esModule?d(i,"default",{value:t,enumerable:!0}):i,t)),ut=t=>W(d({},"__esModule",{value:!0}),t);var E={};m(E,{Team_A:()=>y,default:()=>y});function y({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(v.Container,{className:"mb-10 text-center",children:(0,r.jsx)(Tt,{caption:t,title:a})}),(0,r.jsx)(wt,{team:i})]})})}function Tt({caption:t,title:a}){return(0,r.jsxs)(q.default.Fragment,{children:[t?(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(h.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function wt({team:t}){return t?(0,r.jsx)(V.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:(0,r.jsxs)(B.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4",borderRadius:"md",children:[((i=a==null?void 0:a.mainImage)==null?void 0:i.image)&&(0,r.jsx)(L.Image,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(vt,{member:a})]})},a==null?void 0:a.name)})}):null}function vt({member:t}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(h.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var B,v,V,h,L,D,N,q,r,C=x(()=>{"use strict";B=require("@stackshift-ui/card"),v=require("@stackshift-ui/container"),V=require("@stackshift-ui/flex"),h=require("@stackshift-ui/heading"),L=require("@stackshift-ui/image"),D=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),q=w(require("react")),r=require("react/jsx-runtime")});var U={};m(U,{Team_B:()=>I,default:()=>I});function I({team:t}){var n;let[a,i]=P.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=P.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsx)(v.Container,{maxWidth:1280,children:(0,r.jsxs)(V.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:i}),(0,r.jsx)(yt,{members:o})]})})})}function ht({team:t,activeTab:a,setActiveTab:i}){return(0,r.jsx)("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:(0,r.jsx)(V.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:t==null?void 0:t.map(o=>(0,r.jsx)(Nt,{data:o,activeTab:a,setActiveTab:i},o.name))})})}function Nt({data:t,activeTab:a,setActiveTab:i}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(G.Button,{as:"button",variant:"unstyled",ariaLabel:t.name,className:`text-xl lg:text-2xl ${t.name===a?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var o;return i((o=t.name)!=null?o:"")},children:t.name})})}function yt({members:t}){return t?(0,r.jsx)("div",{className:"w-full lg:w-2/3 sm:p-6",children:t.map((a,i)=>(0,r.jsx)(Ct,{member:a},i))}):null}function Ct({member:t}){var a,i;return t?(0,r.jsxs)(J.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96",borderRadius:"md",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md",children:(0,r.jsx)(L.Image,{className:"object-cover absolute inset-0 w-full h-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=t.mainImage.alt)!=null?i:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(Pt,{member:t})]}):null}function Pt({member:t}){return(0,r.jsxs)("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[(0,r.jsx)(N.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t.jobTitle}),(0,r.jsx)(N.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var G,J,v,V,L,D,N,P,r,F=x(()=>{"use strict";G=require("@stackshift-ui/button"),J=require("@stackshift-ui/card"),P=w(require("react"))});var it={};m(it,{Team_C:()=>k,default:()=>k});function k({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(Mt,{caption:t,title:a}),(0,r.jsx)(It,{team:i})]})})}function Mt({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function It({team:t}){return t?(0,r.jsx)(V.Flex,{wrap:!0,children:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:(0,r.jsxs)(X.Card,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center",borderRadius:"md",children:[((i=a.mainImage)==null?void 0:i.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(L.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,width:345,height:256,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`})}),(0,r.jsx)(Ft,{member:a})]})},a==null?void 0:a.name)})}):null}function Ft({member:t}){return(0,r.jsxs)(at.default.Fragment,{children:[(0,r.jsx)(N.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var X,v,V,h,L,D,N,at,r,R=x(()=>{"use strict";X=require("@stackshift-ui/card"),at=w(require("react"))});var st={};m(st,{Team_D:()=>$,default:()=>$});function $({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"!md:px-4 py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(St,{caption:t,title:a}),(0,r.jsx)(kt,{team:i})]})})}function St({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function kt({team:t}){return t?(0,r.jsx)(V.Flex,{wrap:!0,children:t&&t.map((a,i)=>{var o,n,p,f;return(0,r.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,r.jsxs)(et.Card,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)(L.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(n=a==null?void 0:a.mainImage)==null?void 0:n.image}`,width:179,height:320,alt:(f=(p=a==null?void 0:a.mainImage)==null?void 0:p.alt)!=null?f:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(Rt,{member:a})]})},i)})}):null}function Rt({member:t}){return(0,r.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[(0,r.jsx)(N.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var et,v,V,h,L,D,N,r,_=x(()=>{"use strict";et=require("@stackshift-ui/card")});var _t={};m(_t,{Team:()=>pt,Team_A:()=>y,Team_B:()=>I,Team_C:()=>k,Team_D:()=>$});module.exports=ut(_t);var c=require("react"),At={variant_a:(0,c.lazy)(()=>Promise.resolve().then(()=>(C(),E))),variant_b:(0,c.lazy)(()=>Promise.resolve().then(()=>(F(),U))),variant_c:(0,c.lazy)(()=>Promise.resolve().then(()=>(R(),it))),variant_d:(0,c.lazy)(()=>Promise.resolve().then(()=>(_(),st)))},$t="Team",pt=({data:t})=>{var n,p,f,j,z,H;let a=t==null?void 0:t.variant,i=a&&At[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(j=(f=t==null?void 0:t.variants)==null?void 0:f.title)!=null?j:void 0,team:(H=(z=t==null?void 0:t.variants)==null?void 0:z.teams)!=null?H:void 0};return i?(0,r.jsx)(i,{...o}):null};pt.displayName=$t;C();F();R();_();0&&(module.exports={Team,Team_A,Team_B,Team_C,Team_D});
2
+ "use strict";var ct=Object.create;var d=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var x=(t,a)=>()=>(t&&(a=t(t=0)),a);var c=(t,a)=>{for(var i in a)d(t,i,{get:a[i],enumerable:!0})},W=(t,a,i,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of dt(a))!gt.call(t,n)&&n!==i&&d(t,n,{get:()=>a[n],enumerable:!(o=mt(a,n))||o.enumerable});return t};var w=(t,a,i)=>(i=t!=null?ct(xt(t)):{},W(a||!t||!t.__esModule?d(i,"default",{value:t,enumerable:!0}):i,t)),ut=t=>W(d({},"__esModule",{value:!0}),t);var E={};c(E,{Team_A:()=>y,default:()=>y});function y({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(v.Container,{className:"mb-10 text-center",children:(0,r.jsx)(Tt,{caption:t,title:a})}),(0,r.jsx)(wt,{team:i})]})})}function Tt({caption:t,title:a}){return(0,r.jsxs)(q.default.Fragment,{children:[t?(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(h.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function wt({team:t}){return t?(0,r.jsx)(V.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:(0,r.jsxs)(B.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4",borderRadius:"md",children:[((i=a==null?void 0:a.mainImage)==null?void 0:i.image)&&(0,r.jsx)(L.Image,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(vt,{member:a})]})},a==null?void 0:a.name)})}):null}function vt({member:t}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(h.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var B,v,V,h,L,D,N,q,r,C=x(()=>{"use strict";B=require("@stackshift-ui/card"),v=require("@stackshift-ui/container"),V=require("@stackshift-ui/flex"),h=require("@stackshift-ui/heading"),L=require("@stackshift-ui/image"),D=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),q=w(require("react")),r=require("react/jsx-runtime")});var U={};c(U,{Team_B:()=>I,default:()=>I});function I({team:t}){var n;let[a,i]=P.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=P.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsx)(v.Container,{maxWidth:1280,children:(0,r.jsxs)(V.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:i}),(0,r.jsx)(yt,{members:o})]})})})}function ht({team:t,activeTab:a,setActiveTab:i}){return(0,r.jsx)("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:(0,r.jsx)(V.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:t==null?void 0:t.map(o=>(0,r.jsx)(Nt,{data:o,activeTab:a,setActiveTab:i},o.name))})})}function Nt({data:t,activeTab:a,setActiveTab:i}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(G.Button,{as:"button",variant:"unstyled",ariaLabel:t.name,className:`text-xl lg:text-2xl ${t.name===a?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var o;return i((o=t.name)!=null?o:"")},children:t.name})})}function yt({members:t}){return t?(0,r.jsx)("div",{className:"w-full lg:w-2/3 sm:p-6",children:t.map((a,i)=>(0,r.jsx)(Ct,{member:a},i))}):null}function Ct({member:t}){var a,i;return t?(0,r.jsxs)(J.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96",borderRadius:"md",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md",children:(0,r.jsx)(L.Image,{className:"object-cover absolute inset-0 w-full h-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=t.mainImage.alt)!=null?i:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(Pt,{member:t})]}):null}function Pt({member:t}){return(0,r.jsxs)("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[(0,r.jsx)(N.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t.jobTitle}),(0,r.jsx)(N.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var G,J,v,V,L,D,N,P,r,F=x(()=>{"use strict";G=require("@stackshift-ui/button"),J=require("@stackshift-ui/card"),P=w(require("react"))});var it={};c(it,{Team_C:()=>k,default:()=>k});function k({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(Mt,{caption:t,title:a}),(0,r.jsx)(It,{team:i})]})})}function Mt({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function It({team:t}){return t?(0,r.jsx)(V.Flex,{wrap:!0,children:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:(0,r.jsxs)(X.Card,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center",borderRadius:"md",children:[((i=a.mainImage)==null?void 0:i.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(L.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,width:345,height:256,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`})}),(0,r.jsx)(Ft,{member:a})]})},a==null?void 0:a.name)})}):null}function Ft({member:t}){return(0,r.jsxs)(at.default.Fragment,{children:[(0,r.jsx)(N.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var X,v,V,h,L,D,N,at,r,R=x(()=>{"use strict";X=require("@stackshift-ui/card"),at=w(require("react"))});var st={};c(st,{Team_D:()=>$,default:()=>$});function $({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(St,{caption:t,title:a}),(0,r.jsx)(kt,{team:i})]})})}function St({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function kt({team:t}){return t?(0,r.jsx)(V.Flex,{wrap:!0,children:t&&t.map((a,i)=>{var o,n,p,f;return(0,r.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,r.jsxs)(et.Card,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)(L.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(n=a==null?void 0:a.mainImage)==null?void 0:n.image}`,width:179,height:320,alt:(f=(p=a==null?void 0:a.mainImage)==null?void 0:p.alt)!=null?f:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(Rt,{member:a})]})},i)})}):null}function Rt({member:t}){return(0,r.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[(0,r.jsx)(N.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var et,v,V,h,L,D,N,r,_=x(()=>{"use strict";et=require("@stackshift-ui/card")});var _t={};c(_t,{Team:()=>pt,Team_A:()=>y,Team_B:()=>I,Team_C:()=>k,Team_D:()=>$});module.exports=ut(_t);var m=require("react"),At={variant_a:(0,m.lazy)(()=>Promise.resolve().then(()=>(C(),E))),variant_b:(0,m.lazy)(()=>Promise.resolve().then(()=>(F(),U))),variant_c:(0,m.lazy)(()=>Promise.resolve().then(()=>(R(),it))),variant_d:(0,m.lazy)(()=>Promise.resolve().then(()=>(_(),st)))},$t="Team",pt=({data:t})=>{var n,p,f,j,z,H;let a=t==null?void 0:t.variant,i=a&&At[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(j=(f=t==null?void 0:t.variants)==null?void 0:f.title)!=null?j:void 0,team:(H=(z=t==null?void 0:t.variants)==null?void 0:z.teams)!=null?H:void 0};return i?(0,r.jsx)(i,{...o}):null};pt.displayName=$t;C();F();R();_();0&&(module.exports={Team,Team_A,Team_B,Team_C,Team_D});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as f}from"./chunk-RD3K7TYV.mjs";import{a as o}from"./chunk-JXTPBLF7.mjs";import{a as r}from"./chunk-XLPMBOLQ.mjs";import{a as e}from"./chunk-TBRPJMYX.mjs";import{a as t}from"./chunk-3NOHOXI7.mjs";export{f as Team,o as Team_A,r as Team_B,e as Team_C,t as Team_D};
2
+ "use strict";import{a as f}from"./chunk-ZQXPIS5G.mjs";import{a as o}from"./chunk-JXTPBLF7.mjs";import{a as r}from"./chunk-XLPMBOLQ.mjs";import{a as e}from"./chunk-TBRPJMYX.mjs";import{a as t}from"./chunk-B2UWZQSJ.mjs";export{f as Team,o as Team_A,r as Team_B,e as Team_C,t as Team_D};
package/dist/team.js CHANGED
@@ -1 +1 @@
1
- "use strict";var ft=Object.create;var d=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var x=(t,a)=>()=>(t&&(a=t(t=0)),a);var f=(t,a)=>{for(var i in a)d(t,i,{get:a[i],enumerable:!0})},k=(t,a,i,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of dt(a))!gt.call(t,n)&&n!==i&&d(t,n,{get:()=>a[n],enumerable:!(o=mt(a,n))||o.enumerable});return t};var w=(t,a,i)=>(i=t!=null?ft(xt(t)):{},k(a||!t||!t.__esModule?d(i,"default",{value:t,enumerable:!0}):i,t)),ut=t=>k(d({},"__esModule",{value:!0}),t);var H={};f(H,{Team_A:()=>z,default:()=>z});function z({caption:t,title:a,team:i}){return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(v.Container,{className:"mb-10 text-center",children:(0,r.jsx)(Tt,{caption:t,title:a})}),(0,r.jsx)(wt,{team:i})]})})}function Tt({caption:t,title:a}){return(0,r.jsxs)(j.default.Fragment,{children:[t?(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(h.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function wt({team:t}){return t?(0,r.jsx)(A.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:(0,r.jsxs)(R.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4",borderRadius:"md",children:[((i=a==null?void 0:a.mainImage)==null?void 0:i.image)&&(0,r.jsx)($.Image,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(vt,{member:a})]})},a==null?void 0:a.name)})}):null}function vt({member:t}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(h.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var R,v,A,h,$,_,N,j,r,W=x(()=>{"use strict";R=require("@stackshift-ui/card"),v=require("@stackshift-ui/container"),A=require("@stackshift-ui/flex"),h=require("@stackshift-ui/heading"),$=require("@stackshift-ui/image"),_=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),j=w(require("react")),r=require("react/jsx-runtime")});var G={};f(G,{Team_B:()=>E,default:()=>E});function E({team:t}){var n;let[a,i]=y.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=y.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsx)(v.Container,{maxWidth:1280,children:(0,r.jsxs)(A.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:i}),(0,r.jsx)(yt,{members:o})]})})})}function ht({team:t,activeTab:a,setActiveTab:i}){return(0,r.jsx)("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:(0,r.jsx)(A.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:t==null?void 0:t.map(o=>(0,r.jsx)(Nt,{data:o,activeTab:a,setActiveTab:i},o.name))})})}function Nt({data:t,activeTab:a,setActiveTab:i}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(B.Button,{as:"button",variant:"unstyled",ariaLabel:t.name,className:`text-xl lg:text-2xl ${t.name===a?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var o;return i((o=t.name)!=null?o:"")},children:t.name})})}function yt({members:t}){return t?(0,r.jsx)("div",{className:"w-full lg:w-2/3 sm:p-6",children:t.map((a,i)=>(0,r.jsx)(Ct,{member:a},i))}):null}function Ct({member:t}){var a,i;return t?(0,r.jsxs)(V.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96",borderRadius:"md",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md",children:(0,r.jsx)($.Image,{className:"object-cover absolute inset-0 w-full h-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=t.mainImage.alt)!=null?i:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(Pt,{member:t})]}):null}function Pt({member:t}){return(0,r.jsxs)("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[(0,r.jsx)(N.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t.jobTitle}),(0,r.jsx)(N.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var B,V,v,A,$,_,N,y,r,J=x(()=>{"use strict";B=require("@stackshift-ui/button"),V=require("@stackshift-ui/card"),y=w(require("react"))});var b={};f(b,{Team_C:()=>Z,default:()=>Z});function Z({caption:t,title:a,team:i}){return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(Mt,{caption:t,title:a}),(0,r.jsx)(It,{team:i})]})})}function Mt({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function It({team:t}){return t?(0,r.jsx)(A.Flex,{wrap:!0,children:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:(0,r.jsxs)(K.Card,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center",borderRadius:"md",children:[((i=a.mainImage)==null?void 0:i.image)&&(0,r.jsx)("div",{children:(0,r.jsx)($.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,width:345,height:256,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`})}),(0,r.jsx)(Ft,{member:a})]})},a==null?void 0:a.name)})}):null}function Ft({member:t}){return(0,r.jsxs)(Y.default.Fragment,{children:[(0,r.jsx)(N.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var K,v,A,h,$,_,N,Y,r,tt=x(()=>{"use strict";K=require("@stackshift-ui/card"),Y=w(require("react"))});var lt={};f(lt,{Team_D:()=>rt,default:()=>rt});function rt({caption:t,title:a,team:i}){return(0,r.jsx)(_.Section,{className:"!md:px-4 py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(St,{caption:t,title:a}),(0,r.jsx)(kt,{team:i})]})})}function St({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function kt({team:t}){return t?(0,r.jsx)(A.Flex,{wrap:!0,children:t&&t.map((a,i)=>{var o,n,p,c;return(0,r.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,r.jsxs)(at.Card,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)($.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(n=a==null?void 0:a.mainImage)==null?void 0:n.image}`,width:179,height:320,alt:(c=(p=a==null?void 0:a.mainImage)==null?void 0:p.alt)!=null?c:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(Rt,{member:a})]})},i)})}):null}function Rt({member:t}){return(0,r.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[(0,r.jsx)(N.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var at,v,A,h,$,_,N,r,st=x(()=>{"use strict";at=require("@stackshift-ui/card")});var _t={};f(_t,{Team:()=>pt});module.exports=ut(_t);var m=require("react"),At={variant_a:(0,m.lazy)(()=>Promise.resolve().then(()=>(W(),H))),variant_b:(0,m.lazy)(()=>Promise.resolve().then(()=>(J(),G))),variant_c:(0,m.lazy)(()=>Promise.resolve().then(()=>(tt(),b))),variant_d:(0,m.lazy)(()=>Promise.resolve().then(()=>(st(),lt)))},$t="Team",pt=({data:t})=>{var n,p,c,I,F,S;let a=t==null?void 0:t.variant,i=a&&At[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(I=(c=t==null?void 0:t.variants)==null?void 0:c.title)!=null?I:void 0,team:(S=(F=t==null?void 0:t.variants)==null?void 0:F.teams)!=null?S:void 0};return i?(0,r.jsx)(i,{...o}):null};pt.displayName=$t;0&&(module.exports={Team});
1
+ "use strict";var ft=Object.create;var d=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var xt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var x=(t,a)=>()=>(t&&(a=t(t=0)),a);var f=(t,a)=>{for(var i in a)d(t,i,{get:a[i],enumerable:!0})},k=(t,a,i,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of dt(a))!gt.call(t,n)&&n!==i&&d(t,n,{get:()=>a[n],enumerable:!(o=mt(a,n))||o.enumerable});return t};var w=(t,a,i)=>(i=t!=null?ft(xt(t)):{},k(a||!t||!t.__esModule?d(i,"default",{value:t,enumerable:!0}):i,t)),ut=t=>k(d({},"__esModule",{value:!0}),t);var H={};f(H,{Team_A:()=>z,default:()=>z});function z({caption:t,title:a,team:i}){return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(v.Container,{className:"mb-10 text-center",children:(0,r.jsx)(Tt,{caption:t,title:a})}),(0,r.jsx)(wt,{team:i})]})})}function Tt({caption:t,title:a}){return(0,r.jsxs)(j.default.Fragment,{children:[t?(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(h.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function wt({team:t}){return t?(0,r.jsx)(A.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:(0,r.jsxs)(R.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4",borderRadius:"md",children:[((i=a==null?void 0:a.mainImage)==null?void 0:i.image)&&(0,r.jsx)($.Image,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(vt,{member:a})]})},a==null?void 0:a.name)})}):null}function vt({member:t}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(h.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var R,v,A,h,$,_,N,j,r,W=x(()=>{"use strict";R=require("@stackshift-ui/card"),v=require("@stackshift-ui/container"),A=require("@stackshift-ui/flex"),h=require("@stackshift-ui/heading"),$=require("@stackshift-ui/image"),_=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),j=w(require("react")),r=require("react/jsx-runtime")});var G={};f(G,{Team_B:()=>E,default:()=>E});function E({team:t}){var n;let[a,i]=y.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=y.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsx)(v.Container,{maxWidth:1280,children:(0,r.jsxs)(A.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:i}),(0,r.jsx)(yt,{members:o})]})})})}function ht({team:t,activeTab:a,setActiveTab:i}){return(0,r.jsx)("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:(0,r.jsx)(A.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:t==null?void 0:t.map(o=>(0,r.jsx)(Nt,{data:o,activeTab:a,setActiveTab:i},o.name))})})}function Nt({data:t,activeTab:a,setActiveTab:i}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(B.Button,{as:"button",variant:"unstyled",ariaLabel:t.name,className:`text-xl lg:text-2xl ${t.name===a?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var o;return i((o=t.name)!=null?o:"")},children:t.name})})}function yt({members:t}){return t?(0,r.jsx)("div",{className:"w-full lg:w-2/3 sm:p-6",children:t.map((a,i)=>(0,r.jsx)(Ct,{member:a},i))}):null}function Ct({member:t}){var a,i;return t?(0,r.jsxs)(V.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96",borderRadius:"md",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md",children:(0,r.jsx)($.Image,{className:"object-cover absolute inset-0 w-full h-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=t.mainImage.alt)!=null?i:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(Pt,{member:t})]}):null}function Pt({member:t}){return(0,r.jsxs)("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[(0,r.jsx)(N.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t.jobTitle}),(0,r.jsx)(N.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var B,V,v,A,$,_,N,y,r,J=x(()=>{"use strict";B=require("@stackshift-ui/button"),V=require("@stackshift-ui/card"),y=w(require("react"))});var b={};f(b,{Team_C:()=>Z,default:()=>Z});function Z({caption:t,title:a,team:i}){return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(Mt,{caption:t,title:a}),(0,r.jsx)(It,{team:i})]})})}function Mt({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function It({team:t}){return t?(0,r.jsx)(A.Flex,{wrap:!0,children:t.map(a=>{var i,o,n,p;return(0,r.jsx)("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:(0,r.jsxs)(K.Card,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center",borderRadius:"md",children:[((i=a.mainImage)==null?void 0:i.image)&&(0,r.jsx)("div",{children:(0,r.jsx)($.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(o=a==null?void 0:a.mainImage)==null?void 0:o.image}`,width:345,height:256,alt:(p=(n=a==null?void 0:a.mainImage)==null?void 0:n.alt)!=null?p:`team-member-${a==null?void 0:a.name}-profile-image`})}),(0,r.jsx)(Ft,{member:a})]})},a==null?void 0:a.name)})}):null}function Ft({member:t}){return(0,r.jsxs)(Y.default.Fragment,{children:[(0,r.jsx)(N.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var K,v,A,h,$,_,N,Y,r,tt=x(()=>{"use strict";K=require("@stackshift-ui/card"),Y=w(require("react"))});var lt={};f(lt,{Team_D:()=>rt,default:()=>rt});function rt({caption:t,title:a,team:i}){return(0,r.jsx)(_.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(v.Container,{maxWidth:1280,children:[(0,r.jsx)(St,{caption:t,title:a}),(0,r.jsx)(kt,{team:i})]})})}function St({caption:t,title:a}){return(0,r.jsxs)(v.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,r.jsx)(h.Heading,{children:a})]})}function kt({team:t}){return t?(0,r.jsx)(A.Flex,{wrap:!0,children:t&&t.map((a,i)=>{var o,n,p,c;return(0,r.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,r.jsxs)(at.Card,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)($.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(n=a==null?void 0:a.mainImage)==null?void 0:n.image}`,width:179,height:320,alt:(c=(p=a==null?void 0:a.mainImage)==null?void 0:p.alt)!=null?c:`team-member-${a==null?void 0:a.name}-profile-image`}),(0,r.jsx)(Rt,{member:a})]})},i)})}):null}function Rt({member:t}){return(0,r.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[(0,r.jsx)(N.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var at,v,A,h,$,_,N,r,st=x(()=>{"use strict";at=require("@stackshift-ui/card")});var _t={};f(_t,{Team:()=>pt});module.exports=ut(_t);var m=require("react"),At={variant_a:(0,m.lazy)(()=>Promise.resolve().then(()=>(W(),H))),variant_b:(0,m.lazy)(()=>Promise.resolve().then(()=>(J(),G))),variant_c:(0,m.lazy)(()=>Promise.resolve().then(()=>(tt(),b))),variant_d:(0,m.lazy)(()=>Promise.resolve().then(()=>(st(),lt)))},$t="Team",pt=({data:t})=>{var n,p,c,I,F,S;let a=t==null?void 0:t.variant,i=a&&At[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(I=(c=t==null?void 0:t.variants)==null?void 0:c.title)!=null?I:void 0,team:(S=(F=t==null?void 0:t.variants)==null?void 0:F.teams)!=null?S:void 0};return i?(0,r.jsx)(i,{...o}):null};pt.displayName=$t;0&&(module.exports={Team});
package/dist/team.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-RD3K7TYV.mjs";export{a as Team};
1
+ import{a}from"./chunk-ZQXPIS5G.mjs";export{a as Team};
package/dist/team_d.js CHANGED
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var N=(a,t)=>{for(var o in t)s(a,o,{get:t[o],enumerable:!0})},v=(a,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of w(t))!h.call(a,e)&&e!==o&&s(a,e,{get:()=>t[e],enumerable:!(l=T(t,e))||l.enumerable});return a};var C=a=>v(s({},"__esModule",{value:!0}),a);var y={};N(y,{Team_D:()=>u,default:()=>u});module.exports=C(y);var p=require("@stackshift-ui/card"),d=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),m=require("@stackshift-ui/image"),g=require("@stackshift-ui/section"),n=require("@stackshift-ui/text"),i=require("react/jsx-runtime");function u({caption:a,title:t,team:o}){return(0,i.jsx)(g.Section,{className:"!md:px-4 py-20 bg-background",children:(0,i.jsxs)(d.Container,{maxWidth:1280,children:[(0,i.jsx)(I,{caption:a,title:t}),(0,i.jsx)(M,{team:o})]})})}function I({caption:a,title:t}){return(0,i.jsxs)(d.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&(0,i.jsx)(n.Text,{weight:"bold",className:"text-secondary",children:a}),t&&(0,i.jsx)(c.Heading,{children:t})]})}function M({team:a}){return a?(0,i.jsx)(f.Flex,{wrap:!0,children:a&&a.map((t,o)=>{var l,e,x,r;return(0,i.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,i.jsxs)(p.Card,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((l=t.mainImage)==null?void 0:l.image)&&(0,i.jsx)(m.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:179,height:320,alt:(r=(x=t==null?void 0:t.mainImage)==null?void 0:x.alt)!=null?r:`team-member-${t==null?void 0:t.name}-profile-image`}),(0,i.jsx)(P,{member:t})]})},o)})}):null}function P({member:a}){return(0,i.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[(0,i.jsx)(n.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),(0,i.jsx)(n.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:a==null?void 0:a.plainText})]})}0&&(module.exports={Team_D});
1
+ "use strict";var s=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var N=(a,t)=>{for(var o in t)s(a,o,{get:t[o],enumerable:!0})},v=(a,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of w(t))!h.call(a,e)&&e!==o&&s(a,e,{get:()=>t[e],enumerable:!(l=T(t,e))||l.enumerable});return a};var C=a=>v(s({},"__esModule",{value:!0}),a);var y={};N(y,{Team_D:()=>u,default:()=>u});module.exports=C(y);var p=require("@stackshift-ui/card"),d=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),m=require("@stackshift-ui/section"),n=require("@stackshift-ui/text"),i=require("react/jsx-runtime");function u({caption:a,title:t,team:o}){return(0,i.jsx)(m.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(d.Container,{maxWidth:1280,children:[(0,i.jsx)(I,{caption:a,title:t}),(0,i.jsx)(M,{team:o})]})})}function I({caption:a,title:t}){return(0,i.jsxs)(d.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&(0,i.jsx)(n.Text,{weight:"bold",className:"text-secondary",children:a}),t&&(0,i.jsx)(c.Heading,{children:t})]})}function M({team:a}){return a?(0,i.jsx)(f.Flex,{wrap:!0,children:a&&a.map((t,o)=>{var l,e,r,x;return(0,i.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,i.jsxs)(p.Card,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((l=t.mainImage)==null?void 0:l.image)&&(0,i.jsx)(g.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:179,height:320,alt:(x=(r=t==null?void 0:t.mainImage)==null?void 0:r.alt)!=null?x:`team-member-${t==null?void 0:t.name}-profile-image`}),(0,i.jsx)(P,{member:t})]})},o)})}):null}function P({member:a}){return(0,i.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[(0,i.jsx)(n.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),(0,i.jsx)(n.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:a==null?void 0:a.plainText})]})}0&&(module.exports={Team_D});
package/dist/team_d.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-3NOHOXI7.mjs";export{a as Team_D,a as default};
1
+ import{a}from"./chunk-B2UWZQSJ.mjs";export{a as Team_D,a as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/team",
3
3
  "description": "",
4
- "version": "6.0.14-beta.0",
4
+ "version": "6.0.14-beta.2",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,29 +29,29 @@
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.10-beta.0",
33
- "@stackshift-ui/typescript-config": "6.0.10-beta.0"
32
+ "@stackshift-ui/eslint-config": "6.0.10-beta.2",
33
+ "@stackshift-ui/typescript-config": "6.0.10-beta.2"
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.0.10-beta.0",
38
- "@stackshift-ui/system": "6.0.11-beta.0",
39
- "@stackshift-ui/button": "6.0.11-beta.0",
40
- "@stackshift-ui/card": "6.0.11-beta.0",
41
- "@stackshift-ui/avatar": "6.0.13-beta.0",
42
- "@stackshift-ui/heading": "6.0.11-beta.0",
43
- "@stackshift-ui/text": "6.0.11-beta.0",
44
- "@stackshift-ui/image": "6.0.11-beta.0",
45
- "@stackshift-ui/section": "6.0.11-beta.0",
46
- "@stackshift-ui/container": "6.0.11-beta.0",
47
- "@stackshift-ui/flex": "6.0.11-beta.0"
37
+ "@stackshift-ui/system": "6.0.11-beta.2",
38
+ "@stackshift-ui/scripts": "6.0.10-beta.2",
39
+ "@stackshift-ui/card": "6.0.11-beta.2",
40
+ "@stackshift-ui/text": "6.0.11-beta.2",
41
+ "@stackshift-ui/button": "6.0.11-beta.2",
42
+ "@stackshift-ui/image": "6.0.11-beta.2",
43
+ "@stackshift-ui/avatar": "6.0.13-beta.2",
44
+ "@stackshift-ui/container": "6.0.11-beta.2",
45
+ "@stackshift-ui/flex": "6.0.11-beta.2",
46
+ "@stackshift-ui/heading": "6.0.11-beta.2",
47
+ "@stackshift-ui/section": "6.0.11-beta.2"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@types/react": "16.8 - 19",
51
51
  "next": "10 - 14",
52
52
  "react": "16.8 - 19",
53
53
  "react-dom": "16.8 - 19",
54
- "@stackshift-ui/system": ">=6.0.11-beta.0"
54
+ "@stackshift-ui/system": ">=6.0.11-beta.2"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "next": {
package/src/team_d.tsx CHANGED
@@ -10,7 +10,7 @@ import { Team as iTeam } from "./types";
10
10
 
11
11
  export default function Team_D({ caption, title, team }: TeamsProps) {
12
12
  return (
13
- <Section className="!md:px-4 py-20 bg-background">
13
+ <Section className="py-20 bg-background">
14
14
  <Container maxWidth={1280}>
15
15
  <CaptionAndTitle caption={caption} title={title} />
16
16
  <TeamMemberCard team={team} />
@@ -1 +0,0 @@
1
- import{Card as p}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as c}from"@stackshift-ui/heading";import{Image as m}from"@stackshift-ui/image";import{Section as g}from"@stackshift-ui/section";import{Text as l}from"@stackshift-ui/text";import{jsx as i,jsxs as o}from"react/jsx-runtime";function u({caption:a,title:t,team:e}){return i(g,{className:"!md:px-4 py-20 bg-background",children:o(r,{maxWidth:1280,children:[i(T,{caption:a,title:t}),i(w,{team:e})]})})}function T({caption:a,title:t}){return o(r,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&i(l,{weight:"bold",className:"text-secondary",children:a}),t&&i(c,{children:t})]})}function w({team:a}){return a?i(f,{wrap:!0,children:a&&a.map((t,e)=>{var n,s,d,x;return i("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:o(p,{className:"flex flex-col xl:flex-row items-center gap-3 bg-white overflow-hidden shadow-lg ",borderRadius:"md",children:[((n=t.mainImage)==null?void 0:n.image)&&i(m,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(s=t==null?void 0:t.mainImage)==null?void 0:s.image}`,width:179,height:320,alt:(x=(d=t==null?void 0:t.mainImage)==null?void 0:d.alt)!=null?x:`team-member-${t==null?void 0:t.name}-profile-image`}),i(h,{member:t})]})},e)})}):null}function h({member:a}){return o("div",{className:"w-full xl:w-2/3 flex flex-col gap-2",children:[i(l,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),i(l,{className:"leading-loose text-sm md:text-base",muted:!0,children:a==null?void 0:a.plainText})]})}export{u as a};
File without changes