@campxdev/react-blueprint 1.0.4 → 1.0.5

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 (34) hide show
  1. package/package.json +5 -2
  2. package/public/index.html +3 -4
  3. package/src/components/Assets/Icons/IconComponents/CompletedStateIcon.tsx +35 -0
  4. package/src/components/Assets/Icons/IconComponents/SaveIcon.tsx +42 -0
  5. package/src/components/Assets/Icons/IconComponents/ShareIcon.tsx +61 -0
  6. package/src/components/Assets/Icons/Icons.tsx +6 -0
  7. package/src/components/Charts/BarChart/BarChart.tsx +160 -0
  8. package/src/components/Charts/LineChart/LineChart.tsx +119 -0
  9. package/src/components/Charts/PieChart/PieChart.tsx +95 -0
  10. package/src/components/Charts/TreeMap/TreeMap.tsx +151 -0
  11. package/src/components/Charts/types/types.ts +43 -0
  12. package/src/components/DataDisplay/Accordion/Accordion.tsx +55 -0
  13. package/src/components/DataDisplay/Accordion/utils/StandardImageList.tsx +70 -0
  14. package/src/components/DataDisplay/export.ts +4 -1
  15. package/src/components/Input/export.ts +1 -0
  16. package/src/components/Layout/TabsLayout/Tabs.tsx +67 -0
  17. package/src/components/Layout/TabsLayout/TabsLayout.tsx +56 -0
  18. package/src/components/Layout/exports.ts +4 -0
  19. package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +40 -0
  20. package/src/components/Navigation/Sidebar/styles.tsx +1 -1
  21. package/src/components/Navigation/Stepper/Stepper.tsx +59 -0
  22. package/src/components/Navigation/Stepper/StepperComponents.tsx +72 -0
  23. package/src/components/Navigation/exports.ts +4 -0
  24. package/src/components/export.ts +1 -1
  25. package/src/stories/Charts/BarChart.stories.tsx +142 -0
  26. package/src/stories/Charts/LineChart.stories.tsx +112 -0
  27. package/src/stories/Charts/PieChart.stories.tsx +137 -0
  28. package/src/stories/Charts/Treemap.stories.tsx +224 -0
  29. package/src/stories/DataDisplay/Accordion.stories.tsx +62 -0
  30. package/src/stories/Layout/TabsLayout.stories.tsx +53 -0
  31. package/src/stories/Navigation/Breadcrumbs.stories.tsx +34 -0
  32. package/src/stories/Navigation/Stepper.stories.tsx +51 -0
  33. package/src/themes/commonTheme.ts +47 -1
  34. package/types/theme.d.ts +1 -1
@@ -0,0 +1,53 @@
1
+ import { Meta, StoryObj } from "@storybook/react/*";
2
+ import { TabsLayout } from "../../components/export";
3
+
4
+ const meta: Meta<typeof TabsLayout> = {
5
+ title: "Layout/TabsLayout",
6
+ component: TabsLayout,
7
+ argTypes: {},
8
+ };
9
+ export default meta;
10
+
11
+ type Story = StoryObj<typeof TabsLayout>;
12
+
13
+ export const Primary: Story = {
14
+ args: {
15
+ menu: [
16
+ {
17
+ path: "degrees",
18
+ title: "Degrees",
19
+ permissionKey: "degreesPermission",
20
+ },
21
+ {
22
+ path: "calendar",
23
+ title: "Academic Calendar",
24
+ permissionKey: "calendarPermission",
25
+ },
26
+ {
27
+ path: "programs",
28
+ title: "Programs",
29
+ permissionKey: "programsPermission",
30
+ },
31
+ {
32
+ path: "semester",
33
+ title: "Semester",
34
+ permissionKey: "semesterPermission",
35
+ },
36
+ {
37
+ path: "courses",
38
+ title: "Courses",
39
+ permissionKey: "coursesPermission",
40
+ },
41
+ {
42
+ path: "professors",
43
+ title: "Professors",
44
+ permissionKey: "professorsPermission",
45
+ },
46
+ {
47
+ path: "Faculties",
48
+ title: "Faculties",
49
+ permissionKey: "facultiesPermission",
50
+ },
51
+ ],
52
+ },
53
+ };
@@ -0,0 +1,34 @@
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
+ };
@@ -0,0 +1,51 @@
1
+ import { Meta, StoryObj } from "@storybook/react/*";
2
+ import { Stepper } from "../../components/Navigation/Stepper/Stepper";
3
+
4
+ const meta: Meta<typeof Stepper> = {
5
+ title: "Navigation/Stepper",
6
+ component: Stepper,
7
+ argTypes: {},
8
+ };
9
+
10
+ export default meta;
11
+
12
+ type Story = StoryObj<typeof Stepper>;
13
+
14
+ export const VerticalStepper: Story = {
15
+ args: {
16
+ orientation: "vertical",
17
+ steps: [
18
+ {
19
+ label: "Semester Configuration",
20
+ description:
21
+ "Configure Credits, Tuition Fee Requirements, Registration Dates",
22
+ },
23
+ {
24
+ label: "Semester Calender",
25
+ description:
26
+ "Manage the timeline of the semester. Add new or edit the following events as per the semester needs",
27
+ },
28
+ {
29
+ label: "Students and Sections",
30
+ description: "Add or move students to their respective sections",
31
+ },
32
+ {
33
+ label: "Courses",
34
+ description:
35
+ "Verify the courses that are going to be taught in this semester",
36
+ },
37
+ {
38
+ label: "Assign Faculty",
39
+ description: "Assign Faculty to the available subjects",
40
+ },
41
+ ],
42
+ activeStep: 2,
43
+ },
44
+ };
45
+
46
+ export const HorizontalStepper: Story = {
47
+ args: {
48
+ ...VerticalStepper.args,
49
+ orientation: "horizontal",
50
+ },
51
+ };
@@ -15,6 +15,47 @@ export const getCommonTheme = (mode: Theme) => {
15
15
  fontFamily: ["Heebo", "Poppins", "sans-serif"].join(","),
16
16
  },
17
17
  components: {
18
+ MuiAccordionSummary: {
19
+ styleOverrides: {
20
+ root: {
21
+ justifyContent: "flex-start",
22
+ paddingLeft: "20px",
23
+ "&.Mui-expanded": {
24
+ minHeight: "0px",
25
+ },
26
+ },
27
+ content: {
28
+ flexGrow: "unset",
29
+ margin: "0px 16px 0px 0px",
30
+ "&.Mui-expanded": {
31
+ margin: "16px 16px 0px 0px",
32
+ },
33
+ },
34
+ expandIconWrapper: {
35
+ "&.Mui-expanded": {
36
+ transform: "rotate(180deg)",
37
+ marginTop: "16px",
38
+ },
39
+ },
40
+ },
41
+ },
42
+ MuiStepLabel: {
43
+ styleOverrides: {
44
+ root: {
45
+ marginLeft: "2px",
46
+ },
47
+ },
48
+ },
49
+ MuiBreadcrumbs: {
50
+ styleOverrides: {
51
+ root: {
52
+ fontFamily: "Poppins",
53
+ },
54
+ separator: {
55
+ color: ColorTokens.text.tertiary,
56
+ },
57
+ },
58
+ },
18
59
  MuiIconButton: {
19
60
  defaultProps: {
20
61
  disableRipple: true,
@@ -178,7 +219,7 @@ export const getCommonTheme = (mode: Theme) => {
178
219
  display: "none",
179
220
  },
180
221
  },
181
- minWidth: "350px",
222
+ minWidth: "200px",
182
223
  margin: "5px 0px",
183
224
  },
184
225
  },
@@ -285,6 +326,11 @@ export const getCommonTheme = (mode: Theme) => {
285
326
  defaultProps: {
286
327
  underline: "none",
287
328
  },
329
+ styleOverrides: {
330
+ root: {
331
+ color: ColorTokens.text.tertiary,
332
+ },
333
+ },
288
334
  },
289
335
  MuiTabs: {
290
336
  styleOverrides: {
package/types/theme.d.ts CHANGED
@@ -28,7 +28,7 @@ declare module "@mui/material/styles" {
28
28
  grey: string;
29
29
  };
30
30
  border: {
31
- main: string;
31
+ primary: string;
32
32
  };
33
33
  highlight: {
34
34
  highlightGreen: string;