@mirantes-micro/foundation-design-system 1.2.385 → 1.2.386

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +24 -5
  2. package/dist/index.js +221 -221
  3. package/package.json +212 -212
package/dist/index.d.ts CHANGED
@@ -1393,7 +1393,7 @@ type PostReactionsProps$2 = {
1393
1393
  id: string;
1394
1394
  userId: string;
1395
1395
  postId: string;
1396
- reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE";
1396
+ reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE" | "DISLIKE";
1397
1397
  createdAt?: string;
1398
1398
  updatedAt?: string;
1399
1399
  user?: User$2;
@@ -1402,7 +1402,7 @@ type CommentReactionsProps$2 = {
1402
1402
  id: string;
1403
1403
  userId: string;
1404
1404
  commentId: string;
1405
- reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
1405
+ reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISAGREE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISLIKE";
1406
1406
  createdAt: string;
1407
1407
  updatedAt: string;
1408
1408
  user?: User$2;
@@ -1870,7 +1870,7 @@ type CommentReactionsProps$1 = {
1870
1870
  id: string;
1871
1871
  userId: string;
1872
1872
  commentId: string;
1873
- reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
1873
+ reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISAGREE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISLIKE";
1874
1874
  createdAt: string;
1875
1875
  updatedAt: string;
1876
1876
  user?: User$1;
@@ -2369,13 +2369,32 @@ declare function RatingsCard({ isCurrentPageOrProfile, pageId, userId, community
2369
2369
  communitySlug?: string;
2370
2370
  }): React__default.JSX.Element;
2371
2371
 
2372
- declare function ReactPostButton({ post, hideLabel, className, orientation, compact, }: {
2372
+ type ReactionType = {
2373
+ emoji: ReactNode;
2374
+ id: string;
2375
+ label: string;
2376
+ };
2377
+
2378
+ type ReactionMetric = {
2379
+ type?: string;
2380
+ count?: number;
2381
+ };
2382
+ type ReactPostButtonProps = {
2373
2383
  post: Post$2;
2374
2384
  hideLabel?: boolean;
2375
2385
  className?: string;
2376
2386
  orientation?: "vertical" | "horizontal";
2377
2387
  compact?: boolean;
2378
- }): JSX.Element;
2388
+ currentReaction?: string | null;
2389
+ totalReactions?: number;
2390
+ reactions?: Post$2["reactions"];
2391
+ optimisticReactions?: PostReactionsProps$2[];
2392
+ topReactions?: ReactionType[];
2393
+ metrics?: {
2394
+ reactions?: ReactionMetric[];
2395
+ } | ReactionMetric[];
2396
+ };
2397
+ declare function ReactPostButton({ post, hideLabel, className, orientation, compact, currentReaction: currentReactionOverride, totalReactions: totalReactionsOverride, reactions: reactionsOverride, optimisticReactions: optimisticReactionsOverride, topReactions: topReactionsOverride, metrics, }: ReactPostButtonProps): JSX.Element;
2379
2398
 
2380
2399
  type DrawerSide = 'bottom' | 'right';
2381
2400
  interface ResponsiveDrawerProps {