@stackshift-ui/team 7.0.0-beta.8 → 7.0.0-beta.9
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-4IAGLV3Q.mjs +1 -0
- package/dist/chunk-FS7662IU.mjs +1 -0
- package/dist/chunk-IWG3N2YJ.mjs +1 -0
- package/dist/chunk-YBWRYWSQ.mjs +1 -0
- package/dist/chunk-Z5PUB6KK.mjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/team.d.ts +15 -0
- package/dist/team.js +1 -0
- package/dist/team.mjs +1 -0
- package/dist/team_a.d.ts +3 -0
- package/dist/team_a.js +1 -0
- package/dist/team_a.mjs +1 -0
- package/dist/team_b.d.ts +3 -0
- package/dist/team_b.js +1 -0
- package/dist/team_b.mjs +1 -0
- package/dist/team_c.d.ts +3 -0
- package/dist/team_c.js +1 -0
- package/dist/team_c.mjs +1 -0
- package/dist/team_d.d.ts +3 -0
- package/dist/team_d.js +1 -0
- package/dist/team_d.mjs +1 -0
- package/dist/types.d.ts +362 -0
- package/dist/types.js +1 -0
- package/package.json +15 -15
|
@@ -0,0 +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-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};
|
|
@@ -0,0 +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 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};
|
|
@@ -0,0 +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-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.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
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
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
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
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionsProps, Team as ITeam } from "./types";
|
|
3
|
+
export interface MemberTextProps {
|
|
4
|
+
member: {
|
|
5
|
+
name?: string;
|
|
6
|
+
plainText?: string;
|
|
7
|
+
jobTitle?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface TeamsProps {
|
|
11
|
+
caption?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
team?: ITeam[];
|
|
14
|
+
}
|
|
15
|
+
export declare const Team: React.FC<SectionsProps>;
|
package/dist/team.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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.d.ts
ADDED
package/dist/team_a.js
ADDED
|
@@ -0,0 +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 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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-Z5PUB6KK.mjs";export{a as Team_A,a as default};
|
package/dist/team_b.d.ts
ADDED
package/dist/team_b.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-IWG3N2YJ.mjs";export{a as Team_B,a as default};
|
package/dist/team_c.d.ts
ADDED
package/dist/team_c.js
ADDED
|
@@ -0,0 +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-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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-4IAGLV3Q.mjs";export{a as Team_C,a as default};
|
package/dist/team_d.d.ts
ADDED
package/dist/team_d.js
ADDED
|
@@ -0,0 +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-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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-YBWRYWSQ.mjs";export{a as Team_D,a as default};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
export type StyleVariants<T extends string> = Record<T, string>;
|
|
2
|
+
export type Socials = "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
3
|
+
export interface MainImage {
|
|
4
|
+
image: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LabeledRoute extends ConditionalLink {
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
linkTarget?: string;
|
|
11
|
+
linkType?: string;
|
|
12
|
+
_type?: string;
|
|
13
|
+
linkInternal?: any;
|
|
14
|
+
}
|
|
15
|
+
export interface ConditionalLink {
|
|
16
|
+
type?: string;
|
|
17
|
+
internalLink?: string | null;
|
|
18
|
+
externalLink?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface StatItems {
|
|
21
|
+
label?: string;
|
|
22
|
+
mainImage?: MainImage;
|
|
23
|
+
value?: string;
|
|
24
|
+
_key?: string;
|
|
25
|
+
_type?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface Logo extends ConditionalLink {
|
|
28
|
+
alt?: string;
|
|
29
|
+
linkTarget?: string;
|
|
30
|
+
image?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Images {
|
|
33
|
+
image?: string;
|
|
34
|
+
_key?: string;
|
|
35
|
+
_type?: string;
|
|
36
|
+
alt?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ContactDetails {
|
|
39
|
+
addressInfo?: string;
|
|
40
|
+
contactInfo?: string;
|
|
41
|
+
emailInfo?: string;
|
|
42
|
+
_key?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface SocialLink {
|
|
45
|
+
socialMedia?: string | null;
|
|
46
|
+
socialMediaLink?: string | null;
|
|
47
|
+
_key?: string | null;
|
|
48
|
+
_type?: string | null;
|
|
49
|
+
socialMediaIcon?: {
|
|
50
|
+
alt?: string;
|
|
51
|
+
image?: string;
|
|
52
|
+
} | null;
|
|
53
|
+
socialMediaPlatform?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface LabeledRouteWithKey extends LabeledRoute {
|
|
56
|
+
_key?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ArrayOfImageTitleAndText {
|
|
59
|
+
mainImage?: {
|
|
60
|
+
alt?: string;
|
|
61
|
+
image?: string;
|
|
62
|
+
};
|
|
63
|
+
plainText?: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
_key?: string;
|
|
66
|
+
_type?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface FeaturedItem {
|
|
69
|
+
description?: string;
|
|
70
|
+
mainImage?: MainImage;
|
|
71
|
+
title?: string;
|
|
72
|
+
subtitle?: string;
|
|
73
|
+
_key?: string;
|
|
74
|
+
_type?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ArrayOfTitleAndText {
|
|
77
|
+
_key?: string;
|
|
78
|
+
plainText?: string;
|
|
79
|
+
title?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BlogPost extends SanityBody {
|
|
82
|
+
authors?: Author[] | null;
|
|
83
|
+
body?: any;
|
|
84
|
+
categories?: Category[] | null;
|
|
85
|
+
excerpt?: string | null;
|
|
86
|
+
link?: string | null;
|
|
87
|
+
mainImage?: string | null;
|
|
88
|
+
publishedAt?: string;
|
|
89
|
+
seo?: Seo | null;
|
|
90
|
+
slug?: SanitySlug | null;
|
|
91
|
+
title?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface Seo {
|
|
94
|
+
_type?: string;
|
|
95
|
+
seoTitle?: string;
|
|
96
|
+
seoDescription?: string;
|
|
97
|
+
seoImage?: string;
|
|
98
|
+
seoKeywords?: string;
|
|
99
|
+
seoSynonyms?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface SanitySlug {
|
|
102
|
+
current?: string;
|
|
103
|
+
_type?: "slug";
|
|
104
|
+
}
|
|
105
|
+
export interface SanityBody {
|
|
106
|
+
_createdAt?: string;
|
|
107
|
+
_id?: string;
|
|
108
|
+
_rev?: string;
|
|
109
|
+
_type?: string;
|
|
110
|
+
_updatedAt?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface Author extends SanityBody {
|
|
113
|
+
link?: string | null;
|
|
114
|
+
bio?: string | null;
|
|
115
|
+
name?: string | null;
|
|
116
|
+
slug?: SanitySlug | null;
|
|
117
|
+
image?: string | null;
|
|
118
|
+
profile?: {
|
|
119
|
+
alt: string;
|
|
120
|
+
image: string;
|
|
121
|
+
} | null;
|
|
122
|
+
}
|
|
123
|
+
export interface Category extends SanityBody {
|
|
124
|
+
title?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface Form {
|
|
127
|
+
id?: string | null;
|
|
128
|
+
buttonLabel?: string | null;
|
|
129
|
+
name?: string | null;
|
|
130
|
+
subtitle?: string | null;
|
|
131
|
+
fields?: FormFields[] | null;
|
|
132
|
+
thankYouPage?: ThankYouPage | null;
|
|
133
|
+
}
|
|
134
|
+
export interface FormFields {
|
|
135
|
+
name?: string;
|
|
136
|
+
placeholder?: string;
|
|
137
|
+
pricingType?: string;
|
|
138
|
+
type?: FormTypes;
|
|
139
|
+
_key?: string;
|
|
140
|
+
_type?: string;
|
|
141
|
+
isRequired?: boolean;
|
|
142
|
+
label?: string;
|
|
143
|
+
items?: string[];
|
|
144
|
+
}
|
|
145
|
+
export type FormTypes = "inputText" | "inputEmail" | "inputPassword" | "inputNumber" | "textarea" | "inputFile" | "inputRadio" | "inputCheckbox" | "inputSelect";
|
|
146
|
+
export interface ThankYouPage {
|
|
147
|
+
externalLink?: string | null;
|
|
148
|
+
internalLink?: string | null;
|
|
149
|
+
linkInternal?: any;
|
|
150
|
+
linkTarget?: string;
|
|
151
|
+
linkType?: string;
|
|
152
|
+
type?: string;
|
|
153
|
+
}
|
|
154
|
+
export interface SectionsProps {
|
|
155
|
+
template?: Template;
|
|
156
|
+
data?: Sections;
|
|
157
|
+
variant?: string | null | undefined;
|
|
158
|
+
schema?: Variants;
|
|
159
|
+
}
|
|
160
|
+
export interface Sections extends SanityBody {
|
|
161
|
+
label?: string;
|
|
162
|
+
variant?: string;
|
|
163
|
+
variants?: Variants;
|
|
164
|
+
_key?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface Variants {
|
|
167
|
+
template?: Template;
|
|
168
|
+
multipleMenus?: any;
|
|
169
|
+
arrayOfTitleAndText?: ArrayOfTitleAndText[] | null;
|
|
170
|
+
logo?: Logo | null;
|
|
171
|
+
primaryButton?: LabeledRoute | null;
|
|
172
|
+
secondaryButton?: LabeledRoute | null;
|
|
173
|
+
routes?: LabeledRouteWithKey[] | null;
|
|
174
|
+
menu?: LabeledRouteWithKey[] | null;
|
|
175
|
+
plans?: Plans[] | null;
|
|
176
|
+
formLinks?: LabeledRouteWithKey[] | null;
|
|
177
|
+
portfolios?: Portfolios[] | null;
|
|
178
|
+
portfoliosWithCategories?: PortfoliosWithCategories[] | null;
|
|
179
|
+
length?: number;
|
|
180
|
+
signInLink?: LabeledRoute | null;
|
|
181
|
+
signinLink?: LabeledRoute | null;
|
|
182
|
+
tags?: string[] | null;
|
|
183
|
+
posts?: BlogPost[] | null;
|
|
184
|
+
blogsPerPage?: number | null;
|
|
185
|
+
form?: Form | null;
|
|
186
|
+
collections?: Collection | null;
|
|
187
|
+
products?: CollectionProduct | null;
|
|
188
|
+
allProducts?: Collection[];
|
|
189
|
+
subtitle?: string | null;
|
|
190
|
+
caption?: string | null;
|
|
191
|
+
title?: string | null;
|
|
192
|
+
plainText?: string | null;
|
|
193
|
+
contactDescription?: string | null;
|
|
194
|
+
officeInformation?: string | null;
|
|
195
|
+
contactEmail?: string | null;
|
|
196
|
+
contactNumber?: string | null;
|
|
197
|
+
socialLinks?: SocialLink[] | null;
|
|
198
|
+
block?: any;
|
|
199
|
+
heading?: string | null;
|
|
200
|
+
acceptButtonLabel?: string | null;
|
|
201
|
+
declineButtonLabel?: string | null;
|
|
202
|
+
faqsWithCategories?: FaqsWithCategory[] | null;
|
|
203
|
+
faqs?: AskedQuestion[] | null;
|
|
204
|
+
arrayOfImageTitleAndText?: ArrayOfImageTitleAndText[] | null;
|
|
205
|
+
description?: string | null;
|
|
206
|
+
featuredItems?: FeaturedItem[] | null;
|
|
207
|
+
images?: Images[] | null;
|
|
208
|
+
contactDetails?: ContactDetails[] | null;
|
|
209
|
+
copyright?: string | null;
|
|
210
|
+
mainImage?: MainImage | null;
|
|
211
|
+
youtubeLink?: string | null;
|
|
212
|
+
banner?: any;
|
|
213
|
+
stats?: StatItems[] | null;
|
|
214
|
+
teams?: Team[] | null;
|
|
215
|
+
testimonials?: Testimonial[] | null;
|
|
216
|
+
selectStripeAccount?: string;
|
|
217
|
+
annualBilling?: string;
|
|
218
|
+
monthlyBilling?: string;
|
|
219
|
+
productDetails?: ProductDetail[];
|
|
220
|
+
btnLabel?: string;
|
|
221
|
+
selectAccount?: string;
|
|
222
|
+
hashtags?: string[];
|
|
223
|
+
numberOfPosts?: number;
|
|
224
|
+
text?: string;
|
|
225
|
+
button?: LabeledRoute;
|
|
226
|
+
features?: string[];
|
|
227
|
+
config?: {
|
|
228
|
+
enableAnalytics: boolean;
|
|
229
|
+
cookiePolicy?: {
|
|
230
|
+
siteName: string;
|
|
231
|
+
cookiePolicyPage: Reference;
|
|
232
|
+
};
|
|
233
|
+
consentModalPosition?: string;
|
|
234
|
+
};
|
|
235
|
+
contactLink?: LabeledRoute;
|
|
236
|
+
}
|
|
237
|
+
export interface Template {
|
|
238
|
+
bg?: string;
|
|
239
|
+
color?: string;
|
|
240
|
+
}
|
|
241
|
+
export type Plans = {
|
|
242
|
+
_key?: string | null;
|
|
243
|
+
_type?: "planItems" | null;
|
|
244
|
+
checkoutButtonName?: string | null;
|
|
245
|
+
description?: string | null;
|
|
246
|
+
monthlyPrice?: string | null;
|
|
247
|
+
planType?: string | null;
|
|
248
|
+
yearlyPrice?: string | null;
|
|
249
|
+
planIncludes?: string[] | null;
|
|
250
|
+
primaryButton?: LabeledRoute | null;
|
|
251
|
+
} & Record<string, string>;
|
|
252
|
+
export interface Portfolios {
|
|
253
|
+
dateAdded?: string | null;
|
|
254
|
+
mainImage?: {
|
|
255
|
+
image?: string | null;
|
|
256
|
+
alt?: string | null;
|
|
257
|
+
} | null;
|
|
258
|
+
primaryButton?: LabeledRoute | null;
|
|
259
|
+
title?: string | null;
|
|
260
|
+
_key?: string | null;
|
|
261
|
+
_type?: string | null;
|
|
262
|
+
}
|
|
263
|
+
export interface PortfoliosWithCategories {
|
|
264
|
+
category?: string | null;
|
|
265
|
+
content?: Content[] | null;
|
|
266
|
+
primaryButton?: LabeledRoute | null;
|
|
267
|
+
_key?: string | null;
|
|
268
|
+
_type?: string | null;
|
|
269
|
+
}
|
|
270
|
+
export interface Content extends Portfolios {
|
|
271
|
+
description?: string | null;
|
|
272
|
+
subtitle?: string | null;
|
|
273
|
+
}
|
|
274
|
+
export interface Collection extends SanityBody {
|
|
275
|
+
collectionInfoVariant?: {
|
|
276
|
+
variant?: string;
|
|
277
|
+
} | null;
|
|
278
|
+
name?: string | null;
|
|
279
|
+
products?: CollectionProduct[] | null;
|
|
280
|
+
sections?: any;
|
|
281
|
+
seo?: Seo | null;
|
|
282
|
+
slug?: SanitySlug | null;
|
|
283
|
+
}
|
|
284
|
+
export interface CollectionProduct extends SanityBody {
|
|
285
|
+
compareToPrice?: number | null;
|
|
286
|
+
description?: string | null;
|
|
287
|
+
ecwidProductId?: number | null;
|
|
288
|
+
name?: string | null;
|
|
289
|
+
price?: number | null;
|
|
290
|
+
productInfo?: ProductInfo | null;
|
|
291
|
+
productInfoVariant?: {
|
|
292
|
+
variant?: string;
|
|
293
|
+
} | null;
|
|
294
|
+
sections?: any;
|
|
295
|
+
seo?: Seo | null;
|
|
296
|
+
slug?: SanitySlug | null;
|
|
297
|
+
}
|
|
298
|
+
interface ProductInfo {
|
|
299
|
+
btnLabel?: string | null;
|
|
300
|
+
images?: ProductInfoImage[] | null;
|
|
301
|
+
productDetails?: ProductDetail[] | null;
|
|
302
|
+
socialLinks?: SocialLink[] | null;
|
|
303
|
+
subtitle?: string | null;
|
|
304
|
+
}
|
|
305
|
+
export interface ProductDetail {
|
|
306
|
+
blockContent?: any;
|
|
307
|
+
contentType?: string;
|
|
308
|
+
tabName?: string;
|
|
309
|
+
_key?: string;
|
|
310
|
+
[key: string]: any;
|
|
311
|
+
}
|
|
312
|
+
interface ProductInfoImage {
|
|
313
|
+
alt?: string | null;
|
|
314
|
+
_key: string;
|
|
315
|
+
_type: string;
|
|
316
|
+
image?: string | null;
|
|
317
|
+
}
|
|
318
|
+
export interface FaqsWithCategory {
|
|
319
|
+
askedQuestions?: AskedQuestion[] | null;
|
|
320
|
+
category?: string | null;
|
|
321
|
+
_key?: string;
|
|
322
|
+
_type?: string;
|
|
323
|
+
}
|
|
324
|
+
export interface AskedQuestion {
|
|
325
|
+
answer?: string | null;
|
|
326
|
+
question?: string | null;
|
|
327
|
+
hidden?: boolean;
|
|
328
|
+
_key?: string;
|
|
329
|
+
_type?: string;
|
|
330
|
+
}
|
|
331
|
+
export interface Team {
|
|
332
|
+
jobTitle?: string;
|
|
333
|
+
mainImage?: MainImage;
|
|
334
|
+
name?: string;
|
|
335
|
+
plainText?: string;
|
|
336
|
+
_key?: string;
|
|
337
|
+
_type?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface Testimonial {
|
|
340
|
+
jobTitle?: string;
|
|
341
|
+
mainImage?: MainImage;
|
|
342
|
+
name?: string;
|
|
343
|
+
rating?: string;
|
|
344
|
+
testimony?: string;
|
|
345
|
+
_key?: string;
|
|
346
|
+
_type?: string;
|
|
347
|
+
}
|
|
348
|
+
export declare interface Reference {
|
|
349
|
+
_type: string;
|
|
350
|
+
_ref: string;
|
|
351
|
+
_key?: string;
|
|
352
|
+
_weak?: boolean;
|
|
353
|
+
_strengthenOnPublish?: {
|
|
354
|
+
type: string;
|
|
355
|
+
weak?: boolean;
|
|
356
|
+
template?: {
|
|
357
|
+
id: string;
|
|
358
|
+
params: Record<string, string | number | boolean>;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
export {};
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
|
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.
|
|
4
|
+
"version": "7.0.0-beta.9",
|
|
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.10",
|
|
33
|
+
"@stackshift-ui/eslint-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/heading": "7.0.0-beta.
|
|
40
|
-
"@stackshift-ui/text": "7.0.0-beta.
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/container": "7.0.0-beta.
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/avatar": "7.0.0-beta.
|
|
37
|
+
"@stackshift-ui/card": "7.0.0-beta.6",
|
|
38
|
+
"@stackshift-ui/button": "7.0.0-beta.8",
|
|
39
|
+
"@stackshift-ui/heading": "7.0.0-beta.6",
|
|
40
|
+
"@stackshift-ui/text": "7.0.0-beta.6",
|
|
41
|
+
"@stackshift-ui/image": "7.0.0-beta.7",
|
|
42
|
+
"@stackshift-ui/scripts": "7.0.0-beta.5",
|
|
43
|
+
"@stackshift-ui/container": "7.0.0-beta.6",
|
|
44
|
+
"@stackshift-ui/flex": "7.0.0-beta.6",
|
|
45
|
+
"@stackshift-ui/section": "7.0.0-beta.6",
|
|
46
|
+
"@stackshift-ui/system": "7.0.0-beta.6",
|
|
47
|
+
"@stackshift-ui/avatar": "7.0.0-beta.7"
|
|
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": ">=7.0.0-beta.
|
|
54
|
+
"@stackshift-ui/system": ">=7.0.0-beta.6"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"next": {
|