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 {...item} {isDescriptionIcon} {isDescriptionLabel} />
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
@@ -823,6 +823,9 @@
823
823
  .h-75 {
824
824
  height: calc(var(--spacing) * 75);
825
825
  }
826
+ .h-\[65px\] {
827
+ height: 65px;
828
+ }
826
829
  .h-\[calc\(100\%-1px\)\] {
827
830
  height: calc(100% - 1px);
828
831
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [