@campxdev/react-blueprint 0.1.28 → 0.1.30
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.
- package/.storybook/main.ts +0 -1
- package/.storybook/preview.tsx +10 -5
- package/.vscode/settings.json +3 -0
- package/package.json +1 -1
- package/src/App.tsx +5 -5
- package/src/components/Assets/Icons/IconComponents/AdministratorIcon.tsx +26 -0
- package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +25 -0
- package/src/components/{Icons/export.ts → Assets/Icons/Icons.tsx} +4 -0
- package/src/components/Assets/export.ts +1 -0
- package/src/components/DataDisplay/DataTable/TablePagination.tsx +3 -1
- package/src/components/DataDisplay/export.ts +2 -1
- package/src/components/Feedback/Tooltip/Tooltip.tsx +4 -6
- package/src/components/Feedback/exports.ts +2 -0
- package/src/components/Input/LabelWrapper/LabelWrapper.tsx +1 -1
- package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +1 -1
- package/src/components/Input/SingleSelect/SingleSelect.tsx +0 -1
- package/src/components/Layout/AppHeader/AppHeader.tsx +55 -0
- package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/HeaderActions.tsx +15 -16
- package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/UserBox.tsx +7 -8
- package/src/components/Layout/AppHeader/styles/styles.tsx +38 -0
- package/src/components/Layout/LayoutWrapper/styles.tsx +1 -1
- package/src/components/Navigation/exports.ts +15 -0
- package/src/components/export.ts +6 -8
- package/src/{components/Icons → stories/Assets}/Icons.stories.tsx +11 -1
- package/src/{components/DataDisplay/Avatar → stories/DataDisplay}/CircularAvatar.stories.tsx +4 -1
- package/src/{components/DataDisplay/DataTable → stories/DataDisplay}/DataTable.stories.tsx +2 -1
- package/src/{components/DataDisplay/SidePanel → stories/DataDisplay}/SidePanel.stories.tsx +4 -1
- package/src/{components/DataDisplay/Avatar → stories/DataDisplay}/SquareAvatar.stories.tsx +4 -1
- package/src/{themes → stories/DesignSystem}/colorTokens.stories.tsx +7 -11
- package/src/{themes → stories/DesignSystem}/typography.stories.tsx +2 -1
- package/src/{components/Feedback/Spinner → stories/Feedback}/Spinner.stories.tsx +1 -2
- package/src/{components/Feedback/Tooltip → stories/Feedback}/Tooltip.stories.tsx +8 -4
- package/src/{components/Input/Button → stories/Input}/Button.stories.tsx +1 -2
- package/src/{components/Input/Chips → stories/Input}/Chips.stories.tsx +1 -1
- package/src/{components/Input/MultiCheckBox → stories/Input}/MultiCheckBox.stories.tsx +4 -1
- package/src/{components/Input/OtpInput → stories/Input}/OtpInput.stories.tsx +3 -2
- package/src/{components/Input/RadioGroup → stories/Input}/RadioGroup.stories.tsx +4 -1
- package/src/{components/Input/SearchBar → stories/Input}/SearchBar.stories.tsx +1 -1
- package/src/{components/Input/SingleCheckBox → stories/Input}/SingleCheckBox.stories.tsx +4 -2
- package/src/{components/Input/SingleSelect → stories/Input}/SingleSelect.stories.tsx +4 -1
- package/src/{components/Input/Switch → stories/Input}/Switch.stories.tsx +1 -2
- package/src/{components/Input/TextField → stories/Input}/TextField.stories.tsx +20 -6
- package/src/stories/Layout/AppHeader.stories.tsx +68 -0
- package/src/{components/Layout/LayoutWrapper → stories/Layout}/LayoutWrapper.stories.tsx +8 -5
- package/src/{components/Layout/PageContent → stories/Layout}/PageContent.stories.tsx +1 -1
- package/src/{components/Layout/SideNavigation → stories/Layout}/SideNavigation.stories.tsx +2 -2
- package/src/{components/Navigation/DialogButton → stories/Navigation}/DialogButton.stories.tsx +3 -1
- package/src/{components/Navigation/DropDownMenu → stories/Navigation}/DropDownMenu.stories.tsx +8 -5
- package/src/{components/Navigation/TabsContainer → stories/Navigation}/TabsContainer.stories.tsx +5 -2
- package/src/themes/colorTokens/colorPalette.tsx +48 -0
- package/src/themes/colorTokens/darkColorTokens.tsx +42 -0
- package/src/themes/colorTokens/lightColorTokens.ts +42 -0
- package/src/themes/commonTheme.ts +15 -18
- package/src/themes/darkTheme.ts +4 -12
- package/src/themes/lightTheme.ts +2 -11
- package/types/theme.d.ts +22 -12
- package/src/components/Icons/Icons.tsx +0 -14
- package/src/components/Layout/Header/AppHeader.stories.tsx +0 -210
- package/src/components/Layout/Header/AppHeader.tsx +0 -81
- package/src/components/Layout/Header/AppLogo.tsx +0 -51
- package/src/components/Layout/Header/styles/styles.tsx +0 -69
- package/src/themes/colorTokens.ts +0 -77
- /package/src/components/{Icons → Assets/Icons}/IconComponents/ActiveDevicesIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/AppsIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/BulbIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/CareerIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/CheckedCheckBoxIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/CheckedRadioIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/ClogWheelIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/CrossIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/DashBoardIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/DeviceIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/ExamResultIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/ExportIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/FilterIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/HelpIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/HomeIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/InfoIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/InstitutionsIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/LeftIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/LocationIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/LogoutIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/NavigationIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/NotificationIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/ProductFeaturesIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/ProfileIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/RightIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/TicketsIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/UncheckCheckBoxIcon.tsx +0 -0
- /package/src/components/{Icons → Assets/Icons}/IconComponents/UncheckedRadioIcon.tsx +0 -0
- /package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/CogWheelMenu.tsx +0 -0
- /package/src/components/Layout/{Header → AppHeader}/AppsMenu.tsx +0 -0
|
@@ -1,210 +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
|
-
avatar:false,
|
|
113
|
-
navigationIcon:false,
|
|
114
|
-
showActiveDevices:false,
|
|
115
|
-
appsMenu: (
|
|
116
|
-
<AppsMenu
|
|
117
|
-
apps={[
|
|
118
|
-
"exams",
|
|
119
|
-
"square",
|
|
120
|
-
"admin",
|
|
121
|
-
"enroll",
|
|
122
|
-
"payments",
|
|
123
|
-
"hrms",
|
|
124
|
-
"hostels",
|
|
125
|
-
"commute_x",
|
|
126
|
-
]}
|
|
127
|
-
/>
|
|
128
|
-
),
|
|
129
|
-
actions: [
|
|
130
|
-
<IconButton>
|
|
131
|
-
<Icons.CareerIcon />
|
|
132
|
-
</IconButton>,
|
|
133
|
-
<IconButton>
|
|
134
|
-
<Icons.ExamResultIcon />
|
|
135
|
-
</IconButton>,
|
|
136
|
-
<HelpButton />,
|
|
137
|
-
],
|
|
138
|
-
userBoxActions: [
|
|
139
|
-
{ label: "Action 1", onClick: () => alert("Action 1 clicked") },
|
|
140
|
-
{ label: "Action 2", onClick: () => alert("Action 2 clicked") },
|
|
141
|
-
],
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
export const WithCustomHeaderActions: Story = {
|
|
146
|
-
render: (args: AppHeaderProps) => <AppHeader {...args} />,
|
|
147
|
-
args: {
|
|
148
|
-
clientLogo: "https://via.placeholder.com/150",
|
|
149
|
-
fullName: "John Doe",
|
|
150
|
-
designation: "Head of the Department",
|
|
151
|
-
appsMenu: (
|
|
152
|
-
<AppsMenu
|
|
153
|
-
apps={[
|
|
154
|
-
"exams",
|
|
155
|
-
"square",
|
|
156
|
-
"admin",
|
|
157
|
-
"enroll",
|
|
158
|
-
"payments",
|
|
159
|
-
"hrms",
|
|
160
|
-
"hostels",
|
|
161
|
-
"commute_x",
|
|
162
|
-
]}
|
|
163
|
-
/>
|
|
164
|
-
),
|
|
165
|
-
customHeaderActions: <div>Custom Header Actions</div>,
|
|
166
|
-
userBoxActions: [
|
|
167
|
-
{ label: "Action 1", onClick: () => alert("Action 1 clicked") },
|
|
168
|
-
{ label: "Action 2", onClick: () => alert("Action 2 clicked") },
|
|
169
|
-
],
|
|
170
|
-
},
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
// Story with clog wheel actions
|
|
174
|
-
export const WithClogWheel: Story = {
|
|
175
|
-
render: (args: AppHeaderProps) => <AppHeader {...args} />,
|
|
176
|
-
args: {
|
|
177
|
-
clientLogo: "https://via.placeholder.com/150",
|
|
178
|
-
fullName: "John Doe",
|
|
179
|
-
designation: "Head of the Department",
|
|
180
|
-
appsMenu: (
|
|
181
|
-
<AppsMenu
|
|
182
|
-
apps={[
|
|
183
|
-
"exams",
|
|
184
|
-
"square",
|
|
185
|
-
"admin",
|
|
186
|
-
"enroll",
|
|
187
|
-
"payments",
|
|
188
|
-
"hrms",
|
|
189
|
-
"hostels",
|
|
190
|
-
"commute_x",
|
|
191
|
-
]}
|
|
192
|
-
/>
|
|
193
|
-
),
|
|
194
|
-
userBoxActions: [
|
|
195
|
-
{ label: "Action 1", onClick: () => alert("Action 1 clicked") },
|
|
196
|
-
{ label: "Action 2", onClick: () => alert("Action 2 clicked") },
|
|
197
|
-
],
|
|
198
|
-
cogWheelMenu: [
|
|
199
|
-
<DropdownMenuItem
|
|
200
|
-
label={"Student Payments"}
|
|
201
|
-
onClick={() => {
|
|
202
|
-
window.open("/payment", "_blank");
|
|
203
|
-
}}
|
|
204
|
-
/>,
|
|
205
|
-
],
|
|
206
|
-
// headerSx: {
|
|
207
|
-
// position: "relative",
|
|
208
|
-
// },
|
|
209
|
-
},
|
|
210
|
-
};
|
|
@@ -1,81 +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
|
-
avatar?: any;
|
|
30
|
-
navigationIcon:any;
|
|
31
|
-
showActiveDevices: any;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const AppHeader = ({
|
|
35
|
-
actions = [],
|
|
36
|
-
appsMenu,
|
|
37
|
-
clientLogo,
|
|
38
|
-
designation,
|
|
39
|
-
cogWheelMenu = [],
|
|
40
|
-
customHeaderActions,
|
|
41
|
-
fullName,
|
|
42
|
-
profileUrl,
|
|
43
|
-
userBoxActions = [],
|
|
44
|
-
containerSx = {},
|
|
45
|
-
headerSx = {},
|
|
46
|
-
profileSx = {},
|
|
47
|
-
imageSx = {},
|
|
48
|
-
avatar={},
|
|
49
|
-
navigationIcon={},
|
|
50
|
-
showActiveDevices={},
|
|
51
|
-
}: AppHeaderProps) => {
|
|
52
|
-
return (
|
|
53
|
-
<StyledHeader sx={headerSx}>
|
|
54
|
-
<StyledContainer sx={containerSx}>
|
|
55
|
-
<Stack alignItems={"center"} gap={"10px"} flexDirection={"row"}>
|
|
56
|
-
{appsMenu}
|
|
57
|
-
<AppLogo clientLogo={clientLogo ?? ""} imageSx={imageSx} />
|
|
58
|
-
</Stack>
|
|
59
|
-
<StyledActionBox>
|
|
60
|
-
{customHeaderActions ? (
|
|
61
|
-
customHeaderActions
|
|
62
|
-
) : (
|
|
63
|
-
<HeaderActions
|
|
64
|
-
cogWheelMenu={cogWheelMenu}
|
|
65
|
-
fullName={fullName ?? ""}
|
|
66
|
-
designation={designation}
|
|
67
|
-
userBoxActions={userBoxActions}
|
|
68
|
-
profileUrl={profileUrl ?? ""}
|
|
69
|
-
actions={actions}
|
|
70
|
-
profileSx={profileSx}
|
|
71
|
-
avatar={avatar}
|
|
72
|
-
navigationIcon={navigationIcon}
|
|
73
|
-
showActiveDevices={showActiveDevices}
|
|
74
|
-
/>
|
|
75
|
-
|
|
76
|
-
)}
|
|
77
|
-
</StyledActionBox>
|
|
78
|
-
</StyledContainer>
|
|
79
|
-
</StyledHeader>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
@@ -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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/Layout/{Header/HeaderActions → AppHeader/AppHeaderActions}/CogWheelMenu.tsx
RENAMED
|
File without changes
|
|
File without changes
|