{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-team",
  "type": "registry:item",
  "title": "Card Team",
  "description": "Team group cards with cover images, avatar groups, member counts, and join/leave action buttons with gradient styling",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/info-apex.json",
    "https://www.mui-treasury.com/r/info-basic.json"
  ],
  "files": [
    {
      "path": "components/card-team/card-team.tsx",
      "target": "src/mui-treasury/components/card-team/card-team.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Avatar from '@mui/material/Avatar';\nimport AvatarGroup from '@mui/material/AvatarGroup';\nimport Box from '@mui/material/Box';\nimport Button from '@mui/material/Button';\nimport Grid from '@mui/material/Grid';\nimport { styled } from '@mui/material/styles';\n\nimport { getInfoApexStyles } from '../info-apex/info-apex.styles';\nimport { Info } from '../info-basic/info';\nimport { InfoSubtitle } from '../info-basic/info-subtitle';\nimport { InfoTitle } from '../info-basic/info-title';\n\nconst DivRoot = styled('div')(({ theme }) => ({\n  height: '100%',\n  transition: '0.3s',\n  position: 'relative',\n\n  '&:before': {\n    transition: '0.2s',\n    position: 'absolute',\n    width: '100%',\n    height: '100%',\n    content: '\"\"',\n    display: 'block',\n    backgroundColor: '#d9daf1',\n    borderRadius: '1rem',\n    zIndex: 0,\n    bottom: 0,\n    ...theme.applyStyles('dark', {\n      backgroundColor: '#3a3b5c',\n    }),\n  },\n\n  '@media (hover: hover)': {\n    '&:hover': {\n      '&:before': {\n        bottom: -6,\n      },\n      '& .MuiCard-root': {\n        boxShadow: '0px 12px 32px 0 #bcc3d6',\n        ...theme.applyStyles('dark', {\n          boxShadow: 'none',\n        }),\n      },\n    },\n  },\n}));\n\nconst ColumnCard = styled('div')(({ theme }) => ({\n  display: 'flex',\n  flexDirection: 'column',\n  zIndex: 1,\n  position: 'relative',\n  borderRadius: '1rem',\n  boxShadow: '0 6px 20px 0 #dbdbe8',\n  backgroundColor: (theme.vars || theme).palette.background.paper,\n  transition: '0.4s',\n  height: '100%',\n  ...theme.applyStyles('dark', {\n    boxShadow: '0 6px 20px 0 rgba(0, 0, 0, 0.5)',\n  }),\n}));\n\nconst AvatarLogo = styled(Avatar)(() => ({\n  width: 48,\n  height: 48,\n  borderRadius: '0.75rem',\n}));\n\nconst ButtonJoin = styled(Button)(({ theme }) => ({\n  borderRadius: 50,\n  textTransform: 'initial',\n  '&:focus': {\n    boxShadow:\n      '0 4px 6px 2px rgba(0,0,0,0.08), 0px 2px 4px 0px rgba(0,0,0,0.24), inset 0 -3px 0 0 rgba(0,0,0,0.12)',\n  },\n  '&:active': {\n    boxShadow: `inset 0 4px 4px 0 rgba(0,0,0,0.14)`,\n  },\n  textShadow: '0 0.5px 0 rgba(0,0,0,0.2)',\n  transition: '0.2s',\n  background: `linear-gradient(to top, #638ef0, #82e7fe)`,\n  boxShadow:\n    '0 4px 6px 2px rgba(0,0,0,0.08), 0px 2px 4px 0px rgba(0,0,0,0.24), inset 0 -3px 0 0 rgba(0,0,0,0.12)',\n  '@media (hover: hover)': {\n    '&:hover': {\n      borderBottom: 'none',\n    },\n  },\n  '& > *': {\n    textTransform: 'none !important',\n  },\n  ...theme.applyStyles('dark', {\n    background: `linear-gradient(to top, #5278d0, #6bc7de)`,\n  }),\n}));\n\nconst CustomCard = ({\n  title,\n  subtitle,\n  description,\n  thumbnail,\n  joined,\n}: {\n  title: string;\n  subtitle: string;\n  description: React.ReactNode;\n  thumbnail: string;\n  joined?: boolean;\n}) => (\n  <DivRoot>\n    <ColumnCard className=\"MuiCard-root\">\n      <Box\n        sx={{\n          display: 'flex',\n          p: 2,\n          gap: 2,\n          flexWrap: 'nowrap',\n        }}\n      >\n        <AvatarLogo variant={'rounded'} src={thumbnail} />\n        <Info useStyles={getInfoApexStyles} sx={{ alignSelf: 'center' }}>\n          <InfoTitle>{title}</InfoTitle>\n          <InfoSubtitle>{subtitle}</InfoSubtitle>\n        </Info>\n      </Box>\n      <Box\n        sx={{\n          pb: 1,\n          px: 2,\n          color: 'grey.600',\n          fontSize: '0.875rem',\n          fontFamily: 'Ubuntu',\n          flexGrow: 1,\n        }}\n      >\n        {description}\n      </Box>\n      <Box\n        sx={{\n          display: 'flex',\n          p: 2,\n          gap: 2,\n          flexWrap: 'wrap',\n          justifyContent: 'space-between',\n\n          '&& > *': {\n            minWidth: `clamp(0px, (248px + 1px - 100%) * 999, 100%)`,\n          },\n        }}\n      >\n        <Box>\n          <AvatarGroup\n            max={4}\n            sx={{\n              '& .MuiAvatar-root': {\n                fontFamily: 'Ubuntu',\n                fontSize: '0.875rem',\n                backgroundColor: '#6d7efc',\n                width: 32,\n                height: 32,\n                '&:first-of-type': {\n                  marginRight: 'auto',\n                },\n              },\n            }}\n          >\n            {new Array(5).fill(0).map((_, index) => (\n              <Avatar\n                key={index}\n                src={`https://i.pravatar.cc/300?img=${(index * 7) % 30}`}\n              />\n            ))}\n          </AvatarGroup>\n        </Box>\n        <ButtonJoin variant={'contained'} color={'primary'} disableRipple>\n          {joined ? 'Leave group' : 'Join group'}\n        </ButtonJoin>\n      </Box>\n    </ColumnCard>\n  </DivRoot>\n);\n\nexport function CardTeam() {\n  return (\n    <Grid container spacing={4}>\n      <Grid size={{ xs: 12, sm: 6, lg: 4 }}>\n        <CustomCard\n          thumbnail={\n            'https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRQHCBAj8nRJkEwjWg5TpNuSZZG9iscsf43V1mfx0LZHNDYW3S_&usqp=CAU'\n          }\n          title={'APEX Legends: Assemble!'}\n          subtitle={'Created by siriwatknp'}\n          description={\n            <>\n              <b>Shining Alpaca</b> and 3 others are already members of this\n              group.\n            </>\n          }\n        />\n      </Grid>\n      <Grid size={{ xs: 12, sm: 6, lg: 4 }}>\n        <CustomCard\n          joined\n          thumbnail={\n            'https://cm1.narvii.com/7153/05204b8d8dcbb652dd1a8ceaafde997bc1909468_00.jpg'\n          }\n          title={'League of Legends Official'}\n          subtitle={'Created by LoL'}\n          description={\n            'You are already a member of this group since April 5th 2019.'\n          }\n        />\n      </Grid>\n      <Grid size={{ xs: 12, sm: 6, lg: 4 }}>\n        <CustomCard\n          thumbnail={\n            'https://cdn.vox-cdn.com/thumbor/C6_-SDnnoFdS19XRH4XvAYN1BT8=/148x0:1768x1080/1400x1400/filters:focal(148x0:1768x1080):format(jpeg)/cdn.vox-cdn.com/uploads/chorus_image/image/49641465/tracer_overwatch.0.0.jpg'\n          }\n          title={'Overwatch official'}\n          subtitle={'Created by Bliz'}\n          description={\n            <>\n              <b>RainBOW</b> and 3 others are already members of this group.\n            </>\n          }\n        />\n      </Grid>\n    </Grid>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/card-team/index.ts",
      "target": "src/mui-treasury/components/card-team/index.ts",
      "content": "export * from './card-team';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "previewClassName": "h-[300px!important] overflow-auto",
    "previewMode": "iframe",
    "subcategory": "card",
    "exportName": "CardTeam"
  }
}