negodesign 0.0.37 → 0.0.38
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.
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
<TruncatableText
|
|
37
37
|
text={content}
|
|
38
38
|
{lines}
|
|
39
|
-
class="text-justify text-[13px] md:text-[14px] text-gray-800 dark:text-gray-50 mt-3 my-2"
|
|
39
|
+
class="text-justify text-[13px] md:text-[14px] text-gray-800 dark:text-gray-50 mt-3 my-2 h-[65px] mb-1"
|
|
40
40
|
/>
|
|
41
41
|
{/if}
|
|
@@ -18,4 +18,9 @@ export interface CarouselPromotionProps {
|
|
|
18
18
|
isDescriptionLabel?: boolean;
|
|
19
19
|
/** Estado de carregamento (skeleton) */
|
|
20
20
|
isLoading?: boolean;
|
|
21
|
+
onClickBuy?: (id: string | number) => void;
|
|
22
|
+
/** Callback ao clicar no botão carrinho */
|
|
23
|
+
onClickShop?: (id: string | number) => void;
|
|
24
|
+
/** Callback ao clicar no botão favorito */
|
|
25
|
+
onClickFavorite?: (id: string | number) => void;
|
|
21
26
|
}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
isLoading = false,
|
|
17
17
|
isDescriptionIcon,
|
|
18
18
|
isDescriptionLabel,
|
|
19
|
+
onClickBuy,
|
|
20
|
+
onClickShop,
|
|
21
|
+
onClickFavorite,
|
|
19
22
|
}: CarouselPromotionProps = $props();
|
|
20
23
|
|
|
21
24
|
const responsive = useDevice();
|
|
@@ -48,7 +51,14 @@
|
|
|
48
51
|
{:else}
|
|
49
52
|
{#each items as item, i (`promotion-${item.id ?? i}`)}
|
|
50
53
|
<Carousel.Item class="pl-2 w-75 basis-auto">
|
|
51
|
-
<CardPromotion
|
|
54
|
+
<CardPromotion
|
|
55
|
+
{...item}
|
|
56
|
+
{isDescriptionIcon}
|
|
57
|
+
{isDescriptionLabel}
|
|
58
|
+
{onClickBuy}
|
|
59
|
+
{onClickShop}
|
|
60
|
+
{onClickFavorite}
|
|
61
|
+
/>
|
|
52
62
|
</Carousel.Item>
|
|
53
63
|
{/each}
|
|
54
64
|
{/if}
|
package/dist/globals.css
CHANGED