@nodeblocks/frontend-reset-password-block 0.0.4 → 0.0.6
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/ResetPassword.d.ts +14 -13
- package/dist/ResetPassword.d.ts.map +1 -1
- package/dist/blocks.d.ts +36 -13
- package/dist/blocks.d.ts.map +1 -1
- package/dist/index.cjs.js +6384 -5555
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6372 -5543
- package/dist/index.esm.js.map +1 -1
- package/dist/lib.d.ts.map +1 -1
- package/dist/types.d.ts +7 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/readme.md +9 -2
package/dist/ResetPassword.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { type
|
|
5
|
-
import
|
|
1
|
+
import '@basaldev/blocks-frontend-framework/dist/style.css';
|
|
2
|
+
import './ResetPassword.css';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
import { type SpacingProps } from '@basaldev/blocks-frontend-framework';
|
|
5
|
+
import { type ChildrenProps } from './lib';
|
|
6
|
+
import { ConfirmPasswordField, Description, EmailField, Goto, PasswordField, ResetPasswordButton, Title } from './blocks';
|
|
6
7
|
type RequestResetPasswordData = {
|
|
7
8
|
email?: string;
|
|
8
9
|
};
|
|
@@ -19,13 +20,13 @@ declare const ViewType: {
|
|
|
19
20
|
};
|
|
20
21
|
type ViewTypeKeys = keyof typeof ViewType;
|
|
21
22
|
type DefaultFieldOptions = {
|
|
22
|
-
Title?:
|
|
23
|
-
Description?:
|
|
24
|
-
EmailField?:
|
|
25
|
-
PasswordField?:
|
|
26
|
-
ConfirmPasswordField?:
|
|
27
|
-
Goto?:
|
|
28
|
-
ResetPasswordButton?:
|
|
23
|
+
Title?: ComponentProps<typeof Title>;
|
|
24
|
+
Description?: ComponentProps<typeof Description>;
|
|
25
|
+
EmailField?: ComponentProps<typeof EmailField>;
|
|
26
|
+
PasswordField?: ComponentProps<typeof PasswordField>;
|
|
27
|
+
ConfirmPasswordField?: ComponentProps<typeof ConfirmPasswordField>;
|
|
28
|
+
Goto?: ComponentProps<typeof Goto>;
|
|
29
|
+
ResetPasswordButton?: ComponentProps<typeof ResetPasswordButton>;
|
|
29
30
|
};
|
|
30
31
|
declare const ResetPassword: <TValues extends FormValues = FormValues>({ viewType, onResetPassword, showTitle, showDescription, showGoto, className, fieldOptions, children, gap, }: {
|
|
31
32
|
viewType?: ViewTypeKeys;
|
|
@@ -37,7 +38,7 @@ declare const ResetPassword: <TValues extends FormValues = FormValues>({ viewTyp
|
|
|
37
38
|
fieldOptions?: DefaultFieldOptions & {
|
|
38
39
|
[k: string]: unknown;
|
|
39
40
|
};
|
|
40
|
-
children?: (props: ChildrenProps) =>
|
|
41
|
+
children?: (props: ChildrenProps) => {
|
|
41
42
|
blocks: {
|
|
42
43
|
[x: string]: any;
|
|
43
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../src/ResetPassword.tsx"],"names":[],"mappings":"AAAA,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../src/ResetPassword.tsx"],"names":[],"mappings":"AAAA,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,KAAK,aAAa,EAAyB,MAAM,OAAO,CAAC;AAClE,OAAO,EACL,oBAAoB,EAEpB,WAAW,EACX,UAAU,EACV,IAAI,EACJ,aAAa,EACb,mBAAmB,EACnB,KAAK,EACN,MAAM,UAAU,CAAC;AAkDlB,KAAK,wBAAwB,G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,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,mBAAmB,GAAG;QACnC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK;QACnC,MAAM,EAAE;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAC;KAC9B,CAAC;IACF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CAC/B,4CA6CA,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/blocks.d.ts
CHANGED
|
@@ -1,15 +1,38 @@
|
|
|
1
|
-
import { InputTextProps } from
|
|
2
|
-
import
|
|
3
|
-
export declare const
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
13
37
|
};
|
|
14
|
-
export { defaultBlocks, TextFormField };
|
|
15
38
|
//# sourceMappingURL=blocks.d.ts.map
|
package/dist/blocks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../src/blocks.tsx"],"names":[],"mappings":"
|
|
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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