@goodhood-web/nebenan-base 3.4.0-development.51 → 3.4.0-development.53
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/index.js +27 -27
- package/index.mjs +565 -562
- package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.d.ts +3 -0
- package/lib/Feed/FeedItem/Reactions/PostReactions/PostReactions.types.d.ts +13 -0
- package/lib/Feed/FeedItem/Reactions/PostReactions/utils.d.ts +8 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/Like.d.ts +3 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/Like.types.d.ts +21 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/Like/ReactionLabel/ReactionLabel.d.ts +7 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.d.ts +3 -0
- package/lib/Feed/FeedItem/Reactions/ReplyReactions/ReplyReactions.types.d.ts +16 -0
- package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.d.ts +1 -1
- package/lib/Reactions/ReactionStack/components/ReactionPill/ReactionPill.type.d.ts +4 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PostReactionsProps } from './PostReactions.types';
|
|
2
|
+
export declare const PostReactions: ({ getPicturePlaceholder, getReactions, itemId, limit, onReactionSelect, onToggleComments, reactions, replies, selectedReaction, tooltipReactions, }: PostReactionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default PostReactions;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
|
|
2
|
+
import { Reaction, ReactionStackProps } from '../../../../Reactions/ReactionStack/ReactionStack.types';
|
|
3
|
+
import { ReactionTabListProps } from '../../../../Reactions/ReactionTabList/ReactionTabList.types';
|
|
4
|
+
export type PostReactionsProps = Omit<ReactionStackProps, 'stack' | 'expanded' | 'onClick'> & {
|
|
5
|
+
getPicturePlaceholder: ReactionTabListProps['getPicturePlaceholder'];
|
|
6
|
+
getReactions: ReactionTabListProps['getReactions'];
|
|
7
|
+
itemId: number;
|
|
8
|
+
onReactionSelect: (emoji: ReactionType) => void;
|
|
9
|
+
onToggleComments: () => void;
|
|
10
|
+
replies?: number;
|
|
11
|
+
selectedReaction?: ReactionType;
|
|
12
|
+
tooltipReactions: Reaction[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
|
|
2
|
+
import { Reaction } from '../../../../../index';
|
|
3
|
+
export declare const getReactionsArray: (reactions: Reaction[], selectedReaction?: ReactionType) => {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
tooltip?: import('react').ReactNode;
|
|
6
|
+
count?: number | undefined;
|
|
7
|
+
reaction: ReactionType;
|
|
8
|
+
}[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactionType } from '../../../../../../../../api/src/lib/types/reactions';
|
|
2
|
+
import { ReplyReactionsProps } from '../ReplyReactions.types';
|
|
3
|
+
export interface Item {
|
|
4
|
+
id: string;
|
|
5
|
+
reaction?: ReactionType;
|
|
6
|
+
}
|
|
7
|
+
export interface Reaction {
|
|
8
|
+
count?: number;
|
|
9
|
+
reaction: ReactionType;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
}
|
|
13
|
+
export type SetReaction = (reaction: ReactionType | null) => void;
|
|
14
|
+
export interface LikeProps {
|
|
15
|
+
isComment?: boolean;
|
|
16
|
+
isVerticalLayout?: boolean;
|
|
17
|
+
item: Item;
|
|
18
|
+
locked?: boolean;
|
|
19
|
+
reactions: ReplyReactionsProps['tooltipReactions'];
|
|
20
|
+
setReaction: SetReaction;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactionType } from '../../../../../../../../../api/src/lib/types/reactions';
|
|
2
|
+
type ReactionLabelProps = {
|
|
3
|
+
isLiked: boolean;
|
|
4
|
+
reaction: ReactionType;
|
|
5
|
+
};
|
|
6
|
+
export declare const ReactionLabel: ({ isLiked, reaction }: ReactionLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ReplyReactionsProps } from './ReplyReactions.types';
|
|
2
|
+
export declare const ReplyReactions: ({ getPicturePlaceholder, getReactions, item, itemId, onReactionSelect, onReply, reactions, tooltipReactions, }: ReplyReactionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ReplyReactions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
|
|
2
|
+
import { Reaction } from '../../../../Reactions/ReactionStack/ReactionStack.types';
|
|
3
|
+
import { ReactionTabListProps } from '../../../../Reactions/ReactionTabList/ReactionTabList.types';
|
|
4
|
+
export type ReplyReactionsProps = {
|
|
5
|
+
getPicturePlaceholder: ReactionTabListProps['getPicturePlaceholder'];
|
|
6
|
+
getReactions: ReactionTabListProps['getReactions'];
|
|
7
|
+
item: {
|
|
8
|
+
id: string;
|
|
9
|
+
reaction?: ReactionType;
|
|
10
|
+
};
|
|
11
|
+
itemId: number;
|
|
12
|
+
onReactionSelect: (emoji: ReactionType | null) => void;
|
|
13
|
+
onReply: () => void;
|
|
14
|
+
reactions: Reaction[];
|
|
15
|
+
tooltipReactions: Reaction[];
|
|
16
|
+
};
|
|
@@ -2,5 +2,5 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { ReactionType } from '../../../../../../../api/src/lib/core';
|
|
3
3
|
import { ReactionPillProps } from './ReactionPill.type';
|
|
4
4
|
export declare const renderReaction: (type: ReactionType, size?: "small" | "big") => ReactElement;
|
|
5
|
-
declare const ReactionPill: ({ ariaDescribedBy, className, count, expanded, onClick, reaction, selected, size, stack, }: ReactionPillProps) => ReactElement;
|
|
5
|
+
declare const ReactionPill: ({ ariaDescribedBy, className, count, expanded, onClick, reaction, selected, size, stack, transparent, }: ReactionPillProps) => ReactElement;
|
|
6
6
|
export default ReactionPill;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
1
2
|
import { ReactionType } from '../../../../../../../api/src/lib/core';
|
|
2
3
|
import { BaseButtonProps } from '../../../../../../../ui/src/lib/Atoms/Buttons/Button/Button.types';
|
|
3
|
-
export interface ReactionPillProps extends BaseButtonProps {
|
|
4
|
+
export interface ReactionPillProps extends Omit<BaseButtonProps, 'onClick'> {
|
|
4
5
|
ariaDescribedBy?: string;
|
|
5
6
|
className?: string;
|
|
6
7
|
count?: number;
|
|
7
8
|
expanded?: boolean;
|
|
9
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
8
10
|
reaction: ReactionType;
|
|
9
11
|
selected?: boolean;
|
|
10
12
|
size?: 'small' | 'big';
|
|
11
13
|
stack?: boolean;
|
|
14
|
+
transparent?: boolean;
|
|
12
15
|
}
|