@nodeblocks/frontend-reset-password-block 0.1.0 → 0.2.0
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/context.d.ts +3 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/index.cjs.js +86 -41381
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +86 -41363
- package/dist/index.esm.js.map +1 -1
- package/dist/reset-password.d.ts +25 -22
- package/dist/reset-password.d.ts.map +1 -1
- package/package.json +9 -6
- package/dist/blocks.d.ts +0 -38
- package/dist/blocks.d.ts.map +0 -1
package/dist/reset-password.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
1
|
+
import { ButtonProps, StackProps, TextFieldProps, TypographyProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ResetPasswordContextValue } from './context';
|
|
5
4
|
import { BlocksOverride } from './lib';
|
|
6
5
|
export type ResetPasswordFormData = {
|
|
7
6
|
email?: string;
|
|
@@ -10,7 +9,7 @@ export type ResetPasswordFormData = {
|
|
|
10
9
|
confirmPassword?: string;
|
|
11
10
|
};
|
|
12
11
|
declare const ResetPassword: {
|
|
13
|
-
<T extends ResetPasswordFormData, CustomBlocks extends Record<string, ReactNode> = {}>({ resetPasswordTitle, description, gotoSigninMessage, view, onSendRequest, onResetPassword, className, children, ...props }: Omit<
|
|
12
|
+
<T extends ResetPasswordFormData, CustomBlocks extends Record<string, ReactNode> = {}>({ resetPasswordTitle, description, gotoSigninMessage, view, onSendRequest, onResetPassword, className, children, sx, ...props }: Omit<StackProps, "children" | "onSubmit"> & {
|
|
14
13
|
resetPasswordTitle?: ReactNode;
|
|
15
14
|
description?: ReactNode;
|
|
16
15
|
gotoSigninMessage?: ReactNode;
|
|
@@ -18,41 +17,45 @@ declare const ResetPassword: {
|
|
|
18
17
|
onSendRequest: (data: T) => void;
|
|
19
18
|
onResetPassword: (data: T) => void;
|
|
20
19
|
children?: BlocksOverride<typeof defaultBlocks, CustomBlocks>;
|
|
20
|
+
showPassword?: boolean;
|
|
21
|
+
onShowPasswordClick?: (show: boolean) => void;
|
|
21
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
Title(props: Partial<
|
|
23
|
-
Description(props: Partial<
|
|
23
|
+
Title({ sx, children, className, ...props }: Partial<TypographyProps>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
Description({ sx, children, className, ...props }: Partial<TypographyProps>): import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
Form: {
|
|
25
|
-
<T extends ResetPasswordFormData>(props: Partial<
|
|
26
|
+
<T extends ResetPasswordFormData>({ children, className, ...props }: Partial<StackProps<"form"> & {
|
|
26
27
|
view?: "request" | "confirm_password";
|
|
27
28
|
onSendRequest?: (data: T) => void;
|
|
28
29
|
onResetPassword?: (data: T) => void;
|
|
29
30
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
EmailField: (props: Partial<
|
|
31
|
-
PasswordField: (props: Partial<
|
|
32
|
-
ConfirmPasswordField: (props: Partial<
|
|
33
|
-
ResetPasswordButton: ({ children, ...props }:
|
|
31
|
+
EmailField: ({ className, ...props }: Partial<TextFieldProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
PasswordField: ({ className, ...props }: Partial<TextFieldProps & Pick<ResetPasswordContextValue, "showPassword" | "onShowPasswordClick">>) => import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
ConfirmPasswordField: ({ className, ...props }: Partial<TextFieldProps & Pick<ResetPasswordContextValue, "showPassword" | "onShowPasswordClick">>) => import("react/jsx-runtime").JSX.Element | null;
|
|
34
|
+
ResetPasswordButton: ({ children, className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
};
|
|
35
|
-
Goto(props: Partial<
|
|
36
|
+
Goto({ children, className, sx, ...props }: Partial<TypographyProps>): import("react/jsx-runtime").JSX.Element;
|
|
36
37
|
};
|
|
37
38
|
declare const defaultBlocks: {
|
|
38
|
-
title: import("react").ReactElement<Partial<
|
|
39
|
-
description: import("react").ReactElement<Partial<
|
|
40
|
-
form: import("react").ReactElement<Partial<import("
|
|
39
|
+
title: import("react").ReactElement<Partial<TypographyProps>, ({ sx, children, className, ...props }: Partial<TypographyProps>) => import("react/jsx-runtime").JSX.Element>;
|
|
40
|
+
description: import("react").ReactElement<Partial<TypographyProps>, ({ sx, children, className, ...props }: Partial<TypographyProps>) => import("react/jsx-runtime").JSX.Element>;
|
|
41
|
+
form: import("react").ReactElement<Partial<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & {
|
|
42
|
+
component?: React.ElementType;
|
|
43
|
+
} & {
|
|
41
44
|
view?: "request" | "confirm_password";
|
|
42
45
|
onSendRequest?: ((data: ResetPasswordFormData) => void) | undefined;
|
|
43
46
|
onResetPassword?: ((data: ResetPasswordFormData) => void) | undefined;
|
|
44
47
|
}>, {
|
|
45
|
-
<T extends ResetPasswordFormData>(props: Partial<
|
|
48
|
+
<T extends ResetPasswordFormData>({ children, className, ...props }: Partial<StackProps<"form"> & {
|
|
46
49
|
view?: "request" | "confirm_password";
|
|
47
50
|
onSendRequest?: (data: T) => void;
|
|
48
51
|
onResetPassword?: (data: T) => void;
|
|
49
52
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
EmailField: (props: Partial<
|
|
51
|
-
PasswordField: (props: Partial<
|
|
52
|
-
ConfirmPasswordField: (props: Partial<
|
|
53
|
-
ResetPasswordButton: ({ children, ...props }:
|
|
53
|
+
EmailField: ({ className, ...props }: Partial<TextFieldProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
54
|
+
PasswordField: ({ className, ...props }: Partial<TextFieldProps & Pick<ResetPasswordContextValue, "showPassword" | "onShowPasswordClick">>) => import("react/jsx-runtime").JSX.Element | null;
|
|
55
|
+
ConfirmPasswordField: ({ className, ...props }: Partial<TextFieldProps & Pick<ResetPasswordContextValue, "showPassword" | "onShowPasswordClick">>) => import("react/jsx-runtime").JSX.Element | null;
|
|
56
|
+
ResetPasswordButton: ({ children, className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
57
|
}>;
|
|
55
|
-
goto: import("react").ReactElement<Partial<
|
|
58
|
+
goto: import("react").ReactElement<Partial<TypographyProps>, ({ children, className, sx, ...props }: Partial<TypographyProps>) => import("react/jsx-runtime").JSX.Element>;
|
|
56
59
|
};
|
|
57
60
|
export default ResetPassword;
|
|
58
61
|
//# sourceMappingURL=reset-password.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../src/reset-password.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../src/reset-password.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EAKX,UAAU,EAEV,cAAc,EAEd,eAAe,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAuB,SAAS,EAAY,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAkD,MAAM,WAAW,CAAC;AACtG,OAAO,EAAE,cAAc,EAAuE,MAAM,OAAO,CAAC;AAE5G,MAAM,MAAM,qBAAqB,GAC7B;IACE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACD;IACE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEN,QAAA,MAAM,aAAa;KAAI,CAAC,SAAS,qBAAqB,EAAE,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,wIAWnG,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AAC;;;;eA6BjF,SAAS,GAAG,kBAAkB;0DACR,IAAI;4DACF,IAAI;;SARzB,CAAC,SAAS,qBAAqB,qCAI1C,OAAO,CACR,UAAU,CAAC,MAAM,CAAC,GAAG;YACnB,IAAI,CAAC,EAAE,SAAS,GAAG,kBAAkB,CAAC;YACtC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;YAClC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;SACrC,CACF;8CAsD4C,OAAO,CAAC,cAAc,CAAC;iDAoBjE,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,yBAAyB,EAAE,cAAc,GAAG,qBAAqB,CAAC,CAAC;wDAwCjG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,yBAAyB,EAAE,cAAc,GAAG,qBAAqB,CAAC,CAAC;iEAqCpC,WAAW;;yGAgBd,OAAO,CAAC,eAAe,CAAC;CA6BnF,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodeblocks/frontend-reset-password-block",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"browser": "dist/index.iife.js",
|
|
@@ -14,16 +14,20 @@
|
|
|
14
14
|
"watch": "rm -rf dist && cross-env NODE_ENV=development rollup -c --watch"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "^
|
|
18
|
-
"
|
|
17
|
+
"@emotion/react": "^11.14.0",
|
|
18
|
+
"@emotion/styled": "^11.14.1",
|
|
19
|
+
"@mui/icons-material": "^7.3.6",
|
|
20
|
+
"@mui/material": "^7.3.6",
|
|
21
|
+
"react": ">=18 <20",
|
|
22
|
+
"react-dom": ">=18 <20"
|
|
19
23
|
},
|
|
20
24
|
"devDependencies": {
|
|
21
25
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
22
26
|
"@rollup/plugin-json": "^6.1.0",
|
|
23
27
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
24
28
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
25
|
-
"@types/react": "
|
|
26
|
-
"@types/react-dom": "
|
|
29
|
+
"@types/react": "19.2.7",
|
|
30
|
+
"@types/react-dom": "19.2.3",
|
|
27
31
|
"rollup": "^4.28.0",
|
|
28
32
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
29
33
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
@@ -33,7 +37,6 @@
|
|
|
33
37
|
"typescript": "^5.7.2"
|
|
34
38
|
},
|
|
35
39
|
"dependencies": {
|
|
36
|
-
"@basaldev/blocks-frontend-framework": "^4.3.6",
|
|
37
40
|
"deepmerge": "^4.3.1"
|
|
38
41
|
}
|
|
39
42
|
}
|
package/dist/blocks.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { InputText, InputTextProps, Button as NbButton, Typography } from '@basaldev/blocks-frontend-framework';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
export declare const TextFormField: (props: InputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const Title: ({ className, content, size, type, ...props }: ComponentProps<typeof Typography> & {
|
|
5
|
-
content?: ReactNode;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const Description: ({ className, content, size, type, ...props }: ComponentProps<typeof Typography> & {
|
|
8
|
-
content?: ReactNode;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const EmailField: ({ name, label, placeholder, ...props }: ComponentProps<typeof InputText>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const PasswordField: ({ className, name, label, placeholder, errorText, onChange, ...props }: ComponentProps<typeof InputText>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare const ConfirmPasswordField: ({ className, name, label, placeholder, errorText, onChange, ...props }: ComponentProps<typeof InputText>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const ResetPasswordButton: ({ className, width, disable, children, ...props }: Omit<ComponentProps<typeof NbButton>, "children"> & {
|
|
14
|
-
disable?: boolean;
|
|
15
|
-
children?: ComponentProps<typeof NbButton>["children"];
|
|
16
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const Goto: ({ className, content, ...props }: Omit<ComponentProps<"div">, "content"> & {
|
|
18
|
-
content?: ReactNode;
|
|
19
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare const defaultBlocks: {
|
|
21
|
-
Title: ({ className, content, size, type, ...props }: ComponentProps<typeof Typography> & {
|
|
22
|
-
content?: ReactNode;
|
|
23
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
Description: ({ className, content, size, type, ...props }: ComponentProps<typeof Typography> & {
|
|
25
|
-
content?: ReactNode;
|
|
26
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
EmailField: ({ name, label, placeholder, ...props }: ComponentProps<typeof InputText>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
PasswordField: ({ className, name, label, placeholder, errorText, onChange, ...props }: ComponentProps<typeof InputText>) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
ConfirmPasswordField: ({ className, name, label, placeholder, errorText, onChange, ...props }: ComponentProps<typeof InputText>) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
ResetPasswordButton: ({ className, width, disable, children, ...props }: Omit<ComponentProps<typeof NbButton>, "children"> & {
|
|
31
|
-
disable?: boolean;
|
|
32
|
-
children?: ComponentProps<typeof NbButton>["children"];
|
|
33
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
Goto: ({ className, content, ...props }: Omit<ComponentProps<"div">, "content"> & {
|
|
35
|
-
content?: ReactNode;
|
|
36
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=blocks.d.ts.map
|
package/dist/blocks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../src/blocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAChH,OAAO,EAAE,cAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5D,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc,4CAA6B,CAAC;AAEjF,eAAO,MAAM,KAAK,GAAI,8CAMnB,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,SAAS,CAAA;CAAE,4CAI7D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,8CAMzB,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,SAAS,CAAA;CAAE,4CAI7D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,wCAKxB,cAAc,CAAC,OAAO,SAAS,CAAC,4CAAiF,CAAC;AAErH,eAAO,MAAM,aAAa,GAAI,wEAQ3B,cAAc,CAAC,OAAO,SAAS,CAAC,4CAqBlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,wEAQlC,cAAc,CAAC,OAAO,SAAS,CAAC,4CAiBlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,mDAMjC,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;CACxD,4CAYA,CAAC;AAEF,eAAO,MAAM,IAA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