@oussemasahbeni/keycloakify-login-shadcn 250004.0.3 → 250004.0.8
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/keycloak-theme/components/langauges.tsx +1 -1
- package/keycloak-theme/components/theme-toggle.tsx +0 -1
- package/keycloak-theme/components/ui/alert.tsx +1 -2
- package/keycloak-theme/components/ui/button.tsx +1 -2
- package/keycloak-theme/components/ui/card.tsx +0 -1
- package/keycloak-theme/components/ui/checkbox.tsx +0 -1
- package/keycloak-theme/components/ui/dropdown-menu.tsx +14 -4
- package/keycloak-theme/components/ui/field.tsx +0 -1
- package/keycloak-theme/components/ui/input-otp.tsx +0 -1
- package/keycloak-theme/components/ui/input.tsx +0 -1
- package/keycloak-theme/components/ui/label.tsx +1 -2
- package/keycloak-theme/components/ui/radio-group.tsx +0 -1
- package/keycloak-theme/components/ui/select.tsx +12 -4
- package/keycloak-theme/components/ui/separator.tsx +0 -1
- package/keycloak-theme/components/ui/tooltip.tsx +0 -1
- package/keycloak-theme/login/KcContext.ts +23 -23
- package/keycloak-theme/login/KcPage.tsx +45 -47
- package/keycloak-theme/login/assets/img/auth-logo.svg +100 -100
- package/keycloak-theme/login/assets/img/shape.svg +71 -71
- package/keycloak-theme/login/components/LogoutOtherSessions.tsx +24 -26
- package/keycloak-theme/login/components/PasswordWrapper.tsx +35 -35
- package/keycloak-theme/login/components/Template/Template.tsx +279 -227
- package/keycloak-theme/login/components/Template/index.ts +1 -1
- package/keycloak-theme/login/components/Template/useInitializeTemplate.ts +61 -61
- package/keycloak-theme/login/components/UserProfileFormFields/AddRemoveButtonsMultiValuedAttribute.tsx +65 -61
- package/keycloak-theme/login/components/UserProfileFormFields/DO_MAKE_USER_CONFIRM_PASSWORD.ts +2 -2
- package/keycloak-theme/login/components/UserProfileFormFields/FieldErrors.tsx +33 -29
- package/keycloak-theme/login/components/UserProfileFormFields/GroupLabel.tsx +90 -71
- package/keycloak-theme/login/components/UserProfileFormFields/InputFieldByType.tsx +66 -59
- package/keycloak-theme/login/components/UserProfileFormFields/InputLabel.tsx +0 -1
- package/keycloak-theme/login/components/UserProfileFormFields/InputTag.tsx +133 -116
- package/keycloak-theme/login/components/UserProfileFormFields/InputTagSelects.tsx +150 -136
- package/keycloak-theme/login/components/UserProfileFormFields/SelectTag.tsx +135 -114
- package/keycloak-theme/login/components/UserProfileFormFields/TextareaTag.tsx +55 -43
- package/keycloak-theme/login/components/UserProfileFormFields/UserProfileFormFields.tsx +133 -127
- package/keycloak-theme/login/components/UserProfileFormFields/index.ts +1 -1
- package/keycloak-theme/login/i18n.ts +47 -47
- package/keycloak-theme/login/mocks/KcPageStory.tsx +6 -2
- package/keycloak-theme/login/mocks/getKcContextMock.ts +22 -22
- package/keycloak-theme/login/pages/PageIndex.tsx +130 -134
- package/keycloak-theme/login/pages/code/Page.stories.tsx +57 -70
- package/keycloak-theme/login/pages/code/Page.tsx +89 -89
- package/keycloak-theme/login/pages/code/index.ts +3 -3
- package/keycloak-theme/login/pages/delete-account-confirm/Page.stories.tsx +37 -46
- package/keycloak-theme/login/pages/delete-account-confirm/Page.tsx +60 -63
- package/keycloak-theme/login/pages/delete-account-confirm/index.ts +3 -3
- package/keycloak-theme/login/pages/delete-credential/Page.stories.tsx +25 -30
- package/keycloak-theme/login/pages/delete-credential/Page.tsx +56 -51
- package/keycloak-theme/login/pages/delete-credential/index.ts +3 -3
- package/keycloak-theme/login/pages/error/Page.stories.tsx +46 -58
- package/keycloak-theme/login/pages/error/Page.tsx +43 -42
- package/keycloak-theme/login/pages/error/index.ts +3 -3
- package/keycloak-theme/login/pages/frontchannel-logout/Page.stories.tsx +25 -32
- package/keycloak-theme/login/pages/frontchannel-logout/Page.tsx +82 -84
- package/keycloak-theme/login/pages/frontchannel-logout/index.ts +3 -3
- package/keycloak-theme/login/pages/idp-review-user-profile/Page.stories.tsx +46 -59
- package/keycloak-theme/login/pages/idp-review-user-profile/Page.tsx +49 -52
- package/keycloak-theme/login/pages/idp-review-user-profile/index.ts +3 -3
- package/keycloak-theme/login/pages/info/Page.stories.tsx +50 -60
- package/keycloak-theme/login/pages/info/Page.tsx +94 -92
- package/keycloak-theme/login/pages/link-idp-action/Page.stories.tsx +32 -16
- package/keycloak-theme/login/pages/link-idp-action/Page.tsx +45 -43
- package/keycloak-theme/login/pages/link-idp-action/index.ts +3 -3
- package/keycloak-theme/login/pages/login/Form.tsx +242 -242
- package/keycloak-theme/login/pages/login/Info.tsx +29 -29
- package/keycloak-theme/login/pages/login/Page.stories.tsx +346 -365
- package/keycloak-theme/login/pages/login/Page.tsx +43 -44
- package/keycloak-theme/login/pages/login/SocialProviders.tsx +93 -107
- package/keycloak-theme/login/pages/login/index.ts +3 -3
- package/keycloak-theme/login/pages/login/providers/apple.svg +3 -3
- package/keycloak-theme/login/pages/login/providers/bitbucket.svg +11 -11
- package/keycloak-theme/login/pages/login/providers/discord.svg +4 -4
- package/keycloak-theme/login/pages/login/providers/facebook.svg +5 -5
- package/keycloak-theme/login/pages/login/providers/github.svg +3 -3
- package/keycloak-theme/login/pages/login/providers/gitlab.svg +7 -7
- package/keycloak-theme/login/pages/login/providers/google.svg +7 -7
- package/keycloak-theme/login/pages/login/providers/instagram.svg +31 -31
- package/keycloak-theme/login/pages/login/providers/linkedin.svg +3 -3
- package/keycloak-theme/login/pages/login/providers/microsoft.svg +6 -6
- package/keycloak-theme/login/pages/login/providers/oidc.svg +5 -5
- package/keycloak-theme/login/pages/login/providers/openshift.svg +7 -7
- package/keycloak-theme/login/pages/login/providers/paypal.svg +6 -6
- package/keycloak-theme/login/pages/login/providers/slack.svg +11 -11
- package/keycloak-theme/login/pages/login/providers/stackoverflow.svg +5 -5
- package/keycloak-theme/login/pages/login/providers/x.svg +3 -3
- package/keycloak-theme/login/pages/login/useProviderLogos.tsx +39 -39
- package/keycloak-theme/login/pages/login/useScript.tsx +62 -62
- package/keycloak-theme/login/pages/login-config-totp/Page.stories.tsx +45 -60
- package/keycloak-theme/login/pages/login-config-totp/Page.tsx +253 -240
- package/keycloak-theme/login/pages/login-config-totp/index.ts +3 -3
- package/keycloak-theme/login/pages/login-idp-link-confirm/Page.stories.tsx +30 -35
- package/keycloak-theme/login/pages/login-idp-link-confirm/Page.tsx +40 -43
- package/keycloak-theme/login/pages/login-idp-link-confirm/index.ts +3 -3
- package/keycloak-theme/login/pages/login-idp-link-confirm-override/Page.stories.tsx +16 -23
- package/keycloak-theme/login/pages/login-idp-link-confirm-override/Page.tsx +44 -47
- package/keycloak-theme/login/pages/login-idp-link-confirm-override/index.ts +3 -3
- package/keycloak-theme/login/pages/login-idp-link-email/Page.stories.tsx +54 -63
- package/keycloak-theme/login/pages/login-idp-link-email/Page.tsx +51 -54
- package/keycloak-theme/login/pages/login-idp-link-email/index.ts +3 -3
- package/keycloak-theme/login/pages/login-oauth-grant/Page.stories.tsx +39 -45
- package/keycloak-theme/login/pages/login-oauth-grant/Page.tsx +136 -126
- package/keycloak-theme/login/pages/login-oauth-grant/index.ts +3 -3
- package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/Page.stories.tsx +38 -48
- package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/Page.tsx +56 -58
- package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/index.ts +3 -3
- package/keycloak-theme/login/pages/login-otp/Page.stories.tsx +82 -97
- package/keycloak-theme/login/pages/login-otp/Page.tsx +117 -108
- package/keycloak-theme/login/pages/login-otp/index.ts +3 -3
- package/keycloak-theme/login/pages/login-page-expired/Page.stories.tsx +28 -37
- package/keycloak-theme/login/pages/login-page-expired/Page.tsx +45 -47
- package/keycloak-theme/login/pages/login-page-expired/index.ts +3 -3
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/Page.stories.tsx +20 -0
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/Page.tsx +290 -233
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/index.ts +3 -3
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/useScript.tsx +63 -63
- package/keycloak-theme/login/pages/login-password/Page.stories.tsx +55 -56
- package/keycloak-theme/login/pages/login-password/Page.tsx +148 -149
- package/keycloak-theme/login/pages/login-password/index.ts +3 -3
- package/keycloak-theme/login/pages/login-password/useScript.tsx +62 -63
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/Page.stories.tsx +28 -36
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/Page.tsx +178 -181
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/index.ts +3 -3
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/useScript.tsx +145 -145
- package/keycloak-theme/login/pages/login-recovery-authn-code-input/Page.stories.tsx +16 -22
- package/keycloak-theme/login/pages/login-recovery-authn-code-input/Page.tsx +69 -70
- package/keycloak-theme/login/pages/login-recovery-authn-code-input/index.ts +3 -3
- package/keycloak-theme/login/pages/login-reset-otp/Page.stories.tsx +62 -75
- package/keycloak-theme/login/pages/login-reset-otp/Page.tsx +85 -86
- package/keycloak-theme/login/pages/login-reset-otp/index.ts +3 -3
- package/keycloak-theme/login/pages/login-reset-password/Form.tsx +67 -68
- package/keycloak-theme/login/pages/login-reset-password/Page.stories.tsx +44 -55
- package/keycloak-theme/login/pages/login-reset-password/Page.tsx +27 -27
- package/keycloak-theme/login/pages/login-reset-password/index.ts +3 -3
- package/keycloak-theme/login/pages/login-update-password/Page.stories.tsx +40 -51
- package/keycloak-theme/login/pages/login-update-password/Page.tsx +109 -111
- package/keycloak-theme/login/pages/login-update-password/index.ts +3 -3
- package/keycloak-theme/login/pages/login-update-profile/Page.stories.tsx +28 -37
- package/keycloak-theme/login/pages/login-update-profile/Page.tsx +67 -68
- package/keycloak-theme/login/pages/login-update-profile/index.ts +3 -3
- package/keycloak-theme/login/pages/login-username/Page.stories.tsx +32 -43
- package/keycloak-theme/login/pages/login-username/Page.tsx +246 -246
- package/keycloak-theme/login/pages/login-username/index.ts +3 -3
- package/keycloak-theme/login/pages/login-username/useScript.tsx +62 -62
- package/keycloak-theme/login/pages/login-verify-email/Page.stories.tsx +68 -81
- package/keycloak-theme/login/pages/login-verify-email/Page.tsx +37 -38
- package/keycloak-theme/login/pages/login-verify-email/index.ts +3 -3
- package/keycloak-theme/login/pages/login-x509-info/Page.stories.tsx +29 -38
- package/keycloak-theme/login/pages/login-x509-info/Page.tsx +72 -75
- package/keycloak-theme/login/pages/login-x509-info/index.ts +3 -3
- package/keycloak-theme/login/pages/logout-confirm/Page.stories.tsx +34 -43
- package/keycloak-theme/login/pages/logout-confirm/Page.tsx +50 -53
- package/keycloak-theme/login/pages/logout-confirm/index.ts +3 -3
- package/keycloak-theme/login/pages/register/Form.tsx +107 -106
- package/keycloak-theme/login/pages/register/Page.stories.tsx +40 -14
- package/keycloak-theme/login/pages/register/Page.tsx +26 -26
- package/keycloak-theme/login/pages/register/TermsAcceptance.tsx +55 -56
- package/keycloak-theme/login/pages/register/index.ts +3 -3
- package/keycloak-theme/login/pages/saml-post-form/Page.stories.tsx +16 -23
- package/keycloak-theme/login/pages/saml-post-form/Page.tsx +64 -66
- package/keycloak-theme/login/pages/saml-post-form/index.ts +3 -3
- package/keycloak-theme/login/pages/select-authenticator/Page.stories.tsx +83 -96
- package/keycloak-theme/login/pages/select-authenticator/Page.tsx +97 -100
- package/keycloak-theme/login/pages/select-authenticator/index.ts +3 -3
- package/keycloak-theme/login/pages/select-organization/Page.stories.tsx +62 -49
- package/keycloak-theme/login/pages/select-organization/Page.tsx +123 -126
- package/keycloak-theme/login/pages/select-organization/index.ts +3 -3
- package/keycloak-theme/login/pages/terms/Page.stories.tsx +15 -0
- package/keycloak-theme/login/pages/terms/Page.tsx +49 -51
- package/keycloak-theme/login/pages/terms/index.ts +3 -3
- package/keycloak-theme/login/pages/update-email/Page.stories.tsx +27 -36
- package/keycloak-theme/login/pages/update-email/Page.tsx +61 -62
- package/keycloak-theme/login/pages/update-email/index.ts +3 -3
- package/keycloak-theme/login/pages/webauthn-authenticate/Page.stories.tsx +112 -127
- package/keycloak-theme/login/pages/webauthn-authenticate/Page.tsx +206 -202
- package/keycloak-theme/login/pages/webauthn-authenticate/index.ts +3 -3
- package/keycloak-theme/login/pages/webauthn-authenticate/useScript.tsx +55 -55
- package/keycloak-theme/login/pages/webauthn-error/Page.stories.tsx +52 -67
- package/keycloak-theme/login/pages/webauthn-error/Page.tsx +70 -73
- package/keycloak-theme/login/pages/webauthn-error/index.ts +3 -3
- package/keycloak-theme/login/pages/webauthn-register/Page.stories.tsx +39 -50
- package/keycloak-theme/login/pages/webauthn-register/Page.tsx +78 -78
- package/keycloak-theme/login/pages/webauthn-register/index.ts +3 -3
- package/keycloak-theme/login/pages/webauthn-register/useScript.tsx +62 -62
- package/keycloak-theme/login/shared/getColorScheme.ts +45 -45
- package/keycloak-theme/login/styleLevelCustomization.tsx +34 -36
- package/keycloak-theme/public/site.webmanifest +11 -1
- package/package.json +6 -2
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
<svg width="450" height="254" viewBox="0 0 450 254" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M0.50555 45.1131L450 45.1132L450 44.6073L0.50555 44.6072L0.50555 45.1131Z" fill="url(#paint0_linear_3005_4084)" fill-opacity="0.3"/>
|
|
3
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M205.546 253.529L205.546 -2.13709e-05L205.04 -2.1392e-05L205.04 253.529L205.546 253.529Z" fill="url(#paint1_linear_3005_4084)" fill-opacity="0.3"/>
|
|
4
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M0.505546 97.2164L450 97.2165L450 96.7106L0.505546 96.7106L0.505546 97.2164Z" fill="url(#paint2_linear_3005_4084)" fill-opacity="0.3"/>
|
|
5
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M256.806 253.529L256.806 -1.68895e-05L256.3 -1.69106e-05L256.3 253.529L256.806 253.529Z" fill="url(#paint3_linear_3005_4084)" fill-opacity="0.3"/>
|
|
6
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M0.505837 253.529L0.505859 -3.9296e-05L0 -3.93171e-05L-2.21642e-05 253.529L0.505837 253.529Z" fill="url(#paint4_linear_3005_4084)" fill-opacity="0.3"/>
|
|
7
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M0.505541 149.321L450 149.321L450 148.815L0.505541 148.815L0.505541 149.321Z" fill="url(#paint5_linear_3005_4084)" fill-opacity="0.3"/>
|
|
8
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M308.066 253.529L308.066 -1.24083e-05L307.56 -1.24294e-05L307.56 253.529L308.066 253.529Z" fill="url(#paint6_linear_3005_4084)" fill-opacity="0.3"/>
|
|
9
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M51.7662 253.529L51.7662 -3.48147e-05L51.2603 -3.48358e-05L51.2603 253.529L51.7662 253.529Z" fill="url(#paint7_linear_3005_4084)" fill-opacity="0.3"/>
|
|
10
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M0.505537 201.424L450 201.424L450 200.918L0.505537 200.918L0.505537 201.424Z" fill="url(#paint8_linear_3005_4084)" fill-opacity="0.3"/>
|
|
11
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M359.326 253.529L359.326 -7.92695e-06L358.82 -7.94806e-06L358.82 253.529L359.326 253.529Z" fill="url(#paint9_linear_3005_4084)" fill-opacity="0.3"/>
|
|
12
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M103.026 253.529L103.026 -3.03334e-05L102.52 -3.03545e-05L102.52 253.529L103.026 253.529Z" fill="url(#paint10_linear_3005_4084)" fill-opacity="0.3"/>
|
|
13
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M410.586 253.529L410.586 -3.44569e-06L410.08 -3.4668e-06L410.08 253.529L410.586 253.529Z" fill="url(#paint11_linear_3005_4084)" fill-opacity="0.3"/>
|
|
14
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M154.286 253.529L154.286 -2.58521e-05L153.78 -2.58732e-05L153.78 253.529L154.286 253.529Z" fill="url(#paint12_linear_3005_4084)" fill-opacity="0.3"/>
|
|
15
|
-
<rect width="50.7536" height="51.5982" transform="matrix(-1 -8.74228e-08 -8.74228e-08 1 358.821 45.1138)" fill="#B2B2B2" fill-opacity="0.08"/>
|
|
16
|
-
<rect width="50.756" height="51.5985" transform="matrix(-1 -8.74228e-08 -8.74228e-08 1 307.559 97.2163)" fill="#B2B2B2" fill-opacity="0.08"/>
|
|
17
|
-
<defs>
|
|
18
|
-
<linearGradient id="paint0_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
19
|
-
<stop stop-color="#B2B2B2"/>
|
|
20
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
21
|
-
</linearGradient>
|
|
22
|
-
<linearGradient id="paint1_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
23
|
-
<stop stop-color="#B2B2B2"/>
|
|
24
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
25
|
-
</linearGradient>
|
|
26
|
-
<linearGradient id="paint2_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
27
|
-
<stop stop-color="#B2B2B2"/>
|
|
28
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
29
|
-
</linearGradient>
|
|
30
|
-
<linearGradient id="paint3_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
31
|
-
<stop stop-color="#B2B2B2"/>
|
|
32
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
33
|
-
</linearGradient>
|
|
34
|
-
<linearGradient id="paint4_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
35
|
-
<stop stop-color="#B2B2B2"/>
|
|
36
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
37
|
-
</linearGradient>
|
|
38
|
-
<linearGradient id="paint5_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
39
|
-
<stop stop-color="#B2B2B2"/>
|
|
40
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
41
|
-
</linearGradient>
|
|
42
|
-
<linearGradient id="paint6_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
43
|
-
<stop stop-color="#B2B2B2"/>
|
|
44
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
45
|
-
</linearGradient>
|
|
46
|
-
<linearGradient id="paint7_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
47
|
-
<stop stop-color="#B2B2B2"/>
|
|
48
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
49
|
-
</linearGradient>
|
|
50
|
-
<linearGradient id="paint8_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
51
|
-
<stop stop-color="#B2B2B2"/>
|
|
52
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
53
|
-
</linearGradient>
|
|
54
|
-
<linearGradient id="paint9_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
55
|
-
<stop stop-color="#B2B2B2"/>
|
|
56
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
57
|
-
</linearGradient>
|
|
58
|
-
<linearGradient id="paint10_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
59
|
-
<stop stop-color="#B2B2B2"/>
|
|
60
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
61
|
-
</linearGradient>
|
|
62
|
-
<linearGradient id="paint11_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
63
|
-
<stop stop-color="#B2B2B2"/>
|
|
64
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
65
|
-
</linearGradient>
|
|
66
|
-
<linearGradient id="paint12_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
67
|
-
<stop stop-color="#B2B2B2"/>
|
|
68
|
-
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
69
|
-
</linearGradient>
|
|
70
|
-
</defs>
|
|
71
|
-
</svg>
|
|
1
|
+
<svg width="450" height="254" viewBox="0 0 450 254" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M0.50555 45.1131L450 45.1132L450 44.6073L0.50555 44.6072L0.50555 45.1131Z" fill="url(#paint0_linear_3005_4084)" fill-opacity="0.3"/>
|
|
3
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M205.546 253.529L205.546 -2.13709e-05L205.04 -2.1392e-05L205.04 253.529L205.546 253.529Z" fill="url(#paint1_linear_3005_4084)" fill-opacity="0.3"/>
|
|
4
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M0.505546 97.2164L450 97.2165L450 96.7106L0.505546 96.7106L0.505546 97.2164Z" fill="url(#paint2_linear_3005_4084)" fill-opacity="0.3"/>
|
|
5
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M256.806 253.529L256.806 -1.68895e-05L256.3 -1.69106e-05L256.3 253.529L256.806 253.529Z" fill="url(#paint3_linear_3005_4084)" fill-opacity="0.3"/>
|
|
6
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M0.505837 253.529L0.505859 -3.9296e-05L0 -3.93171e-05L-2.21642e-05 253.529L0.505837 253.529Z" fill="url(#paint4_linear_3005_4084)" fill-opacity="0.3"/>
|
|
7
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M0.505541 149.321L450 149.321L450 148.815L0.505541 148.815L0.505541 149.321Z" fill="url(#paint5_linear_3005_4084)" fill-opacity="0.3"/>
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M308.066 253.529L308.066 -1.24083e-05L307.56 -1.24294e-05L307.56 253.529L308.066 253.529Z" fill="url(#paint6_linear_3005_4084)" fill-opacity="0.3"/>
|
|
9
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M51.7662 253.529L51.7662 -3.48147e-05L51.2603 -3.48358e-05L51.2603 253.529L51.7662 253.529Z" fill="url(#paint7_linear_3005_4084)" fill-opacity="0.3"/>
|
|
10
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M0.505537 201.424L450 201.424L450 200.918L0.505537 200.918L0.505537 201.424Z" fill="url(#paint8_linear_3005_4084)" fill-opacity="0.3"/>
|
|
11
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M359.326 253.529L359.326 -7.92695e-06L358.82 -7.94806e-06L358.82 253.529L359.326 253.529Z" fill="url(#paint9_linear_3005_4084)" fill-opacity="0.3"/>
|
|
12
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M103.026 253.529L103.026 -3.03334e-05L102.52 -3.03545e-05L102.52 253.529L103.026 253.529Z" fill="url(#paint10_linear_3005_4084)" fill-opacity="0.3"/>
|
|
13
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M410.586 253.529L410.586 -3.44569e-06L410.08 -3.4668e-06L410.08 253.529L410.586 253.529Z" fill="url(#paint11_linear_3005_4084)" fill-opacity="0.3"/>
|
|
14
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M154.286 253.529L154.286 -2.58521e-05L153.78 -2.58732e-05L153.78 253.529L154.286 253.529Z" fill="url(#paint12_linear_3005_4084)" fill-opacity="0.3"/>
|
|
15
|
+
<rect width="50.7536" height="51.5982" transform="matrix(-1 -8.74228e-08 -8.74228e-08 1 358.821 45.1138)" fill="#B2B2B2" fill-opacity="0.08"/>
|
|
16
|
+
<rect width="50.756" height="51.5985" transform="matrix(-1 -8.74228e-08 -8.74228e-08 1 307.559 97.2163)" fill="#B2B2B2" fill-opacity="0.08"/>
|
|
17
|
+
<defs>
|
|
18
|
+
<linearGradient id="paint0_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
19
|
+
<stop stop-color="#B2B2B2"/>
|
|
20
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
<linearGradient id="paint1_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
23
|
+
<stop stop-color="#B2B2B2"/>
|
|
24
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
<linearGradient id="paint2_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
27
|
+
<stop stop-color="#B2B2B2"/>
|
|
28
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
<linearGradient id="paint3_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
31
|
+
<stop stop-color="#B2B2B2"/>
|
|
32
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
33
|
+
</linearGradient>
|
|
34
|
+
<linearGradient id="paint4_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
35
|
+
<stop stop-color="#B2B2B2"/>
|
|
36
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
37
|
+
</linearGradient>
|
|
38
|
+
<linearGradient id="paint5_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
39
|
+
<stop stop-color="#B2B2B2"/>
|
|
40
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
41
|
+
</linearGradient>
|
|
42
|
+
<linearGradient id="paint6_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
43
|
+
<stop stop-color="#B2B2B2"/>
|
|
44
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
45
|
+
</linearGradient>
|
|
46
|
+
<linearGradient id="paint7_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
47
|
+
<stop stop-color="#B2B2B2"/>
|
|
48
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
49
|
+
</linearGradient>
|
|
50
|
+
<linearGradient id="paint8_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
51
|
+
<stop stop-color="#B2B2B2"/>
|
|
52
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
53
|
+
</linearGradient>
|
|
54
|
+
<linearGradient id="paint9_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
55
|
+
<stop stop-color="#B2B2B2"/>
|
|
56
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
57
|
+
</linearGradient>
|
|
58
|
+
<linearGradient id="paint10_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
59
|
+
<stop stop-color="#B2B2B2"/>
|
|
60
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
61
|
+
</linearGradient>
|
|
62
|
+
<linearGradient id="paint11_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
63
|
+
<stop stop-color="#B2B2B2"/>
|
|
64
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
<linearGradient id="paint12_linear_3005_4084" x1="277.872" y1="-9.94587e-06" x2="194.87" y2="235.867" gradientUnits="userSpaceOnUse">
|
|
67
|
+
<stop stop-color="#B2B2B2"/>
|
|
68
|
+
<stop offset="1" stop-color="#B2B2B2" stop-opacity="0"/>
|
|
69
|
+
</linearGradient>
|
|
70
|
+
</defs>
|
|
71
|
+
</svg>
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { Checkbox } from
|
|
2
|
-
import { useI18n } from
|
|
3
|
-
import { Label } from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
);
|
|
26
|
-
}
|
|
1
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
2
|
+
import { useI18n } from "@/login/i18n";
|
|
3
|
+
import { Label } from "@radix-ui/react-label";
|
|
4
|
+
|
|
5
|
+
export function LogoutOtherSessions() {
|
|
6
|
+
const { msg } = useI18n();
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div className="flex items-center space-x-2">
|
|
10
|
+
<Checkbox
|
|
11
|
+
id="logout-sessions"
|
|
12
|
+
name="logout-sessions"
|
|
13
|
+
value="on"
|
|
14
|
+
defaultChecked={true}
|
|
15
|
+
/>
|
|
16
|
+
<Label
|
|
17
|
+
htmlFor="logout-sessions"
|
|
18
|
+
className="text-sm font-medium cursor-pointer"
|
|
19
|
+
>
|
|
20
|
+
{msg("logoutOtherSessions")}
|
|
21
|
+
</Label>
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { useI18n } from
|
|
2
|
-
import { useKcContext } from
|
|
3
|
-
import { useIsPasswordRevealed } from "keycloakify/tools/useIsPasswordRevealed";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div className="relative">
|
|
23
|
-
{children}
|
|
24
|
-
<button
|
|
25
|
-
type="button"
|
|
26
|
-
className={`absolute inset-y-0 ${kcContext.locale?.rtl ? "left-0 pl-3" : "right-0 pr-3"} flex items-center text-sm leading-5`}
|
|
27
|
-
aria-label={msgStr(isPasswordRevealed ? "hidePassword" : "showPassword")}
|
|
28
|
-
aria-controls={passwordInputId}
|
|
29
|
-
onClick={toggleIsPasswordRevealed}
|
|
30
|
-
>
|
|
31
|
-
{isPasswordRevealed ? <FiEye /> : <FiEyeOff />}
|
|
32
|
-
</button>
|
|
33
|
-
</div>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
1
|
+
import { useI18n } from "@/login/i18n";
|
|
2
|
+
import { useKcContext } from "@/login/KcContext";
|
|
3
|
+
import { useIsPasswordRevealed } from "keycloakify/tools/useIsPasswordRevealed";
|
|
4
|
+
import type { JSX } from 'react';
|
|
5
|
+
import { FiEye, FiEyeOff } from "react-icons/fi";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export function PasswordWrapper(props: {
|
|
9
|
+
passwordInputId: string;
|
|
10
|
+
children: JSX.Element;
|
|
11
|
+
}) {
|
|
12
|
+
const { passwordInputId, children } = props;
|
|
13
|
+
const { kcContext } = useKcContext();
|
|
14
|
+
|
|
15
|
+
const { msgStr } = useI18n();
|
|
16
|
+
|
|
17
|
+
const { isPasswordRevealed, toggleIsPasswordRevealed } = useIsPasswordRevealed({
|
|
18
|
+
passwordInputId
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div className="relative">
|
|
23
|
+
{children}
|
|
24
|
+
<button
|
|
25
|
+
type="button"
|
|
26
|
+
className={`absolute inset-y-0 ${kcContext.locale?.rtl ? "left-0 pl-3" : "right-0 pr-3"} flex items-center text-sm leading-5`}
|
|
27
|
+
aria-label={msgStr(isPasswordRevealed ? "hidePassword" : "showPassword")}
|
|
28
|
+
aria-controls={passwordInputId}
|
|
29
|
+
onClick={toggleIsPasswordRevealed}
|
|
30
|
+
>
|
|
31
|
+
{isPasswordRevealed ? <FiEye /> : <FiEyeOff />}
|
|
32
|
+
</button>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
}
|