@campxdev/react-blueprint 1.1.8 → 1.1.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.
Files changed (209) hide show
  1. package/package.json +2 -2
  2. package/src/AppContent.tsx +6 -6
  3. package/src/assets/fonts/heebo/index.ts +2 -2
  4. package/src/assets/fonts/poppins/index.ts +5 -5
  5. package/src/assets/images/gif/index.ts +4 -0
  6. package/src/assets/images/gif/upload-file.gif +0 -0
  7. package/src/assets/images/gif/uploading-file.gif +0 -0
  8. package/src/components/Assets/ErrorPages/InternalServerError.tsx +7 -7
  9. package/src/components/Assets/ErrorPages/NoInternetConnection.tsx +7 -7
  10. package/src/components/Assets/ErrorPages/NoItemFound.tsx +7 -7
  11. package/src/components/Assets/ErrorPages/PageNotFound.tsx +5 -5
  12. package/src/components/Assets/ErrorPages/UnAuthorized.tsx +6 -6
  13. package/src/components/Assets/ErrorPages/styles.tsx +15 -15
  14. package/src/components/Assets/Icons/IconComponents/AcademicIcon.tsx +7 -1
  15. package/src/components/Assets/Icons/IconComponents/ActiveDevicesIcon.tsx +1 -1
  16. package/src/components/Assets/Icons/IconComponents/AdminIcon.tsx +1 -1
  17. package/src/components/Assets/Icons/IconComponents/AdministratorIcon.tsx +1 -1
  18. package/src/components/Assets/Icons/IconComponents/AlertFilledIcon.tsx +1 -1
  19. package/src/components/Assets/Icons/IconComponents/ArrowBackIcon.tsx +1 -1
  20. package/src/components/Assets/Icons/IconComponents/AttachmentIcon.tsx +32 -0
  21. package/src/components/Assets/Icons/IconComponents/BulbIcon.tsx +1 -1
  22. package/src/components/Assets/Icons/IconComponents/CampxFullLogoIcon.tsx +3 -3
  23. package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +2 -2
  24. package/src/components/Assets/Icons/IconComponents/CareerIcon.tsx +1 -1
  25. package/src/components/Assets/Icons/IconComponents/CheckedCheckBoxIcon.tsx +1 -1
  26. package/src/components/Assets/Icons/IconComponents/CheckedRadioIcon.tsx +1 -1
  27. package/src/components/Assets/Icons/IconComponents/ClogWheelIcon.tsx +1 -1
  28. package/src/components/Assets/Icons/IconComponents/CollapseIcon.tsx +1 -1
  29. package/src/components/Assets/Icons/IconComponents/CrossIcon.tsx +1 -1
  30. package/src/components/Assets/Icons/IconComponents/DashBoardIcon.tsx +1 -1
  31. package/src/components/Assets/Icons/IconComponents/DeleteIcon.tsx +1 -1
  32. package/src/components/Assets/Icons/IconComponents/DeviceIcon.tsx +1 -1
  33. package/src/components/Assets/Icons/IconComponents/DocumentIcon.tsx +52 -0
  34. package/src/components/Assets/Icons/IconComponents/DownloadIcon.tsx +52 -0
  35. package/src/components/Assets/Icons/IconComponents/EditIcon.tsx +1 -1
  36. package/src/components/Assets/Icons/IconComponents/ExamResultIcon.tsx +1 -1
  37. package/src/components/Assets/Icons/IconComponents/ExcelIcon.tsx +56 -0
  38. package/src/components/Assets/Icons/IconComponents/ExpandIcon.tsx +1 -1
  39. package/src/components/Assets/Icons/IconComponents/ExportIcon.tsx +1 -1
  40. package/src/components/Assets/Icons/IconComponents/FilterIcon.tsx +1 -1
  41. package/src/components/Assets/Icons/IconComponents/HelpIcon.tsx +1 -1
  42. package/src/components/Assets/Icons/IconComponents/HomeIcon.tsx +1 -1
  43. package/src/components/Assets/Icons/IconComponents/ImageIcon.tsx +44 -0
  44. package/src/components/Assets/Icons/IconComponents/InfoFilledIcon.tsx +1 -1
  45. package/src/components/Assets/Icons/IconComponents/InfoIcon.tsx +1 -1
  46. package/src/components/Assets/Icons/IconComponents/InstitutionsIcon.tsx +1 -1
  47. package/src/components/Assets/Icons/IconComponents/LeftIcon.tsx +1 -1
  48. package/src/components/Assets/Icons/IconComponents/LocationIcon.tsx +1 -1
  49. package/src/components/Assets/Icons/IconComponents/LogoutIcon.tsx +2 -2
  50. package/src/components/Assets/Icons/IconComponents/NavigationIcon.tsx +1 -1
  51. package/src/components/Assets/Icons/IconComponents/NoteIcon.tsx +7 -1
  52. package/src/components/Assets/Icons/IconComponents/NotificationIcon.tsx +1 -1
  53. package/src/components/Assets/Icons/IconComponents/PdfIcon.tsx +52 -0
  54. package/src/components/Assets/Icons/IconComponents/ProductFeaturesIcon.tsx +1 -1
  55. package/src/components/Assets/Icons/IconComponents/ProfileIcon.tsx +1 -1
  56. package/src/components/Assets/Icons/IconComponents/RedirectIcon.tsx +1 -1
  57. package/src/components/Assets/Icons/IconComponents/RedoIcon.tsx +1 -1
  58. package/src/components/Assets/Icons/IconComponents/RightIcon.tsx +1 -1
  59. package/src/components/Assets/Icons/IconComponents/SaveIcon.tsx +39 -39
  60. package/src/components/Assets/Icons/IconComponents/SearchIcon.tsx +1 -1
  61. package/src/components/Assets/Icons/IconComponents/ShareIcon.tsx +1 -1
  62. package/src/components/Assets/Icons/IconComponents/SuccessFilledIcon.tsx +1 -1
  63. package/src/components/Assets/Icons/IconComponents/TicketsIcon.tsx +1 -1
  64. package/src/components/Assets/Icons/IconComponents/UncheckCheckBoxIcon.tsx +1 -1
  65. package/src/components/Assets/Icons/IconComponents/UncheckedRadioIcon.tsx +1 -1
  66. package/src/components/Assets/Icons/IconComponents/ViewIcon.tsx +1 -1
  67. package/src/components/Assets/Icons/IconComponents/VisibiityOffIcon.tsx +1 -1
  68. package/src/components/Assets/Icons/IconComponents/VisibilityIcon.tsx +1 -1
  69. package/src/components/Assets/Icons/IconComponents/WarningFilledIcon.tsx +1 -1
  70. package/src/components/Assets/Icons/Icons.tsx +12 -0
  71. package/src/components/Assets/export.ts +6 -6
  72. package/src/components/Charts/BarChart/BarChart.tsx +17 -19
  73. package/src/components/Charts/LineChart/LineChart.tsx +12 -14
  74. package/src/components/Charts/PieChart/PieChart.tsx +8 -8
  75. package/src/components/Charts/TreeMap/TreeMap.tsx +15 -15
  76. package/src/components/Charts/export.ts +4 -4
  77. package/src/components/Charts/types/types.ts +3 -3
  78. package/src/components/DataDisplay/Accordion/Accordion.tsx +2 -0
  79. package/src/components/DataDisplay/Avatar/Avatar.tsx +14 -3
  80. package/src/components/DataDisplay/Card/Card.tsx +18 -18
  81. package/src/components/DataDisplay/Card/styles.tsx +24 -25
  82. package/src/components/DataDisplay/Chips/Chips.tsx +14 -14
  83. package/src/components/DataDisplay/DataTable/DataTable.tsx +4 -1
  84. package/src/components/DataDisplay/DataTable/TablePagination.tsx +10 -10
  85. package/src/components/DataDisplay/SidePanel/SidePanel.tsx +1 -1
  86. package/src/components/DataDisplay/Typography/Typography.tsx +1 -1
  87. package/src/components/Feedback/Alert/Alert.tsx +8 -8
  88. package/src/components/Feedback/Snackbar/Snackbar.tsx +27 -27
  89. package/src/components/Feedback/Spinner/Spinner.tsx +2 -2
  90. package/src/components/Feedback/Tooltip/Tooltip.tsx +6 -6
  91. package/src/components/Feedback/Tutorial/Tutorial.tsx +45 -45
  92. package/src/components/Feedback/export.ts +5 -0
  93. package/src/components/Image/Image.tsx +8 -8
  94. package/src/components/Input/Button/Button.tsx +2 -2
  95. package/src/components/Input/DatePicker/DatePicker.tsx +18 -4
  96. package/src/components/Input/FormActions/FormActions.tsx +15 -4
  97. package/src/components/Input/FormControlWrapper/FormControlWrapper.tsx +20 -5
  98. package/src/components/Input/HelpButton/HelpButton.stories.tsx +9 -9
  99. package/src/components/Input/HelpButton/HelpButton.tsx +4 -4
  100. package/src/components/Input/IconButtons/IconButtons/DeleteButton.tsx +2 -2
  101. package/src/components/Input/IconButtons/IconButtons/EditButton.tsx +2 -2
  102. package/src/components/Input/IconButtons/IconButtons/RedirectButton.tsx +2 -2
  103. package/src/components/Input/IconButtons/IconButtons/ViewButton.tsx +2 -2
  104. package/src/components/Input/LabelWrapper/LabelWrapper.tsx +5 -5
  105. package/src/components/Input/MultiCheckBox/MultiCheckBox.tsx +6 -6
  106. package/src/components/Input/OtpInput/OtpInput.tsx +17 -17
  107. package/src/components/Input/PasswordField/PasswordField.tsx +8 -8
  108. package/src/components/Input/RadioGroup/RadioGroup.tsx +5 -5
  109. package/src/components/Input/SearchBar/SearchBar.tsx +20 -20
  110. package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +5 -5
  111. package/src/components/Input/SingleSelect/SingleSelect.tsx +39 -6
  112. package/src/components/Input/Switch/Switch.tsx +1 -1
  113. package/src/components/Input/TextField/TextField.tsx +3 -3
  114. package/src/components/Input/TimePicker/TimePicker.tsx +18 -4
  115. package/src/components/Input/components/FetchingOptionsLoader.tsx +3 -3
  116. package/src/components/Input/styles.tsx +6 -6
  117. package/src/components/Layout/AppHeader/AppHeader.tsx +10 -12
  118. package/src/components/Layout/AppHeader/AppHeaderActions/CogWheelMenu.tsx +5 -5
  119. package/src/components/Layout/AppHeader/AppHeaderActions/HeaderActions.tsx +6 -6
  120. package/src/components/Layout/AppHeader/AppHeaderActions/SwitchInstitution.tsx +37 -37
  121. package/src/components/Layout/AppHeader/AppHeaderActions/UserBox.tsx +28 -28
  122. package/src/components/Layout/AppHeader/styles/styles.tsx +24 -24
  123. package/src/components/Layout/PageHeader/PageHeader.tsx +8 -3
  124. package/src/components/Layout/TabsLayout/Tabs.tsx +16 -16
  125. package/src/components/Layout/TabsLayout/TabsLayout.tsx +6 -6
  126. package/src/components/Layout/export.ts +4 -0
  127. package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +35 -23
  128. package/src/components/Navigation/ConfirmDialog/ConfirmDialog.tsx +43 -48
  129. package/src/components/Navigation/Dialog/Dialog.tsx +33 -0
  130. package/src/components/Navigation/DialogButton/DialogButton.tsx +17 -81
  131. package/src/components/Navigation/DropDownMenu/DropDownButton.tsx +4 -4
  132. package/src/components/Navigation/DropDownMenu/DropDownIcon.tsx +4 -4
  133. package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +8 -8
  134. package/src/components/Navigation/DropDownMenu/DropdownMenuItem.tsx +3 -3
  135. package/src/components/Navigation/DropDownMenu/styles.tsx +13 -13
  136. package/src/components/Navigation/PreviewFiles/PreviewFiles.tsx +165 -0
  137. package/src/components/Navigation/Sidebar/Components.tsx +18 -18
  138. package/src/components/Navigation/Sidebar/MenuItem.tsx +1 -1
  139. package/src/components/Navigation/Sidebar/SubMenuItem.tsx +2 -1
  140. package/src/components/Navigation/Sidebar/interfaces.ts +1 -1
  141. package/src/components/Navigation/Sidebar/styles.tsx +64 -64
  142. package/src/components/Navigation/Stepper/Stepper.tsx +5 -5
  143. package/src/components/Navigation/Stepper/StepperComponents.tsx +15 -15
  144. package/src/components/Navigation/TabsContainer/TabsContainer.tsx +4 -4
  145. package/src/components/Navigation/UploadDialog/LoadingUploadDialogContainer.tsx +23 -0
  146. package/src/components/Navigation/UploadDialog/Styles.tsx +34 -0
  147. package/src/components/Navigation/UploadDialog/UploadDialog.tsx +143 -0
  148. package/src/components/Navigation/UploadDialog/UploadDialogContainer.tsx +82 -0
  149. package/src/components/Navigation/{exports.ts → export.ts} +4 -0
  150. package/src/components/export.ts +7 -7
  151. package/src/index.tsx +2 -2
  152. package/src/store/activeStore.ts +1 -1
  153. package/src/stories/Assets/Icons.stories.tsx +6 -6
  154. package/src/stories/Charts/BarChart.stories.tsx +56 -56
  155. package/src/stories/Charts/LineChart.stories.tsx +49 -49
  156. package/src/stories/Charts/PieChart.stories.tsx +53 -53
  157. package/src/stories/Charts/Treemap.stories.tsx +122 -122
  158. package/src/stories/DataDisplay/AccordionGroup.stories.tsx +11 -12
  159. package/src/stories/DataDisplay/Card.stories.tsx +34 -34
  160. package/src/stories/DataDisplay/Chips.stories.tsx +10 -10
  161. package/src/stories/DataDisplay/CircularAvatar.stories.tsx +6 -6
  162. package/src/stories/DataDisplay/DataTable.stories.tsx +32 -32
  163. package/src/stories/DataDisplay/SidePanel.stories.tsx +14 -14
  164. package/src/stories/DataDisplay/SquareAvatar.stories.tsx +15 -15
  165. package/src/stories/DesignSystem/colorTokens.stories.tsx +10 -10
  166. package/src/stories/DesignSystem/typography.stories.tsx +19 -19
  167. package/src/stories/Feedback/Alert.stories.tsx +9 -9
  168. package/src/stories/Feedback/Snackbar.stories.tsx +11 -11
  169. package/src/stories/Feedback/Spinner.stories.tsx +4 -4
  170. package/src/stories/Feedback/Tooltip.stories.tsx +5 -5
  171. package/src/stories/Feedback/Tutorial.stories.tsx +13 -13
  172. package/src/stories/Input/Button.stories.tsx +26 -26
  173. package/src/stories/Input/DatePicker.stories.tsx +48 -8
  174. package/src/stories/Input/IconButtons.stories.tsx +6 -6
  175. package/src/stories/Input/MultiCheckBox.stories.tsx +15 -15
  176. package/src/stories/Input/OtpInput.stories.tsx +5 -5
  177. package/src/stories/Input/Password.stories.tsx +7 -7
  178. package/src/stories/Input/RadioGroup.stories.tsx +14 -14
  179. package/src/stories/Input/SearchBar.stories.tsx +10 -10
  180. package/src/stories/Input/SingleCheckBox.stories.tsx +7 -7
  181. package/src/stories/Input/SingleSelect.stories.tsx +47 -47
  182. package/src/stories/Input/Switch.stories.tsx +22 -22
  183. package/src/stories/Input/TextField.stories.tsx +47 -47
  184. package/src/stories/Input/TimePicker.stories.tsx +44 -7
  185. package/src/stories/Layout/AppHeader.stories.tsx +13 -13
  186. package/src/stories/Layout/TabsLayout.stories.tsx +24 -24
  187. package/src/stories/Navigation/ConfirmDialog.stories.tsx +12 -2
  188. package/src/stories/Navigation/DialogButton.stories.tsx +38 -45
  189. package/src/stories/Navigation/DropDownMenu.stories.tsx +24 -24
  190. package/src/stories/Navigation/FloatingSidebar.stories.tsx +23 -23
  191. package/src/stories/Navigation/ImportDialog.stories.tsx +45 -0
  192. package/src/stories/Navigation/PreviewFiles.stories.tsx +80 -0
  193. package/src/stories/Navigation/Stepper.stories.tsx +15 -15
  194. package/src/stories/Navigation/TabsContainer.stories.tsx +11 -11
  195. package/src/themes/MuiThemeProvider.tsx +3 -3
  196. package/src/themes/colorTokens/colorPalette.tsx +38 -38
  197. package/src/themes/colorTokens/darkColorTokens.tsx +1 -1
  198. package/src/themes/colorTokens/lightColorTokens.ts +1 -1
  199. package/src/themes/commonTheme.ts +13 -3
  200. package/src/themes/customCssBaseline.ts +2 -2
  201. package/src/themes/darkTheme.ts +4 -4
  202. package/src/themes/export.ts +3 -3
  203. package/src/themes/lightTheme.ts +4 -4
  204. package/src/utils/constants.ts +5 -5
  205. package/src/utils/logout.ts +8 -8
  206. package/src/components/Feedback/exports.ts +0 -5
  207. package/src/components/Layout/exports.ts +0 -4
  208. package/src/stories/Navigation/Breadcrumbs.stories.tsx +0 -34
  209. package/src/utils/campxAxios.ts +0 -18
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
7
- "@campxdev/campx-web-utils": "0.1.18",
7
+ "@campxdev/campx-web-utils": "0.2.0",
8
8
  "@emotion/react": "^11.11.4",
9
9
  "@emotion/styled": "^11.11.5",
10
10
  "@mui/icons-material": "^5.15.20",
@@ -1,9 +1,9 @@
1
- import { useQuery } from "react-query";
2
- import { AppHeader } from "./components/export";
3
- import { campxAxios } from "./utils/campxAxios";
1
+ import { axios } from '@campxdev/campx-web-utils';
2
+ import { useQuery } from 'react-query';
3
+ import { AppHeader } from './components/export';
4
4
 
5
5
  const fetchClubRequests = () => {
6
- return campxAxios.get(`/square/clubs`).then((res) => res.data);
6
+ return axios.get(`/square/clubs`).then((res) => res.data);
7
7
  };
8
8
 
9
9
  function AppContent() {
@@ -12,7 +12,7 @@ function AppContent() {
12
12
  isLoading,
13
13
  error,
14
14
  refetch,
15
- } = useQuery("club-requests", fetchClubRequests);
15
+ } = useQuery('club-requests', fetchClubRequests);
16
16
 
17
17
  if (isLoading) {
18
18
  return <div>Loading...</div>;
@@ -20,7 +20,7 @@ function AppContent() {
20
20
 
21
21
  if (error) {
22
22
  // No need to handle the error locally, it will be caught by ErrorBoundary
23
- console.error("Error fetching club requests:", error);
23
+ console.error('Error fetching club requests:', error);
24
24
  throw error; // Re-throw the error to be caught by the ErrorBoundary
25
25
  }
26
26
 
@@ -1,3 +1,3 @@
1
- const heeboSemiBold = require("./Heebo-SemiBold.ttf");
2
- const heeboMedium = require("./Heebo-Medium.ttf");
1
+ const heeboSemiBold = require('./Heebo-SemiBold.ttf');
2
+ const heeboMedium = require('./Heebo-Medium.ttf');
3
3
  export { heeboMedium, heeboSemiBold };
@@ -1,9 +1,9 @@
1
1
  //semibold, medium, light, regular
2
- const semiboldPoppins = require("./Poppins-SemiBold.ttf");
3
- const mediumPoppins = require("./Poppins-Medium.ttf");
4
- const lightPoppins = require("./Poppins-Light.ttf");
5
- const regularPoppins = require("./Poppins-Regular.ttf");
6
- const boldPoppins = require("./Poppins-Bold.ttf");
2
+ const semiboldPoppins = require('./Poppins-SemiBold.ttf');
3
+ const mediumPoppins = require('./Poppins-Medium.ttf');
4
+ const lightPoppins = require('./Poppins-Light.ttf');
5
+ const regularPoppins = require('./Poppins-Regular.ttf');
6
+ const boldPoppins = require('./Poppins-Bold.ttf');
7
7
 
8
8
  export {
9
9
  boldPoppins,
@@ -1,7 +1,11 @@
1
1
  import ConfirmationAlert from '../gif/confirmation-alert.gif';
2
2
  import DeleteConfirmationAlert from '../gif/delete-confirmation-alert.gif';
3
+ import UploadFile from '../gif/upload-file.gif';
4
+ import UploadingFile from '../gif/uploading-file.gif';
3
5
 
4
6
  export const AnimatedGifs = {
5
7
  ConfirmationAlert,
6
8
  DeleteConfirmationAlert,
9
+ UploadFile,
10
+ UploadingFile,
7
11
  };
@@ -1,7 +1,7 @@
1
- import { internalServerError } from "../../../assets/images/svg";
2
- import { Typography } from "../../DataDisplay/Typography/Typography";
3
- import { Button } from "../../export";
4
- import { StyledBox } from "./styles";
1
+ import { internalServerError } from '../../../assets/images/svg';
2
+ import { Typography } from '../../DataDisplay/Typography/Typography';
3
+ import { Button } from '../../export';
4
+ import { StyledBox } from './styles';
5
5
 
6
6
  export const InternalServerError = ({ resetBoundary }: any) => {
7
7
  return (
@@ -10,8 +10,8 @@ export const InternalServerError = ({ resetBoundary }: any) => {
10
10
  <img
11
11
  src={internalServerError}
12
12
  alt="page not found"
13
- width={"350px"}
14
- style={{ margin: "20px" }}
13
+ width={'350px'}
14
+ style={{ margin: '20px' }}
15
15
  />
16
16
  <Typography variant="subtitle1">Internal Server Error</Typography>
17
17
  <Typography variant="body2">
@@ -19,7 +19,7 @@ export const InternalServerError = ({ resetBoundary }: any) => {
19
19
  </Typography>
20
20
  <Typography variant="body2">Please try again later.</Typography>
21
21
  <Button
22
- sx={{ marginTop: "20px" }}
22
+ sx={{ marginTop: '20px' }}
23
23
  variant="contained"
24
24
  onClick={() => resetBoundary()}
25
25
  >
@@ -1,7 +1,7 @@
1
- import { noConnection } from "../../../assets/images/svg";
2
- import { Typography } from "../../DataDisplay/Typography/Typography";
3
- import { Button } from "../../export";
4
- import { StyledBox } from "./styles";
1
+ import { noConnection } from '../../../assets/images/svg';
2
+ import { Typography } from '../../DataDisplay/Typography/Typography';
3
+ import { Button } from '../../export';
4
+ import { StyledBox } from './styles';
5
5
 
6
6
  export const NoInterneConnection = ({ resetBoundary }: any) => {
7
7
  return (
@@ -10,8 +10,8 @@ export const NoInterneConnection = ({ resetBoundary }: any) => {
10
10
  <img
11
11
  src={noConnection}
12
12
  alt="page not found"
13
- width={"350px"}
14
- style={{ margin: "20px" }}
13
+ width={'350px'}
14
+ style={{ margin: '20px' }}
15
15
  />
16
16
  <Typography variant="subtitle1">No Internet Connection</Typography>
17
17
  <Typography variant="body2">
@@ -21,7 +21,7 @@ export const NoInterneConnection = ({ resetBoundary }: any) => {
21
21
  internet connection and try again.
22
22
  </Typography>
23
23
  <Button
24
- sx={{ marginTop: "20px" }}
24
+ sx={{ marginTop: '20px' }}
25
25
  variant="contained"
26
26
  onClick={() => resetBoundary()}
27
27
  >
@@ -1,7 +1,7 @@
1
- import { emptyListImage } from "../../../assets/images/svg";
2
- import { Typography } from "../../DataDisplay/Typography/Typography";
3
- import { Button } from "../../export";
4
- import { StyledBox } from "./styles";
1
+ import { emptyListImage } from '../../../assets/images/svg';
2
+ import { Typography } from '../../DataDisplay/Typography/Typography';
3
+ import { Button } from '../../export';
4
+ import { StyledBox } from './styles';
5
5
 
6
6
  export const NoItemFound = ({ resetBoundary }: any) => {
7
7
  return (
@@ -10,8 +10,8 @@ export const NoItemFound = ({ resetBoundary }: any) => {
10
10
  <img
11
11
  src={emptyListImage}
12
12
  alt="page not found"
13
- width={"350px"}
14
- style={{ margin: "20px" }}
13
+ width={'350px'}
14
+ style={{ margin: '20px' }}
15
15
  />
16
16
  <Typography variant="subtitle1">No Items Found</Typography>
17
17
  <Typography variant="body2">
@@ -21,7 +21,7 @@ export const NoItemFound = ({ resetBoundary }: any) => {
21
21
  items or adjust your filter criteria.
22
22
  </Typography>
23
23
  <Button
24
- sx={{ marginTop: "20px" }}
24
+ sx={{ marginTop: '20px' }}
25
25
  variant="contained"
26
26
  onClick={() => resetBoundary()}
27
27
  >
@@ -1,6 +1,6 @@
1
- import { errorCactus } from "../../../assets/images/svg";
2
- import { Typography } from "../../DataDisplay/Typography/Typography";
3
- import { StyledBox } from "./styles";
1
+ import { errorCactus } from '../../../assets/images/svg';
2
+ import { Typography } from '../../DataDisplay/Typography/Typography';
3
+ import { StyledBox } from './styles';
4
4
 
5
5
  export const PageNotFound = () => {
6
6
  return (
@@ -9,8 +9,8 @@ export const PageNotFound = () => {
9
9
  <img
10
10
  src={errorCactus}
11
11
  alt="page not found"
12
- width={"350px"}
13
- style={{ margin: "20px" }}
12
+ width={'350px'}
13
+ style={{ margin: '20px' }}
14
14
  />
15
15
  <Typography variant="subtitle1">Page Not Found.</Typography>
16
16
  <Typography variant="body2">
@@ -1,7 +1,7 @@
1
- import { ReactNode } from "react";
2
- import { unAuthorized } from "../../../assets/images/svg";
3
- import { Typography } from "../../DataDisplay/Typography/Typography";
4
- import { StyledBox } from "./styles";
1
+ import { ReactNode } from 'react';
2
+ import { unAuthorized } from '../../../assets/images/svg';
3
+ import { Typography } from '../../DataDisplay/Typography/Typography';
4
+ import { StyledBox } from './styles';
5
5
 
6
6
  export const UnAuthorized = ({ component }: { component?: ReactNode }) => {
7
7
  return (
@@ -10,8 +10,8 @@ export const UnAuthorized = ({ component }: { component?: ReactNode }) => {
10
10
  <img
11
11
  src={unAuthorized}
12
12
  alt="page not found"
13
- width={"350px"}
14
- style={{ margin: "20px" }}
13
+ width={'350px'}
14
+ style={{ margin: '20px' }}
15
15
  />
16
16
  <Typography variant="subtitle1">Unauthorized Access</Typography>
17
17
  <Typography variant="body2">
@@ -1,29 +1,29 @@
1
- import { Alert, Box, styled } from "@mui/material";
1
+ import { Alert, Box, styled } from '@mui/material';
2
2
 
3
3
  export const StyledAlert = styled(Alert)(({ theme }) => ({
4
- height: "60px",
4
+ height: '60px',
5
5
  border: `1px solid ${theme.palette.error.main}`,
6
- display: "flex",
7
- alignItems: "center",
8
- "& .MuiAlert-message": {
6
+ display: 'flex',
7
+ alignItems: 'center',
8
+ '& .MuiAlert-message': {
9
9
  padding: 0,
10
10
  },
11
- "& .MuiTypography-root": {
11
+ '& .MuiTypography-root': {
12
12
  margin: 0,
13
13
  },
14
- position: "relative",
15
- "& .retryBtn": {
16
- color: "#661b2a",
17
- position: "absolute",
14
+ position: 'relative',
15
+ '& .retryBtn': {
16
+ color: '#661b2a',
17
+ position: 'absolute',
18
18
  right: 8,
19
19
  top: 8,
20
20
  },
21
21
  }));
22
22
 
23
23
  export const StyledBox = styled(Box)(({ theme }) => ({
24
- width: "100%",
25
- display: "flex",
26
- flexDirection: "column",
27
- alignItems: "center",
28
- justifyContent: "center",
24
+ width: '100%',
25
+ display: 'flex',
26
+ flexDirection: 'column',
27
+ alignItems: 'center',
28
+ justifyContent: 'center',
29
29
  }));
@@ -5,7 +5,13 @@ export const AcademicsIcon = () => {
5
5
  const color = theme.palette.text.primary;
6
6
  return (
7
7
  <>
8
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <svg
9
+ width="20"
10
+ height="20"
11
+ viewBox="0 0 20 20"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ >
9
15
  <path
10
16
  d="M10.0001 18.3986C9.75295 18.4012 9.50914 18.3411 9.29147 18.2239C7.39801 17.2642 5.36941 16.5986 3.27547 16.2499L3.03414 16.2166C2.48868 16.133 1.99007 15.8601 1.62581 15.4456C1.26154 15.0311 1.05489 14.5016 1.04214 13.9499V3.88322C1.03855 3.56619 1.10171 3.25195 1.22751 2.96092C1.35332 2.66989 1.53895 2.40859 1.77234 2.194C2.00573 1.9794 2.28167 1.81632 2.58221 1.71534C2.88276 1.61436 3.20118 1.57775 3.5168 1.60789C5.68976 1.86244 7.78803 2.55725 9.68347 3.64989L9.88347 3.76656C9.95755 3.79813 10.0407 3.80098 10.1168 3.77455L10.2501 3.69122C12.1495 2.5944 14.2492 1.88898 16.4255 1.61656H16.5255C16.8345 1.59029 17.1455 1.62937 17.4384 1.73125C17.7313 1.83314 17.9995 1.99553 18.2255 2.20789C18.4599 2.42226 18.6465 2.68374 18.7728 2.97521C18.8992 3.26668 18.9626 3.58156 18.9588 3.89922V13.9579C18.9471 14.5111 18.7397 15.0423 18.3736 15.4572C18.0075 15.8722 17.5063 16.144 16.9588 16.2246L16.6841 16.2579C14.5975 16.6056 12.5766 17.2715 10.6921 18.2326C10.4801 18.3478 10.2414 18.4051 10.0001 18.3986ZM3.3168 2.84989C3.05807 2.84665 2.8078 2.94199 2.6168 3.11655C2.51238 3.21476 2.42957 3.33367 2.37367 3.46567C2.31777 3.59768 2.29 3.73988 2.29214 3.88322V13.9499C2.30335 14.1985 2.39842 14.4359 2.56186 14.6236C2.72529 14.8112 2.94745 14.938 3.19214 14.9832L3.44214 15.0166C5.67583 15.3843 7.83989 16.0925 9.8588 17.1166C9.92936 17.1477 10.0078 17.1564 10.0835 17.1412C12.1066 16.1007 14.2803 15.3838 16.5255 15.0166L16.8088 14.9832C17.0541 14.9392 17.277 14.8128 17.4406 14.6249C17.6043 14.437 17.6989 14.1989 17.7088 13.9499V3.89122C17.711 3.7467 17.6832 3.60329 17.6274 3.46999C17.5715 3.33668 17.4887 3.21636 17.3841 3.11655C17.2752 3.02111 17.1484 2.94835 17.011 2.90256C16.8737 2.85677 16.7285 2.83886 16.5841 2.84989H16.4841C14.5277 3.11065 12.6402 3.74722 10.9255 4.72456L10.7921 4.81656C10.5576 4.95487 10.2905 5.02848 10.0182 5.02988C9.74592 5.03129 9.47812 4.96044 9.24214 4.82456L9.04214 4.70789C7.30552 3.72903 5.3948 3.09794 3.4168 2.84989H3.3168Z"
11
17
  style={{ stroke: color, fill: color }}
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const ActiveDevicesIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const AdminIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const AdministratorIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const ErrorFilledIcon = ({
4
4
  size = 16,
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const ArrowBackIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -0,0 +1,32 @@
1
+ export const AttachmentIcon = ({ size = 24 }) => {
2
+ return (
3
+ <svg
4
+ width={size}
5
+ height={size}
6
+ viewBox="0 0 24 25"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <g clip-path="url(#clip0_2077_7126)">
11
+ <path
12
+ d="M19.5 24.5H4.5C2.01453 24.5 0 22.4855 0 20V5C0 2.51453 2.01453 0.5 4.5 0.5H19.5C21.9855 0.5 24 2.51453 24 5V20C24 22.4855 21.9855 24.5 19.5 24.5Z"
13
+ fill="#4BAABE"
14
+ />
15
+ <path
16
+ d="M12.375 18.5C10.3072 18.5 8.625 16.8178 8.625 14.75V9.5C8.625 9.22406 8.8493 8.99976 9.12524 8.99976C9.40118 8.99976 9.62549 9.22333 9.62549 9.5V14.75C9.62549 16.2657 10.8593 17.5002 12.3757 17.5002C13.8922 17.5002 15.126 16.2665 15.126 14.75V9.25024C15.126 8.28583 14.3408 7.50049 13.3762 7.50049C12.4118 7.50049 11.625 8.28491 11.625 9.25024V14.2505C11.625 14.6638 11.9617 15.0005 12.375 15.0005C12.7883 15.0005 13.125 14.6638 13.125 14.2505V9.5C13.125 9.22406 13.3493 8.99976 13.6252 8.99976C13.9012 8.99976 14.1255 9.22333 14.1255 9.5V14.2498C14.1255 15.2142 13.3403 15.9995 12.3757 15.9995C11.4113 15.9995 10.626 15.2142 10.626 14.2498V9.24951C10.6252 7.73376 11.859 6.5 13.3748 6.5C14.8905 6.5 16.125 7.73376 16.125 9.25024V14.75C16.125 16.8178 14.4428 18.5 12.375 18.5Z"
17
+ fill="white"
18
+ />
19
+ </g>
20
+ <defs>
21
+ <clipPath id="clip0_2077_7126">
22
+ <rect
23
+ width="24"
24
+ height="24"
25
+ fill="white"
26
+ transform="translate(0 0.5)"
27
+ />
28
+ </clipPath>
29
+ </defs>
30
+ </svg>
31
+ );
32
+ };
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const BulbIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,8 +1,8 @@
1
- import { useTheme } from "@mui/material";
1
+ 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";
5
+ const color = theme.palette.mode === 'dark' ? '#FFFFFF' : '#1e19f5';
6
6
 
7
7
  return (
8
8
  <svg
@@ -11,7 +11,7 @@ export const CampxFullLogoIcon = () => {
11
11
  xmlns="http://www.w3.org/2000/svg"
12
12
  viewBox="0 0 1177.77 217.66"
13
13
  style={{
14
- strokeWidth: "0px",
14
+ strokeWidth: '0px',
15
15
  fill: theme.palette.text.primary,
16
16
  }}
17
17
  >
@@ -1,9 +1,9 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const CampxIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
5
5
 
6
- const color = theme.palette.mode === "dark" ? "white" : "blue";
6
+ const color = theme.palette.mode === 'dark' ? 'white' : 'blue';
7
7
 
8
8
  return (
9
9
  <svg
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const CareerIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const CheckedCheckboxIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const CheckedRadioIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const ClogWheelIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const CollapseIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const CrossIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const DashBoardIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
  export const DeleteIcon = ({ size = 16 }) => {
3
3
  const theme = useTheme();
4
4
  const color = theme.palette.primary.light;
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const DeviceIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();
@@ -0,0 +1,52 @@
1
+ export const DocumentIcon = ({ size = 24 }) => {
2
+ return (
3
+ <svg
4
+ width={size}
5
+ height={size}
6
+ viewBox="0 0 24 25"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <g clip-path="url(#clip0_2077_7034)">
11
+ <path
12
+ d="M20.6914 7.07352V22.9539C20.6914 23.8079 19.9987 24.5 19.1453 24.5H4.85516C4.00114 24.5 3.30908 23.8079 3.30908 22.9539V2.04608C3.30904 1.19206 4.0011 0.5 4.85516 0.5H14.1179L20.6914 7.07352Z"
13
+ fill="#518EF8"
14
+ />
15
+ <path
16
+ d="M16.4439 12.5493H7.55518V13.537H16.4439V12.5493Z"
17
+ fill="white"
18
+ />
19
+ <path
20
+ d="M16.4439 14.7554H7.55518V15.7431H16.4439V14.7554Z"
21
+ fill="white"
22
+ />
23
+ <path
24
+ d="M16.4439 16.9609H7.55518V17.9486H16.4439V16.9609Z"
25
+ fill="white"
26
+ />
27
+ <path
28
+ d="M13.8765 19.167H7.55518V20.1547H13.8765V19.167Z"
29
+ fill="white"
30
+ />
31
+ <path
32
+ d="M15.0146 6.93052L20.6913 9.26916V7.07334L17.4728 6.12305L15.0146 6.93052Z"
33
+ fill="#3A5BBC"
34
+ />
35
+ <path
36
+ d="M20.6912 7.07352H15.6638C14.8097 7.07352 14.1177 6.38145 14.1177 5.52744V0.5L20.6912 7.07352Z"
37
+ fill="#ACD1FC"
38
+ />
39
+ </g>
40
+ <defs>
41
+ <clipPath id="clip0_2077_7034">
42
+ <rect
43
+ width="24"
44
+ height="24"
45
+ fill="white"
46
+ transform="translate(0 0.5)"
47
+ />
48
+ </clipPath>
49
+ </defs>
50
+ </svg>
51
+ );
52
+ };
@@ -0,0 +1,52 @@
1
+ import { useTheme } from '@mui/material';
2
+
3
+ export const DownloadIcon = ({ size = 16 }) => {
4
+ const theme = useTheme();
5
+ return (
6
+ <div>
7
+ <svg
8
+ width={size}
9
+ height={size}
10
+ viewBox="0 0 17 16"
11
+ fill="none"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ >
14
+ <mask
15
+ id="mask0_2120_3221"
16
+ maskUnits="userSpaceOnUse"
17
+ x="0"
18
+ y="-1"
19
+ width="17"
20
+ height="18"
21
+ >
22
+ <path
23
+ d="M16.5 0H0.5V16H16.5V0Z"
24
+ fill="white"
25
+ stroke="white"
26
+ stroke-width="0.4"
27
+ />
28
+ </mask>
29
+ <g mask="url(#mask0_2120_3221)">
30
+ <path
31
+ d="M8.29663 11.0858C8.21889 11.0853 8.14202 11.0694 8.0705 11.0389C7.9635 10.9955 7.87197 10.9211 7.8077 10.8251C7.74344 10.7292 7.70939 10.6162 7.70997 10.5008V2.34985C7.70997 2.19426 7.77178 2.04504 7.8818 1.93501C7.99182 1.82499 8.14104 1.76318 8.29663 1.76318C8.45223 1.76318 8.60145 1.82499 8.71147 1.93501C8.82149 2.04504 8.8833 2.19426 8.8833 2.34985V9.09012L11.198 6.77118C11.3104 6.67717 11.454 6.62867 11.6005 6.63523C11.7469 6.64179 11.8856 6.70292 11.9892 6.80661C12.0928 6.91029 12.1539 7.04901 12.1603 7.19545C12.1668 7.34189 12.1182 7.48544 12.0241 7.59785L8.70783 10.9141C8.59869 11.0232 8.45095 11.0849 8.29663 11.0858Z"
32
+ fill="#323167"
33
+ stroke="#323167"
34
+ stroke-width="0.4"
35
+ />
36
+ <path
37
+ d="M8.29518 11.0853C8.21832 11.0856 8.14219 11.0705 8.07122 11.041C8.00025 11.0115 7.93587 10.9682 7.88184 10.9135L4.56558 7.59728C4.45663 7.4874 4.39551 7.33894 4.39551 7.18421C4.39551 7.02948 4.45663 6.88102 4.56558 6.77114C4.67545 6.6622 4.82391 6.60107 4.97864 6.60107C5.13337 6.60107 5.28184 6.6622 5.39171 6.77114L8.70851 10.0874C8.81745 10.1973 8.87858 10.3457 8.87858 10.5005C8.87858 10.6552 8.81745 10.8037 8.70851 10.9135C8.65449 10.9682 8.59011 11.0115 8.51914 11.041C8.44817 11.0705 8.37203 11.0856 8.29518 11.0853Z"
38
+ fill="#323167"
39
+ stroke="#323167"
40
+ stroke-width="0.4"
41
+ />
42
+ <path
43
+ d="M13.2929 14.189H3.77394C3.62864 14.188 3.48957 14.1299 3.38677 14.0272C3.28398 13.9245 3.22573 13.7855 3.22461 13.6402C3.22559 13.4948 3.28378 13.3556 3.38659 13.2528C3.4894 13.15 3.62855 13.0918 3.77394 13.0908H13.2929C13.4383 13.0918 13.5774 13.15 13.6802 13.2528C13.783 13.3556 13.8412 13.4948 13.8422 13.6402C13.8411 13.7855 13.7828 13.9245 13.68 14.0272C13.5773 14.1299 13.4382 14.188 13.2929 14.189Z"
44
+ fill="#323167"
45
+ stroke="#323167"
46
+ stroke-width="0.4"
47
+ />
48
+ </g>
49
+ </svg>
50
+ </div>
51
+ );
52
+ };
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
  export const EditIcon = ({ size = 16 }) => {
3
3
  const theme = useTheme();
4
4
  const color = theme.palette.primary.light;
@@ -1,4 +1,4 @@
1
- import { useTheme } from "@mui/material";
1
+ import { useTheme } from '@mui/material';
2
2
 
3
3
  export const ExamResultIcon = ({ size = 16 }) => {
4
4
  const theme = useTheme();