@canmingir/link 1.2.27 → 1.2.31
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/package.json +9 -5
- package/src/assets/illustrations/avatar-shape.jsx +6 -7
- package/src/assets/illustrations/booking-illustration.jsx +4 -14
- package/src/assets/illustrations/check-in-illustration.jsx +4 -10
- package/src/assets/illustrations/check-out-illustration.jsx +4 -3
- package/src/assets/illustrations/coming-soon-illustration.jsx +4 -17
- package/src/assets/illustrations/forbidden-illustration.jsx +4 -12
- package/src/assets/illustrations/maintenance-illustration.jsx +4 -24
- package/src/assets/illustrations/motivation-illustration.jsx +4 -9
- package/src/assets/illustrations/order-complete-illustration.jsx +4 -12
- package/src/assets/illustrations/page-not-found-illustration.jsx +4 -9
- package/src/assets/illustrations/seo-illustration.jsx +4 -16
- package/src/assets/illustrations/sever-error-illustration.jsx +4 -21
- package/src/assets/illustrations/upgrade-storage-illustration.jsx +4 -20
- package/src/assets/illustrations/upload-illustration.jsx +4 -81
- package/src/components/TopNavBar/TopNavBar.jsx +6 -2
- package/src/components/file-thumbnail/file-thumbnail.jsx +5 -6
- package/src/components/label/label.jsx +0 -4
- package/src/components/nav-section/horizontal/nav-section-horizontal.jsx +5 -6
- package/src/components/settings/drawer/layout-options.jsx +5 -4
- package/src/components/settings/drawer/presets-options.jsx +6 -5
- package/src/components/settings/drawer/settings-drawer.jsx +7 -4
- package/src/components/settings/drawer/stretch-options.jsx +5 -5
- package/src/layouts/DashboardLayout/header.jsx +5 -4
- package/src/layouts/DashboardLayout/nav-mini.jsx +5 -7
- package/src/layouts/DashboardLayout/nav-vertical.jsx +11 -11
- package/src/layouts/FullScreenLayout/FullScreenLayout.jsx +5 -1
- package/src/layouts/FullScreenLayout/nav-vertical.jsx +11 -11
- package/src/layouts/MainLayout/footer.jsx +7 -7
- package/src/layouts/MainLayout/header.jsx +3 -2
- package/src/layouts/MainLayout/nav/desktop/nav-list.jsx +8 -8
- package/src/layouts/MainLayout/nav/mobile/index.jsx +7 -6
- package/src/layouts/TwoSideLayout/TwoSideLayout.jsx +9 -3
- package/src/layouts/auth/classic.jsx +6 -6
- package/src/layouts/auth/modern.jsx +49 -85
- package/src/layouts/common/ProjectBar/index.jsx +13 -11
- package/src/layouts/common/header-sim.jsx +3 -2
- package/src/layouts/common/header-simple.jsx +6 -3
- package/src/layouts/common/notifications-popover/index.jsx +18 -13
- package/src/layouts/common/notifications-popover/notification-item.jsx +28 -16
- package/src/lib/APIPath/APIPath.jsx +2 -2
- package/src/lib/APITree/APITree.jsx +3 -1
- package/src/lib/AddItemWizard/AddItemWizard.jsx +21 -10
- package/src/lib/CustomBreadcrumbs/CustomBreadcrumbs.jsx +3 -2
- package/src/lib/Flow/layouts/CardLayout.jsx +4 -3
- package/src/lib/Flow/nodes/DefaultCard.jsx +6 -8
- package/src/lib/IconSelector/IconSelector.jsx +5 -1
- package/src/lib/ItemSummary/ItemSummary.jsx +11 -6
- package/src/lib/ItemSummary/ItemsSummary.jsx +38 -26
- package/src/lib/Label/Label.jsx +0 -4
- package/src/lib/ResourceMenu/ResourceMenu.jsx +3 -1
- package/src/lib/SparkleInput/SparkleInput.jsx +31 -28
- package/src/lib/TableSelectedAction/TableSelectedAction.jsx +7 -8
- package/src/pages/ConfigError.jsx +3 -1
- package/src/pages/LoginPage.jsx +72 -2
- package/src/theme/index.jsx +47 -48
- package/src/theme/overrides/components/loading-button.js +5 -5
- package/src/theme/overrides/default-props.jsx +17 -11
- package/src/widgets/Login/CognitoLogin.jsx +66 -92
- package/src/widgets/Login/DemoLogin.jsx +43 -93
- package/src/widgets/Login/styles.jsx +35 -0
- package/src/widgets/SettingsDialog.jsx +45 -19
|
@@ -7,11 +7,12 @@ import { presetOptions } from "../../../theme/options/presets";
|
|
|
7
7
|
export default function PresetsOptions({ value, onChange }) {
|
|
8
8
|
return (
|
|
9
9
|
<Box
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
sx={{
|
|
11
|
+
columnGap: 2,
|
|
12
|
+
rowGap: 1.5,
|
|
13
|
+
display: "grid",
|
|
14
|
+
gridTemplateColumns: "repeat(3, 1fr)"
|
|
15
|
+
}}>
|
|
15
16
|
{presetOptions.map((option) => {
|
|
16
17
|
const selected = value === option.name;
|
|
17
18
|
|
|
@@ -32,10 +32,13 @@ export default function SettingsDrawer() {
|
|
|
32
32
|
const renderHead = (
|
|
33
33
|
<Stack
|
|
34
34
|
direction="row"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
sx={{
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
justifyContent: "space-between",
|
|
38
|
+
py: 2,
|
|
39
|
+
pr: 1,
|
|
40
|
+
pl: 2.5
|
|
41
|
+
}}>
|
|
39
42
|
<Typography variant="h6" sx={{ flexGrow: 1 }}>
|
|
40
43
|
Settings
|
|
41
44
|
</Typography>
|
|
@@ -30,16 +30,16 @@ export default function StretchOptions({ value, onChange }) {
|
|
|
30
30
|
>
|
|
31
31
|
<Stack
|
|
32
32
|
direction="row"
|
|
33
|
-
alignItems="center"
|
|
34
|
-
justifyContent="space-between"
|
|
35
33
|
sx={{
|
|
34
|
+
alignItems: "center",
|
|
35
|
+
justifyContent: "space-between",
|
|
36
36
|
width: 0.24,
|
|
37
37
|
transition: (theme) => theme.transitions.create(["width"]),
|
|
38
|
+
|
|
38
39
|
...(value && {
|
|
39
40
|
width: 0.5,
|
|
40
|
-
})
|
|
41
|
-
}}
|
|
42
|
-
>
|
|
41
|
+
})
|
|
42
|
+
}}>
|
|
43
43
|
<Iconify
|
|
44
44
|
icon={
|
|
45
45
|
value ? "eva:arrow-ios-back-fill" : "eva:arrow-ios-forward-fill"
|
|
@@ -46,12 +46,13 @@ export default function Header({ onOpenNav }) {
|
|
|
46
46
|
{projectBar && <ProjectBar />}
|
|
47
47
|
|
|
48
48
|
<Stack
|
|
49
|
-
flexGrow={1}
|
|
50
49
|
direction="row"
|
|
51
|
-
alignItems="center"
|
|
52
|
-
justifyContent="flex-end"
|
|
53
50
|
spacing={{ xs: 0.5, sm: 1 }}
|
|
54
|
-
|
|
51
|
+
sx={{
|
|
52
|
+
flexGrow: 1,
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
justifyContent: "flex-end"
|
|
55
|
+
}}>
|
|
55
56
|
<NotificationsPopover />
|
|
56
57
|
|
|
57
58
|
<SettingsButton />
|
|
@@ -39,7 +39,6 @@ export default function NavMini({ only }) {
|
|
|
39
39
|
}}
|
|
40
40
|
/>
|
|
41
41
|
)}
|
|
42
|
-
|
|
43
42
|
<Stack
|
|
44
43
|
sx={{
|
|
45
44
|
pb: 2,
|
|
@@ -60,16 +59,15 @@ export default function NavMini({ only }) {
|
|
|
60
59
|
<Box sx={{ flexGrow: 1 }} />
|
|
61
60
|
<Stack
|
|
62
61
|
direction={"column"}
|
|
63
|
-
alignItems={"center"}
|
|
64
|
-
justifyItems={"center"}
|
|
65
62
|
sx={{
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
justifyItems: "center",
|
|
65
|
+
gap: 2,
|
|
66
66
|
marginBottom: 0,
|
|
67
67
|
position: lgUp ? "static" : "fixed",
|
|
68
68
|
bottom: lgUp ? "auto" : 66,
|
|
69
|
-
width: "100%"
|
|
70
|
-
}}
|
|
71
|
-
gap={2}
|
|
72
|
-
>
|
|
69
|
+
width: "100%"
|
|
70
|
+
}}>
|
|
73
71
|
{actionButtons &&
|
|
74
72
|
actionButtons.map((Action, index) => (
|
|
75
73
|
<Box key={index} component={Action}></Box>
|
|
@@ -123,16 +123,15 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
123
123
|
<Box sx={{ flexGrow: 1 }} />
|
|
124
124
|
<Stack
|
|
125
125
|
direction={"column"}
|
|
126
|
-
alignItems={"center"}
|
|
127
|
-
justifyItems={"center"}
|
|
128
126
|
sx={{
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
justifyItems: "center",
|
|
129
|
+
gap: 2,
|
|
129
130
|
marginBottom: lgUp ? 3 : 0,
|
|
130
131
|
position: lgUp ? "static" : "fixed",
|
|
131
132
|
bottom: lgUp ? "auto" : 66,
|
|
132
|
-
width: "100%"
|
|
133
|
-
}}
|
|
134
|
-
gap={2}
|
|
135
|
-
>
|
|
133
|
+
width: "100%"
|
|
134
|
+
}}>
|
|
136
135
|
{actionButtons &&
|
|
137
136
|
actionButtons?.map((Action, index) => (
|
|
138
137
|
<Box key={index} component={Action}></Box>
|
|
@@ -171,7 +170,6 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
171
170
|
}}
|
|
172
171
|
>
|
|
173
172
|
<NavToggleButton />
|
|
174
|
-
|
|
175
173
|
{lgUp ? (
|
|
176
174
|
<Stack
|
|
177
175
|
sx={{
|
|
@@ -187,10 +185,12 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
187
185
|
<Drawer
|
|
188
186
|
open={openNav}
|
|
189
187
|
onClose={onCloseNav}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
slotProps={{
|
|
189
|
+
paper: {
|
|
190
|
+
sx: {
|
|
191
|
+
width: NAV.W_VERTICAL,
|
|
192
|
+
},
|
|
193
|
+
}
|
|
194
194
|
}}
|
|
195
195
|
>
|
|
196
196
|
{renderContent}
|
|
@@ -62,16 +62,15 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
62
62
|
<Box sx={{ flexGrow: 1 }} />
|
|
63
63
|
<Stack
|
|
64
64
|
direction={"column"}
|
|
65
|
-
alignItems={"center"}
|
|
66
|
-
justifyItems={"center"}
|
|
67
65
|
sx={{
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
justifyItems: "center",
|
|
68
|
+
gap: 2,
|
|
68
69
|
marginBottom: lgUp ? 3 : 0,
|
|
69
70
|
position: lgUp ? "static" : "fixed",
|
|
70
71
|
bottom: lgUp ? "auto" : 66,
|
|
71
|
-
width: "100%"
|
|
72
|
-
}}
|
|
73
|
-
gap={2}
|
|
74
|
-
>
|
|
72
|
+
width: "100%"
|
|
73
|
+
}}>
|
|
75
74
|
{actionButtons &&
|
|
76
75
|
actionButtons.map((Action, index) => (
|
|
77
76
|
<Box key={index} component={Action}></Box>
|
|
@@ -105,7 +104,6 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
105
104
|
}}
|
|
106
105
|
>
|
|
107
106
|
<NavToggleButton />
|
|
108
|
-
|
|
109
107
|
{lgUp ? (
|
|
110
108
|
<Stack
|
|
111
109
|
sx={{
|
|
@@ -121,10 +119,12 @@ export default function NavVertical({ openNav, onCloseNav }) {
|
|
|
121
119
|
<Drawer
|
|
122
120
|
open={openNav}
|
|
123
121
|
onClose={onCloseNav}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
slotProps={{
|
|
123
|
+
paper: {
|
|
124
|
+
sx: {
|
|
125
|
+
width: NAV.W_VERTICAL,
|
|
126
|
+
},
|
|
127
|
+
}
|
|
128
128
|
}}
|
|
129
129
|
>
|
|
130
130
|
{renderContent}
|
|
@@ -104,12 +104,11 @@ export default function Footer() {
|
|
|
104
104
|
|
|
105
105
|
<Stack
|
|
106
106
|
direction="row"
|
|
107
|
-
justifyContent={{ xs: "center", md: "flex-start" }}
|
|
108
107
|
sx={{
|
|
108
|
+
justifyContent: { xs: "center", md: "flex-start" },
|
|
109
109
|
mt: 3,
|
|
110
|
-
mb: { xs: 5, md: 0 }
|
|
111
|
-
}}
|
|
112
|
-
></Stack>
|
|
110
|
+
mb: { xs: 5, md: 0 }
|
|
111
|
+
}}></Stack>
|
|
113
112
|
</Grid>
|
|
114
113
|
|
|
115
114
|
<Grid xs={12} md={6}>
|
|
@@ -118,9 +117,10 @@ export default function Footer() {
|
|
|
118
117
|
<Stack
|
|
119
118
|
key={list.headline}
|
|
120
119
|
spacing={2}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
sx={{
|
|
121
|
+
alignItems: { xs: "center", md: "flex-start" },
|
|
122
|
+
width: 1
|
|
123
|
+
}}>
|
|
124
124
|
<Typography component="div" variant="overline">
|
|
125
125
|
{list.headline}
|
|
126
126
|
</Typography>
|
|
@@ -61,8 +61,10 @@ export default function Header() {
|
|
|
61
61
|
{mdUp && <NavDesktop data={topMenu} />}
|
|
62
62
|
|
|
63
63
|
<Stack
|
|
64
|
-
alignItems="center"
|
|
65
64
|
direction={{ xs: "row", md: "row-reverse" }}
|
|
65
|
+
sx={{
|
|
66
|
+
alignItems: "center"
|
|
67
|
+
}}
|
|
66
68
|
>
|
|
67
69
|
<NotificationsPopover />
|
|
68
70
|
|
|
@@ -74,7 +76,6 @@ export default function Header() {
|
|
|
74
76
|
</Stack>
|
|
75
77
|
</Container>
|
|
76
78
|
</Toolbar>
|
|
77
|
-
|
|
78
79
|
{offsetTop && <HeaderShadow />}
|
|
79
80
|
</AppBar>
|
|
80
81
|
);
|
|
@@ -103,18 +103,19 @@ function NavSubList({ data, subheader, sx, ...other }) {
|
|
|
103
103
|
return (
|
|
104
104
|
<Stack
|
|
105
105
|
spacing={2}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
{...other}
|
|
107
|
+
sx={[{
|
|
108
|
+
flexGrow: 1,
|
|
109
|
+
alignItems: "flex-start",
|
|
109
110
|
pb: 2,
|
|
111
|
+
|
|
110
112
|
...(dashboard && {
|
|
111
113
|
pb: 0,
|
|
112
114
|
maxWidth: { md: 1 / 3, lg: 540 },
|
|
113
115
|
}),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
>
|
|
116
|
+
|
|
117
|
+
...sx
|
|
118
|
+
}, ...(Array.isArray(other.sx) ? other.sx : [other.sx])]}>
|
|
118
119
|
<ListSubheader
|
|
119
120
|
disableSticky
|
|
120
121
|
sx={{
|
|
@@ -126,7 +127,6 @@ function NavSubList({ data, subheader, sx, ...other }) {
|
|
|
126
127
|
>
|
|
127
128
|
{subheader}
|
|
128
129
|
</ListSubheader>
|
|
129
|
-
|
|
130
130
|
{data.map((item) =>
|
|
131
131
|
dashboard ? (
|
|
132
132
|
<NavItemDashboard key={item.title} path={item.path} />
|
|
@@ -36,15 +36,16 @@ export default function NavMobile({ data }) {
|
|
|
36
36
|
<IconButton onClick={handleOpenMenu} sx={{ ml: 1 }}>
|
|
37
37
|
<SvgColor src="/assets/icons/navbar/ic_menu_item.svg" />
|
|
38
38
|
</IconButton>
|
|
39
|
-
|
|
40
39
|
<Drawer
|
|
41
40
|
open={openMenu}
|
|
42
41
|
onClose={handleCloseMenu}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
slotProps={{
|
|
43
|
+
paper: {
|
|
44
|
+
sx: {
|
|
45
|
+
pb: 5,
|
|
46
|
+
width: 260,
|
|
47
|
+
},
|
|
48
|
+
}
|
|
48
49
|
}}
|
|
49
50
|
>
|
|
50
51
|
<Scrollbar>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Container from "@mui/material/Container";
|
|
2
|
-
import Grid from "@mui/material/
|
|
2
|
+
import Grid from "@mui/material/Grid";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import Typography from "@mui/material/Typography";
|
|
5
5
|
// ----------------------------------------------------------------------
|
|
@@ -12,14 +12,20 @@ export default function TwoSideLayout({ rows, title }) {
|
|
|
12
12
|
<Typography variant="h4" sx={{ mb: 5 }}>
|
|
13
13
|
{title}
|
|
14
14
|
</Typography>
|
|
15
|
-
|
|
16
15
|
{Object.values(rowData).map((array, index) => {
|
|
17
16
|
const eleman_sayisi = array.length;
|
|
18
17
|
const grid_sayisi = 12 / eleman_sayisi;
|
|
19
18
|
return (
|
|
20
19
|
<Grid container spacing={3} key={index}>
|
|
21
20
|
{array.map((component, i) => (
|
|
22
|
-
<Grid
|
|
21
|
+
<Grid
|
|
22
|
+
key={i}
|
|
23
|
+
size={{
|
|
24
|
+
xs: 12,
|
|
25
|
+
sm: 6,
|
|
26
|
+
md: grid_sayisi,
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
23
29
|
{component}
|
|
24
30
|
</Grid>
|
|
25
31
|
))}
|
|
@@ -44,20 +44,20 @@ export default function AuthClassicLayout({ image, title }) {
|
|
|
44
44
|
|
|
45
45
|
const renderSection = (
|
|
46
46
|
<Stack
|
|
47
|
-
flexGrow={1}
|
|
48
47
|
spacing={10}
|
|
49
|
-
alignItems="center"
|
|
50
|
-
justifyContent="center"
|
|
51
48
|
sx={{
|
|
49
|
+
flexGrow: 1,
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
|
|
52
53
|
...bgGradient({
|
|
53
54
|
color: alpha(
|
|
54
55
|
theme.palette.background.default,
|
|
55
56
|
theme.palette.mode === "light" ? 0.88 : 0.94
|
|
56
57
|
),
|
|
57
58
|
imgUrl: "https://minimals.cc/assets/background/overlay_2.jpg",
|
|
58
|
-
})
|
|
59
|
-
}}
|
|
60
|
-
>
|
|
59
|
+
})
|
|
60
|
+
}}>
|
|
61
61
|
<Typography variant="h3" sx={{ maxWidth: 480, textAlign: "center" }}>
|
|
62
62
|
{title || "Hi, Welcome back"}
|
|
63
63
|
</Typography>
|
|
@@ -5,108 +5,72 @@ import { Outlet } from "react-router";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import Stack from "@mui/material/Stack";
|
|
7
7
|
import { alpha } from "@mui/material/styles";
|
|
8
|
-
import { useResponsive } from "../../hooks/use-responsive";
|
|
9
8
|
|
|
10
9
|
// ----------------------------------------------------------------------
|
|
11
10
|
|
|
12
|
-
export default function AuthModernLayout(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const renderContent = (
|
|
11
|
+
export default function AuthModernLayout() {
|
|
12
|
+
return (
|
|
16
13
|
<Stack
|
|
14
|
+
component="main"
|
|
17
15
|
sx={{
|
|
18
|
-
|
|
19
|
-
mx: "auto",
|
|
20
|
-
maxWidth: 600,
|
|
21
|
-
px: { xs: 3, md: 10 },
|
|
22
|
-
py: { xs: 4, md: 0 },
|
|
23
|
-
height: "100vh",
|
|
24
|
-
justifyContent: "center",
|
|
16
|
+
minHeight: "100vh",
|
|
25
17
|
alignItems: "center",
|
|
18
|
+
justifyContent: "center",
|
|
19
|
+
position: "relative",
|
|
26
20
|
}}
|
|
27
21
|
>
|
|
28
|
-
<
|
|
29
|
-
maxSize={140}
|
|
22
|
+
<Box
|
|
30
23
|
sx={{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
position: "fixed",
|
|
25
|
+
inset: 0,
|
|
26
|
+
backgroundImage: (theme) => `
|
|
27
|
+
radial-gradient(
|
|
28
|
+
${alpha(theme.palette.divider, 0.08)} 1px,
|
|
29
|
+
transparent 1px
|
|
30
|
+
)
|
|
31
|
+
`,
|
|
32
|
+
backgroundSize: "16px 16px",
|
|
33
|
+
pointerEvents: "none",
|
|
34
|
+
zIndex: 0,
|
|
34
35
|
}}
|
|
35
36
|
/>
|
|
36
|
-
|
|
37
|
-
<Card
|
|
37
|
+
<Stack
|
|
38
38
|
sx={{
|
|
39
39
|
width: 1,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
mx: "auto",
|
|
41
|
+
maxWidth: 480,
|
|
42
|
+
px: { xs: 3, md: 6 },
|
|
43
|
+
py: { xs: 4, md: 0 },
|
|
44
|
+
position: "relative",
|
|
45
|
+
zIndex: 1,
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
48
|
+
<Logo
|
|
49
|
+
maxSize={140}
|
|
50
|
+
sx={{
|
|
51
|
+
mb: 2,
|
|
52
|
+
width: 72,
|
|
53
|
+
height: 72,
|
|
54
|
+
alignSelf: "center",
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
57
|
+
|
|
58
|
+
<Card
|
|
59
|
+
sx={{
|
|
60
|
+
width: 1,
|
|
61
|
+
py: { xs: 5, md: 5 },
|
|
62
|
+
px: { xs: 4, md: 5 },
|
|
63
|
+
boxShadow: (theme) =>
|
|
44
64
|
`0 0 2px ${alpha(
|
|
45
65
|
theme.palette.grey[500],
|
|
46
66
|
0.16
|
|
47
67
|
)}, 0 12px 24px -4px ${alpha(theme.palette.grey[500], 0.12)}`,
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
>
|
|
55
|
-
<Outlet />
|
|
56
|
-
</Card>
|
|
57
|
-
</Stack>
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
const renderSection = (
|
|
61
|
-
<Stack
|
|
62
|
-
flexGrow={1}
|
|
63
|
-
sx={{
|
|
64
|
-
position: "relative",
|
|
65
|
-
}}
|
|
66
|
-
>
|
|
67
|
-
<Box
|
|
68
|
-
component="img"
|
|
69
|
-
alt="auth"
|
|
70
|
-
src={image || "/assets/background/overlay_3.jpg"}
|
|
71
|
-
sx={{
|
|
72
|
-
top: "50%",
|
|
73
|
-
left: "50%",
|
|
74
|
-
transform: "translate(-50%, -50%)",
|
|
75
|
-
objectFit: "cover",
|
|
76
|
-
position: "absolute",
|
|
77
|
-
width: "calc(60% - 32px)",
|
|
78
|
-
height: "calc(60% - 32px)",
|
|
79
|
-
borderRadius: 3,
|
|
80
|
-
}}
|
|
81
|
-
/>
|
|
82
|
-
</Stack>
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
return (
|
|
86
|
-
<Stack
|
|
87
|
-
component="main"
|
|
88
|
-
direction="row"
|
|
89
|
-
sx={{
|
|
90
|
-
minHeight: "100vh",
|
|
91
|
-
position: "relative",
|
|
92
|
-
"&:before": {
|
|
93
|
-
width: 1,
|
|
94
|
-
height: 1,
|
|
95
|
-
zIndex: -1,
|
|
96
|
-
content: "''",
|
|
97
|
-
position: "absolute",
|
|
98
|
-
backgroundSize: "cover",
|
|
99
|
-
opacity: { xs: 0.24, md: 0 },
|
|
100
|
-
backgroundRepeat: "no-repeat",
|
|
101
|
-
backgroundPosition: "center center",
|
|
102
|
-
backgroundImage:
|
|
103
|
-
"url(https://minimals.cc/assets/background/overlay_4.jpg)",
|
|
104
|
-
},
|
|
105
|
-
}}
|
|
106
|
-
>
|
|
107
|
-
{renderContent}
|
|
108
|
-
|
|
109
|
-
{mdUp && renderSection}
|
|
68
|
+
borderRadius: 2,
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
71
|
+
<Outlet />
|
|
72
|
+
</Card>
|
|
73
|
+
</Stack>
|
|
110
74
|
</Stack>
|
|
111
75
|
);
|
|
112
76
|
}
|
|
@@ -175,10 +175,11 @@ function ProjectBar() {
|
|
|
175
175
|
const renderButton = (
|
|
176
176
|
<Stack
|
|
177
177
|
direction="row"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
sx={{
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
justifyContent: "flex-start",
|
|
181
|
+
width: "100%"
|
|
182
|
+
}}>
|
|
182
183
|
<IconButton
|
|
183
184
|
data-cy="open-select-bar-button"
|
|
184
185
|
onClick={search.onTrue}
|
|
@@ -270,7 +271,6 @@ function ProjectBar() {
|
|
|
270
271
|
return (
|
|
271
272
|
<>
|
|
272
273
|
{renderButton}
|
|
273
|
-
|
|
274
274
|
<Dialog
|
|
275
275
|
data-cy="select-bar-dialog"
|
|
276
276
|
fullWidth={true}
|
|
@@ -281,17 +281,19 @@ function ProjectBar() {
|
|
|
281
281
|
enter: theme.transitions.duration.shortest,
|
|
282
282
|
exit: 0,
|
|
283
283
|
}}
|
|
284
|
-
PaperProps={{
|
|
285
|
-
sx: {
|
|
286
|
-
mt: 15,
|
|
287
|
-
overflow: "unset",
|
|
288
|
-
},
|
|
289
|
-
}}
|
|
290
284
|
sx={{
|
|
291
285
|
[`& .${dialogClasses.container}`]: {
|
|
292
286
|
alignItems: "flex-start",
|
|
293
287
|
},
|
|
294
288
|
}}
|
|
289
|
+
slotProps={{
|
|
290
|
+
paper: {
|
|
291
|
+
sx: {
|
|
292
|
+
mt: 15,
|
|
293
|
+
overflow: "unset",
|
|
294
|
+
},
|
|
295
|
+
}
|
|
296
|
+
}}
|
|
295
297
|
>
|
|
296
298
|
<Box sx={{ p: 3, borderBottom: `solid 1px gray` }}>
|
|
297
299
|
<InputBase
|
|
@@ -41,11 +41,12 @@ export default function HeaderSim() {
|
|
|
41
41
|
>
|
|
42
42
|
<Logo />
|
|
43
43
|
|
|
44
|
-
<Stack direction="row"
|
|
44
|
+
<Stack direction="row" spacing={1} sx={{
|
|
45
|
+
alignItems: "center"
|
|
46
|
+
}}>
|
|
45
47
|
<SettingsButton />
|
|
46
48
|
</Stack>
|
|
47
49
|
</Toolbar>
|
|
48
|
-
|
|
49
50
|
{offsetTop && <HeaderShadow />}
|
|
50
51
|
</AppBar>
|
|
51
52
|
);
|
|
@@ -52,7 +52,9 @@ export default function HeaderSimple({
|
|
|
52
52
|
}),
|
|
53
53
|
}}
|
|
54
54
|
>
|
|
55
|
-
<Stack direction="row"
|
|
55
|
+
<Stack direction="row" spacing={5} sx={{
|
|
56
|
+
alignItems: "center"
|
|
57
|
+
}}>
|
|
56
58
|
<Logo />
|
|
57
59
|
<ProjectBar
|
|
58
60
|
handleItemSelect={handleItemSelect}
|
|
@@ -60,7 +62,9 @@ export default function HeaderSimple({
|
|
|
60
62
|
setSelectedItem={setSelectedItem}
|
|
61
63
|
/>
|
|
62
64
|
</Stack>
|
|
63
|
-
<Stack direction="row"
|
|
65
|
+
<Stack direction="row" spacing={1} sx={{
|
|
66
|
+
alignItems: "center"
|
|
67
|
+
}}>
|
|
64
68
|
{mdUp && <NavDesktop data={topMenu} />}
|
|
65
69
|
<NotificationsPopover />
|
|
66
70
|
|
|
@@ -69,7 +73,6 @@ export default function HeaderSimple({
|
|
|
69
73
|
<AccountPopover />
|
|
70
74
|
</Stack>
|
|
71
75
|
</Toolbar>
|
|
72
|
-
|
|
73
76
|
{offsetTop && <HeaderShadow />}
|
|
74
77
|
</AppBar>
|
|
75
78
|
);
|