refine-mantine 1.6.1 → 1.7.0-dev.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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Discord](https://img.shields.io/badge/Chat%20on-Discord-%235865f2)](https://discord.gg/BCGmvSSJBk)
2
+
1
3
  # Refine-Mantine
2
4
 
3
5
  ## Refine Mantine Components
@@ -25,3 +27,13 @@ npm i refine-mantine
25
27
 
26
28
  **Early development stage:** The project is actively being developed, and APIs or component structures may change frequently.
27
29
  Feedback, suggestions, and contributions are welcome as the project evolves.
30
+
31
+ ## How to Contribute
32
+
33
+ - leave a star ⭐
34
+ - report a bug 🐞
35
+ - open a pull request 🏗️
36
+ - help others ❤️
37
+ - [buy me a coffee ☕](https://www.buymeacoffee.com/kruschid)
38
+
39
+ <a href="https://www.buymeacoffee.com/kruschid" target="_blank"><img width="200px" src="https://cdn.buymeacoffee.com/buttons/v2/default-orange.png" alt="Buy Me A Coffee" ></a>
package/dist/index.d.ts CHANGED
@@ -382,6 +382,19 @@ interface RegisterForm {
382
382
  }
383
383
  declare const RegisterPage: React.FC<RegisterPageProps>;
384
384
  //#endregion
385
+ //#region src/pages/auth/RegistrationVerificationPage.d.ts
386
+ interface RegistrationVerificationPageProps {
387
+ loginLink?: string;
388
+ wrapperProps?: StackProps;
389
+ scrollAreaProps?: ScrollAreaProps;
390
+ cardProps?: CardProps;
391
+ buttonProps?: ButtonProps;
392
+ icon?: ReactNode$1;
393
+ title?: ReactNode$1;
394
+ description?: ReactNode$1;
395
+ }
396
+ declare const RegistrationVerificationPage: React.FC<RegistrationVerificationPageProps>;
397
+ //#endregion
385
398
  //#region src/pages/auth/UpdatePasswordPage.d.ts
386
399
  interface UpdatePasswordPageProps {
387
400
  mutationVariables?: UpdatePasswordFormTypes;
@@ -410,4 +423,4 @@ declare const authProvider: AuthProvider;
410
423
  //#region src/providers/notificationProvider.d.ts
411
424
  declare const notificationProvider: () => NotificationProvider;
412
425
  //#endregion
413
- export { AutoSaveIndicator, AutoSaveIndicatorProps, BooleanField, BooleanFieldProps, Breadcrumb, BreadcrumbProps, CloneButton, CloneButtonProps, ColorSchemeToggle, ColumnFilter, ColumnSorter, Create, CreateButton, CreateButtonProps, CreateProps, DateField, DateFieldProps, DeleteButton, DeleteButtonProps, Edit, EditButton, EditButtonProps, EditProps, EmailField, Empty, ExportButton, ExportButtonProps, FileField, ForgotPasswordForm, ForgotPasswordPage, ForgotPasswordPageProps, ImportButton, ImportButtonProps, Layout, LayoutLocale, List, ListButton, ListButtonProps, ListProps, LoginArgs, LoginPage, LoginPageProps, Message, MessageProps, NotFound, OAuthProviderMantine, OtpHandler, PhoneField, RefreshButton, RefreshButtonProps, RegisterForm, RegisterPage, RegisterPageProps, SaveButton, SaveButtonProps, Show, ShowButton, ShowButtonProps, ShowProps, Table, TranslateFn, UpdatePasswordPage, UpdatePasswordPageProps, UrlField, UrlFieldProps, UseFormProps, UseFormReturnType, authProvider, notificationProvider, useForm, useOtp };
426
+ export { AutoSaveIndicator, AutoSaveIndicatorProps, BooleanField, BooleanFieldProps, Breadcrumb, BreadcrumbProps, CloneButton, CloneButtonProps, ColorSchemeToggle, ColumnFilter, ColumnSorter, Create, CreateButton, CreateButtonProps, CreateProps, DateField, DateFieldProps, DeleteButton, DeleteButtonProps, Edit, EditButton, EditButtonProps, EditProps, EmailField, Empty, ExportButton, ExportButtonProps, FileField, ForgotPasswordForm, ForgotPasswordPage, ForgotPasswordPageProps, ImportButton, ImportButtonProps, Layout, LayoutLocale, List, ListButton, ListButtonProps, ListProps, LoginArgs, LoginPage, LoginPageProps, Message, MessageProps, NotFound, OAuthProviderMantine, OtpHandler, PhoneField, RefreshButton, RefreshButtonProps, RegisterForm, RegisterPage, RegisterPageProps, RegistrationVerificationPage, RegistrationVerificationPageProps, SaveButton, SaveButtonProps, Show, ShowButton, ShowButtonProps, ShowProps, Table, TranslateFn, UpdatePasswordPage, UpdatePasswordPageProps, UrlField, UrlFieldProps, UseFormProps, UseFormReturnType, authProvider, notificationProvider, useForm, useOtp };
package/dist/index.js CHANGED
@@ -1408,7 +1408,7 @@ const set = (obj, path, value) => {
1408
1408
 
1409
1409
  //#endregion
1410
1410
  //#region src/hooks/useForm.ts
1411
- const useForm = ({ refineCoreProps, disableServerSideValidation: disableServerSideValidationProp = false,...rest } = {}) => {
1411
+ const useForm = ({ refineCoreProps, disableServerSideValidation: disableServerSideValidationProp = false, ...rest } = {}) => {
1412
1412
  const { options } = useRefineContext();
1413
1413
  const disableServerSideValidation = options?.disableServerSideValidation || disableServerSideValidationProp;
1414
1414
  const translate = useTranslate();
@@ -1529,6 +1529,7 @@ const DefaultTitle = () => {
1529
1529
 
1530
1530
  //#endregion
1531
1531
  //#region src/pages/auth/ForgotPasswordPage.tsx
1532
+ /** biome-ignore-all lint/correctness/useUniqueElementIds: test ids for playwright */
1532
1533
  const ForgotPasswordPage = (p) => {
1533
1534
  const translate = useTranslate();
1534
1535
  const { mutate: forgotPassword, isPending } = useForgotPassword();
@@ -1886,6 +1887,52 @@ const RegisterPage = (p) => {
1886
1887
  });
1887
1888
  };
1888
1889
 
1890
+ //#endregion
1891
+ //#region src/pages/auth/RegistrationVerificationPage.tsx
1892
+ const RegistrationVerificationPage = (p) => {
1893
+ const translate = useTranslate();
1894
+ return /* @__PURE__ */ jsx(Stack, {
1895
+ h: "100vh",
1896
+ align: "center",
1897
+ justify: "center",
1898
+ ...p.wrapperProps,
1899
+ children: /* @__PURE__ */ jsxs(ScrollArea, {
1900
+ type: "never",
1901
+ ...p.scrollAreaProps,
1902
+ children: [p.icon ?? /* @__PURE__ */ jsx(DefaultTitle, {}), /* @__PURE__ */ jsxs(Card, {
1903
+ shadow: "sm",
1904
+ padding: "lg",
1905
+ radius: "md",
1906
+ withBorder: true,
1907
+ ...p.cardProps,
1908
+ children: [
1909
+ p.title ?? /* @__PURE__ */ jsx(Title, {
1910
+ order: 5,
1911
+ mb: "sm",
1912
+ ta: "center",
1913
+ children: translate("pages.registerVerification.title", "Thank you for your registration")
1914
+ }),
1915
+ p.description ?? /* @__PURE__ */ jsx(Text, {
1916
+ size: "sm",
1917
+ ta: "center",
1918
+ c: "dimmed",
1919
+ children: translate("pages.registerVerification.description", "You will get an email where you can confirm your registration.")
1920
+ }),
1921
+ p.loginLink && /* @__PURE__ */ jsx(Button, {
1922
+ component: Link,
1923
+ to: p.loginLink,
1924
+ fullWidth: true,
1925
+ mt: "lg",
1926
+ variant: "light",
1927
+ ...p.buttonProps,
1928
+ children: translate("pages.registerVerification.login", "Back to login")
1929
+ })
1930
+ ]
1931
+ })]
1932
+ })
1933
+ });
1934
+ };
1935
+
1889
1936
  //#endregion
1890
1937
  //#region src/pages/auth/UpdatePasswordPage.tsx
1891
1938
  const UpdatePasswordPage = (p) => {
@@ -2093,4 +2140,4 @@ const notificationProvider = () => {
2093
2140
  };
2094
2141
 
2095
2142
  //#endregion
2096
- export { AutoSaveIndicator, BooleanField, Breadcrumb, CloneButton, ColorSchemeToggle, ColumnFilter, ColumnSorter, Create, CreateButton, DateField, DeleteButton, Edit, EditButton, EmailField, Empty, ExportButton, FileField, ForgotPasswordPage, ImportButton, Layout, List, ListButton, LoginPage, Message, NotFound, PhoneField, RefreshButton, RegisterPage, SaveButton, Show, ShowButton, Table, UpdatePasswordPage, UrlField, notificationProvider, useForm, useOtp };
2143
+ export { AutoSaveIndicator, BooleanField, Breadcrumb, CloneButton, ColorSchemeToggle, ColumnFilter, ColumnSorter, Create, CreateButton, DateField, DeleteButton, Edit, EditButton, EmailField, Empty, ExportButton, FileField, ForgotPasswordPage, ImportButton, Layout, List, ListButton, LoginPage, Message, NotFound, PhoneField, RefreshButton, RegisterPage, RegistrationVerificationPage, SaveButton, Show, ShowButton, Table, UpdatePasswordPage, UrlField, notificationProvider, useForm, useOtp };
package/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "refine-mantine",
3
+ "version": "1.7.0-dev.1",
3
4
  "type": "module",
4
5
  "exports": "./dist/index.js",
5
6
  "types": "./dist/index.d.ts",
@@ -18,6 +19,9 @@
18
19
  "prepare": "husky",
19
20
  "commitlint": "commitlint --edit"
20
21
  },
22
+ "dependencies": {
23
+ "@refinedev/ui-types": "^2.0.1"
24
+ },
21
25
  "peerDependencies": {
22
26
  "@mantine/core": "^8.3.1",
23
27
  "@mantine/form": "^8.3.1",
@@ -36,44 +40,44 @@
36
40
  "react-router-dom": "^7.0.2"
37
41
  },
38
42
  "devDependencies": {
39
- "@commitlint/cli": "^20.1.0",
40
- "@commitlint/config-conventional": "^20.0.0",
43
+ "@commitlint/cli": "^20.2.0",
44
+ "@commitlint/config-conventional": "^20.2.0",
41
45
  "@mantine/core": "^8.3.10",
42
46
  "@mantine/form": "^8.3.10",
43
47
  "@mantine/hooks": "^8.3.10",
44
48
  "@mantine/notifications": "^8.3.10",
45
- "@refinedev/core": "^5.0.5",
49
+ "@refinedev/core": "^5.0.7",
46
50
  "@refinedev/react-router": "^2.0.3",
47
51
  "@refinedev/react-table": "^6.0.1",
48
52
  "@refinedev/simple-rest": "^6.0.1",
49
- "@storybook/addon-storysource": "^8.6.14",
50
- "@storybook/addon-themes": "^9.1.15",
51
- "@storybook/react": "^9.1.15",
52
- "@storybook/react-vite": "^9.1.15",
53
- "@tabler/icons-react": "^3.35.0",
54
- "@tanstack/react-query": "^5.90.5",
53
+ "@storybook/addon-docs": "^10.1.10",
54
+ "@storybook/addon-themes": "^10.1.10",
55
+ "@storybook/react": "^10.1.10",
56
+ "@storybook/react-vite": "^10.1.10",
57
+ "@tabler/icons-react": "^3.36.0",
58
+ "@tanstack/react-query": "^5.90.12",
55
59
  "@tanstack/react-table": "^8.21.3",
56
60
  "@types/node": "^24.9.1",
57
- "@types/react": "^19.2.2",
58
- "@types/react-dom": "^19.2.2",
59
- "@vitejs/plugin-react": "^5.1.0",
61
+ "@types/react": "^19.2.7",
62
+ "@types/react-dom": "^19.2.3",
63
+ "@vitejs/plugin-react": "^5.1.2",
60
64
  "dayjs": "^1.11.19",
61
65
  "husky": "^9.1.7",
62
66
  "postcss": "^8.5.6",
63
67
  "postcss-preset-mantine": "1.18.0",
64
68
  "postcss-simple-vars": "^7.0.1",
65
- "react": "^19.2.0",
66
- "react-dom": "^19.2.0",
67
- "react-router": "^7.9.4",
68
- "react-router-dom": "^7.9.4",
69
+ "react": "^19.2.3",
70
+ "react-dom": "^19.2.3",
71
+ "react-router": "^7.11.0",
72
+ "react-router-dom": "^7.11.0",
69
73
  "semantic-release": "^25.0.2",
70
- "storybook": "^9.1.15",
71
- "tsdown": "^0.15.10",
74
+ "storybook": "^10.1.10",
75
+ "tsdown": "^0.18.1",
72
76
  "typescript": "^5.9.3",
73
- "vite": "^7.1.12",
74
- "vite-tsconfig-paths": "^5.1.4"
77
+ "vite": "^7.3.0",
78
+ "vite-tsconfig-paths": "^6.0.2"
75
79
  },
76
- "packageManager": "yarn@4.9.4",
80
+ "packageManager": "yarn@4.12.0",
77
81
  "files": [
78
82
  "dist",
79
83
  "src",
@@ -89,9 +93,5 @@
89
93
  "prerelease": true
90
94
  }
91
95
  ]
92
- },
93
- "dependencies": {
94
- "@refinedev/ui-types": "^2.0.1"
95
- },
96
- "version": "1.6.1"
96
+ }
97
97
  }
package/src/index.ts CHANGED
@@ -42,6 +42,7 @@ export * from "@/hooks/useOtp";
42
42
  export * from "@/pages/auth/ForgotPasswordPage";
43
43
  export * from "@/pages/auth/LoginPage";
44
44
  export * from "@/pages/auth/RegisterPage";
45
+ export * from "@/pages/auth/RegistrationVerificationPage";
45
46
  export * from "@/pages/auth/UpdatePasswordPage";
46
47
  export * from "@/pages/NotFound";
47
48
  // providers
@@ -0,0 +1,12 @@
1
+ import { RegistrationVerificationPage } from "./RegistrationVerificationPage";
2
+
3
+ export default {
4
+ title: "Auth/RegistrationVerificationPage",
5
+ component: RegistrationVerificationPage,
6
+ };
7
+
8
+ export const Default = () => <RegistrationVerificationPage />;
9
+
10
+ export const WithLoginLink = () => (
11
+ <RegistrationVerificationPage loginLink="/login" />
12
+ );
@@ -0,0 +1,72 @@
1
+ import {
2
+ Button,
3
+ type ButtonProps,
4
+ Card,
5
+ type CardProps,
6
+ ScrollArea,
7
+ type ScrollAreaProps,
8
+ Stack,
9
+ type StackProps,
10
+ Text,
11
+ Title,
12
+ } from "@mantine/core";
13
+ import { Link, useTranslate } from "@refinedev/core";
14
+ import type { ReactNode } from "react";
15
+ import { DefaultTitle } from "./DefaultTitle";
16
+
17
+ export interface RegistrationVerificationPageProps {
18
+ loginLink?: string;
19
+ // props
20
+ wrapperProps?: StackProps;
21
+ scrollAreaProps?: ScrollAreaProps;
22
+ cardProps?: CardProps;
23
+ buttonProps?: ButtonProps;
24
+ // components
25
+ icon?: ReactNode;
26
+ title?: ReactNode;
27
+ description?: ReactNode;
28
+ }
29
+
30
+ export const RegistrationVerificationPage: React.FC<
31
+ RegistrationVerificationPageProps
32
+ > = (p) => {
33
+ const translate = useTranslate();
34
+
35
+ return (
36
+ <Stack h="100vh" align="center" justify="center" {...p.wrapperProps}>
37
+ <ScrollArea type="never" {...p.scrollAreaProps}>
38
+ {p.icon ?? <DefaultTitle />}
39
+ <Card shadow="sm" padding="lg" radius="md" withBorder {...p.cardProps}>
40
+ {p.title ?? (
41
+ <Title order={5} mb="sm" ta="center">
42
+ {translate(
43
+ "pages.registerVerification.title",
44
+ "Thank you for your registration",
45
+ )}
46
+ </Title>
47
+ )}
48
+ {p.description ?? (
49
+ <Text size="sm" ta="center" c="dimmed">
50
+ {translate(
51
+ "pages.registerVerification.description",
52
+ "You will get an email where you can confirm your registration.",
53
+ )}
54
+ </Text>
55
+ )}
56
+ {p.loginLink && (
57
+ <Button
58
+ component={Link as React.FC<{ to: string }>}
59
+ to={p.loginLink}
60
+ fullWidth
61
+ mt="lg"
62
+ variant="light"
63
+ {...p.buttonProps}
64
+ >
65
+ {translate("pages.registerVerification.login", "Back to login")}
66
+ </Button>
67
+ )}
68
+ </Card>
69
+ </ScrollArea>
70
+ </Stack>
71
+ );
72
+ };