@pagamio/frontend-commons-lib 0.8.366 → 0.8.367
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.
|
@@ -333,16 +333,16 @@ export function PagamioLoginPage({ logo, text = loginPageDefaultText, appLabel,
|
|
|
333
333
|
setPhoneError(null);
|
|
334
334
|
}, className: `flex-1 whitespace-nowrap px-3 py-2.5 text-center text-sm font-medium transition-colors ${activeTab === 'phone'
|
|
335
335
|
? 'bg-primary text-primary-foreground'
|
|
336
|
-
: 'bg-background text-foreground/70 hover:bg-muted'}`, children: phoneTabLabel })),
|
|
336
|
+
: 'bg-background text-foreground/70 hover:bg-muted'}`, children: phoneTabLabel })), _jsx("button", { type: "button", role: "tab", "aria-selected": activeTab === 'password', onClick: () => setActiveTab('password'), className: `flex-1 whitespace-nowrap px-3 py-2.5 text-center text-sm font-medium transition-colors ${activeTab === 'password'
|
|
337
|
+
? 'bg-primary text-primary-foreground'
|
|
338
|
+
: 'bg-background text-foreground/70 hover:bg-muted'}`, children: passwordTabLabel }), showUsernameTab && (_jsx("button", { type: "button", role: "tab", "aria-selected": activeTab === 'username', onClick: () => {
|
|
337
339
|
setActiveTab('username');
|
|
338
340
|
setUsernameStep('enterLoginNumber');
|
|
339
341
|
setLoginNumberPinValue('');
|
|
340
342
|
setUsernameError(null);
|
|
341
343
|
}, className: `flex-1 whitespace-nowrap px-3 py-2.5 text-center text-sm font-medium transition-colors ${activeTab === 'username'
|
|
342
344
|
? 'bg-primary text-primary-foreground'
|
|
343
|
-
: 'bg-background text-foreground/70 hover:bg-muted'}`, children: usernameTabLabel })), _jsx(
|
|
344
|
-
? 'bg-primary text-primary-foreground'
|
|
345
|
-
: 'bg-background text-foreground/70 hover:bg-muted'}`, children: passwordTabLabel })] })), activeTab === 'password' && (_jsxs(_Fragment, { children: [_jsx(FormEngine, { fields: loginFields, onSubmit: handleSubmit, layout: "vertical", className: "mb-0 px-0", submitButtonClass: "w-full", submitButtonText: isLoading ? text.loadingButtonLabel : text.loginButtonLabel, onCancel: () => { }, showCancelButton: false, showSubmittingText: false, formRef: formRef, initialValues: {
|
|
345
|
+
: 'bg-background text-foreground/70 hover:bg-muted'}`, children: usernameTabLabel }))] })), activeTab === 'password' && (_jsxs(_Fragment, { children: [_jsx(FormEngine, { fields: loginFields, onSubmit: handleSubmit, layout: "vertical", className: "mb-0 px-0", submitButtonClass: "w-full", submitButtonText: isLoading ? text.loadingButtonLabel : text.loginButtonLabel, onCancel: () => { }, showCancelButton: false, showSubmittingText: false, formRef: formRef, initialValues: {
|
|
346
346
|
...(loginFieldType === 'email' ? { email: '' } : { username: '' }),
|
|
347
347
|
password: '',
|
|
348
348
|
rememberMe: false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagamio/frontend-commons-lib",
|
|
3
3
|
"description": "Pagamio library for Frontend reusable components like the form engine and table container",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.367",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": false
|