@mirantes-micro/foundation-design-system 1.2.100 → 1.2.102

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/index.d.ts CHANGED
@@ -820,11 +820,25 @@ interface IRatingsCardProps {
820
820
  isCurrentPageOrProfile?: boolean;
821
821
  userId?: string;
822
822
  pageId?: string;
823
+ communityId?: string;
823
824
  forAPage?: boolean;
824
825
  currentUserId?: string;
825
826
  }
827
+ type TRatingUserCard = {
828
+ user: {
829
+ name: string;
830
+ profession: string;
831
+ avatar?: string;
832
+ isOwner?: boolean;
833
+ };
834
+ anonymous?: boolean;
835
+ rating: number;
836
+ userRating: number;
837
+ comment: string;
838
+ createdAt: string | Date;
839
+ };
826
840
 
827
- declare function RatingsCard({ isCurrentPageOrProfile, pageId, userId, variant, forAPage, currentUserId, className, }: IRatingsCardProps & {
841
+ declare function RatingsCard({ isCurrentPageOrProfile, pageId, userId, communityId, variant, forAPage, currentUserId, className, }: IRatingsCardProps & {
828
842
  variant?: "maximized" | "minimized";
829
843
  className?: string;
830
844
  }): React__default.JSX.Element;
@@ -879,7 +893,7 @@ declare function AvatarRatingBadge({ name, asPage, src, rating }: AvatarRatingBa
879
893
 
880
894
  type AddRatingProps = {
881
895
  enableTitle?: boolean;
882
- variantStars?: "large" | "medium" | "small";
896
+ variantStars?: "large" | "small" | "medium";
883
897
  starSize?: {
884
898
  width: number;
885
899
  height: number;
@@ -887,9 +901,10 @@ type AddRatingProps = {
887
901
  forAPage?: boolean;
888
902
  receiverPageId?: string;
889
903
  receiverUserId?: string;
904
+ receiverCommunityId?: string;
890
905
  className?: string;
891
906
  };
892
- declare function AddRating({ enableTitle, variantStars, starSize, forAPage, receiverPageId, receiverUserId, className, }: AddRatingProps): React__default.JSX.Element;
907
+ declare function AddRating({ enableTitle, variantStars, starSize, forAPage, receiverPageId, receiverUserId, receiverCommunityId, className, }: AddRatingProps): React__default.JSX.Element;
893
908
 
894
909
  interface PageFloatFooterProps {
895
910
  /**
@@ -904,6 +919,24 @@ declare const NoRecruitmentResponsiveIlustration: ({ className, }: {
904
919
  className?: string;
905
920
  }) => React__default.JSX.Element;
906
921
 
922
+ declare function RatingReviewsList({ variant, forPage, receiverPageId, receiverUserId, receiverCommunityId }: {
923
+ variant?: "maximized" | "minimized";
924
+ forPage?: boolean;
925
+ receiverUserId?: string;
926
+ receiverPageId?: string;
927
+ receiverCommunityId?: string;
928
+ }): React__default.JSX.Element | null;
929
+
930
+ declare function RatingsSummary({ variant, asPage, receiverUserId, receiverPageId, receiverCommunityId }: {
931
+ variant?: "maximized" | "minimized";
932
+ asPage?: boolean;
933
+ receiverUserId?: string;
934
+ receiverPageId?: string;
935
+ receiverCommunityId?: string;
936
+ }): React__default.JSX.Element;
937
+
938
+ declare function RatingUserCard({ user, rating, userRating, comment, createdAt, anonymous, }: TRatingUserCard): React__default.JSX.Element;
939
+
907
940
  type User$1 = {
908
941
  id?: string;
909
942
  name?: string;
@@ -1606,4 +1639,4 @@ interface ArticleViewerProps {
1606
1639
  }
1607
1640
  declare function ArticleViewer({ content }: ArticleViewerProps): React__default.JSX.Element;
1608
1641
 
1609
- export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageFloatFooter, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingsCard, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
1642
+ export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageFloatFooter, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingReviewsList, RatingUserCard, RatingsCard, RatingsSummary, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };