negodesign 0.0.11 → 0.0.12
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/components/NegoDesign.svelte +1 -1
- package/dist/components/NegoDesign.svelte.d.ts +1 -1
- package/dist/components/core/button/ButtonBack.svelte +1 -1
- package/dist/components/core/button/ButtonLogin.svelte +1 -1
- package/dist/components/core/button/ButtonLoginWith.svelte +1 -1
- package/dist/components/core/button/ButtonSend.svelte +1 -1
- package/dist/components/core/card/media/01/CardMedia01.svelte +114 -0
- package/dist/components/core/card/media/01/CardMedia01.svelte.d.ts +4 -0
- package/dist/components/core/card/media/02/CardMedia02.svelte +113 -0
- package/dist/components/core/card/media/02/CardMedia02.svelte.d.ts +4 -0
- package/dist/components/core/card/media/CardMedia.svelte +17 -0
- package/dist/components/core/card/media/CardMedia.svelte.d.ts +8 -0
- package/dist/components/core/card/media/data.d.ts +3 -0
- package/dist/components/core/card/media/data.js +117 -0
- package/dist/components/core/card/profile/01/CardProfile01.svelte +101 -0
- package/dist/components/core/card/profile/01/CardProfile01.svelte.d.ts +4 -0
- package/dist/components/core/card/profile/02/CardProfile02.svelte +97 -0
- package/dist/components/core/card/profile/02/CardProfile02.svelte.d.ts +4 -0
- package/dist/components/core/card/profile/CardProfile.svelte +17 -0
- package/dist/components/core/card/profile/CardProfile.svelte.d.ts +8 -0
- package/dist/components/core/card/profile/data.d.ts +3 -0
- package/dist/components/core/card/profile/data.js +107 -0
- package/dist/components/core/card/shared/CardButton.svelte +30 -0
- package/dist/components/core/card/shared/CardButton.svelte.d.ts +12 -0
- package/dist/components/core/card/shared/CardDescription.svelte +23 -0
- package/dist/components/core/card/shared/CardDescription.svelte.d.ts +6 -0
- package/dist/components/core/card/shared/CardFavorite.svelte +28 -0
- package/dist/components/core/card/shared/CardFavorite.svelte.d.ts +7 -0
- package/dist/components/core/card/shared/CardStarRating.svelte +20 -0
- package/dist/components/core/card/shared/CardStarRating.svelte.d.ts +7 -0
- package/dist/components/core/card/shared/CardTags.svelte +56 -0
- package/dist/components/core/card/shared/CardTags.svelte.d.ts +10 -0
- package/dist/components/core/card/shared/CardThumbnailVideo.svelte +170 -0
- package/dist/components/core/card/shared/CardThumbnailVideo.svelte.d.ts +10 -0
- package/dist/components/core/card/shared/TruncatableText.svelte +56 -0
- package/dist/components/core/card/shared/TruncatableText.svelte.d.ts +8 -0
- package/dist/components/core/card/types.d.ts +44 -0
- package/dist/components/core/carousel/types.d.ts +23 -0
- package/dist/components/core/carousel/ui/SimpleCarousel.svelte +62 -0
- package/dist/components/core/carousel/ui/SimpleCarousel.svelte.d.ts +4 -0
- package/dist/components/core/datatable/ui/DataTableCore.svelte +5 -5
- package/dist/components/core/form/ui/input-code-otp.svelte +3 -3
- package/dist/components/core/form/ui/input-code-otp.svelte.d.ts +2 -2
- package/dist/components/core/form/ui/input-email-or-phone.svelte +1 -1
- package/dist/components/core/form/ui/input-email.svelte +1 -1
- package/dist/components/core/form/ui/input-password-confirm.svelte +1 -1
- package/dist/components/core/form/ui/input-password.svelte +1 -1
- package/dist/components/core/form/ui/input-phone.svelte +1 -1
- package/dist/components/core/form/ui/input-username.svelte +2 -2
- package/dist/components/core/nav/data/nav-menu-sidebar.d.ts +7 -7
- package/dist/components/core/nav/data/nav-menu.d.ts +31 -0
- package/dist/components/core/nav/data/nav-user-sidebar.d.ts +1 -1
- package/dist/components/core/nav/ui/menu-links.svelte +28 -0
- package/dist/components/core/nav/ui/menu-links.svelte.d.ts +10 -0
- package/dist/components/core/nav/ui/mobile/nav-menu-drawer.svelte +85 -0
- package/dist/components/core/nav/ui/mobile/nav-menu-drawer.svelte.d.ts +9 -0
- package/dist/components/core/nav/ui/{nav-menu-bottom-bar.svelte → nav-menu-bottom-sidebar.svelte} +2 -2
- package/dist/components/core/nav/ui/nav-menu-bottom-sidebar.svelte.d.ts +10 -0
- package/dist/components/core/nav/ui/nav-menu-header-sidebar.svelte.d.ts +10 -0
- package/dist/components/core/nav/ui/{nav-menu-bar.svelte → nav-menu-sidebar.svelte} +7 -7
- package/dist/components/core/nav/ui/nav-menu-sidebar.svelte.d.ts +7 -0
- package/dist/components/core/nav/ui/nav-menu-top-bar-sidebar.svelte.d.ts +4 -0
- package/dist/components/core/nav/ui/nav-menu.svelte +98 -0
- package/dist/components/core/nav/ui/nav-menu.svelte.d.ts +4 -0
- package/dist/components/core/nav/ui/nav-user-sidebar.svelte +2 -2
- package/dist/components/core/nav/ui/nav-user-sidebar.svelte.d.ts +2 -2
- package/dist/components/core/panel/LeftHero.svelte +3 -3
- package/dist/components/core/panel/LeftHero.svelte.d.ts +2 -2
- package/dist/components/core/search/01/Search01.svelte +15 -0
- package/dist/components/core/search/01/Search01.svelte.d.ts +4 -0
- package/dist/components/core/search/02/Search02.svelte +15 -0
- package/dist/components/core/search/02/Search02.svelte.d.ts +4 -0
- package/dist/components/core/search/SearchInput.svelte +32 -0
- package/dist/components/core/search/SearchInput.svelte.d.ts +4 -0
- package/dist/components/core/search/shared/SearchInputCore.svelte +66 -0
- package/dist/components/core/search/shared/SearchInputCore.svelte.d.ts +4 -0
- package/dist/components/core/search/types.d.ts +15 -0
- package/dist/components/core/sidebar/MenuBarSidebar.svelte +14 -14
- package/dist/components/core/sidebar/MenuBarSidebar.svelte.d.ts +8 -8
- package/dist/components/pages/admin/{ui → 01/ui}/AdminContent.svelte +1 -1
- package/dist/components/pages/admin/{ui → 01/ui}/AdminContent.svelte.d.ts +1 -1
- package/dist/components/pages/admin/{ui → 01/ui}/AdminPanel.svelte +8 -8
- package/dist/components/pages/admin/{ui → 01/ui}/AdminPanel.svelte.d.ts +4 -4
- package/dist/components/pages/privacy-policy-or-terms-of-use/01/DocsSidebar.svelte +69 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/01/DocsSidebar.svelte.d.ts +10 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/01/PrivacyPolicyOrTermsOfUse01.svelte +73 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/01/PrivacyPolicyOrTermsOfUse01.svelte.d.ts +7 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/01/TableOfContents.svelte +37 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/01/TableOfContents.svelte.d.ts +8 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/02/DocsPageHero.svelte +59 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/02/DocsPageHero.svelte.d.ts +10 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/02/PageHero.svelte +51 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/02/PageHero.svelte.d.ts +14 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/02/PrivacyPolicyOrTermsOfUse02.svelte +24 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/02/PrivacyPolicyOrTermsOfUse02.svelte.d.ts +7 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/PrivacyPolicyOrTermsOfUse.svelte +32 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/PrivacyPolicyOrTermsOfUse.svelte.d.ts +4 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/ContentBlockView.svelte +26 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/ContentBlockView.svelte.d.ts +7 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/DocSectionView.svelte +44 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/DocSectionView.svelte.d.ts +7 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/PrivacyPolicyOrTermsOfUseBreadcrumb.svelte +34 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/PrivacyPolicyOrTermsOfUseBreadcrumb.svelte.d.ts +7 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/toc.d.ts +8 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/shared/toc.js +14 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/types.d.ts +62 -0
- package/dist/components/pages/privacy-policy-or-terms-of-use/types.js +5 -0
- package/dist/components/pages/{forget-password → security/forget-password}/01/ui/ForgetPasswordCard.svelte +15 -10
- package/dist/components/pages/{forget-password → security/forget-password}/01/ui/ForgetPasswordCard.svelte.d.ts +0 -5
- package/dist/components/pages/{forget-password → security/forget-password}/01/ui/FormForgetPassword.svelte +15 -5
- package/dist/components/pages/{forget-password → security/forget-password}/01/ui/PageForgetPassword01.svelte +6 -6
- package/dist/components/pages/{forget-password → security/forget-password}/PageForgetPassword.svelte +10 -7
- package/dist/components/pages/{forget-password → security/forget-password}/PageForgetPassword.svelte.d.ts +0 -7
- package/dist/components/pages/{forget-password → security/forget-password}/types.d.ts +3 -3
- package/dist/components/pages/{login → security/login}/01/ui/FormLogin.svelte +19 -15
- package/dist/components/pages/{login → security/login}/01/ui/FormLogin.svelte.d.ts +0 -6
- package/dist/components/pages/{login → security/login}/01/ui/FormLoginEmailPassword.svelte +10 -1
- package/dist/components/pages/{login → security/login}/01/ui/FormLoginEmailPassword.svelte.d.ts +0 -1
- package/dist/components/pages/{login → security/login}/01/ui/FormLoginPhonePassword.svelte +10 -1
- package/dist/components/pages/{login → security/login}/01/ui/FormLoginPhonePassword.svelte.d.ts +0 -1
- package/dist/components/pages/{login → security/login}/01/ui/FormLoginUsernamePassword.svelte +10 -1
- package/dist/components/pages/{login → security/login}/01/ui/FormLoginUsernamePassword.svelte.d.ts +0 -1
- package/dist/components/pages/{login → security/login}/01/ui/FormRegister.svelte +5 -5
- package/dist/components/pages/{login → security/login}/01/ui/LoginCard.svelte +28 -20
- package/dist/components/pages/security/login/01/ui/LoginCard.svelte.d.ts +13 -0
- package/dist/components/pages/{login → security/login}/01/ui/PageLogin01.svelte +12 -11
- package/dist/components/pages/security/login/PageLogin.svelte +22 -0
- package/dist/components/pages/security/login/PageLogin.svelte.d.ts +8 -0
- package/dist/components/pages/security/login/types.d.ts +33 -0
- package/dist/components/pages/security/login/types.js +1 -0
- package/dist/components/pages/{otp-verification → security/otp-verification}/01/ui/FormOtpVerification.svelte +13 -3
- package/dist/components/pages/{otp-verification → security/otp-verification}/01/ui/OtpVerificationCard.svelte +15 -10
- package/dist/components/pages/{otp-verification → security/otp-verification}/01/ui/OtpVerificationCard.svelte.d.ts +0 -5
- package/dist/components/pages/{otp-verification → security/otp-verification}/01/ui/PageOtpVerification01.svelte +12 -6
- package/dist/components/pages/{otp-verification → security/otp-verification}/PageOtpVerification.svelte +10 -4
- package/dist/components/pages/{otp-verification → security/otp-verification}/PageOtpVerification.svelte.d.ts +0 -4
- package/dist/components/pages/{otp-verification → security/otp-verification}/types.d.ts +3 -3
- package/dist/components/pages/security/otp-verification/types.js +1 -0
- package/dist/components/pages/{reset-password → security/reset-password}/01/ui/FormResetPassword.svelte +15 -5
- package/dist/components/pages/{reset-password → security/reset-password}/01/ui/PageResetPassword01.svelte +12 -6
- package/dist/components/pages/{reset-password → security/reset-password}/01/ui/ResetPasswordCard.svelte +15 -10
- package/dist/components/pages/{reset-password → security/reset-password}/01/ui/ResetPasswordCard.svelte.d.ts +0 -5
- package/dist/components/pages/{reset-password → security/reset-password}/PageResetPassword.svelte +10 -4
- package/dist/components/pages/{reset-password → security/reset-password}/PageResetPassword.svelte.d.ts +0 -4
- package/dist/components/pages/{reset-password → security/reset-password}/types.d.ts +3 -3
- package/dist/components/pages/security/reset-password/types.js +1 -0
- package/dist/components/ui/button/button.svelte +82 -101
- package/dist/components/ui/button/button.svelte.d.ts +36 -63
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/button/index.js +2 -2
- package/dist/components/ui/carousel/carousel-content.svelte +43 -0
- package/dist/components/ui/carousel/carousel-content.svelte.d.ts +5 -0
- package/dist/components/ui/carousel/carousel-item.svelte +30 -0
- package/dist/components/ui/carousel/carousel-item.svelte.d.ts +5 -0
- package/dist/components/ui/carousel/carousel-next.svelte +40 -0
- package/dist/components/ui/carousel/carousel-next.svelte.d.ts +4 -0
- package/dist/components/ui/carousel/carousel-previous.svelte +40 -0
- package/dist/components/ui/carousel/carousel-previous.svelte.d.ts +4 -0
- package/dist/components/ui/carousel/carousel.svelte +94 -0
- package/dist/components/ui/carousel/carousel.svelte.d.ts +5 -0
- package/dist/components/ui/carousel/context.d.ts +31 -0
- package/dist/components/ui/carousel/context.js +12 -0
- package/dist/components/ui/carousel/index.d.ts +6 -0
- package/dist/components/ui/carousel/index.js +8 -0
- package/dist/components/ui/input-group/input-group-addon.svelte +6 -0
- package/dist/components/ui/input-group/input-group-addon.svelte.d.ts +6 -0
- package/dist/components/ui/light-switch/light-switch.svelte +17 -6
- package/dist/components/ui/light-switch/light-switch.svelte.d.ts +2 -2
- package/dist/components/ui/star-rating/index.d.ts +2 -0
- package/dist/components/ui/star-rating/index.js +2 -0
- package/dist/components/ui/star-rating/star-rating-star.svelte +41 -0
- package/dist/components/ui/star-rating/star-rating-star.svelte.d.ts +4 -0
- package/dist/components/ui/star-rating/star-rating.svelte +20 -0
- package/dist/components/ui/star-rating/star-rating.svelte.d.ts +4 -0
- package/dist/components/ui/star-rating/types.d.ts +5 -0
- package/dist/components/ui/star-rating/types.js +1 -0
- package/dist/globals.css +602 -36
- package/dist/hooks/responsive.svelte.d.ts +3 -0
- package/dist/hooks/responsive.svelte.js +18 -0
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/langs/en.d.ts +22 -8
- package/dist/i18n/langs/en.js +22 -8
- package/dist/i18n/langs/pt.d.ts +22 -8
- package/dist/i18n/langs/pt.js +22 -8
- package/dist/i18n/translations.d.ts +44 -16
- package/dist/index.d.ts +14 -9
- package/dist/index.js +14 -9
- package/dist/styles/globals.css +143 -141
- package/dist/types/index.d.ts +4 -4
- package/package.json +11 -9
- package/dist/components/core/carousel/data/CarouselModel.d.ts +0 -11
- package/dist/components/core/nav/ui/nav-menu-bar.svelte.d.ts +0 -7
- package/dist/components/core/nav/ui/nav-menu-bottom-bar.svelte.d.ts +0 -10
- package/dist/components/core/nav/ui/nav-menu-header.svelte.d.ts +0 -10
- package/dist/components/core/nav/ui/nav-menu-top-bar.svelte.d.ts +0 -4
- package/dist/components/pages/login/01/ui/LoginCard.svelte.d.ts +0 -21
- package/dist/components/pages/login/PageLogin.svelte +0 -21
- package/dist/components/pages/login/PageLogin.svelte.d.ts +0 -17
- package/dist/components/pages/login/types.d.ts +0 -23
- /package/dist/components/{pages/forget-password → core/card}/types.js +0 -0
- /package/dist/components/{pages/login → core/carousel}/types.js +0 -0
- /package/dist/components/core/{carousel/data/CarouselModel.js → nav/data/nav-menu.js} +0 -0
- /package/dist/components/core/nav/ui/{nav-menu-header.svelte → nav-menu-header-sidebar.svelte} +0 -0
- /package/dist/components/core/nav/ui/{nav-menu-top-bar.svelte → nav-menu-top-bar-sidebar.svelte} +0 -0
- /package/dist/components/{pages/otp-verification → core/search}/types.js +0 -0
- /package/dist/components/pages/{forget-password → security/forget-password}/01/ui/FormForgetPassword.svelte.d.ts +0 -0
- /package/dist/components/pages/{forget-password → security/forget-password}/01/ui/PageForgetPassword01.svelte.d.ts +0 -0
- /package/dist/components/pages/{reset-password → security/forget-password}/types.js +0 -0
- /package/dist/components/pages/{login → security/login}/01/ui/FormRegister.svelte.d.ts +0 -0
- /package/dist/components/pages/{login → security/login}/01/ui/PageLogin01.svelte.d.ts +0 -0
- /package/dist/components/pages/{otp-verification → security/otp-verification}/01/ui/FormOtpVerification.svelte.d.ts +0 -0
- /package/dist/components/pages/{otp-verification → security/otp-verification}/01/ui/PageOtpVerification01.svelte.d.ts +0 -0
- /package/dist/components/pages/{reset-password → security/reset-password}/01/ui/FormResetPassword.svelte.d.ts +0 -0
- /package/dist/components/pages/{reset-password → security/reset-password}/01/ui/PageResetPassword01.svelte.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import InputPasswordConfirm from "
|
|
3
|
-
import InputPassword from "
|
|
4
|
-
import InputEmail from "
|
|
5
|
-
import ButtonLogin from "
|
|
6
|
-
import { t } from "
|
|
2
|
+
import InputPasswordConfirm from "../../../../../core/form/ui/input-password-confirm.svelte";
|
|
3
|
+
import InputPassword from "../../../../../core/form/ui/input-password.svelte";
|
|
4
|
+
import InputEmail from "../../../../../core/form/ui/input-email.svelte";
|
|
5
|
+
import ButtonLogin from "../../../../../core/button/ButtonLogin.svelte";
|
|
6
|
+
import { t } from "../../../../../../i18n";
|
|
7
7
|
|
|
8
8
|
let email = $state("");
|
|
9
9
|
let password = $state("");
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component LoginCard
|
|
4
|
+
* Authentication card with login/register tabs, back button, light switch, and link footer.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <LoginCard formType="EMAIL_PASSWORD" onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import LanguageSwitcher from "
|
|
3
|
-
import LinkTermsOfService from "
|
|
4
|
-
import LinkPrivacyPolity from "
|
|
5
|
-
import TabUnderline from "
|
|
6
|
-
import ButtonBack from "
|
|
7
|
-
import LabelOr from "
|
|
12
|
+
import LanguageSwitcher from "../../../../../ui/language-switcher/language-switcher.svelte";
|
|
13
|
+
import LinkTermsOfService from "../../../../../core/link/link-terms-of-service.svelte";
|
|
14
|
+
import LinkPrivacyPolity from "../../../../../core/link/link-privacy-polity.svelte";
|
|
15
|
+
import TabUnderline from "../../../../../core/tabs/ui/tab-underline.svelte";
|
|
16
|
+
import ButtonBack from "../../../../../core/button/ButtonBack.svelte";
|
|
17
|
+
import LabelOr from "../../../../../core/label/LabelOr.svelte";
|
|
8
18
|
import type { Snippet } from "svelte";
|
|
9
|
-
import { LightSwitch } from "
|
|
10
|
-
import { t } from "
|
|
11
|
-
import type {
|
|
19
|
+
import { LightSwitch } from "../../../../../ui/light-switch";
|
|
20
|
+
import { t } from "../../../../../../i18n";
|
|
21
|
+
import type { LoginFormType, LoginRequestDto, LinkProps } from "../../types";
|
|
12
22
|
import FormLoginEmailPassword from "./FormLoginEmailPassword.svelte";
|
|
13
23
|
import FormLoginUsernamePassword from "./FormLoginUsernamePassword.svelte";
|
|
14
24
|
import FormLoginPhonePassword from "./FormLoginPhonePassword.svelte";
|
|
15
25
|
|
|
16
|
-
/**
|
|
17
|
-
* Card de autenticação com abas login/register.
|
|
18
|
-
* @property {AuthFormType} formType - Tipo do form (EMAIL_PASSWORD, USERNAME_PASSWORD, PHONE_PASSWORD)
|
|
19
|
-
* @property {(cred: Credential) => void} onSubmit - Callback ao submeter credenciais
|
|
20
|
-
* @property {Snippet} register - Snippet do form de registro (opcional, exibe aba Register)
|
|
21
|
-
* @property {LinkProps} privacyPolicy - Config do link de privacidade { url, onclick }
|
|
22
|
-
* @property {LinkProps} termsOfService - Config do link de termos { url, onclick }
|
|
23
|
-
*/
|
|
24
26
|
type Props = {
|
|
25
|
-
formType?:
|
|
27
|
+
formType?: LoginFormType;
|
|
26
28
|
onSubmit?: (credential: LoginRequestDto) => void;
|
|
27
29
|
register?: Snippet;
|
|
28
30
|
forgetPassword?: LinkProps;
|
|
@@ -30,8 +32,14 @@
|
|
|
30
32
|
termsOfService?: LinkProps;
|
|
31
33
|
};
|
|
32
34
|
|
|
33
|
-
let {
|
|
34
|
-
|
|
35
|
+
let {
|
|
36
|
+
formType,
|
|
37
|
+
onSubmit,
|
|
38
|
+
register,
|
|
39
|
+
forgetPassword,
|
|
40
|
+
privacyPolicy,
|
|
41
|
+
termsOfService,
|
|
42
|
+
}: Props = $props();
|
|
35
43
|
</script>
|
|
36
44
|
|
|
37
45
|
<div class="flex-1 flex flex-col justify-between h-screen bg-gradient-right">
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
import type { LoginFormType, LoginRequestDto, LinkProps } from "../../types";
|
|
3
|
+
type Props = {
|
|
4
|
+
formType?: LoginFormType;
|
|
5
|
+
onSubmit?: (credential: LoginRequestDto) => void;
|
|
6
|
+
register?: Snippet;
|
|
7
|
+
forgetPassword?: LinkProps;
|
|
8
|
+
privacyPolicy?: LinkProps;
|
|
9
|
+
termsOfService?: LinkProps;
|
|
10
|
+
};
|
|
11
|
+
declare const LoginCard: import("svelte").Component<Props, {}, "">;
|
|
12
|
+
type LoginCard = ReturnType<typeof LoginCard>;
|
|
13
|
+
export default LoginCard;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageLogin01
|
|
4
|
+
* Variant 01 of the login page. Split layout: hero on the left, auth card on the right.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageLogin01 formType="USERNAME_PASSWORD" onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import AuthCard from "./LoginCard.svelte";
|
|
3
|
-
import LeftHero from "
|
|
13
|
+
import LeftHero from "../../../../../core/panel/LeftHero.svelte";
|
|
4
14
|
import type { PageLoginProps } from "../../types";
|
|
5
|
-
import { t } from "
|
|
15
|
+
import { t } from "../../../../../../i18n";
|
|
6
16
|
|
|
7
|
-
/**
|
|
8
|
-
* Variante 01 da página de login.
|
|
9
|
-
* Layout split: hero à esquerda, auth card à direita.
|
|
10
|
-
* @property {CarouselItem[]} carousel - Itens do carousel (opcional, usa valores padrão)
|
|
11
|
-
* @property {string} title - Título do hero
|
|
12
|
-
* @property {AuthFormType} formType - Tipo do form de login
|
|
13
|
-
* @property {LinkProps} privacyPolicy - Config do link de privacidade
|
|
14
|
-
* @property {LinkProps} termsOfService - Config do link de termos
|
|
15
|
-
*/
|
|
16
17
|
let {
|
|
17
18
|
carousel,
|
|
18
19
|
varient,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageLogin
|
|
4
|
+
* Main login page. Routes to the specified layout variant.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageLogin varient="01" formType="EMAIL_PASSWORD" onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script lang="ts">
|
|
12
|
+
import type { PageLoginProps } from "./types";
|
|
13
|
+
import PageLogin01 from "./01/ui/PageLogin01.svelte";
|
|
14
|
+
|
|
15
|
+
type Props = {
|
|
16
|
+
variant?: 1;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
let { ...props }: PageLoginProps & Props = $props();
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<PageLogin01 {...props} />
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PageLoginProps } from "./types";
|
|
2
|
+
type Props = {
|
|
3
|
+
variant?: 1;
|
|
4
|
+
};
|
|
5
|
+
type $$ComponentProps = PageLoginProps & Props;
|
|
6
|
+
declare const PageLogin: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
7
|
+
type PageLogin = ReturnType<typeof PageLogin>;
|
|
8
|
+
export default PageLogin;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
export type LoginFormType = "EMAIL_PASSWORD" | "PHONE_PASSWORD" | "USERNAME_PASSWORD";
|
|
3
|
+
export type LoginCarouselItemType = "NUMBER" | "DOT" | "POINTER";
|
|
4
|
+
export type LoginVariant = "EMAIL" | "USERNAME" | "PHONE";
|
|
5
|
+
export interface LoginCarouselItem {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
buttonText: string;
|
|
9
|
+
buttonUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LoginCarouselProps {
|
|
12
|
+
items: LoginCarouselItem[];
|
|
13
|
+
varient: LoginCarouselItemType;
|
|
14
|
+
}
|
|
15
|
+
export type LoginRequestDto = {
|
|
16
|
+
password: string;
|
|
17
|
+
data: string;
|
|
18
|
+
};
|
|
19
|
+
export type LinkProps = {
|
|
20
|
+
url?: string;
|
|
21
|
+
onclick?: () => void;
|
|
22
|
+
};
|
|
23
|
+
export type PageLoginProps = {
|
|
24
|
+
carousel?: LoginCarouselItem[];
|
|
25
|
+
varient?: LoginCarouselItemType;
|
|
26
|
+
title?: string;
|
|
27
|
+
children?: Snippet;
|
|
28
|
+
formType?: LoginFormType;
|
|
29
|
+
onSubmit?: (credential: LoginRequestDto) => void;
|
|
30
|
+
forgetPassword?: LinkProps;
|
|
31
|
+
privacyPolicy?: LinkProps;
|
|
32
|
+
termsOfService?: LinkProps;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormOtpVerification
|
|
4
|
+
* OTP verification form with code input and submit button.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormOtpVerification otpLength={6} onSubmit={(req) => verify(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import InputCodeOtp from "
|
|
3
|
-
import ButtonSend from "
|
|
4
|
-
import { t } from "
|
|
12
|
+
import InputCodeOtp from "../../../../../core/form/ui/input-code-otp.svelte";
|
|
13
|
+
import ButtonSend from "../../../../../core/button/ButtonSend.svelte";
|
|
14
|
+
import { t } from "../../../../../../i18n";
|
|
5
15
|
import type { OtpVerificationRequestDto } from "../../types";
|
|
6
16
|
|
|
7
17
|
type Props = {
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component OtpVerificationCard
|
|
4
|
+
* OTP verification card with tabs, back button, and light switch.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <OtpVerificationCard otpLength={6} onSubmit={(req) => verify(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import LanguageSwitcher from "
|
|
3
|
-
import ButtonBack from "
|
|
12
|
+
import LanguageSwitcher from "../../../../../ui/language-switcher/language-switcher.svelte";
|
|
13
|
+
import ButtonBack from "../../../../../core/button/ButtonBack.svelte";
|
|
4
14
|
import type { Snippet } from "svelte";
|
|
5
|
-
import { LightSwitch } from "
|
|
6
|
-
import { t } from "
|
|
15
|
+
import { LightSwitch } from "../../../../../ui/light-switch";
|
|
16
|
+
import { t } from "../../../../../../i18n";
|
|
7
17
|
import type { OtpVerificationRequestDto } from "../../types";
|
|
8
18
|
import FormOtpVerification from "./FormOtpVerification.svelte";
|
|
9
|
-
import TabUnderline from "
|
|
19
|
+
import TabUnderline from "../../../../../core/tabs/ui/tab-underline.svelte";
|
|
10
20
|
|
|
11
|
-
/**
|
|
12
|
-
* Card de verificação OTP.
|
|
13
|
-
* @property {number} otpLength - Quantidade de caixas do código OTP
|
|
14
|
-
* @property {(req: OtpVerificationRequestDto) => void} onSubmit - Callback ao submeter
|
|
15
|
-
*/
|
|
16
21
|
type Props = {
|
|
17
22
|
otpLength?: number;
|
|
18
23
|
onSubmit?: (request: OtpVerificationRequestDto) => void;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { Snippet } from "svelte";
|
|
2
2
|
import type { OtpVerificationRequestDto } from "../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Card de verificação OTP.
|
|
5
|
-
* @property {number} otpLength - Quantidade de caixas do código OTP
|
|
6
|
-
* @property {(req: OtpVerificationRequestDto) => void} onSubmit - Callback ao submeter
|
|
7
|
-
*/
|
|
8
3
|
type Props = {
|
|
9
4
|
otpLength?: number;
|
|
10
5
|
onSubmit?: (request: OtpVerificationRequestDto) => void;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageOtpVerification01
|
|
4
|
+
* Variant 01 of the OTP verification page. Split layout: hero on the left, card on the right.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageOtpVerification01 otpLength={6} onSubmit={(req) => verify(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import OtpVerificationCard from "./OtpVerificationCard.svelte";
|
|
3
|
-
import LeftHero from "
|
|
13
|
+
import LeftHero from "../../../../../core/panel/LeftHero.svelte";
|
|
4
14
|
import type { PageOtpVerificationProps } from "../../types";
|
|
5
|
-
import { t } from "
|
|
15
|
+
import { t } from "../../../../../../i18n";
|
|
6
16
|
|
|
7
|
-
/**
|
|
8
|
-
* Variante 01 da página de verificação OTP.
|
|
9
|
-
* Layout split: hero à esquerda (reutiliza do login), card de verificação à direita.
|
|
10
|
-
*/
|
|
11
17
|
let {
|
|
12
18
|
carousel,
|
|
13
19
|
varient,
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageOtpVerification
|
|
4
|
+
* OTP verification page. Routes to the specified layout variant.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageOtpVerification varient="01" otpLength={6} onSubmit={(req) => verify(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import type { PageOtpVerificationProps } from "./types";
|
|
3
13
|
import PageOtpVerification01 from "./01/ui/PageOtpVerification01.svelte";
|
|
4
14
|
|
|
5
|
-
/**
|
|
6
|
-
* Página de verificação OTP.
|
|
7
|
-
* @property {"01"} varient - Variante do layout
|
|
8
|
-
*/
|
|
9
15
|
type Props = {
|
|
10
16
|
varient?: "01";
|
|
11
17
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoginCarouselItem, LoginCarouselItemType } from "../login/types";
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
3
|
export type OtpVerificationRequestDto = {
|
|
4
4
|
code: string;
|
|
5
5
|
};
|
|
6
6
|
export type PageOtpVerificationProps = {
|
|
7
|
-
carousel?:
|
|
8
|
-
varient?:
|
|
7
|
+
carousel?: LoginCarouselItem[];
|
|
8
|
+
varient?: LoginCarouselItemType;
|
|
9
9
|
title?: string;
|
|
10
10
|
children?: Snippet;
|
|
11
11
|
otpLength?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormResetPassword
|
|
4
|
+
* Password reset form with OTP, password, and password confirmation.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormResetPassword otpLength={6} onSubmit={(req) => reset(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import InputCodeOtp from "
|
|
3
|
-
import InputPassword from "
|
|
4
|
-
import InputPasswordConfirm from "
|
|
5
|
-
import ButtonSend from "
|
|
6
|
-
import { t } from "
|
|
12
|
+
import InputCodeOtp from "../../../../../core/form/ui/input-code-otp.svelte";
|
|
13
|
+
import InputPassword from "../../../../../core/form/ui/input-password.svelte";
|
|
14
|
+
import InputPasswordConfirm from "../../../../../core/form/ui/input-password-confirm.svelte";
|
|
15
|
+
import ButtonSend from "../../../../../core/button/ButtonSend.svelte";
|
|
16
|
+
import { t } from "../../../../../../i18n";
|
|
7
17
|
import type { ResetPasswordRequestDto } from "../../types";
|
|
8
18
|
|
|
9
19
|
type Props = {
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageResetPassword01
|
|
4
|
+
* Variant 01 of the password reset page. Split layout: hero on the left, card on the right.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageResetPassword01 otpLength={6} onSubmit={(req) => reset(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import ResetPasswordCard from "./ResetPasswordCard.svelte";
|
|
3
|
-
import LeftHero from "
|
|
13
|
+
import LeftHero from "../../../../../core/panel/LeftHero.svelte";
|
|
4
14
|
import type { PageResetPasswordProps } from "../../types";
|
|
5
|
-
import { t } from "
|
|
15
|
+
import { t } from "../../../../../../i18n";
|
|
6
16
|
|
|
7
|
-
/**
|
|
8
|
-
* Variante 01 da página de redefinição de senha.
|
|
9
|
-
* Layout split: hero à esquerda (reutiliza do login), card de redefinição à direita.
|
|
10
|
-
*/
|
|
11
17
|
let {
|
|
12
18
|
carousel,
|
|
13
19
|
varient,
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component ResetPasswordCard
|
|
4
|
+
* Password reset card with tabs, back button, and light switch.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <ResetPasswordCard otpLength={6} onSubmit={(req) => reset(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import LanguageSwitcher from "
|
|
3
|
-
import ButtonBack from "
|
|
12
|
+
import LanguageSwitcher from "../../../../../ui/language-switcher/language-switcher.svelte";
|
|
13
|
+
import ButtonBack from "../../../../../core/button/ButtonBack.svelte";
|
|
4
14
|
import type { Snippet } from "svelte";
|
|
5
|
-
import { LightSwitch } from "
|
|
6
|
-
import { t } from "
|
|
15
|
+
import { LightSwitch } from "../../../../../ui/light-switch";
|
|
16
|
+
import { t } from "../../../../../../i18n";
|
|
7
17
|
import type { ResetPasswordRequestDto } from "../../types";
|
|
8
18
|
import FormResetPassword from "./FormResetPassword.svelte";
|
|
9
|
-
import TabUnderline from "
|
|
19
|
+
import TabUnderline from "../../../../../core/tabs/ui/tab-underline.svelte";
|
|
10
20
|
|
|
11
|
-
/**
|
|
12
|
-
* Card de redefinição de senha.
|
|
13
|
-
* @property {number} otpLength - Quantidade de caixas do código OTP
|
|
14
|
-
* @property {(req: ResetPasswordRequestDto) => void} onSubmit - Callback ao submeter
|
|
15
|
-
*/
|
|
16
21
|
type Props = {
|
|
17
22
|
otpLength?: number;
|
|
18
23
|
onSubmit?: (request: ResetPasswordRequestDto) => void;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { Snippet } from "svelte";
|
|
2
2
|
import type { ResetPasswordRequestDto } from "../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Card de redefinição de senha.
|
|
5
|
-
* @property {number} otpLength - Quantidade de caixas do código OTP
|
|
6
|
-
* @property {(req: ResetPasswordRequestDto) => void} onSubmit - Callback ao submeter
|
|
7
|
-
*/
|
|
8
3
|
type Props = {
|
|
9
4
|
otpLength?: number;
|
|
10
5
|
onSubmit?: (request: ResetPasswordRequestDto) => void;
|
package/dist/components/pages/{reset-password → security/reset-password}/PageResetPassword.svelte
RENAMED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageResetPassword
|
|
4
|
+
* Password reset page. Routes to the specified layout variant.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageResetPassword varient="01" otpLength={6} onSubmit={(req) => reset(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import type { PageResetPasswordProps } from "./types";
|
|
3
13
|
import PageResetPassword01 from "./01/ui/PageResetPassword01.svelte";
|
|
4
14
|
|
|
5
|
-
/**
|
|
6
|
-
* Página de redefinição de senha.
|
|
7
|
-
* @property {"01"} varient - Variante do layout
|
|
8
|
-
*/
|
|
9
15
|
type Props = {
|
|
10
16
|
varient?: "01";
|
|
11
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoginCarouselItem, LoginCarouselItemType } from "../login/types";
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
3
|
export type ResetPasswordRequestDto = {
|
|
4
4
|
code: string;
|
|
@@ -6,8 +6,8 @@ export type ResetPasswordRequestDto = {
|
|
|
6
6
|
confirmPassword: string;
|
|
7
7
|
};
|
|
8
8
|
export type PageResetPasswordProps = {
|
|
9
|
-
carousel?:
|
|
10
|
-
varient?:
|
|
9
|
+
carousel?: LoginCarouselItem[];
|
|
10
|
+
varient?: LoginCarouselItemType;
|
|
11
11
|
title?: string;
|
|
12
12
|
children?: Snippet;
|
|
13
13
|
otpLength?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|