@nodeblocks/frontend-reset-password-block 0.0.5 → 0.1.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/blocks.d.ts CHANGED
@@ -1,15 +1,38 @@
1
- import { InputTextProps } from '@basaldev/blocks-frontend-framework';
2
- import type { DefaultOptions } from './types';
3
- export declare const defaultOptions: DefaultOptions;
4
- declare const TextFormField: (props: InputTextProps) => import("react/jsx-runtime").JSX.Element;
5
- declare const defaultBlocks: {
6
- Title: import("./types").Block<import("./types").TitleProps>;
7
- Description: import("./types").Block<import("./types").DescriptionProps>;
8
- EmailField: import("./types").Block<import("./types").EmailFieldProps>;
9
- PasswordField: import("./types").Block<import("./types").PasswordFieldProps>;
10
- ConfirmPasswordField: import("./types").Block<import("./types").PasswordFieldProps>;
11
- ResetPasswordButton: import("./types").Block<import("./types").ButtonProps>;
12
- Goto: import("./types").Block<import("./types").GotoProps>;
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
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../src/blocks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,cAAc,EAAc,MAAM,qCAAqC,CAAC;AAGhH,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO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A,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,kCAIlB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,SAAS,CAAA;CAAE,4CAIlE,CAAC;AAEF,eAAO,MAAM,aAAa;0DApHvB,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;QAAE,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE;gEAY3D,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;QAAE,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE;yDAW3D,cAAc,CAAC,OAAO,SAAS,CAAC;4FAUhC,cAAc,CAAC,OAAO,SAAS,CAAC;mGA+BhC,cAAc,CAAC,OAAO,SAAS,CAAC;6EAyBhC,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;QACrD,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;KACxD;6CAkBE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG;QAAE,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE;CAclE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ import { ResetPasswordFormData } from './reset-password';
3
+ type ResetPasswordContextValue<T extends ResetPasswordFormData = any> = {
4
+ resetPasswordTitle: ReactNode;
5
+ description: ReactNode;
6
+ gotoSigninMessage: ReactNode;
7
+ view: 'request' | 'confirm_password';
8
+ onSendRequest: (data: T) => void;
9
+ onResetPassword: (data: T) => void;
10
+ };
11
+ export declare const ResetPasswordProvider: <T extends ResetPasswordFormData>({ children, ...value }: ResetPasswordContextValue<T> & {
12
+ children: ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const useResetPasswordContext: <T extends ResetPasswordFormData>() => ResetPasswordContextValue<T>;
15
+ export {};
16
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,KAAK,yBAAyB,CAI5B,CAAC,SAAS,qBAAqB,GAAG,GAAG,IACnC;IACF,kBAAkB,EAAE,SAAS,CAAC;IAC9B,WAAW,EAAE,SAAS,CAAC;IACvB,iBAAiB,EAAE,SAAS,CAAC;IAC7B,IAAI,EAAE,SAAS,GAAG,kBAAkB,CAAC;IACrC,aAAa,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IACjC,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACpC,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,qBAAqB,EAAE,wBAGpE,yBAAyB,CAAC,CAAC,CAAC,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;CACrB,4CAEA,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,qBAAqB,mCAOtE,CAAC"}