@campxdev/react-blueprint 0.1.27 → 0.1.29

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 (91) hide show
  1. package/.storybook/main.ts +0 -1
  2. package/.storybook/preview.tsx +10 -5
  3. package/.vscode/settings.json +3 -0
  4. package/package.json +1 -1
  5. package/src/App.tsx +4 -5
  6. package/src/components/Assets/Icons/IconComponents/AdministratorIcon.tsx +26 -0
  7. package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +25 -0
  8. package/src/components/{Icons/export.ts → Assets/Icons/Icons.tsx} +4 -0
  9. package/src/components/Assets/export.ts +1 -0
  10. package/src/components/DataDisplay/DataTable/TablePagination.tsx +3 -1
  11. package/src/components/DataDisplay/export.ts +2 -0
  12. package/src/components/Feedback/Tooltip/Tooltip.tsx +4 -6
  13. package/src/components/Input/LabelWrapper/LabelWrapper.tsx +1 -1
  14. package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +1 -1
  15. package/src/components/Input/SingleSelect/SingleSelect.tsx +0 -1
  16. package/src/components/Input/export.ts +5 -0
  17. package/src/components/Layout/AppHeader/AppHeader.tsx +55 -0
  18. package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/HeaderActions.tsx +25 -12
  19. package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/UserBox.tsx +33 -39
  20. package/src/components/Layout/AppHeader/styles/styles.tsx +37 -0
  21. package/src/components/Navigation/exports.ts +15 -0
  22. package/src/components/export.ts +7 -13
  23. package/src/{components/Icons → stories/Assets}/Icons.stories.tsx +11 -1
  24. package/src/{components/DataDisplay/Avatar → stories/DataDisplay}/CircularAvatar.stories.tsx +4 -1
  25. package/src/{components/DataDisplay/DataTable → stories/DataDisplay}/DataTable.stories.tsx +2 -1
  26. package/src/{components/DataDisplay/SidePanel → stories/DataDisplay}/SidePanel.stories.tsx +4 -1
  27. package/src/{components/DataDisplay/Avatar → stories/DataDisplay}/SquareAvatar.stories.tsx +4 -1
  28. package/src/{themes → stories/DesignSystem}/colorTokens.stories.tsx +7 -11
  29. package/src/{themes → stories/DesignSystem}/typography.stories.tsx +2 -1
  30. package/src/{components/Feedback/Spinner → stories/Feedback}/Spinner.stories.tsx +1 -2
  31. package/src/{components/Feedback/Tooltip → stories/Feedback}/Tooltip.stories.tsx +8 -4
  32. package/src/{components/Input/Button → stories/Input}/Button.stories.tsx +1 -2
  33. package/src/{components/Input/Chips → stories/Input}/Chips.stories.tsx +1 -1
  34. package/src/{components/Input/MultiCheckBox → stories/Input}/MultiCheckBox.stories.tsx +4 -1
  35. package/src/{components/Input/OtpInput → stories/Input}/OtpInput.stories.tsx +3 -2
  36. package/src/{components/Input/RadioGroup → stories/Input}/RadioGroup.stories.tsx +4 -1
  37. package/src/{components/Input/SearchBar → stories/Input}/SearchBar.stories.tsx +1 -1
  38. package/src/{components/Input/SingleCheckBox → stories/Input}/SingleCheckBox.stories.tsx +4 -2
  39. package/src/{components/Input/SingleSelect → stories/Input}/SingleSelect.stories.tsx +4 -1
  40. package/src/{components/Input/Switch → stories/Input}/Switch.stories.tsx +1 -2
  41. package/src/{components/Input/TextField → stories/Input}/TextField.stories.tsx +20 -6
  42. package/src/stories/Layout/AppHeader.stories.tsx +68 -0
  43. package/src/{components/Layout/LayoutWrapper → stories/Layout}/LayoutWrapper.stories.tsx +8 -5
  44. package/src/{components/Layout/PageContent → stories/Layout}/PageContent.stories.tsx +1 -1
  45. package/src/{components/Layout/SideNavigation → stories/Layout}/SideNavigation.stories.tsx +2 -2
  46. package/src/{components/Navigation/DialogButton → stories/Navigation}/DialogButton.stories.tsx +3 -1
  47. package/src/{components/Navigation/DropDownMenu → stories/Navigation}/DropDownMenu.stories.tsx +8 -5
  48. package/src/{components/Navigation/TabsContainer → stories/Navigation}/TabsContainer.stories.tsx +5 -2
  49. package/src/themes/colorTokens/colorPalette.tsx +48 -0
  50. package/src/themes/colorTokens/darkColorTokens.tsx +42 -0
  51. package/src/themes/colorTokens/lightColorTokens.ts +42 -0
  52. package/src/themes/commonTheme.ts +15 -18
  53. package/src/themes/darkTheme.ts +4 -12
  54. package/src/themes/lightTheme.ts +2 -11
  55. package/types/theme.d.ts +22 -12
  56. package/src/components/Icons/Icons.tsx +0 -14
  57. package/src/components/Layout/Header/AppHeader.stories.tsx +0 -207
  58. package/src/components/Layout/Header/AppHeader.tsx +0 -71
  59. package/src/components/Layout/Header/AppLogo.tsx +0 -51
  60. package/src/components/Layout/Header/styles/styles.tsx +0 -69
  61. package/src/themes/colorTokens.ts +0 -77
  62. /package/src/components/{Icons → Assets/Icons}/IconComponents/ActiveDevicesIcon.tsx +0 -0
  63. /package/src/components/{Icons → Assets/Icons}/IconComponents/AppsIcon.tsx +0 -0
  64. /package/src/components/{Icons → Assets/Icons}/IconComponents/BulbIcon.tsx +0 -0
  65. /package/src/components/{Icons → Assets/Icons}/IconComponents/CareerIcon.tsx +0 -0
  66. /package/src/components/{Icons → Assets/Icons}/IconComponents/CheckedCheckBoxIcon.tsx +0 -0
  67. /package/src/components/{Icons → Assets/Icons}/IconComponents/CheckedRadioIcon.tsx +0 -0
  68. /package/src/components/{Icons → Assets/Icons}/IconComponents/ClogWheelIcon.tsx +0 -0
  69. /package/src/components/{Icons → Assets/Icons}/IconComponents/CrossIcon.tsx +0 -0
  70. /package/src/components/{Icons → Assets/Icons}/IconComponents/DashBoardIcon.tsx +0 -0
  71. /package/src/components/{Icons → Assets/Icons}/IconComponents/DeviceIcon.tsx +0 -0
  72. /package/src/components/{Icons → Assets/Icons}/IconComponents/ExamResultIcon.tsx +0 -0
  73. /package/src/components/{Icons → Assets/Icons}/IconComponents/ExportIcon.tsx +0 -0
  74. /package/src/components/{Icons → Assets/Icons}/IconComponents/FilterIcon.tsx +0 -0
  75. /package/src/components/{Icons → Assets/Icons}/IconComponents/HelpIcon.tsx +0 -0
  76. /package/src/components/{Icons → Assets/Icons}/IconComponents/HomeIcon.tsx +0 -0
  77. /package/src/components/{Icons → Assets/Icons}/IconComponents/InfoIcon.tsx +0 -0
  78. /package/src/components/{Icons → Assets/Icons}/IconComponents/InstitutionsIcon.tsx +0 -0
  79. /package/src/components/{Icons → Assets/Icons}/IconComponents/LeftIcon.tsx +0 -0
  80. /package/src/components/{Icons → Assets/Icons}/IconComponents/LocationIcon.tsx +0 -0
  81. /package/src/components/{Icons → Assets/Icons}/IconComponents/LogoutIcon.tsx +0 -0
  82. /package/src/components/{Icons → Assets/Icons}/IconComponents/NavigationIcon.tsx +0 -0
  83. /package/src/components/{Icons → Assets/Icons}/IconComponents/NotificationIcon.tsx +0 -0
  84. /package/src/components/{Icons → Assets/Icons}/IconComponents/ProductFeaturesIcon.tsx +0 -0
  85. /package/src/components/{Icons → Assets/Icons}/IconComponents/ProfileIcon.tsx +0 -0
  86. /package/src/components/{Icons → Assets/Icons}/IconComponents/RightIcon.tsx +0 -0
  87. /package/src/components/{Icons → Assets/Icons}/IconComponents/TicketsIcon.tsx +0 -0
  88. /package/src/components/{Icons → Assets/Icons}/IconComponents/UncheckCheckBoxIcon.tsx +0 -0
  89. /package/src/components/{Icons → Assets/Icons}/IconComponents/UncheckedRadioIcon.tsx +0 -0
  90. /package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/CogWheelMenu.tsx +0 -0
  91. /package/src/components/Layout/{Header → AppHeader}/AppsMenu.tsx +0 -0
@@ -1,20 +1,12 @@
1
1
  import { createTheme } from "@mui/material/styles";
2
- import { DarkColorTokens } from "./colorTokens";
3
- import { getCommonTheme, Theme } from "./commonTheme";
2
+
3
+ import { DarkColorTokens } from "./colorTokens/darkColorTokens";
4
+ import { Theme, getCommonTheme } from "./commonTheme";
4
5
 
5
6
  export const darkTheme = createTheme({
6
7
  palette: {
7
8
  mode: "dark",
8
- primary: DarkColorTokens.primary,
9
- secondary: DarkColorTokens.secondary,
10
- background: DarkColorTokens.background,
11
- text: DarkColorTokens.text,
12
- highlight: DarkColorTokens.highlight,
13
- grey: DarkColorTokens.grey,
14
- info: DarkColorTokens.info,
15
- // defaultProfileIcon: {
16
- // main: "#293640", // Default profile images and icons color for dark mode
17
- // },
9
+ ...DarkColorTokens,
18
10
  },
19
11
  ...getCommonTheme(Theme.DARK),
20
12
  });
@@ -1,20 +1,11 @@
1
1
  import { createTheme } from "@mui/material/styles";
2
- import { LightColorTokens } from "./colorTokens";
2
+ import { LightColorTokens } from "./colorTokens/lightColorTokens";
3
3
  import { Theme, getCommonTheme } from "./commonTheme";
4
4
 
5
5
  export const lightTheme = createTheme({
6
6
  palette: {
7
7
  mode: "light",
8
- primary: LightColorTokens.primary,
9
- secondary: LightColorTokens.secondary,
10
- background: LightColorTokens.background,
11
- text: LightColorTokens.text,
12
- highlight: LightColorTokens.highlight,
13
- grey: LightColorTokens.grey,
14
- info: LightColorTokens.info,
15
- // defaultProfileIcon: {
16
- // main: "#BDD6E8", // Default profile images and icons color
17
- // },
8
+ ...LightColorTokens,
18
9
  },
19
10
  ...getCommonTheme(Theme.LIGHT),
20
11
  });
package/types/theme.d.ts CHANGED
@@ -14,25 +14,35 @@ declare module "@mui/material/styles" {
14
14
  light: string;
15
15
  dark: string;
16
16
  };
17
+ tertiary: {
18
+ main: string;
19
+ };
17
20
  text: {
18
21
  primary: string;
19
22
  secondary: string;
23
+ tertiary: string;
20
24
  };
21
- background: {
22
- paper: string;
23
- default: string;
24
- };
25
- highlight: {
26
- main: string;
25
+ surface: {
26
+ defaultBackground: string;
27
+ paperBackground: string;
28
+ grey: string;
27
29
  };
28
- info: {
30
+ border: {
29
31
  main: string;
30
32
  };
31
- grey: {
32
- main: string;
33
- };
34
- info: {
35
- main: string;
33
+ highlight: {
34
+ highlightGreen: string;
35
+ highlightOrange: string;
36
+ highlightBlue: string;
37
+ highlightRed: string;
38
+ highlightPink: string;
39
+ highlightYellow: string;
40
+ greenBackground: string;
41
+ orangeBackground: string;
42
+ blueBackground: string;
43
+ redBackground: string;
44
+ pinkBackground: string;
45
+ yellowBackground: string;
36
46
  };
37
47
  };
38
48
  }
@@ -1,14 +0,0 @@
1
- import { Stack } from "@mui/material";
2
- import { Icons } from "./export";
3
-
4
- export const IconsStory = () => {
5
- return (
6
- <Stack gap={2} direction={"row"}>
7
- {Object.values(Icons).map((Icon) => (
8
- <Icon />
9
- ))}
10
- </Stack>
11
- );
12
- };
13
-
14
- export default IconsStory;
@@ -1,207 +0,0 @@
1
- import { IconButton } from "@mui/material";
2
- import { Meta, StoryObj } from "@storybook/react";
3
- import { DropdownMenuItem } from "../../Navigation/DropDownMenu/DropdownMenuItem";
4
- import { Icons } from "../../export";
5
- import { AppHeader, AppHeaderProps } from "./AppHeader";
6
- import { AppsMenu } from "./AppsMenu";
7
- import HelpButton from "../../Input/HelpButton/HelpButton";
8
-
9
- // Define the default export with Meta type including the component type
10
- const meta: Meta<typeof AppHeader> = {
11
- title: "Layout/AppHeader",
12
- component: AppHeader,
13
- tags: ["autodocs"],
14
- argTypes: {
15
- clientLogo: {
16
- control: "text",
17
- description: "The logo of the client.",
18
- },
19
- fullName: {
20
- control: "text",
21
- description: "The full name of the user.",
22
- },
23
- designation: {
24
- control: "text",
25
- description: "The Designation of the user.",
26
- },
27
- profileUrl: {
28
- control: "text",
29
- description: "The URL of the user's profile photo.",
30
- },
31
- userBoxActions: {
32
- control: "object",
33
- description: "Actions for the user box.",
34
- },
35
- actions: {
36
- control: "object",
37
- description: "Custom actions to be displayed.",
38
- },
39
-
40
- containerSx: {
41
- control: "object",
42
- description: "Styles applied to the container.",
43
- },
44
- imageSx: {
45
- control: "object",
46
- description: "Styles applied to the client logo image.",
47
- },
48
- profileSx: {
49
- control: "object",
50
- description: "Styles applied to the profile section.",
51
- },
52
- headerSx: {
53
- control: "object",
54
- description: "Styles applied to the profile section.",
55
- },
56
- },
57
- };
58
-
59
- export default meta;
60
- type Story = StoryObj<typeof AppHeader>;
61
-
62
- // Primary story
63
- export const Primary: Story = {
64
- render: (args: AppHeaderProps) => <AppHeader {...args} />,
65
- args: {
66
- clientLogo: "https://via.placeholder.com/150",
67
- fullName: "John Doe",
68
- designation: "Head of the Department",
69
- appsMenu: (
70
- <AppsMenu
71
- apps={[
72
- "exams",
73
- "square",
74
- "admin",
75
- "enroll",
76
- "payments",
77
- "hrms",
78
- "hostels",
79
- "commute_x",
80
- ]}
81
- />
82
- ),
83
- userBoxActions: [
84
- { label: "Action 1", onClick: () => alert("Action 1 clicked") },
85
- { label: "Action 2", onClick: () => alert("Action 2 clicked") },
86
- ],
87
- },
88
- };
89
-
90
- // Story with no apps menu
91
- export const WithNoAppsMenu: Story = {
92
- render: (args: AppHeaderProps) => <AppHeader {...args} />,
93
- args: {
94
- clientLogo: "https://via.placeholder.com/150",
95
- fullName: "John Doe",
96
- designation: "Head of the Department",
97
- appsMenu: <AppsMenu apps={[]} />,
98
- userBoxActions: [
99
- { label: "Action 1", onClick: () => alert("Action 1 clicked") },
100
- { label: "Action 2", onClick: () => alert("Action 2 clicked") },
101
- ],
102
- },
103
- };
104
-
105
- // Story with actions
106
- export const WithActions: Story = {
107
- render: (args: AppHeaderProps) => <AppHeader {...args} />,
108
- args: {
109
- clientLogo: "https://via.placeholder.com/150",
110
- fullName: "John Doe",
111
- designation: "Head of the Department",
112
- appsMenu: (
113
- <AppsMenu
114
- apps={[
115
- "exams",
116
- "square",
117
- "admin",
118
- "enroll",
119
- "payments",
120
- "hrms",
121
- "hostels",
122
- "commute_x",
123
- ]}
124
- />
125
- ),
126
- actions: [
127
- <IconButton>
128
- <Icons.CareerIcon />
129
- </IconButton>,
130
- <IconButton>
131
- <Icons.ExamResultIcon />
132
- </IconButton>,
133
- <HelpButton />,
134
- ],
135
- userBoxActions: [
136
- { label: "Action 1", onClick: () => alert("Action 1 clicked") },
137
- { label: "Action 2", onClick: () => alert("Action 2 clicked") },
138
- ],
139
- },
140
- };
141
-
142
- export const WithCustomHeaderActions: Story = {
143
- render: (args: AppHeaderProps) => <AppHeader {...args} />,
144
- args: {
145
- clientLogo: "https://via.placeholder.com/150",
146
- fullName: "John Doe",
147
- designation: "Head of the Department",
148
- appsMenu: (
149
- <AppsMenu
150
- apps={[
151
- "exams",
152
- "square",
153
- "admin",
154
- "enroll",
155
- "payments",
156
- "hrms",
157
- "hostels",
158
- "commute_x",
159
- ]}
160
- />
161
- ),
162
- customHeaderActions: <div>Custom Header Actions</div>,
163
- userBoxActions: [
164
- { label: "Action 1", onClick: () => alert("Action 1 clicked") },
165
- { label: "Action 2", onClick: () => alert("Action 2 clicked") },
166
- ],
167
- },
168
- };
169
-
170
- // Story with clog wheel actions
171
- export const WithClogWheel: Story = {
172
- render: (args: AppHeaderProps) => <AppHeader {...args} />,
173
- args: {
174
- clientLogo: "https://via.placeholder.com/150",
175
- fullName: "John Doe",
176
- designation: "Head of the Department",
177
- appsMenu: (
178
- <AppsMenu
179
- apps={[
180
- "exams",
181
- "square",
182
- "admin",
183
- "enroll",
184
- "payments",
185
- "hrms",
186
- "hostels",
187
- "commute_x",
188
- ]}
189
- />
190
- ),
191
- userBoxActions: [
192
- { label: "Action 1", onClick: () => alert("Action 1 clicked") },
193
- { label: "Action 2", onClick: () => alert("Action 2 clicked") },
194
- ],
195
- cogWheelMenu: [
196
- <DropdownMenuItem
197
- label={"Student Payments"}
198
- onClick={() => {
199
- window.open("/payment", "_blank");
200
- }}
201
- />,
202
- ],
203
- // headerSx: {
204
- // position: "relative",
205
- // },
206
- },
207
- };
@@ -1,71 +0,0 @@
1
- import { Stack } from "@mui/material";
2
- import { ReactNode } from "react";
3
- import { AppLogo } from "./AppLogo";
4
- import HeaderActions from "./HeaderActions/HeaderActions";
5
- import {
6
- StyledActionBox,
7
- StyledContainer,
8
- StyledHeader,
9
- } from "./styles/styles";
10
-
11
- export interface AppHeaderProps {
12
- actions?: ReactNode[];
13
- appsMenu?: ReactNode;
14
- clientLogo?: string;
15
- cogWheelMenu?: ReactNode[];
16
- customHeaderActions?: ReactNode;
17
- fullName?: string;
18
- designation?: string;
19
- profileUrl?: string;
20
- userBoxActions?: {
21
- label: ReactNode;
22
- icon?: ReactNode;
23
- onClick: any;
24
- }[];
25
- containerSx?: any;
26
- imageSx?: any;
27
- headerSx?: any;
28
- profileSx?: any;
29
- }
30
-
31
- export const AppHeader = ({
32
- actions = [],
33
- appsMenu,
34
- clientLogo,
35
- designation,
36
- cogWheelMenu = [],
37
- customHeaderActions,
38
- fullName,
39
- profileUrl,
40
- userBoxActions = [],
41
- containerSx = {},
42
- headerSx = {},
43
- profileSx = {},
44
- imageSx = {},
45
- }: AppHeaderProps) => {
46
- return (
47
- <StyledHeader sx={headerSx}>
48
- <StyledContainer sx={containerSx}>
49
- <Stack alignItems={"center"} gap={"10px"} flexDirection={"row"}>
50
- {appsMenu}
51
- <AppLogo clientLogo={clientLogo ?? ""} imageSx={imageSx} />
52
- </Stack>
53
- <StyledActionBox>
54
- {customHeaderActions ? (
55
- customHeaderActions
56
- ) : (
57
- <HeaderActions
58
- cogWheelMenu={cogWheelMenu}
59
- fullName={fullName ?? ""}
60
- designation={designation}
61
- userBoxActions={userBoxActions}
62
- profileUrl={profileUrl ?? ""}
63
- actions={actions}
64
- profileSx={profileSx}
65
- />
66
- )}
67
- </StyledActionBox>
68
- </StyledContainer>
69
- </StyledHeader>
70
- );
71
- };
@@ -1,51 +0,0 @@
1
- import { Divider, Typography } from "@mui/material";
2
- import { applications } from "../../../utils/applications";
3
- import { isDevelopment } from "../../../utils/constants";
4
- import { imageMap } from "../../../utils/imageMap";
5
- import {
6
- StyledImageWrapper,
7
- StyledLogosWrapper,
8
- StyledRouterLink,
9
- } from "./styles/styles";
10
-
11
- export interface AppLogoProps {
12
- clientLogo: string;
13
- imageSx?: any;
14
- }
15
-
16
- export const AppLogo = ({ clientLogo, imageSx }: AppLogoProps) => {
17
- const originSubdomain =
18
- window.location.host.split(".")?.slice(-3)[0] ?? "ums";
19
- const currentApp: string =
20
- applications.find((item) => item.domainName === originSubdomain)
21
- ?.domainName ?? "admin";
22
-
23
- return (
24
- <StyledRouterLink to={"/"}>
25
- <StyledLogosWrapper>
26
- <StyledImageWrapper sx={imageSx}>
27
- <img src={imageMap[currentApp]} alt="logo" />
28
- </StyledImageWrapper>
29
- <Divider
30
- orientation="vertical"
31
- variant="middle"
32
- flexItem
33
- sx={{ height: "20px" }}
34
- />
35
- <StyledImageWrapper sx={{ height: "auto" }}>
36
- {isDevelopment ? (
37
- <Typography variant="subtitle1">Developer</Typography>
38
- ) : (
39
- <img
40
- src={clientLogo}
41
- onError={(e: any) => {
42
- e.target.src = imageMap.campx;
43
- }}
44
- alt="campx"
45
- />
46
- )}
47
- </StyledImageWrapper>
48
- </StyledLogosWrapper>
49
- </StyledRouterLink>
50
- );
51
- };
@@ -1,69 +0,0 @@
1
- import { Avatar, Box, Typography, styled } from "@mui/material";
2
- import { Link } from "react-router-dom";
3
-
4
- export const StyledContainer = styled(Box)(({ theme }) => ({
5
- backgroundColor: theme.palette.background.paper,
6
- display: "flex",
7
- alignItems: "center",
8
- justifyContent: "space-between",
9
- height: "60px",
10
- margin: "auto",
11
- width: "90%",
12
- }));
13
-
14
- export const StyledHeader = styled("header")(({ theme }) => ({
15
- width: "100%",
16
- position: "fixed",
17
- top: 0,
18
- left: 0,
19
- backgroundColor: theme.palette.background.paper,
20
- }));
21
-
22
- export const StyledActionBox = styled(Box)(({ theme }) => ({
23
- marginRight: "20px",
24
- display: "flex",
25
- alignItems: "center",
26
- gap: "14px",
27
- }));
28
-
29
- export const StyledRouterLink = styled(Link)(() => ({
30
- textDecoration: "none",
31
- }));
32
-
33
- export const StyledLogosWrapper = styled(Box)(() => ({
34
- display: "flex",
35
- alignItems: "center",
36
- gap: "10px",
37
- padding: "10px",
38
- transition: "background ease 0.3s",
39
- borderRadius: "5px",
40
- "&:hover": {
41
- background: "rgba(0, 0, 0, 0.05)",
42
- },
43
- }));
44
-
45
- export const StyledImageWrapper = styled(Box)(() => ({
46
- width: "auto",
47
- height: "22px",
48
- display: "flex",
49
- img: {
50
- width: "100%",
51
- height: "25px",
52
- objectFit: "contain",
53
- },
54
- }));
55
-
56
- export const StyledAvatar = styled(Avatar)(({ theme }) => ({
57
- background: theme.palette.background.default,
58
- cursor: "pointer",
59
- height: "42px",
60
- width: "42px",
61
- border: `1px solid ${theme.palette.primary.main}`,
62
- fontSize: "1rem",
63
- fontWeight: "600",
64
- color: theme.palette.primary.main,
65
- }));
66
-
67
- export const StyledTypography = styled(Typography)(({ theme }) => ({
68
- color: theme.palette.text.secondary,
69
- }));
@@ -1,77 +0,0 @@
1
- export const LightColorTokens = {
2
- primary: {
3
- main: "#323167",
4
- light: "#5C5E8C",
5
- dark: "#1F1E4A",
6
- },
7
- secondary: {
8
- main: "#E0E0E7",
9
- light: "#F0F0F5",
10
- dark: "#CBCBD9",
11
- },
12
- background: {
13
- default: "#F7F8FA",
14
- paper: "#FFFFFF",
15
- },
16
- text: {
17
- primary: "#121212",
18
- secondary: "#595959",
19
- },
20
- success: {
21
- main: "#88B053",
22
- },
23
- error: {
24
- main: "#F2353C",
25
- },
26
- warning: {
27
- main: "#ED9035",
28
- },
29
- info: {
30
- main: "#4BAABE",
31
- },
32
- highlight: {
33
- main: "#D4483E",
34
- },
35
- grey: {
36
- main: "#F2F2F2",
37
- },
38
- };
39
-
40
- export const DarkColorTokens = {
41
- primary: {
42
- main: "#9FA8DA",
43
- light: "#C5CAE9",
44
- dark: "#5C6BC0",
45
- },
46
- secondary: {
47
- main: "#2F3151",
48
- light: "#4B4D72",
49
- dark: "#1C1D2F",
50
- },
51
- background: {
52
- default: "#1D2127",
53
- paper: "#161A1D",
54
- },
55
- text: {
56
- primary: "#FFFFFF",
57
- secondary: "#B9BBBB",
58
- },
59
- success: {
60
- main: "#88B053",
61
- },
62
- error: {
63
- main: "#F2353C",
64
- },
65
- warning: {
66
- main: "#ED9035",
67
- },
68
- info: {
69
- main: "#4BAABE",
70
- },
71
- highlight: {
72
- main: "#D4483E",
73
- },
74
- grey: {
75
- main: "#293640",
76
- },
77
- };