@campxdev/react-blueprint 1.2.4 → 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 +1 -1
- package/src/App.tsx +11 -21
- package/src/components/Assets/Icons/IconComponents/CampxFullLogoIcon.tsx +46 -40
- package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +14 -12
- package/src/components/Assets/Icons/IconComponents/CheckedCheckBoxIcon.tsx +13 -32
- package/src/components/Assets/Icons/IconComponents/Comfortable.tsx +21 -0
- package/src/components/Assets/Icons/IconComponents/CompactIcon.tsx +23 -0
- package/src/components/Assets/Icons/IconComponents/ConfigureIcon.tsx +35 -0
- package/src/components/Assets/Icons/IconComponents/FilterViewIcon.tsx +32 -0
- package/src/components/Assets/Icons/IconComponents/StandardIcon.tsx +22 -0
- package/src/components/Assets/Icons/IconComponents/UncheckCheckBoxIcon.tsx +10 -16
- package/src/components/Assets/Icons/IconComponents/VisibiityOffIcon.tsx +6 -13
- package/src/components/Assets/Icons/IconComponents/VisibilityIcon.tsx +14 -19
- package/src/components/Assets/Icons/Icons.tsx +10 -0
- package/src/components/DataDisplay/Card/Card.tsx +11 -3
- package/src/components/DataDisplay/SidePanel/SidePanel.tsx +1 -1
- package/src/components/DataDisplay/SidePanel/styles.tsx +1 -1
- package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +10 -2
- package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +4 -4
- package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +41 -8
- package/src/components/Navigation/ManageFilters/ManageFilters.tsx +112 -0
- package/src/components/Navigation/Sidebar/Components.tsx +40 -2
- package/src/components/Navigation/Sidebar/MenuItem.tsx +21 -9
- package/src/components/Navigation/Sidebar/Sidebar.tsx +26 -12
- package/src/components/Navigation/Sidebar/SubMenuItem.tsx +5 -1
- package/src/components/Navigation/Sidebar/interfaces.ts +2 -0
- package/src/components/Navigation/Sidebar/styles.tsx +18 -18
- package/src/components/Navigation/TableColumnFilters/TableColumnFilters.tsx +108 -0
- package/src/components/Navigation/TableDensityFilter/TableDensityFilter.tsx +104 -0
- package/src/components/Navigation/export.ts +3 -0
- package/src/stories/Input/Password.stories.tsx +1 -4
- package/src/stories/Navigation/ColumnFilters.stories.tsx +82 -0
- package/src/stories/Navigation/ManageFilters.stories.tsx +117 -0
- package/src/stories/Navigation/TableDensityFilter.stories.tsx +45 -0
- package/src/themes/commonTheme.ts +16 -3
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState } from 'react';
|
|
1
|
+
import { Stack } from '@mui/material';
|
|
2
|
+
import { ReactNode, useState } from 'react';
|
|
3
3
|
import './App.css';
|
|
4
|
-
import Chips from './components/DataDisplay/Chips/Chips';
|
|
5
4
|
import { Tags } from './components/Input/Tags/Tags';
|
|
6
|
-
import { AppHeader, SearchBar
|
|
5
|
+
import { AppHeader, SearchBar } from './components/export';
|
|
7
6
|
import Providers from './contexts/Providers';
|
|
8
7
|
|
|
9
8
|
function App() {
|
|
10
|
-
const [selected, setSelected] = useState<
|
|
9
|
+
const [selected, setSelected] = useState<ReactNode[]>([]);
|
|
11
10
|
const sampleChips = [
|
|
12
11
|
{ label: 'Chip1', value: 1 },
|
|
13
12
|
{ label: 'Chip2', value: 2 },
|
|
@@ -23,24 +22,15 @@ function App() {
|
|
|
23
22
|
collapsed={false}
|
|
24
23
|
institutionsData={[]}
|
|
25
24
|
/>
|
|
26
|
-
<UnAuthorized
|
|
27
|
-
component={
|
|
28
|
-
<Button sx={{ marginTop: '20px' }} variant="contained">
|
|
29
|
-
Click Here to Login
|
|
30
|
-
</Button>
|
|
31
|
-
}
|
|
32
|
-
/>
|
|
33
25
|
<SearchBar onSearch={() => {}} value={''} placeholder="Search by Name" />
|
|
34
|
-
|
|
35
|
-
list={sampleChips}
|
|
36
|
-
singleSelection={false}
|
|
37
|
-
selected={selected}
|
|
38
|
-
onSelected={(selectedValue) => {
|
|
39
|
-
console.log(selectedValue, 'selectedValue');
|
|
40
|
-
setSelected(selectedValue);
|
|
41
|
-
}}
|
|
42
|
-
/>
|
|
26
|
+
|
|
43
27
|
<Tags tags={sampleChips} />
|
|
28
|
+
|
|
29
|
+
<Stack>
|
|
30
|
+
{selected.map((item) => {
|
|
31
|
+
return <>{item}</>;
|
|
32
|
+
})}
|
|
33
|
+
</Stack>
|
|
44
34
|
</Providers>
|
|
45
35
|
);
|
|
46
36
|
}
|
|
@@ -2,51 +2,57 @@ import { useTheme } from '@mui/material';
|
|
|
2
2
|
|
|
3
3
|
export const CampxFullLogoIcon = () => {
|
|
4
4
|
const theme = useTheme();
|
|
5
|
-
const color = theme.palette.mode === 'dark' ? '#FFFFFF' : '#1e19f5';
|
|
6
5
|
|
|
7
6
|
return (
|
|
8
7
|
<svg
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
width="130"
|
|
9
|
+
height="24"
|
|
10
|
+
viewBox="0 0 130 24"
|
|
11
|
+
fill="none"
|
|
11
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
viewBox="0 0 1177.77 217.66"
|
|
13
|
-
style={{
|
|
14
|
-
strokeWidth: '0px',
|
|
15
|
-
fill: theme.palette.text.primary,
|
|
16
|
-
}}
|
|
17
13
|
>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
14
|
+
<g id="Campx LogoAsset 2 1" clip-path="url(#clip0_4651_30457)">
|
|
15
|
+
<g id="Layer 1">
|
|
16
|
+
<g id="Group">
|
|
17
|
+
<g id="Group 4155">
|
|
18
|
+
<path
|
|
19
|
+
id="Vector"
|
|
20
|
+
d="M20.9316 20.5697C18.5653 22.9029 15.5099 23.9868 12.191 23.9868C3.64773 23.9868 0.0332872 18.1053 0.00020804 12.1246C-0.0328711 6.11192 3.87818 0 12.191 0C15.3125 0 18.2698 1.18313 20.6361 3.51631L17.7449 6.30929C16.2332 4.83065 14.1967 4.1404 12.1921 4.1404C6.63919 4.1404 4.23985 8.2808 4.27293 12.1246C4.30601 15.9364 6.50687 19.9125 12.1921 19.9125C14.1967 19.9125 16.4637 19.0911 17.9754 17.5793L20.9327 20.5697H20.9316Z"
|
|
21
|
+
fill={theme.palette.text.primary}
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
id="Vector_2"
|
|
25
|
+
d="M41.4024 19.1243H29.3759L27.4044 23.4621H22.7061L33.0234 0.459961H37.7548L48.0722 23.461H43.3408L41.4024 19.1232V19.1243ZM35.3897 5.29061L31.1181 15.082H39.6613L35.3897 5.29061Z"
|
|
26
|
+
fill={theme.palette.text.primary}
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
id="Vector_3"
|
|
30
|
+
d="M71.9288 6.80245L64.4374 16.7912H63.5829L56.2548 6.76937V23.4942H51.917V0.493164H56.9119L64.1077 10.3838L71.3036 0.493164H76.2654V23.4942H71.9276V6.80245H71.9288Z"
|
|
31
|
+
fill={theme.palette.text.primary}
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
id="Vector_4"
|
|
35
|
+
d="M87.0751 16.6929V23.462H82.7373V0.459837C86.3187 0.459837 89.9993 0.426758 93.5806 0.426758C104.884 0.426758 104.917 16.5936 93.5806 16.6918H87.0751V16.6929ZM87.0751 12.7168H93.5806C99.1335 12.7168 99.1015 4.56716 93.5806 4.56716H87.0751V12.7168Z"
|
|
36
|
+
fill={theme.palette.text.primary}
|
|
37
|
+
/>
|
|
38
|
+
<path
|
|
39
|
+
id="Subtraction 8"
|
|
40
|
+
d="M126.74 23.9998H121.198L117.929 19.4988L120.779 15.5767L126.844 23.9248L126.74 23.9998ZM109.763 23.9998H104.21L104.106 23.9237L112.635 12.1839L104.106 0.445221L104.164 0.40332H109.788L115.492 8.2541H115.493L118.349 12.1828V12.185L118.353 12.1905L115.497 16.1214L115.492 16.1159L109.764 24.0009L109.763 23.9998ZM120.756 8.82416L117.906 4.90208L121.174 0.40332H126.787L126.844 0.445221L120.756 8.82526V8.82416Z"
|
|
41
|
+
fill={theme.palette.primary.main}
|
|
42
|
+
/>
|
|
43
|
+
</g>
|
|
44
|
+
<g id="Group_2">
|
|
45
|
+
<path
|
|
46
|
+
id="Vector_5"
|
|
47
|
+
d="M128.542 0.382939C128.281 0.382939 128.025 0.460123 127.807 0.605671C127.59 0.751219 127.42 0.957412 127.32 1.19999C127.219 1.44147 127.193 1.70831 127.245 1.96412C127.295 2.22103 127.422 2.457 127.606 2.64114C127.792 2.82638 128.028 2.95208 128.283 3.0028C128.54 3.05353 128.806 3.02816 129.047 2.92782C129.289 2.82748 129.496 2.65768 129.642 2.44046C129.787 2.22324 129.865 1.96743 129.865 1.705C129.865 1.35436 129.726 1.01806 129.477 0.768862C129.229 0.520768 128.893 0.381836 128.541 0.381836L128.542 0.382939ZM128.542 2.76463C128.333 2.76463 128.129 2.70289 127.955 2.58601C127.781 2.47023 127.645 2.30483 127.564 2.11077C127.484 1.91671 127.463 1.705 127.504 1.49881C127.545 1.29372 127.645 1.10517 127.794 0.95631C127.943 0.807454 128.13 0.707114 128.336 0.666316C128.541 0.625519 128.754 0.646469 128.948 0.726961C129.141 0.807454 129.307 0.943078 129.423 1.11729C129.539 1.29151 129.602 1.4955 129.602 1.705C129.602 1.98617 129.491 2.25522 129.292 2.45369C129.094 2.65217 128.825 2.76353 128.544 2.76353L128.542 2.76463Z"
|
|
48
|
+
fill={theme.palette.text.primary}
|
|
49
|
+
/>
|
|
50
|
+
<path
|
|
51
|
+
id="Vector_6"
|
|
52
|
+
d="M129.071 1.44187C129.071 1.33712 129.029 1.23568 128.955 1.1607C128.882 1.08572 128.78 1.04492 128.674 1.04492H128.013V2.36809H128.277V1.83882H128.47L128.823 2.36809H129.141L128.777 1.82338C128.861 1.80133 128.934 1.75171 128.989 1.68225C129.041 1.61388 129.07 1.52898 129.071 1.44187ZM128.674 1.57419H128.277V1.30955H128.674C128.71 1.30955 128.743 1.32389 128.768 1.34815C128.792 1.37351 128.807 1.40659 128.807 1.44187C128.807 1.47716 128.792 1.51023 128.768 1.5356C128.744 1.56096 128.71 1.57419 128.674 1.57419Z"
|
|
53
|
+
fill={theme.palette.text.primary}
|
|
54
|
+
/>
|
|
55
|
+
</g>
|
|
50
56
|
</g>
|
|
51
57
|
</g>
|
|
52
58
|
</g>
|
|
@@ -3,23 +3,25 @@ import { useTheme } from '@mui/material';
|
|
|
3
3
|
export const CampxIcon = ({ size = 16 }) => {
|
|
4
4
|
const theme = useTheme();
|
|
5
5
|
|
|
6
|
-
const color = theme.palette.mode === 'dark' ? 'white' : 'blue';
|
|
7
|
-
|
|
8
6
|
return (
|
|
9
7
|
<svg
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
8
|
width={size}
|
|
12
9
|
height={size}
|
|
13
|
-
viewBox="0
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}}
|
|
10
|
+
viewBox="0 0 28 28"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
13
|
>
|
|
18
|
-
<
|
|
19
|
-
id="
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
<g id="Layer 1">
|
|
15
|
+
<g id="Group">
|
|
16
|
+
<g id="Group 4155">
|
|
17
|
+
<path
|
|
18
|
+
id="Subtraction 8"
|
|
19
|
+
d="M27.3643 27.9987H20.7886L16.9093 22.658L20.2914 18.0042L27.4873 27.9097L27.3643 27.9987ZM7.21966 27.9987H0.630798L0.507812 27.9084L10.6279 13.9784L0.507812 0.0497173L0.575849 0H7.24974L14.0178 9.31545H14.0192L17.4078 13.9771V13.9797L17.4117 13.9863L14.0231 18.6505L14.0178 18.644L7.22096 28L7.21966 27.9987ZM20.2639 9.99187L16.8818 5.33807L20.7598 0H27.4193L27.4873 0.0497173L20.2639 9.99318V9.99187Z"
|
|
20
|
+
fill={theme.palette.primary.main}
|
|
21
|
+
/>
|
|
22
|
+
</g>
|
|
23
|
+
</g>
|
|
24
|
+
</g>
|
|
23
25
|
</svg>
|
|
24
26
|
);
|
|
25
27
|
};
|
|
@@ -2,43 +2,24 @@ import { useTheme } from '@mui/material';
|
|
|
2
2
|
|
|
3
3
|
export const CheckedCheckboxIcon = ({ size = 16 }) => {
|
|
4
4
|
const theme = useTheme();
|
|
5
|
-
const color = theme.palette.
|
|
5
|
+
const color = theme.palette.primary.main;
|
|
6
|
+
const paperBackground = theme.palette.surface.paperBackground;
|
|
6
7
|
return (
|
|
7
8
|
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
9
|
width={size}
|
|
10
10
|
height={size}
|
|
11
|
-
viewBox="0 0
|
|
12
|
-
|
|
13
|
-
fill: color,
|
|
14
|
-
}}
|
|
11
|
+
viewBox="0 0 16 17"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
13
|
>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
fill="#f8f8f8"
|
|
26
|
-
stroke="#323167"
|
|
27
|
-
stroke-width="1"
|
|
28
|
-
>
|
|
29
|
-
<rect width="20" height="20" rx="3" stroke="none" />
|
|
30
|
-
<rect x="0.5" y="0.5" width="19" height="19" rx="2.5" fill="none" />
|
|
31
|
-
</g>
|
|
32
|
-
<rect
|
|
33
|
-
id="Rectangle_23618"
|
|
34
|
-
data-name="Rectangle 23618"
|
|
35
|
-
width="8"
|
|
36
|
-
height="8"
|
|
37
|
-
rx="1"
|
|
38
|
-
transform="translate(136 36.299)"
|
|
39
|
-
fill="#323167"
|
|
40
|
-
/>
|
|
41
|
-
</g>
|
|
14
|
+
<path
|
|
15
|
+
d="M0.5 4.5C0.5 2.567 2.067 1 4 1H12C13.933 1 15.5 2.567 15.5 4.5V12.5C15.5 14.433 13.933 16 12 16H4C2.067 16 0.5 14.433 0.5 12.5V4.5Z"
|
|
16
|
+
fill={paperBackground}
|
|
17
|
+
stroke={color}
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M5 7.5C5 6.39543 5.89543 5.5 7 5.5H9C10.1046 5.5 11 6.39543 11 7.5V9.5C11 10.6046 10.1046 11.5 9 11.5H7C5.89543 11.5 5 10.6046 5 9.5V7.5Z"
|
|
21
|
+
fill={color}
|
|
22
|
+
/>
|
|
42
23
|
</svg>
|
|
43
24
|
);
|
|
44
25
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export const ComfortableIcon = ({ size = 16, color }: any) => {
|
|
4
|
+
const theme = useTheme();
|
|
5
|
+
const updatedColor = color ?? theme.palette.primary.main;
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={size}
|
|
9
|
+
height={size}
|
|
10
|
+
viewBox="0 0 20 21"
|
|
11
|
+
style={{
|
|
12
|
+
stroke: updatedColor,
|
|
13
|
+
fill: updatedColor,
|
|
14
|
+
}}
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
>
|
|
17
|
+
<rect y="0.5" width="20" height="9" />
|
|
18
|
+
<rect y="11.5" width="20" height="9" />
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export const CompactIcon = ({ size = 16, color }: any) => {
|
|
4
|
+
const theme = useTheme();
|
|
5
|
+
const updatedColor = color ?? theme.palette.primary.main;
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={size}
|
|
9
|
+
height={size}
|
|
10
|
+
viewBox="0 0 20 21"
|
|
11
|
+
style={{
|
|
12
|
+
stroke: updatedColor,
|
|
13
|
+
fill: updatedColor,
|
|
14
|
+
}}
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
>
|
|
17
|
+
<rect y="0.5" width="20" height="3.5" />
|
|
18
|
+
<rect y="6" width="20" height="3.5" />
|
|
19
|
+
<rect y="11.5" width="20" height="3.5" />
|
|
20
|
+
<rect y="17" width="20" height="3.5" />
|
|
21
|
+
</svg>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export const ConfigureIcon = ({ size = 16 }) => {
|
|
4
|
+
const theme = useTheme();
|
|
5
|
+
const color = theme.palette.primary.main;
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={size}
|
|
9
|
+
height={size}
|
|
10
|
+
viewBox="0 0 16 16"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
style={{
|
|
14
|
+
fill: color,
|
|
15
|
+
stroke: color,
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
<g clip-path="url(#clip0_2365_6420)">
|
|
19
|
+
<path
|
|
20
|
+
d="M7.99983 15.0868C7.56259 15.0945 7.1308 14.9889 6.7465 14.7802L3.07983 12.6668C1.5865 11.6608 1.49316 11.5088 1.49316 9.92751V6.07351C1.49316 4.49351 1.57983 4.34018 3.0465 3.34684L6.73983 1.21418C7.12603 1.01378 7.55474 0.90918 7.98983 0.90918C8.42492 0.90918 8.85364 1.01378 9.23983 1.21418L12.9198 3.33418C14.4132 4.34084 14.5065 4.49418 14.5065 6.07418V9.92084C14.5065 11.5008 14.4198 11.6542 12.9532 12.6475L9.25983 14.7808C8.87283 14.9887 8.43906 15.0941 7.99983 15.0868ZM7.99983 1.91351C7.74083 1.90476 7.48386 1.96212 7.25316 2.08018L3.5865 4.20018C2.49983 4.93351 2.49983 4.93351 2.49983 6.07351V9.92018C2.49983 11.0602 2.49983 11.0602 3.61316 11.8135L7.25316 13.9135C7.48735 14.0254 7.74361 14.0835 8.00316 14.0835C8.26272 14.0835 8.51898 14.0254 8.75316 13.9135L12.4198 11.7935C13.4998 11.0602 13.4998 11.0602 13.4998 9.92018V6.07351C13.4998 4.93351 13.4998 4.93351 12.3865 4.18018L8.7465 2.08018C8.5158 1.96212 8.25883 1.90476 7.99983 1.91351Z"
|
|
21
|
+
stroke-width="0.4"
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
d="M8 10.5C7.50555 10.5 7.0222 10.3534 6.61108 10.0787C6.19995 9.80397 5.87952 9.41352 5.6903 8.95671C5.50108 8.49989 5.45157 7.99723 5.54804 7.51228C5.6445 7.02732 5.8826 6.58187 6.23223 6.23223C6.58187 5.8826 7.02732 5.6445 7.51228 5.54804C7.99723 5.45157 8.49989 5.50108 8.95671 5.6903C9.41352 5.87952 9.80397 6.19995 10.0787 6.61108C10.3534 7.0222 10.5 7.50555 10.5 8C10.4998 8.66299 10.2364 9.29877 9.76757 9.76757C9.29877 10.2364 8.66299 10.4998 8 10.5ZM8 6.5C7.70333 6.5 7.41332 6.58797 7.16665 6.7528C6.91997 6.91762 6.72771 7.15189 6.61418 7.42598C6.50065 7.70006 6.47095 8.00167 6.52882 8.29264C6.5867 8.58361 6.72956 8.85088 6.93934 9.06066C7.14912 9.27044 7.41639 9.4133 7.70737 9.47118C7.99834 9.52906 8.29994 9.49935 8.57403 9.38582C8.84812 9.27229 9.08238 9.08003 9.24721 8.83336C9.41203 8.58668 9.5 8.29667 9.5 8C9.49947 7.60234 9.34127 7.22112 9.06008 6.93993C8.77889 6.65874 8.39766 6.50053 8 6.5Z"
|
|
25
|
+
stroke-width="0.4"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
<defs>
|
|
29
|
+
<clipPath id="clip0_2365_6420">
|
|
30
|
+
<rect width="16" height="16" fill="white" />
|
|
31
|
+
</clipPath>
|
|
32
|
+
</defs>
|
|
33
|
+
</svg>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export const FilterViewIcon = ({ size = 16 }) => {
|
|
4
|
+
const theme = useTheme();
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={size}
|
|
9
|
+
height={size}
|
|
10
|
+
viewBox="0 0 16 16"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
style={{
|
|
14
|
+
fill: theme.palette.primary.main,
|
|
15
|
+
stroke: theme.palette.primary.main,
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
d="M14.0008 5.16602H2.00022C1.86789 5.16504 1.74127 5.112 1.64775 5.01838C1.55423 4.92476 1.50133 4.79808 1.50049 4.66575C1.50147 4.53351 1.55443 4.40697 1.64794 4.31346C1.74144 4.21996 1.86799 4.16699 2.00022 4.16602H14.0002C14.1325 4.16699 14.259 4.21996 14.3525 4.31346C14.446 4.40697 14.499 4.53351 14.5 4.66575C14.4991 4.79799 14.4463 4.92458 14.3529 5.01819C14.2595 5.1118 14.133 5.1649 14.0008 5.16602Z"
|
|
20
|
+
strokeWidth="0.4"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
d="M12.0002 8.5H4.00022C3.86789 8.49902 3.74127 8.44598 3.64775 8.35236C3.55423 8.25874 3.50133 8.13206 3.50049 7.99973C3.50147 7.8675 3.55443 7.74096 3.64794 7.64745C3.74144 7.55394 3.86799 7.50098 4.00022 7.5H12.0002C12.1326 7.50084 12.2592 7.55374 12.3529 7.64726C12.4465 7.74078 12.4995 7.86741 12.5005 7.99973C12.4997 8.13215 12.4467 8.25891 12.353 8.35255C12.2594 8.44618 12.1326 8.49916 12.0002 8.5Z"
|
|
24
|
+
strokeWidth="0.4"
|
|
25
|
+
/>
|
|
26
|
+
<path
|
|
27
|
+
d="M9.33339 11.834H6.66673C6.5344 11.833 6.40778 11.78 6.31425 11.6863C6.22073 11.5927 6.16783 11.466 6.16699 11.3337C6.16797 11.2015 6.22093 11.0749 6.31444 10.9814C6.40795 10.8879 6.53449 10.835 6.66673 10.834H9.33339C9.46572 10.8348 9.5924 10.8877 9.68602 10.9812C9.77964 11.0748 9.83268 11.2014 9.83366 11.3337C9.83282 11.4661 9.77984 11.5929 9.68621 11.6865C9.59257 11.7802 9.46581 11.8331 9.33339 11.834Z"
|
|
28
|
+
strokeWidth="0.4"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export const StandardIcon = ({ size = 16, color }: any) => {
|
|
4
|
+
const theme = useTheme();
|
|
5
|
+
const updatedColor = color ?? theme.palette.primary.main;
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width={size}
|
|
9
|
+
height={size}
|
|
10
|
+
viewBox="0 0 20 21"
|
|
11
|
+
style={{
|
|
12
|
+
stroke: updatedColor,
|
|
13
|
+
fill: updatedColor,
|
|
14
|
+
}}
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
>
|
|
17
|
+
<rect y="0.5" width="20" height="5.33333" />
|
|
18
|
+
<rect y="7.83398" width="20" height="5.33333" />
|
|
19
|
+
<rect y="15.166" width="20" height="5.33333" />
|
|
20
|
+
</svg>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
@@ -2,27 +2,21 @@ import { useTheme } from '@mui/material';
|
|
|
2
2
|
|
|
3
3
|
export const UnCheckedCheckboxIcon = ({ size = 16 }) => {
|
|
4
4
|
const theme = useTheme();
|
|
5
|
-
const color = theme.palette.
|
|
5
|
+
const color = theme.palette.primary.main;
|
|
6
|
+
|
|
6
7
|
return (
|
|
7
8
|
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
9
|
width={size}
|
|
10
10
|
height={size}
|
|
11
|
-
viewBox="0 0
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}}
|
|
11
|
+
viewBox="0 0 16 17"
|
|
12
|
+
fill="none"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
14
|
>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
stroke-width="1"
|
|
22
|
-
>
|
|
23
|
-
<rect width="20" height="20" rx="3" stroke="none" />
|
|
24
|
-
<rect x="0.5" y="0.5" width="19" height="19" rx="2.5" fill="none" />
|
|
25
|
-
</g>
|
|
15
|
+
<path
|
|
16
|
+
d="M0.5 4.5C0.5 2.567 2.067 1 4 1H12C13.933 1 15.5 2.567 15.5 4.5V12.5C15.5 14.433 13.933 16 12 16H4C2.067 16 0.5 14.433 0.5 12.5V4.5Z"
|
|
17
|
+
fill="white"
|
|
18
|
+
stroke={color}
|
|
19
|
+
/>
|
|
26
20
|
</svg>
|
|
27
21
|
);
|
|
28
22
|
};
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import { useTheme } from '@mui/material';
|
|
2
2
|
|
|
3
|
-
export const VisibilityOffIcon = ({ size = 16 }) => {
|
|
3
|
+
export const VisibilityOffIcon = ({ size = 16, color }: any) => {
|
|
4
4
|
const theme = useTheme();
|
|
5
|
-
const
|
|
5
|
+
const updatedColor = color ?? theme.palette.text.tertiary;
|
|
6
6
|
return (
|
|
7
7
|
<svg
|
|
8
8
|
width={size}
|
|
9
9
|
height={size}
|
|
10
|
-
viewBox="0 0
|
|
10
|
+
viewBox="0 0 30 30"
|
|
11
11
|
style={{
|
|
12
|
-
fill:
|
|
13
|
-
stroke:
|
|
12
|
+
fill: updatedColor,
|
|
13
|
+
stroke: updatedColor,
|
|
14
14
|
}}
|
|
15
15
|
xmlns="http://www.w3.org/2000/svg"
|
|
16
16
|
>
|
|
17
|
-
<
|
|
18
|
-
<path
|
|
19
|
-
d="M14.1191 6.7759C14.5889 6.38566 14.9815 5.98185 15.3013 5.60619C15.5012 5.3713 15.4682 5.022 15.2289 4.82702L15.2289 4.82702C14.9909 4.63308 14.6375 4.66423 14.4386 4.89781L14.4386 4.89781C13.3705 6.15247 11.437 7.7143 8.39892 7.7143C5.36076 7.7143 3.42726 6.15246 2.35914 4.8978L2.35914 4.8978C2.16029 4.66422 1.80691 4.63307 1.56886 4.827L14.1191 6.7759ZM14.1191 6.7759C14.1264 6.78787 14.1333 6.8002 14.1398 6.81287L14.1398 6.81293L15.3724 9.22448L15.3724 9.22448C15.5126 9.49877 15.398 9.83078 15.1206 9.96648L15.1206 9.96649C14.8443 10.1016 14.507 9.99292 14.3675 9.71997L14.4565 9.67445L14.3675 9.71996L13.2046 7.44464C12.4682 7.91518 11.5948 8.32026 10.5743 8.56629L11.1071 11.1722C11.1687 11.4734 10.9687 11.7631 10.6657 11.8224C10.3634 11.8816 10.0661 11.6901 10.0047 11.3896L10.0047 11.3896L9.46705 8.76005C9.12496 8.79822 8.76899 8.8186 8.39892 8.8186C8.02879 8.8186 7.67281 8.79822 7.33066 8.76004L6.79308 11.3896L6.69511 11.3696L6.79308 11.3896C6.73164 11.6901 6.43433 11.8816 6.13201 11.8224C5.82908 11.7631 5.62907 11.4734 5.69064 11.1722L5.78862 11.1922L5.69064 11.1722L6.22341 8.56623C5.38442 8.36396 4.64476 8.05415 3.99891 7.68879L2.37696 9.80438L2.37695 9.80439C2.19035 10.0477 1.83898 10.0963 1.59134 9.91461L1.59132 9.9146C1.34241 9.73191 1.29105 9.38484 1.47868 9.14007L1.47869 9.14006L3.06069 7.0766C2.41767 6.59736 1.89937 6.0794 1.4965 5.60618C1.29654 5.37129 1.32953 5.02199 1.56886 4.827L14.1191 6.7759Z"
|
|
20
|
-
fill="#121212"
|
|
21
|
-
stroke="#121212"
|
|
22
|
-
stroke-width="0.2"
|
|
23
|
-
/>
|
|
24
|
-
</g>
|
|
17
|
+
<path d="M28.1446 11.9344C27.0918 10.1868 25.7638 8.62586 24.2133 7.31338L27.4787 4.00339C27.6912 3.78043 27.8087 3.48182 27.806 3.17187C27.8034 2.86192 27.6807 2.56542 27.4645 2.34624C27.2483 2.12706 26.9558 2.00274 26.65 2.00004C26.3442 1.99735 26.0496 2.1165 25.8297 2.33184L22.2785 5.93619C20.0771 4.6108 17.5604 3.92 15 3.93837C7.77984 3.93837 3.66537 8.94828 1.85537 11.9344C1.29619 12.8511 1 13.9076 1 14.9855C1 16.0633 1.29619 17.1198 1.85537 18.0366C2.9082 19.7841 4.23623 21.3451 5.78675 22.6576L2.52129 25.9676C2.4099 26.0766 2.32106 26.2071 2.25994 26.3513C2.19881 26.4955 2.16664 26.6506 2.1653 26.8076C2.16395 26.9646 2.19346 27.1202 2.2521 27.2655C2.31074 27.4108 2.39733 27.5428 2.50683 27.6538C2.61634 27.7648 2.74655 27.8525 2.88987 27.912C3.0332 27.9714 3.18677 28.0013 3.34162 28C3.49647 27.9986 3.64951 27.966 3.79179 27.904C3.93408 27.8421 4.06276 27.752 4.17035 27.6391L7.72969 24.0312C9.92836 25.3564 12.4421 26.0484 15 26.0326C22.2202 26.0326 26.3346 21.0227 28.1446 18.0366C28.7038 17.1198 29 16.0633 29 14.9855C29 13.9076 28.7038 12.8511 28.1446 11.9344ZM3.84263 16.7989C3.51041 16.254 3.33445 15.626 3.33445 14.9855C3.33445 14.3449 3.51041 13.717 3.84263 13.1721C5.39839 10.6116 8.91459 6.30265 15 6.30265C16.9363 6.29166 18.8454 6.76468 20.5583 7.67985L18.2106 10.0595C17.091 9.306 15.7486 8.96837 14.4113 9.10391C13.074 9.23944 11.8242 9.83978 10.8739 10.8031C9.92354 11.7663 9.33128 13.0332 9.19757 14.3888C9.06386 15.7443 9.39694 17.105 10.1403 18.2399L7.4463 20.9707C6.01778 19.8 4.79876 18.3888 3.84263 16.7989ZM18.4987 14.9855C18.4987 15.926 18.1301 16.8281 17.474 17.4932C16.8178 18.1583 15.9279 18.5319 15 18.5319C14.4805 18.5299 13.9681 18.4086 13.5014 18.1773L18.1488 13.4664C18.3771 13.9395 18.4967 14.4588 18.4987 14.9855ZM11.5013 14.9855C11.5013 14.0449 11.8699 13.1429 12.526 12.4778C13.1822 11.8127 14.0721 11.4391 15 11.4391C15.5195 11.4411 16.0319 11.5623 16.4986 11.7937L11.8512 16.5045C11.6229 16.0314 11.5033 15.5121 11.5013 14.9855ZM26.1574 16.7989C24.6016 19.3594 21.0854 23.6683 15 23.6683C13.0637 23.6793 11.1546 23.2063 9.44173 22.2911L11.7894 19.9115C12.909 20.6649 14.2514 21.0026 15.5887 20.867C16.926 20.7315 18.1758 20.1312 19.1261 19.1679C20.0765 18.2046 20.6687 16.9377 20.8024 15.5822C20.9361 14.2266 20.6031 12.866 19.8597 11.731L22.5537 9.0003C23.9822 10.1709 25.2012 11.5821 26.1574 13.1721C26.4896 13.717 26.6656 14.3449 26.6656 14.9855C26.6656 15.626 26.4896 16.254 26.1574 16.7989Z" />
|
|
25
18
|
</svg>
|
|
26
19
|
);
|
|
27
20
|
};
|
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
import { useTheme } from '@mui/material';
|
|
2
2
|
|
|
3
|
-
export const VisibilityIcon = ({ size = 16 }) => {
|
|
3
|
+
export const VisibilityIcon = ({ size = 16, color }: any) => {
|
|
4
4
|
const theme = useTheme();
|
|
5
|
-
const
|
|
5
|
+
const updatedColor = color ?? theme.palette.text.tertiary;
|
|
6
|
+
|
|
6
7
|
return (
|
|
7
8
|
<svg
|
|
8
9
|
width={size}
|
|
9
10
|
height={size}
|
|
10
|
-
viewBox="0 0
|
|
11
|
+
viewBox="0 0 30 30"
|
|
11
12
|
style={{
|
|
12
|
-
fill:
|
|
13
|
-
stroke:
|
|
13
|
+
fill: updatedColor,
|
|
14
|
+
stroke: updatedColor,
|
|
14
15
|
}}
|
|
15
16
|
xmlns="http://www.w3.org/2000/svg"
|
|
16
17
|
>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
d="M1.81217 10.0492L1.81206 10.0492L1.81477 10.0535C3.45532 12.6219 5.8504 14.113 8.39878 14.113C10.9408 14.113 13.3359 12.6218 14.9764 10.0535L14.9765 10.0536L14.979 10.0492C15.3349 9.42477 15.5221 8.71841 15.5221 7.99966C15.5221 7.28091 15.3349 6.57455 14.979 5.95014L14.9791 5.95007L14.9764 5.94583C13.3359 3.37748 10.9403 1.88633 8.39878 1.88633C5.85728 1.88633 3.46174 3.37748 1.81487 5.94568L1.81475 5.94561L1.81217 5.95014C1.45621 6.57455 1.26902 7.28091 1.26902 7.99966C1.26902 8.71841 1.45621 9.42477 1.81217 10.0492ZM2.83152 6.5904C4.25818 4.35317 6.28873 3.08633 8.39878 3.08633C10.5088 3.08633 12.5394 4.35317 13.966 6.59039C14.2029 7.02223 14.3271 7.50683 14.3271 7.99939C14.3271 8.49196 14.2029 8.97656 13.966 9.4084C12.5394 11.6456 10.5088 12.9125 8.39878 12.9125C6.28872 12.9125 4.25817 11.6461 2.83153 9.4084C2.59466 8.97656 2.47048 8.49196 2.47048 7.99939C2.47048 7.50683 2.59466 7.02223 2.83152 6.5904Z"
|
|
26
|
-
fill="#121212"
|
|
27
|
-
stroke="#121212"
|
|
28
|
-
stroke-width="0.2"
|
|
29
|
-
/>
|
|
30
|
-
</g>
|
|
18
|
+
<path
|
|
19
|
+
d="M14.9999 20.4119C13.9295 20.4119 12.8831 20.0945 11.9931 19.4998C11.1031 18.9051 10.4095 18.0599 9.99986 17.071C9.59024 16.0821 9.48306 14.9939 9.69188 13.9441C9.90071 12.8942 10.4161 11.9299 11.173 11.173C11.9299 10.4161 12.8942 9.90071 13.9441 9.69188C14.9939 9.48306 16.0821 9.59024 17.071 9.99986C18.0599 10.4095 18.9051 11.1031 19.4998 11.9931C20.0945 12.8831 20.4119 13.9295 20.4119 14.9999C20.4111 16.435 19.8407 17.8111 18.8259 18.8259C17.8111 19.8407 16.435 20.4111 14.9999 20.4119ZM14.9999 11.4619C14.3004 11.4621 13.6166 11.6697 13.0351 12.0585C12.4536 12.4472 12.0004 12.9997 11.7328 13.646C11.4653 14.2924 11.3954 15.0035 11.532 15.6895C11.6686 16.3756 12.0055 17.0057 12.5002 17.5003C12.9949 17.9948 13.6251 18.3316 14.3112 18.468C14.9973 18.6044 15.7084 18.5343 16.3547 18.2666C17.0009 17.9988 17.5533 17.5455 17.9419 16.9638C18.3305 16.3822 18.5379 15.6984 18.5379 14.9989C18.5366 14.0611 18.1634 13.162 17.5001 12.499C16.8369 11.8359 15.9377 11.463 14.9999 11.4619Z"
|
|
20
|
+
stroke-width="0.4"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
d="M14.9992 26.2746C10.2992 26.2746 5.86216 23.5246 2.81216 18.7496C2.16087 17.6071 1.81836 16.3147 1.81836 14.9996C1.81836 13.6845 2.16087 12.3921 2.81216 11.2496C5.87416 6.47461 10.3122 3.72461 14.9992 3.72461C19.6862 3.72461 24.1242 6.47461 27.1742 11.2496C27.8255 12.3921 28.168 13.6845 28.168 14.9996C28.168 16.3147 27.8255 17.6071 27.1742 18.7496C24.1242 23.5246 19.6872 26.2746 14.9992 26.2746ZM14.9992 5.59961C10.9612 5.59961 7.09916 8.02461 4.39916 12.2616C3.93794 13.1003 3.6961 14.042 3.6961 14.9991C3.6961 15.9563 3.93794 16.8979 4.39916 17.7366C7.09916 21.9746 10.9612 24.3986 14.9992 24.3986C19.0372 24.3986 22.8992 21.9736 25.5992 17.7366C26.0604 16.8979 26.3022 15.9563 26.3022 14.9991C26.3022 14.042 26.0604 13.1003 25.5992 12.2616C22.8992 8.02461 19.0372 5.59961 14.9992 5.59961Z"
|
|
24
|
+
stroke-width="0.4"
|
|
25
|
+
/>
|
|
31
26
|
</svg>
|
|
32
27
|
);
|
|
33
28
|
};
|
|
@@ -15,8 +15,11 @@ import { CheckedCheckboxIcon } from './IconComponents/CheckedCheckBoxIcon';
|
|
|
15
15
|
import { CheckedRadioIcon } from './IconComponents/CheckedRadioIcon';
|
|
16
16
|
import { ClogWheelIcon } from './IconComponents/ClogWheelIcon';
|
|
17
17
|
import { CollapseIcon } from './IconComponents/CollapseIcon';
|
|
18
|
+
import { ComfortableIcon } from './IconComponents/Comfortable';
|
|
18
19
|
import { CommutexIcon } from './IconComponents/CommutexIcon';
|
|
20
|
+
import { CompactIcon } from './IconComponents/CompactIcon';
|
|
19
21
|
import { CompletedStateIcon } from './IconComponents/CompletedStateIcon';
|
|
22
|
+
import { ConfigureIcon } from './IconComponents/ConfigureIcon';
|
|
20
23
|
import { CrossIcon } from './IconComponents/CrossIcon';
|
|
21
24
|
import { CrossIcon2 } from './IconComponents/CrossIcon2';
|
|
22
25
|
import { DashBoardIcon } from './IconComponents/DashBoardIcon';
|
|
@@ -32,6 +35,7 @@ import { ExcelIcon } from './IconComponents/ExcelIcon';
|
|
|
32
35
|
import { ExpandIcon } from './IconComponents/ExpandIcon';
|
|
33
36
|
import { ExportIcon } from './IconComponents/ExportIcon';
|
|
34
37
|
import { FilterIcon } from './IconComponents/FilterIcon';
|
|
38
|
+
import { FilterViewIcon } from './IconComponents/FilterViewIcon';
|
|
35
39
|
import { HelpIcon } from './IconComponents/HelpIcon';
|
|
36
40
|
import { HomeIcon } from './IconComponents/HomeIcon';
|
|
37
41
|
import { HostelxIcon } from './IconComponents/HostelxIcon';
|
|
@@ -56,6 +60,7 @@ import { RightIcon } from './IconComponents/RightIcon';
|
|
|
56
60
|
import { SaveIcon } from './IconComponents/SaveIcon';
|
|
57
61
|
import { SearchIcon } from './IconComponents/SearchIcon';
|
|
58
62
|
import { ShareIcon } from './IconComponents/ShareIcon';
|
|
63
|
+
import { StandardIcon } from './IconComponents/StandardIcon';
|
|
59
64
|
import { SuccessFilledIcon } from './IconComponents/SuccessFilledIcon';
|
|
60
65
|
import { TicketsIcon } from './IconComponents/TicketsIcon';
|
|
61
66
|
import { UmsIcon } from './IconComponents/UmsIcon';
|
|
@@ -95,6 +100,11 @@ export const Icons = {
|
|
|
95
100
|
AttachmentIcon,
|
|
96
101
|
PdfIcon,
|
|
97
102
|
DocumentIcon,
|
|
103
|
+
FilterViewIcon,
|
|
104
|
+
ConfigureIcon,
|
|
105
|
+
ComfortableIcon,
|
|
106
|
+
CompactIcon,
|
|
107
|
+
StandardIcon,
|
|
98
108
|
LogoutIcon,
|
|
99
109
|
AccordionArrow,
|
|
100
110
|
TicketsIcon,
|
|
@@ -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,13 +17,13 @@ import {
|
|
|
18
17
|
StyledHeader,
|
|
19
18
|
StyledIcon,
|
|
20
19
|
StyledImage,
|
|
21
|
-
StyledStack,
|
|
22
20
|
StyledStatusText,
|
|
23
21
|
} from './styles';
|
|
24
22
|
|
|
25
23
|
export interface CardProps {
|
|
26
24
|
title: string;
|
|
27
25
|
caption?: string;
|
|
26
|
+
children?: ReactNode;
|
|
28
27
|
footer?: {
|
|
29
28
|
buttonText?: string | ReactNode;
|
|
30
29
|
onClick: () => void;
|
|
@@ -45,6 +44,7 @@ export interface CardProps {
|
|
|
45
44
|
};
|
|
46
45
|
status?: string;
|
|
47
46
|
imageSrc?: string;
|
|
47
|
+
titleImgUrl?: string;
|
|
48
48
|
checkBox?: boolean;
|
|
49
49
|
moreOptions?: boolean;
|
|
50
50
|
menu?: Array<ReactNode>;
|
|
@@ -56,6 +56,7 @@ export interface CardProps {
|
|
|
56
56
|
|
|
57
57
|
export const Card = ({
|
|
58
58
|
title,
|
|
59
|
+
titleImgUrl,
|
|
59
60
|
caption,
|
|
60
61
|
status,
|
|
61
62
|
footer,
|
|
@@ -73,6 +74,7 @@ export const Card = ({
|
|
|
73
74
|
variant: 'caption',
|
|
74
75
|
},
|
|
75
76
|
icon,
|
|
77
|
+
children,
|
|
76
78
|
menu = [],
|
|
77
79
|
}: CardProps) => {
|
|
78
80
|
const handleClick = (e: any) => {
|
|
@@ -81,13 +83,19 @@ export const Card = ({
|
|
|
81
83
|
|
|
82
84
|
return (
|
|
83
85
|
<MuiCard sx={cardSx}>
|
|
86
|
+
{children}
|
|
84
87
|
{imageSrc && <StyledImage src={imageSrc} alt="Card image" />}
|
|
85
88
|
<StyledHeader sx={headerSx}>
|
|
86
89
|
<Stack gap={'8px'} flexDirection={'row'}>
|
|
87
|
-
{
|
|
90
|
+
{/* check box onclick functionality need to add */}
|
|
91
|
+
{/* {checkBox && (
|
|
88
92
|
<StyledStack>
|
|
89
93
|
<Checkbox />
|
|
90
94
|
</StyledStack>
|
|
95
|
+
)} */}
|
|
96
|
+
|
|
97
|
+
{titleImgUrl && (
|
|
98
|
+
<img src={titleImgUrl} alt={title} height={'50px'} width={'50px'} />
|
|
91
99
|
)}
|
|
92
100
|
|
|
93
101
|
<Stack justifyContent={'center'}>
|