@goodhood-web/nebenan-base 1.5.0-development.1 → 1.5.0-development.10
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.d.ts +2 -1
- package/index.js +43 -43
- package/index.mjs +4316 -4157
- package/lib/PostAuthor/PostAuthor.d.ts +4 -0
- package/lib/PostAuthor/PostAuthor.types.d.ts +28 -0
- package/lib/PostAuthor/Rating/Rating.d.ts +4 -0
- package/lib/PostAuthor/Rating/Rating.types.d.ts +6 -0
- package/lib/Reactions/utils.d.ts +1 -2
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as PostAuthorProps } from './PostAuthor.types';
|
|
2
|
+
|
|
3
|
+
declare const PostAuthor: ({ author, feedItemCategory, groupName, metadata, onMoreClick, rating, showMoreIcon, thumbnail, }: PostAuthorProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default PostAuthor;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeProps } from '../../../../ui/src/lib/Badge/Badge.types';
|
|
3
|
+
import { LinkProps } from '../../../../ui/src/lib/Button/Button.types';
|
|
4
|
+
import { IconButtonProps } from '../../../../ui/src/lib/IconButton/IconButton.types';
|
|
5
|
+
import { ThumbnailCircularProps, ThumbnailSquareProps } from '../../../../ui/src/lib/Thumbnail/Thumbnail.type';
|
|
6
|
+
import { default as ThumbnailWrapperProps } from '../../../../ui/src/lib/ThumbnailWrapper/ThumbnailWrapper.types';
|
|
7
|
+
import { default as RatingProps } from './Rating/Rating.types';
|
|
8
|
+
|
|
9
|
+
type ThumbnailProps = (ThumbnailCircularProps & {
|
|
10
|
+
thumbnailType: 'thumbnailCircular';
|
|
11
|
+
}) | (ThumbnailSquareProps & {
|
|
12
|
+
thumbnailType: 'thumbnailSquare';
|
|
13
|
+
}) | (ThumbnailWrapperProps & {
|
|
14
|
+
thumbnailType: 'thumbnailWrapper';
|
|
15
|
+
}) | (BadgeProps & {
|
|
16
|
+
thumbnailType: 'badge';
|
|
17
|
+
});
|
|
18
|
+
export default interface PostAuthorProps {
|
|
19
|
+
author: LinkProps;
|
|
20
|
+
feedItemCategory?: string;
|
|
21
|
+
groupName?: LinkProps;
|
|
22
|
+
metadata: ReactNode;
|
|
23
|
+
onMoreClick?: IconButtonProps['onClick'];
|
|
24
|
+
rating?: RatingProps;
|
|
25
|
+
showMoreIcon?: boolean;
|
|
26
|
+
thumbnail: ThumbnailProps & Pick<LinkProps, 'onClick' | 'ariaLabel'>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
package/lib/Reactions/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ReactionType } from '../../../../api/src/lib/types/reactions';
|
|
2
1
|
import { Reaction } from './ReactionStack/ReactionStack.types';
|
|
3
2
|
|
|
4
3
|
export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
|
|
5
|
-
export declare const isReactionType: (key: string) => key is
|
|
4
|
+
export declare const isReactionType: (key: string) => key is "agree" | "bravo" | "good_idea" | "haha" | "love" | "sad" | "support" | "thankyou" | "wow";
|