@tempots/beatui 0.9.0 → 0.11.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/beatui.css +1 -1
- package/dist/de-O2DMrfiH.js +37 -0
- package/dist/es-CsNVN5AY.js +37 -0
- package/dist/fr-CJjx2YoL.js +37 -0
- package/dist/index.es.js +5697 -3308
- package/dist/index.umd.js +52 -52
- package/dist/it-BKzoVost.js +37 -0
- package/dist/ja-ZBFmK5Uj.js +37 -0
- package/dist/pt-DumIX3mi.js +37 -0
- package/dist/ru-_EKfu_bO.js +37 -0
- package/dist/types/auth-i18n/default.d.ts +30 -0
- package/dist/types/auth-i18n/index.d.ts +2 -0
- package/dist/types/auth-i18n/locales/de.d.ts +29 -0
- package/dist/types/auth-i18n/locales/en.d.ts +29 -0
- package/dist/types/auth-i18n/locales/es.d.ts +29 -0
- package/dist/types/auth-i18n/locales/fr.d.ts +29 -0
- package/dist/types/auth-i18n/locales/it.d.ts +29 -0
- package/dist/types/auth-i18n/locales/ja.d.ts +29 -0
- package/dist/types/auth-i18n/locales/pt.d.ts +29 -0
- package/dist/types/auth-i18n/locales/ru.d.ts +29 -0
- package/dist/types/auth-i18n/locales/zh.d.ts +29 -0
- package/dist/types/auth-i18n/translations.d.ts +28 -0
- package/dist/types/components/auth/auth-container.d.ts +10 -0
- package/dist/types/components/auth/auth-divider.d.ts +8 -0
- package/dist/types/components/auth/index.d.ts +10 -0
- package/dist/types/components/auth/password-strength-indicator.d.ts +5 -0
- package/dist/types/components/auth/reset-password-form.d.ts +3 -0
- package/dist/types/components/auth/schemas.d.ts +32 -0
- package/dist/types/components/auth/signin-form.d.ts +3 -0
- package/dist/types/components/auth/signup-form.d.ts +3 -0
- package/dist/types/components/auth/social-login-button.d.ts +47 -0
- package/dist/types/components/auth/types.d.ts +166 -0
- package/dist/types/components/auth/utils.d.ts +23 -0
- package/dist/types/components/beatui.d.ts +4 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/form/control/combobox-control.d.ts +11 -0
- package/dist/types/components/form/control/control-input-wrapper.d.ts +1 -1
- package/dist/types/components/form/control/control-options.d.ts +1 -0
- package/dist/types/components/form/control/index.d.ts +1 -0
- package/dist/types/components/form/input/combobox.d.ts +39 -0
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-container.d.ts +2 -1
- package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
- package/dist/types/components/form/schema/custom-validation.d.ts +75 -0
- package/dist/types/components/form/schema/index.d.ts +1 -0
- package/dist/types/components/navigation/flyout.d.ts +1 -1
- package/dist/types/components/navigation/index.d.ts +1 -0
- package/dist/types/components/navigation/menu.d.ts +106 -0
- package/dist/types/components/navigation/sidebar/index.d.ts +1 -0
- package/dist/types/components/navigation/sidebar/sidebar-group.d.ts +2 -1
- package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +3 -0
- package/dist/types/components/navigation/sidebar/sidebar-separator.d.ts +1 -0
- package/dist/types/components/theme/types.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/tokens/colors.d.ts +1 -1
- package/dist/zh-DEZH0fdq.js +37 -0
- package/package.json +4 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
// Sign In
|
|
3
|
+
signInTitle: () => "Accedi",
|
|
4
|
+
signInButton: () => "Accedi",
|
|
5
|
+
emailLabel: () => "Email",
|
|
6
|
+
passwordLabel: () => "Password",
|
|
7
|
+
rememberMeLabel: () => "Ricordami",
|
|
8
|
+
forgotPasswordLink: () => "Password dimenticata?",
|
|
9
|
+
noAccountLink: () => "Non hai un account? Registrati",
|
|
10
|
+
// Sign Up
|
|
11
|
+
signUpTitle: () => "Registrati",
|
|
12
|
+
signUpButton: () => "Registrati",
|
|
13
|
+
nameLabel: () => "Nome",
|
|
14
|
+
confirmPasswordLabel: () => "Conferma Password",
|
|
15
|
+
acceptTermsLabel: () => "Accetto i termini e le condizioni",
|
|
16
|
+
hasAccountLink: () => "Hai già un account? Accedi",
|
|
17
|
+
// Reset Password
|
|
18
|
+
resetPasswordTitle: () => "Reimposta Password",
|
|
19
|
+
resetPasswordButton: () => "Reimposta Password",
|
|
20
|
+
resetPasswordDescription: () => "Inserisci la tua email per reimpostare la password.",
|
|
21
|
+
backToSignInLink: () => "Torna al login",
|
|
22
|
+
// Social Login
|
|
23
|
+
continueWithProvider: (e) => `Continua con ${e}`,
|
|
24
|
+
// Password Strength
|
|
25
|
+
passwordStrengthWeak: () => "Debole",
|
|
26
|
+
passwordStrengthFair: () => "Discreta",
|
|
27
|
+
passwordStrengthGood: () => "Buona",
|
|
28
|
+
passwordStrengthStrong: () => "Forte",
|
|
29
|
+
// Common
|
|
30
|
+
orDivider: () => "o",
|
|
31
|
+
loading: () => "Caricamento...",
|
|
32
|
+
error: () => "Si è verificato un errore",
|
|
33
|
+
required: () => "Obbligatorio"
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
i as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
// Sign In
|
|
3
|
+
signInTitle: () => "ログイン",
|
|
4
|
+
signInButton: () => "ログイン",
|
|
5
|
+
emailLabel: () => "メールアドレス",
|
|
6
|
+
passwordLabel: () => "パスワード",
|
|
7
|
+
rememberMeLabel: () => "ログイン状態を保持",
|
|
8
|
+
forgotPasswordLink: () => "パスワードをお忘れですか?",
|
|
9
|
+
noAccountLink: () => "アカウントをお持ちでない方はこちら",
|
|
10
|
+
// Sign Up
|
|
11
|
+
signUpTitle: () => "新規登録",
|
|
12
|
+
signUpButton: () => "新規登録",
|
|
13
|
+
nameLabel: () => "名前",
|
|
14
|
+
confirmPasswordLabel: () => "パスワード確認",
|
|
15
|
+
acceptTermsLabel: () => "利用規約に同意します",
|
|
16
|
+
hasAccountLink: () => "すでにアカウントをお持ちの方はこちら",
|
|
17
|
+
// Reset Password
|
|
18
|
+
resetPasswordTitle: () => "パスワードリセット",
|
|
19
|
+
resetPasswordButton: () => "パスワードリセット",
|
|
20
|
+
resetPasswordDescription: () => "パスワードをリセットするためにメールアドレスを入力してください。",
|
|
21
|
+
backToSignInLink: () => "ログインに戻る",
|
|
22
|
+
// Social Login
|
|
23
|
+
continueWithProvider: (e) => `${e}で続行`,
|
|
24
|
+
// Password Strength
|
|
25
|
+
passwordStrengthWeak: () => "弱い",
|
|
26
|
+
passwordStrengthFair: () => "普通",
|
|
27
|
+
passwordStrengthGood: () => "良い",
|
|
28
|
+
passwordStrengthStrong: () => "強い",
|
|
29
|
+
// Common
|
|
30
|
+
orDivider: () => "または",
|
|
31
|
+
loading: () => "読み込み中...",
|
|
32
|
+
error: () => "エラーが発生しました",
|
|
33
|
+
required: () => "必須"
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
r as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
// Sign In
|
|
3
|
+
signInTitle: () => "Entrar",
|
|
4
|
+
signInButton: () => "Entrar",
|
|
5
|
+
emailLabel: () => "Email",
|
|
6
|
+
passwordLabel: () => "Senha",
|
|
7
|
+
rememberMeLabel: () => "Lembrar-me",
|
|
8
|
+
forgotPasswordLink: () => "Esqueceu a senha?",
|
|
9
|
+
noAccountLink: () => "Não tem uma conta? Cadastre-se",
|
|
10
|
+
// Sign Up
|
|
11
|
+
signUpTitle: () => "Cadastrar",
|
|
12
|
+
signUpButton: () => "Cadastrar",
|
|
13
|
+
nameLabel: () => "Nome",
|
|
14
|
+
confirmPasswordLabel: () => "Confirmar Senha",
|
|
15
|
+
acceptTermsLabel: () => "Aceito os termos e condições",
|
|
16
|
+
hasAccountLink: () => "Já tem uma conta? Entre",
|
|
17
|
+
// Reset Password
|
|
18
|
+
resetPasswordTitle: () => "Redefinir Senha",
|
|
19
|
+
resetPasswordButton: () => "Redefinir Senha",
|
|
20
|
+
resetPasswordDescription: () => "Digite seu email para redefinir sua senha.",
|
|
21
|
+
backToSignInLink: () => "Voltar ao login",
|
|
22
|
+
// Social Login
|
|
23
|
+
continueWithProvider: (e) => `Continuar com ${e}`,
|
|
24
|
+
// Password Strength
|
|
25
|
+
passwordStrengthWeak: () => "Fraca",
|
|
26
|
+
passwordStrengthFair: () => "Regular",
|
|
27
|
+
passwordStrengthGood: () => "Boa",
|
|
28
|
+
passwordStrengthStrong: () => "Forte",
|
|
29
|
+
// Common
|
|
30
|
+
orDivider: () => "ou",
|
|
31
|
+
loading: () => "Carregando...",
|
|
32
|
+
error: () => "Ocorreu um erro",
|
|
33
|
+
required: () => "Obrigatório"
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
r as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
// Sign In
|
|
3
|
+
signInTitle: () => "Войти",
|
|
4
|
+
signInButton: () => "Войти",
|
|
5
|
+
emailLabel: () => "Email",
|
|
6
|
+
passwordLabel: () => "Пароль",
|
|
7
|
+
rememberMeLabel: () => "Запомнить меня",
|
|
8
|
+
forgotPasswordLink: () => "Забыли пароль?",
|
|
9
|
+
noAccountLink: () => "Нет аккаунта? Зарегистрироваться",
|
|
10
|
+
// Sign Up
|
|
11
|
+
signUpTitle: () => "Регистрация",
|
|
12
|
+
signUpButton: () => "Зарегистрироваться",
|
|
13
|
+
nameLabel: () => "Имя",
|
|
14
|
+
confirmPasswordLabel: () => "Подтвердить пароль",
|
|
15
|
+
acceptTermsLabel: () => "Я принимаю условия использования",
|
|
16
|
+
hasAccountLink: () => "Уже есть аккаунт? Войти",
|
|
17
|
+
// Reset Password
|
|
18
|
+
resetPasswordTitle: () => "Сброс пароля",
|
|
19
|
+
resetPasswordButton: () => "Сбросить пароль",
|
|
20
|
+
resetPasswordDescription: () => "Введите ваш email для сброса пароля.",
|
|
21
|
+
backToSignInLink: () => "Вернуться к входу",
|
|
22
|
+
// Social Login
|
|
23
|
+
continueWithProvider: (e) => `Продолжить с ${e}`,
|
|
24
|
+
// Password Strength
|
|
25
|
+
passwordStrengthWeak: () => "Слабый",
|
|
26
|
+
passwordStrengthFair: () => "Средний",
|
|
27
|
+
passwordStrengthGood: () => "Хороший",
|
|
28
|
+
passwordStrengthStrong: () => "Сильный",
|
|
29
|
+
// Common
|
|
30
|
+
orDivider: () => "или",
|
|
31
|
+
loading: () => "Загрузка...",
|
|
32
|
+
error: () => "Произошла ошибка",
|
|
33
|
+
required: () => "Обязательно"
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
r as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const defaultMessages: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export declare const defaultLocale = "en";
|
|
30
|
+
export type AuthMessages = typeof defaultMessages;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const de: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default de;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default en;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const es: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default es;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const fr: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default fr;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const it: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default it;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const ja: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default ja;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const pt: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default pt;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const ru: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default ru;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const zh: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default zh;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const AuthI18n: import("@tempots/dom").Provider<import("..").ReactiveMessages<{
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
loading: () => string;
|
|
26
|
+
error: () => string;
|
|
27
|
+
required: () => string;
|
|
28
|
+
}>, object>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
|
+
import { AuthContainerOptions } from './index';
|
|
3
|
+
export declare function AuthContainer({ mode: initialMode, className, socialProviders, passwordRules, showRememberMe, showSocialDivider, allowSignUp, allowPasswordReset, showPasswordStrength, labels, onSignIn, onSignUp, onResetPassword, onModeChange, onSocialLogin, onSubmitSignIn, onSubmitSignUp, onSubmitResetPassword, }: AuthContainerOptions): TNode;
|
|
4
|
+
export declare function AuthModal({ isOpen, onClose, ...authOptions }: AuthContainerOptions & {
|
|
5
|
+
isOpen: Value<boolean>;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}): TNode;
|
|
8
|
+
export declare function SignInContainer(options: Omit<AuthContainerOptions, 'initialMode'>): TNode;
|
|
9
|
+
export declare function SignUpContainer(options: Omit<AuthContainerOptions, 'initialMode'>): TNode;
|
|
10
|
+
export declare function ResetPasswordContainer(options: Omit<AuthContainerOptions, 'initialMode'>): TNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './schemas';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './auth-container';
|
|
5
|
+
export * from './signin-form';
|
|
6
|
+
export * from './signup-form';
|
|
7
|
+
export * from './reset-password-form';
|
|
8
|
+
export * from './social-login-button';
|
|
9
|
+
export * from './password-strength-indicator';
|
|
10
|
+
export * from './auth-divider';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TNode } from '@tempots/dom';
|
|
2
|
+
import { PasswordStrengthIndicatorOptions } from './index';
|
|
3
|
+
export declare function PasswordStrengthIndicator({ password, rules, showLabel, className, }: PasswordStrengthIndicatorOptions): TNode;
|
|
4
|
+
export declare function PasswordStrengthBar({ password, rules, className, }: Omit<PasswordStrengthIndicatorOptions, 'showLabel'>): TNode;
|
|
5
|
+
export declare function PasswordStrengthText({ password, rules, className, }: Omit<PasswordStrengthIndicatorOptions, 'showLabel'>): TNode;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StringValidator } from '../form/schema/custom-validation';
|
|
2
|
+
import { StandardSchemaV1 } from '../form/schema/standard-schema-v1';
|
|
3
|
+
import { PasswordRules, SignInData, SignUpData, ResetPasswordData } from './types';
|
|
4
|
+
export declare function createPasswordSchema(rules?: PasswordRules): StringValidator;
|
|
5
|
+
export declare const emailSchema: StringValidator;
|
|
6
|
+
export declare function createSignInSchema(passwordRules?: PasswordRules): StandardSchemaV1<SignInData>;
|
|
7
|
+
export declare function createSignUpSchema(passwordRules?: PasswordRules): StandardSchemaV1<SignUpData>;
|
|
8
|
+
export declare const resetPasswordSchema: StandardSchemaV1<ResetPasswordData>;
|
|
9
|
+
export declare const defaultSignInSchema: StandardSchemaV1<SignInData, SignInData>;
|
|
10
|
+
export declare const defaultSignUpSchema: StandardSchemaV1<SignUpData, SignUpData>;
|
|
11
|
+
export type SignInFormData = SignInData;
|
|
12
|
+
export type SignUpFormData = SignUpData;
|
|
13
|
+
export type ResetPasswordFormData = ResetPasswordData;
|
|
14
|
+
export declare const authSchemas: {
|
|
15
|
+
signIn: typeof createSignInSchema;
|
|
16
|
+
signUp: typeof createSignUpSchema;
|
|
17
|
+
resetPassword: () => StandardSchemaV1<ResetPasswordData, ResetPasswordData>;
|
|
18
|
+
};
|
|
19
|
+
export declare function validateEmail(email: string): string | null;
|
|
20
|
+
export declare function validatePassword(password: string, rules?: PasswordRules): string | null;
|
|
21
|
+
export declare function calculatePasswordStrength(password: string, rules?: PasswordRules): {
|
|
22
|
+
strength: 'weak' | 'fair' | 'good' | 'strong';
|
|
23
|
+
score: number;
|
|
24
|
+
checks: {
|
|
25
|
+
length: boolean;
|
|
26
|
+
uppercase: boolean;
|
|
27
|
+
lowercase: boolean;
|
|
28
|
+
numbers: boolean;
|
|
29
|
+
symbols: boolean;
|
|
30
|
+
custom: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TNode } from '@tempots/dom';
|
|
2
|
+
import { SignInFormOptions } from './index';
|
|
3
|
+
export declare function SignInForm({ onSubmit, onModeChange, onSignIn, onSocialLogin, loading, error, passwordRules, labels, socialProviders, showSocialDivider, showRememberMe, allowPasswordReset, allowSignUp, }: SignInFormOptions): TNode;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TNode } from '@tempots/dom';
|
|
2
|
+
import { SignUpFormOptions } from './index';
|
|
3
|
+
export declare function SignUpForm({ onSubmit, onModeChange, loading, error, passwordRules, labels, socialProviders, showSocialDivider, showPasswordStrength, onSignUp, onSocialLogin, }: SignUpFormOptions): TNode;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
|
+
import { SocialLoginButtonOptions, AuthProviderName } from './index';
|
|
3
|
+
import { ControlSize } from '../theme';
|
|
4
|
+
import { ThemeColorName } from '@/tokens';
|
|
5
|
+
export declare function SocialLoginButton({ provider, onClick, loading, disabled, size, name, icon, color, flow, labels, }: SocialLoginButtonOptions): TNode;
|
|
6
|
+
export type AuthProviderInfo = {
|
|
7
|
+
provider: AuthProviderName;
|
|
8
|
+
flow?: 'redirect' | 'popup';
|
|
9
|
+
};
|
|
10
|
+
export declare function SocialLoginButtons({ providers, onProviderClick, loading, disabled, size, className, }: {
|
|
11
|
+
providers: Value<Array<AuthProviderInfo>>;
|
|
12
|
+
onProviderClick?: (provider: AuthProviderName) => Promise<void>;
|
|
13
|
+
loading?: Value<boolean>;
|
|
14
|
+
disabled?: Value<boolean>;
|
|
15
|
+
size?: Value<ControlSize>;
|
|
16
|
+
className?: Value<string>;
|
|
17
|
+
}): TNode;
|
|
18
|
+
export declare const socialProviderInfo: Record<AuthProviderName, {
|
|
19
|
+
name: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
color: ThemeColorName | 'black';
|
|
22
|
+
}>;
|
|
23
|
+
export type SpecialSocialLoginButtonOptions = Omit<SocialLoginButtonOptions, 'provider' | 'name' | 'icon' | 'color'>;
|
|
24
|
+
export declare const GoogleLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
25
|
+
export declare const GitHubLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
26
|
+
export declare const AppleLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
27
|
+
export declare const FacebookLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
28
|
+
export declare const XLoginButtin: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
29
|
+
export declare const TwitterLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
30
|
+
export declare const MicrosoftLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
31
|
+
export declare const DiscordLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
32
|
+
export declare const LinkedInLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
33
|
+
export declare const InstagramLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
34
|
+
export declare const TiktokLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
35
|
+
export declare const SnapchatLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
36
|
+
export declare const RedditLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
37
|
+
export declare const PinterestLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
38
|
+
export declare const TwitchLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
39
|
+
export declare const SteamLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
40
|
+
export declare const EpicLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
41
|
+
export declare const PlayStationLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
42
|
+
export declare const XboxLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
43
|
+
export declare const WhatsAppLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
44
|
+
export declare const WeChatLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
45
|
+
export declare const AmazonLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
46
|
+
export declare const YahooLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|
|
47
|
+
export declare const PayPalLoginButton: (options: SpecialSocialLoginButtonOptions) => TNode;
|