@tempots/beatui 0.11.0 → 0.12.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.
@@ -4,7 +4,11 @@ import { PasswordRules, SignInData, SignUpData, ResetPasswordData } from './type
4
4
  export declare function createPasswordSchema(rules?: PasswordRules): StringValidator;
5
5
  export declare const emailSchema: StringValidator;
6
6
  export declare function createSignInSchema(passwordRules?: PasswordRules): StandardSchemaV1<SignInData>;
7
- export declare function createSignUpSchema(passwordRules?: PasswordRules): StandardSchemaV1<SignUpData>;
7
+ export declare function createSignUpSchema(passwordRules?: PasswordRules, options?: {
8
+ showNameField?: boolean;
9
+ showConfirmPassword?: boolean;
10
+ showAcceptTermsAndConditions?: boolean;
11
+ }): StandardSchemaV1<SignUpData>;
8
12
  export declare const resetPasswordSchema: StandardSchemaV1<ResetPasswordData>;
9
13
  export declare const defaultSignInSchema: StandardSchemaV1<SignInData, SignInData>;
10
14
  export declare const defaultSignUpSchema: StandardSchemaV1<SignUpData, SignUpData>;
@@ -1,3 +1,3 @@
1
1
  import { TNode } from '@tempots/dom';
2
2
  import { SignUpFormOptions } from './index';
3
- export declare function SignUpForm({ onSubmit, onModeChange, loading, error, passwordRules, labels, socialProviders, showSocialDivider, showPasswordStrength, onSignUp, onSocialLogin, }: SignUpFormOptions): TNode;
3
+ export declare function SignUpForm({ onSubmit, onModeChange, loading, error, passwordRules, labels, socialProviders, showSocialDivider, showPasswordStrength, onSignUp, onSocialLogin, showAlreadyHaveAccountLink, showNameField, showConfirmPassword, showAcceptTermsAndConditions, termsAndConditions, }: SignUpFormOptions): TNode;
@@ -1,4 +1,4 @@
1
- import { Value } from '@tempots/dom';
1
+ import { TNode, Value } from '@tempots/dom';
2
2
  import { ControlSize } from '../theme';
3
3
  import { ThemeColorName } from '@/tokens';
4
4
  import { AuthProviderInfo } from './social-login-button';
@@ -123,6 +123,11 @@ export interface SignUpFormOptions {
123
123
  showPasswordStrength?: Value<boolean>;
124
124
  onSignUp?: (data: SignUpData) => Promise<void>;
125
125
  onSocialLogin?: (provider: AuthProviderName) => Promise<void>;
126
+ showAlreadyHaveAccountLink?: Value<boolean>;
127
+ showNameField?: Value<boolean>;
128
+ showConfirmPassword?: Value<boolean>;
129
+ showAcceptTermsAndConditions?: Value<boolean>;
130
+ termsAndConditions?: TNode;
126
131
  }
127
132
  export interface ResetPasswordFormOptions {
128
133
  onSubmit?: (data: ResetPasswordData) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",
@@ -54,7 +54,7 @@
54
54
  "registry": "https://registry.npmjs.org/"
55
55
  },
56
56
  "peerDependencies": {
57
- "@tempots/dom": "28.3.0",
57
+ "@tempots/dom": "28.3.1",
58
58
  "@tempots/std": "0.22.1",
59
59
  "@tempots/ui": "6.2.0"
60
60
  },