@goodhood-web/nebenan-base 1.3.0-development.9 → 1.3.1-development.1
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 +17 -14
- package/index.js +102 -60
- package/index.mjs +14322 -5018
- package/lib/ComplaintModal/ComplaintModal.d.ts +4 -0
- package/lib/ComplaintModal/ComplaintModal.types.d.ts +5 -0
- package/lib/DesktopNavbarSearchField/DesktopNavbarSearchField.types.d.ts +1 -1
- package/lib/LayoutLoadingSpinner/LayoutLoadingSpinner.d.ts +2 -0
- package/lib/LayoutLoadingSpinner/assets/index.d.ts +3 -0
- package/lib/MainLayout/MainLayout.d.ts +2 -2
- package/lib/MainLayout/MainLayout.types.d.ts +2 -1
- package/lib/MobileLayout/MobileLayout.types.d.ts +3 -3
- package/lib/MobileLayout/components/MobileHeaderBar/MobileHeaderBar.types.d.ts +4 -4
- package/lib/PointOfInterest/PointOfInterest.d.ts +4 -0
- package/lib/PointOfInterest/PointOfInterest.types.d.ts +14 -0
- package/lib/PointOfInterest/assets/index.d.ts +5 -0
- package/lib/PointOfInterest/components/POIPlaceholder.d.ts +4 -0
- package/lib/PointOfInterest/components/POIPlaceholder.types.d.ts +4 -0
- package/lib/{ReactionSelection → Reactions/ReactionSelection}/ReactionSelection.types.d.ts +3 -3
- package/lib/Reactions/ReactionStack/ReactionStack.d.ts +4 -0
- package/lib/{ReactionStack → Reactions/ReactionStack}/ReactionStack.types.d.ts +2 -1
- package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionItem/ReactionItem.types.d.ts +1 -1
- package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionPill/ReactionPill.d.ts +2 -2
- package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionPill/ReactionPill.type.d.ts +2 -2
- package/lib/{ReactionTabList → Reactions/ReactionTabList}/ReactionTabList.types.d.ts +1 -1
- package/lib/Reactions/utils.d.ts +5 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/ReactionStack/ReactionStack.d.ts +0 -4
- /package/lib/{ReactionSelection → Reactions/ReactionSelection}/ReactionSelection.d.ts +0 -0
- /package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionItem/ReactionItem.d.ts +0 -0
- /package/lib/{ReactionStack → Reactions/ReactionStack}/index.d.ts +0 -0
- /package/lib/{ReactionTabList → Reactions/ReactionTabList}/ReactionTabList.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MainLayoutProps } from './MainLayout.types';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { MainLayoutProps } from './MainLayout.types';
|
|
3
3
|
|
|
4
|
-
declare const MainLayout: ({ children, desktop, mobile, }: PropsWithChildren<MainLayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const MainLayout: ({ children, desktop, keepLoading, mobile, }: PropsWithChildren<MainLayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default MainLayout;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { MobileLayoutProps } from '../MobileLayout/MobileLayout.types';
|
|
2
1
|
import { DesktopLayoutTwoColumnProps } from '../DesktopLayoutTwoColumn/DesktopLayoutTwoColumn.types';
|
|
2
|
+
import { MobileLayoutProps } from '../MobileLayout/MobileLayout.types';
|
|
3
3
|
|
|
4
4
|
export interface MainLayoutProps {
|
|
5
5
|
desktop: Omit<DesktopLayoutTwoColumnProps, 'children'>;
|
|
6
|
+
keepLoading?: boolean;
|
|
6
7
|
mobile: Omit<MobileLayoutProps, 'children'>;
|
|
7
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MobileHeaderBarProps } from './components/MobileHeaderBar/MobileHeaderBar.types';
|
|
2
|
-
import { NavBarProps } from '../../../../ui/src/lib/NavBar/NavBar.types';
|
|
3
|
-
import { IconButtonProps } from '../../../../ui/src/lib/IconButton/IconButton.types';
|
|
4
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { IconButtonProps } from '../../../../ui/src/lib/IconButton/IconButton.types';
|
|
3
|
+
import { NavBarProps } from '../../../../ui/src/lib/NavBar/NavBar.types';
|
|
4
|
+
import { MobileHeaderBarProps } from './components/MobileHeaderBar/MobileHeaderBar.types';
|
|
5
5
|
|
|
6
6
|
export interface MobileLayoutProps {
|
|
7
7
|
action?: ReactElement<IconButtonProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TypographyProps } from '../../../../../../ui/src/lib/Typography/Typography.types';
|
|
2
|
-
import { NotificationBubbleProps } from '../../../../../../ui/src/lib/NotificationBubble/NotificationBubble.types';
|
|
3
|
-
import { IconButtonProps } from '../../../../../../ui/src/lib/IconButton/IconButton.types';
|
|
4
|
-
import { IconProps } from '../../../../../../ui/src/lib/Icon/Icon.types';
|
|
5
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { IconProps } from '../../../../../../ui/src/lib/Icon/Icon.types';
|
|
3
|
+
import { IconButtonProps } from '../../../../../../ui/src/lib/IconButton/IconButton.types';
|
|
4
|
+
import { NotificationBubbleProps } from '../../../../../../ui/src/lib/NotificationBubble/NotificationBubble.types';
|
|
5
|
+
import { TypographyProps } from '../../../../../../ui/src/lib/Typography/Typography.types';
|
|
6
6
|
|
|
7
7
|
export interface MobileHeaderBarProps {
|
|
8
8
|
as?: Exclude<TypographyProps['as'], 'h1'>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PointOfInterestProps } from './PointOfInterest.types';
|
|
2
|
+
|
|
3
|
+
declare const PointOfInterest: ({ address, badgeType, heartComponent, hood, imageSrc, isBlocked, onClick, onRemove, placeholderType, subcategory, title, }: PointOfInterestProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default PointOfInterest;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type PointOfInterestProps = {
|
|
3
|
+
address?: string;
|
|
4
|
+
badgeType?: 'localBiz' | 'localOrg';
|
|
5
|
+
heartComponent?: React.ReactNode;
|
|
6
|
+
hood?: string;
|
|
7
|
+
imageSrc?: string;
|
|
8
|
+
isBlocked?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
onRemove?: () => void;
|
|
11
|
+
placeholderType?: 'business' | 'organisation' | 'special_place';
|
|
12
|
+
subcategory?: string;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Reaction } from '../ReactionStack/ReactionStack.types';
|
|
2
|
-
import { ReactionType } from '../../../../api/src/lib/types/reactions';
|
|
3
|
-
import { ReactElement } from 'react';
|
|
4
1
|
import { PopupPlacement } from '@mui/base';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { ReactionType } from '../../../../../api/src/lib/types/reactions';
|
|
4
|
+
import { Reaction } from '../ReactionStack/ReactionStack.types';
|
|
5
5
|
|
|
6
6
|
export interface ReactionSelectionProps {
|
|
7
7
|
buttonContent: ReactElement;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ReactionType } from '
|
|
1
|
+
import { ReactionType } from '../../../../../api/src/lib/types/reactions';
|
|
2
2
|
|
|
3
3
|
export interface ReactionStackProps {
|
|
4
4
|
activeReaction?: ReactionType;
|
|
5
5
|
expanded?: boolean;
|
|
6
|
+
limit?: number;
|
|
6
7
|
onClick?: (value: ReactionType) => void;
|
|
7
8
|
reactions: Reaction[];
|
|
8
9
|
size?: 'small' | 'big';
|
package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionPill/ReactionPill.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactionPillProps } from './ReactionPill.type';
|
|
2
|
-
import { ReactionType } from '../../../../../../api/src/lib/types/reactions';
|
|
3
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
|
|
3
|
+
import { ReactionPillProps } from './ReactionPill.type';
|
|
4
4
|
|
|
5
5
|
export declare const renderReaction: (type: ReactionType) => ReactElement;
|
|
6
6
|
declare const ReactionPill: ({ className, count, expanded, onClick, reaction, selected, size, stack, }: ReactionPillProps) => ReactElement;
|
package/lib/{ReactionStack → Reactions/ReactionStack}/components/ReactionPill/ReactionPill.type.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ReactionType } from '../../../../../../../api/src/lib/types/reactions';
|
|
2
|
+
import { BaseButtonProps } from '../../../../../../../ui/src/lib/Button/Button.types';
|
|
3
3
|
|
|
4
4
|
export interface ReactionPillProps extends BaseButtonProps {
|
|
5
5
|
className?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '
|
|
1
|
+
import { ReactionUser, ReactionsGetPayload, ReactionsGetResponse } from '../../../../../api/src/lib/types/reactions';
|
|
2
2
|
|
|
3
3
|
export interface ReactionTabListProps {
|
|
4
4
|
closeText?: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactionType } from '../../../../api/src/lib/types/reactions';
|
|
2
|
+
import { Reaction } from './ReactionStack/ReactionStack.types';
|
|
3
|
+
|
|
4
|
+
export declare const sortReactions: <T extends Reaction>(reactions: T[]) => T[];
|
|
5
|
+
export declare const isReactionType: (key: string) => key is ReactionType;
|