refine-mantine 1.6.0 → 1.6.1
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/dist/index.js +16 -20
- package/package.json +1 -1
- package/src/pages/NotFound.tsx +17 -18
- package/dist/index.css +0 -35
- package/src/pages/NotFound.module.css +0 -35
package/dist/index.js
CHANGED
|
@@ -1969,44 +1969,40 @@ const UpdatePasswordPage = (p) => {
|
|
|
1969
1969
|
});
|
|
1970
1970
|
};
|
|
1971
1971
|
|
|
1972
|
-
//#endregion
|
|
1973
|
-
//#region src/pages/NotFound.module.css
|
|
1974
|
-
var NotFound_module_default = {};
|
|
1975
|
-
|
|
1976
1972
|
//#endregion
|
|
1977
1973
|
//#region src/pages/NotFound.tsx
|
|
1978
1974
|
const NotFound = ({ returnTo }) => {
|
|
1979
1975
|
const t = useTranslate();
|
|
1980
|
-
return /* @__PURE__ */
|
|
1981
|
-
|
|
1976
|
+
return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Stack, {
|
|
1977
|
+
h: "100vh",
|
|
1978
|
+
align: "center",
|
|
1979
|
+
justify: "center",
|
|
1980
|
+
gap: "xl",
|
|
1982
1981
|
children: [
|
|
1983
|
-
/* @__PURE__ */ jsx(
|
|
1984
|
-
|
|
1982
|
+
/* @__PURE__ */ jsx(Title, {
|
|
1983
|
+
fw: 500,
|
|
1985
1984
|
children: t("pages.notFound.label", "404")
|
|
1986
1985
|
}),
|
|
1987
1986
|
/* @__PURE__ */ jsx(Title, {
|
|
1988
|
-
|
|
1987
|
+
fw: 500,
|
|
1989
1988
|
children: t("pages.notFound.title", "You have found a secret place.")
|
|
1990
1989
|
}),
|
|
1991
1990
|
/* @__PURE__ */ jsx(Text, {
|
|
1992
1991
|
c: "dimmed",
|
|
1993
1992
|
size: "lg",
|
|
1994
1993
|
ta: "center",
|
|
1995
|
-
|
|
1994
|
+
maw: 500,
|
|
1996
1995
|
children: t("pages.notFound.description", "Unfortunately, this is only a 404 page. You may have mistyped the address, or the page has been moved to another URL.")
|
|
1997
1996
|
}),
|
|
1998
|
-
/* @__PURE__ */ jsx(
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
size: "md",
|
|
2005
|
-
children: t("pages.notFound.button", "Take me back to home page")
|
|
2006
|
-
})
|
|
1997
|
+
/* @__PURE__ */ jsx(Button, {
|
|
1998
|
+
component: Link,
|
|
1999
|
+
to: returnTo,
|
|
2000
|
+
variant: "subtle",
|
|
2001
|
+
size: "md",
|
|
2002
|
+
children: t("pages.notFound.button", "Take me back to home page")
|
|
2007
2003
|
})
|
|
2008
2004
|
]
|
|
2009
|
-
});
|
|
2005
|
+
}) });
|
|
2010
2006
|
};
|
|
2011
2007
|
|
|
2012
2008
|
//#endregion
|
package/package.json
CHANGED
package/src/pages/NotFound.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Button, Container,
|
|
1
|
+
import { Button, Container, Stack, Text, Title } from '@mantine/core';
|
|
2
2
|
import { Link, useTranslate } from '@refinedev/core';
|
|
3
|
-
import classes from './NotFound.module.css';
|
|
4
3
|
|
|
5
4
|
interface NotFoundProps {
|
|
6
5
|
returnTo: string;
|
|
@@ -12,22 +11,22 @@ export const NotFound: React.FC<NotFoundProps> = ({
|
|
|
12
11
|
const t = useTranslate();
|
|
13
12
|
|
|
14
13
|
return (
|
|
15
|
-
<Container
|
|
16
|
-
<
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
<Container>
|
|
15
|
+
<Stack h="100vh" align="center" justify="center" gap="xl">
|
|
16
|
+
<Title fw={500}>
|
|
17
|
+
{t("pages.notFound.label", "404")}
|
|
18
|
+
</Title>
|
|
19
|
+
<Title fw={500}>
|
|
20
|
+
{t("pages.notFound.title", "You have found a secret place.")}
|
|
21
|
+
</Title>
|
|
22
|
+
<Text c="dimmed" size="lg" ta="center" maw={500}>
|
|
23
|
+
{t(
|
|
24
|
+
"pages.notFound.description",
|
|
25
|
+
"Unfortunately, this is only a 404 page. You may have mistyped the address, or the page has been moved to another URL."
|
|
26
|
+
)}
|
|
27
|
+
</Text>
|
|
29
28
|
<Button
|
|
30
|
-
component={Link as
|
|
29
|
+
component={Link as React.FC<{ to: string }>}
|
|
31
30
|
to={returnTo}
|
|
32
31
|
variant="subtle"
|
|
33
32
|
size="md"
|
|
@@ -37,7 +36,7 @@ export const NotFound: React.FC<NotFoundProps> = ({
|
|
|
37
36
|
"Take me back to home page"
|
|
38
37
|
)}
|
|
39
38
|
</Button>
|
|
40
|
-
</
|
|
39
|
+
</Stack>
|
|
41
40
|
</Container>
|
|
42
41
|
);
|
|
43
42
|
}
|
package/dist/index.css
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
padding-top: 80px;
|
|
3
|
-
padding-bottom: 80px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.label {
|
|
7
|
-
text-align: center;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
font-size: 38px;
|
|
10
|
-
line-height: 1;
|
|
11
|
-
margin-bottom: calc(1.5 * var(--mantine-spacing-xl));
|
|
12
|
-
color: var(--mantine-color-gray-2);
|
|
13
|
-
|
|
14
|
-
@media (max-width: $mantine-breakpoint-sm) {
|
|
15
|
-
font-size: 32px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.description {
|
|
20
|
-
max-width: 500px;
|
|
21
|
-
margin: auto;
|
|
22
|
-
margin-top: var(--mantine-spacing-xl);
|
|
23
|
-
margin-bottom: calc(1.5 * var(--mantine-spacing-xl));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.title {
|
|
27
|
-
font-family: 'Outfit', var(--mantine-font-family);
|
|
28
|
-
text-align: center;
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
font-size: 38px;
|
|
31
|
-
|
|
32
|
-
@media (max-width: $mantine-breakpoint-sm) {
|
|
33
|
-
font-size: 32px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
padding-top: 80px;
|
|
3
|
-
padding-bottom: 80px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.label {
|
|
7
|
-
text-align: center;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
font-size: 38px;
|
|
10
|
-
line-height: 1;
|
|
11
|
-
margin-bottom: calc(1.5 * var(--mantine-spacing-xl));
|
|
12
|
-
color: var(--mantine-color-gray-2);
|
|
13
|
-
|
|
14
|
-
@media (max-width: $mantine-breakpoint-sm) {
|
|
15
|
-
font-size: 32px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.description {
|
|
20
|
-
max-width: 500px;
|
|
21
|
-
margin: auto;
|
|
22
|
-
margin-top: var(--mantine-spacing-xl);
|
|
23
|
-
margin-bottom: calc(1.5 * var(--mantine-spacing-xl));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.title {
|
|
27
|
-
font-family: 'Outfit', var(--mantine-font-family);
|
|
28
|
-
text-align: center;
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
font-size: 38px;
|
|
31
|
-
|
|
32
|
-
@media (max-width: $mantine-breakpoint-sm) {
|
|
33
|
-
font-size: 32px;
|
|
34
|
-
}
|
|
35
|
-
}
|