@micha.bigler/ui-core-micha 1.4.6 → 1.4.7

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.
@@ -18,6 +18,6 @@ disabled = false, }) => {
18
18
  const supportsPasskey = !!onPasskeyLogin &&
19
19
  typeof window !== 'undefined' &&
20
20
  !!window.PublicKeyCredential;
21
- return (_jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 3 }, children: [error && (_jsx(Typography, { color: "error", gutterBottom: true, children: error })), supportsPasskey && (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "contained", fullWidth: true, type: "button", onClick: onPasskeyLogin, disabled: disabled, children: t('Auth.LOGIN_USE_PASSKEY_PRIMARY') }), _jsx(Divider, { sx: { my: 2 }, children: t('Auth.LOGIN_OR') })] })), _jsxs(Box, { component: "form", onSubmit: handleSubmit, sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx(TextField, { label: t('Auth.LOGIN_EMAIL_LABEL'), type: "email", required: true, fullWidth: true, value: identifier, onChange: (e) => setIdentifier(e.target.value), disabled: disabled }), _jsx(TextField, { label: t('Auth.LOGIN_PASSWORD_LABEL'), type: "password", required: true, fullWidth: true, value: password, onChange: (e) => setPassword(e.target.value), disabled: disabled }), _jsx(Button, { type: "submit", variant: "contained", fullWidth: true, disabled: disabled, children: t('Auth.LOGIN_SUBMIT') })] }), _jsxs(Box, { children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('Auth.LOGIN_OTHER_METHODS_TITLE') }), _jsx(SocialLoginButtons, { onProviderClick: onSocialLogin })] }), _jsxs(Box, { children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('Auth.LOGIN_ACCOUNT_RECOVERY_TITLE') }), _jsxs(Box, { sx: { display: 'flex', gap: 1, flexWrap: 'wrap' }, children: [onSignUp && (_jsx(Button, { type: "button", variant: "outlined", onClick: onSignUp, disabled: disabled, children: t('Auth.LOGIN_SIGNUP_BUTTON') })), _jsx(Button, { type: "button", variant: "outlined", onClick: onForgotPassword, disabled: disabled, children: t('Auth.LOGIN_FORGOT_PASSWORD_BUTTON') })] })] })] }));
21
+ return (_jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 3 }, children: [error && (_jsx(Typography, { color: "error", gutterBottom: true, children: error })), supportsPasskey && (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "contained", fullWidth: true, type: "button", onClick: onPasskeyLogin, disabled: disabled, children: t('Auth.LOGIN_USE_PASSKEY_BUTTON') }), _jsx(Divider, { sx: { my: 2 }, children: t('Auth.LOGIN_OR') })] })), _jsxs(Box, { component: "form", onSubmit: handleSubmit, sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx(TextField, { label: t('Auth.LOGIN_EMAIL_LABEL'), type: "email", required: true, fullWidth: true, value: identifier, onChange: (e) => setIdentifier(e.target.value), disabled: disabled }), _jsx(TextField, { label: t('Auth.LOGIN_PASSWORD_LABEL'), type: "password", required: true, fullWidth: true, value: password, onChange: (e) => setPassword(e.target.value), disabled: disabled }), _jsx(Button, { type: "submit", variant: "contained", fullWidth: true, disabled: disabled, children: t('Auth.LOGIN_SUBMIT') })] }), _jsxs(Box, { children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('Auth.LOGIN_OTHER_METHODS_TITLE') }), _jsx(SocialLoginButtons, { onProviderClick: onSocialLogin })] }), _jsxs(Box, { children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: t('Auth.LOGIN_ACCOUNT_RECOVERY_TITLE') }), _jsxs(Box, { sx: { display: 'flex', gap: 1, flexWrap: 'wrap' }, children: [onSignUp && (_jsx(Button, { type: "button", variant: "outlined", onClick: onSignUp, disabled: disabled, children: t('Auth.LOGIN_SIGNUP_BUTTON') })), _jsx(Button, { type: "button", variant: "outlined", onClick: onForgotPassword, disabled: disabled, children: t('Auth.LOGIN_FORGOT_PASSWORD_BUTTON') })] })] })] }));
22
22
  };
23
23
  export default LoginForm;
@@ -426,7 +426,7 @@ export const authTranslations = {
426
426
  "fr": "Créer un compte",
427
427
  "en": "Sign up"
428
428
  },
429
- "Auth.LOGIN_FORGOT_PASSWORD_LINK": {
429
+ "Auth.LOGIN_FORGOT_PASSWORD_BUTTON": {
430
430
  "de": "Passwort vergessen?",
431
431
  "fr": "Mot de passe oublié ?",
432
432
  "en": "Forgot password?"
@@ -825,6 +825,16 @@ export const authTranslations = {
825
825
  "de": "Die Support-Anfrage konnte nicht gesendet werden. Bitte versuche es später erneut oder kontaktiere den Support direkt.",
826
826
  "fr": "La demande d'assistance n'a pas pu être envoyée. Veuillez réessayer plus tard ou contacter le support directement.",
827
827
  "en": "Could not send the support request. Please try again later or contact support directly."
828
- }
828
+ },
829
+ "Auth.LOGIN_OTHER_METHODS_TITLE": {
830
+ "de": "Andere Anmeldemethoden",
831
+ "fr": "Autres méthodes de connexion",
832
+ "en": "Other sign-in methods"
833
+ },
834
+ "Auth.LOGIN_ACCOUNT_RECOVERY_TITLE": {
835
+ "de": "Konto-Wiederherstellung",
836
+ "fr": "Récupération de compte",
837
+ "en": "Account recovery"
838
+ },
829
839
  // ...
830
840
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micha.bigler/ui-core-micha",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "private": false,
@@ -53,7 +53,7 @@ const LoginForm = ({
53
53
  onClick={onPasskeyLogin}
54
54
  disabled={disabled}
55
55
  >
56
- {t('Auth.LOGIN_USE_PASSKEY_PRIMARY')}
56
+ {t('Auth.LOGIN_USE_PASSKEY_BUTTON')}
57
57
  </Button>
58
58
 
59
59
  <Divider sx={{ my: 2 }}>
@@ -469,7 +469,7 @@ export const authTranslations = {
469
469
  "fr": "Créer un compte",
470
470
  "en": "Sign up"
471
471
  },
472
- "Auth.LOGIN_FORGOT_PASSWORD_LINK": {
472
+ "Auth.LOGIN_FORGOT_PASSWORD_BUTTON": {
473
473
  "de": "Passwort vergessen?",
474
474
  "fr": "Mot de passe oublié ?",
475
475
  "en": "Forgot password?"
@@ -872,7 +872,17 @@ export const authTranslations = {
872
872
  "de": "Die Support-Anfrage konnte nicht gesendet werden. Bitte versuche es später erneut oder kontaktiere den Support direkt.",
873
873
  "fr": "La demande d'assistance n'a pas pu être envoyée. Veuillez réessayer plus tard ou contacter le support directement.",
874
874
  "en": "Could not send the support request. Please try again later or contact support directly."
875
- }
875
+ },
876
+ "Auth.LOGIN_OTHER_METHODS_TITLE": {
877
+ "de": "Andere Anmeldemethoden",
878
+ "fr": "Autres méthodes de connexion",
879
+ "en": "Other sign-in methods"
880
+ },
881
+ "Auth.LOGIN_ACCOUNT_RECOVERY_TITLE": {
882
+ "de": "Konto-Wiederherstellung",
883
+ "fr": "Récupération de compte",
884
+ "en": "Account recovery"
885
+ },
876
886
 
877
887
 
878
888