@campxdev/react-blueprint 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -2,7 +2,6 @@ import { ChevronRight, MoreHoriz } from '@mui/icons-material';
2
2
 
3
3
  import {
4
4
  CardContent,
5
- Checkbox,
6
5
  Card as MuiCard,
7
6
  Stack,
8
7
  SxProps,
@@ -18,7 +17,6 @@ import {
18
17
  StyledHeader,
19
18
  StyledIcon,
20
19
  StyledImage,
21
- StyledStack,
22
20
  StyledStatusText,
23
21
  } from './styles';
24
22
 
@@ -46,6 +44,7 @@ export interface CardProps {
46
44
  };
47
45
  status?: string;
48
46
  imageSrc?: string;
47
+ titleImgUrl?: string;
49
48
  checkBox?: boolean;
50
49
  moreOptions?: boolean;
51
50
  menu?: Array<ReactNode>;
@@ -57,6 +56,7 @@ export interface CardProps {
57
56
 
58
57
  export const Card = ({
59
58
  title,
59
+ titleImgUrl,
60
60
  caption,
61
61
  status,
62
62
  footer,
@@ -87,10 +87,15 @@ export const Card = ({
87
87
  {imageSrc && <StyledImage src={imageSrc} alt="Card image" />}
88
88
  <StyledHeader sx={headerSx}>
89
89
  <Stack gap={'8px'} flexDirection={'row'}>
90
- {checkBox && (
90
+ {/* check box onclick functionality need to add */}
91
+ {/* {checkBox && (
91
92
  <StyledStack>
92
93
  <Checkbox />
93
94
  </StyledStack>
95
+ )} */}
96
+
97
+ {titleImgUrl && (
98
+ <img src={titleImgUrl} alt={title} height={'50px'} width={'50px'} />
94
99
  )}
95
100
 
96
101
  <Stack justifyContent={'center'}>