@stackshift-ui/team 7.0.0-beta.3 → 7.0.0-beta.6

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.
@@ -1 +1 @@
1
- import{Card as s,CardContent as c}from"@stackshift-ui/card";import{Container as p}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{Text as r}from"@stackshift-ui/text";import T from"react";import{jsx as i,jsxs as n}from"react/jsx-runtime";function w({caption:a,title:t,team:o}){return i(u,{className:"py-20 bg-background",children:n(p,{maxWidth:1280,children:[i(m,{caption:a,title:t}),i(C,{team:o})]})})}function m({caption:a,title:t}){return n(p,{maxWidth:576,className:"mb-12 text-center ",children:[a&&i(r,{weight:"bold",className:"text-primary",children:a}),t&&i(g,{children:t})]})}function C({team:a}){return a?i(f,{wrap:!0,children:a.map(t=>{var o,e,l,d;return i("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:n(s,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[i(c,{className:"p-0",children:((o=t.mainImage)==null?void 0:o.image)&&i("div",{children:i(x,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:345,height:256,alt:(d=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?d:`team-member-${t==null?void 0:t.name}-profile-image`})})}),i(h,{member:t})]})},t==null?void 0:t.name)})}):null}function h({member:a}){return n(T.Fragment,{children:[i(r,{fontSize:"2xl",weight:"bold",className:"mb-2",children:a==null?void 0:a.name}),i(r,{muted:!0,children:a==null?void 0:a.jobTitle})]})}export{w as a};
1
+ import{Card as s,CardContent as c}from"@stackshift-ui/card";import{Container as p}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{Text as r}from"@stackshift-ui/text";import T from"react";import{jsx as i,jsxs as n}from"react/jsx-runtime";function w({caption:a,title:t,team:o}){return i(u,{className:"py-20 bg-background",children:n(p,{maxWidth:1280,children:[i(m,{caption:a,title:t}),i(C,{team:o})]})})}function m({caption:a,title:t}){return n(p,{maxWidth:576,className:"mb-12 text-center ",children:[a&&i(r,{weight:"bold",className:"text-primary",children:a}),t&&i(g,{children:t})]})}function C({team:a}){return a?i(f,{wrap:!0,children:a.map(t=>{var o,e,l,d;return i("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:n(s,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[i(c,{className:"p-0",children:((o=t.mainImage)==null?void 0:o.image)&&i("div",{children:i(x,{className:"mb-8 h-[345px] w-full object-cover rounded-t-md",sizes:"100vw",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:345,height:256,alt:(d=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?d:`team-member-${t==null?void 0:t.name}-profile-image`})})}),i(h,{member:t})]})},t==null?void 0:t.name)})}):null}function h({member:a}){return n(T.Fragment,{children:[i(r,{fontSize:"2xl",weight:"bold",className:"mb-2",children:a==null?void 0:a.name}),i(r,{muted:!0,children:a==null?void 0:a.jobTitle})]})}export{w as a};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-Z5PUB6KK.mjs";import{a}from"./chunk-IWG3N2YJ.mjs";import{a as f}from"./chunk-4IAGLV3Q.mjs";import{a as T}from"./chunk-YBWRYWSQ.mjs";import{jsx as u}from"react/jsx-runtime";var v={variant_a:c,variant_b:a,variant_c:f,variant_d:T},b="Team",g=({data:e})=>{var n,t,o,m,s,p;let r=e==null?void 0:e.variant,i=r&&v[r],l={caption:(t=(n=e==null?void 0:e.variants)==null?void 0:n.subtitle)!=null?t:void 0,title:(m=(o=e==null?void 0:e.variants)==null?void 0:o.title)!=null?m:void 0,team:(p=(s=e==null?void 0:e.variants)==null?void 0:s.teams)!=null?p:void 0};return i?u(i,{...l}):null};g.displayName=b;export{g as a};
@@ -1 +1 @@
1
- import{Button as c}from"@stackshift-ui/button";import{Card as d,CardContent as u}from"@stackshift-ui/card";import{Container as T}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Image as p}from"@stackshift-ui/image";import{Section as x}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import s from"react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function g({team:e}){var m;let[t,i]=s.useState((m=e==null?void 0:e[0])==null?void 0:m.name),r=s.useMemo(()=>(e==null?void 0:e.filter(n=>(n==null?void 0:n.name)===t))||[],[e,t]);return a(x,{className:"py-20 bg-background",children:a(T,{maxWidth:1280,children:l(f,{wrap:!0,align:"center",children:[a(b,{team:e,activeTab:t,setActiveTab:i}),a(w,{members:r})]})})})}function b({team:e,activeTab:t,setActiveTab:i}){return a("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:a(f,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:e==null?void 0:e.map(r=>a(v,{data:r,activeTab:t,setActiveTab:i},r.name))})})}function v({data:e,activeTab:t,setActiveTab:i}){return!e||!e.name?null:a("li",{children:a(c,{variant:"unstyled","aria-label":e.name,className:`text-xl lg:text-2xl ${e.name===t?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var r;return i((r=e.name)!=null?r:"")},children:e.name})})}function w({members:e}){return e?a("div",{className:"w-full lg:w-2/3 sm:p-6",children:e.map((t,i)=>a(h,{member:t},i))}):null}function h({member:e}){var t,i;return e?a(d,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96 rounded-md",children:l(u,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((t=e.mainImage)==null?void 0:t.image)&&a("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md",children:a(p,{className:"object-cover absolute inset-0 w-full h-full",src:`${e.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=e.mainImage.alt)!=null?i:`team-member-${e.name}-profile-image`})}),a(N,{member:e})]})}):null}function N({member:e}){return l("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[a(o,{weight:"bold",fontSize:"2xl",children:e.name}),a(o,{muted:!0,children:e.jobTitle}),a(o,{className:"text-justify mt-4",muted:!0,children:e.plainText})]})}export{g as a};
1
+ import{Button as c}from"@stackshift-ui/button";import{Card as d,CardContent as u}from"@stackshift-ui/card";import{Container as T}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Image as p}from"@stackshift-ui/image";import{Section as x}from"@stackshift-ui/section";import{Text as n}from"@stackshift-ui/text";import s from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function g({team:e}){var m;let[t,i]=s.useState((m=e==null?void 0:e[0])==null?void 0:m.name),r=s.useMemo(()=>(e==null?void 0:e.filter(l=>(l==null?void 0:l.name)===t))||[],[e,t]);return a(x,{className:"py-20 bg-background",children:a(T,{maxWidth:1280,children:o(f,{wrap:!0,align:"center",children:[a(b,{team:e,activeTab:t,setActiveTab:i}),a(w,{members:r})]})})})}function b({team:e,activeTab:t,setActiveTab:i}){return a("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:a(f,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:e==null?void 0:e.map(r=>a(v,{data:r,activeTab:t,setActiveTab:i},r.name))})})}function v({data:e,activeTab:t,setActiveTab:i}){return!e||!e.name?null:a("li",{children:a(c,{variant:"unstyled","aria-label":e.name,className:`text-xl lg:text-2xl ${e.name===t?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var r;return i((r=e.name)!=null?r:"")},children:e.name})})}function w({members:e}){return e?a("div",{className:"w-full lg:w-2/3 sm:p-6",children:e.map((t,i)=>a(h,{member:t},i))}):null}function h({member:e}){var t,i;return e?a(d,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96 rounded-md",children:o(u,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((t=e.mainImage)==null?void 0:t.image)&&a("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-l-md",children:a(p,{className:"object-cover absolute inset-0 w-full h-full",src:`${e.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=e.mainImage.alt)!=null?i:`team-member-${e.name}-profile-image`})}),a(N,{member:e})]})}):null}function N({member:e}){return o("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[a(n,{weight:"bold",fontSize:"2xl",children:e.name}),a(n,{muted:!0,children:e.jobTitle}),a(n,{className:"text-justify mt-4",muted:!0,children:e.plainText})]})}export{g as a};
@@ -1 +1 @@
1
- import{Card as f,CardContent as p}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as m}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{Text as e}from"@stackshift-ui/text";import{jsx as l,jsxs as i}from"react/jsx-runtime";function w({caption:a,title:t,team:o}){return l(u,{className:"py-20 bg-background",children:i(r,{maxWidth:1280,children:[l(T,{caption:a,title:t}),l(h,{team:o})]})})}function T({caption:a,title:t}){return i(r,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&l(e,{weight:"bold",className:"text-secondary",children:a}),t&&l(g,{children:t})]})}function h({team:a}){return a?l(c,{wrap:!0,children:a&&a.map((t,o)=>{var n,d,s,x;return l("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:l(f,{className:"w-full h-full lg:h-fit bg-white overflow-hidden shadow-lg rounded-md",children:i(p,{className:"w-full h-full flex flex-col gap-3 xl:flex-row p-0",children:[((n=t.mainImage)==null?void 0:n.image)&&l(m,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(d=t==null?void 0:t.mainImage)==null?void 0:d.image}`,width:179,height:320,alt:(x=(s=t==null?void 0:t.mainImage)==null?void 0:s.alt)!=null?x:`team-member-${t==null?void 0:t.name}-profile-image`}),l(C,{member:t})]})})},o)})}):null}function C({member:a}){return i("div",{className:"w-full xl:w-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[l(e,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),l(e,{className:"leading-loose text-sm md:text-base",muted:!0,children:a==null?void 0:a.plainText})]})}export{w as a};
1
+ import{Card as f,CardContent as p}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as m}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{Text as e}from"@stackshift-ui/text";import{jsx as l,jsxs as i}from"react/jsx-runtime";function w({caption:a,title:t,team:o}){return l(u,{className:"py-20 bg-background",children:i(r,{maxWidth:1280,children:[l(T,{caption:a,title:t}),l(h,{team:o})]})})}function T({caption:a,title:t}){return i(r,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&l(e,{weight:"bold",className:"text-secondary",children:a}),t&&l(g,{children:t})]})}function h({team:a}){return a?l(c,{wrap:!0,children:a&&a.map((t,o)=>{var n,d,s,x;return l("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:l(f,{className:"w-full h-full lg:h-fit bg-white overflow-hidden shadow-lg rounded-md",children:i(p,{className:"w-full h-full flex flex-col gap-3 xl:flex-row p-0",children:[((n=t.mainImage)==null?void 0:n.image)&&l(m,{className:"h-full w-full object-cover rounded-t-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(d=t==null?void 0:t.mainImage)==null?void 0:d.image}`,width:179,height:320,alt:(x=(s=t==null?void 0:t.mainImage)==null?void 0:s.alt)!=null?x:`team-member-${t==null?void 0:t.name}-profile-image`}),l(C,{member:t})]})})},o)})}):null}function C({member:a}){return i("div",{className:"w-full xl:w-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[l(e,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),l(e,{className:"leading-loose text-sm md:text-base",muted:!0,children:a==null?void 0:a.plainText})]})}export{w as a};
@@ -0,0 +1 @@
1
+ import{Card as d,CardContent as g}from"@stackshift-ui/card";import{Container as p}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as r}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{Text as c}from"@stackshift-ui/text";import T from"react";import{jsx as i,jsxs as o}from"react/jsx-runtime";function h({caption:a,title:t,team:n}){return i(u,{className:"py-20 bg-background",children:o(p,{maxWidth:1280,children:[i(p,{className:"mb-10 text-center",children:i(w,{caption:a,title:t})}),i(C,{team:n})]})})}function w({caption:a,title:t}){return o(T.Fragment,{children:[a?i(c,{weight:"bold",className:"text-secondary",children:a}):null,t?i(r,{type:"h2",fontSize:"2xl",children:t}):null]})}function C({team:a}){return a?i(f,{wrap:!0,align:"center",justify:"center",gap:6,children:a==null?void 0:a.map(t=>{var n,l,e,s;return i("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:i(d,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:o(g,{className:"flex gap-4 p-0 items-center",children:[((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&i(x,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(l=t==null?void 0:t.mainImage)==null?void 0:l.image}`,alt:(s=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?s:`team-member-${t==null?void 0:t.name}-profile-image`}),i(N,{member:t})]})})},t==null?void 0:t.name)})}):null}function N({member:a}){return o("div",{className:"flex flex-col gap-2",children:[i(r,{type:"h3",className:"text-xl lg:text-2xl",children:a==null?void 0:a.name}),i(c,{muted:!0,children:a==null?void 0:a.jobTitle})]})}export{h 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 e in a)d(t,e,{get:a[e],enumerable:!0})},L=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of dt(a))!gt.call(t,n)&&n!==e&&d(t,n,{get:()=>a[n],enumerable:!(o=ct(a,n))||o.enumerable});return t};var N=(t,a,e)=>(e=t!=null?mt(xt(t)):{},L(a||!t||!t.__esModule?d(e,"default",{value:t,enumerable:!0}):e,t)),ut=t=>L(d({},"__esModule",{value:!0}),t);var K={};m(K,{Team_A:()=>I,default:()=>I});function I({caption:t,title:a,team:e}){return(0,r.jsx)(G.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(y.Container,{maxWidth:1280,children:[(0,r.jsx)(y.Container,{className:"mb-10 text-center",children:(0,r.jsx)(Tt,{caption:t,title:a})}),(0,r.jsx)(wt,{team:e})]})})}function Tt({caption:t,title:a}){return(0,r.jsxs)(J.default.Fragment,{children:[t?(0,r.jsx)(M.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(P.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function wt({team:t}){return t?(0,r.jsx)(q.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var e,o,n,p;return(0,r.jsx)("div",{className:"M-full [@media(min-width:421px)]:M-96 sm:M-1/2 lg:M-1/3",children:(0,r.jsx)(g.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:(0,r.jsxs)(g.CardContent,{className:"flex gap-4 p-0",children:[((e=a==null?void 0:a.mainImage)==null?void 0:e.image)&&(0,r.jsx)(E.Image,{width:96,height:96,className:"border-0 M-28 M-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)(P.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(M.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var g,y,q,P,E,G,M,J,r,F=x(()=>{"use strict";g=require("@stackshift-ui/card"),y=require("@stackshift-ui/container"),q=require("@stackshift-ui/flex"),P=require("@stackshift-ui/heading"),E=require("@stackshift-ui/image"),G=require("@stackshift-ui/section"),M=require("@stackshift-ui/text"),J=N(require("react")),r=require("react/jsx-runtime")});var Y={};m(Y,{Team_B:()=>A,default:()=>A});function A({team:t}){var n;let[a,e]=S.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=S.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(G.Section,{className:"py-20 bg-background",children:(0,r.jsx)(y.Container,{maxWidth:1280,children:(0,r.jsxs)(q.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:e}),(0,r.jsx)(Nt,{members:o})]})})})}function ht({team:t,activeTab:a,setActiveTab:e}){return(0,r.jsx)("div",{className:"M-full px-3 mb-8 lg:mb-0 lg:M-1/3",children:(0,r.jsx)(q.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)(Ct,{data:o,activeTab:a,setActiveTab:e},o.name))})})}function Ct({data:t,activeTab:a,setActiveTab:e}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(O.Button,{variant:"unstyled","aria-label":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 e((o=t.name)!=null?o:"")},children:t.name})})}function Nt({members:t}){return t?(0,r.jsx)("div",{className:"M-full lg:M-2/3 sm:p-6",children:t.map((a,e)=>(0,r.jsx)(yt,{member:a},e))}):null}function yt({member:t}){var a,e;return t?(0,r.jsx)(T.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:M-96 rounded-md",children:(0,r.jsxs)(T.CardContent,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"M-full md:M-1/2 M-48 md:M-full relative overflow-hidden rounded-md",children:(0,r.jsx)(E.Image,{className:"object-cover absolute inset-0 M-full M-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(e=t.mainImage.alt)!=null?e:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(Pt,{member:t})]})}):null}function Pt({member:t}){return(0,r.jsxs)("div",{className:"M-full md:M-1/2 md:p-6 max-M-[300px] md:max-M-96 overflow-y-auto",children:[(0,r.jsx)(M.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(M.Text,{muted:!0,children:t.jobTitle}),(0,r.jsx)(M.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var O,T,y,q,E,G,M,S,r,$=x(()=>{"use strict";O=require("@stackshift-ui/button"),T=require("@stackshift-ui/card"),S=N(require("react"))});var it={};m(it,{Team_C:()=>j,default:()=>j});function j({caption:t,title:a,team:e}){return(0,r.jsx)(G.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(y.Container,{maxWidth:1280,children:[(0,r.jsx)(Mt,{caption:t,title:a}),(0,r.jsx)(It,{team:e})]})})}function Mt({caption:t,title:a}){return(0,r.jsxs)(y.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,r.jsx)(M.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,r.jsx)(P.Heading,{children:a})]})}function It({team:t}){return t?(0,r.jsx)(q.Flex,{wrap:!0,children:t.map(a=>{var e,o,n,p;return(0,r.jsx)("div",{className:"M-full px-3 mb-6 md:M-1/2 lg:M-1/3",children:(0,r.jsxs)(v.Card,{className:"M-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[(0,r.jsx)(v.CardContent,{className:"p-0",children:((e=a.mainImage)==null?void 0:e.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(E.Image,{className:"mb-8 M-[345px] M-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)(et.default.Fragment,{children:[(0,r.jsx)(M.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,r.jsx)(M.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var v,y,q,P,E,G,M,et,r,z=x(()=>{"use strict";v=require("@stackshift-ui/card"),et=N(require("react"))});var st={};m(st,{Team_D:()=>R,default:()=>R});function R({caption:t,title:a,team:e}){return(0,r.jsx)(G.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(y.Container,{maxWidth:1280,children:[(0,r.jsx)(St,{caption:t,title:a}),(0,r.jsx)(kt,{team:e})]})})}function St({caption:t,title:a}){return(0,r.jsxs)(y.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,r.jsx)(M.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,r.jsx)(P.Heading,{children:a})]})}function kt({team:t}){return t?(0,r.jsx)(q.Flex,{wrap:!0,children:t&&t.map((a,e)=>{var o,n,p,f;return(0,r.jsx)("div",{className:"M-full md:px-4 mb-6 md:M-1/2",children:(0,r.jsx)(C.Card,{className:"M-full M-full lg:M-fit bg-white overflow-hidden shadow-lg rounded-md",children:(0,r.jsxs)(C.CardContent,{className:"M-full M-full flex flex-col gap-3 xl:flex-row p-0",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)(E.Image,{className:"M-full M-full object-cover rounded-md [@media(min-width:320px)]:M-[320px] xl:M-[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)(At,{member:a})]})})},e)})}):null}function At({member:t}){return(0,r.jsxs)("div",{className:"M-full xl:M-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[(0,r.jsx)(M.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(M.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var C,y,q,P,E,G,M,r,W=x(()=>{"use strict";C=require("@stackshift-ui/card")});var jt={};m(jt,{Team:()=>pt,Team_A:()=>I,Team_B:()=>A,Team_C:()=>j,Team_D:()=>R});module.exports=ut(jt);var c=require("react"),$t={variant_a:(0,c.lazy)(()=>Promise.resolve().then(()=>(F(),K))),variant_b:(0,c.lazy)(()=>Promise.resolve().then(()=>($(),Y))),variant_c:(0,c.lazy)(()=>Promise.resolve().then(()=>(z(),it))),variant_d:(0,c.lazy)(()=>Promise.resolve().then(()=>(W(),st)))},_t="Team",pt=({data:t})=>{var n,p,f,B,V,D;let a=t==null?void 0:t.variant,e=a&&$t[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(B=(f=t==null?void 0:t.variants)==null?void 0:f.title)!=null?B:void 0,team:(D=(V=t==null?void 0:t.variants)==null?void 0:V.teams)!=null?D:void 0};return e?(0,r.jsx)(e,{...o}):null};pt.displayName=_t;F();$();z();W();0&&(module.exports={Team,Team_A,Team_B,Team_C,Team_D});
2
+ "use strict";var tt=Object.create;var m=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var et=Object.getOwnPropertyNames;var it=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty;var nt=(t,a)=>{for(var e in a)m(t,e,{get:a[e],enumerable:!0})},H=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of et(a))!ot.call(t,n)&&n!==e&&m(t,n,{get:()=>a[n],enumerable:!(o=at(a,n))||o.enumerable});return t};var y=(t,a,e)=>(e=t!=null?tt(it(t)):{},H(a||!t||!t.__esModule?m(e,"default",{value:t,enumerable:!0}):e,t)),rt=t=>H(m({},"__esModule",{value:!0}),t);var yt={};nt(yt,{Team:()=>Z,Team_A:()=>d,Team_B:()=>u,Team_C:()=>v,Team_D:()=>N});module.exports=rt(yt);var c=require("@stackshift-ui/card"),P=require("@stackshift-ui/container"),R=require("@stackshift-ui/flex"),M=require("@stackshift-ui/heading"),z=require("@stackshift-ui/image"),W=require("@stackshift-ui/section"),I=require("@stackshift-ui/text"),B=y(require("react")),r=require("react/jsx-runtime");function d({caption:t,title:a,team:e}){return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(P.Container,{maxWidth:1280,children:[(0,r.jsx)(P.Container,{className:"mb-10 text-center",children:(0,r.jsx)(lt,{caption:t,title:a})}),(0,r.jsx)(st,{team:e})]})})}function lt({caption:t,title:a}){return(0,r.jsxs)(B.default.Fragment,{children:[t?(0,r.jsx)(I.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(M.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function st({team:t}){return t?(0,r.jsx)(R.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var e,o,n,p;return(0,r.jsx)("div",{className:"c-full [@media(min-width:421px)]:c-96 sm:c-1/2 lg:c-1/3",children:(0,r.jsx)(c.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:(0,r.jsxs)(c.CardContent,{className:"flex gap-4 p-0 items-center",children:[((e=a==null?void 0:a.mainImage)==null?void 0:e.image)&&(0,r.jsx)(z.Image,{width:96,height:96,className:"border-0 c-28 I-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)(pt,{member:a})]})})},a==null?void 0:a.name)})}):null}function pt({member:t}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(M.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(I.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var V=require("@stackshift-ui/button"),F=y(require("react"));function u({team:t}){var n;let[a,e]=F.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=F.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsx)(P.Container,{maxWidth:1280,children:(0,r.jsxs)(R.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ft,{team:t,activeTab:a,setActiveTab:e}),(0,r.jsx)(ct,{members:o})]})})})}function ft({team:t,activeTab:a,setActiveTab:e}){return(0,r.jsx)("div",{className:"c-full px-3 mb-8 lg:mb-0 lg:c-1/3",children:(0,r.jsx)(R.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)(mt,{data:o,activeTab:a,setActiveTab:e},o.name))})})}function mt({data:t,activeTab:a,setActiveTab:e}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(V.Button,{variant:"unstyled","aria-label":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 e((o=t.name)!=null?o:"")},children:t.name})})}function ct({members:t}){return t?(0,r.jsx)("div",{className:"c-full lg:c-2/3 sm:p-6",children:t.map((a,e)=>(0,r.jsx)(dt,{member:a},e))}):null}function dt({member:t}){var a,e;return t?(0,r.jsx)(c.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:I-96 rounded-md",children:(0,r.jsxs)(c.CardContent,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"c-full md:c-1/2 I-48 md:I-full relative overflow-hidden rounded-r-md",children:(0,r.jsx)(z.Image,{className:"object-cover absolute inset-0 c-full I-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(e=t.mainImage.alt)!=null?e:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(xt,{member:t})]})}):null}function xt({member:t}){return(0,r.jsxs)("div",{className:"c-full md:c-1/2 md:p-6 max-I-[300px] md:max-I-96 overflow-y-auto",children:[(0,r.jsx)(I.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(I.Text,{muted:!0,children:t.jobTitle}),(0,r.jsx)(I.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var O=y(require("react"));function v({caption:t,title:a,team:e}){return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(P.Container,{maxWidth:1280,children:[(0,r.jsx)(gt,{caption:t,title:a}),(0,r.jsx)(ut,{team:e})]})})}function gt({caption:t,title:a}){return(0,r.jsxs)(P.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,r.jsx)(I.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,r.jsx)(M.Heading,{children:a})]})}function ut({team:t}){return t?(0,r.jsx)(R.Flex,{wrap:!0,children:t.map(a=>{var e,o,n,p;return(0,r.jsx)("div",{className:"c-full px-3 mb-6 md:c-1/2 lg:c-1/3",children:(0,r.jsxs)(c.Card,{className:"c-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[(0,r.jsx)(c.CardContent,{className:"p-0",children:((e=a.mainImage)==null?void 0:e.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(z.Image,{className:"mb-8 I-[345px] c-full object-cover rounded-t-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)(Tt,{member:a})]})},a==null?void 0:a.name)})}):null}function Tt({member:t}){return(0,r.jsxs)(O.default.Fragment,{children:[(0,r.jsx)(I.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,r.jsx)(I.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}function N({caption:t,title:a,team:e}){return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(P.Container,{maxWidth:1280,children:[(0,r.jsx)(wt,{caption:t,title:a}),(0,r.jsx)(vt,{team:e})]})})}function wt({caption:t,title:a}){return(0,r.jsxs)(P.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,r.jsx)(I.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,r.jsx)(M.Heading,{children:a})]})}function vt({team:t}){return t?(0,r.jsx)(R.Flex,{wrap:!0,children:t&&t.map((a,e)=>{var o,n,p,f;return(0,r.jsx)("div",{className:"c-full md:px-4 mb-6 md:c-1/2",children:(0,r.jsx)(c.Card,{className:"c-full I-full lg:I-fit bg-white overflow-hidden shadow-lg rounded-md",children:(0,r.jsxs)(c.CardContent,{className:"c-full I-full flex flex-col gap-3 xl:flex-row p-0",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)(z.Image,{className:"I-full c-full object-cover rounded-t-md [@media(min-width:320px)]:I-[320px] xl:c-[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)(ht,{member:a})]})})},e)})}):null}function ht({member:t}){return(0,r.jsxs)("div",{className:"c-full xl:c-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[(0,r.jsx)(I.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(I.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var Ct={variant_a:d,variant_b:u,variant_c:v,variant_d:N},Nt="Team",Z=({data:t})=>{var n,p,f,$,_,j;let a=t==null?void 0:t.variant,e=a&&Ct[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:($=(f=t==null?void 0:t.variants)==null?void 0:f.title)!=null?$:void 0,team:(j=(_=t==null?void 0:t.variants)==null?void 0:_.teams)!=null?j:void 0};return e?(0,r.jsx)(e,{...o}):null};Z.displayName=Nt;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-YWE34JRK.mjs";import{a as o}from"./chunk-IIXNBV4O.mjs";import{a as r}from"./chunk-HSBUG36X.mjs";import{a as e}from"./chunk-ZDZPWMJR.mjs";import{a as t}from"./chunk-BS4F2OOP.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-FS7662IU.mjs";import{a as o}from"./chunk-Z5PUB6KK.mjs";import{a as r}from"./chunk-IWG3N2YJ.mjs";import{a as e}from"./chunk-4IAGLV3Q.mjs";import{a as t}from"./chunk-YBWRYWSQ.mjs";export{f as Team,o as Team_A,r as Team_B,e as Team_C,t as Team_D};
package/dist/team.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { SectionsProps, Team as ITeam } from "./types";
2
3
  export interface MemberTextProps {
3
4
  member: {
package/dist/team.js CHANGED
@@ -1 +1 @@
1
- "use strict";var ct=Object.create;var m=Object.defineProperty;var dt=Object.getOwnPropertyDescriptor;var mt=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 e in a)m(t,e,{get:a[e],enumerable:!0})},j=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of mt(a))!gt.call(t,n)&&n!==e&&m(t,n,{get:()=>a[n],enumerable:!(o=dt(a,n))||o.enumerable});return t};var N=(t,a,e)=>(e=t!=null?ct(xt(t)):{},j(a||!t||!t.__esModule?m(e,"default",{value:t,enumerable:!0}):e,t)),ut=t=>j(m({},"__esModule",{value:!0}),t);var V={};c(V,{Team_A:()=>B,default:()=>B});function B({caption:t,title:a,team:e}){return(0,l.jsx)(R.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(y.Container,{maxWidth:1280,children:[(0,l.jsx)(y.Container,{className:"mb-10 text-center",children:(0,l.jsx)(Tt,{caption:t,title:a})}),(0,l.jsx)(wt,{team:e})]})})}function Tt({caption:t,title:a}){return(0,l.jsxs)(W.default.Fragment,{children:[t?(0,l.jsx)(M.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,l.jsx)(P.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function wt({team:t}){return t?(0,l.jsx)(z.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var e,o,n,p;return(0,l.jsx)("div",{className:"M-full [@media(min-width:421px)]:M-96 sm:M-1/2 lg:M-1/3",children:(0,l.jsx)(g.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:(0,l.jsxs)(g.CardContent,{className:"flex gap-4 p-0",children:[((e=a==null?void 0:a.mainImage)==null?void 0:e.image)&&(0,l.jsx)(H.Image,{width:96,height:96,className:"border-0 M-28 M-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,l.jsx)(vt,{member:a})]})})},a==null?void 0:a.name)})}):null}function vt({member:t}){return(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(P.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:t==null?void 0:t.name}),(0,l.jsx)(M.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var g,y,z,P,H,R,M,W,l,D=x(()=>{"use strict";g=require("@stackshift-ui/card"),y=require("@stackshift-ui/container"),z=require("@stackshift-ui/flex"),P=require("@stackshift-ui/heading"),H=require("@stackshift-ui/image"),R=require("@stackshift-ui/section"),M=require("@stackshift-ui/text"),W=N(require("react")),l=require("react/jsx-runtime")});var K={};c(K,{Team_B:()=>J,default:()=>J});function J({team:t}){var n;let[a,e]=I.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),o=I.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,l.jsx)(R.Section,{className:"py-20 bg-background",children:(0,l.jsx)(y.Container,{maxWidth:1280,children:(0,l.jsxs)(z.Flex,{wrap:!0,align:"center",children:[(0,l.jsx)(ht,{team:t,activeTab:a,setActiveTab:e}),(0,l.jsx)(Nt,{members:o})]})})})}function ht({team:t,activeTab:a,setActiveTab:e}){return(0,l.jsx)("div",{className:"M-full px-3 mb-8 lg:mb-0 lg:M-1/3",children:(0,l.jsx)(z.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,l.jsx)(Ct,{data:o,activeTab:a,setActiveTab:e},o.name))})})}function Ct({data:t,activeTab:a,setActiveTab:e}){return!t||!t.name?null:(0,l.jsx)("li",{children:(0,l.jsx)(L.Button,{variant:"unstyled","aria-label":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 e((o=t.name)!=null?o:"")},children:t.name})})}function Nt({members:t}){return t?(0,l.jsx)("div",{className:"M-full lg:M-2/3 sm:p-6",children:t.map((a,e)=>(0,l.jsx)(yt,{member:a},e))}):null}function yt({member:t}){var a,e;return t?(0,l.jsx)(T.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:M-96 rounded-md",children:(0,l.jsxs)(T.CardContent,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,l.jsx)("div",{className:"M-full md:M-1/2 M-48 md:M-full relative overflow-hidden rounded-md",children:(0,l.jsx)(H.Image,{className:"object-cover absolute inset-0 M-full M-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(e=t.mainImage.alt)!=null?e:`team-member-${t.name}-profile-image`})}),(0,l.jsx)(Pt,{member:t})]})}):null}function Pt({member:t}){return(0,l.jsxs)("div",{className:"M-full md:M-1/2 md:p-6 max-M-[300px] md:max-M-96 overflow-y-auto",children:[(0,l.jsx)(M.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,l.jsx)(M.Text,{muted:!0,children:t.jobTitle}),(0,l.jsx)(M.Text,{className:"text-justify mt-4",muted:!0,children:t.plainText})]})}var L,T,y,z,H,R,M,I,l,O=x(()=>{"use strict";L=require("@stackshift-ui/button"),T=require("@stackshift-ui/card"),I=N(require("react"))});var tt={};c(tt,{Team_C:()=>b,default:()=>b});function b({caption:t,title:a,team:e}){return(0,l.jsx)(R.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(y.Container,{maxWidth:1280,children:[(0,l.jsx)(Mt,{caption:t,title:a}),(0,l.jsx)(It,{team:e})]})})}function Mt({caption:t,title:a}){return(0,l.jsxs)(y.Container,{maxWidth:576,className:"mb-12 text-center ",children:[t&&(0,l.jsx)(M.Text,{weight:"bold",className:"text-primary",children:t}),a&&(0,l.jsx)(P.Heading,{children:a})]})}function It({team:t}){return t?(0,l.jsx)(z.Flex,{wrap:!0,children:t.map(a=>{var e,o,n,p;return(0,l.jsx)("div",{className:"M-full px-3 mb-6 md:M-1/2 lg:M-1/3",children:(0,l.jsxs)(v.Card,{className:"M-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[(0,l.jsx)(v.CardContent,{className:"p-0",children:((e=a.mainImage)==null?void 0:e.image)&&(0,l.jsx)("div",{children:(0,l.jsx)(H.Image,{className:"mb-8 M-[345px] M-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,l.jsx)(Ft,{member:a})]})},a==null?void 0:a.name)})}):null}function Ft({member:t}){return(0,l.jsxs)(Z.default.Fragment,{children:[(0,l.jsx)(M.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:t==null?void 0:t.name}),(0,l.jsx)(M.Text,{muted:!0,children:t==null?void 0:t.jobTitle})]})}var v,y,z,P,H,R,M,Z,l,at=x(()=>{"use strict";v=require("@stackshift-ui/card"),Z=N(require("react"))});var rt={};c(rt,{Team_D:()=>lt,default:()=>lt});function lt({caption:t,title:a,team:e}){return(0,l.jsx)(R.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(y.Container,{maxWidth:1280,children:[(0,l.jsx)(St,{caption:t,title:a}),(0,l.jsx)(kt,{team:e})]})})}function St({caption:t,title:a}){return(0,l.jsxs)(y.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&(0,l.jsx)(M.Text,{weight:"bold",className:"text-secondary",children:t}),a&&(0,l.jsx)(P.Heading,{children:a})]})}function kt({team:t}){return t?(0,l.jsx)(z.Flex,{wrap:!0,children:t&&t.map((a,e)=>{var o,n,p,f;return(0,l.jsx)("div",{className:"M-full md:px-4 mb-6 md:M-1/2",children:(0,l.jsx)(C.Card,{className:"M-full M-full lg:M-fit bg-white overflow-hidden shadow-lg rounded-md",children:(0,l.jsxs)(C.CardContent,{className:"M-full M-full flex flex-col gap-3 xl:flex-row p-0",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,l.jsx)(H.Image,{className:"M-full M-full object-cover rounded-md [@media(min-width:320px)]:M-[320px] xl:M-[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,l.jsx)(At,{member:a})]})})},e)})}):null}function At({member:t}){return(0,l.jsxs)("div",{className:"M-full xl:M-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[(0,l.jsx)(M.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,l.jsx)(M.Text,{className:"leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var C,y,z,P,H,R,M,l,st=x(()=>{"use strict";C=require("@stackshift-ui/card")});var jt={};c(jt,{Team:()=>pt});module.exports=ut(jt);var d=require("react"),$t={variant_a:(0,d.lazy)(()=>Promise.resolve().then(()=>(D(),V))),variant_b:(0,d.lazy)(()=>Promise.resolve().then(()=>(O(),K))),variant_c:(0,d.lazy)(()=>Promise.resolve().then(()=>(at(),tt))),variant_d:(0,d.lazy)(()=>Promise.resolve().then(()=>(st(),rt)))},_t="Team",pt=({data:t})=>{var n,p,f,A,$,_;let a=t==null?void 0:t.variant,e=a&&$t[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(A=(f=t==null?void 0:t.variants)==null?void 0:f.title)!=null?A:void 0,team:(_=($=t==null?void 0:t.variants)==null?void 0:$.teams)!=null?_:void 0};return e?(0,l.jsx)(e,{...o}):null};pt.displayName=_t;0&&(module.exports={Team});
1
+ "use strict";var tt=Object.create;var m=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var et=Object.getOwnPropertyNames;var it=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty;var nt=(t,a)=>{for(var e in a)m(t,e,{get:a[e],enumerable:!0})},H=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of et(a))!ot.call(t,n)&&n!==e&&m(t,n,{get:()=>a[n],enumerable:!(o=at(a,n))||o.enumerable});return t};var v=(t,a,e)=>(e=t!=null?tt(it(t)):{},H(a||!t||!t.__esModule?m(e,"default",{value:t,enumerable:!0}):e,t)),rt=t=>H(m({},"__esModule",{value:!0}),t);var yt={};nt(yt,{Team:()=>Z});module.exports=rt(yt);var c=require("@stackshift-ui/card"),h=require("@stackshift-ui/container"),R=require("@stackshift-ui/flex"),C=require("@stackshift-ui/heading"),z=require("@stackshift-ui/image"),W=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),B=v(require("react")),r=require("react/jsx-runtime");function y({caption:t,title:a,team:e}){return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(h.Container,{maxWidth:1280,children:[(0,r.jsx)(h.Container,{className:"mb-10 text-center",children:(0,r.jsx)(lt,{caption:t,title:a})}),(0,r.jsx)(st,{team:e})]})})}function lt({caption:t,title:a}){return(0,r.jsxs)(B.default.Fragment,{children:[t?(0,r.jsx)(N.Text,{weight:"bold",className:"text-secondary",children:t}):null,a?(0,r.jsx)(C.Heading,{type:"h2",fontSize:"2xl",children:a}):null]})}function st({team:t}){return t?(0,r.jsx)(R.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:t==null?void 0:t.map(a=>{var e,o,n,p;return(0,r.jsx)("div",{className:"c-full [@media(min-width:421px)]:c-96 sm:c-1/2 lg:c-1/3",children:(0,r.jsx)(c.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:(0,r.jsxs)(c.CardContent,{className:"flex gap-4 p-0 items-center",children:[((e=a==null?void 0:a.mainImage)==null?void 0:e.image)&&(0,r.jsx)(z.Image,{width:96,height:96,className:"border-0 c-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)(pt,{member:a})]})})},a==null?void 0:a.name)})}):null}function pt({member:t}){return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(C.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 V=require("@stackshift-ui/button"),P=v(require("react"));function I({team:t}){var n;let[a,e]=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)(W.Section,{className:"py-20 bg-background",children:(0,r.jsx)(h.Container,{maxWidth:1280,children:(0,r.jsxs)(R.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ft,{team:t,activeTab:a,setActiveTab:e}),(0,r.jsx)(ct,{members:o})]})})})}function ft({team:t,activeTab:a,setActiveTab:e}){return(0,r.jsx)("div",{className:"c-full px-3 mb-8 lg:mb-0 lg:c-1/3",children:(0,r.jsx)(R.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)(mt,{data:o,activeTab:a,setActiveTab:e},o.name))})})}function mt({data:t,activeTab:a,setActiveTab:e}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(V.Button,{variant:"unstyled","aria-label":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 e((o=t.name)!=null?o:"")},children:t.name})})}function ct({members:t}){return t?(0,r.jsx)("div",{className:"c-full lg:c-2/3 sm:p-6",children:t.map((a,e)=>(0,r.jsx)(dt,{member:a},e))}):null}function dt({member:t}){var a,e;return t?(0,r.jsx)(c.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96 rounded-md",children:(0,r.jsxs)(c.CardContent,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)("div",{className:"c-full md:c-1/2 h-48 md:h-full relative overflow-hidden rounded-r-md",children:(0,r.jsx)(z.Image,{className:"object-cover absolute inset-0 c-full h-full",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(e=t.mainImage.alt)!=null?e:`team-member-${t.name}-profile-image`})}),(0,r.jsx)(xt,{member:t})]})}):null}function xt({member:t}){return(0,r.jsxs)("div",{className:"c-full md:c-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 O=v(require("react"));function S({caption:t,title:a,team:e}){return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(h.Container,{maxWidth:1280,children:[(0,r.jsx)(gt,{caption:t,title:a}),(0,r.jsx)(ut,{team:e})]})})}function gt({caption:t,title:a}){return(0,r.jsxs)(h.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)(C.Heading,{children:a})]})}function ut({team:t}){return t?(0,r.jsx)(R.Flex,{wrap:!0,children:t.map(a=>{var e,o,n,p;return(0,r.jsx)("div",{className:"c-full px-3 mb-6 md:c-1/2 lg:c-1/3",children:(0,r.jsxs)(c.Card,{className:"c-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[(0,r.jsx)(c.CardContent,{className:"p-0",children:((e=a.mainImage)==null?void 0:e.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(z.Image,{className:"mb-8 h-[345px] c-full object-cover rounded-t-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)(Tt,{member:a})]})},a==null?void 0:a.name)})}):null}function Tt({member:t}){return(0,r.jsxs)(O.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})]})}function A({caption:t,title:a,team:e}){return(0,r.jsx)(W.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(h.Container,{maxWidth:1280,children:[(0,r.jsx)(wt,{caption:t,title:a}),(0,r.jsx)(vt,{team:e})]})})}function wt({caption:t,title:a}){return(0,r.jsxs)(h.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)(C.Heading,{children:a})]})}function vt({team:t}){return t?(0,r.jsx)(R.Flex,{wrap:!0,children:t&&t.map((a,e)=>{var o,n,p,f;return(0,r.jsx)("div",{className:"c-full md:px-4 mb-6 md:c-1/2",children:(0,r.jsx)(c.Card,{className:"c-full h-full lg:h-fit bg-white overflow-hidden shadow-lg rounded-md",children:(0,r.jsxs)(c.CardContent,{className:"c-full h-full flex flex-col gap-3 xl:flex-row p-0",children:[((o=a.mainImage)==null?void 0:o.image)&&(0,r.jsx)(z.Image,{className:"h-full c-full object-cover rounded-t-md [@media(min-width:320px)]:h-[320px] xl:c-[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)(ht,{member:a})]})})},e)})}):null}function ht({member:t}){return(0,r.jsxs)("div",{className:"c-full xl:c-2/3 flex flex-col gap-2 p-4 xl:p-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 Ct={variant_a:y,variant_b:I,variant_c:S,variant_d:A},Nt="Team",Z=({data:t})=>{var n,p,f,$,_,j;let a=t==null?void 0:t.variant,e=a&&Ct[a],o={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:($=(f=t==null?void 0:t.variants)==null?void 0:f.title)!=null?$:void 0,team:(j=(_=t==null?void 0:t.variants)==null?void 0:_.teams)!=null?j:void 0};return e?(0,r.jsx)(e,{...o}):null};Z.displayName=Nt;0&&(module.exports={Team});
package/dist/team.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-YWE34JRK.mjs";export{a as Team};
1
+ import{a}from"./chunk-FS7662IU.mjs";import"./chunk-Z5PUB6KK.mjs";import"./chunk-IWG3N2YJ.mjs";import"./chunk-4IAGLV3Q.mjs";import"./chunk-YBWRYWSQ.mjs";export{a as Team};
package/dist/team_a.js CHANGED
@@ -1 +1 @@
1
- "use strict";var w=Object.create;var e=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var F=(a,t)=>{for(var n in t)e(a,n,{get:t[n],enumerable:!0})},g=(a,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of N(t))!v.call(a,o)&&o!==n&&e(a,o,{get:()=>t[o],enumerable:!(l=C(t,o))||l.enumerable});return a};var I=(a,t,n)=>(n=a!=null?w(y(a)):{},g(t||!a||!a.__esModule?e(n,"default",{value:a,enumerable:!0}):n,a)),P=a=>g(e({},"__esModule",{value:!0}),a);var j={};F(j,{Team_A:()=>h,default:()=>h});module.exports=P(j);var p=require("@stackshift-ui/card"),s=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),r=require("@stackshift-ui/heading"),x=require("@stackshift-ui/image"),u=require("@stackshift-ui/section"),d=require("@stackshift-ui/text"),T=I(require("react")),i=require("react/jsx-runtime");function h({caption:a,title:t,team:n}){return(0,i.jsx)(u.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(s.Container,{maxWidth:1280,children:[(0,i.jsx)(s.Container,{className:"mb-10 text-center",children:(0,i.jsx)(H,{caption:a,title:t})}),(0,i.jsx)(M,{team:n})]})})}function H({caption:a,title:t}){return(0,i.jsxs)(T.default.Fragment,{children:[a?(0,i.jsx)(d.Text,{weight:"bold",className:"text-secondary",children:a}):null,t?(0,i.jsx)(r.Heading,{type:"h2",fontSize:"2xl",children:t}):null]})}function M({team:a}){return a?(0,i.jsx)(f.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:a==null?void 0:a.map(t=>{var n,l,o,c;return(0,i.jsx)("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:(0,i.jsx)(p.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:(0,i.jsxs)(p.CardContent,{className:"flex gap-4 p-0",children:[((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,i.jsx)(x.Image,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(l=t==null?void 0:t.mainImage)==null?void 0:l.image}`,alt:(c=(o=t==null?void 0:t.mainImage)==null?void 0:o.alt)!=null?c:`team-member-${t==null?void 0:t.name}-profile-image`}),(0,i.jsx)(S,{member:t})]})})},t==null?void 0:t.name)})}):null}function S({member:a}){return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(r.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:a==null?void 0:a.name}),(0,i.jsx)(d.Text,{muted:!0,children:a==null?void 0:a.jobTitle})]})}0&&(module.exports={Team_A});
1
+ "use strict";var w=Object.create;var e=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var F=(a,t)=>{for(var n in t)e(a,n,{get:t[n],enumerable:!0})},g=(a,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of N(t))!v.call(a,o)&&o!==n&&e(a,o,{get:()=>t[o],enumerable:!(l=C(t,o))||l.enumerable});return a};var I=(a,t,n)=>(n=a!=null?w(y(a)):{},g(t||!a||!a.__esModule?e(n,"default",{value:a,enumerable:!0}):n,a)),P=a=>g(e({},"__esModule",{value:!0}),a);var j={};F(j,{Team_A:()=>h,default:()=>h});module.exports=P(j);var s=require("@stackshift-ui/card"),p=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),r=require("@stackshift-ui/heading"),x=require("@stackshift-ui/image"),u=require("@stackshift-ui/section"),c=require("@stackshift-ui/text"),T=I(require("react")),i=require("react/jsx-runtime");function h({caption:a,title:t,team:n}){return(0,i.jsx)(u.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(p.Container,{maxWidth:1280,children:[(0,i.jsx)(p.Container,{className:"mb-10 text-center",children:(0,i.jsx)(H,{caption:a,title:t})}),(0,i.jsx)(M,{team:n})]})})}function H({caption:a,title:t}){return(0,i.jsxs)(T.default.Fragment,{children:[a?(0,i.jsx)(c.Text,{weight:"bold",className:"text-secondary",children:a}):null,t?(0,i.jsx)(r.Heading,{type:"h2",fontSize:"2xl",children:t}):null]})}function M({team:a}){return a?(0,i.jsx)(f.Flex,{wrap:!0,align:"center",justify:"center",gap:6,children:a==null?void 0:a.map(t=>{var n,l,o,d;return(0,i.jsx)("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:(0,i.jsx)(s.Card,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:(0,i.jsxs)(s.CardContent,{className:"flex gap-4 p-0 items-center",children:[((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&(0,i.jsx)(x.Image,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(l=t==null?void 0:t.mainImage)==null?void 0:l.image}`,alt:(d=(o=t==null?void 0:t.mainImage)==null?void 0:o.alt)!=null?d:`team-member-${t==null?void 0:t.name}-profile-image`}),(0,i.jsx)(S,{member:t})]})})},t==null?void 0:t.name)})}):null}function S({member:a}){return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(r.Heading,{type:"h3",className:"text-xl lg:text-2xl",children:a==null?void 0:a.name}),(0,i.jsx)(c.Text,{muted:!0,children:a==null?void 0:a.jobTitle})]})}0&&(module.exports={Team_A});
package/dist/team_a.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-IIXNBV4O.mjs";export{a as Team_A,a as default};
1
+ import{a}from"./chunk-Z5PUB6KK.mjs";export{a as Team_A,a as default};
package/dist/team_b.js CHANGED
@@ -1 +1 @@
1
- "use strict";var b=Object.create;var o=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var y=(e,a)=>{for(var i in a)o(e,i,{get:a[i],enumerable:!0})},d=(e,a,i,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of w(a))!N.call(e,n)&&n!==i&&o(e,n,{get:()=>a[n],enumerable:!(r=v(a,n))||r.enumerable});return e};var C=(e,a,i)=>(i=e!=null?b(h(e)):{},d(a||!e||!e.__esModule?o(i,"default",{value:e,enumerable:!0}):i,e)),P=e=>d(o({},"__esModule",{value:!0}),e);var S={};y(S,{Team_B:()=>g,default:()=>g});module.exports=P(S);var u=require("@stackshift-ui/button"),m=require("@stackshift-ui/card"),T=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),p=require("@stackshift-ui/image"),x=require("@stackshift-ui/section"),l=require("@stackshift-ui/text"),f=C(require("react")),t=require("react/jsx-runtime");function g({team:e}){var n;let[a,i]=f.default.useState((n=e==null?void 0:e[0])==null?void 0:n.name),r=f.default.useMemo(()=>(e==null?void 0:e.filter(s=>(s==null?void 0:s.name)===a))||[],[e,a]);return(0,t.jsx)(x.Section,{className:"py-20 bg-background",children:(0,t.jsx)(T.Container,{maxWidth:1280,children:(0,t.jsxs)(c.Flex,{wrap:!0,align:"center",children:[(0,t.jsx)(M,{team:e,activeTab:a,setActiveTab:i}),(0,t.jsx)(A,{members:r})]})})})}function M({team:e,activeTab:a,setActiveTab:i}){return(0,t.jsx)("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:(0,t.jsx)(c.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:e==null?void 0:e.map(r=>(0,t.jsx)(k,{data:r,activeTab:a,setActiveTab:i},r.name))})})}function k({data:e,activeTab:a,setActiveTab:i}){return!e||!e.name?null:(0,t.jsx)("li",{children:(0,t.jsx)(u.Button,{variant:"unstyled","aria-label":e.name,className:`text-xl lg:text-2xl ${e.name===a?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var r;return i((r=e.name)!=null?r:"")},children:e.name})})}function A({members:e}){return e?(0,t.jsx)("div",{className:"w-full lg:w-2/3 sm:p-6",children:e.map((a,i)=>(0,t.jsx)(j,{member:a},i))}):null}function j({member:e}){var a,i;return e?(0,t.jsx)(m.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96 rounded-md",children:(0,t.jsxs)(m.CardContent,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((a=e.mainImage)==null?void 0:a.image)&&(0,t.jsx)("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md",children:(0,t.jsx)(p.Image,{className:"object-cover absolute inset-0 w-full h-full",src:`${e.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=e.mainImage.alt)!=null?i:`team-member-${e.name}-profile-image`})}),(0,t.jsx)(I,{member:e})]})}):null}function I({member:e}){return(0,t.jsxs)("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[(0,t.jsx)(l.Text,{weight:"bold",fontSize:"2xl",children:e.name}),(0,t.jsx)(l.Text,{muted:!0,children:e.jobTitle}),(0,t.jsx)(l.Text,{className:"text-justify mt-4",muted:!0,children:e.plainText})]})}0&&(module.exports={Team_B});
1
+ "use strict";var b=Object.create;var n=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var y=(e,a)=>{for(var i in a)n(e,i,{get:a[i],enumerable:!0})},d=(e,a,i,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of w(a))!N.call(e,l)&&l!==i&&n(e,l,{get:()=>a[l],enumerable:!(r=v(a,l))||r.enumerable});return e};var C=(e,a,i)=>(i=e!=null?b(h(e)):{},d(a||!e||!e.__esModule?n(i,"default",{value:e,enumerable:!0}):i,e)),P=e=>d(n({},"__esModule",{value:!0}),e);var S={};y(S,{Team_B:()=>g,default:()=>g});module.exports=P(S);var u=require("@stackshift-ui/button"),m=require("@stackshift-ui/card"),T=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),p=require("@stackshift-ui/image"),x=require("@stackshift-ui/section"),o=require("@stackshift-ui/text"),f=C(require("react")),t=require("react/jsx-runtime");function g({team:e}){var l;let[a,i]=f.default.useState((l=e==null?void 0:e[0])==null?void 0:l.name),r=f.default.useMemo(()=>(e==null?void 0:e.filter(s=>(s==null?void 0:s.name)===a))||[],[e,a]);return(0,t.jsx)(x.Section,{className:"py-20 bg-background",children:(0,t.jsx)(T.Container,{maxWidth:1280,children:(0,t.jsxs)(c.Flex,{wrap:!0,align:"center",children:[(0,t.jsx)(M,{team:e,activeTab:a,setActiveTab:i}),(0,t.jsx)(A,{members:r})]})})})}function M({team:e,activeTab:a,setActiveTab:i}){return(0,t.jsx)("div",{className:"w-full px-3 mb-8 lg:mb-0 lg:w-1/3",children:(0,t.jsx)(c.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"lg:flex-col lg:justify-start gap-3",children:e==null?void 0:e.map(r=>(0,t.jsx)(k,{data:r,activeTab:a,setActiveTab:i},r.name))})})}function k({data:e,activeTab:a,setActiveTab:i}){return!e||!e.name?null:(0,t.jsx)("li",{children:(0,t.jsx)(u.Button,{variant:"unstyled","aria-label":e.name,className:`text-xl lg:text-2xl ${e.name===a?"text-black":"text-gray-400"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var r;return i((r=e.name)!=null?r:"")},children:e.name})})}function A({members:e}){return e?(0,t.jsx)("div",{className:"w-full lg:w-2/3 sm:p-6",children:e.map((a,i)=>(0,t.jsx)(j,{member:a},i))}):null}function j({member:e}){var a,i;return e?(0,t.jsx)(m.Card,{className:"flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96 rounded-md",children:(0,t.jsxs)(m.CardContent,{className:"flex flex-col gap-3 md:gap-0 md:flex-row p-0",children:[((a=e.mainImage)==null?void 0:a.image)&&(0,t.jsx)("div",{className:"w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-l-md",children:(0,t.jsx)(p.Image,{className:"object-cover absolute inset-0 w-full h-full",src:`${e.mainImage.image}`,sizes:"100vw",width:329,height:500,alt:(i=e.mainImage.alt)!=null?i:`team-member-${e.name}-profile-image`})}),(0,t.jsx)(I,{member:e})]})}):null}function I({member:e}){return(0,t.jsxs)("div",{className:"w-full md:w-1/2 md:p-6 max-h-[300px] md:max-h-96 overflow-y-auto",children:[(0,t.jsx)(o.Text,{weight:"bold",fontSize:"2xl",children:e.name}),(0,t.jsx)(o.Text,{muted:!0,children:e.jobTitle}),(0,t.jsx)(o.Text,{className:"text-justify mt-4",muted:!0,children:e.plainText})]})}0&&(module.exports={Team_B});
package/dist/team_b.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-HSBUG36X.mjs";export{a as Team_B,a as default};
1
+ import{a}from"./chunk-IWG3N2YJ.mjs";export{a as Team_B,a as default};
package/dist/team_c.js CHANGED
@@ -1 +1 @@
1
- "use strict";var m=Object.create;var e=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var F=(a,t)=>{for(var o in t)e(a,o,{get:t[o],enumerable:!0})},c=(a,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of h(t))!v.call(a,n)&&n!==o&&e(a,n,{get:()=>t[n],enumerable:!(r=C(t,n))||r.enumerable});return a};var I=(a,t,o)=>(o=a!=null?m(N(a)):{},c(t||!a||!a.__esModule?e(o,"default",{value:a,enumerable:!0}):o,a)),M=a=>c(e({},"__esModule",{value:!0}),a);var k={};F(k,{Team_C:()=>w,default:()=>w});module.exports=M(k);var d=require("@stackshift-ui/card"),p=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),x=require("@stackshift-ui/image"),u=require("@stackshift-ui/section"),l=require("@stackshift-ui/text"),T=I(require("react")),i=require("react/jsx-runtime");function w({caption:a,title:t,team:o}){return(0,i.jsx)(u.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(p.Container,{maxWidth:1280,children:[(0,i.jsx)(P,{caption:a,title:t}),(0,i.jsx)(y,{team:o})]})})}function P({caption:a,title:t}){return(0,i.jsxs)(p.Container,{maxWidth:576,className:"mb-12 text-center ",children:[a&&(0,i.jsx)(l.Text,{weight:"bold",className:"text-primary",children:a}),t&&(0,i.jsx)(g.Heading,{children:t})]})}function y({team:a}){return a?(0,i.jsx)(f.Flex,{wrap:!0,children:a.map(t=>{var o,r,n,s;return(0,i.jsx)("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:(0,i.jsxs)(d.Card,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[(0,i.jsx)(d.CardContent,{className:"p-0",children:((o=t.mainImage)==null?void 0:o.image)&&(0,i.jsx)("div",{children:(0,i.jsx)(x.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(r=t==null?void 0:t.mainImage)==null?void 0:r.image}`,width:345,height:256,alt:(s=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?s:`team-member-${t==null?void 0:t.name}-profile-image`})})}),(0,i.jsx)(S,{member:t})]})},t==null?void 0:t.name)})}):null}function S({member:a}){return(0,i.jsxs)(T.default.Fragment,{children:[(0,i.jsx)(l.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:a==null?void 0:a.name}),(0,i.jsx)(l.Text,{muted:!0,children:a==null?void 0:a.jobTitle})]})}0&&(module.exports={Team_C});
1
+ "use strict";var m=Object.create;var e=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var F=(a,t)=>{for(var o in t)e(a,o,{get:t[o],enumerable:!0})},c=(a,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of h(t))!v.call(a,n)&&n!==o&&e(a,n,{get:()=>t[n],enumerable:!(r=C(t,n))||r.enumerable});return a};var I=(a,t,o)=>(o=a!=null?m(N(a)):{},c(t||!a||!a.__esModule?e(o,"default",{value:a,enumerable:!0}):o,a)),M=a=>c(e({},"__esModule",{value:!0}),a);var k={};F(k,{Team_C:()=>w,default:()=>w});module.exports=M(k);var d=require("@stackshift-ui/card"),p=require("@stackshift-ui/container"),f=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),x=require("@stackshift-ui/image"),u=require("@stackshift-ui/section"),l=require("@stackshift-ui/text"),T=I(require("react")),i=require("react/jsx-runtime");function w({caption:a,title:t,team:o}){return(0,i.jsx)(u.Section,{className:"py-20 bg-background",children:(0,i.jsxs)(p.Container,{maxWidth:1280,children:[(0,i.jsx)(P,{caption:a,title:t}),(0,i.jsx)(y,{team:o})]})})}function P({caption:a,title:t}){return(0,i.jsxs)(p.Container,{maxWidth:576,className:"mb-12 text-center ",children:[a&&(0,i.jsx)(l.Text,{weight:"bold",className:"text-primary",children:a}),t&&(0,i.jsx)(g.Heading,{children:t})]})}function y({team:a}){return a?(0,i.jsx)(f.Flex,{wrap:!0,children:a.map(t=>{var o,r,n,s;return(0,i.jsx)("div",{className:"w-full px-3 mb-6 md:w-1/2 lg:w-1/3",children:(0,i.jsxs)(d.Card,{className:"w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center rounded-md",children:[(0,i.jsx)(d.CardContent,{className:"p-0",children:((o=t.mainImage)==null?void 0:o.image)&&(0,i.jsx)("div",{children:(0,i.jsx)(x.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-t-md",sizes:"100vw",src:`${(r=t==null?void 0:t.mainImage)==null?void 0:r.image}`,width:345,height:256,alt:(s=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?s:`team-member-${t==null?void 0:t.name}-profile-image`})})}),(0,i.jsx)(S,{member:t})]})},t==null?void 0:t.name)})}):null}function S({member:a}){return(0,i.jsxs)(T.default.Fragment,{children:[(0,i.jsx)(l.Text,{fontSize:"2xl",weight:"bold",className:"mb-2",children:a==null?void 0:a.name}),(0,i.jsx)(l.Text,{muted:!0,children:a==null?void 0:a.jobTitle})]})}0&&(module.exports={Team_C});
package/dist/team_c.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-ZDZPWMJR.mjs";export{a as Team_C,a as default};
1
+ import{a}from"./chunk-4IAGLV3Q.mjs";export{a as Team_C,a as default};
package/dist/team_d.js CHANGED
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var C=(a,t)=>{for(var i in t)s(a,i,{get:t[i],enumerable:!0})},N=(a,t,i,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of T(t))!h.call(a,o)&&o!==i&&s(a,o,{get:()=>t[o],enumerable:!(e=w(t,o))||e.enumerable});return a};var v=a=>N(s({},"__esModule",{value:!0}),a);var y={};C(y,{Team_D:()=>u,default:()=>u});module.exports=v(y);var d=require("@stackshift-ui/card"),x=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),m=require("@stackshift-ui/section"),n=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function u({caption:a,title:t,team:i}){return(0,l.jsx)(m.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(x.Container,{maxWidth:1280,children:[(0,l.jsx)(I,{caption:a,title:t}),(0,l.jsx)(M,{team:i})]})})}function I({caption:a,title:t}){return(0,l.jsxs)(x.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&(0,l.jsx)(n.Text,{weight:"bold",className:"text-secondary",children:a}),t&&(0,l.jsx)(c.Heading,{children:t})]})}function M({team:a}){return a?(0,l.jsx)(p.Flex,{wrap:!0,children:a&&a.map((t,i)=>{var e,o,r,f;return(0,l.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,l.jsx)(d.Card,{className:"w-full h-full lg:h-fit bg-white overflow-hidden shadow-lg rounded-md",children:(0,l.jsxs)(d.CardContent,{className:"w-full h-full flex flex-col gap-3 xl:flex-row p-0",children:[((e=t.mainImage)==null?void 0:e.image)&&(0,l.jsx)(g.Image,{className:"h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(o=t==null?void 0:t.mainImage)==null?void 0:o.image}`,width:179,height:320,alt:(f=(r=t==null?void 0:t.mainImage)==null?void 0:r.alt)!=null?f:`team-member-${t==null?void 0:t.name}-profile-image`}),(0,l.jsx)(P,{member:t})]})})},i)})}):null}function P({member:a}){return(0,l.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[(0,l.jsx)(n.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),(0,l.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 w=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var C=(a,t)=>{for(var i in t)s(a,i,{get:t[i],enumerable:!0})},N=(a,t,i,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of T(t))!h.call(a,o)&&o!==i&&s(a,o,{get:()=>t[o],enumerable:!(e=w(t,o))||e.enumerable});return a};var v=a=>N(s({},"__esModule",{value:!0}),a);var y={};C(y,{Team_D:()=>u,default:()=>u});module.exports=v(y);var d=require("@stackshift-ui/card"),x=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),m=require("@stackshift-ui/section"),n=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function u({caption:a,title:t,team:i}){return(0,l.jsx)(m.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(x.Container,{maxWidth:1280,children:[(0,l.jsx)(I,{caption:a,title:t}),(0,l.jsx)(M,{team:i})]})})}function I({caption:a,title:t}){return(0,l.jsxs)(x.Container,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[a&&(0,l.jsx)(n.Text,{weight:"bold",className:"text-secondary",children:a}),t&&(0,l.jsx)(c.Heading,{children:t})]})}function M({team:a}){return a?(0,l.jsx)(p.Flex,{wrap:!0,children:a&&a.map((t,i)=>{var e,o,r,f;return(0,l.jsx)("div",{className:"w-full md:px-4 mb-6 md:w-1/2",children:(0,l.jsx)(d.Card,{className:"w-full h-full lg:h-fit bg-white overflow-hidden shadow-lg rounded-md",children:(0,l.jsxs)(d.CardContent,{className:"w-full h-full flex flex-col gap-3 xl:flex-row p-0",children:[((e=t.mainImage)==null?void 0:e.image)&&(0,l.jsx)(g.Image,{className:"h-full w-full object-cover rounded-t-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]",sizes:"100vw",src:`${(o=t==null?void 0:t.mainImage)==null?void 0:o.image}`,width:179,height:320,alt:(f=(r=t==null?void 0:t.mainImage)==null?void 0:r.alt)!=null?f:`team-member-${t==null?void 0:t.name}-profile-image`}),(0,l.jsx)(P,{member:t})]})})},i)})}):null}function P({member:a}){return(0,l.jsxs)("div",{className:"w-full xl:w-2/3 flex flex-col gap-2 p-4 xl:p-2",children:[(0,l.jsx)(n.Text,{weight:"bold",className:"text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),(0,l.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-BS4F2OOP.mjs";export{a as Team_D,a as default};
1
+ import{a}from"./chunk-YBWRYWSQ.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": "7.0.0-beta.3",
4
+ "version": "7.0.0-beta.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -34,24 +34,24 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/button": "6.1.0-beta.3",
38
- "@stackshift-ui/card": "7.0.0-beta.1",
39
- "@stackshift-ui/heading": "7.0.0-beta.1",
40
- "@stackshift-ui/system": "6.1.0-beta.1",
41
- "@stackshift-ui/scripts": "6.1.0-beta.0",
42
- "@stackshift-ui/text": "7.0.0-beta.1",
43
- "@stackshift-ui/section": "7.0.0-beta.1",
44
- "@stackshift-ui/flex": "7.0.0-beta.1",
45
- "@stackshift-ui/image": "6.1.0-beta.1",
46
- "@stackshift-ui/container": "7.0.0-beta.1",
47
- "@stackshift-ui/avatar": "7.0.0-beta.1"
37
+ "@stackshift-ui/scripts": "6.1.0-beta.2",
38
+ "@stackshift-ui/system": "6.1.0-beta.3",
39
+ "@stackshift-ui/avatar": "7.0.0-beta.4",
40
+ "@stackshift-ui/button": "6.1.0-beta.5",
41
+ "@stackshift-ui/card": "7.0.0-beta.3",
42
+ "@stackshift-ui/heading": "7.0.0-beta.3",
43
+ "@stackshift-ui/text": "7.0.0-beta.3",
44
+ "@stackshift-ui/image": "6.1.0-beta.4",
45
+ "@stackshift-ui/section": "7.0.0-beta.3",
46
+ "@stackshift-ui/container": "7.0.0-beta.3",
47
+ "@stackshift-ui/flex": "7.0.0-beta.3"
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.1.0-beta.1"
54
+ "@stackshift-ui/system": ">=6.1.0-beta.3"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "next": {
package/src/team.tsx CHANGED
@@ -1,11 +1,15 @@
1
- import { lazy } from "react";
1
+ import React from "react";
2
2
  import { SectionsProps, Team as ITeam } from "./types";
3
+ import TeamA from "./team_a";
4
+ import TeamB from "./team_b";
5
+ import TeamC from "./team_c";
6
+ import TeamD from "./team_d";
3
7
 
4
8
  const Variants = {
5
- variant_a: lazy(() => import("./team_a")),
6
- variant_b: lazy(() => import("./team_b")),
7
- variant_c: lazy(() => import("./team_c")),
8
- variant_d: lazy(() => import("./team_d")),
9
+ variant_a: TeamA,
10
+ variant_b: TeamB,
11
+ variant_c: TeamC,
12
+ variant_d: TeamD,
9
13
  };
10
14
 
11
15
  export interface MemberTextProps {
package/src/team_a.tsx CHANGED
@@ -47,7 +47,7 @@ function Teams({ team }: { team?: iTeam[] }) {
47
47
  {team?.map(member => (
48
48
  <div className="w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3" key={member?.name}>
49
49
  <Card className="py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md">
50
- <CardContent className="flex gap-4 p-0">
50
+ <CardContent className="flex gap-4 p-0 items-center">
51
51
  {member?.mainImage?.image && (
52
52
  <Image
53
53
  width={96}
package/src/team_b.tsx CHANGED
@@ -95,7 +95,7 @@ function TeamMemberCard({ member }: { member?: iTeam }) {
95
95
  <Card className="flex flex-col gap-3 md:gap-0 md:flex-row shadow-lg bg-white md:h-96 rounded-md">
96
96
  <CardContent className="flex flex-col gap-3 md:gap-0 md:flex-row p-0">
97
97
  {member.mainImage?.image && (
98
- <div className="w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-md">
98
+ <div className="w-full md:w-1/2 h-48 md:h-full relative overflow-hidden rounded-l-md">
99
99
  <Image
100
100
  className="object-cover absolute inset-0 w-full h-full"
101
101
  src={`${member.mainImage.image}`}
package/src/team_c.tsx CHANGED
@@ -45,7 +45,7 @@ function TeamMemberCard({ team }: { team?: iTeam[] }) {
45
45
  {member.mainImage?.image && (
46
46
  <div>
47
47
  <Image
48
- className="mb-8 h-[345px] w-full object-cover rounded-md"
48
+ className="mb-8 h-[345px] w-full object-cover rounded-t-md"
49
49
  sizes="100vw"
50
50
  src={`${member?.mainImage?.image}`}
51
51
  width={345}
package/src/team_d.tsx CHANGED
@@ -44,7 +44,7 @@ function TeamMemberCard({ team }: { team?: iTeam[] }) {
44
44
  <CardContent className="w-full h-full flex flex-col gap-3 xl:flex-row p-0">
45
45
  {member.mainImage?.image && (
46
46
  <Image
47
- className="h-full w-full object-cover rounded-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]"
47
+ className="h-full w-full object-cover rounded-t-md [@media(min-width:320px)]:h-[320px] xl:w-[179px]"
48
48
  sizes="100vw"
49
49
  src={`${member?.mainImage?.image}`}
50
50
  width={179}
@@ -1 +0,0 @@
1
- import{Card as c,CardContent as g}from"@stackshift-ui/card";import{Container as s}from"@stackshift-ui/container";import{Flex as f}from"@stackshift-ui/flex";import{Heading as r}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as u}from"@stackshift-ui/section";import{Text as d}from"@stackshift-ui/text";import T from"react";import{jsx as i,jsxs as o}from"react/jsx-runtime";function h({caption:a,title:t,team:n}){return i(u,{className:"py-20 bg-background",children:o(s,{maxWidth:1280,children:[i(s,{className:"mb-10 text-center",children:i(w,{caption:a,title:t})}),i(C,{team:n})]})})}function w({caption:a,title:t}){return o(T.Fragment,{children:[a?i(d,{weight:"bold",className:"text-secondary",children:a}):null,t?i(r,{type:"h2",fontSize:"2xl",children:t}):null]})}function C({team:a}){return a?i(f,{wrap:!0,align:"center",justify:"center",gap:6,children:a==null?void 0:a.map(t=>{var n,l,e,p;return i("div",{className:"w-full [@media(min-width:421px)]:w-96 sm:w-1/2 lg:w-1/3",children:i(c,{className:"py-10 [@media(min-width:320px)]:py-20 items-center text-center shadow-lg bg-white flex flex-col gap-4 rounded-md",children:o(g,{className:"flex gap-4 p-0",children:[((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&i(x,{width:96,height:96,className:"border-0 w-28 h-28 object-cover rounded-full",src:`${(l=t==null?void 0:t.mainImage)==null?void 0:l.image}`,alt:(p=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?p:`team-member-${t==null?void 0:t.name}-profile-image`}),i(N,{member:t})]})})},t==null?void 0:t.name)})}):null}function N({member:a}){return o("div",{className:"flex flex-col gap-2",children:[i(r,{type:"h3",className:"text-xl lg:text-2xl",children:a==null?void 0:a.name}),i(d,{muted:!0,children:a==null?void 0:a.jobTitle})]})}export{h as a};
@@ -1 +0,0 @@
1
- import{lazy as i}from"react";import{jsx as T}from"react/jsx-runtime";var a={variant_a:i(()=>import("./team_a.mjs")),variant_b:i(()=>import("./team_b.mjs")),variant_c:i(()=>import("./team_c.mjs")),variant_d:i(()=>import("./team_d.mjs"))},f="Team",v=({data:e})=>{var t,o,s,m,p,c;let n=e==null?void 0:e.variant,r=n&&a[n],l={caption:(o=(t=e==null?void 0:e.variants)==null?void 0:t.subtitle)!=null?o:void 0,title:(m=(s=e==null?void 0:e.variants)==null?void 0:s.title)!=null?m:void 0,team:(c=(p=e==null?void 0:e.variants)==null?void 0:p.teams)!=null?c:void 0};return r?T(r,{...l}):null};v.displayName=f;export{v as a};