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
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* Documentation page hero with colored banner and optional action.
|
|
4
|
+
* Displays title, last update date, and a search button in the top-right corner.
|
|
5
|
+
* @component
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <PageHero title="Privacy Policy" lastUpdated="24 June 2024" accent="#f0400f">
|
|
9
|
+
* {#snippet action()}
|
|
10
|
+
* <button>Search</button>
|
|
11
|
+
* {/snippet}
|
|
12
|
+
* </PageHero>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<script lang="ts">
|
|
18
|
+
import type { Snippet } from "svelte";
|
|
19
|
+
|
|
20
|
+
let {
|
|
21
|
+
title,
|
|
22
|
+
lastUpdated,
|
|
23
|
+
accent = "#f0400f",
|
|
24
|
+
action,
|
|
25
|
+
}: {
|
|
26
|
+
/** Page title. */
|
|
27
|
+
title: string;
|
|
28
|
+
/** Last update date of the document. */
|
|
29
|
+
lastUpdated: string;
|
|
30
|
+
/** Banner background color. */
|
|
31
|
+
accent?: string;
|
|
32
|
+
/** Optional action in the top-right corner (e.g., search button). */
|
|
33
|
+
action?: Snippet;
|
|
34
|
+
} = $props();
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<header
|
|
38
|
+
class="relative px-6 py-10 sm:px-10 sm:py-14 text-white"
|
|
39
|
+
style="background-color: {accent}"
|
|
40
|
+
>
|
|
41
|
+
<div class="mx-auto max-w-3xl">
|
|
42
|
+
<h1 class="text-3xl sm:text-4xl font-bold tracking-tight">{title}</h1>
|
|
43
|
+
<p class="mt-2 text-sm text-white/80">Latest update: {lastUpdated}</p>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
{#if action}
|
|
47
|
+
<div class="absolute right-4 top-4 sm:right-6 sm:top-6">
|
|
48
|
+
{@render action()}
|
|
49
|
+
</div>
|
|
50
|
+
{/if}
|
|
51
|
+
</header>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
/** Page title. */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Last update date of the document. */
|
|
6
|
+
lastUpdated: string;
|
|
7
|
+
/** Banner background color. */
|
|
8
|
+
accent?: string;
|
|
9
|
+
/** Optional action in the top-right corner (e.g., search button). */
|
|
10
|
+
action?: Snippet;
|
|
11
|
+
};
|
|
12
|
+
declare const PageHero: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
13
|
+
type PageHero = ReturnType<typeof PageHero>;
|
|
14
|
+
export default PageHero;
|
package/dist/components/pages/privacy-policy-or-terms-of-use/02/PrivacyPolicyOrTermsOfUse02.svelte
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* Variant 02 of the Privacy Policy / Terms of Use page.
|
|
4
|
+
* Simple layout with colored hero and centered content in a single column.
|
|
5
|
+
* @component
|
|
6
|
+
* @example
|
|
7
|
+
* ```svelte
|
|
8
|
+
* <PrivacyPolicyOrTermsOfUse02 data={pageData} />
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
import type { DocPageData } from "../types";
|
|
15
|
+
import DocsPageHero from "./DocsPageHero.svelte";
|
|
16
|
+
|
|
17
|
+
let { data }: { data: DocPageData } = $props();
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<svelte:head>
|
|
21
|
+
<title>{data.title}</title>
|
|
22
|
+
</svelte:head>
|
|
23
|
+
|
|
24
|
+
<DocsPageHero data={data} />
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DocPageData } from "../types";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
data: DocPageData;
|
|
4
|
+
};
|
|
5
|
+
declare const PrivacyPolicyOrTermsOfUse02: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
|
+
type PrivacyPolicyOrTermsOfUse02 = ReturnType<typeof PrivacyPolicyOrTermsOfUse02>;
|
|
7
|
+
export default PrivacyPolicyOrTermsOfUse02;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* Main Privacy Policy / Terms of Use component.
|
|
4
|
+
* Allows choosing between two layout variants:
|
|
5
|
+
* - **1**: Three-column layout with sidebar, content, and TOC (scroll-spy).
|
|
6
|
+
* - **2**: Simple layout with colored hero and centered content.
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
* @example
|
|
10
|
+
* ```svelte
|
|
11
|
+
* <!-- Variant 1 (default) — docs layout with sidebar -->
|
|
12
|
+
* <PrivacyPolicyOrTermsOfUse variant={1} data={pageData} />
|
|
13
|
+
*
|
|
14
|
+
* <!-- Variant 2 — layout with hero -->
|
|
15
|
+
* <PrivacyPolicyOrTermsOfUse variant={2} data={pageData} />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<script lang="ts">
|
|
21
|
+
import type { PrivacyPolicyOrTermsOfUseProps } from "./types";
|
|
22
|
+
import PrivacyPolicyOrTermsOfUse01 from "./01/PrivacyPolicyOrTermsOfUse01.svelte";
|
|
23
|
+
import PrivacyPolicyOrTermsOfUse02 from "./02/PrivacyPolicyOrTermsOfUse02.svelte";
|
|
24
|
+
|
|
25
|
+
let { variant = 1, data }: PrivacyPolicyOrTermsOfUseProps = $props();
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
{#if variant === 2}
|
|
29
|
+
<PrivacyPolicyOrTermsOfUse02 {data} />
|
|
30
|
+
{:else}
|
|
31
|
+
<PrivacyPolicyOrTermsOfUse01 {data} />
|
|
32
|
+
{/if}
|
package/dist/components/pages/privacy-policy-or-terms-of-use/PrivacyPolicyOrTermsOfUse.svelte.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PrivacyPolicyOrTermsOfUseProps } from "./types";
|
|
2
|
+
declare const PrivacyPolicyOrTermsOfUse: import("svelte").Component<PrivacyPolicyOrTermsOfUseProps, {}, "">;
|
|
3
|
+
type PrivacyPolicyOrTermsOfUse = ReturnType<typeof PrivacyPolicyOrTermsOfUse>;
|
|
4
|
+
export default PrivacyPolicyOrTermsOfUse;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* Renders a content block (paragraph or list).
|
|
4
|
+
* @component
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <ContentBlockView block={{ type: "paragraph", text: "Hello world" }} />
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
import type { ContentBlock } from "../types";
|
|
14
|
+
|
|
15
|
+
let { block }: { block: ContentBlock } = $props();
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
{#if block.type === "paragraph"}
|
|
19
|
+
<p class="leading-7 text-foreground/90">{block.text}</p>
|
|
20
|
+
{:else if block.type === "list"}
|
|
21
|
+
<ul class="list-disc pl-6 flex flex-col gap-1.5 text-foreground/90">
|
|
22
|
+
{#each block.items as item, i (i)}
|
|
23
|
+
<li class="leading-7">{item}</li>
|
|
24
|
+
{/each}
|
|
25
|
+
</ul>
|
|
26
|
+
{/if}
|
package/dist/components/pages/privacy-policy-or-terms-of-use/shared/ContentBlockView.svelte.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ContentBlock } from "../types";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
block: ContentBlock;
|
|
4
|
+
};
|
|
5
|
+
declare const ContentBlockView: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
|
+
type ContentBlockView = ReturnType<typeof ContentBlockView>;
|
|
7
|
+
export default ContentBlockView;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* Renders a document section with title, content blocks, and recursive subsections.
|
|
4
|
+
* @component
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <DocSectionView section={sectionData} />
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
import type { DocSection } from "../types";
|
|
14
|
+
import ContentBlockView from "./ContentBlockView.svelte";
|
|
15
|
+
|
|
16
|
+
let { section }: { section: DocSection } = $props();
|
|
17
|
+
|
|
18
|
+
const level = $derived(section.level ?? 1);
|
|
19
|
+
const heading = $derived(
|
|
20
|
+
section.number
|
|
21
|
+
? `${section.number}. ${section.title}`
|
|
22
|
+
: section.title,
|
|
23
|
+
);
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<section id={section.id} class="scroll-mt-24 flex flex-col gap-4">
|
|
27
|
+
{#if level === 1}
|
|
28
|
+
<h2 class="text-2xl font-semibold tracking-tight">{heading}</h2>
|
|
29
|
+
{:else}
|
|
30
|
+
<h3 class="text-xl font-semibold tracking-tight">{heading}</h3>
|
|
31
|
+
{/if}
|
|
32
|
+
|
|
33
|
+
{#each section.blocks ?? [] as block, i (i)}
|
|
34
|
+
<ContentBlockView {block} />
|
|
35
|
+
{/each}
|
|
36
|
+
|
|
37
|
+
{#if section.subsections}
|
|
38
|
+
<div class="flex flex-col gap-6 mt-2">
|
|
39
|
+
{#each section.subsections as subsection (subsection.id)}
|
|
40
|
+
<svelte:self section={subsection} />
|
|
41
|
+
{/each}
|
|
42
|
+
</div>
|
|
43
|
+
{/if}
|
|
44
|
+
</section>
|
package/dist/components/pages/privacy-policy-or-terms-of-use/shared/DocSectionView.svelte.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DocSection } from "../types";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
section: DocSection;
|
|
4
|
+
};
|
|
5
|
+
declare const DocSectionView: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
|
+
type DocSectionView = ReturnType<typeof DocSectionView>;
|
|
7
|
+
export default DocSectionView;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* Renders the breadcrumb navigation (e.g., Blog / Current).
|
|
4
|
+
* @component
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <PrivacyPolicyOrTermsOfUseBreadcrumb items={[{ label: "Blog", href: "/blog" }, { label: "Current" }]} />
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
import type { BreadcrumbItem } from "../types";
|
|
14
|
+
|
|
15
|
+
let { items }: { items: BreadcrumbItem[] } = $props();
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<nav
|
|
19
|
+
aria-label="Breadcrumb"
|
|
20
|
+
class="flex items-center gap-1.5 text-sm text-muted-foreground"
|
|
21
|
+
>
|
|
22
|
+
{#each items as item, i (item.label)}
|
|
23
|
+
{#if item.href}
|
|
24
|
+
<a href={item.href} class="hover:text-foreground transition-colors"
|
|
25
|
+
>{item.label}</a
|
|
26
|
+
>
|
|
27
|
+
{:else}
|
|
28
|
+
<span class="text-foreground font-medium">{item.label}</span>
|
|
29
|
+
{/if}
|
|
30
|
+
{#if i < items.length - 1}
|
|
31
|
+
<span class="select-none">/</span>
|
|
32
|
+
{/if}
|
|
33
|
+
{/each}
|
|
34
|
+
</nav>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BreadcrumbItem } from "../types";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
items: BreadcrumbItem[];
|
|
4
|
+
};
|
|
5
|
+
declare const PrivacyPolicyOrTermsOfUseBreadcrumb: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
|
+
type PrivacyPolicyOrTermsOfUseBreadcrumb = ReturnType<typeof PrivacyPolicyOrTermsOfUseBreadcrumb>;
|
|
7
|
+
export default PrivacyPolicyOrTermsOfUseBreadcrumb;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constrói a tabela de conteúdos (TOC) a partir das secções do documento.
|
|
3
|
+
* Achata a árvore de secções (com subsections) numa lista plana.
|
|
4
|
+
* @param sections - Secções do documento
|
|
5
|
+
* @returns Lista de itens para a TOC
|
|
6
|
+
*/
|
|
7
|
+
import type { DocSection, TocItem } from "../types";
|
|
8
|
+
export declare function buildToc(sections: DocSection[]): TocItem[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function buildToc(sections) {
|
|
2
|
+
const result = [];
|
|
3
|
+
for (const section of sections) {
|
|
4
|
+
result.push({
|
|
5
|
+
id: section.id,
|
|
6
|
+
label: section.number ? `${section.number}. ${section.title}` : section.title,
|
|
7
|
+
level: section.level ?? 1,
|
|
8
|
+
});
|
|
9
|
+
if (section.subsections) {
|
|
10
|
+
result.push(...buildToc(section.subsections));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipagem partilhada por todos os componentes da página de documentação/política.
|
|
3
|
+
* @module types
|
|
4
|
+
*/
|
|
5
|
+
/** Um item do breadcrumb no topo da página (ex: Blog / Current). */
|
|
6
|
+
export interface BreadcrumbItem {
|
|
7
|
+
label: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Um bloco de conteúdo dentro de uma secção: parágrafo de texto
|
|
12
|
+
* ou lista de pontos (bullets).
|
|
13
|
+
*/
|
|
14
|
+
export type ContentBlock = {
|
|
15
|
+
type: "paragraph";
|
|
16
|
+
text: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: "list";
|
|
19
|
+
items: string[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Uma secção de conteúdo (ex: "1. Introduction", "2.1 Personal Data").
|
|
23
|
+
* `level` define o tamanho do título (1 = h2, 2 = h3).
|
|
24
|
+
* `subsections` permite aninhar secções (2 -> 2.1, 2.2, ...).
|
|
25
|
+
*/
|
|
26
|
+
export interface DocSection {
|
|
27
|
+
/** id único, usado para o link/scroll da sidebar e TOC (#id) */
|
|
28
|
+
id: string;
|
|
29
|
+
/** número exibido antes do título, ex: "1", "2.1" */
|
|
30
|
+
number?: string;
|
|
31
|
+
/** título da secção */
|
|
32
|
+
title: string;
|
|
33
|
+
/** nível do título (1 = h2, 2 = h3). Padrão: 1 */
|
|
34
|
+
level?: 1 | 2;
|
|
35
|
+
/** blocos de conteúdo (parágrafos, listas) */
|
|
36
|
+
blocks?: ContentBlock[];
|
|
37
|
+
/** subsecções aninhadas */
|
|
38
|
+
subsections?: DocSection[];
|
|
39
|
+
}
|
|
40
|
+
/** Dados completos de uma página de documentação/política. */
|
|
41
|
+
export interface DocPageData {
|
|
42
|
+
/** título da página */
|
|
43
|
+
title: string;
|
|
44
|
+
/** data da última atualização */
|
|
45
|
+
lastUpdated: string;
|
|
46
|
+
/** itens do breadcrumb */
|
|
47
|
+
breadcrumb: BreadcrumbItem[];
|
|
48
|
+
/** secções de conteúdo (usadas pela sidebar, TOC e renderização) */
|
|
49
|
+
sections: DocSection[];
|
|
50
|
+
}
|
|
51
|
+
/** Item derivado automaticamente das secções, para a tabela de conteúdos (TOC). */
|
|
52
|
+
export interface TocItem {
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
level: 1 | 2;
|
|
56
|
+
}
|
|
57
|
+
export interface PrivacyPolicyOrTermsOfUseProps {
|
|
58
|
+
/** Variante do layout: 1 = sidebar+TOC, 2 = hero+coluna. */
|
|
59
|
+
variant?: 1 | 2;
|
|
60
|
+
/** Dados completos da página de documento. */
|
|
61
|
+
data: DocPageData;
|
|
62
|
+
}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component ForgetPasswordCard
|
|
4
|
+
* Password recovery card with tabs, back button, and light switch.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <ForgetPasswordCard formType="EMAIL" onSubmit={(req) => console.log(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 {
|
|
8
18
|
ForgetPasswordRequestDto,
|
|
9
19
|
ForgetPasswordVariant,
|
|
10
20
|
} from "../../types";
|
|
11
21
|
import FormForgetPassword from "./FormForgetPassword.svelte";
|
|
12
|
-
import TabUnderline from "
|
|
22
|
+
import TabUnderline from "../../../../../core/tabs/ui/tab-underline.svelte";
|
|
13
23
|
|
|
14
|
-
/**
|
|
15
|
-
* Card de recuperação de senha.
|
|
16
|
-
* @property {ForgetPasswordVariant} formType - Tipo do input (EMAIL, PHONE)
|
|
17
|
-
* @property {(req: ForgetPasswordRequestDto) => void} onSubmit - Callback ao submeter
|
|
18
|
-
*/
|
|
19
24
|
type Props = {
|
|
20
25
|
formType?: ForgetPasswordVariant;
|
|
21
26
|
onSubmit?: (request: ForgetPasswordRequestDto) => void;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { Snippet } from "svelte";
|
|
2
2
|
import type { ForgetPasswordRequestDto, ForgetPasswordVariant } from "../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Card de recuperação de senha.
|
|
5
|
-
* @property {ForgetPasswordVariant} formType - Tipo do input (EMAIL, PHONE)
|
|
6
|
-
* @property {(req: ForgetPasswordRequestDto) => void} onSubmit - Callback ao submeter
|
|
7
|
-
*/
|
|
8
3
|
type Props = {
|
|
9
4
|
formType?: ForgetPasswordVariant;
|
|
10
5
|
onSubmit?: (request: ForgetPasswordRequestDto) => void;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormForgetPassword
|
|
4
|
+
* Password recovery form with email, phone, or both input.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormForgetPassword variant="EMAIL" onSubmit={(req) => console.log(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import InputEmail from "
|
|
3
|
-
import InputPhone from "
|
|
4
|
-
import InputEmailOrPhone from "
|
|
5
|
-
import { t } from "
|
|
12
|
+
import InputEmail from "../../../../../core/form/ui/input-email.svelte";
|
|
13
|
+
import InputPhone from "../../../../../core/form/ui/input-phone.svelte";
|
|
14
|
+
import InputEmailOrPhone from "../../../../../core/form/ui/input-email-or-phone.svelte";
|
|
15
|
+
import { t } from "../../../../../../i18n";
|
|
6
16
|
import type { ForgetPasswordRequestDto, ForgetPasswordVariant } from "../../types";
|
|
7
|
-
import ButtonSend from "
|
|
17
|
+
import ButtonSend from "../../../../../core/button/ButtonSend.svelte";
|
|
8
18
|
|
|
9
19
|
type Props = {
|
|
10
20
|
variant?: ForgetPasswordVariant;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import ForgetPasswordCard from "./ForgetPasswordCard.svelte";
|
|
3
|
-
import LeftHero from "
|
|
3
|
+
import LeftHero from "../../../../../core/panel/LeftHero.svelte";
|
|
4
4
|
import type { PageForgetPasswordProps } from "../../types";
|
|
5
|
-
import { t } from "
|
|
5
|
+
import { t } from "../../../../../../i18n";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @property {CarouselItem[]} carousel -
|
|
11
|
-
* @property {string} title -
|
|
8
|
+
* Variant 01 of the forgot password page.
|
|
9
|
+
* Split layout: hero on the left (reused from login), recovery card on the right.
|
|
10
|
+
* @property {CarouselItem[]} carousel - Carousel items (optional, uses default values)
|
|
11
|
+
* @property {string} title - Hero title
|
|
12
12
|
*/
|
|
13
13
|
let {
|
|
14
14
|
carousel,
|
package/dist/components/pages/{forget-password → security/forget-password}/PageForgetPassword.svelte
RENAMED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component PageForgetPassword
|
|
4
|
+
* Password recovery page. Routes to the specified layout variant.
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <PageForgetPassword varient="01" onSubmit={(req) => handleForget(req)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import type { PageForgetPasswordProps } from "./types";
|
|
3
13
|
import PageForgetPassword01 from "./01/ui/PageForgetPassword01.svelte";
|
|
4
14
|
|
|
5
|
-
/**
|
|
6
|
-
* Página de recuperação de senha.
|
|
7
|
-
* @property {"01"} varient - Variante do layout
|
|
8
|
-
* @property {CarouselItem[]} carousel - Itens do carousel hero
|
|
9
|
-
* @property {string} title - Título do hero
|
|
10
|
-
* @property {(req: ForgetPasswordRequestDto) => void} onSubmit - Callback ao submeter email
|
|
11
|
-
*/
|
|
12
15
|
type Props = {
|
|
13
16
|
varient?: "01";
|
|
14
17
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import type { PageForgetPasswordProps } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Página de recuperação de senha.
|
|
4
|
-
* @property {"01"} varient - Variante do layout
|
|
5
|
-
* @property {CarouselItem[]} carousel - Itens do carousel hero
|
|
6
|
-
* @property {string} title - Título do hero
|
|
7
|
-
* @property {(req: ForgetPasswordRequestDto) => void} onSubmit - Callback ao submeter email
|
|
8
|
-
*/
|
|
9
2
|
type Props = {
|
|
10
3
|
varient?: "01";
|
|
11
4
|
};
|
|
@@ -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 ForgetPasswordVariant = "EMAIL" | "PHONE" | "PHONE_EMAIL";
|
|
4
4
|
export type ForgetPasswordRequestDto = {
|
|
@@ -6,8 +6,8 @@ export type ForgetPasswordRequestDto = {
|
|
|
6
6
|
variant: ForgetPasswordVariant;
|
|
7
7
|
};
|
|
8
8
|
export type PageForgetPasswordProps = {
|
|
9
|
-
carousel?:
|
|
10
|
-
varient?:
|
|
9
|
+
carousel?: LoginCarouselItem[];
|
|
10
|
+
varient?: LoginCarouselItemType;
|
|
11
11
|
title?: string;
|
|
12
12
|
children?: Snippet;
|
|
13
13
|
formType?: ForgetPasswordVariant;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormLogin
|
|
4
|
+
* Reusable login form with input variants (EMAIL, USERNAME, PHONE).
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormLogin variant="EMAIL" onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
|
-
import InputEmail from "
|
|
3
|
-
import InputUsername from "
|
|
4
|
-
import InputPhone from "
|
|
5
|
-
import InputPassword from "
|
|
6
|
-
import ButtonLogin from "
|
|
7
|
-
import LinkForgetPassword from "
|
|
8
|
-
import LabelOr from "
|
|
9
|
-
import ButtonLoginWith from "
|
|
10
|
-
import { t } from "
|
|
12
|
+
import InputEmail from "../../../../../core/form/ui/input-email.svelte";
|
|
13
|
+
import InputUsername from "../../../../../core/form/ui/input-username.svelte";
|
|
14
|
+
import InputPhone from "../../../../../core/form/ui/input-phone.svelte";
|
|
15
|
+
import InputPassword from "../../../../../core/form/ui/input-password.svelte";
|
|
16
|
+
import ButtonLogin from "../../../../../core/button/ButtonLogin.svelte";
|
|
17
|
+
import LinkForgetPassword from "../../../../../core/link/link-forget-password.svelte";
|
|
18
|
+
import LabelOr from "../../../../../core/label/LabelOr.svelte";
|
|
19
|
+
import ButtonLoginWith from "../../../../../core/button/ButtonLoginWith.svelte";
|
|
20
|
+
import { t } from "../../../../../../i18n";
|
|
11
21
|
import type { LoginRequestDto, LoginVariant, LinkProps } from "../../types";
|
|
12
22
|
|
|
13
|
-
/**
|
|
14
|
-
* Formulário de login reutilizável.
|
|
15
|
-
* @property {LoginVariant} variant - Tipo do input de dados (EMAIL, USERNAME, PHONE)
|
|
16
|
-
* @property {(cred: Credential) => void} onSubmit - Callback ao submeter { data, password }
|
|
17
|
-
* @property {LinkProps} forgetPassword - Config do link de esquecimento de senha { url, onclick }
|
|
18
|
-
*/
|
|
19
23
|
type Props = {
|
|
20
24
|
variant: LoginVariant;
|
|
21
25
|
onSubmit?: (credential: LoginRequestDto) => void;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import type { LoginRequestDto, LoginVariant, LinkProps } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* Formulário de login reutilizável.
|
|
4
|
-
* @property {LoginVariant} variant - Tipo do input de dados (EMAIL, USERNAME, PHONE)
|
|
5
|
-
* @property {(cred: Credential) => void} onSubmit - Callback ao submeter { data, password }
|
|
6
|
-
* @property {LinkProps} forgetPassword - Config do link de esquecimento de senha { url, onclick }
|
|
7
|
-
*/
|
|
8
2
|
type Props = {
|
|
9
3
|
variant: LoginVariant;
|
|
10
4
|
onSubmit?: (credential: LoginRequestDto) => void;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormLoginEmailPassword
|
|
4
|
+
* Form de login com email e senha. Wrapper fino de FormLogin variant="EMAIL".
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormLoginEmailPassword onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import FormLogin from "./FormLogin.svelte";
|
|
3
13
|
import type { LoginRequestDto, LinkProps } from "../../types";
|
|
4
14
|
|
|
5
|
-
/** Form de login com email e senha. Wrapper fino de FormLogin variant="EMAIL". */
|
|
6
15
|
type Props = {
|
|
7
16
|
onSubmit?: (credential: LoginRequestDto) => void;
|
|
8
17
|
forgetPassword?: LinkProps;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormLoginPhonePassword
|
|
4
|
+
* Form de login com telefone e senha. Wrapper fino de FormLogin variant="PHONE".
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormLoginPhonePassword onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import FormLogin from "./FormLogin.svelte";
|
|
3
13
|
import type { LoginRequestDto, LinkProps } from "../../types";
|
|
4
14
|
|
|
5
|
-
/** Form de login com telefone e senha. Wrapper fino de FormLogin variant="PHONE". */
|
|
6
15
|
type Props = {
|
|
7
16
|
onSubmit?: (credential: LoginRequestDto) => void;
|
|
8
17
|
forgetPassword?: LinkProps;
|
package/dist/components/pages/{login → security/login}/01/ui/FormLoginUsernamePassword.svelte
RENAMED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
/**
|
|
3
|
+
* @component FormLoginUsernamePassword
|
|
4
|
+
* Form de login com username e senha. Wrapper fino de FormLogin variant="USERNAME".
|
|
5
|
+
*
|
|
6
|
+
* @example svelte
|
|
7
|
+
* <FormLoginUsernamePassword onSubmit={(cred) => login(cred)} />
|
|
8
|
+
*/
|
|
9
|
+
</script>
|
|
10
|
+
|
|
1
11
|
<script lang="ts">
|
|
2
12
|
import FormLogin from "./FormLogin.svelte";
|
|
3
13
|
import type { LoginRequestDto, LinkProps } from "../../types";
|
|
4
14
|
|
|
5
|
-
/** Form de login com username e senha. Wrapper fino de FormLogin variant="USERNAME". */
|
|
6
15
|
type Props = {
|
|
7
16
|
onSubmit?: (credential: LoginRequestDto) => void;
|
|
8
17
|
forgetPassword?: LinkProps;
|