@goodhood-web/nebenan-base 1.5.0-development.9 → 1.5.0

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.
@@ -0,0 +1,4 @@
1
+ import { AccordionMenuProps } from './AccordionMenu.types';
2
+
3
+ declare const AccordionMenu: ({ children, id, isOpen, onClick, title, }: AccordionMenuProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default AccordionMenu;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export type AccordionMenuProps = {
4
+ children: ReactNode;
5
+ id: number | string;
6
+ isOpen?: boolean;
7
+ onClick?: () => void;
8
+ title: string;
9
+ };
@@ -0,0 +1,4 @@
1
+ import { TableProps } from './ComparisonTable.types';
2
+
3
+ declare const ComparisonTable: ({ header, list }: TableProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ComparisonTable;
@@ -0,0 +1,9 @@
1
+ export type TableHeaderProps = {
2
+ key: string;
3
+ label: string;
4
+ };
5
+ export type TableListProps = [string, boolean, boolean];
6
+ export interface TableProps {
7
+ header: [TableHeaderProps, TableHeaderProps];
8
+ list: TableListProps[];
9
+ }
@@ -0,0 +1,4 @@
1
+ import { ConfirmDialogProps } from './ConfirmDialog.types';
2
+
3
+ declare const ConfirmDialog: ({ bodyText, cancelText, confirmText, handleCancel, handleConfirm, title, }: ConfirmDialogProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default ConfirmDialog;
@@ -0,0 +1,8 @@
1
+ export interface ConfirmDialogProps {
2
+ bodyText?: string;
3
+ cancelText?: string;
4
+ confirmText?: string;
5
+ handleCancel: () => void;
6
+ handleConfirm: () => void;
7
+ title: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { MarketplaceBodyTypes } from './MarketplaceBody.types';
2
+
3
+ declare const MarketplaceBody: ({ author, authorMetadata, authorThumbnail, bookmarked, category, description, onBookmark, onContactSeller, onShare, price, timeStamp, title, }: MarketplaceBodyTypes) => import("react/jsx-runtime").JSX.Element;
4
+ export default MarketplaceBody;
@@ -0,0 +1,16 @@
1
+ import { default as PostAuthorProps } from '../PostAuthor/PostAuthor.types';
2
+
3
+ export interface MarketplaceBodyTypes {
4
+ author: PostAuthorProps['author'];
5
+ authorMetadata: PostAuthorProps['metadata'];
6
+ authorThumbnail: PostAuthorProps['thumbnail'];
7
+ bookmarked: boolean;
8
+ category: string;
9
+ description: string;
10
+ onBookmark: () => void;
11
+ onContactSeller: () => void;
12
+ onShare: () => void;
13
+ price: number;
14
+ timeStamp: string;
15
+ title: string;
16
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type PointOfInterestProps = {
3
2
  address?: string;
4
3
  badgeType?: 'localBiz' | 'localOrg';
@@ -1,4 +1,5 @@
1
+ import { ReactionType } from '../../../../api/src/lib/types/reactions';
1
2
  import { Reaction } from './ReactionStack/ReactionStack.types';
2
3
 
3
4
  export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
4
- export declare const isReactionType: (key: string) => key is "agree" | "bravo" | "good_idea" | "haha" | "love" | "sad" | "support" | "thankyou" | "wow";
5
+ export declare const isReactionType: (key: string) => key is Exclude<ReactionType, "bookmark">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.5.0-development.9",
3
+ "version": "1.5.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "publishConfig": {