@campxdev/react-blueprint 1.1.7 → 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 (240) hide show
  1. package/.vscode/settings.json +5 -1
  2. package/craco.config.js +18 -0
  3. package/package.json +6 -5
  4. package/src/AppContent.tsx +6 -6
  5. package/src/assets/fonts/heebo/index.ts +2 -2
  6. package/src/assets/fonts/poppins/index.ts +5 -5
  7. package/src/assets/images/gif/confirmation-alert.gif +0 -0
  8. package/src/assets/images/gif/delete-confirmation-alert.gif +0 -0
  9. package/src/assets/images/gif/index.ts +11 -0
  10. package/src/assets/images/gif/upload-file.gif +0 -0
  11. package/src/assets/images/gif/uploading-file.gif +0 -0
  12. package/src/assets/images/svg/index.ts +5 -21
  13. package/src/components/Assets/ErrorPages/InternalServerError.tsx +7 -7
  14. package/src/components/Assets/ErrorPages/NoInternetConnection.tsx +7 -7
  15. package/src/components/Assets/ErrorPages/NoItemFound.tsx +7 -7
  16. package/src/components/Assets/ErrorPages/PageNotFound.tsx +5 -5
  17. package/src/components/Assets/ErrorPages/UnAuthorized.tsx +6 -6
  18. package/src/components/Assets/ErrorPages/styles.tsx +15 -15
  19. package/src/components/Assets/Icons/IconComponents/AcademicIcon.tsx +7 -1
  20. package/src/components/Assets/Icons/IconComponents/ActiveDevicesIcon.tsx +1 -1
  21. package/src/components/Assets/Icons/IconComponents/AdminIcon.tsx +1 -1
  22. package/src/components/Assets/Icons/IconComponents/AdministratorIcon.tsx +1 -1
  23. package/src/components/Assets/Icons/IconComponents/AlertFilledIcon.tsx +1 -1
  24. package/src/components/Assets/Icons/IconComponents/ArrowBackIcon.tsx +1 -1
  25. package/src/components/Assets/Icons/IconComponents/AttachmentIcon.tsx +32 -0
  26. package/src/components/Assets/Icons/IconComponents/BulbIcon.tsx +1 -1
  27. package/src/components/Assets/Icons/IconComponents/CampxFullLogoIcon.tsx +3 -3
  28. package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +2 -2
  29. package/src/components/Assets/Icons/IconComponents/CareerIcon.tsx +1 -1
  30. package/src/components/Assets/Icons/IconComponents/CheckedCheckBoxIcon.tsx +1 -1
  31. package/src/components/Assets/Icons/IconComponents/CheckedRadioIcon.tsx +1 -1
  32. package/src/components/Assets/Icons/IconComponents/ClogWheelIcon.tsx +1 -1
  33. package/src/components/Assets/Icons/IconComponents/CollapseIcon.tsx +1 -1
  34. package/src/components/Assets/Icons/IconComponents/CrossIcon.tsx +1 -1
  35. package/src/components/Assets/Icons/IconComponents/DashBoardIcon.tsx +1 -1
  36. package/src/components/Assets/Icons/IconComponents/DeleteIcon.tsx +1 -1
  37. package/src/components/Assets/Icons/IconComponents/DeviceIcon.tsx +1 -1
  38. package/src/components/Assets/Icons/IconComponents/DocumentIcon.tsx +52 -0
  39. package/src/components/Assets/Icons/IconComponents/DownloadIcon.tsx +52 -0
  40. package/src/components/Assets/Icons/IconComponents/EditIcon.tsx +1 -1
  41. package/src/components/Assets/Icons/IconComponents/ExamResultIcon.tsx +1 -1
  42. package/src/components/Assets/Icons/IconComponents/ExcelIcon.tsx +56 -0
  43. package/src/components/Assets/Icons/IconComponents/ExpandIcon.tsx +1 -1
  44. package/src/components/Assets/Icons/IconComponents/ExportIcon.tsx +1 -1
  45. package/src/components/Assets/Icons/IconComponents/FilterIcon.tsx +1 -1
  46. package/src/components/Assets/Icons/IconComponents/HelpIcon.tsx +1 -1
  47. package/src/components/Assets/Icons/IconComponents/HomeIcon.tsx +1 -1
  48. package/src/components/Assets/Icons/IconComponents/ImageIcon.tsx +44 -0
  49. package/src/components/Assets/Icons/IconComponents/InfoFilledIcon.tsx +1 -1
  50. package/src/components/Assets/Icons/IconComponents/InfoIcon.tsx +1 -1
  51. package/src/components/Assets/Icons/IconComponents/InstitutionsIcon.tsx +1 -1
  52. package/src/components/Assets/Icons/IconComponents/LeftIcon.tsx +1 -1
  53. package/src/components/Assets/Icons/IconComponents/LocationIcon.tsx +1 -1
  54. package/src/components/Assets/Icons/IconComponents/LogoutIcon.tsx +2 -2
  55. package/src/components/Assets/Icons/IconComponents/NavigationIcon.tsx +1 -1
  56. package/src/components/Assets/Icons/IconComponents/NoteIcon.tsx +7 -1
  57. package/src/components/Assets/Icons/IconComponents/NotificationIcon.tsx +1 -1
  58. package/src/components/Assets/Icons/IconComponents/PdfIcon.tsx +52 -0
  59. package/src/components/Assets/Icons/IconComponents/ProductFeaturesIcon.tsx +1 -1
  60. package/src/components/Assets/Icons/IconComponents/ProfileIcon.tsx +1 -1
  61. package/src/components/Assets/Icons/IconComponents/RedirectIcon.tsx +1 -1
  62. package/src/components/Assets/Icons/IconComponents/RedoIcon.tsx +1 -1
  63. package/src/components/Assets/Icons/IconComponents/RightIcon.tsx +1 -1
  64. package/src/components/Assets/Icons/IconComponents/SaveIcon.tsx +39 -39
  65. package/src/components/Assets/Icons/IconComponents/SearchIcon.tsx +1 -1
  66. package/src/components/Assets/Icons/IconComponents/ShareIcon.tsx +1 -1
  67. package/src/components/Assets/Icons/IconComponents/SuccessFilledIcon.tsx +1 -1
  68. package/src/components/Assets/Icons/IconComponents/TicketsIcon.tsx +1 -1
  69. package/src/components/Assets/Icons/IconComponents/UncheckCheckBoxIcon.tsx +1 -1
  70. package/src/components/Assets/Icons/IconComponents/UncheckedRadioIcon.tsx +1 -1
  71. package/src/components/Assets/Icons/IconComponents/ViewIcon.tsx +1 -1
  72. package/src/components/Assets/Icons/IconComponents/VisibiityOffIcon.tsx +1 -1
  73. package/src/components/Assets/Icons/IconComponents/VisibilityIcon.tsx +1 -1
  74. package/src/components/Assets/Icons/IconComponents/WarningFilledIcon.tsx +1 -1
  75. package/src/components/Assets/Icons/Icons.tsx +12 -0
  76. package/src/components/Assets/export.ts +6 -6
  77. package/src/components/Charts/BarChart/BarChart.tsx +17 -19
  78. package/src/components/Charts/LineChart/LineChart.tsx +12 -14
  79. package/src/components/Charts/PieChart/PieChart.tsx +8 -8
  80. package/src/components/Charts/TreeMap/TreeMap.tsx +15 -15
  81. package/src/components/Charts/export.ts +4 -4
  82. package/src/components/Charts/types/types.ts +3 -3
  83. package/src/components/DataDisplay/Accordion/Accordion.tsx +2 -0
  84. package/src/components/DataDisplay/Avatar/Avatar.tsx +14 -3
  85. package/src/components/DataDisplay/Card/Card.tsx +18 -18
  86. package/src/components/DataDisplay/Card/styles.tsx +24 -25
  87. package/src/components/DataDisplay/Chips/Chips.tsx +14 -14
  88. package/src/components/DataDisplay/DataTable/DataTable.tsx +4 -1
  89. package/src/components/DataDisplay/DataTable/TablePagination.tsx +10 -10
  90. package/src/components/DataDisplay/SidePanel/SidePanel.tsx +1 -1
  91. package/src/components/DataDisplay/Typography/Typography.tsx +1 -1
  92. package/src/components/Feedback/Alert/Alert.tsx +8 -8
  93. package/src/components/Feedback/Snackbar/Snackbar.tsx +27 -27
  94. package/src/components/Feedback/Spinner/Spinner.tsx +2 -2
  95. package/src/components/Feedback/Tooltip/Tooltip.tsx +6 -6
  96. package/src/components/Feedback/Tutorial/Tutorial.tsx +45 -45
  97. package/src/components/Feedback/export.ts +5 -0
  98. package/src/components/Image/Image.tsx +8 -8
  99. package/src/components/Input/Button/Button.tsx +2 -2
  100. package/src/components/Input/DatePicker/DatePicker.tsx +18 -4
  101. package/src/components/Input/FormActions/FormActions.tsx +15 -4
  102. package/src/components/Input/FormControlWrapper/FormControlWrapper.tsx +20 -5
  103. package/src/components/Input/HelpButton/HelpButton.stories.tsx +9 -9
  104. package/src/components/Input/HelpButton/HelpButton.tsx +4 -4
  105. package/src/components/Input/IconButtons/IconButtons/DeleteButton.tsx +2 -2
  106. package/src/components/Input/IconButtons/IconButtons/EditButton.tsx +2 -2
  107. package/src/components/Input/IconButtons/IconButtons/RedirectButton.tsx +2 -2
  108. package/src/components/Input/IconButtons/IconButtons/ViewButton.tsx +2 -2
  109. package/src/components/Input/LabelWrapper/LabelWrapper.tsx +5 -5
  110. package/src/components/Input/MultiCheckBox/MultiCheckBox.tsx +6 -6
  111. package/src/components/Input/OtpInput/OtpInput.tsx +17 -17
  112. package/src/components/Input/PasswordField/PasswordField.tsx +8 -8
  113. package/src/components/Input/RadioGroup/RadioGroup.tsx +5 -5
  114. package/src/components/Input/SearchBar/SearchBar.tsx +20 -20
  115. package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +5 -5
  116. package/src/components/Input/SingleSelect/SingleSelect.tsx +39 -6
  117. package/src/components/Input/Switch/Switch.tsx +1 -1
  118. package/src/components/Input/TextField/TextField.tsx +3 -3
  119. package/src/components/Input/TimePicker/TimePicker.tsx +18 -4
  120. package/src/components/Input/components/FetchingOptionsLoader.tsx +3 -3
  121. package/src/components/Input/styles.tsx +6 -6
  122. package/src/components/Layout/AppHeader/AppHeader.tsx +10 -12
  123. package/src/components/Layout/AppHeader/AppHeaderActions/CogWheelMenu.tsx +5 -5
  124. package/src/components/Layout/AppHeader/AppHeaderActions/HeaderActions.tsx +6 -6
  125. package/src/components/Layout/AppHeader/AppHeaderActions/SwitchInstitution.tsx +37 -37
  126. package/src/components/Layout/AppHeader/AppHeaderActions/UserBox.tsx +28 -28
  127. package/src/components/Layout/AppHeader/styles/styles.tsx +24 -24
  128. package/src/components/Layout/PageHeader/PageHeader.tsx +8 -3
  129. package/src/components/Layout/TabsLayout/Tabs.tsx +16 -16
  130. package/src/components/Layout/TabsLayout/TabsLayout.tsx +6 -6
  131. package/src/components/Layout/export.ts +4 -0
  132. package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +35 -23
  133. package/src/components/Navigation/ConfirmDialog/ConfirmDialog.tsx +74 -0
  134. package/src/components/Navigation/Dialog/Dialog.tsx +33 -0
  135. package/src/components/Navigation/DialogButton/DialogButton.tsx +17 -81
  136. package/src/components/Navigation/DropDownMenu/DropDownButton.tsx +4 -4
  137. package/src/components/Navigation/DropDownMenu/DropDownIcon.tsx +4 -4
  138. package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +8 -8
  139. package/src/components/Navigation/DropDownMenu/DropdownMenuItem.tsx +3 -3
  140. package/src/components/Navigation/DropDownMenu/styles.tsx +13 -13
  141. package/src/components/Navigation/PreviewFiles/PreviewFiles.tsx +165 -0
  142. package/src/components/Navigation/Sidebar/Components.tsx +18 -18
  143. package/src/components/Navigation/Sidebar/MenuItem.tsx +1 -1
  144. package/src/components/Navigation/Sidebar/SubMenuItem.tsx +2 -1
  145. package/src/components/Navigation/Sidebar/interfaces.ts +1 -1
  146. package/src/components/Navigation/Sidebar/styles.tsx +64 -64
  147. package/src/components/Navigation/Stepper/Stepper.tsx +5 -5
  148. package/src/components/Navigation/Stepper/StepperComponents.tsx +15 -15
  149. package/src/components/Navigation/TabsContainer/TabsContainer.tsx +4 -4
  150. package/src/components/Navigation/UploadDialog/LoadingUploadDialogContainer.tsx +23 -0
  151. package/src/components/Navigation/UploadDialog/Styles.tsx +34 -0
  152. package/src/components/Navigation/UploadDialog/UploadDialog.tsx +143 -0
  153. package/src/components/Navigation/UploadDialog/UploadDialogContainer.tsx +82 -0
  154. package/src/components/Navigation/export.ts +13 -0
  155. package/src/components/export.ts +7 -7
  156. package/src/contexts/Providers.tsx +2 -2
  157. package/src/index.tsx +2 -2
  158. package/src/store/activeStore.ts +1 -1
  159. package/src/stories/Assets/Icons.stories.tsx +6 -6
  160. package/src/stories/Charts/BarChart.stories.tsx +56 -56
  161. package/src/stories/Charts/LineChart.stories.tsx +49 -49
  162. package/src/stories/Charts/PieChart.stories.tsx +53 -53
  163. package/src/stories/Charts/Treemap.stories.tsx +122 -122
  164. package/src/stories/DataDisplay/AccordionGroup.stories.tsx +11 -12
  165. package/src/stories/DataDisplay/Card.stories.tsx +34 -34
  166. package/src/stories/DataDisplay/Chips.stories.tsx +10 -10
  167. package/src/stories/DataDisplay/CircularAvatar.stories.tsx +6 -6
  168. package/src/stories/DataDisplay/DataTable.stories.tsx +32 -32
  169. package/src/stories/DataDisplay/SidePanel.stories.tsx +14 -14
  170. package/src/stories/DataDisplay/SquareAvatar.stories.tsx +15 -15
  171. package/src/stories/DesignSystem/colorTokens.stories.tsx +10 -10
  172. package/src/stories/DesignSystem/typography.stories.tsx +19 -19
  173. package/src/stories/Feedback/Alert.stories.tsx +9 -9
  174. package/src/stories/Feedback/Snackbar.stories.tsx +11 -11
  175. package/src/stories/Feedback/Spinner.stories.tsx +4 -4
  176. package/src/stories/Feedback/Tooltip.stories.tsx +5 -5
  177. package/src/stories/Feedback/Tutorial.stories.tsx +13 -13
  178. package/src/stories/Input/Button.stories.tsx +26 -26
  179. package/src/stories/Input/DatePicker.stories.tsx +48 -8
  180. package/src/stories/Input/IconButtons.stories.tsx +6 -6
  181. package/src/stories/Input/MultiCheckBox.stories.tsx +15 -15
  182. package/src/stories/Input/OtpInput.stories.tsx +5 -5
  183. package/src/stories/Input/Password.stories.tsx +7 -7
  184. package/src/stories/Input/RadioGroup.stories.tsx +14 -14
  185. package/src/stories/Input/SearchBar.stories.tsx +10 -10
  186. package/src/stories/Input/SingleCheckBox.stories.tsx +7 -7
  187. package/src/stories/Input/SingleSelect.stories.tsx +47 -47
  188. package/src/stories/Input/Switch.stories.tsx +22 -22
  189. package/src/stories/Input/TextField.stories.tsx +47 -47
  190. package/src/stories/Input/TimePicker.stories.tsx +44 -7
  191. package/src/stories/Layout/AppHeader.stories.tsx +13 -13
  192. package/src/stories/Layout/TabsLayout.stories.tsx +24 -24
  193. package/src/stories/Navigation/ConfirmDialog.stories.tsx +90 -0
  194. package/src/stories/Navigation/DialogButton.stories.tsx +38 -45
  195. package/src/stories/Navigation/DropDownMenu.stories.tsx +24 -24
  196. package/src/stories/Navigation/FloatingSidebar.stories.tsx +23 -23
  197. package/src/stories/Navigation/ImportDialog.stories.tsx +45 -0
  198. package/src/stories/Navigation/PreviewFiles.stories.tsx +80 -0
  199. package/src/stories/Navigation/Stepper.stories.tsx +15 -15
  200. package/src/stories/Navigation/TabsContainer.stories.tsx +11 -11
  201. package/src/themes/MuiThemeProvider.tsx +3 -3
  202. package/src/themes/colorTokens/colorPalette.tsx +38 -38
  203. package/src/themes/colorTokens/darkColorTokens.tsx +1 -1
  204. package/src/themes/colorTokens/lightColorTokens.ts +1 -1
  205. package/src/themes/commonTheme.ts +13 -3
  206. package/src/themes/customCssBaseline.ts +2 -2
  207. package/src/themes/darkTheme.ts +4 -4
  208. package/src/themes/export.ts +3 -3
  209. package/src/themes/lightTheme.ts +4 -4
  210. package/src/utils/constants.ts +5 -5
  211. package/src/utils/logout.ts +8 -8
  212. package/tsconfig.json +2 -6
  213. package/src/assets/images/admin.png +0 -0
  214. package/src/assets/images/campx_logo__full_primary.png +0 -0
  215. package/src/assets/images/collegex.png +0 -0
  216. package/src/assets/images/commutex.png +0 -0
  217. package/src/assets/images/enrollx.png +0 -0
  218. package/src/assets/images/examx.png +0 -0
  219. package/src/assets/images/hostelx copy.png +0 -0
  220. package/src/assets/images/hostelx.png +0 -0
  221. package/src/assets/images/index.ts +0 -25
  222. package/src/assets/images/payx.png +0 -0
  223. package/src/assets/images/pepolex.png +0 -0
  224. package/src/assets/images/svg/campx-logo.svg +0 -32
  225. package/src/assets/images/svg/commutex_small.svg +0 -11
  226. package/src/assets/images/svg/enroll_logo.svg +0 -9
  227. package/src/assets/images/svg/exams_small.svg +0 -12
  228. package/src/assets/images/svg/help-icon.svg +0 -8
  229. package/src/assets/images/svg/hostel_small.svg +0 -13
  230. package/src/assets/images/svg/payx_small.svg +0 -16
  231. package/src/assets/images/svg/people_small.svg +0 -9
  232. package/src/assets/images/svg/squareSmall.svg +0 -9
  233. package/src/assets/images/svg/square_small.svg +0 -9
  234. package/src/components/Feedback/exports.ts +0 -5
  235. package/src/components/Layout/exports.ts +0 -4
  236. package/src/components/Navigation/exports.ts +0 -10
  237. package/src/stories/Navigation/Breadcrumbs.stories.tsx +0 -34
  238. package/src/utils/applications.ts +0 -140
  239. package/src/utils/campxAxios.ts +0 -18
  240. package/src/utils/imageMap.ts +0 -22
@@ -1,3 +1,7 @@
1
1
  {
2
- "cSpell.words": ["autodocs", "Campx"]
2
+ "cSpell.words": [
3
+ "autodocs",
4
+ "Campx",
5
+ "Gifs"
6
+ ]
3
7
  }
@@ -0,0 +1,18 @@
1
+ const path = require('path');
2
+ const { getLoader, loaderByName } = require('@craco/craco');
3
+ const packages = [];
4
+ packages.push(path.dirname(require.resolve('@campxdev/campx-web-utils')));
5
+ packages.push(path.dirname(require.resolve('@campxdev/react-blueprint')));
6
+ module.exports = {
7
+ webpack: {
8
+ configure: (webpackConfig) => {
9
+ const { isFound, match } = getLoader(webpackConfig, loaderByName('babel-loader'));
10
+ if (isFound) {
11
+ const include = Array.isArray(match.loader.include) ? match.loader.include : [match.loader.include];
12
+ match.loader.include = include.concat(packages);
13
+ }
14
+
15
+ return webpackConfig;
16
+ },
17
+ },
18
+ };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
7
- "@campxdev/campx-web-utils": "0.1.5",
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",
@@ -43,9 +43,9 @@
43
43
  "yalc": "^1.0.0-pre.53"
44
44
  },
45
45
  "scripts": {
46
- "start": "react-scripts start",
47
- "build": "react-scripts build",
48
- "test": "react-scripts test",
46
+ "start": "craco start",
47
+ "build": "craco build",
48
+ "test": "craco test",
49
49
  "eject": "react-scripts eject",
50
50
  "storybook": "storybook dev -p 6006",
51
51
  "build-storybook": "storybook build"
@@ -72,6 +72,7 @@
72
72
  "devDependencies": {
73
73
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
74
74
  "@chromatic-com/storybook": "^1.6.1",
75
+ "@craco/craco": "^7.1.0",
75
76
  "@storybook/addon-essentials": "^8.2.6",
76
77
  "@storybook/addon-interactions": "^8.2.6",
77
78
  "@storybook/addon-links": "^8.2.6",
@@ -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,
@@ -0,0 +1,11 @@
1
+ import ConfirmationAlert from '../gif/confirmation-alert.gif';
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';
5
+
6
+ export const AnimatedGifs = {
7
+ ConfirmationAlert,
8
+ DeleteConfirmationAlert,
9
+ UploadFile,
10
+ UploadingFile,
11
+ };
@@ -1,29 +1,13 @@
1
- import commuteSmall from "./commutex_small.svg";
2
- import emptyListImage from "./Emptylistmage.svg";
3
- import enrollSmall from "./enroll_logo.svg";
4
- import errorCactus from "./error-cactus.svg";
5
- import examsSmall from "./exams_small.svg";
6
- import helpIcon from "./help-icon.svg";
7
- import hostelSmall from "./hostel_small.svg";
8
- import internalServerError from "./Internalserverimage.svg";
9
- import noConnection from "./no-connection.svg";
10
- import payxSmall from "./payx_small.svg";
11
- import peopleSmall from "./people_small.svg";
12
- import squareSmall from "./square_small.svg";
13
- import unAuthorized from "./unauthorized.svg";
1
+ import emptyListImage from './Emptylistmage.svg';
2
+ import errorCactus from './error-cactus.svg';
3
+ import internalServerError from './Internalserverimage.svg';
4
+ import noConnection from './no-connection.svg';
5
+ import unAuthorized from './unauthorized.svg';
14
6
 
15
7
  export {
16
- commuteSmall,
17
8
  emptyListImage,
18
- enrollSmall,
19
9
  errorCactus,
20
- examsSmall,
21
- helpIcon,
22
- hostelSmall,
23
10
  internalServerError,
24
11
  noConnection,
25
- payxSmall,
26
- peopleSmall,
27
- squareSmall,
28
12
  unAuthorized,
29
13
  };
@@ -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
+ };