@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,20 +1,20 @@
1
1
  // import axios, {
2
2
  // axiosErrorToast,
3
3
  // } from "@campxdev/campx-web-utils/src/config/axios";
4
- import { axios } from "@campxdev/campx-web-utils";
5
- import Cookies from "js-cookie";
4
+ import { axios } from '@campxdev/campx-web-utils';
5
+ import Cookies from 'js-cookie';
6
6
 
7
7
  export default function logout() {
8
8
  axios({
9
- method: "POST",
9
+ method: 'POST',
10
10
  baseURL: process.env.REACT_APP_API_HOST,
11
- url: "/auth-server/auth/logout",
11
+ url: '/auth-server/auth/logout',
12
12
  })
13
13
  .then((res) => {
14
- Cookies.remove("campx_tenant");
15
- Cookies.remove("campx_session_key");
16
- Cookies.remove("campx_institution");
17
- window.location.href = "/";
14
+ Cookies.remove('campx_tenant');
15
+ Cookies.remove('campx_session_key');
16
+ Cookies.remove('campx_institution');
17
+ window.location.href = '/';
18
18
  })
19
19
  .catch((err) => {
20
20
  // toast("Unable To Logout.");
package/tsconfig.json CHANGED
@@ -1,11 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "es5",
4
- "lib": [
5
- "dom",
6
- "dom.iterable",
7
- "esnext"
8
- ],
4
+ "lib": ["dom", "dom.iterable", "esnext"],
9
5
  "allowJs": true,
10
6
  "skipLibCheck": true,
11
7
  "esModuleInterop": true,
@@ -21,5 +17,5 @@
21
17
  "types": ["node"],
22
18
  "jsx": "react-jsx"
23
19
  },
24
- "include": ["src", "./types" ]
20
+ "include": ["src", "./types"]
25
21
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,25 +0,0 @@
1
- import admin from "./admin.png";
2
- import campxLogoPrimary from "./campx_logo__full_primary.png";
3
- import collegex from "./collegex.png";
4
- import commutex from "./commutex.png";
5
-
6
- import enrollx from "./enrollx.png";
7
-
8
- import examx from "./examx.png";
9
-
10
- import hostelx from "./hostelx.png";
11
- import payx from "./payx.png";
12
-
13
- import peoplex from "./pepolex.png";
14
-
15
- export {
16
- admin,
17
- campxLogoPrimary,
18
- collegex,
19
- commutex,
20
- enrollx,
21
- examx,
22
- hostelx,
23
- payx,
24
- peoplex,
25
- };
Binary file
Binary file
@@ -1,32 +0,0 @@
1
- <svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1177.77 217.66">
2
- <defs>
3
- <style>
4
- .cls-1, .cls-2, .cls-3 {
5
- stroke-width: 0px;
6
- }
7
-
8
- .cls-2 {
9
- fill: #1e19f5;
10
- }
11
-
12
- .cls-3 {
13
- fill: #121212;
14
- }
15
- </style>
16
- </defs>
17
- <g id="Layer_1-2" data-name="Layer 1">
18
- <g>
19
- <g id="Group_4155" data-name="Group 4155">
20
- <path class="cls-3" d="m189.83,186.55c-21.46,21.16-49.17,30.99-79.27,30.99C33.08,217.54.3,164.2,0,109.96-.3,55.43,35.17,0,110.56,0c28.31,0,55.13,10.73,76.59,31.89l-26.22,25.33c-13.71-13.41-32.18-19.67-50.36-19.67-50.36,0-72.12,37.55-71.82,72.41.3,34.57,20.26,70.63,71.82,70.63,18.18,0,38.74-7.45,52.45-21.16l26.82,27.12Z"/>
21
- <path class="cls-3" d="m375.48,173.44h-109.07l-17.88,39.34h-42.61L299.49,4.17h42.91l93.57,208.6h-42.91l-17.58-39.34Zm-54.53-125.46l-38.74,88.8h77.48l-38.74-88.8Z"/>
22
- <path class="cls-3" d="m652.33,61.69l-67.94,90.59h-7.75l-66.46-90.89v151.68h-39.34V4.47h45.3l65.26,89.7L646.66,4.47h45v208.6h-39.34V61.69Z"/>
23
- <path class="cls-3" d="m789.7,151.39v61.39h-39.34V4.17c32.48,0,65.86-.3,98.34-.3,102.51,0,102.81,146.62,0,147.51h-59Zm0-36.06h59c50.36,0,50.07-73.91,0-73.91h-59v73.91Z"/>
24
- <path id="Subtraction_8" data-name="Subtraction 8" class="cls-2" d="m1149.43,217.66h-50.26l-29.65-40.82,25.85-35.57,55,75.71-.94.68h0Zm-153.97,0h-50.36l-.94-.69,77.35-106.47L944.16,4.04l.52-.38h51.01l51.73,71.2h.01s25.9,35.63,25.9,35.63v.02s.03.05.03.05l-25.9,35.65-.04-.05-51.95,71.51h0Zm99.7-137.63h0l-25.85-35.57,29.64-40.8h50.9l.52.38-55.21,76Z"/>
25
- </g>
26
- <g>
27
- <path class="cls-1" d="m1165.77,3.47c-2.37,0-4.69.7-6.67,2.02-1.97,1.32-3.51,3.19-4.42,5.39-.91,2.19-1.15,4.61-.68,6.93.46,2.33,1.61,4.47,3.28,6.14,1.68,1.68,3.82,2.82,6.14,3.28,2.33.46,4.74.23,6.93-.68,2.19-.91,4.07-2.45,5.39-4.42,1.32-1.97,2.02-4.29,2.02-6.67,0-3.18-1.26-6.23-3.51-8.49-2.25-2.25-5.3-3.51-8.49-3.51h0Zm0,21.6c-1.9,0-3.75-.56-5.33-1.62-1.58-1.05-2.81-2.55-3.54-4.31s-.92-3.68-.55-5.55c.37-1.86,1.28-3.57,2.63-4.92s3.05-2.26,4.92-2.63c1.86-.37,3.79-.18,5.55.55,1.75.73,3.25,1.96,4.31,3.54,1.05,1.58,1.62,3.43,1.62,5.33,0,2.55-1.01,4.99-2.81,6.79-1.8,1.8-4.24,2.81-6.79,2.81h0Z"/>
28
- <path class="cls-1" d="m1170.57,13.07c0-.95-.38-1.87-1.05-2.55s-1.59-1.05-2.55-1.05h-6v12h2.4v-4.8h1.75l3.2,4.8h2.88l-3.3-4.94c.76-.2,1.43-.65,1.92-1.28.48-.62.74-1.39.75-2.18Zm-3.6,1.2h-3.6v-2.4h3.6c.32,0,.62.13.85.35.22.23.35.53.35.85s-.13.62-.35.85-.53.35-.85.35Z"/>
29
- </g>
30
- </g>
31
- </g>
32
- </svg>
@@ -1,11 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25.391" height="35" viewBox="0 0 25.391 35">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#6a2886"/>
5
- <stop offset="1" stop-color="#8234a4"/>
6
- </linearGradient>
7
- </defs>
8
- <g id="Group_4867" data-name="Group 4867" transform="translate(-152.7 -249.981)">
9
- <path id="Union_49" data-name="Union 49" d="M16.86,35l-4.188-5.765L8.483,35H.085L0,34.938,11.873,18.6H.008V16.408H11.931L4.267,5.87l0,0L0,0,0,0H8.531l4.188,5.764L16.907,0h8.4l.086.062L13.514,16.408H25.383V18.6H13.463L21.124,29.13l0,0L25.391,35l0,0Z" transform="translate(152.7 249.981)" fill="url(#linear-gradient)"/>
10
- </g>
11
- </svg>
@@ -1,9 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="177.011" height="195.229" viewBox="0 0 177.011 195.229">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#007ab1"/>
5
- <stop offset="1" stop-color="#149ecd"/>
6
- </linearGradient>
7
- </defs>
8
- <path id="Union_61" data-name="Union 61" d="M0,195.229H.009L0,195.215l23.664-32.567.009.013L70.934,97.615h46.6l.474.344-70.671,97.27ZM87.442,156.1l42.5-58.487h46.6l.474.344L134.768,156.1Zm89.1-58.487h0Zm0,0h-46.6L87.381,39.042h47.325L177.011,97.27Zm-105.6,0L23.673,32.568l-.009.013L0,.013.009,0H47.337l70.671,97.27-.474.344ZM106.356.022h0ZM106.357.022Zm-47.346,0L59,.013,59.014,0h47.327l.016.021H59.011ZM0,0H.009Z" fill="url(#linear-gradient)"/>
9
- </svg>
@@ -1,12 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="33.975" height="35" viewBox="0 0 33.975 35">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#d86b00"/>
5
- <stop offset="1" stop-color="#ed9035"/>
6
- </linearGradient>
7
- </defs>
8
- <g id="Group_4349" data-name="Group 4349" transform="translate(-342.295 -263.508)">
9
- <path id="Subtraction_34" data-name="Subtraction 34" d="M33.973,35H25.488l0,0L0,35l0,0,4.242-5.838,0,0L12.717,17.5,4.244,5.839l0,0L0,0,0,0H33.973l0,0L29.732,5.841l0,0L21.257,17.5,29.73,29.161l0,0L33.975,35l0,0ZM16.987,23.3,13.43,28.2l7.11,0L16.987,23.3ZM13.43,6.8l3.557,4.9L20.539,6.8l-7.109,0Z" transform="translate(342.295 263.508)" fill="url(#linear-gradient)"/>
10
- <rect id="Rectangle_4307" data-name="Rectangle 4307" width="0.404" height="14.649" transform="translate(359.08 273.686)" fill="#16161d"/>
11
- </g>
12
- </svg>
@@ -1,8 +0,0 @@
1
- <svg id="message-question" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
2
- <g id="message-question-2" data-name="message-question">
3
- <path id="Vector" d="M12.5,16.667H4.1A3.877,3.877,0,0,1,0,12.593V4.074A3.893,3.893,0,0,1,4.167,0H12.5a3.893,3.893,0,0,1,4.167,4.074v8.52A3.893,3.893,0,0,1,12.5,16.667Z" transform="translate(1.667 2.025)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
4
- <path id="Vector-2" data-name="Vector" d="M2.245,6.086V5.8A2.119,2.119,0,0,1,3.382,4,2.073,2.073,0,0,0,4.491,2.245,2.245,2.245,0,0,0,0,2.245" transform="translate(7.755 5.594)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
5
- <path id="Vector-3" data-name="Vector" d="M0,0H20V20H0Z" fill="none" opacity="0"/>
6
- <path id="Vector-4" data-name="Vector" d="M.5.5H.508" transform="translate(9.499 14.414)" fill="none" stroke="#292d32" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
7
- </g>
8
- </svg>
@@ -1,13 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50.761" height="35" viewBox="0 0 50.761 35">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#573dab"/>
5
- <stop offset="1" stop-color="#7251dd"/>
6
- </linearGradient>
7
- </defs>
8
- <g id="Group_4351" data-name="Group 4351" transform="translate(-270.758 -251.98)">
9
- <path id="Subtraction_9" data-name="Subtraction 9" d="M8.724,17.99H0l0,0,4.361-6,0,0L12.981.127,17.251,6l0,0,.09.124L8.724,17.99ZM21.7.124h0L21.614,0h.047l.088.063L21.7.124Z" transform="translate(283.16 268.99)" fill="url(#linear-gradient)"/>
10
- <path id="Union_40" data-name="Union 40" d="M8.724,35H0l0,0,4.362-6v0l8.618-11.861.02.028,3.762-5.179,0,0L25.383.127l.043.058.026-.036L38.368,17.927l-.008.006L46.4,29l0,0,4.361,6,0,0H42.037L33.418,23.136l0,0-4.363-6v0h0l-.044-.061,0,0-.858-1.18.011,0-2.759-3.8L21.126,17.99h-.041l-3.908,5.374L8.724,35h0Zm8-34.847L16.619,0l0,0h.218l-.111.152h0ZM34.107.124,34.016,0h.047l.087.064-.044.061Z" transform="translate(270.758 251.98)" fill="url(#linear-gradient)"/>
11
- <path id="Subtraction_10" data-name="Subtraction 10" d="M21.661,17.99H13.073L4.472,6.152l4.361-6L21.749,17.927l-.087.063ZM.109.152h0L0,0,0,0H.219L.109.152Z" transform="translate(287.377 268.989)" fill="url(#linear-gradient)"/>
12
- </g>
13
- </svg>
@@ -1,16 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.634" height="35" viewBox="0 0 24.634 35">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.222" y1="1" x2="0.787" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#88b053"/>
5
- <stop offset="1" stop-color="#50840b"/>
6
- </linearGradient>
7
- </defs>
8
- <g id="Group_4350" data-name="Group 4350" transform="translate(-1597.6 -781.549)">
9
- <g id="Group_4461" data-name="Group 4461" transform="translate(1597.6 781.55)">
10
- <g id="Group_4460" data-name="Group 4460" transform="translate(0 0)">
11
- <path id="Subtraction_8" data-name="Subtraction 8" d="M8.75,17.991,21.775.063,21.688,0H13.1L4.389,11.988l0,0-4.361,6,0,0H8.75Z" transform="translate(2.859 17.009)" fill="url(#linear-gradient)"/>
12
- <path id="Subtraction_8-2" data-name="Subtraction 8" d="M13.051,0,.026,17.927l.087.063H8.7L17.412,6l0,0,4.361-6,0,0H13.051Z" transform="translate(-0.026 0)" fill="url(#linear-gradient)"/>
13
- </g>
14
- </g>
15
- </g>
16
- </svg>
@@ -1,9 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="46.624" height="35.002" viewBox="0 0 46.624 35.002">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#d0002b"/>
5
- <stop offset="1" stop-color="#ea4a6b"/>
6
- </linearGradient>
7
- </defs>
8
- <path id="Union_1" data-name="Union 1" d="M-1718.525-7459l-5.5-7.575-1.032,1.42,4.429,6.071-.113.083h-20l0,0,4.479-6.165-1.023-1.408-5.5,7.574H-1754l0,0,5.6-7.715,0,0,11.076-15.242.085.116,6.578,9.018,6.616-9.017.065-.089,16.6,22.845-.111.083Zm-10.1-30.589a4.412,4.412,0,0,1,4.41-4.412,4.413,4.413,0,0,1,4.412,4.412,4.413,4.413,0,0,1-4.412,4.413A4.413,4.413,0,0,1-1728.62-7489.589Zm-13.114,0a4.412,4.412,0,0,1,4.412-4.412,4.412,4.412,0,0,1,4.41,4.412,4.412,4.412,0,0,1-4.41,4.413A4.413,4.413,0,0,1-1741.735-7489.589Z" transform="translate(1753.999 7494.002)" fill="url(#linear-gradient)"/>
9
- </svg>
@@ -1,9 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="35" height="35" viewBox="0 0 35 35">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#596e79"/>
5
- <stop offset="1" stop-color="#7c909b"/>
6
- </linearGradient>
7
- </defs>
8
- <path id="Subtraction_7" data-name="Subtraction 7" d="M-5678.321,8264.99h-13.18v-13.234h6.563v6.672h6.617v6.563Zm21.82,0h-13.18v-6.562h6.617v-6.672h6.563v13.234Zm0-21.875h-6.562v-6.562h-6.617v-6.562h13.18v13.125Zm-28.437,0h-6.562V8229.99h13.18v6.563h-6.617v6.563Z" transform="translate(5691.501 -8229.99)" fill="url(#linear-gradient)"/>
9
- </svg>
@@ -1,9 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="35" height="35" viewBox="0 0 35 35">
2
- <defs>
3
- <linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
4
- <stop offset="0" stop-color="#596e79"/>
5
- <stop offset="1" stop-color="#7c909b"/>
6
- </linearGradient>
7
- </defs>
8
- <path id="Subtraction_7" data-name="Subtraction 7" d="M-5678.321,8264.99h-13.18v-13.234h6.563v6.672h6.617v6.563Zm21.82,0h-13.18v-6.562h6.617v-6.672h6.563v13.234Zm0-21.875h-6.562v-6.562h-6.617v-6.562h13.18v13.125Zm-28.437,0h-6.562V8229.99h13.18v6.563h-6.617v6.563Z" transform="translate(5691.501 -8229.99)" fill="url(#linear-gradient)"/>
9
- </svg>
@@ -1,5 +0,0 @@
1
- export * from "./Alert/Alert";
2
- export * from "./Snackbar/Snackbar";
3
- export * from "./Spinner/Spinner";
4
- export * from "./Tooltip/Tooltip";
5
- export * from "./Tutorial/Tutorial";
@@ -1,4 +0,0 @@
1
- import { AppHeader } from "./AppHeader/AppHeader";
2
- import { TabsLayout } from "./TabsLayout/TabsLayout";
3
-
4
- export { AppHeader, TabsLayout };
@@ -1,10 +0,0 @@
1
- export * from "./DialogButton/DialogButton";
2
- export * from "./DropDownMenu/DropDownButton";
3
- export * from "./DropDownMenu/DropDownIcon";
4
- export * from "./DropDownMenu/DropDownMenu";
5
- export * from "./DropDownMenu/DropdownMenuItem";
6
-
7
- export * from "./Sidebar/Sidebar";
8
-
9
- export * from "./Stepper/Stepper";
10
- export * from "./TabsContainer/TabsContainer";
@@ -1,34 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react/*";
2
- import { Breadcrumbs } from "../../components/Navigation/Breadcrumbs/Breadcrumbs";
3
-
4
- const meta: Meta<typeof Breadcrumbs> = {
5
- title: "Navigation/Breadcrumbs",
6
- component: Breadcrumbs,
7
- argTypes: {
8
- links: {
9
- description: "Array of links",
10
- },
11
- },
12
- };
13
- export default meta;
14
-
15
- type Story = StoryObj<typeof Breadcrumbs>;
16
-
17
- export const Primary: Story = {
18
- args: {
19
- links: [
20
- {
21
- name: "External Exams",
22
- to: "/home",
23
- },
24
- {
25
- name: "Archived Exams",
26
- to: "/about",
27
- },
28
- {
29
- name: "Contact",
30
- to: "/contact",
31
- },
32
- ],
33
- },
34
- };
@@ -1,140 +0,0 @@
1
- import { admin } from "../assets/images";
2
- import {
3
- commuteSmall,
4
- enrollSmall,
5
- examsSmall,
6
- hostelSmall,
7
- payxSmall,
8
- peopleSmall,
9
- squareSmall,
10
- } from "../assets/images/svg";
11
-
12
- import { isDevelopment } from "./constants";
13
-
14
- interface Origin {
15
- dev: string;
16
- prod: string;
17
- }
18
-
19
- interface Origins {
20
- admin: Origin;
21
- enroll: Origin;
22
- payments: Origin;
23
- ums: Origin;
24
- exams: Origin;
25
- people: Origin;
26
- hostel: Origin;
27
- commute: Origin;
28
- }
29
-
30
- interface Application {
31
- title: string;
32
- path: string;
33
- icon: string;
34
- key: string;
35
- domainName: string;
36
- description: string;
37
- }
38
-
39
- const origins: Origins = {
40
- admin: {
41
- dev: "https://admin.campx.dev",
42
- prod: "https://admin.campx.in",
43
- },
44
- enroll: {
45
- dev: "https://enroll.campx.dev",
46
- prod: "https://enroll.campx.in",
47
- },
48
- payments: {
49
- dev: "https://payments.campx.dev",
50
- prod: "https://payments.campx.in",
51
- },
52
- ums: {
53
- dev: "https://ums.campx.dev",
54
- prod: "https://ums.campx.in",
55
- },
56
- exams: {
57
- dev: "https://exams.campx.dev",
58
- prod: "https://exams.campx.in",
59
- },
60
- people: {
61
- dev: "https://people.campx.dev",
62
- prod: "https://people.campx.in",
63
- },
64
- hostel: {
65
- dev: "https://hostel.campx.dev",
66
- prod: "https://hostel.campx.in",
67
- },
68
- commute: {
69
- dev: "https://commute.campx.dev",
70
- prod: "https://commute.campx.in",
71
- },
72
- };
73
-
74
- export const applications: Application[] = [
75
- {
76
- title: "Admin",
77
- path: isDevelopment ? origins.admin.dev : origins.admin.prod,
78
- icon: admin,
79
- key: "admin",
80
- domainName: "admin",
81
- description: "Manage Complete Campus Root Configuration",
82
- },
83
-
84
- {
85
- title: "EnrollX",
86
- key: "enroll_x",
87
- domainName: "enroll",
88
- path: isDevelopment ? origins.enroll.dev : origins.enroll.prod,
89
- icon: enrollSmall,
90
- description: "Manage Admissions in the Campus",
91
- },
92
- {
93
- title: "PayX",
94
- key: "payments",
95
- domainName: "payments",
96
- path: isDevelopment ? origins.payments.dev : origins.payments.prod,
97
- icon: payxSmall,
98
- description: "Manage Payments in the Campus",
99
- },
100
- {
101
- title: "CollegeX",
102
- path: isDevelopment ? origins.ums.dev : origins.ums.prod,
103
- icon: squareSmall,
104
- key: "square",
105
- domainName: "ums",
106
- description: "Manage Complete Campus Activities",
107
- },
108
- {
109
- title: "ExamX",
110
- key: "exams",
111
- domainName: "exams",
112
- path: isDevelopment ? origins.exams.dev : origins.exams.prod,
113
- icon: examsSmall,
114
- description: "Manage all Examinations in the Campus",
115
- },
116
- {
117
- title: "PeopleX",
118
- key: "hrms",
119
- domainName: "people",
120
- path: isDevelopment ? origins.people.dev : origins.people.prod,
121
- icon: peopleSmall,
122
- description: "Manage People in the Campus",
123
- },
124
- {
125
- title: "HostelX",
126
- key: "hostels",
127
- domainName: "hostel",
128
- path: isDevelopment ? origins.hostel.dev : origins.hostel.prod,
129
- icon: hostelSmall,
130
- description: "Manage Hostels in the Campus",
131
- },
132
- {
133
- title: "CommuteX",
134
- key: "commute_x",
135
- domainName: "commute",
136
- path: isDevelopment ? origins.commute.dev : origins.commute.prod,
137
- icon: commuteSmall,
138
- description: "Manage Commute in the Campus",
139
- },
140
- ];
@@ -1,18 +0,0 @@
1
- import axios from "axios";
2
- import { sessionKey } from "./constants";
3
-
4
- const tenantCode = "campx";
5
- const institutionCode = "campx";
6
- const isProduction = process.env.NODE_ENV === "production";
7
-
8
- export const campxAxios = axios.create({
9
- baseURL: process.env.REACT_APP_API_HOST,
10
- withCredentials: true,
11
- headers: {
12
- "x-tenant-id": tenantCode,
13
- ...(!isProduction
14
- ? { campx_session_key: sessionKey || "665f03e7ae4c45811c3f5818" }
15
- : {}),
16
- "x-institution-id": institutionCode,
17
- },
18
- });
@@ -1,22 +0,0 @@
1
- import {
2
- admin,
3
- collegex,
4
- commutex,
5
- enrollx,
6
- examx,
7
- hostelx,
8
- payx,
9
- peoplex,
10
- } from "../assets/images";
11
-
12
- export const imageMap: any = {
13
- ums: collegex,
14
- enroll: enrollx,
15
- exams: examx,
16
- payments: payx,
17
- people: peoplex,
18
- campx: collegex,
19
- commute: commutex,
20
- hostel: hostelx,
21
- admin: admin,
22
- };