negodesign 0.0.10 → 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 -8
- 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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
translations,
|
|
9
9
|
children,
|
|
10
10
|
}: {
|
|
11
|
-
/**
|
|
11
|
+
/** Custom translations per language. Merged with the library's base translations. */
|
|
12
12
|
translations?: Translations;
|
|
13
13
|
children: any;
|
|
14
14
|
} = $props();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Translations = Record<string, Record<string, string>>;
|
|
2
2
|
type $$ComponentProps = {
|
|
3
|
-
/**
|
|
3
|
+
/** Custom translations per language. Merged with the library's base translations. */
|
|
4
4
|
translations?: Translations;
|
|
5
5
|
children: any;
|
|
6
6
|
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* Card component with a title and content.
|
|
4
|
+
* @component
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
InformationCircleIcon,
|
|
8
|
+
UserIcon,
|
|
9
|
+
} from "@hugeicons/core-free-icons";
|
|
10
|
+
import { t } from "../../../../../i18n";
|
|
11
|
+
import type { CardMediaProps } from "../../types";
|
|
12
|
+
import CardStarRating from "../../shared/CardStarRating.svelte";
|
|
13
|
+
import CardDescription from "../../shared/CardDescription.svelte";
|
|
14
|
+
import CardTags from "../../shared/CardTags.svelte";
|
|
15
|
+
import CardThumbnailVideo from "../../shared/CardThumbnailVideo.svelte";
|
|
16
|
+
import CardButton from "../../shared/CardButton.svelte";
|
|
17
|
+
import CardFavorite from "../../shared/CardFavorite.svelte";
|
|
18
|
+
|
|
19
|
+
let {
|
|
20
|
+
id,
|
|
21
|
+
tags,
|
|
22
|
+
logo,
|
|
23
|
+
title,
|
|
24
|
+
content,
|
|
25
|
+
imageUrl,
|
|
26
|
+
videoUrl,
|
|
27
|
+
//videoAction,
|
|
28
|
+
startNumber,
|
|
29
|
+
startMax = 5,
|
|
30
|
+
isImageButtonMaximized = false,
|
|
31
|
+
isVideoButtonMaximized = false,
|
|
32
|
+
isTagBorderBottom = false,
|
|
33
|
+
isFavorite = false,
|
|
34
|
+
buttonProfileClass,
|
|
35
|
+
buttonDetailsClass,
|
|
36
|
+
onFavoriteClick,
|
|
37
|
+
onButtonProfile,
|
|
38
|
+
onButtonDetails,
|
|
39
|
+
}: CardMediaProps = $props();
|
|
40
|
+
|
|
41
|
+
let isShowButtonProfileAndDetails = $derived(
|
|
42
|
+
onButtonProfile != null && onButtonDetails != null,
|
|
43
|
+
);
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<article
|
|
47
|
+
class="border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-transparent rounded-lg p-5 space-y-1 md:space-y-3"
|
|
48
|
+
>
|
|
49
|
+
<div class="flex justify-between items-center w-full mb-4">
|
|
50
|
+
<div class="flex justify-start gap-2">
|
|
51
|
+
<div class="flex justify-center items-center">
|
|
52
|
+
{#if logo}
|
|
53
|
+
<img src={logo} alt={logo} class="w-12 h-12 rounded-lg" />
|
|
54
|
+
{/if}
|
|
55
|
+
</div>
|
|
56
|
+
<div class="flex-col">
|
|
57
|
+
{#if title}
|
|
58
|
+
<div class="text-center font-bold text-lg">{title}</div>
|
|
59
|
+
{/if}
|
|
60
|
+
{#if startNumber}
|
|
61
|
+
<CardStarRating startNumber={startNumber} startMax={startMax} />
|
|
62
|
+
{/if}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="flex justify-end items-center">
|
|
66
|
+
<CardFavorite
|
|
67
|
+
isFavorite={isFavorite}
|
|
68
|
+
onFavoriteClick={() => onFavoriteClick!(id)}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div class="h-15 my-2">
|
|
74
|
+
<CardDescription content={content}/>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<CardTags
|
|
78
|
+
className="my-6"
|
|
79
|
+
tags={tags ?? []}
|
|
80
|
+
isTagBorderBottom={isTagBorderBottom}
|
|
81
|
+
/>
|
|
82
|
+
|
|
83
|
+
<CardThumbnailVideo
|
|
84
|
+
{imageUrl}
|
|
85
|
+
{videoUrl}
|
|
86
|
+
{isImageButtonMaximized}
|
|
87
|
+
{isVideoButtonMaximized}
|
|
88
|
+
/>
|
|
89
|
+
|
|
90
|
+
{#if onButtonProfile || onButtonDetails}
|
|
91
|
+
<div class="flex justify-center items-center gap-2 mt-4 w-full">
|
|
92
|
+
{#if onButtonProfile}
|
|
93
|
+
<CardButton
|
|
94
|
+
id={id}
|
|
95
|
+
icon={UserIcon}
|
|
96
|
+
className={buttonProfileClass}
|
|
97
|
+
text={$t("label.view.profile")}
|
|
98
|
+
onClick={onButtonProfile}
|
|
99
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
100
|
+
/>
|
|
101
|
+
{/if}
|
|
102
|
+
{#if onButtonDetails}
|
|
103
|
+
<CardButton
|
|
104
|
+
id={id}
|
|
105
|
+
icon={InformationCircleIcon}
|
|
106
|
+
className={buttonDetailsClass}
|
|
107
|
+
text={$t("label.more.details")}
|
|
108
|
+
onClick={onButtonDetails}
|
|
109
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
110
|
+
/>
|
|
111
|
+
{/if}
|
|
112
|
+
</div>
|
|
113
|
+
{/if}
|
|
114
|
+
</article>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* Card component with a title and content.
|
|
4
|
+
* @component
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
InformationCircleIcon,
|
|
8
|
+
UserIcon,
|
|
9
|
+
} from "@hugeicons/core-free-icons";
|
|
10
|
+
import { t } from "../../../../../i18n";
|
|
11
|
+
import type { CardMediaProps } from "../../types";
|
|
12
|
+
import CardStarRating from "../../shared/CardStarRating.svelte";
|
|
13
|
+
import CardTags from "../../shared/CardTags.svelte";
|
|
14
|
+
import CardDescription from "../../shared/CardDescription.svelte";
|
|
15
|
+
import CardThumbnailVideo from "../../shared/CardThumbnailVideo.svelte";
|
|
16
|
+
import CardButton from "../../shared/CardButton.svelte";
|
|
17
|
+
import CardFavorite from "../../shared/CardFavorite.svelte";
|
|
18
|
+
let {
|
|
19
|
+
id,
|
|
20
|
+
tags,
|
|
21
|
+
logo,
|
|
22
|
+
title,
|
|
23
|
+
content,
|
|
24
|
+
className,
|
|
25
|
+
imageUrl,
|
|
26
|
+
videoUrl,
|
|
27
|
+
//videoAction,
|
|
28
|
+
startNumber,
|
|
29
|
+
startMax = 5,
|
|
30
|
+
isImageButtonMaximized = false,
|
|
31
|
+
isVideoButtonMaximized = false,
|
|
32
|
+
isTagBorderBottom = false,
|
|
33
|
+
isFavorite = false,
|
|
34
|
+
buttonProfileClass,
|
|
35
|
+
buttonDetailsClass,
|
|
36
|
+
onFavoriteClick,
|
|
37
|
+
onButtonProfile,
|
|
38
|
+
onButtonDetails,
|
|
39
|
+
}: CardMediaProps = $props();
|
|
40
|
+
|
|
41
|
+
let isShowButtonProfileAndDetails = $derived(
|
|
42
|
+
onButtonProfile != null && onButtonDetails != null,
|
|
43
|
+
);
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<article
|
|
47
|
+
class="border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-transparent rounded-lg p-5 space-y-1 md:space-y-3 {className}"
|
|
48
|
+
>
|
|
49
|
+
<div class="flex flex-col justify-center items-center w-full relative">
|
|
50
|
+
<div class="flex flex-col justify-start gap-2">
|
|
51
|
+
<div class="flex justify-center items-center">
|
|
52
|
+
{#if logo}
|
|
53
|
+
<img src={logo} alt={logo} class="w-12 h-12 rounded-lg" />
|
|
54
|
+
{/if}
|
|
55
|
+
</div>
|
|
56
|
+
<div class="flex flex-col justify-center items-center">
|
|
57
|
+
{#if title}
|
|
58
|
+
<div class="text-center font-bold text-lg">{title}</div>
|
|
59
|
+
{/if}
|
|
60
|
+
{#if startNumber}
|
|
61
|
+
<CardStarRating startNumber={startNumber} startMax={startMax} />
|
|
62
|
+
{/if}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="flex justify-end items-center absolute top-0 right-0">
|
|
66
|
+
<CardFavorite
|
|
67
|
+
isFavorite={isFavorite}
|
|
68
|
+
onFavoriteClick={() => onFavoriteClick!(id)}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
<CardTags
|
|
72
|
+
className="my-4"
|
|
73
|
+
tags={tags ?? []}
|
|
74
|
+
{isTagBorderBottom}
|
|
75
|
+
/>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div class="h-15 mb-8">
|
|
79
|
+
<CardDescription {content} />
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<CardThumbnailVideo
|
|
83
|
+
{imageUrl}
|
|
84
|
+
{videoUrl}
|
|
85
|
+
{isImageButtonMaximized}
|
|
86
|
+
{isVideoButtonMaximized}
|
|
87
|
+
/>
|
|
88
|
+
|
|
89
|
+
{#if onButtonProfile || onButtonDetails}
|
|
90
|
+
<div class="flex justify-center items-center gap-2 mt-4 w-full">
|
|
91
|
+
{#if onButtonProfile}
|
|
92
|
+
<CardButton
|
|
93
|
+
{id}
|
|
94
|
+
icon={UserIcon}
|
|
95
|
+
className={buttonProfileClass}
|
|
96
|
+
text={$t("label.view.profile")}
|
|
97
|
+
onClick={onButtonProfile}
|
|
98
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
99
|
+
/>
|
|
100
|
+
{/if}
|
|
101
|
+
{#if onButtonDetails}
|
|
102
|
+
<CardButton
|
|
103
|
+
{id}
|
|
104
|
+
icon={InformationCircleIcon}
|
|
105
|
+
className={buttonDetailsClass}
|
|
106
|
+
text={$t("label.more.details")}
|
|
107
|
+
onClick={onButtonDetails}
|
|
108
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
109
|
+
/>
|
|
110
|
+
{/if}
|
|
111
|
+
</div>
|
|
112
|
+
{/if}
|
|
113
|
+
</article>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { CardMediaProps } from "../types";
|
|
3
|
+
import CardMedia01 from "./01/CardMedia01.svelte";
|
|
4
|
+
import CardMedia02 from "./02/CardMedia02.svelte";
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
variant?: 1 | 2;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
let { variant, ...restProps }: CardMediaProps & Props = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
{#if variant === 2}
|
|
14
|
+
<CardMedia02 {...restProps} />
|
|
15
|
+
{:else}
|
|
16
|
+
<CardMedia01 {...restProps} />
|
|
17
|
+
{/if}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CardMediaProps } from "../types";
|
|
2
|
+
type Props = {
|
|
3
|
+
variant?: 1 | 2;
|
|
4
|
+
};
|
|
5
|
+
type $$ComponentProps = CardMediaProps & Props;
|
|
6
|
+
declare const CardMedia: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
7
|
+
type CardMedia = ReturnType<typeof CardMedia>;
|
|
8
|
+
export default CardMedia;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { GlobalIcon, MapPin, NecklaceIcon } from "@hugeicons/core-free-icons";
|
|
2
|
+
const items = [
|
|
3
|
+
{
|
|
4
|
+
id: 1,
|
|
5
|
+
logo: 'https://api.dicebear.com/9.x/initials/svg?seed=Hotel%20Baía%20Azul&backgroundColor=1a2420&textColor=e3b563',
|
|
6
|
+
title: 'Hotel Baía Azul',
|
|
7
|
+
content: 'Hotel à beira-mar com vista panorâmica sobre a baía, piscina infinita e restaurante gastronómico. Resort tropical rodeado de jardins, com acesso direto à praia e atividades para toda a família Resort tropical rodeado de jardins, com acesso direto à praia e atividades para toda a família',
|
|
8
|
+
startNumber: 5,
|
|
9
|
+
startMax: 5,
|
|
10
|
+
imageUrl: 'https://picsum.photos/seed/hotel-baia-azul/800/600',
|
|
11
|
+
videoUrl: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
|
|
12
|
+
isFavorite: true,
|
|
13
|
+
tags: [
|
|
14
|
+
{
|
|
15
|
+
icon: GlobalIcon,
|
|
16
|
+
text: 'Luanda',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
icon: MapPin,
|
|
20
|
+
text: 'Kilamba',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
icon: NecklaceIcon,
|
|
24
|
+
text: 'Rua 19',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 2,
|
|
30
|
+
logo: 'https://api.dicebear.com/9.x/initials/svg?seed=Miramar%20Suites&backgroundColor=1a2420&textColor=e3b563',
|
|
31
|
+
title: 'Miramar Suites',
|
|
32
|
+
content: 'Suítes modernas no coração da cidade, com spa completo e serviço de quarto 24 horas.',
|
|
33
|
+
startNumber: 4,
|
|
34
|
+
startMax: 5,
|
|
35
|
+
imageUrl: 'https://picsum.photos/seed/miramar-suites/800/600',
|
|
36
|
+
videoUrl: 'https://www.w3schools.com/html/mov_bbb.mp4',
|
|
37
|
+
tags: [
|
|
38
|
+
{
|
|
39
|
+
icon: GlobalIcon,
|
|
40
|
+
text: 'Benguela',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
icon: MapPin,
|
|
44
|
+
text: 'Catumbela',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
icon: GlobalIcon,
|
|
48
|
+
text: 'Luanda',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
icon: MapPin,
|
|
52
|
+
text: 'Kilamba',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 3,
|
|
58
|
+
logo: 'https://api.dicebear.com/9.x/initials/svg?seed=Palm%20Resort&backgroundColor=1a2420&textColor=e3b563',
|
|
59
|
+
title: 'Palm Resort & Spa',
|
|
60
|
+
content: 'Resort tropical rodeado de jardins, com acesso direto à praia e atividades para toda a família.',
|
|
61
|
+
startNumber: 5,
|
|
62
|
+
startMax: 5,
|
|
63
|
+
imageUrl: 'https://picsum.photos/seed/palm-resort/800/600',
|
|
64
|
+
videoUrl: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/720/Big_Buck_Bunny_720_10s_1MB.mp4',
|
|
65
|
+
isFavorite: true,
|
|
66
|
+
tags: [
|
|
67
|
+
{
|
|
68
|
+
icon: GlobalIcon,
|
|
69
|
+
text: 'Huíla',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
icon: MapPin,
|
|
73
|
+
text: 'Huíla',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 4,
|
|
79
|
+
logo: 'https://api.dicebear.com/9.x/initials/svg?seed=Hotel%20Central%20Park&backgroundColor=1a2420&textColor=e3b563',
|
|
80
|
+
title: 'Hotel Central Park',
|
|
81
|
+
content: 'Localização privilegiada no centro urbano, ideal para viagens de negócios, com centro de conferências.',
|
|
82
|
+
startNumber: 3,
|
|
83
|
+
startMax: 5,
|
|
84
|
+
imageUrl: 'https://picsum.photos/seed/hotel-central-park/800/600',
|
|
85
|
+
videoUrl: 'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/coffee.mp4',
|
|
86
|
+
tags: [
|
|
87
|
+
{
|
|
88
|
+
icon: NecklaceIcon,
|
|
89
|
+
text: 'Rua 19',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
icon: GlobalIcon,
|
|
93
|
+
text: 'Luanda',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
icon: MapPin,
|
|
97
|
+
text: 'Kilamba',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
icon: NecklaceIcon,
|
|
101
|
+
text: 'Rua 19',
|
|
102
|
+
},
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: 5,
|
|
107
|
+
logo: 'https://api.dicebear.com/9.x/initials/svg?seed=Villa%20Serena&backgroundColor=1a2420&textColor=e3b563',
|
|
108
|
+
title: 'Villa Serena Boutique',
|
|
109
|
+
content: 'Boutique hotel intimista com decoração exclusiva, café da manhã artesanal e vista para as montanhas.',
|
|
110
|
+
startNumber: 4,
|
|
111
|
+
startMax: 5,
|
|
112
|
+
imageUrl: 'https://picsum.photos/seed/villa-serena/800/600',
|
|
113
|
+
videoUrl: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4',
|
|
114
|
+
isFavorite: true,
|
|
115
|
+
},
|
|
116
|
+
];
|
|
117
|
+
export default items;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* Card component with a title and content.
|
|
4
|
+
* @component
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
InformationCircleIcon,
|
|
8
|
+
UserIcon,
|
|
9
|
+
} from "@hugeicons/core-free-icons";
|
|
10
|
+
import { t } from "../../../../../i18n";
|
|
11
|
+
import type { CardProfileProps } from "../../types";
|
|
12
|
+
import CardStarRating from "../../shared/CardStarRating.svelte";
|
|
13
|
+
import CardDescription from "../../shared/CardDescription.svelte";
|
|
14
|
+
import CardTags from "../../shared/CardTags.svelte";
|
|
15
|
+
import CardButton from "../../shared/CardButton.svelte";
|
|
16
|
+
import CardFavorite from "../../shared/CardFavorite.svelte";
|
|
17
|
+
|
|
18
|
+
let {
|
|
19
|
+
id,
|
|
20
|
+
tags,
|
|
21
|
+
logo,
|
|
22
|
+
title,
|
|
23
|
+
content,
|
|
24
|
+
startNumber,
|
|
25
|
+
startMax = 5,
|
|
26
|
+
isTagBorderBottom = true,
|
|
27
|
+
isFavorite = false,
|
|
28
|
+
buttonProfileClass,
|
|
29
|
+
buttonDetailsClass,
|
|
30
|
+
onFavoriteClick,
|
|
31
|
+
onButtonProfile,
|
|
32
|
+
onButtonDetails,
|
|
33
|
+
}: CardProfileProps = $props();
|
|
34
|
+
|
|
35
|
+
let isShowButtonProfileAndDetails = $derived(
|
|
36
|
+
onButtonProfile != null && onButtonDetails != null,
|
|
37
|
+
);
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<article
|
|
41
|
+
class="border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-transparent rounded-lg p-5 space-y-1 md:space-y-3"
|
|
42
|
+
>
|
|
43
|
+
<div class="flex justify-between items-center w-full mb-4">
|
|
44
|
+
<div class="flex justify-start gap-2">
|
|
45
|
+
<div class="flex justify-center items-center">
|
|
46
|
+
{#if logo}
|
|
47
|
+
<img src={logo} alt={logo} class="w-12 h-12 rounded-lg" />
|
|
48
|
+
{/if}
|
|
49
|
+
</div>
|
|
50
|
+
<div class="flex-col">
|
|
51
|
+
{#if title}
|
|
52
|
+
<div class="text-center font-bold text-lg">{title}</div>
|
|
53
|
+
{/if}
|
|
54
|
+
{#if startNumber}
|
|
55
|
+
<CardStarRating startNumber={startNumber} startMax={startMax} />
|
|
56
|
+
{/if}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="flex justify-end items-center">
|
|
60
|
+
<CardFavorite
|
|
61
|
+
isFavorite={isFavorite}
|
|
62
|
+
onFavoriteClick={() => onFavoriteClick!(id)}
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div class="h-15 my-2">
|
|
68
|
+
<CardDescription content={content}/>
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<CardTags
|
|
72
|
+
className="my-6"
|
|
73
|
+
tags={tags ?? []}
|
|
74
|
+
isTagBorderBottom={isTagBorderBottom}
|
|
75
|
+
/>
|
|
76
|
+
|
|
77
|
+
{#if onButtonProfile || onButtonDetails}
|
|
78
|
+
<div class="flex justify-center items-center gap-2 mt-4 w-full">
|
|
79
|
+
{#if onButtonProfile}
|
|
80
|
+
<CardButton
|
|
81
|
+
id={id}
|
|
82
|
+
icon={UserIcon}
|
|
83
|
+
className={buttonProfileClass}
|
|
84
|
+
text={$t("label.view.profile")}
|
|
85
|
+
onClick={onButtonProfile}
|
|
86
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
87
|
+
/>
|
|
88
|
+
{/if}
|
|
89
|
+
{#if onButtonDetails}
|
|
90
|
+
<CardButton
|
|
91
|
+
id={id}
|
|
92
|
+
icon={InformationCircleIcon}
|
|
93
|
+
className={buttonDetailsClass}
|
|
94
|
+
text={$t("label.more.details")}
|
|
95
|
+
onClick={onButtonDetails}
|
|
96
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
97
|
+
/>
|
|
98
|
+
{/if}
|
|
99
|
+
</div>
|
|
100
|
+
{/if}
|
|
101
|
+
</article>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* Card component with a title and content.
|
|
4
|
+
* @component
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
InformationCircleIcon,
|
|
8
|
+
UserIcon,
|
|
9
|
+
} from "@hugeicons/core-free-icons";
|
|
10
|
+
import { t } from "../../../../../i18n";
|
|
11
|
+
import type { CardProfileProps } from "../../types";
|
|
12
|
+
import CardStarRating from "../../shared/CardStarRating.svelte";
|
|
13
|
+
import CardTags from "../../shared/CardTags.svelte";
|
|
14
|
+
import CardDescription from "../../shared/CardDescription.svelte";
|
|
15
|
+
import CardButton from "../../shared/CardButton.svelte";
|
|
16
|
+
import CardFavorite from "../../shared/CardFavorite.svelte";
|
|
17
|
+
let {
|
|
18
|
+
id,
|
|
19
|
+
tags,
|
|
20
|
+
logo,
|
|
21
|
+
title,
|
|
22
|
+
content,
|
|
23
|
+
className,
|
|
24
|
+
startNumber,
|
|
25
|
+
startMax = 5,
|
|
26
|
+
isTagBorderBottom = true,
|
|
27
|
+
isFavorite = false,
|
|
28
|
+
buttonProfileClass,
|
|
29
|
+
buttonDetailsClass,
|
|
30
|
+
onFavoriteClick,
|
|
31
|
+
onButtonProfile,
|
|
32
|
+
onButtonDetails,
|
|
33
|
+
}: CardProfileProps = $props();
|
|
34
|
+
|
|
35
|
+
let isShowButtonProfileAndDetails = $derived(
|
|
36
|
+
onButtonProfile != null && onButtonDetails != null,
|
|
37
|
+
);
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<article
|
|
41
|
+
class="border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-transparent rounded-lg p-5 space-y-1 md:space-y-3 {className}"
|
|
42
|
+
>
|
|
43
|
+
<div class="flex flex-col justify-center items-center w-full relative">
|
|
44
|
+
<div class="flex flex-col justify-start gap-2">
|
|
45
|
+
<div class="flex justify-center items-center">
|
|
46
|
+
{#if logo}
|
|
47
|
+
<img src={logo} alt={logo} class="w-12 h-12 rounded-lg" />
|
|
48
|
+
{/if}
|
|
49
|
+
</div>
|
|
50
|
+
<div class="flex flex-col justify-center items-center">
|
|
51
|
+
{#if title}
|
|
52
|
+
<div class="text-center font-bold text-lg">{title}</div>
|
|
53
|
+
{/if}
|
|
54
|
+
{#if startNumber}
|
|
55
|
+
<CardStarRating {startNumber} {startMax} />
|
|
56
|
+
{/if}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="flex justify-end items-center absolute top-0 right-0">
|
|
60
|
+
<CardFavorite
|
|
61
|
+
{isFavorite}
|
|
62
|
+
onFavoriteClick={() => onFavoriteClick!(id)}
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div class="h-15 mb-8">
|
|
68
|
+
<CardDescription {content} />
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<CardTags className="my-4" tags={tags ?? []} {isTagBorderBottom}/>
|
|
72
|
+
|
|
73
|
+
{#if onButtonProfile || onButtonDetails}
|
|
74
|
+
<div class="flex justify-center items-center gap-2 mt-4 w-full">
|
|
75
|
+
{#if onButtonProfile}
|
|
76
|
+
<CardButton
|
|
77
|
+
{id}
|
|
78
|
+
icon={UserIcon}
|
|
79
|
+
className={buttonProfileClass}
|
|
80
|
+
text={$t("label.view.profile")}
|
|
81
|
+
onClick={onButtonProfile}
|
|
82
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
83
|
+
/>
|
|
84
|
+
{/if}
|
|
85
|
+
{#if onButtonDetails}
|
|
86
|
+
<CardButton
|
|
87
|
+
{id}
|
|
88
|
+
icon={InformationCircleIcon}
|
|
89
|
+
className={buttonDetailsClass}
|
|
90
|
+
text={$t("label.more.details")}
|
|
91
|
+
onClick={onButtonDetails}
|
|
92
|
+
isFlex={isShowButtonProfileAndDetails}
|
|
93
|
+
/>
|
|
94
|
+
{/if}
|
|
95
|
+
</div>
|
|
96
|
+
{/if}
|
|
97
|
+
</article>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { CardProfileProps } from "../types";
|
|
3
|
+
import CardProfile01 from "./01/CardProfile01.svelte";
|
|
4
|
+
import CardProfile02 from "./02/CardProfile02.svelte";
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
variant?: 1 | 2;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
let { variant, ...restProps }: CardProfileProps & Props = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
{#if variant === 2}
|
|
14
|
+
<CardProfile02 {...restProps} />
|
|
15
|
+
{:else}
|
|
16
|
+
<CardProfile01 {...restProps} />
|
|
17
|
+
{/if}
|