@stackshift-ui/team 6.0.9 → 6.0.11-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-POCYT4IV.mjs +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/team.js +1 -1
- package/dist/team.mjs +1 -1
- package/dist/team_d.js +1 -1
- package/dist/team_d.mjs +1 -1
- package/package.json +15 -15
- package/src/team_d.tsx +13 -7
- package/dist/chunk-JRDJQPE2.mjs +0 -1
- /package/dist/{chunk-KVVPX3IW.mjs → chunk-F5GJBW6M.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Card as p}from"@stackshift-ui/card";import{Container as x}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 f}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(f,{className:"!md:px-4 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(g,{children:t})]})}function w({team:a}){return a?i(c,{wrap:!0,children:a&&a.map((t,e)=>{var n,s,d,r;return i("div",{className:"w-full px-4 mb-6 md:w-1/2",children:o(p,{className:"items-center p-0 bg-white overflow-hidden shadow-lg lg:block xl:flex",borderRadius:"md",children:[((n=t.mainImage)==null?void 0:n.image)&&i("div",{children:i(m,{className:"h-[320px] w-full object-cover rounded-md 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 lg:p-4 xl:w-2/3",children:[i(l,{weight:"bold",className:"my-2 text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),i(l,{className:"mb-4 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 ft=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var
|
|
2
|
+
"use strict";var mt=Object.create;var d=Object.defineProperty;var ft=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})},B=(t,a,i,e)=>{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:!(e=ft(a,n))||e.enumerable});return t};var v=(t,a,i)=>(i=t!=null?mt(xt(t)):{},B(a||!t||!t.__esModule?d(i,"default",{value:t,enumerable:!0}):i,t)),Tt=t=>B(d({},"__esModule",{value:!0}),t);var q={};m(q,{Team_A:()=>C,default:()=>C});function C({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(w.Container,{maxWidth:1e3,children:[(0,r.jsx)(w.Container,{maxWidth:576,className:"mb-10 text-center",children:(0,r.jsx)(ut,{caption:t,title:a})}),(0,r.jsx)(vt,{team:i})]})})}function ut({caption:t,title:a}){return(0,r.jsxs)(y.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 vt({team:t}){return t?(0,r.jsx)(L.Flex,{wrap:!0,children:t==null?void 0:t.map(a=>{var i,e,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)(V.Card,{className:"py-24 text-center shadow-lg bg-white",borderRadius:"md",children:[((i=a==null?void 0:a.mainImage)==null?void 0:i.image)&&(0,r.jsx)(b.Image,{width:96,height:96,className:"mx-auto border-0 w-[96px] h-[96px] object-cover rounded-full",src:`${(e=a==null?void 0:a.mainImage)==null?void 0:e.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)(wt,{member:a})]})},a==null?void 0:a.name)})}):null}function wt({member:t}){return(0,r.jsxs)(y.default.Fragment,{children:[(0,r.jsx)(h.Heading,{type:"h3",className:"mb-2 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,w,L,h,b,D,N,y,r,P=x(()=>{"use strict";V=require("@stackshift-ui/card"),w=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),h=require("@stackshift-ui/heading"),b=require("@stackshift-ui/image"),D=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),y=v(require("react")),r=require("react/jsx-runtime")});var Q={};m(Q,{Team_B:()=>F,default:()=>F});function F({team:t}){var n;let[a,i]=M.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),e=M.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)(w.Container,{maxWidth:1280,children:(0,r.jsxs)(L.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:i}),(0,r.jsx)(yt,{members:e})]})})})}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)(L.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"space-x-6 lg:flex-col lg:justify-start lg:space-x-0",children:t==null?void 0:t.map(e=>(0,r.jsx)(Nt,{data:e,activeTab:a,setActiveTab:i},e.name))})})}function Nt({data:t,activeTab:a,setActiveTab:i}){return!t||!t.name?null:(0,r.jsx)("li",{children:(0,r.jsx)(E.Button,{as:"button",variant:"unstyled",ariaLabel:t.name,className:`mb-4 text-xl lg:text-2xl ${t.name===a?"text-gray-900":"text-gray-500"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var e;return i((e=t.name)!=null?e:"")},children:t.name})})}function yt({members:t}){return t?(0,r.jsx)("div",{className:"w-full px-3 lg:w-2/3",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)(G.Card,{className:"flex p-6 shadow-lg bg-white",borderRadius:"md",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)(b.Image,{className:"object-cover overflow-hidden rounded-md",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:494,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:"order-last w-1/2 pt-6 pl-6 mt-6",children:[(0,r.jsx)(N.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(N.Text,{className:"mb-6",muted:!0,children:t.jobTitle}),(0,r.jsx)(N.Text,{className:"mb-6 text-justify",muted:!0,children:t.plainText})]})}var E,G,w,L,b,D,N,M,r,S=x(()=>{"use strict";E=require("@stackshift-ui/button"),G=require("@stackshift-ui/card"),M=v(require("react"))});var it={};m(it,{Team_C:()=>R,default:()=>R});function R({caption:t,title:a,team:i}){return(0,r.jsx)(D.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(w.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)(w.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)(L.Flex,{wrap:!0,children:t.map(a=>{var i,e,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)(U.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)(b.Image,{className:"mb-8 h-[345px] w-full object-cover rounded-md",sizes:"100vw",src:`${(e=a==null?void 0:a.mainImage)==null?void 0:e.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 U,w,L,h,b,D,N,at,r,A=x(()=>{"use strict";U=require("@stackshift-ui/card"),at=v(require("react"))});var lt={};m(lt,{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)($.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)($.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)(L.Flex,{wrap:!0,children:t&&t.map((a,i)=>{var e,n,p,c;return(0,r.jsx)("div",{className:"w-full px-4 mb-6 md:w-1/2",children:(0,r.jsxs)(et.Card,{className:"items-center p-0 bg-white overflow-hidden shadow-lg lg:block xl:flex",borderRadius:"md",children:[((e=a.mainImage)==null?void 0:e.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(b.Image,{className:"h-[320px] w-full object-cover rounded-md 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 lg:p-4 xl:w-2/3",children:[(0,r.jsx)(N.Text,{weight:"bold",className:"my-2 text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{className:"mb-4 leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var et,$,L,h,b,D,N,r,z=x(()=>{"use strict";et=require("@stackshift-ui/card")});var _t={};m(_t,{Team:()=>pt,Team_A:()=>C,Team_B:()=>F,Team_C:()=>R,Team_D:()=>_});module.exports=Tt(_t);var f=require("react"),At={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(P(),q))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(S(),Q))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(A(),it))),variant_d:(0,f.lazy)(()=>Promise.resolve().then(()=>(z(),lt)))},$t="Team",pt=({data:t})=>{var n,p,c,H,W,j;let a=t==null?void 0:t.variant,i=a&&At[a],e={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(H=(c=t==null?void 0:t.variants)==null?void 0:c.title)!=null?H:void 0,team:(j=(W=t==null?void 0:t.variants)==null?void 0:W.teams)!=null?j:void 0};return i?(0,r.jsx)(i,{...e}):null};pt.displayName=$t;P();S();A();z();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-
|
|
2
|
+
"use strict";import{a as f}from"./chunk-F5GJBW6M.mjs";import{a as o}from"./chunk-ZKV465GO.mjs";import{a as r}from"./chunk-GZHCSMFB.mjs";import{a as e}from"./chunk-TBRPJMYX.mjs";import{a as t}from"./chunk-POCYT4IV.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 mt=Object.create;var d=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var
|
|
1
|
+
"use strict";var mt=Object.create;var d=Object.defineProperty;var ft=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})},R=(t,a,i,e)=>{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:!(e=ft(a,n))||e.enumerable});return t};var v=(t,a,i)=>(i=t!=null?mt(xt(t)):{},R(a||!t||!t.__esModule?d(i,"default",{value:t,enumerable:!0}):i,t)),Tt=t=>R(d({},"__esModule",{value:!0}),t);var W={};m(W,{Team_A:()=>H,default:()=>H});function H({caption:t,title:a,team:i}){return(0,r.jsx)(z.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(w.Container,{maxWidth:1e3,children:[(0,r.jsx)(w.Container,{maxWidth:576,className:"mb-10 text-center",children:(0,r.jsx)(ut,{caption:t,title:a})}),(0,r.jsx)(vt,{team:i})]})})}function ut({caption:t,title:a}){return(0,r.jsxs)(y.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 vt({team:t}){return t?(0,r.jsx)($.Flex,{wrap:!0,children:t==null?void 0:t.map(a=>{var i,e,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)(A.Card,{className:"py-24 text-center shadow-lg bg-white",borderRadius:"md",children:[((i=a==null?void 0:a.mainImage)==null?void 0:i.image)&&(0,r.jsx)(_.Image,{width:96,height:96,className:"mx-auto border-0 w-[96px] h-[96px] object-cover rounded-full",src:`${(e=a==null?void 0:a.mainImage)==null?void 0:e.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)(wt,{member:a})]})},a==null?void 0:a.name)})}):null}function wt({member:t}){return(0,r.jsxs)(y.default.Fragment,{children:[(0,r.jsx)(h.Heading,{type:"h3",className:"mb-2 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 A,w,$,h,_,z,N,y,r,j=x(()=>{"use strict";A=require("@stackshift-ui/card"),w=require("@stackshift-ui/container"),$=require("@stackshift-ui/flex"),h=require("@stackshift-ui/heading"),_=require("@stackshift-ui/image"),z=require("@stackshift-ui/section"),N=require("@stackshift-ui/text"),y=v(require("react")),r=require("react/jsx-runtime")});var E={};m(E,{Team_B:()=>q,default:()=>q});function q({team:t}){var n;let[a,i]=C.default.useState((n=t==null?void 0:t[0])==null?void 0:n.name),e=C.default.useMemo(()=>(t==null?void 0:t.filter(p=>(p==null?void 0:p.name)===a))||[],[t,a]);return(0,r.jsx)(z.Section,{className:"py-20 bg-background",children:(0,r.jsx)(w.Container,{maxWidth:1280,children:(0,r.jsxs)($.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)(ht,{team:t,activeTab:a,setActiveTab:i}),(0,r.jsx)(yt,{members:e})]})})})}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)($.Flex,{as:"ul",wrap:!0,justify:"center",direction:"row",className:"space-x-6 lg:flex-col lg:justify-start lg:space-x-0",children:t==null?void 0:t.map(e=>(0,r.jsx)(Nt,{data:e,activeTab:a,setActiveTab:i},e.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:`mb-4 text-xl lg:text-2xl ${t.name===a?"text-gray-900":"text-gray-500"} font-bold hover:text-gray-500 focus:outline-none`,onClick:()=>{var e;return i((e=t.name)!=null?e:"")},children:t.name})})}function yt({members:t}){return t?(0,r.jsx)("div",{className:"w-full px-3 lg:w-2/3",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 p-6 shadow-lg bg-white",borderRadius:"md",children:[((a=t.mainImage)==null?void 0:a.image)&&(0,r.jsx)(_.Image,{className:"object-cover overflow-hidden rounded-md",src:`${t.mainImage.image}`,sizes:"100vw",width:329,height:494,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:"order-last w-1/2 pt-6 pl-6 mt-6",children:[(0,r.jsx)(N.Text,{weight:"bold",fontSize:"2xl",children:t.name}),(0,r.jsx)(N.Text,{className:"mb-6",muted:!0,children:t.jobTitle}),(0,r.jsx)(N.Text,{className:"mb-6 text-justify",muted:!0,children:t.plainText})]})}var B,V,w,$,_,z,N,C,r,G=x(()=>{"use strict";B=require("@stackshift-ui/button"),V=require("@stackshift-ui/card"),C=v(require("react"))});var Z={};m(Z,{Team_C:()=>Y,default:()=>Y});function Y({caption:t,title:a,team:i}){return(0,r.jsx)(z.Section,{className:"py-20 bg-background",children:(0,r.jsxs)(w.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)(w.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)($.Flex,{wrap:!0,children:t.map(a=>{var i,e,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)(J.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:`${(e=a==null?void 0:a.mainImage)==null?void 0:e.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)(X.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 J,w,$,h,_,z,N,X,r,tt=x(()=>{"use strict";J=require("@stackshift-ui/card"),X=v(require("react"))});var st={};m(st,{Team_D:()=>rt,default:()=>rt});function rt({caption:t,title:a,team:i}){return(0,r.jsx)(z.Section,{className:"!md:px-4 py-20 bg-background",children:(0,r.jsxs)(w.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)(w.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)($.Flex,{wrap:!0,children:t&&t.map((a,i)=>{var e,n,p,c;return(0,r.jsx)("div",{className:"w-full px-4 mb-6 md:w-1/2",children:(0,r.jsxs)(at.Card,{className:"items-center p-0 bg-white overflow-hidden shadow-lg lg:block xl:flex",borderRadius:"md",children:[((e=a.mainImage)==null?void 0:e.image)&&(0,r.jsx)("div",{children:(0,r.jsx)(_.Image,{className:"h-[320px] w-full object-cover rounded-md 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 lg:p-4 xl:w-2/3",children:[(0,r.jsx)(N.Text,{weight:"bold",className:"my-2 text-lg sm:text-xl md:text-2xl",children:t==null?void 0:t.name}),(0,r.jsx)(N.Text,{className:"mb-4 leading-loose text-sm md:text-base",muted:!0,children:t==null?void 0:t.plainText})]})}var at,w,$,h,_,z,N,r,lt=x(()=>{"use strict";at=require("@stackshift-ui/card")});var _t={};m(_t,{Team:()=>pt});module.exports=Tt(_t);var f=require("react"),At={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(j(),W))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>(G(),E))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(tt(),Z))),variant_d:(0,f.lazy)(()=>Promise.resolve().then(()=>(lt(),st)))},$t="Team",pt=({data:t})=>{var n,p,c,F,S,k;let a=t==null?void 0:t.variant,i=a&&At[a],e={caption:(p=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?p:void 0,title:(F=(c=t==null?void 0:t.variants)==null?void 0:c.title)!=null?F:void 0,team:(k=(S=t==null?void 0:t.variants)==null?void 0:S.teams)!=null?k:void 0};return i?(0,r.jsx)(i,{...e}):null};pt.displayName=$t;0&&(module.exports={Team});
|
package/dist/team.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-F5GJBW6M.mjs";export{a as Team};
|
package/dist/team_d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var
|
|
1
|
+
"use strict";var s=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var v=(a,t)=>{for(var o in t)s(a,o,{get:t[o],enumerable:!0})},N=(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=>N(s({},"__esModule",{value:!0}),a);var P={};v(P,{Team_D:()=>u,default:()=>u});module.exports=C(P);var p=require("@stackshift-ui/card"),d=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),m=require("@stackshift-ui/image"),f=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)(f.Section,{className:"!md:px-4 py-20 bg-background",children:(0,i.jsxs)(d.Container,{maxWidth:1280,children:[(0,i.jsx)(y,{caption:a,title:t}),(0,i.jsx)(I,{team:o})]})})}function y({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)(g.Heading,{children:t})]})}function I({team:a}){return a?(0,i.jsx)(c.Flex,{wrap:!0,children:a&&a.map((t,o)=>{var l,e,r,x;return(0,i.jsx)("div",{className:"w-full px-4 mb-6 md:w-1/2",children:(0,i.jsxs)(p.Card,{className:"items-center p-0 bg-white overflow-hidden shadow-lg lg:block xl:flex",borderRadius:"md",children:[((l=t.mainImage)==null?void 0:l.image)&&(0,i.jsx)("div",{children:(0,i.jsx)(m.Image,{className:"h-[320px] w-full object-cover rounded-md 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)(M,{member:t})]})},o)})}):null}function M({member:a}){return(0,i.jsxs)("div",{className:"w-full lg:p-4 xl:w-2/3",children:[(0,i.jsx)(n.Text,{weight:"bold",className:"my-2 text-lg sm:text-xl md:text-2xl",children:a==null?void 0:a.name}),(0,i.jsx)(n.Text,{className:"mb-4 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-
|
|
1
|
+
import{a}from"./chunk-POCYT4IV.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.
|
|
4
|
+
"version": "6.0.11-beta.0",
|
|
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/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/typescript-config": "6.0.7-beta.0",
|
|
33
|
+
"@stackshift-ui/eslint-config": "6.0.7-beta.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/flex": "6.0.
|
|
47
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/system": "6.0.8-beta.0",
|
|
38
|
+
"@stackshift-ui/scripts": "6.0.7-beta.0",
|
|
39
|
+
"@stackshift-ui/avatar": "6.0.10-beta.0",
|
|
40
|
+
"@stackshift-ui/button": "6.0.8-beta.0",
|
|
41
|
+
"@stackshift-ui/card": "6.0.8-beta.0",
|
|
42
|
+
"@stackshift-ui/heading": "6.0.8-beta.0",
|
|
43
|
+
"@stackshift-ui/text": "6.0.8-beta.0",
|
|
44
|
+
"@stackshift-ui/image": "6.0.8-beta.0",
|
|
45
|
+
"@stackshift-ui/section": "6.0.8-beta.0",
|
|
46
|
+
"@stackshift-ui/flex": "6.0.8-beta.0",
|
|
47
|
+
"@stackshift-ui/container": "6.0.8-beta.0"
|
|
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.
|
|
54
|
+
"@stackshift-ui/system": ">=6.0.8-beta.0"
|
|
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="py-20 bg-background">
|
|
13
|
+
<Section className="!md:px-4 py-20 bg-background">
|
|
14
14
|
<Container maxWidth={1280}>
|
|
15
15
|
<CaptionAndTitle caption={caption} title={title} />
|
|
16
16
|
<TeamMemberCard team={team} />
|
|
@@ -39,14 +39,14 @@ function TeamMemberCard({ team }: { team?: iTeam[] }) {
|
|
|
39
39
|
<Flex wrap>
|
|
40
40
|
{team &&
|
|
41
41
|
team.map((member, index) => (
|
|
42
|
-
<div className="w-full px-4 mb-6
|
|
42
|
+
<div className="w-full px-4 mb-6 md:w-1/2" key={index}>
|
|
43
43
|
<Card
|
|
44
|
-
className="items-center p-0 bg-white overflow-hidden shadow-lg
|
|
44
|
+
className="items-center p-0 bg-white overflow-hidden shadow-lg lg:block xl:flex"
|
|
45
45
|
borderRadius="md">
|
|
46
46
|
{member.mainImage?.image && (
|
|
47
47
|
<div>
|
|
48
48
|
<Image
|
|
49
|
-
className="h-[320px] w-full object-cover rounded-md
|
|
49
|
+
className="h-[320px] w-full object-cover rounded-md xl:w-[179px]"
|
|
50
50
|
sizes="100vw"
|
|
51
51
|
src={`${member?.mainImage?.image}`}
|
|
52
52
|
width={179}
|
|
@@ -65,11 +65,17 @@ function TeamMemberCard({ team }: { team?: iTeam[] }) {
|
|
|
65
65
|
|
|
66
66
|
function TeamMemberText({ member }: MemberTextProps) {
|
|
67
67
|
return (
|
|
68
|
-
<div className="
|
|
69
|
-
<Text
|
|
68
|
+
<div className="w-full lg:p-4 xl:w-2/3">
|
|
69
|
+
<Text
|
|
70
|
+
weight="bold"
|
|
71
|
+
className="my-2 text-lg sm:text-xl md:text-2xl"
|
|
72
|
+
>
|
|
70
73
|
{member?.name}
|
|
71
74
|
</Text>
|
|
72
|
-
<Text
|
|
75
|
+
<Text
|
|
76
|
+
className="mb-4 leading-loose text-sm md:text-base"
|
|
77
|
+
muted
|
|
78
|
+
>
|
|
73
79
|
{member?.plainText}
|
|
74
80
|
</Text>
|
|
75
81
|
</div>
|
package/dist/chunk-JRDJQPE2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Card as x}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 c}from"@stackshift-ui/image";import{Section as m}from"@stackshift-ui/section";import{Text as e}from"@stackshift-ui/text";import{jsx as i,jsxs as o}from"react/jsx-runtime";function u({caption:t,title:a,team:l}){return i(m,{className:"py-20 bg-background",children:o(p,{maxWidth:1280,children:[i(w,{caption:t,title:a}),i(T,{team:l})]})})}function w({caption:t,title:a}){return o(p,{maxWidth:576,className:"mb-8 text-center lg:mb-16",children:[t&&i(e,{weight:"bold",className:"text-secondary",children:t}),a&&i(g,{children:a})]})}function T({team:t}){return t?i(f,{wrap:!0,children:t&&t.map((a,l)=>{var n,s,r,d;return i("div",{className:"w-full px-4 mb-6 lg:w-1/2",children:o(x,{className:"items-center p-0 bg-white overflow-hidden shadow-lg sm:flex sm:flex-wrap lg:block xl:flex",borderRadius:"md",children:[((n=a.mainImage)==null?void 0:n.image)&&i("div",{children:i(c,{className:"h-[320px] w-full object-cover rounded-md sm:w-[179px] lg:w-full xl:w-[179px]",sizes:"100vw",src:`${(s=a==null?void 0:a.mainImage)==null?void 0:s.image}`,width:179,height:320,alt:(d=(r=a==null?void 0:a.mainImage)==null?void 0:r.alt)!=null?d:`team-member-${a==null?void 0:a.name}-profile-image`})}),i(h,{member:a})]})},l)})}):null}function h({member:t}){return o("div",{className:"p-4 sm:w-2/3 lg:w-full lg:pl-6 xl:w-2/3",children:[i(e,{weight:"bold",fontSize:"2xl",className:"mb-2",children:t==null?void 0:t.name}),i(e,{className:"mb-4 leading-loose",muted:!0,children:t==null?void 0:t.plainText})]})}export{u as a};
|
|
File without changes
|