negodesign 0.0.46 → 0.0.47

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.
@@ -13,13 +13,13 @@
13
13
  <script lang="ts">
14
14
  import CardStarRating from "../../../core/card/shared/CardStarRating.svelte";
15
15
  import Skeleton from "../../../ui/skeleton/skeleton.svelte";
16
- import type { ProductDetailsReview } from "../types";
16
+ import type { ProductDetailsReviewProps } from "../types";
17
17
 
18
18
  let {
19
19
  reviews,
20
20
  isLoading = false,
21
21
  }: {
22
- reviews?: ProductDetailsReview[];
22
+ reviews?: ProductDetailsReviewProps[];
23
23
  isLoading?: boolean;
24
24
  } = $props();
25
25
  </script>
@@ -49,7 +49,9 @@
49
49
  <article class="flex flex-col gap-2 border-b pb-6 last:border-b-0">
50
50
  <div class="flex items-center justify-between">
51
51
  <div class="flex items-center gap-3">
52
- <div class="flex size-9 items-center justify-center rounded-full bg-muted text-sm font-semibold">
52
+ <div
53
+ class="flex size-9 items-center justify-center rounded-full bg-muted text-sm font-semibold"
54
+ >
53
55
  {review.author.charAt(0)}
54
56
  </div>
55
57
  <div>
@@ -1,6 +1,6 @@
1
- import type { ProductDetailsReview } from "../types";
1
+ import type { ProductDetailsReviewProps } from "../types";
2
2
  type $$ComponentProps = {
3
- reviews?: ProductDetailsReview[];
3
+ reviews?: ProductDetailsReviewProps[];
4
4
  isLoading?: boolean;
5
5
  };
6
6
  declare const ProductDetailReviews: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -57,7 +57,7 @@ export interface ProductDetailsLocation {
57
57
  * Avaliação de um cliente sobre o produto.
58
58
  * Contém autor, classificação, data e comentário.
59
59
  */
60
- export interface ProductDetailsReview {
60
+ export interface ProductDetailsReviewProps {
61
61
  /** Identificador único da avaliação (usado como key nos {#each}). */
62
62
  id: string | number;
63
63
  /** Nome do autor da avaliação. */
@@ -114,7 +114,7 @@ export interface ProductDetailsData {
114
114
  /** Número total de avaliações recebidas. */
115
115
  reviewsCount?: number;
116
116
  /** Lista de avaliações individuais dos clientes. */
117
- reviews?: ProductDetailsReview[];
117
+ reviews?: ProductDetailsReviewProps[];
118
118
  /** Preço atual/promocional do produto. */
119
119
  newPrice?: string | number;
120
120
  /** Preço original (antes do desconto). */
@@ -22,7 +22,7 @@ import type { MenuBarSidebarProps } from "../components/core/sidebar/types";
22
22
  import type { DataTableItem, DataTableCoreProps } from "../components/core/datatable/data/data-table";
23
23
  import type { AdminPanelProps, AdminContentProps } from "../components/pages/admin/01/ui/types";
24
24
  import type { ProfileUserProps, ProfileUserData, ProfileUserVariant, ProfileUserAddress, ProfileUserNote, ProfileUserNotificationPref, ProfileUserMarketingPref, ProfileUserExperience } from "../components/pages/profile-user/types";
25
- import type { ProductDetailsProps, ProductDetailsData, ProductDetailsBreadcrumbItem, ProductDetailsTag, ProductDetailsImage, ProductDetailsLocation, ProductDetailsReview, ProductDetailsTab } from "../components/pages/product-details/types";
25
+ import type { ProductDetailsProps, ProductDetailsData, ProductDetailsBreadcrumbItem, ProductDetailsTag, ProductDetailsImage, ProductDetailsLocation, ProductDetailsReviewProps, ProductDetailsTab } from "../components/pages/product-details/types";
26
26
  import type { PrivacyPolicyOrTermsOfUseProps, DocSection, ContentBlock, BreadcrumbItem, TocItem } from "../components/pages/privacy-policy-or-terms-of-use/types";
27
27
  import type { InputLabelProps } from "../components/core/form/data/InputLabel.svelte";
28
28
  import type { NegoDesignProps } from "../components/types";
@@ -171,8 +171,8 @@ ProductDetailsTag,
171
171
  ProductDetailsImage,
172
172
  /** Informações de localização do ProductDetails. @see ProductDetailsLocation */
173
173
  ProductDetailsLocation,
174
- /** Avaliação de um cliente sobre o ProductDetails. @see ProductDetailsReview */
175
- ProductDetailsReview,
174
+ /** Avaliação de um cliente sobre o ProductDetails. @see ProductDetailsReviewProps */
175
+ ProductDetailsReviewProps,
176
176
  /** Aba de conteúdo adicional do ProductDetails. @see ProductDetailsTab */
177
177
  ProductDetailsTab,
178
178
  /** Dados completos apresentados na página ProductDetails. @see ProductDetailsData */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [