diff --git a/package.json b/package.json index a41204d..726f3a9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.6.2", + "version": "0.6.3", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/components/Card/Card.tsx b/src/components/Card/Card.tsx index 1e7ccff..273cc17 100644 --- a/src/components/Card/Card.tsx +++ b/src/components/Card/Card.tsx @@ -4,11 +4,11 @@ import { CardProps as MUICardProps } from '@mui/material/Card'; import Stack from "@mui/material/Stack"; import CardContent from '@mui/material/CardContent'; import Typography from '@mui/material/Typography'; -import { CardActionArea } from '@mui/material'; +import { CardActionArea, Grid } from '@mui/material'; import styled from '@emotion/styled'; +import ArrowForward from '@mui/icons-material/ArrowForward' - -export type HorizontalCardProps = MUICardProps & { width?: number, cardSpacing?: number, cardContentText: {cardLabel: string, val?: string, cardDesc: string}[], onCardClick?: (val?: string) => void }; +export type HorizontalCardProps = MUICardProps & { width?: number, cardSpacing?: number, cardContentText: {cardLabel: string, val?: string, cardDesc: string}[], onCardClick?: (val?: string) => void, onArrowClick?: (val?: string) => void }; const StyledCard = styled(Card)(() => ({ background: "#FFFFFF", @@ -45,12 +45,21 @@ const HorizontalCard: React.FC = (props) =>{ }} > - - {c.cardLabel} - - - {c.cardDesc} - + + + + {c.cardLabel} + + + {c.cardDesc} + + + + { + props.onArrowClick && props.onArrowClick(c.val) + }} style={{ width: "50px", height: "50px", color: "#E0E0E0" }}/> + + )